diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index 64d90b3493..a8e2a43dbd 100644 --- a/.agents/skills/cli-admin/SKILL.md +++ b/.agents/skills/cli-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-admin -description: CLI tool (csdk) for the admin API — provides CRUD commands for 44 tables and 12 custom operations +description: CLI tool (csdk) for the admin API — provides CRUD commands for 26 tables and 12 custom operations --- # cli-admin -CLI tool (csdk) for the admin API — provides CRUD commands for 44 tables and 12 custom operations +CLI tool (csdk) for the admin API — provides CRUD commands for 26 tables and 12 custom operations ## Usage @@ -60,45 +60,27 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) -- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) -- [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) +- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) -- [org-permission-default](references/org-permission-default.md) -- [app-membership-default](references/app-membership-default.md) - [org-admin-grant](references/org-admin-grant.md) -- [org-membership-default](references/org-membership-default.md) - [org-owner-grant](references/org-owner-grant.md) -- [app-limit-caps-default](references/app-limit-caps-default.md) -- [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [org-chart-edge](references/org-chart-edge.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [org-limit-credit](references/org-limit-credit.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [app-limit-warning](references/app-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) -- [org-limit-warning](references/org-limit-warning.md) - [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) - [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) - [org-membership-setting](references/org-membership-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [app-membership](references/app-membership.md) +- [app-invite](references/app-invite.md) - [org-membership](references/org-membership.md) - [org-member-profile](references/org-member-profile.md) -- [app-invite](references/app-invite.md) -- [app-limit](references/app-limit.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit](references/org-limit.md) - [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) diff --git a/.agents/skills/cli-admin/references/membership-type.md b/.agents/skills/cli-admin/references/membership-type.md index 8b1f3189fe..6eedff73dd 100644 --- a/.agents/skills/cli-admin/references/membership-type.md +++ b/.agents/skills/cli-admin/references/membership-type.md @@ -12,8 +12,8 @@ csdk membership-type list --where.. --orderBy csdk membership-type list --limit 10 --after csdk membership-type find-first --where.. csdk membership-type get --id -csdk membership-type create --name --description --prefix [--parentMembershipType ] [--hasUsersTableEntry ] -csdk membership-type update --id [--name ] [--description ] [--prefix ] [--parentMembershipType ] [--hasUsersTableEntry ] +csdk membership-type create --name --description --scope [--parentMembershipType ] [--hasUsersTableEntry ] +csdk membership-type update --id [--name ] [--description ] [--scope ] [--parentMembershipType ] [--hasUsersTableEntry ] csdk membership-type delete --id ``` @@ -58,7 +58,7 @@ csdk membership-type list --where.id.equalTo --orderBy ID_ASC ### Create a membershipType ```bash -csdk membership-type create --name --description --prefix [--parentMembershipType ] [--hasUsersTableEntry ] +csdk membership-type create --name --description --scope [--parentMembershipType ] [--hasUsersTableEntry ] ``` ### Get a membershipType by id diff --git a/.agents/skills/cli-agent/SKILL.md b/.agents/skills/cli-agent/SKILL.md new file mode 100644 index 0000000000..082ff39a48 --- /dev/null +++ b/.agents/skills/cli-agent/SKILL.md @@ -0,0 +1,66 @@ +--- +name: cli-agent +description: CLI tool (csdk) for the agent API — provides CRUD commands for 6 tables and 1 custom operations +--- + +# cli-agent + + + +CLI tool (csdk) for the agent API — provides CRUD commands for 6 tables and 1 custom operations + +## Usage + +```bash +# Context management +csdk context create --endpoint +csdk context use + +# Authentication +csdk auth set-token + +# Config variables +csdk config set +csdk config get + +# CRUD for any table (e.g. agent-plan) +csdk agent-plan list +csdk agent-plan get --id +csdk agent-plan create -- + +# Non-interactive mode (skip all prompts, use flags only) +csdk --no-tty agent-plan 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 agent-plan list +``` + +### Non-interactive mode (for scripts and CI) + +```bash +csdk --no-tty agent-plan create -- +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [config](references/config.md) +- [embedder](references/embedder.md) +- [agent-plan](references/agent-plan.md) +- [agent-message](references/agent-message.md) +- [agent-task](references/agent-task.md) +- [agent-thread](references/agent-thread.md) +- [agent-prompt](references/agent-prompt.md) +- [agent-skill](references/agent-skill.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-agent/references/agent-message.md b/.agents/skills/cli-agent/references/agent-message.md new file mode 100644 index 0000000000..3abe123656 --- /dev/null +++ b/.agents/skills/cli-agent/references/agent-message.md @@ -0,0 +1,68 @@ +# agentMessage + + + +CRUD operations for AgentMessage records via csdk CLI + +## Usage + +```bash +csdk agent-message list +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 [--ownerId ] [--parts ] [--model ] +csdk agent-message update --id [--ownerId ] [--parts ] [--threadId ] [--authorRole ] [--model ] +csdk agent-message delete --id +``` + +## Examples + +### List agentMessage records + +```bash +csdk agent-message list +``` + +### List agentMessage records with pagination + +```bash +csdk agent-message list --limit 10 --offset 0 +``` + +### List agentMessage records with cursor pagination + +```bash +csdk agent-message list --limit 10 --after +``` + +### Find first matching agentMessage + +```bash +csdk agent-message find-first --where.id.equalTo +``` + +### List agentMessage records with field selection + +```bash +csdk agent-message list --select id,id +``` + +### List agentMessage records with filtering and ordering + +```bash +csdk agent-message list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentMessage + +```bash +csdk agent-message create --threadId --authorRole [--ownerId ] [--parts ] [--model ] +``` + +### Get a agentMessage by id + +```bash +csdk agent-message get --id +``` diff --git a/.agents/skills/cli-agent/references/agent-plan.md b/.agents/skills/cli-agent/references/agent-plan.md new file mode 100644 index 0000000000..907795058e --- /dev/null +++ b/.agents/skills/cli-agent/references/agent-plan.md @@ -0,0 +1,68 @@ +# agentPlan + + + +CRUD operations for AgentPlan records via csdk CLI + +## Usage + +```bash +csdk agent-plan list +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 delete --id +``` + +## Examples + +### List agentPlan records + +```bash +csdk agent-plan list +``` + +### List agentPlan records with pagination + +```bash +csdk agent-plan list --limit 10 --offset 0 +``` + +### List agentPlan records with cursor pagination + +```bash +csdk agent-plan list --limit 10 --after +``` + +### Find first matching agentPlan + +```bash +csdk agent-plan find-first --where.id.equalTo +``` + +### List agentPlan records with field selection + +```bash +csdk agent-plan list --select id,id +``` + +### List agentPlan records with filtering and ordering + +```bash +csdk agent-plan list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentPlan + +```bash +csdk agent-plan create --threadId --title [--ownerId ] [--description ] [--status ] +``` + +### Get a agentPlan by id + +```bash +csdk agent-plan get --id +``` diff --git a/.agents/skills/cli-agent/references/agent-prompt.md b/.agents/skills/cli-agent/references/agent-prompt.md new file mode 100644 index 0000000000..4c815fff37 --- /dev/null +++ b/.agents/skills/cli-agent/references/agent-prompt.md @@ -0,0 +1,68 @@ +# agentPrompt + + + +CRUD operations for AgentPrompt records via csdk CLI + +## Usage + +```bash +csdk agent-prompt list +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 delete --id +``` + +## Examples + +### List agentPrompt records + +```bash +csdk agent-prompt list +``` + +### List agentPrompt records with pagination + +```bash +csdk agent-prompt list --limit 10 --offset 0 +``` + +### List agentPrompt records with cursor pagination + +```bash +csdk agent-prompt list --limit 10 --after +``` + +### Find first matching agentPrompt + +```bash +csdk agent-prompt find-first --where.id.equalTo +``` + +### List agentPrompt records with field selection + +```bash +csdk agent-prompt list --select id,id +``` + +### List agentPrompt records with filtering and ordering + +```bash +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 ] +``` + +### Get a agentPrompt by id + +```bash +csdk agent-prompt get --id +``` diff --git a/.agents/skills/cli-agent/references/agent-skill.md b/.agents/skills/cli-agent/references/agent-skill.md new file mode 100644 index 0000000000..cdefc33084 --- /dev/null +++ b/.agents/skills/cli-agent/references/agent-skill.md @@ -0,0 +1,135 @@ +# agentSkill + + + +CRUD operations for AgentSkill records via csdk CLI + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. + +**Unified Search API fields:** `search`, `titleTrgmSimilarity`, `descriptionTrgmSimilarity`, `bodyTrgmSimilarity`, `searchScore` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```bash +csdk agent-skill list +csdk agent-skill list --where.. --orderBy +csdk agent-skill list --limit 10 --after +csdk agent-skill find-first --where.. +csdk agent-skill search +csdk agent-skill get --id +csdk agent-skill create --title --body [--createdBy ] [--updatedBy ] [--description ] [--keywords ] [--isActive ] [--metadata ] [--embedding ] [--embeddingUpdatedAt ] +csdk agent-skill update --id [--createdBy ] [--updatedBy ] [--title ] [--description ] [--body ] [--keywords ] [--isActive ] [--metadata ] [--embedding ] [--embeddingUpdatedAt ] +csdk agent-skill delete --id +``` + +## Examples + +### List agentSkill records + +```bash +csdk agent-skill list +``` + +### List agentSkill records with pagination + +```bash +csdk agent-skill list --limit 10 --offset 0 +``` + +### List agentSkill records with cursor pagination + +```bash +csdk agent-skill list --limit 10 --after +``` + +### Find first matching agentSkill + +```bash +csdk agent-skill find-first --where.id.equalTo +``` + +### List agentSkill records with field selection + +```bash +csdk agent-skill list --select id,id +``` + +### List agentSkill records with filtering and ordering + +```bash +csdk agent-skill list --where.id.equalTo --orderBy ID_ASC +``` + +### Vector similarity search via `embedding` (manual vector) + +```bash +# Pass a pre-computed vector array via dot-notation +csdk agent-skill list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +### Vector semantic search via `embedding` with --auto-embed + +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk agent-skill search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk agent-skill list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +### Create/update with auto-embedded `embedding` via --auto-embed + +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk agent-skill create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk agent-skill update --embedding "new text to embed" --auto-embed +``` + +### Full-text search via tsvector (`search`) + +```bash +csdk agent-skill list --where.search "search query" --select title,tsvRank +``` + +### Fuzzy search via trigram similarity (`trgmTitle`) + +```bash +csdk agent-skill list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmDescription`) + +```bash +csdk agent-skill list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +### Fuzzy search via trigram similarity (`trgmBody`) + +```bash +csdk agent-skill list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +### Composite search (unifiedSearch dispatches to all text adapters) + +```bash +csdk agent-skill list --where.unifiedSearch "search query" --select title,tsvRank,titleTrgmSimilarity,descriptionTrgmSimilarity,bodyTrgmSimilarity,searchScore +``` + +### Search with pagination and field projection + +```bash +csdk agent-skill list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk agent-skill search "query" --limit 10 --select id,title,searchScore +``` + +### Create a agentSkill + +```bash +csdk agent-skill create --title --body [--createdBy ] [--updatedBy ] [--description ] [--keywords ] [--isActive ] [--metadata ] [--embedding ] [--embeddingUpdatedAt ] +``` + +### Get a agentSkill by id + +```bash +csdk agent-skill get --id +``` diff --git a/.agents/skills/cli-agent/references/agent-task.md b/.agents/skills/cli-agent/references/agent-task.md new file mode 100644 index 0000000000..c16e8c9e04 --- /dev/null +++ b/.agents/skills/cli-agent/references/agent-task.md @@ -0,0 +1,68 @@ +# agentTask + + + +CRUD operations for AgentTask records via csdk CLI + +## Usage + +```bash +csdk agent-task list +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 [--ownerId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task update --id [--ownerId ] [--status ] [--planId ] [--description ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task delete --id +``` + +## Examples + +### List agentTask records + +```bash +csdk agent-task list +``` + +### List agentTask records with pagination + +```bash +csdk agent-task list --limit 10 --offset 0 +``` + +### List agentTask records with cursor pagination + +```bash +csdk agent-task list --limit 10 --after +``` + +### Find first matching agentTask + +```bash +csdk agent-task find-first --where.id.equalTo +``` + +### List agentTask records with field selection + +```bash +csdk agent-task list --select id,id +``` + +### List agentTask records with filtering and ordering + +```bash +csdk agent-task list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentTask + +```bash +csdk agent-task create --planId --description [--ownerId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +``` + +### Get a agentTask by id + +```bash +csdk agent-task get --id +``` diff --git a/.agents/skills/cli-agent/references/agent-thread.md b/.agents/skills/cli-agent/references/agent-thread.md new file mode 100644 index 0000000000..58350b6e50 --- /dev/null +++ b/.agents/skills/cli-agent/references/agent-thread.md @@ -0,0 +1,68 @@ +# agentThread + + + +CRUD operations for AgentThread records via csdk CLI + +## Usage + +```bash +csdk agent-thread list +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 ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--promptTemplateId ] +csdk agent-thread update --id [--ownerId ] [--status ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--promptTemplateId ] +csdk agent-thread delete --id +``` + +## Examples + +### List agentThread records + +```bash +csdk agent-thread list +``` + +### List agentThread records with pagination + +```bash +csdk agent-thread list --limit 10 --offset 0 +``` + +### List agentThread records with cursor pagination + +```bash +csdk agent-thread list --limit 10 --after +``` + +### Find first matching agentThread + +```bash +csdk agent-thread find-first --where.id.equalTo +``` + +### List agentThread records with field selection + +```bash +csdk agent-thread list --select id,id +``` + +### List agentThread records with filtering and ordering + +```bash +csdk agent-thread list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentThread + +```bash +csdk agent-thread create [--ownerId ] [--status ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--promptTemplateId ] +``` + +### Get a agentThread by id + +```bash +csdk agent-thread get --id +``` diff --git a/.agents/skills/cli-agent/references/auth.md b/.agents/skills/cli-agent/references/auth.md new file mode 100644 index 0000000000..d24ec20dd5 --- /dev/null +++ b/.agents/skills/cli-agent/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-agent/references/config.md b/.agents/skills/cli-agent/references/config.md new file mode 100644 index 0000000000..cc1c23b7ba --- /dev/null +++ b/.agents/skills/cli-agent/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-agent/references/context.md b/.agents/skills/cli-agent/references/context.md new file mode 100644 index 0000000000..704ff09111 --- /dev/null +++ b/.agents/skills/cli-agent/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-agent/references/embedder.md b/.agents/skills/cli-agent/references/embedder.md new file mode 100644 index 0000000000..a401c48c6c --- /dev/null +++ b/.agents/skills/cli-agent/references/embedder.md @@ -0,0 +1,52 @@ +# Embedder Configuration + + + +Configure text-to-vector embedding for `--auto-embed` support in csdk. + +When an embedder is configured, you can pass plain text to vector fields and the CLI will automatically convert it to an embedding vector. + +**Supported providers:** ollama, openai + +**Configuration methods:** appstash config (persisted per-context) or environment variables + +## Usage + +```bash +# Configure via appstash config (persisted per-context) +csdk config set embedder.provider +csdk config set embedder.model +csdk config set embedder.baseUrl + +# Or configure via environment variables +EMBEDDER_PROVIDER= EMBEDDER_MODEL= EMBEDDER_BASE_URL= csdk +``` + +## Examples + +### Ollama with nomic-embed-text (open-source, local) + +```bash +# Start Ollama locally and pull the model +ollama pull nomic-embed-text + +# Register the embedder +csdk config set embedder.provider ollama +csdk config set embedder.model nomic-embed-text +csdk config set embedder.baseUrl http://localhost:11434 + +# Now use --auto-embed with any vector field +csdk agent-plan search "my query" --auto-embed +``` + +### OpenAI with an API key + +```bash +# Register the embedder +csdk config set embedder.provider openai +csdk config set embedder.model text-embedding-3-small +csdk config set embedder.apiKey sk-proj-...your-api-key + +# Or use environment variables +EMBEDDER_PROVIDER=openai EMBEDDER_MODEL=text-embedding-3-small EMBEDDER_API_KEY=sk-proj-...your-api-key csdk agent-plan search "my query" --auto-embed +``` diff --git a/.agents/skills/cli-agent/references/provision-bucket.md b/.agents/skills/cli-agent/references/provision-bucket.md new file mode 100644 index 0000000000..cc17ffbc21 --- /dev/null +++ b/.agents/skills/cli-agent/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-api/SKILL.md b/.agents/skills/cli-api/SKILL.md new file mode 100644 index 0000000000..1f350ae642 --- /dev/null +++ b/.agents/skills/cli-api/SKILL.md @@ -0,0 +1,113 @@ +--- +name: cli-api +description: CLI tool (csdk) for the api API — provides CRUD commands for 45 tables and 10 custom operations +--- + +# cli-api + + + +CLI tool (csdk) for the api API — provides CRUD commands for 45 tables and 10 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. function) +csdk function list +csdk function get --id +csdk function create -- + +# Non-interactive mode (skip all prompts, use flags only) +csdk --no-tty function 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 function list +``` + +### Non-interactive mode (for scripts and CI) + +```bash +csdk --no-tty function create -- +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [config](references/config.md) +- [function](references/function.md) +- [schema](references/schema.md) +- [table](references/table.md) +- [check-constraint](references/check-constraint.md) +- [field](references/field.md) +- [spatial-relation](references/spatial-relation.md) +- [foreign-key-constraint](references/foreign-key-constraint.md) +- [full-text-search](references/full-text-search.md) +- [index](references/index.md) +- [policy](references/policy.md) +- [primary-key-constraint](references/primary-key-constraint.md) +- [table-grant](references/table-grant.md) +- [trigger](references/trigger.md) +- [unique-constraint](references/unique-constraint.md) +- [view](references/view.md) +- [view-table](references/view-table.md) +- [view-grant](references/view-grant.md) +- [view-rule](references/view-rule.md) +- [embedding-chunk](references/embedding-chunk.md) +- [schema-grant](references/schema-grant.md) +- [default-privilege](references/default-privilege.md) +- [enum](references/enum.md) +- [api-schema](references/api-schema.md) +- [api-module](references/api-module.md) +- [domain](references/domain.md) +- [site-metadatum](references/site-metadatum.md) +- [site-module](references/site-module.md) +- [site-theme](references/site-theme.md) +- [cors-setting](references/cors-setting.md) +- [trigger-function](references/trigger-function.md) +- [partition](references/partition.md) +- [database-transfer](references/database-transfer.md) +- [api](references/api.md) +- [site](references/site.md) +- [app](references/app.md) +- [api-setting](references/api-setting.md) +- [migrate-file](references/migrate-file.md) +- [node-type-registry](references/node-type-registry.md) +- [pubkey-setting](references/pubkey-setting.md) +- [database](references/database.md) +- [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) +- [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) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-api/references/accept-database-transfer.md b/.agents/skills/cli-api/references/accept-database-transfer.md new file mode 100644 index 0000000000..c59a74b8f7 --- /dev/null +++ b/.agents/skills/cli-api/references/accept-database-transfer.md @@ -0,0 +1,19 @@ +# acceptDatabaseTransfer + + + +Execute the acceptDatabaseTransfer mutation + +## Usage + +```bash +csdk accept-database-transfer --input.clientMutationId --input.transferId +``` + +## Examples + +### Run acceptDatabaseTransfer + +```bash +csdk accept-database-transfer --input.clientMutationId --input.transferId +``` diff --git a/.agents/skills/cli-api/references/api-module.md b/.agents/skills/cli-api/references/api-module.md new file mode 100644 index 0000000000..7de5488eea --- /dev/null +++ b/.agents/skills/cli-api/references/api-module.md @@ -0,0 +1,68 @@ +# apiModule + + + +CRUD operations for ApiModule records via csdk CLI + +## Usage + +```bash +csdk api-module list +csdk api-module list --where.. --orderBy +csdk api-module list --limit 10 --after +csdk api-module find-first --where.. +csdk api-module get --id +csdk api-module create --databaseId --apiId --name --data +csdk api-module update --id [--databaseId ] [--apiId ] [--name ] [--data ] +csdk api-module delete --id +``` + +## Examples + +### List apiModule records + +```bash +csdk api-module list +``` + +### List apiModule records with pagination + +```bash +csdk api-module list --limit 10 --offset 0 +``` + +### List apiModule records with cursor pagination + +```bash +csdk api-module list --limit 10 --after +``` + +### Find first matching apiModule + +```bash +csdk api-module find-first --where.id.equalTo +``` + +### List apiModule records with field selection + +```bash +csdk api-module list --select id,id +``` + +### List apiModule records with filtering and ordering + +```bash +csdk api-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a apiModule + +```bash +csdk api-module create --databaseId --apiId --name --data +``` + +### Get a apiModule by id + +```bash +csdk api-module get --id +``` diff --git a/.agents/skills/cli-api/references/api-schema.md b/.agents/skills/cli-api/references/api-schema.md new file mode 100644 index 0000000000..23abc22c9b --- /dev/null +++ b/.agents/skills/cli-api/references/api-schema.md @@ -0,0 +1,68 @@ +# apiSchema + + + +CRUD operations for ApiSchema records via csdk CLI + +## Usage + +```bash +csdk api-schema list +csdk api-schema list --where.. --orderBy +csdk api-schema list --limit 10 --after +csdk api-schema find-first --where.. +csdk api-schema get --id +csdk api-schema create --databaseId --schemaId --apiId +csdk api-schema update --id [--databaseId ] [--schemaId ] [--apiId ] +csdk api-schema delete --id +``` + +## Examples + +### List apiSchema records + +```bash +csdk api-schema list +``` + +### List apiSchema records with pagination + +```bash +csdk api-schema list --limit 10 --offset 0 +``` + +### List apiSchema records with cursor pagination + +```bash +csdk api-schema list --limit 10 --after +``` + +### Find first matching apiSchema + +```bash +csdk api-schema find-first --where.id.equalTo +``` + +### List apiSchema records with field selection + +```bash +csdk api-schema list --select id,id +``` + +### List apiSchema records with filtering and ordering + +```bash +csdk api-schema list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a apiSchema + +```bash +csdk api-schema create --databaseId --schemaId --apiId +``` + +### Get a apiSchema by id + +```bash +csdk api-schema get --id +``` diff --git a/.agents/skills/cli-api/references/api-setting.md b/.agents/skills/cli-api/references/api-setting.md new file mode 100644 index 0000000000..da6e87b6c0 --- /dev/null +++ b/.agents/skills/cli-api/references/api-setting.md @@ -0,0 +1,68 @@ +# apiSetting + + + +CRUD operations for ApiSetting records via csdk CLI + +## Usage + +```bash +csdk api-setting list +csdk api-setting list --where.. --orderBy +csdk api-setting list --limit 10 --after +csdk api-setting find-first --where.. +csdk api-setting get --id +csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--enableI18N ] [--options ] +csdk api-setting update --id [--databaseId ] [--apiId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--enableI18N ] [--options ] +csdk api-setting delete --id +``` + +## Examples + +### List apiSetting records + +```bash +csdk api-setting list +``` + +### List apiSetting records with pagination + +```bash +csdk api-setting list --limit 10 --offset 0 +``` + +### List apiSetting records with cursor pagination + +```bash +csdk api-setting list --limit 10 --after +``` + +### Find first matching apiSetting + +```bash +csdk api-setting find-first --where.id.equalTo +``` + +### List apiSetting records with field selection + +```bash +csdk api-setting list --select id,id +``` + +### List apiSetting records with filtering and ordering + +```bash +csdk api-setting list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a apiSetting + +```bash +csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--enableI18N ] [--options ] +``` + +### Get a apiSetting by id + +```bash +csdk api-setting get --id +``` diff --git a/.agents/skills/cli-api/references/api.md b/.agents/skills/cli-api/references/api.md new file mode 100644 index 0000000000..2079938667 --- /dev/null +++ b/.agents/skills/cli-api/references/api.md @@ -0,0 +1,68 @@ +# api + + + +CRUD operations for Api records via csdk CLI + +## Usage + +```bash +csdk api list +csdk api list --where.. --orderBy +csdk api list --limit 10 --after +csdk api find-first --where.. +csdk api get --id +csdk api create --databaseId --name [--dbname ] [--roleName ] [--anonRole ] [--isPublic ] +csdk api update --id [--databaseId ] [--name ] [--dbname ] [--roleName ] [--anonRole ] [--isPublic ] +csdk api delete --id +``` + +## Examples + +### List api records + +```bash +csdk api list +``` + +### List api records with pagination + +```bash +csdk api list --limit 10 --offset 0 +``` + +### List api records with cursor pagination + +```bash +csdk api list --limit 10 --after +``` + +### Find first matching api + +```bash +csdk api find-first --where.id.equalTo +``` + +### List api records with field selection + +```bash +csdk api list --select id,id +``` + +### List api records with filtering and ordering + +```bash +csdk api list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a api + +```bash +csdk api create --databaseId --name [--dbname ] [--roleName ] [--anonRole ] [--isPublic ] +``` + +### Get a api by id + +```bash +csdk api get --id +``` diff --git a/.agents/skills/cli-api/references/app.md b/.agents/skills/cli-api/references/app.md new file mode 100644 index 0000000000..74913982c0 --- /dev/null +++ b/.agents/skills/cli-api/references/app.md @@ -0,0 +1,68 @@ +# app + + + +CRUD operations for App records via csdk CLI + +## Usage + +```bash +csdk app list +csdk app list --where.. --orderBy +csdk app list --limit 10 --after +csdk app find-first --where.. +csdk app get --id +csdk app create --databaseId --siteId [--name ] [--appImage ] [--appStoreLink ] [--appStoreId ] [--appIdPrefix ] [--playStoreLink ] +csdk app update --id [--databaseId ] [--siteId ] [--name ] [--appImage ] [--appStoreLink ] [--appStoreId ] [--appIdPrefix ] [--playStoreLink ] +csdk app delete --id +``` + +## Examples + +### List app records + +```bash +csdk app list +``` + +### List app records with pagination + +```bash +csdk app list --limit 10 --offset 0 +``` + +### List app records with cursor pagination + +```bash +csdk app list --limit 10 --after +``` + +### Find first matching app + +```bash +csdk app find-first --where.id.equalTo +``` + +### List app records with field selection + +```bash +csdk app list --select id,id +``` + +### List app records with filtering and ordering + +```bash +csdk app list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a app + +```bash +csdk app create --databaseId --siteId [--name ] [--appImage ] [--appStoreLink ] [--appStoreId ] [--appIdPrefix ] [--playStoreLink ] +``` + +### Get a app by id + +```bash +csdk app get --id +``` diff --git a/.agents/skills/cli-api/references/apply-registry-defaults.md b/.agents/skills/cli-api/references/apply-registry-defaults.md new file mode 100644 index 0000000000..4d691bfc49 --- /dev/null +++ b/.agents/skills/cli-api/references/apply-registry-defaults.md @@ -0,0 +1,19 @@ +# applyRegistryDefaults + + + +Execute the applyRegistryDefaults query + +## Usage + +```bash +csdk apply-registry-defaults --nodeType --data +``` + +## Examples + +### Run applyRegistryDefaults + +```bash +csdk apply-registry-defaults --nodeType --data +``` diff --git a/.agents/skills/cli-api/references/apply-rls.md b/.agents/skills/cli-api/references/apply-rls.md new file mode 100644 index 0000000000..16ebf16354 --- /dev/null +++ b/.agents/skills/cli-api/references/apply-rls.md @@ -0,0 +1,19 @@ +# applyRls + + + +Execute the applyRls mutation + +## Usage + +```bash +csdk apply-rls --input.clientMutationId --input.tableId --input.grants --input.policyType --input.vars --input.fieldIds --input.permissive --input.name +``` + +## Examples + +### Run applyRls + +```bash +csdk apply-rls --input.clientMutationId --input.tableId --input.grants --input.policyType --input.vars --input.fieldIds --input.permissive --input.name +``` diff --git a/.agents/skills/cli-api/references/ast-migration.md b/.agents/skills/cli-api/references/ast-migration.md new file mode 100644 index 0000000000..5071163196 --- /dev/null +++ b/.agents/skills/cli-api/references/ast-migration.md @@ -0,0 +1,68 @@ +# astMigration + + + +CRUD operations for AstMigration records via csdk CLI + +## Usage + +```bash +csdk ast-migration list +csdk ast-migration list --where.. --orderBy +csdk ast-migration list --limit 10 --after +csdk ast-migration find-first --where.. +csdk ast-migration get --id +csdk ast-migration create [--databaseId ] [--name ] [--requires ] [--payload ] [--deploys ] [--deploy ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] +csdk ast-migration update --id [--databaseId ] [--name ] [--requires ] [--payload ] [--deploys ] [--deploy ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] +csdk ast-migration delete --id +``` + +## Examples + +### List astMigration records + +```bash +csdk ast-migration list +``` + +### List astMigration records with pagination + +```bash +csdk ast-migration list --limit 10 --offset 0 +``` + +### List astMigration records with cursor pagination + +```bash +csdk ast-migration list --limit 10 --after +``` + +### Find first matching astMigration + +```bash +csdk ast-migration find-first --where.id.equalTo +``` + +### List astMigration records with field selection + +```bash +csdk ast-migration list --select id,id +``` + +### List astMigration records with filtering and ordering + +```bash +csdk ast-migration list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a astMigration + +```bash +csdk ast-migration create [--databaseId ] [--name ] [--requires ] [--payload ] [--deploys ] [--deploy ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] +``` + +### Get a astMigration by id + +```bash +csdk ast-migration get --id +``` diff --git a/.agents/skills/cli-api/references/auth.md b/.agents/skills/cli-api/references/auth.md new file mode 100644 index 0000000000..d24ec20dd5 --- /dev/null +++ b/.agents/skills/cli-api/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-api/references/bootstrap-user.md b/.agents/skills/cli-api/references/bootstrap-user.md new file mode 100644 index 0000000000..0c882e38bc --- /dev/null +++ b/.agents/skills/cli-api/references/bootstrap-user.md @@ -0,0 +1,19 @@ +# bootstrapUser + + + +Execute the bootstrapUser mutation + +## Usage + +```bash +csdk bootstrap-user --input.clientMutationId --input.targetDatabaseId --input.password --input.isAdmin --input.isOwner --input.username --input.displayName --input.returnApiKey +``` + +## Examples + +### Run bootstrapUser + +```bash +csdk bootstrap-user --input.clientMutationId --input.targetDatabaseId --input.password --input.isAdmin --input.isOwner --input.username --input.displayName --input.returnApiKey +``` diff --git a/.agents/skills/cli-api/references/cancel-database-transfer.md b/.agents/skills/cli-api/references/cancel-database-transfer.md new file mode 100644 index 0000000000..f95c345a33 --- /dev/null +++ b/.agents/skills/cli-api/references/cancel-database-transfer.md @@ -0,0 +1,19 @@ +# cancelDatabaseTransfer + + + +Execute the cancelDatabaseTransfer mutation + +## Usage + +```bash +csdk cancel-database-transfer --input.clientMutationId --input.transferId +``` + +## Examples + +### Run cancelDatabaseTransfer + +```bash +csdk cancel-database-transfer --input.clientMutationId --input.transferId +``` diff --git a/.agents/skills/cli-api/references/check-constraint.md b/.agents/skills/cli-api/references/check-constraint.md new file mode 100644 index 0000000000..fcf131c5de --- /dev/null +++ b/.agents/skills/cli-api/references/check-constraint.md @@ -0,0 +1,68 @@ +# checkConstraint + + + +CRUD operations for CheckConstraint records via csdk CLI + +## Usage + +```bash +csdk check-constraint list +csdk check-constraint list --where.. --orderBy +csdk check-constraint list --limit 10 --after +csdk check-constraint find-first --where.. +csdk check-constraint get --id +csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk check-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk check-constraint delete --id +``` + +## Examples + +### List checkConstraint records + +```bash +csdk check-constraint list +``` + +### List checkConstraint records with pagination + +```bash +csdk check-constraint list --limit 10 --offset 0 +``` + +### List checkConstraint records with cursor pagination + +```bash +csdk check-constraint list --limit 10 --after +``` + +### Find first matching checkConstraint + +```bash +csdk check-constraint find-first --where.id.equalTo +``` + +### List checkConstraint records with field selection + +```bash +csdk check-constraint list --select id,id +``` + +### List checkConstraint records with filtering and ordering + +```bash +csdk check-constraint list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a checkConstraint + +```bash +csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a checkConstraint by id + +```bash +csdk check-constraint get --id +``` diff --git a/.agents/skills/cli-api/references/config.md b/.agents/skills/cli-api/references/config.md new file mode 100644 index 0000000000..cc1c23b7ba --- /dev/null +++ b/.agents/skills/cli-api/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-api/references/context.md b/.agents/skills/cli-api/references/context.md new file mode 100644 index 0000000000..704ff09111 --- /dev/null +++ b/.agents/skills/cli-api/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-api/references/cors-setting.md b/.agents/skills/cli-api/references/cors-setting.md new file mode 100644 index 0000000000..fd7f038a73 --- /dev/null +++ b/.agents/skills/cli-api/references/cors-setting.md @@ -0,0 +1,68 @@ +# corsSetting + + + +CRUD operations for CorsSetting records via csdk CLI + +## Usage + +```bash +csdk cors-setting list +csdk cors-setting list --where.. --orderBy +csdk cors-setting list --limit 10 --after +csdk cors-setting find-first --where.. +csdk cors-setting get --id +csdk cors-setting create --databaseId [--apiId ] [--allowedOrigins ] +csdk cors-setting update --id [--databaseId ] [--apiId ] [--allowedOrigins ] +csdk cors-setting delete --id +``` + +## Examples + +### List corsSetting records + +```bash +csdk cors-setting list +``` + +### List corsSetting records with pagination + +```bash +csdk cors-setting list --limit 10 --offset 0 +``` + +### List corsSetting records with cursor pagination + +```bash +csdk cors-setting list --limit 10 --after +``` + +### Find first matching corsSetting + +```bash +csdk cors-setting find-first --where.id.equalTo +``` + +### List corsSetting records with field selection + +```bash +csdk cors-setting list --select id,id +``` + +### List corsSetting records with filtering and ordering + +```bash +csdk cors-setting list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a corsSetting + +```bash +csdk cors-setting create --databaseId [--apiId ] [--allowedOrigins ] +``` + +### Get a corsSetting by id + +```bash +csdk cors-setting get --id +``` diff --git a/.agents/skills/cli-api/references/create-user-database.md b/.agents/skills/cli-api/references/create-user-database.md new file mode 100644 index 0000000000..a0b5ee7688 --- /dev/null +++ b/.agents/skills/cli-api/references/create-user-database.md @@ -0,0 +1,35 @@ +# 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) + +Returns the database_id UUID of the newly created database. + +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 + + +## Usage + +```bash +csdk create-user-database --input.clientMutationId --input.databaseName --input.ownerId --input.includeInvites --input.includeGroups --input.includeLevels --input.bitlen --input.tokensExpiration +``` + +## Examples + +### Run createUserDatabase + +```bash +csdk create-user-database --input.clientMutationId --input.databaseName --input.ownerId --input.includeInvites --input.includeGroups --input.includeLevels --input.bitlen --input.tokensExpiration +``` diff --git a/.agents/skills/cli-api/references/database-setting.md b/.agents/skills/cli-api/references/database-setting.md new file mode 100644 index 0000000000..fc02e75b15 --- /dev/null +++ b/.agents/skills/cli-api/references/database-setting.md @@ -0,0 +1,68 @@ +# databaseSetting + + + +CRUD operations for DatabaseSetting records via csdk CLI + +## Usage + +```bash +csdk database-setting list +csdk database-setting list --where.. --orderBy +csdk database-setting list --limit 10 --after +csdk database-setting find-first --where.. +csdk database-setting get --id +csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--enableI18N ] [--options ] +csdk database-setting update --id [--databaseId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--enableI18N ] [--options ] +csdk database-setting delete --id +``` + +## Examples + +### List databaseSetting records + +```bash +csdk database-setting list +``` + +### List databaseSetting records with pagination + +```bash +csdk database-setting list --limit 10 --offset 0 +``` + +### List databaseSetting records with cursor pagination + +```bash +csdk database-setting list --limit 10 --after +``` + +### Find first matching databaseSetting + +```bash +csdk database-setting find-first --where.id.equalTo +``` + +### List databaseSetting records with field selection + +```bash +csdk database-setting list --select id,id +``` + +### List databaseSetting records with filtering and ordering + +```bash +csdk database-setting list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseSetting + +```bash +csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--enableI18N ] [--options ] +``` + +### Get a databaseSetting by id + +```bash +csdk database-setting get --id +``` diff --git a/.agents/skills/cli-api/references/database-transfer.md b/.agents/skills/cli-api/references/database-transfer.md new file mode 100644 index 0000000000..50de091178 --- /dev/null +++ b/.agents/skills/cli-api/references/database-transfer.md @@ -0,0 +1,68 @@ +# databaseTransfer + + + +CRUD operations for DatabaseTransfer records via csdk CLI + +## Usage + +```bash +csdk database-transfer list +csdk database-transfer list --where.. --orderBy +csdk database-transfer list --limit 10 --after +csdk database-transfer find-first --where.. +csdk database-transfer get --id +csdk database-transfer create --databaseId --targetOwnerId --initiatedBy [--sourceApproved ] [--targetApproved ] [--sourceApprovedAt ] [--targetApprovedAt ] [--status ] [--notes ] [--expiresAt ] [--completedAt ] +csdk database-transfer update --id [--databaseId ] [--targetOwnerId ] [--sourceApproved ] [--targetApproved ] [--sourceApprovedAt ] [--targetApprovedAt ] [--status ] [--initiatedBy ] [--notes ] [--expiresAt ] [--completedAt ] +csdk database-transfer delete --id +``` + +## Examples + +### List databaseTransfer records + +```bash +csdk database-transfer list +``` + +### List databaseTransfer records with pagination + +```bash +csdk database-transfer list --limit 10 --offset 0 +``` + +### List databaseTransfer records with cursor pagination + +```bash +csdk database-transfer list --limit 10 --after +``` + +### Find first matching databaseTransfer + +```bash +csdk database-transfer find-first --where.id.equalTo +``` + +### List databaseTransfer records with field selection + +```bash +csdk database-transfer list --select id,id +``` + +### List databaseTransfer records with filtering and ordering + +```bash +csdk database-transfer list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a databaseTransfer + +```bash +csdk database-transfer create --databaseId --targetOwnerId --initiatedBy [--sourceApproved ] [--targetApproved ] [--sourceApprovedAt ] [--targetApprovedAt ] [--status ] [--notes ] [--expiresAt ] [--completedAt ] +``` + +### Get a databaseTransfer by id + +```bash +csdk database-transfer get --id +``` diff --git a/.agents/skills/cli-api/references/database.md b/.agents/skills/cli-api/references/database.md new file mode 100644 index 0000000000..35e71400b2 --- /dev/null +++ b/.agents/skills/cli-api/references/database.md @@ -0,0 +1,68 @@ +# database + + + +CRUD operations for Database records via csdk CLI + +## Usage + +```bash +csdk database list +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 delete --id +``` + +## Examples + +### List database records + +```bash +csdk database list +``` + +### List database records with pagination + +```bash +csdk database list --limit 10 --offset 0 +``` + +### List database records with cursor pagination + +```bash +csdk database list --limit 10 --after +``` + +### Find first matching database + +```bash +csdk database find-first --where.id.equalTo +``` + +### List database records with field selection + +```bash +csdk database list --select id,id +``` + +### List database records with filtering and ordering + +```bash +csdk database list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a database + +```bash +csdk database create [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] +``` + +### Get a database by id + +```bash +csdk database get --id +``` diff --git a/.agents/skills/cli-api/references/default-privilege.md b/.agents/skills/cli-api/references/default-privilege.md new file mode 100644 index 0000000000..ae3d299bee --- /dev/null +++ b/.agents/skills/cli-api/references/default-privilege.md @@ -0,0 +1,68 @@ +# defaultPrivilege + + + +CRUD operations for DefaultPrivilege records via csdk CLI + +## Usage + +```bash +csdk default-privilege list +csdk default-privilege list --where.. --orderBy +csdk default-privilege list --limit 10 --after +csdk default-privilege find-first --where.. +csdk default-privilege get --id +csdk default-privilege create --schemaId --objectType --privilege --granteeName [--databaseId ] [--isGrant ] +csdk default-privilege update --id [--databaseId ] [--schemaId ] [--objectType ] [--privilege ] [--granteeName ] [--isGrant ] +csdk default-privilege delete --id +``` + +## Examples + +### List defaultPrivilege records + +```bash +csdk default-privilege list +``` + +### List defaultPrivilege records with pagination + +```bash +csdk default-privilege list --limit 10 --offset 0 +``` + +### List defaultPrivilege records with cursor pagination + +```bash +csdk default-privilege list --limit 10 --after +``` + +### Find first matching defaultPrivilege + +```bash +csdk default-privilege find-first --where.id.equalTo +``` + +### List defaultPrivilege records with field selection + +```bash +csdk default-privilege list --select id,id +``` + +### List defaultPrivilege records with filtering and ordering + +```bash +csdk default-privilege list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a defaultPrivilege + +```bash +csdk default-privilege create --schemaId --objectType --privilege --granteeName [--databaseId ] [--isGrant ] +``` + +### Get a defaultPrivilege by id + +```bash +csdk default-privilege get --id +``` diff --git a/.agents/skills/cli-api/references/domain.md b/.agents/skills/cli-api/references/domain.md new file mode 100644 index 0000000000..b48978a13b --- /dev/null +++ b/.agents/skills/cli-api/references/domain.md @@ -0,0 +1,68 @@ +# domain + + + +CRUD operations for Domain records via csdk CLI + +## Usage + +```bash +csdk domain list +csdk domain list --where.. --orderBy +csdk domain list --limit 10 --after +csdk domain find-first --where.. +csdk domain get --id +csdk domain create --databaseId [--apiId ] [--siteId ] [--subdomain ] [--domain ] +csdk domain update --id [--databaseId ] [--apiId ] [--siteId ] [--subdomain ] [--domain ] +csdk domain delete --id +``` + +## Examples + +### List domain records + +```bash +csdk domain list +``` + +### List domain records with pagination + +```bash +csdk domain list --limit 10 --offset 0 +``` + +### List domain records with cursor pagination + +```bash +csdk domain list --limit 10 --after +``` + +### Find first matching domain + +```bash +csdk domain find-first --where.id.equalTo +``` + +### List domain records with field selection + +```bash +csdk domain list --select id,id +``` + +### List domain records with filtering and ordering + +```bash +csdk domain list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a domain + +```bash +csdk domain create --databaseId [--apiId ] [--siteId ] [--subdomain ] [--domain ] +``` + +### Get a domain by id + +```bash +csdk domain get --id +``` diff --git a/.agents/skills/cli-api/references/embedding-chunk.md b/.agents/skills/cli-api/references/embedding-chunk.md new file mode 100644 index 0000000000..fc5a6e993d --- /dev/null +++ b/.agents/skills/cli-api/references/embedding-chunk.md @@ -0,0 +1,68 @@ +# embeddingChunk + + + +CRUD operations for EmbeddingChunk records via csdk CLI + +## Usage + +```bash +csdk embedding-chunk list +csdk embedding-chunk list --where.. --orderBy +csdk embedding-chunk list --limit 10 --after +csdk embedding-chunk find-first --where.. +csdk embedding-chunk get --id +csdk embedding-chunk create --tableId [--databaseId ] [--embeddingFieldId ] [--chunksTableId ] [--chunksTableName ] [--contentFieldName ] [--dimensions ] [--metric ] [--chunkSize ] [--chunkOverlap ] [--chunkStrategy ] [--metadataFields ] [--searchIndexes ] [--enqueueChunkingJob ] [--chunkingTaskName ] [--embeddingModel ] [--embeddingProvider ] [--parentFkFieldId ] +csdk embedding-chunk update --id [--databaseId ] [--tableId ] [--embeddingFieldId ] [--chunksTableId ] [--chunksTableName ] [--contentFieldName ] [--dimensions ] [--metric ] [--chunkSize ] [--chunkOverlap ] [--chunkStrategy ] [--metadataFields ] [--searchIndexes ] [--enqueueChunkingJob ] [--chunkingTaskName ] [--embeddingModel ] [--embeddingProvider ] [--parentFkFieldId ] +csdk embedding-chunk delete --id +``` + +## Examples + +### List embeddingChunk records + +```bash +csdk embedding-chunk list +``` + +### List embeddingChunk records with pagination + +```bash +csdk embedding-chunk list --limit 10 --offset 0 +``` + +### List embeddingChunk records with cursor pagination + +```bash +csdk embedding-chunk list --limit 10 --after +``` + +### Find first matching embeddingChunk + +```bash +csdk embedding-chunk find-first --where.id.equalTo +``` + +### List embeddingChunk records with field selection + +```bash +csdk embedding-chunk list --select id,id +``` + +### List embeddingChunk records with filtering and ordering + +```bash +csdk embedding-chunk list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a embeddingChunk + +```bash +csdk embedding-chunk create --tableId [--databaseId ] [--embeddingFieldId ] [--chunksTableId ] [--chunksTableName ] [--contentFieldName ] [--dimensions ] [--metric ] [--chunkSize ] [--chunkOverlap ] [--chunkStrategy ] [--metadataFields ] [--searchIndexes ] [--enqueueChunkingJob ] [--chunkingTaskName ] [--embeddingModel ] [--embeddingProvider ] [--parentFkFieldId ] +``` + +### Get a embeddingChunk by id + +```bash +csdk embedding-chunk get --id +``` diff --git a/.agents/skills/cli-api/references/enum.md b/.agents/skills/cli-api/references/enum.md new file mode 100644 index 0000000000..756eea869d --- /dev/null +++ b/.agents/skills/cli-api/references/enum.md @@ -0,0 +1,68 @@ +# enum + + + +CRUD operations for Enum records via csdk CLI + +## Usage + +```bash +csdk enum list +csdk enum list --where.. --orderBy +csdk enum list --limit 10 --after +csdk enum find-first --where.. +csdk enum get --id +csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk enum update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk enum delete --id +``` + +## Examples + +### List enum records + +```bash +csdk enum list +``` + +### List enum records with pagination + +```bash +csdk enum list --limit 10 --offset 0 +``` + +### List enum records with cursor pagination + +```bash +csdk enum list --limit 10 --after +``` + +### Find first matching enum + +```bash +csdk enum find-first --where.id.equalTo +``` + +### List enum records with field selection + +```bash +csdk enum list --select id,id +``` + +### List enum records with filtering and ordering + +```bash +csdk enum list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a enum + +```bash +csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a enum by id + +```bash +csdk enum get --id +``` diff --git a/.agents/skills/cli-api/references/field.md b/.agents/skills/cli-api/references/field.md new file mode 100644 index 0000000000..2c4d071dd7 --- /dev/null +++ b/.agents/skills/cli-api/references/field.md @@ -0,0 +1,68 @@ +# field + + + +CRUD operations for Field records via csdk CLI + +## Usage + +```bash +csdk field list +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 ] [--module ] [--scope ] +csdk field update --id [--databaseId ] [--tableId ] [--name ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--type ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--module ] [--scope ] +csdk field delete --id +``` + +## Examples + +### List field records + +```bash +csdk field list +``` + +### List field records with pagination + +```bash +csdk field list --limit 10 --offset 0 +``` + +### List field records with cursor pagination + +```bash +csdk field list --limit 10 --after +``` + +### Find first matching field + +```bash +csdk field find-first --where.id.equalTo +``` + +### List field records with field selection + +```bash +csdk field list --select id,id +``` + +### List field records with filtering and ordering + +```bash +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 ] [--module ] [--scope ] +``` + +### Get a field by id + +```bash +csdk field get --id +``` diff --git a/.agents/skills/cli-api/references/foreign-key-constraint.md b/.agents/skills/cli-api/references/foreign-key-constraint.md new file mode 100644 index 0000000000..4dd8dd2ef6 --- /dev/null +++ b/.agents/skills/cli-api/references/foreign-key-constraint.md @@ -0,0 +1,68 @@ +# foreignKeyConstraint + + + +CRUD operations for ForeignKeyConstraint records via csdk CLI + +## Usage + +```bash +csdk foreign-key-constraint list +csdk foreign-key-constraint list --where.. --orderBy +csdk foreign-key-constraint list --limit 10 --after +csdk foreign-key-constraint find-first --where.. +csdk foreign-key-constraint get --id +csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] +csdk foreign-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--refTableId ] [--refFieldIds ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] +csdk foreign-key-constraint delete --id +``` + +## Examples + +### List foreignKeyConstraint records + +```bash +csdk foreign-key-constraint list +``` + +### List foreignKeyConstraint records with pagination + +```bash +csdk foreign-key-constraint list --limit 10 --offset 0 +``` + +### List foreignKeyConstraint records with cursor pagination + +```bash +csdk foreign-key-constraint list --limit 10 --after +``` + +### Find first matching foreignKeyConstraint + +```bash +csdk foreign-key-constraint find-first --where.id.equalTo +``` + +### List foreignKeyConstraint records with field selection + +```bash +csdk foreign-key-constraint list --select id,id +``` + +### List foreignKeyConstraint records with filtering and ordering + +```bash +csdk foreign-key-constraint list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a foreignKeyConstraint + +```bash +csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a foreignKeyConstraint by id + +```bash +csdk foreign-key-constraint get --id +``` diff --git a/.agents/skills/cli-api/references/full-text-search.md b/.agents/skills/cli-api/references/full-text-search.md new file mode 100644 index 0000000000..6145e85744 --- /dev/null +++ b/.agents/skills/cli-api/references/full-text-search.md @@ -0,0 +1,68 @@ +# fullTextSearch + + + +CRUD operations for FullTextSearch records via csdk CLI + +## Usage + +```bash +csdk full-text-search list +csdk full-text-search list --where.. --orderBy +csdk full-text-search list --limit 10 --after +csdk full-text-search find-first --where.. +csdk full-text-search get --id +csdk full-text-search create --tableId --fieldId --fieldIds --weights --langs [--databaseId ] [--langColumn ] +csdk full-text-search update --id [--databaseId ] [--tableId ] [--fieldId ] [--fieldIds ] [--weights ] [--langs ] [--langColumn ] +csdk full-text-search delete --id +``` + +## Examples + +### List fullTextSearch records + +```bash +csdk full-text-search list +``` + +### List fullTextSearch records with pagination + +```bash +csdk full-text-search list --limit 10 --offset 0 +``` + +### List fullTextSearch records with cursor pagination + +```bash +csdk full-text-search list --limit 10 --after +``` + +### Find first matching fullTextSearch + +```bash +csdk full-text-search find-first --where.id.equalTo +``` + +### List fullTextSearch records with field selection + +```bash +csdk full-text-search list --select id,id +``` + +### List fullTextSearch records with filtering and ordering + +```bash +csdk full-text-search list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a fullTextSearch + +```bash +csdk full-text-search create --tableId --fieldId --fieldIds --weights --langs [--databaseId ] [--langColumn ] +``` + +### Get a fullTextSearch by id + +```bash +csdk full-text-search get --id +``` diff --git a/.agents/skills/cli-api/references/function.md b/.agents/skills/cli-api/references/function.md new file mode 100644 index 0000000000..a7571ed4f8 --- /dev/null +++ b/.agents/skills/cli-api/references/function.md @@ -0,0 +1,68 @@ +# function + + + +CRUD operations for Function records via csdk CLI + +## Usage + +```bash +csdk function list +csdk function list --where.. --orderBy +csdk function list --limit 10 --after +csdk function find-first --where.. +csdk function get --id +csdk function create --databaseId --schemaId --name +csdk function update --id [--databaseId ] [--schemaId ] [--name ] +csdk function delete --id +``` + +## Examples + +### List function records + +```bash +csdk function list +``` + +### List function records with pagination + +```bash +csdk function list --limit 10 --offset 0 +``` + +### List function records with cursor pagination + +```bash +csdk function list --limit 10 --after +``` + +### Find first matching function + +```bash +csdk function find-first --where.id.equalTo +``` + +### List function records with field selection + +```bash +csdk function list --select id,id +``` + +### List function records with filtering and ordering + +```bash +csdk function list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a function + +```bash +csdk function create --databaseId --schemaId --name +``` + +### Get a function by id + +```bash +csdk function get --id +``` diff --git a/.agents/skills/cli-api/references/index.md b/.agents/skills/cli-api/references/index.md new file mode 100644 index 0000000000..06ae4bee73 --- /dev/null +++ b/.agents/skills/cli-api/references/index.md @@ -0,0 +1,68 @@ +# index + + + +CRUD operations for Index records via csdk CLI + +## Usage + +```bash +csdk index list +csdk index list --where.. --orderBy +csdk index list --limit 10 --after +csdk index find-first --where.. +csdk index get --id +csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk index update --id [--databaseId ] [--tableId ] [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk index delete --id +``` + +## Examples + +### List index records + +```bash +csdk index list +``` + +### List index records with pagination + +```bash +csdk index list --limit 10 --offset 0 +``` + +### List index records with cursor pagination + +```bash +csdk index list --limit 10 --after +``` + +### Find first matching index + +```bash +csdk index find-first --where.id.equalTo +``` + +### List index records with field selection + +```bash +csdk index list --select id,id +``` + +### List index records with filtering and ordering + +```bash +csdk index list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a index + +```bash +csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a index by id + +```bash +csdk index get --id +``` diff --git a/.agents/skills/cli-api/references/migrate-file.md b/.agents/skills/cli-api/references/migrate-file.md new file mode 100644 index 0000000000..9c3d27ab6b --- /dev/null +++ b/.agents/skills/cli-api/references/migrate-file.md @@ -0,0 +1,68 @@ +# migrateFile + + + +CRUD operations for MigrateFile records via csdk CLI + +## Usage + +```bash +csdk migrate-file list +csdk migrate-file list --where.. --orderBy +csdk migrate-file list --limit 10 --after +csdk migrate-file find-first --where.. +csdk migrate-file get --id +csdk migrate-file create [--databaseId ] [--upload ] +csdk migrate-file update --id [--databaseId ] [--upload ] +csdk migrate-file delete --id +``` + +## Examples + +### List migrateFile records + +```bash +csdk migrate-file list +``` + +### List migrateFile records with pagination + +```bash +csdk migrate-file list --limit 10 --offset 0 +``` + +### List migrateFile records with cursor pagination + +```bash +csdk migrate-file list --limit 10 --after +``` + +### Find first matching migrateFile + +```bash +csdk migrate-file find-first --where.id.equalTo +``` + +### List migrateFile records with field selection + +```bash +csdk migrate-file list --select id,id +``` + +### List migrateFile records with filtering and ordering + +```bash +csdk migrate-file list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a migrateFile + +```bash +csdk migrate-file create [--databaseId ] [--upload ] +``` + +### Get a migrateFile by id + +```bash +csdk migrate-file get --id +``` diff --git a/.agents/skills/cli-api/references/node-type-registry.md b/.agents/skills/cli-api/references/node-type-registry.md new file mode 100644 index 0000000000..fd008214ad --- /dev/null +++ b/.agents/skills/cli-api/references/node-type-registry.md @@ -0,0 +1,68 @@ +# nodeTypeRegistry + + + +CRUD operations for NodeTypeRegistry records via csdk CLI + +## Usage + +```bash +csdk node-type-registry list +csdk node-type-registry list --where.. --orderBy +csdk node-type-registry list --limit 10 --after +csdk node-type-registry find-first --where.. +csdk node-type-registry get --name +csdk node-type-registry create --slug --category [--displayName ] [--description ] [--parameterSchema ] [--tags ] +csdk node-type-registry update --name [--slug ] [--category ] [--displayName ] [--description ] [--parameterSchema ] [--tags ] +csdk node-type-registry delete --name +``` + +## Examples + +### List nodeTypeRegistry records + +```bash +csdk node-type-registry list +``` + +### List nodeTypeRegistry records with pagination + +```bash +csdk node-type-registry list --limit 10 --offset 0 +``` + +### List nodeTypeRegistry records with cursor pagination + +```bash +csdk node-type-registry list --limit 10 --after +``` + +### Find first matching nodeTypeRegistry + +```bash +csdk node-type-registry find-first --where.name.equalTo +``` + +### List nodeTypeRegistry records with field selection + +```bash +csdk node-type-registry list --select id,name +``` + +### List nodeTypeRegistry records with filtering and ordering + +```bash +csdk node-type-registry list --where.name.equalTo --orderBy NAME_ASC +``` + +### Create a nodeTypeRegistry + +```bash +csdk node-type-registry create --slug --category [--displayName ] [--description ] [--parameterSchema ] [--tags ] +``` + +### Get a nodeTypeRegistry by name + +```bash +csdk node-type-registry get --name +``` diff --git a/.agents/skills/cli-api/references/partition.md b/.agents/skills/cli-api/references/partition.md new file mode 100644 index 0000000000..2df3699c0f --- /dev/null +++ b/.agents/skills/cli-api/references/partition.md @@ -0,0 +1,68 @@ +# partition + + + +CRUD operations for Partition records via csdk CLI + +## Usage + +```bash +csdk partition list +csdk partition list --where.. --orderBy +csdk partition list --limit 10 --after +csdk partition find-first --where.. +csdk partition get --id +csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] [--isParented ] +csdk partition update --id [--databaseId ] [--tableId ] [--strategy ] [--partitionKeyId ] [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] [--isParented ] +csdk partition delete --id +``` + +## Examples + +### List partition records + +```bash +csdk partition list +``` + +### List partition records with pagination + +```bash +csdk partition list --limit 10 --offset 0 +``` + +### List partition records with cursor pagination + +```bash +csdk partition list --limit 10 --after +``` + +### Find first matching partition + +```bash +csdk partition find-first --where.id.equalTo +``` + +### List partition records with field selection + +```bash +csdk partition list --select id,id +``` + +### List partition records with filtering and ordering + +```bash +csdk partition list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a partition + +```bash +csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] [--isParented ] +``` + +### Get a partition by id + +```bash +csdk partition get --id +``` diff --git a/.agents/skills/cli-api/references/policy.md b/.agents/skills/cli-api/references/policy.md new file mode 100644 index 0000000000..db7ce17a5a --- /dev/null +++ b/.agents/skills/cli-api/references/policy.md @@ -0,0 +1,68 @@ +# policy + + + +CRUD operations for Policy records via csdk CLI + +## Usage + +```bash +csdk policy list +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 ] [--module ] [--scope ] [--tags ] +csdk policy update --id [--databaseId ] [--tableId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk policy delete --id +``` + +## Examples + +### List policy records + +```bash +csdk policy list +``` + +### List policy records with pagination + +```bash +csdk policy list --limit 10 --offset 0 +``` + +### List policy records with cursor pagination + +```bash +csdk policy list --limit 10 --after +``` + +### Find first matching policy + +```bash +csdk policy find-first --where.id.equalTo +``` + +### List policy records with field selection + +```bash +csdk policy list --select id,id +``` + +### List policy records with filtering and ordering + +```bash +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 ] [--module ] [--scope ] [--tags ] +``` + +### Get a policy by id + +```bash +csdk policy get --id +``` diff --git a/.agents/skills/cli-api/references/primary-key-constraint.md b/.agents/skills/cli-api/references/primary-key-constraint.md new file mode 100644 index 0000000000..9980cec19c --- /dev/null +++ b/.agents/skills/cli-api/references/primary-key-constraint.md @@ -0,0 +1,68 @@ +# primaryKeyConstraint + + + +CRUD operations for PrimaryKeyConstraint records via csdk CLI + +## Usage + +```bash +csdk primary-key-constraint list +csdk primary-key-constraint list --where.. --orderBy +csdk primary-key-constraint list --limit 10 --after +csdk primary-key-constraint find-first --where.. +csdk primary-key-constraint get --id +csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk primary-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk primary-key-constraint delete --id +``` + +## Examples + +### List primaryKeyConstraint records + +```bash +csdk primary-key-constraint list +``` + +### List primaryKeyConstraint records with pagination + +```bash +csdk primary-key-constraint list --limit 10 --offset 0 +``` + +### List primaryKeyConstraint records with cursor pagination + +```bash +csdk primary-key-constraint list --limit 10 --after +``` + +### Find first matching primaryKeyConstraint + +```bash +csdk primary-key-constraint find-first --where.id.equalTo +``` + +### List primaryKeyConstraint records with field selection + +```bash +csdk primary-key-constraint list --select id,id +``` + +### List primaryKeyConstraint records with filtering and ordering + +```bash +csdk primary-key-constraint list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a primaryKeyConstraint + +```bash +csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a primaryKeyConstraint by id + +```bash +csdk primary-key-constraint get --id +``` diff --git a/.agents/skills/cli-api/references/provision-bucket.md b/.agents/skills/cli-api/references/provision-bucket.md new file mode 100644 index 0000000000..cc17ffbc21 --- /dev/null +++ b/.agents/skills/cli-api/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-api/references/provision-database-with-user.md b/.agents/skills/cli-api/references/provision-database-with-user.md new file mode 100644 index 0000000000..d4cbb44f15 --- /dev/null +++ b/.agents/skills/cli-api/references/provision-database-with-user.md @@ -0,0 +1,19 @@ +# provisionDatabaseWithUser + + + +Execute the provisionDatabaseWithUser mutation + +## Usage + +```bash +csdk provision-database-with-user --input.clientMutationId --input.pDatabaseName --input.pDomain --input.pSubdomain --input.pModules --input.pOptions +``` + +## Examples + +### Run provisionDatabaseWithUser + +```bash +csdk provision-database-with-user --input.clientMutationId --input.pDatabaseName --input.pDomain --input.pSubdomain --input.pModules --input.pOptions +``` diff --git a/.agents/skills/cli-api/references/pubkey-setting.md b/.agents/skills/cli-api/references/pubkey-setting.md new file mode 100644 index 0000000000..24accd69b9 --- /dev/null +++ b/.agents/skills/cli-api/references/pubkey-setting.md @@ -0,0 +1,68 @@ +# pubkeySetting + + + +CRUD operations for PubkeySetting records via csdk CLI + +## Usage + +```bash +csdk pubkey-setting list +csdk pubkey-setting list --where.. --orderBy +csdk pubkey-setting list --limit 10 --after +csdk pubkey-setting find-first --where.. +csdk pubkey-setting get --id +csdk pubkey-setting create --databaseId [--schemaId ] [--cryptoNetwork ] [--userField ] [--signUpWithKeyFunctionId ] [--signInRequestChallengeFunctionId ] [--signInRecordFailureFunctionId ] [--signInWithChallengeFunctionId ] +csdk pubkey-setting update --id [--databaseId ] [--schemaId ] [--cryptoNetwork ] [--userField ] [--signUpWithKeyFunctionId ] [--signInRequestChallengeFunctionId ] [--signInRecordFailureFunctionId ] [--signInWithChallengeFunctionId ] +csdk pubkey-setting delete --id +``` + +## Examples + +### List pubkeySetting records + +```bash +csdk pubkey-setting list +``` + +### List pubkeySetting records with pagination + +```bash +csdk pubkey-setting list --limit 10 --offset 0 +``` + +### List pubkeySetting records with cursor pagination + +```bash +csdk pubkey-setting list --limit 10 --after +``` + +### Find first matching pubkeySetting + +```bash +csdk pubkey-setting find-first --where.id.equalTo +``` + +### List pubkeySetting records with field selection + +```bash +csdk pubkey-setting list --select id,id +``` + +### List pubkeySetting records with filtering and ordering + +```bash +csdk pubkey-setting list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a pubkeySetting + +```bash +csdk pubkey-setting create --databaseId [--schemaId ] [--cryptoNetwork ] [--userField ] [--signUpWithKeyFunctionId ] [--signInRequestChallengeFunctionId ] [--signInRecordFailureFunctionId ] [--signInWithChallengeFunctionId ] +``` + +### Get a pubkeySetting by id + +```bash +csdk pubkey-setting get --id +``` diff --git a/.agents/skills/cli-api/references/reject-database-transfer.md b/.agents/skills/cli-api/references/reject-database-transfer.md new file mode 100644 index 0000000000..0d4655a070 --- /dev/null +++ b/.agents/skills/cli-api/references/reject-database-transfer.md @@ -0,0 +1,19 @@ +# rejectDatabaseTransfer + + + +Execute the rejectDatabaseTransfer mutation + +## Usage + +```bash +csdk reject-database-transfer --input.clientMutationId --input.transferId +``` + +## Examples + +### Run rejectDatabaseTransfer + +```bash +csdk reject-database-transfer --input.clientMutationId --input.transferId +``` diff --git a/.agents/skills/cli-api/references/rls-setting.md b/.agents/skills/cli-api/references/rls-setting.md new file mode 100644 index 0000000000..ed8992d38f --- /dev/null +++ b/.agents/skills/cli-api/references/rls-setting.md @@ -0,0 +1,68 @@ +# rlsSetting + + + +CRUD operations for RlsSetting records via csdk CLI + +## Usage + +```bash +csdk rls-setting list +csdk rls-setting list --where.. --orderBy +csdk rls-setting list --limit 10 --after +csdk rls-setting find-first --where.. +csdk rls-setting get --id +csdk rls-setting create --databaseId [--authenticateSchemaId ] [--roleSchemaId ] [--authenticateFunctionId ] [--authenticateStrictFunctionId ] [--currentRoleFunctionId ] [--currentRoleIdFunctionId ] [--currentUserAgentFunctionId ] [--currentIpAddressFunctionId ] +csdk rls-setting update --id [--databaseId ] [--authenticateSchemaId ] [--roleSchemaId ] [--authenticateFunctionId ] [--authenticateStrictFunctionId ] [--currentRoleFunctionId ] [--currentRoleIdFunctionId ] [--currentUserAgentFunctionId ] [--currentIpAddressFunctionId ] +csdk rls-setting delete --id +``` + +## Examples + +### List rlsSetting records + +```bash +csdk rls-setting list +``` + +### List rlsSetting records with pagination + +```bash +csdk rls-setting list --limit 10 --offset 0 +``` + +### List rlsSetting records with cursor pagination + +```bash +csdk rls-setting list --limit 10 --after +``` + +### Find first matching rlsSetting + +```bash +csdk rls-setting find-first --where.id.equalTo +``` + +### List rlsSetting records with field selection + +```bash +csdk rls-setting list --select id,id +``` + +### List rlsSetting records with filtering and ordering + +```bash +csdk rls-setting list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a rlsSetting + +```bash +csdk rls-setting create --databaseId [--authenticateSchemaId ] [--roleSchemaId ] [--authenticateFunctionId ] [--authenticateStrictFunctionId ] [--currentRoleFunctionId ] [--currentRoleIdFunctionId ] [--currentUserAgentFunctionId ] [--currentIpAddressFunctionId ] +``` + +### Get a rlsSetting by id + +```bash +csdk rls-setting get --id +``` diff --git a/.agents/skills/cli-api/references/schema-grant.md b/.agents/skills/cli-api/references/schema-grant.md new file mode 100644 index 0000000000..b0f94f8d44 --- /dev/null +++ b/.agents/skills/cli-api/references/schema-grant.md @@ -0,0 +1,68 @@ +# schemaGrant + + + +CRUD operations for SchemaGrant records via csdk CLI + +## Usage + +```bash +csdk schema-grant list +csdk schema-grant list --where.. --orderBy +csdk schema-grant list --limit 10 --after +csdk schema-grant find-first --where.. +csdk schema-grant get --id +csdk schema-grant create --schemaId --granteeName [--databaseId ] +csdk schema-grant update --id [--databaseId ] [--schemaId ] [--granteeName ] +csdk schema-grant delete --id +``` + +## Examples + +### List schemaGrant records + +```bash +csdk schema-grant list +``` + +### List schemaGrant records with pagination + +```bash +csdk schema-grant list --limit 10 --offset 0 +``` + +### List schemaGrant records with cursor pagination + +```bash +csdk schema-grant list --limit 10 --after +``` + +### Find first matching schemaGrant + +```bash +csdk schema-grant find-first --where.id.equalTo +``` + +### List schemaGrant records with field selection + +```bash +csdk schema-grant list --select id,id +``` + +### List schemaGrant records with filtering and ordering + +```bash +csdk schema-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a schemaGrant + +```bash +csdk schema-grant create --schemaId --granteeName [--databaseId ] +``` + +### Get a schemaGrant by id + +```bash +csdk schema-grant get --id +``` diff --git a/.agents/skills/cli-api/references/schema.md b/.agents/skills/cli-api/references/schema.md new file mode 100644 index 0000000000..6f0473ac78 --- /dev/null +++ b/.agents/skills/cli-api/references/schema.md @@ -0,0 +1,68 @@ +# schema + + + +CRUD operations for Schema records via csdk CLI + +## Usage + +```bash +csdk schema list +csdk schema list --where.. --orderBy +csdk schema list --limit 10 --after +csdk schema find-first --where.. +csdk schema get --id +csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] +csdk schema update --id [--databaseId ] [--name ] [--schemaName ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] +csdk schema delete --id +``` + +## Examples + +### List schema records + +```bash +csdk schema list +``` + +### List schema records with pagination + +```bash +csdk schema list --limit 10 --offset 0 +``` + +### List schema records with cursor pagination + +```bash +csdk schema list --limit 10 --after +``` + +### Find first matching schema + +```bash +csdk schema find-first --where.id.equalTo +``` + +### List schema records with field selection + +```bash +csdk schema list --select id,id +``` + +### List schema records with filtering and ordering + +```bash +csdk schema list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a schema + +```bash +csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] +``` + +### Get a schema by id + +```bash +csdk schema get --id +``` diff --git a/.agents/skills/cli-api/references/set-field-order.md b/.agents/skills/cli-api/references/set-field-order.md new file mode 100644 index 0000000000..63822325f4 --- /dev/null +++ b/.agents/skills/cli-api/references/set-field-order.md @@ -0,0 +1,19 @@ +# setFieldOrder + + + +Execute the setFieldOrder mutation + +## Usage + +```bash +csdk set-field-order --input.clientMutationId --input.fieldIds +``` + +## Examples + +### Run setFieldOrder + +```bash +csdk set-field-order --input.clientMutationId --input.fieldIds +``` diff --git a/.agents/skills/cli-api/references/site-metadatum.md b/.agents/skills/cli-api/references/site-metadatum.md new file mode 100644 index 0000000000..99a57f5654 --- /dev/null +++ b/.agents/skills/cli-api/references/site-metadatum.md @@ -0,0 +1,68 @@ +# siteMetadatum + + + +CRUD operations for SiteMetadatum records via csdk CLI + +## Usage + +```bash +csdk site-metadatum list +csdk site-metadatum list --where.. --orderBy +csdk site-metadatum list --limit 10 --after +csdk site-metadatum find-first --where.. +csdk site-metadatum get --id +csdk site-metadatum create --databaseId --siteId [--title ] [--description ] [--ogImage ] +csdk site-metadatum update --id [--databaseId ] [--siteId ] [--title ] [--description ] [--ogImage ] +csdk site-metadatum delete --id +``` + +## Examples + +### List siteMetadatum records + +```bash +csdk site-metadatum list +``` + +### List siteMetadatum records with pagination + +```bash +csdk site-metadatum list --limit 10 --offset 0 +``` + +### List siteMetadatum records with cursor pagination + +```bash +csdk site-metadatum list --limit 10 --after +``` + +### Find first matching siteMetadatum + +```bash +csdk site-metadatum find-first --where.id.equalTo +``` + +### List siteMetadatum records with field selection + +```bash +csdk site-metadatum list --select id,id +``` + +### List siteMetadatum records with filtering and ordering + +```bash +csdk site-metadatum list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a siteMetadatum + +```bash +csdk site-metadatum create --databaseId --siteId [--title ] [--description ] [--ogImage ] +``` + +### Get a siteMetadatum by id + +```bash +csdk site-metadatum get --id +``` diff --git a/.agents/skills/cli-api/references/site-module.md b/.agents/skills/cli-api/references/site-module.md new file mode 100644 index 0000000000..b57c3c4ec5 --- /dev/null +++ b/.agents/skills/cli-api/references/site-module.md @@ -0,0 +1,68 @@ +# siteModule + + + +CRUD operations for SiteModule records via csdk CLI + +## Usage + +```bash +csdk site-module list +csdk site-module list --where.. --orderBy +csdk site-module list --limit 10 --after +csdk site-module find-first --where.. +csdk site-module get --id +csdk site-module create --databaseId --siteId --name --data +csdk site-module update --id [--databaseId ] [--siteId ] [--name ] [--data ] +csdk site-module delete --id +``` + +## Examples + +### List siteModule records + +```bash +csdk site-module list +``` + +### List siteModule records with pagination + +```bash +csdk site-module list --limit 10 --offset 0 +``` + +### List siteModule records with cursor pagination + +```bash +csdk site-module list --limit 10 --after +``` + +### Find first matching siteModule + +```bash +csdk site-module find-first --where.id.equalTo +``` + +### List siteModule records with field selection + +```bash +csdk site-module list --select id,id +``` + +### List siteModule records with filtering and ordering + +```bash +csdk site-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a siteModule + +```bash +csdk site-module create --databaseId --siteId --name --data +``` + +### Get a siteModule by id + +```bash +csdk site-module get --id +``` diff --git a/.agents/skills/cli-api/references/site-theme.md b/.agents/skills/cli-api/references/site-theme.md new file mode 100644 index 0000000000..0431a151ca --- /dev/null +++ b/.agents/skills/cli-api/references/site-theme.md @@ -0,0 +1,68 @@ +# siteTheme + + + +CRUD operations for SiteTheme records via csdk CLI + +## Usage + +```bash +csdk site-theme list +csdk site-theme list --where.. --orderBy +csdk site-theme list --limit 10 --after +csdk site-theme find-first --where.. +csdk site-theme get --id +csdk site-theme create --databaseId --siteId --theme +csdk site-theme update --id [--databaseId ] [--siteId ] [--theme ] +csdk site-theme delete --id +``` + +## Examples + +### List siteTheme records + +```bash +csdk site-theme list +``` + +### List siteTheme records with pagination + +```bash +csdk site-theme list --limit 10 --offset 0 +``` + +### List siteTheme records with cursor pagination + +```bash +csdk site-theme list --limit 10 --after +``` + +### Find first matching siteTheme + +```bash +csdk site-theme find-first --where.id.equalTo +``` + +### List siteTheme records with field selection + +```bash +csdk site-theme list --select id,id +``` + +### List siteTheme records with filtering and ordering + +```bash +csdk site-theme list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a siteTheme + +```bash +csdk site-theme create --databaseId --siteId --theme +``` + +### Get a siteTheme by id + +```bash +csdk site-theme get --id +``` diff --git a/.agents/skills/cli-api/references/site.md b/.agents/skills/cli-api/references/site.md new file mode 100644 index 0000000000..922a98605d --- /dev/null +++ b/.agents/skills/cli-api/references/site.md @@ -0,0 +1,68 @@ +# site + + + +CRUD operations for Site records via csdk CLI + +## Usage + +```bash +csdk site list +csdk site list --where.. --orderBy +csdk site list --limit 10 --after +csdk site find-first --where.. +csdk site get --id +csdk site create --databaseId [--title ] [--description ] [--ogImage ] [--favicon ] [--appleTouchIcon ] [--logo ] [--dbname ] +csdk site update --id [--databaseId ] [--title ] [--description ] [--ogImage ] [--favicon ] [--appleTouchIcon ] [--logo ] [--dbname ] +csdk site delete --id +``` + +## Examples + +### List site records + +```bash +csdk site list +``` + +### List site records with pagination + +```bash +csdk site list --limit 10 --offset 0 +``` + +### List site records with cursor pagination + +```bash +csdk site list --limit 10 --after +``` + +### Find first matching site + +```bash +csdk site find-first --where.id.equalTo +``` + +### List site records with field selection + +```bash +csdk site list --select id,id +``` + +### List site records with filtering and ordering + +```bash +csdk site list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a site + +```bash +csdk site create --databaseId [--title ] [--description ] [--ogImage ] [--favicon ] [--appleTouchIcon ] [--logo ] [--dbname ] +``` + +### Get a site by id + +```bash +csdk site get --id +``` diff --git a/.agents/skills/cli-api/references/spatial-relation.md b/.agents/skills/cli-api/references/spatial-relation.md new file mode 100644 index 0000000000..130d99614b --- /dev/null +++ b/.agents/skills/cli-api/references/spatial-relation.md @@ -0,0 +1,68 @@ +# spatialRelation + + + +CRUD operations for SpatialRelation records via csdk CLI + +## Usage + +```bash +csdk spatial-relation list +csdk spatial-relation list --where.. --orderBy +csdk spatial-relation list --limit 10 --after +csdk spatial-relation find-first --where.. +csdk spatial-relation get --id +csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] +csdk spatial-relation update --id [--databaseId ] [--tableId ] [--fieldId ] [--refTableId ] [--refFieldId ] [--name ] [--operator ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] +csdk spatial-relation delete --id +``` + +## Examples + +### List spatialRelation records + +```bash +csdk spatial-relation list +``` + +### List spatialRelation records with pagination + +```bash +csdk spatial-relation list --limit 10 --offset 0 +``` + +### List spatialRelation records with cursor pagination + +```bash +csdk spatial-relation list --limit 10 --after +``` + +### Find first matching spatialRelation + +```bash +csdk spatial-relation find-first --where.id.equalTo +``` + +### List spatialRelation records with field selection + +```bash +csdk spatial-relation list --select id,id +``` + +### List spatialRelation records with filtering and ordering + +```bash +csdk spatial-relation list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a spatialRelation + +```bash +csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a spatialRelation by id + +```bash +csdk spatial-relation get --id +``` diff --git a/.agents/skills/cli-api/references/sql-action.md b/.agents/skills/cli-api/references/sql-action.md new file mode 100644 index 0000000000..26493191f3 --- /dev/null +++ b/.agents/skills/cli-api/references/sql-action.md @@ -0,0 +1,68 @@ +# sqlAction + + + +CRUD operations for SqlAction records via csdk CLI + +## Usage + +```bash +csdk sql-action list +csdk sql-action list --where.. --orderBy +csdk sql-action list --limit 10 --after +csdk sql-action find-first --where.. +csdk sql-action get --id +csdk sql-action create [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] +csdk sql-action update --id [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] +csdk sql-action delete --id +``` + +## Examples + +### List sqlAction records + +```bash +csdk sql-action list +``` + +### List sqlAction records with pagination + +```bash +csdk sql-action list --limit 10 --offset 0 +``` + +### List sqlAction records with cursor pagination + +```bash +csdk sql-action list --limit 10 --after +``` + +### Find first matching sqlAction + +```bash +csdk sql-action find-first --where.id.equalTo +``` + +### List sqlAction records with field selection + +```bash +csdk sql-action list --select id,id +``` + +### List sqlAction records with filtering and ordering + +```bash +csdk sql-action list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a sqlAction + +```bash +csdk sql-action create [--name ] [--databaseId ] [--deploy ] [--deps ] [--payload ] [--content ] [--revert ] [--verify ] [--action ] [--actionId ] [--actorId ] +``` + +### Get a sqlAction by id + +```bash +csdk sql-action get --id +``` diff --git a/.agents/skills/cli-api/references/table-grant.md b/.agents/skills/cli-api/references/table-grant.md new file mode 100644 index 0000000000..636691a673 --- /dev/null +++ b/.agents/skills/cli-api/references/table-grant.md @@ -0,0 +1,68 @@ +# tableGrant + + + +CRUD operations for TableGrant records via csdk CLI + +## Usage + +```bash +csdk table-grant list +csdk table-grant list --where.. --orderBy +csdk table-grant list --limit 10 --after +csdk table-grant find-first --where.. +csdk table-grant get --id +csdk table-grant create --tableId --privilege --granteeName [--databaseId ] [--fieldIds ] [--isGrant ] +csdk table-grant update --id [--databaseId ] [--tableId ] [--privilege ] [--granteeName ] [--fieldIds ] [--isGrant ] +csdk table-grant delete --id +``` + +## Examples + +### List tableGrant records + +```bash +csdk table-grant list +``` + +### List tableGrant records with pagination + +```bash +csdk table-grant list --limit 10 --offset 0 +``` + +### List tableGrant records with cursor pagination + +```bash +csdk table-grant list --limit 10 --after +``` + +### Find first matching tableGrant + +```bash +csdk table-grant find-first --where.id.equalTo +``` + +### List tableGrant records with field selection + +```bash +csdk table-grant list --select id,id +``` + +### List tableGrant records with filtering and ordering + +```bash +csdk table-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a tableGrant + +```bash +csdk table-grant create --tableId --privilege --granteeName [--databaseId ] [--fieldIds ] [--isGrant ] +``` + +### Get a tableGrant by id + +```bash +csdk table-grant get --id +``` diff --git a/.agents/skills/cli-api/references/table.md b/.agents/skills/cli-api/references/table.md new file mode 100644 index 0000000000..8f472367f4 --- /dev/null +++ b/.agents/skills/cli-api/references/table.md @@ -0,0 +1,68 @@ +# table + + + +CRUD operations for Table records via csdk CLI + +## Usage + +```bash +csdk table list +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 ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table delete --id +``` + +## Examples + +### List table records + +```bash +csdk table list +``` + +### List table records with pagination + +```bash +csdk table list --limit 10 --offset 0 +``` + +### List table records with cursor pagination + +```bash +csdk table list --limit 10 --after +``` + +### Find first matching table + +```bash +csdk table find-first --where.id.equalTo +``` + +### List table records with field selection + +```bash +csdk table list --select id,id +``` + +### List table records with filtering and ordering + +```bash +csdk table list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a table + +```bash +csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +``` + +### Get a table by id + +```bash +csdk table get --id +``` diff --git a/.agents/skills/cli-api/references/trigger-function.md b/.agents/skills/cli-api/references/trigger-function.md new file mode 100644 index 0000000000..5e5415172a --- /dev/null +++ b/.agents/skills/cli-api/references/trigger-function.md @@ -0,0 +1,68 @@ +# triggerFunction + + + +CRUD operations for TriggerFunction records via csdk CLI + +## Usage + +```bash +csdk trigger-function list +csdk trigger-function list --where.. --orderBy +csdk trigger-function list --limit 10 --after +csdk trigger-function find-first --where.. +csdk trigger-function get --id +csdk trigger-function create --databaseId --name [--code ] +csdk trigger-function update --id [--databaseId ] [--name ] [--code ] +csdk trigger-function delete --id +``` + +## Examples + +### List triggerFunction records + +```bash +csdk trigger-function list +``` + +### List triggerFunction records with pagination + +```bash +csdk trigger-function list --limit 10 --offset 0 +``` + +### List triggerFunction records with cursor pagination + +```bash +csdk trigger-function list --limit 10 --after +``` + +### Find first matching triggerFunction + +```bash +csdk trigger-function find-first --where.id.equalTo +``` + +### List triggerFunction records with field selection + +```bash +csdk trigger-function list --select id,id +``` + +### List triggerFunction records with filtering and ordering + +```bash +csdk trigger-function list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a triggerFunction + +```bash +csdk trigger-function create --databaseId --name [--code ] +``` + +### Get a triggerFunction by id + +```bash +csdk trigger-function get --id +``` diff --git a/.agents/skills/cli-api/references/trigger.md b/.agents/skills/cli-api/references/trigger.md new file mode 100644 index 0000000000..cb296d9140 --- /dev/null +++ b/.agents/skills/cli-api/references/trigger.md @@ -0,0 +1,68 @@ +# trigger + + + +CRUD operations for Trigger records via csdk CLI + +## Usage + +```bash +csdk trigger list +csdk trigger list --where.. --orderBy +csdk trigger list --limit 10 --after +csdk trigger find-first --where.. +csdk trigger get --id +csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk trigger update --id [--databaseId ] [--tableId ] [--name ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk trigger delete --id +``` + +## Examples + +### List trigger records + +```bash +csdk trigger list +``` + +### List trigger records with pagination + +```bash +csdk trigger list --limit 10 --offset 0 +``` + +### List trigger records with cursor pagination + +```bash +csdk trigger list --limit 10 --after +``` + +### Find first matching trigger + +```bash +csdk trigger find-first --where.id.equalTo +``` + +### List trigger records with field selection + +```bash +csdk trigger list --select id,id +``` + +### List trigger records with filtering and ordering + +```bash +csdk trigger list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a trigger + +```bash +csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a trigger by id + +```bash +csdk trigger get --id +``` diff --git a/.agents/skills/cli-api/references/unique-constraint.md b/.agents/skills/cli-api/references/unique-constraint.md new file mode 100644 index 0000000000..042d6dabbc --- /dev/null +++ b/.agents/skills/cli-api/references/unique-constraint.md @@ -0,0 +1,68 @@ +# uniqueConstraint + + + +CRUD operations for UniqueConstraint records via csdk CLI + +## Usage + +```bash +csdk unique-constraint list +csdk unique-constraint list --where.. --orderBy +csdk unique-constraint list --limit 10 --after +csdk unique-constraint find-first --where.. +csdk unique-constraint get --id +csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--module ] [--scope ] [--tags ] +csdk unique-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--category ] [--module ] [--scope ] [--tags ] +csdk unique-constraint delete --id +``` + +## Examples + +### List uniqueConstraint records + +```bash +csdk unique-constraint list +``` + +### List uniqueConstraint records with pagination + +```bash +csdk unique-constraint list --limit 10 --offset 0 +``` + +### List uniqueConstraint records with cursor pagination + +```bash +csdk unique-constraint list --limit 10 --after +``` + +### Find first matching uniqueConstraint + +```bash +csdk unique-constraint find-first --where.id.equalTo +``` + +### List uniqueConstraint records with field selection + +```bash +csdk unique-constraint list --select id,id +``` + +### List uniqueConstraint records with filtering and ordering + +```bash +csdk unique-constraint list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a uniqueConstraint + +```bash +csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a uniqueConstraint by id + +```bash +csdk unique-constraint get --id +``` diff --git a/.agents/skills/cli-api/references/view-grant.md b/.agents/skills/cli-api/references/view-grant.md new file mode 100644 index 0000000000..d824d66f94 --- /dev/null +++ b/.agents/skills/cli-api/references/view-grant.md @@ -0,0 +1,68 @@ +# viewGrant + + + +CRUD operations for ViewGrant records via csdk CLI + +## Usage + +```bash +csdk view-grant list +csdk view-grant list --where.. --orderBy +csdk view-grant list --limit 10 --after +csdk view-grant find-first --where.. +csdk view-grant get --id +csdk view-grant create --viewId --granteeName --privilege [--databaseId ] [--withGrantOption ] [--isGrant ] +csdk view-grant update --id [--databaseId ] [--viewId ] [--granteeName ] [--privilege ] [--withGrantOption ] [--isGrant ] +csdk view-grant delete --id +``` + +## Examples + +### List viewGrant records + +```bash +csdk view-grant list +``` + +### List viewGrant records with pagination + +```bash +csdk view-grant list --limit 10 --offset 0 +``` + +### List viewGrant records with cursor pagination + +```bash +csdk view-grant list --limit 10 --after +``` + +### Find first matching viewGrant + +```bash +csdk view-grant find-first --where.id.equalTo +``` + +### List viewGrant records with field selection + +```bash +csdk view-grant list --select id,id +``` + +### List viewGrant records with filtering and ordering + +```bash +csdk view-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a viewGrant + +```bash +csdk view-grant create --viewId --granteeName --privilege [--databaseId ] [--withGrantOption ] [--isGrant ] +``` + +### Get a viewGrant by id + +```bash +csdk view-grant get --id +``` diff --git a/.agents/skills/cli-api/references/view-rule.md b/.agents/skills/cli-api/references/view-rule.md new file mode 100644 index 0000000000..2d6894efec --- /dev/null +++ b/.agents/skills/cli-api/references/view-rule.md @@ -0,0 +1,68 @@ +# viewRule + + + +CRUD operations for ViewRule records via csdk CLI + +## Usage + +```bash +csdk view-rule list +csdk view-rule list --where.. --orderBy +csdk view-rule list --limit 10 --after +csdk view-rule find-first --where.. +csdk view-rule get --id +csdk view-rule create --viewId --name --event [--databaseId ] [--action ] +csdk view-rule update --id [--databaseId ] [--viewId ] [--name ] [--event ] [--action ] +csdk view-rule delete --id +``` + +## Examples + +### List viewRule records + +```bash +csdk view-rule list +``` + +### List viewRule records with pagination + +```bash +csdk view-rule list --limit 10 --offset 0 +``` + +### List viewRule records with cursor pagination + +```bash +csdk view-rule list --limit 10 --after +``` + +### Find first matching viewRule + +```bash +csdk view-rule find-first --where.id.equalTo +``` + +### List viewRule records with field selection + +```bash +csdk view-rule list --select id,id +``` + +### List viewRule records with filtering and ordering + +```bash +csdk view-rule list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a viewRule + +```bash +csdk view-rule create --viewId --name --event [--databaseId ] [--action ] +``` + +### Get a viewRule by id + +```bash +csdk view-rule get --id +``` diff --git a/.agents/skills/cli-api/references/view-table.md b/.agents/skills/cli-api/references/view-table.md new file mode 100644 index 0000000000..1e3697cef2 --- /dev/null +++ b/.agents/skills/cli-api/references/view-table.md @@ -0,0 +1,68 @@ +# viewTable + + + +CRUD operations for ViewTable records via csdk CLI + +## Usage + +```bash +csdk view-table list +csdk view-table list --where.. --orderBy +csdk view-table list --limit 10 --after +csdk view-table find-first --where.. +csdk view-table get --id +csdk view-table create --viewId --tableId [--joinOrder ] +csdk view-table update --id [--viewId ] [--tableId ] [--joinOrder ] +csdk view-table delete --id +``` + +## Examples + +### List viewTable records + +```bash +csdk view-table list +``` + +### List viewTable records with pagination + +```bash +csdk view-table list --limit 10 --offset 0 +``` + +### List viewTable records with cursor pagination + +```bash +csdk view-table list --limit 10 --after +``` + +### Find first matching viewTable + +```bash +csdk view-table find-first --where.id.equalTo +``` + +### List viewTable records with field selection + +```bash +csdk view-table list --select id,id +``` + +### List viewTable records with filtering and ordering + +```bash +csdk view-table list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a viewTable + +```bash +csdk view-table create --viewId --tableId [--joinOrder ] +``` + +### Get a viewTable by id + +```bash +csdk view-table get --id +``` diff --git a/.agents/skills/cli-api/references/view.md b/.agents/skills/cli-api/references/view.md new file mode 100644 index 0000000000..faca52a5a1 --- /dev/null +++ b/.agents/skills/cli-api/references/view.md @@ -0,0 +1,68 @@ +# view + + + +CRUD operations for View records via csdk CLI + +## Usage + +```bash +csdk view list +csdk view list --where.. --orderBy +csdk view list --limit 10 --after +csdk view find-first --where.. +csdk view get --id +csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk view update --id [--databaseId ] [--schemaId ] [--name ] [--tableId ] [--viewType ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk view delete --id +``` + +## Examples + +### List view records + +```bash +csdk view list +``` + +### List view records with pagination + +```bash +csdk view list --limit 10 --offset 0 +``` + +### List view records with cursor pagination + +```bash +csdk view list --limit 10 --after +``` + +### Find first matching view + +```bash +csdk view find-first --where.id.equalTo +``` + +### List view records with field selection + +```bash +csdk view list --select id,id +``` + +### List view records with filtering and ordering + +```bash +csdk view list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a view + +```bash +csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +``` + +### Get a view by id + +```bash +csdk view get --id +``` diff --git a/.agents/skills/cli-api/references/webauthn-setting.md b/.agents/skills/cli-api/references/webauthn-setting.md new file mode 100644 index 0000000000..eefd5bcd04 --- /dev/null +++ b/.agents/skills/cli-api/references/webauthn-setting.md @@ -0,0 +1,68 @@ +# webauthnSetting + + + +CRUD operations for WebauthnSetting records via csdk CLI + +## Usage + +```bash +csdk webauthn-setting list +csdk webauthn-setting list --where.. --orderBy +csdk webauthn-setting list --limit 10 --after +csdk webauthn-setting find-first --where.. +csdk webauthn-setting get --id +csdk webauthn-setting create --databaseId [--schemaId ] [--credentialsSchemaId ] [--sessionsSchemaId ] [--sessionSecretsSchemaId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--userFieldId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpirySeconds ] +csdk webauthn-setting update --id [--databaseId ] [--schemaId ] [--credentialsSchemaId ] [--sessionsSchemaId ] [--sessionSecretsSchemaId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--userFieldId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpirySeconds ] +csdk webauthn-setting delete --id +``` + +## Examples + +### List webauthnSetting records + +```bash +csdk webauthn-setting list +``` + +### List webauthnSetting records with pagination + +```bash +csdk webauthn-setting list --limit 10 --offset 0 +``` + +### List webauthnSetting records with cursor pagination + +```bash +csdk webauthn-setting list --limit 10 --after +``` + +### Find first matching webauthnSetting + +```bash +csdk webauthn-setting find-first --where.id.equalTo +``` + +### List webauthnSetting records with field selection + +```bash +csdk webauthn-setting list --select id,id +``` + +### List webauthnSetting records with filtering and ordering + +```bash +csdk webauthn-setting list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a webauthnSetting + +```bash +csdk webauthn-setting create --databaseId [--schemaId ] [--credentialsSchemaId ] [--sessionsSchemaId ] [--sessionSecretsSchemaId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--userFieldId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpirySeconds ] +``` + +### Get a webauthnSetting by id + +```bash +csdk webauthn-setting get --id +``` diff --git a/.agents/skills/cli-modules/SKILL.md b/.agents/skills/cli-modules/SKILL.md new file mode 100644 index 0000000000..7ac7816722 --- /dev/null +++ b/.agents/skills/cli-modules/SKILL.md @@ -0,0 +1,126 @@ +--- +name: cli-modules +description: CLI tool (csdk) for the modules API — provides CRUD commands for 56 tables and 12 custom operations +--- + +# cli-modules + + + +CLI tool (csdk) for the modules API — provides CRUD commands for 56 tables and 12 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. default-ids-module) +csdk default-ids-module list +csdk default-ids-module get --id +csdk default-ids-module create -- + +# Non-interactive mode (skip all prompts, use flags only) +csdk --no-tty default-ids-module 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 default-ids-module list +``` + +### Non-interactive mode (for scripts and CI) + +```bash +csdk --no-tty default-ids-module create -- +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [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) +- [identity-providers-module](references/identity-providers-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) +- [crypto-addresses-module](references/crypto-addresses-module.md) +- [denormalized-table-field](references/denormalized-table-field.md) +- [rls-module](references/rls-module.md) +- [blueprint](references/blueprint.md) +- [blueprint-template](references/blueprint-template.md) +- [blueprint-construction](references/blueprint-construction.md) +- [crypto-auth-module](references/crypto-auth-module.md) +- [rate-limit-meters-module](references/rate-limit-meters-module.md) +- [sessions-module](references/sessions-module.md) +- [merkle-store-module](references/merkle-store-module.md) +- [graph-module](references/graph-module.md) +- [secure-table-provision](references/secure-table-provision.md) +- [config-secrets-module](references/config-secrets-module.md) +- [invites-module](references/invites-module.md) +- [database-provision-module](references/database-provision-module.md) +- [realtime-module](references/realtime-module.md) +- [webauthn-auth-module](references/webauthn-auth-module.md) +- [namespace-module](references/namespace-module.md) +- [compute-log-module](references/compute-log-module.md) +- [inference-log-module](references/inference-log-module.md) +- [storage-log-module](references/storage-log-module.md) +- [transfer-log-module](references/transfer-log-module.md) +- [db-usage-module](references/db-usage-module.md) +- [notifications-module](references/notifications-module.md) +- [plans-module](references/plans-module.md) +- [hierarchy-module](references/hierarchy-module.md) +- [billing-module](references/billing-module.md) +- [billing-provider-module](references/billing-provider-module.md) +- [profiles-module](references/profiles-module.md) +- [permissions-module](references/permissions-module.md) +- [relation-provision](references/relation-provision.md) +- [function-module](references/function-module.md) +- [user-auth-module](references/user-auth-module.md) +- [agent-module](references/agent-module.md) +- [limits-module](references/limits-module.md) +- [memberships-module](references/memberships-module.md) +- [storage-module](references/storage-module.md) +- [events-module](references/events-module.md) +- [entity-type-provision](references/entity-type-provision.md) +- [resolve-blueprint-field](references/resolve-blueprint-field.md) +- [resolve-blueprint-table](references/resolve-blueprint-table.md) +- [construct-blueprint](references/construct-blueprint.md) +- [provision-full-text-search](references/provision-full-text-search.md) +- [provision-index](references/provision-index.md) +- [provision-check-constraint](references/provision-check-constraint.md) +- [provision-unique-constraint](references/provision-unique-constraint.md) +- [copy-template-to-blueprint](references/copy-template-to-blueprint.md) +- [provision-spatial-relation](references/provision-spatial-relation.md) +- [provision-table](references/provision-table.md) +- [provision-relation](references/provision-relation.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-modules/references/agent-module.md b/.agents/skills/cli-modules/references/agent-module.md new file mode 100644 index 0000000000..1be4005052 --- /dev/null +++ b/.agents/skills/cli-modules/references/agent-module.md @@ -0,0 +1,68 @@ +# agentModule + + + +CRUD operations for AgentModule records via csdk CLI + +## Usage + +```bash +csdk agent-module list +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 ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--knowledgeTableId ] [--planTableId ] [--skillTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--knowledgeTableName ] [--planTableName ] [--skillTableName ] [--hasKnowledge ] [--hasPlans ] [--hasSkills ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--knowledgeConfig ] [--skillsConfig ] [--knowledgePolicies ] [--provisions ] +csdk agent-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--knowledgeTableId ] [--planTableId ] [--skillTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--knowledgeTableName ] [--planTableName ] [--skillTableName ] [--hasKnowledge ] [--hasPlans ] [--hasSkills ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--knowledgeConfig ] [--skillsConfig ] [--knowledgePolicies ] [--provisions ] +csdk agent-module delete --id +``` + +## Examples + +### List agentModule records + +```bash +csdk agent-module list +``` + +### List agentModule records with pagination + +```bash +csdk agent-module list --limit 10 --offset 0 +``` + +### List agentModule records with cursor pagination + +```bash +csdk agent-module list --limit 10 --after +``` + +### Find first matching agentModule + +```bash +csdk agent-module find-first --where.id.equalTo +``` + +### List agentModule records with field selection + +```bash +csdk agent-module list --select id,id +``` + +### List agentModule records with filtering and ordering + +```bash +csdk agent-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentModule + +```bash +csdk agent-module create --databaseId [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--knowledgeTableId ] [--planTableId ] [--skillTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--knowledgeTableName ] [--planTableName ] [--skillTableName ] [--hasKnowledge ] [--hasPlans ] [--hasSkills ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--knowledgeConfig ] [--skillsConfig ] [--knowledgePolicies ] [--provisions ] +``` + +### Get a agentModule by id + +```bash +csdk agent-module get --id +``` diff --git a/.agents/skills/cli-modules/references/auth.md b/.agents/skills/cli-modules/references/auth.md new file mode 100644 index 0000000000..d24ec20dd5 --- /dev/null +++ b/.agents/skills/cli-modules/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-modules/references/billing-module.md b/.agents/skills/cli-modules/references/billing-module.md new file mode 100644 index 0000000000..474b79e379 --- /dev/null +++ b/.agents/skills/cli-modules/references/billing-module.md @@ -0,0 +1,68 @@ +# billingModule + + + +CRUD operations for BillingModule records via csdk CLI + +## Usage + +```bash +csdk billing-module list +csdk billing-module list --where.. --orderBy +csdk billing-module list --limit 10 --after +csdk billing-module find-first --where.. +csdk billing-module get --id +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk billing-module delete --id +``` + +## Examples + +### List billingModule records + +```bash +csdk billing-module list +``` + +### List billingModule records with pagination + +```bash +csdk billing-module list --limit 10 --offset 0 +``` + +### List billingModule records with cursor pagination + +```bash +csdk billing-module list --limit 10 --after +``` + +### Find first matching billingModule + +```bash +csdk billing-module find-first --where.id.equalTo +``` + +### List billingModule records with field selection + +```bash +csdk billing-module list --select id,id +``` + +### List billingModule records with filtering and ordering + +```bash +csdk billing-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a billingModule + +```bash +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a billingModule by id + +```bash +csdk billing-module get --id +``` diff --git a/.agents/skills/cli-modules/references/billing-provider-module.md b/.agents/skills/cli-modules/references/billing-provider-module.md new file mode 100644 index 0000000000..e6f3c5856f --- /dev/null +++ b/.agents/skills/cli-modules/references/billing-provider-module.md @@ -0,0 +1,68 @@ +# billingProviderModule + + + +CRUD operations for BillingProviderModule records via csdk CLI + +## Usage + +```bash +csdk billing-provider-module list +csdk billing-provider-module list --where.. --orderBy +csdk billing-provider-module list --limit 10 --after +csdk billing-provider-module find-first --where.. +csdk billing-provider-module get --id +csdk billing-provider-module create --databaseId [--schemaId ] [--privateSchemaId ] [--provider ] [--productsTableId ] [--pricesTableId ] [--subscriptionsTableId ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--processBillingEventFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk billing-provider-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--provider ] [--productsTableId ] [--pricesTableId ] [--subscriptionsTableId ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--processBillingEventFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk billing-provider-module delete --id +``` + +## Examples + +### List billingProviderModule records + +```bash +csdk billing-provider-module list +``` + +### List billingProviderModule records with pagination + +```bash +csdk billing-provider-module list --limit 10 --offset 0 +``` + +### List billingProviderModule records with cursor pagination + +```bash +csdk billing-provider-module list --limit 10 --after +``` + +### Find first matching billingProviderModule + +```bash +csdk billing-provider-module find-first --where.id.equalTo +``` + +### List billingProviderModule records with field selection + +```bash +csdk billing-provider-module list --select id,id +``` + +### List billingProviderModule records with filtering and ordering + +```bash +csdk billing-provider-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a billingProviderModule + +```bash +csdk billing-provider-module create --databaseId [--schemaId ] [--privateSchemaId ] [--provider ] [--productsTableId ] [--pricesTableId ] [--subscriptionsTableId ] [--billingCustomersTableId ] [--billingCustomersTableName ] [--billingProductsTableId ] [--billingProductsTableName ] [--billingPricesTableId ] [--billingPricesTableName ] [--billingSubscriptionsTableId ] [--billingSubscriptionsTableName ] [--billingWebhookEventsTableId ] [--billingWebhookEventsTableName ] [--processBillingEventFunction ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a billingProviderModule by id + +```bash +csdk billing-provider-module get --id +``` diff --git a/.agents/skills/cli-modules/references/blueprint-construction.md b/.agents/skills/cli-modules/references/blueprint-construction.md new file mode 100644 index 0000000000..482697bc49 --- /dev/null +++ b/.agents/skills/cli-modules/references/blueprint-construction.md @@ -0,0 +1,68 @@ +# blueprintConstruction + + + +CRUD operations for BlueprintConstruction records via csdk CLI + +## Usage + +```bash +csdk blueprint-construction list +csdk blueprint-construction list --where.. --orderBy +csdk blueprint-construction list --limit 10 --after +csdk blueprint-construction find-first --where.. +csdk blueprint-construction get --id +csdk blueprint-construction create --blueprintId --databaseId [--schemaId ] [--status ] [--errorDetails ] [--tableMap ] [--constructedDefinition ] [--constructedAt ] +csdk blueprint-construction update --id [--blueprintId ] [--databaseId ] [--schemaId ] [--status ] [--errorDetails ] [--tableMap ] [--constructedDefinition ] [--constructedAt ] +csdk blueprint-construction delete --id +``` + +## Examples + +### List blueprintConstruction records + +```bash +csdk blueprint-construction list +``` + +### List blueprintConstruction records with pagination + +```bash +csdk blueprint-construction list --limit 10 --offset 0 +``` + +### List blueprintConstruction records with cursor pagination + +```bash +csdk blueprint-construction list --limit 10 --after +``` + +### Find first matching blueprintConstruction + +```bash +csdk blueprint-construction find-first --where.id.equalTo +``` + +### List blueprintConstruction records with field selection + +```bash +csdk blueprint-construction list --select id,id +``` + +### List blueprintConstruction records with filtering and ordering + +```bash +csdk blueprint-construction list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a blueprintConstruction + +```bash +csdk blueprint-construction create --blueprintId --databaseId [--schemaId ] [--status ] [--errorDetails ] [--tableMap ] [--constructedDefinition ] [--constructedAt ] +``` + +### Get a blueprintConstruction by id + +```bash +csdk blueprint-construction get --id +``` diff --git a/.agents/skills/cli-modules/references/blueprint-template.md b/.agents/skills/cli-modules/references/blueprint-template.md new file mode 100644 index 0000000000..1393578cf9 --- /dev/null +++ b/.agents/skills/cli-modules/references/blueprint-template.md @@ -0,0 +1,68 @@ +# blueprintTemplate + + + +CRUD operations for BlueprintTemplate records via csdk CLI + +## Usage + +```bash +csdk blueprint-template list +csdk blueprint-template list --where.. --orderBy +csdk blueprint-template list --limit 10 --after +csdk blueprint-template find-first --where.. +csdk blueprint-template get --id +csdk blueprint-template create --name --displayName --ownerId --definition [--version ] [--description ] [--visibility ] [--categories ] [--tags ] [--definitionSchemaVersion ] [--source ] [--complexity ] [--copyCount ] [--forkCount ] [--forkedFromId ] [--definitionHash ] [--tableHashes ] +csdk blueprint-template update --id [--name ] [--version ] [--displayName ] [--description ] [--ownerId ] [--visibility ] [--categories ] [--tags ] [--definition ] [--definitionSchemaVersion ] [--source ] [--complexity ] [--copyCount ] [--forkCount ] [--forkedFromId ] [--definitionHash ] [--tableHashes ] +csdk blueprint-template delete --id +``` + +## Examples + +### List blueprintTemplate records + +```bash +csdk blueprint-template list +``` + +### List blueprintTemplate records with pagination + +```bash +csdk blueprint-template list --limit 10 --offset 0 +``` + +### List blueprintTemplate records with cursor pagination + +```bash +csdk blueprint-template list --limit 10 --after +``` + +### Find first matching blueprintTemplate + +```bash +csdk blueprint-template find-first --where.id.equalTo +``` + +### List blueprintTemplate records with field selection + +```bash +csdk blueprint-template list --select id,id +``` + +### List blueprintTemplate records with filtering and ordering + +```bash +csdk blueprint-template list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a blueprintTemplate + +```bash +csdk blueprint-template create --name --displayName --ownerId --definition [--version ] [--description ] [--visibility ] [--categories ] [--tags ] [--definitionSchemaVersion ] [--source ] [--complexity ] [--copyCount ] [--forkCount ] [--forkedFromId ] [--definitionHash ] [--tableHashes ] +``` + +### Get a blueprintTemplate by id + +```bash +csdk blueprint-template get --id +``` diff --git a/.agents/skills/cli-modules/references/blueprint.md b/.agents/skills/cli-modules/references/blueprint.md new file mode 100644 index 0000000000..f839743682 --- /dev/null +++ b/.agents/skills/cli-modules/references/blueprint.md @@ -0,0 +1,68 @@ +# blueprint + + + +CRUD operations for Blueprint records via csdk CLI + +## Usage + +```bash +csdk blueprint list +csdk blueprint list --where.. --orderBy +csdk blueprint list --limit 10 --after +csdk blueprint find-first --where.. +csdk blueprint get --id +csdk blueprint create --ownerId --databaseId --name --displayName --definition [--description ] [--templateId ] [--definitionHash ] [--tableHashes ] +csdk blueprint update --id [--ownerId ] [--databaseId ] [--name ] [--displayName ] [--description ] [--definition ] [--templateId ] [--definitionHash ] [--tableHashes ] +csdk blueprint delete --id +``` + +## Examples + +### List blueprint records + +```bash +csdk blueprint list +``` + +### List blueprint records with pagination + +```bash +csdk blueprint list --limit 10 --offset 0 +``` + +### List blueprint records with cursor pagination + +```bash +csdk blueprint list --limit 10 --after +``` + +### Find first matching blueprint + +```bash +csdk blueprint find-first --where.id.equalTo +``` + +### List blueprint records with field selection + +```bash +csdk blueprint list --select id,id +``` + +### List blueprint records with filtering and ordering + +```bash +csdk blueprint list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a blueprint + +```bash +csdk blueprint create --ownerId --databaseId --name --displayName --definition [--description ] [--templateId ] [--definitionHash ] [--tableHashes ] +``` + +### Get a blueprint by id + +```bash +csdk blueprint get --id +``` diff --git a/.agents/skills/cli-modules/references/compute-log-module.md b/.agents/skills/cli-modules/references/compute-log-module.md new file mode 100644 index 0000000000..fae41b304f --- /dev/null +++ b/.agents/skills/cli-modules/references/compute-log-module.md @@ -0,0 +1,68 @@ +# computeLogModule + + + +CRUD operations for ComputeLogModule records via csdk CLI + +## Usage + +```bash +csdk compute-log-module list +csdk compute-log-module list --where.. --orderBy +csdk compute-log-module list --limit 10 --after +csdk compute-log-module find-first --where.. +csdk compute-log-module get --id +csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module delete --id +``` + +## Examples + +### List computeLogModule records + +```bash +csdk compute-log-module list +``` + +### List computeLogModule records with pagination + +```bash +csdk compute-log-module list --limit 10 --offset 0 +``` + +### List computeLogModule records with cursor pagination + +```bash +csdk compute-log-module list --limit 10 --after +``` + +### Find first matching computeLogModule + +```bash +csdk compute-log-module find-first --where.id.equalTo +``` + +### List computeLogModule records with field selection + +```bash +csdk compute-log-module list --select id,id +``` + +### List computeLogModule records with filtering and ordering + +```bash +csdk compute-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a computeLogModule + +```bash +csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a computeLogModule by id + +```bash +csdk compute-log-module get --id +``` diff --git a/.agents/skills/cli-modules/references/config-secrets-module.md b/.agents/skills/cli-modules/references/config-secrets-module.md new file mode 100644 index 0000000000..9ed34dea6b --- /dev/null +++ b/.agents/skills/cli-modules/references/config-secrets-module.md @@ -0,0 +1,68 @@ +# configSecretsModule + + + +CRUD operations for ConfigSecretsModule records via csdk CLI + +## Usage + +```bash +csdk config-secrets-module list +csdk config-secrets-module list --where.. --orderBy +csdk config-secrets-module list --limit 10 --after +csdk config-secrets-module find-first --where.. +csdk config-secrets-module get --id +csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] +csdk config-secrets-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] +csdk config-secrets-module delete --id +``` + +## Examples + +### List configSecretsModule records + +```bash +csdk config-secrets-module list +``` + +### List configSecretsModule records with pagination + +```bash +csdk config-secrets-module list --limit 10 --offset 0 +``` + +### List configSecretsModule records with cursor pagination + +```bash +csdk config-secrets-module list --limit 10 --after +``` + +### Find first matching configSecretsModule + +```bash +csdk config-secrets-module find-first --where.id.equalTo +``` + +### List configSecretsModule records with field selection + +```bash +csdk config-secrets-module list --select id,id +``` + +### List configSecretsModule records with filtering and ordering + +```bash +csdk config-secrets-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a configSecretsModule + +```bash +csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] +``` + +### Get a configSecretsModule by id + +```bash +csdk config-secrets-module get --id +``` diff --git a/.agents/skills/cli-modules/references/config-secrets-org-module.md b/.agents/skills/cli-modules/references/config-secrets-org-module.md new file mode 100644 index 0000000000..cb26a711d4 --- /dev/null +++ b/.agents/skills/cli-modules/references/config-secrets-org-module.md @@ -0,0 +1,68 @@ +# configSecretsOrgModule + + + +CRUD operations for ConfigSecretsOrgModule records via csdk CLI + +## Usage + +```bash +csdk config-secrets-org-module list +csdk config-secrets-org-module list --where.. --orderBy +csdk config-secrets-org-module list --limit 10 --after +csdk config-secrets-org-module find-first --where.. +csdk config-secrets-org-module get --id +csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk config-secrets-org-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk config-secrets-org-module delete --id +``` + +## Examples + +### List configSecretsOrgModule records + +```bash +csdk config-secrets-org-module list +``` + +### List configSecretsOrgModule records with pagination + +```bash +csdk config-secrets-org-module list --limit 10 --offset 0 +``` + +### List configSecretsOrgModule records with cursor pagination + +```bash +csdk config-secrets-org-module list --limit 10 --after +``` + +### Find first matching configSecretsOrgModule + +```bash +csdk config-secrets-org-module find-first --where.id.equalTo +``` + +### List configSecretsOrgModule records with field selection + +```bash +csdk config-secrets-org-module list --select id,id +``` + +### List configSecretsOrgModule records with filtering and ordering + +```bash +csdk config-secrets-org-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a configSecretsOrgModule + +```bash +csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +``` + +### Get a configSecretsOrgModule by id + +```bash +csdk config-secrets-org-module get --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 new file mode 100644 index 0000000000..592fcc7f77 --- /dev/null +++ b/.agents/skills/cli-modules/references/config-secrets-user-module.md @@ -0,0 +1,68 @@ +# configSecretsUserModule + + + +CRUD operations for ConfigSecretsUserModule records via csdk CLI + +## Usage + +```bash +csdk config-secrets-user-module list +csdk config-secrets-user-module list --where.. --orderBy +csdk config-secrets-user-module list --limit 10 --after +csdk config-secrets-user-module find-first --where.. +csdk config-secrets-user-module get --id +csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] [--apiName ] [--privateApiName ] +csdk config-secrets-user-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] [--apiName ] [--privateApiName ] +csdk config-secrets-user-module delete --id +``` + +## Examples + +### List configSecretsUserModule records + +```bash +csdk config-secrets-user-module list +``` + +### List configSecretsUserModule records with pagination + +```bash +csdk config-secrets-user-module list --limit 10 --offset 0 +``` + +### List configSecretsUserModule records with cursor pagination + +```bash +csdk config-secrets-user-module list --limit 10 --after +``` + +### Find first matching configSecretsUserModule + +```bash +csdk config-secrets-user-module find-first --where.id.equalTo +``` + +### List configSecretsUserModule records with field selection + +```bash +csdk config-secrets-user-module list --select id,id +``` + +### List configSecretsUserModule records with filtering and ordering + +```bash +csdk config-secrets-user-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a configSecretsUserModule + +```bash +csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a configSecretsUserModule by id + +```bash +csdk config-secrets-user-module get --id +``` diff --git a/.agents/skills/cli-modules/references/config.md b/.agents/skills/cli-modules/references/config.md new file mode 100644 index 0000000000..cc1c23b7ba --- /dev/null +++ b/.agents/skills/cli-modules/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-modules/references/connected-accounts-module.md b/.agents/skills/cli-modules/references/connected-accounts-module.md new file mode 100644 index 0000000000..73a516d9ce --- /dev/null +++ b/.agents/skills/cli-modules/references/connected-accounts-module.md @@ -0,0 +1,68 @@ +# connectedAccountsModule + + + +CRUD operations for ConnectedAccountsModule records via csdk CLI + +## Usage + +```bash +csdk connected-accounts-module list +csdk connected-accounts-module list --where.. --orderBy +csdk connected-accounts-module list --limit 10 --after +csdk connected-accounts-module find-first --where.. +csdk connected-accounts-module get --id +csdk connected-accounts-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--apiName ] [--privateApiName ] +csdk connected-accounts-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk connected-accounts-module delete --id +``` + +## Examples + +### List connectedAccountsModule records + +```bash +csdk connected-accounts-module list +``` + +### List connectedAccountsModule records with pagination + +```bash +csdk connected-accounts-module list --limit 10 --offset 0 +``` + +### List connectedAccountsModule records with cursor pagination + +```bash +csdk connected-accounts-module list --limit 10 --after +``` + +### Find first matching connectedAccountsModule + +```bash +csdk connected-accounts-module find-first --where.id.equalTo +``` + +### List connectedAccountsModule records with field selection + +```bash +csdk connected-accounts-module list --select id,id +``` + +### List connectedAccountsModule records with filtering and ordering + +```bash +csdk connected-accounts-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a connectedAccountsModule + +```bash +csdk connected-accounts-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a connectedAccountsModule by id + +```bash +csdk connected-accounts-module get --id +``` diff --git a/.agents/skills/cli-modules/references/construct-blueprint.md b/.agents/skills/cli-modules/references/construct-blueprint.md new file mode 100644 index 0000000000..8d0e1bb068 --- /dev/null +++ b/.agents/skills/cli-modules/references/construct-blueprint.md @@ -0,0 +1,19 @@ +# constructBlueprint + + + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +## Usage + +```bash +csdk construct-blueprint --input.clientMutationId --input.blueprintId --input.schemaId +``` + +## Examples + +### Run constructBlueprint + +```bash +csdk construct-blueprint --input.clientMutationId --input.blueprintId --input.schemaId +``` diff --git a/.agents/skills/cli-modules/references/context.md b/.agents/skills/cli-modules/references/context.md new file mode 100644 index 0000000000..704ff09111 --- /dev/null +++ b/.agents/skills/cli-modules/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-modules/references/copy-template-to-blueprint.md b/.agents/skills/cli-modules/references/copy-template-to-blueprint.md new file mode 100644 index 0000000000..99a7aa4a62 --- /dev/null +++ b/.agents/skills/cli-modules/references/copy-template-to-blueprint.md @@ -0,0 +1,19 @@ +# copyTemplateToBlueprint + + + +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. + +## Usage + +```bash +csdk copy-template-to-blueprint --input.clientMutationId --input.templateId --input.databaseId --input.ownerId --input.nameOverride --input.displayNameOverride +``` + +## Examples + +### Run copyTemplateToBlueprint + +```bash +csdk copy-template-to-blueprint --input.clientMutationId --input.templateId --input.databaseId --input.ownerId --input.nameOverride --input.displayNameOverride +``` diff --git a/.agents/skills/cli-modules/references/crypto-addresses-module.md b/.agents/skills/cli-modules/references/crypto-addresses-module.md new file mode 100644 index 0000000000..06c8eb9c30 --- /dev/null +++ b/.agents/skills/cli-modules/references/crypto-addresses-module.md @@ -0,0 +1,68 @@ +# cryptoAddressesModule + + + +CRUD operations for CryptoAddressesModule records via csdk CLI + +## Usage + +```bash +csdk crypto-addresses-module list +csdk crypto-addresses-module list --where.. --orderBy +csdk crypto-addresses-module list --limit 10 --after +csdk crypto-addresses-module find-first --where.. +csdk crypto-addresses-module get --id +csdk crypto-addresses-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--cryptoNetwork ] [--apiName ] [--privateApiName ] +csdk crypto-addresses-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--cryptoNetwork ] [--apiName ] [--privateApiName ] +csdk crypto-addresses-module delete --id +``` + +## Examples + +### List cryptoAddressesModule records + +```bash +csdk crypto-addresses-module list +``` + +### List cryptoAddressesModule records with pagination + +```bash +csdk crypto-addresses-module list --limit 10 --offset 0 +``` + +### List cryptoAddressesModule records with cursor pagination + +```bash +csdk crypto-addresses-module list --limit 10 --after +``` + +### Find first matching cryptoAddressesModule + +```bash +csdk crypto-addresses-module find-first --where.id.equalTo +``` + +### List cryptoAddressesModule records with field selection + +```bash +csdk crypto-addresses-module list --select id,id +``` + +### List cryptoAddressesModule records with filtering and ordering + +```bash +csdk crypto-addresses-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a cryptoAddressesModule + +```bash +csdk crypto-addresses-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--cryptoNetwork ] [--apiName ] [--privateApiName ] +``` + +### Get a cryptoAddressesModule by id + +```bash +csdk crypto-addresses-module get --id +``` diff --git a/.agents/skills/cli-modules/references/crypto-auth-module.md b/.agents/skills/cli-modules/references/crypto-auth-module.md new file mode 100644 index 0000000000..a10b53f7db --- /dev/null +++ b/.agents/skills/cli-modules/references/crypto-auth-module.md @@ -0,0 +1,68 @@ +# cryptoAuthModule + + + +CRUD operations for CryptoAuthModule records via csdk CLI + +## Usage + +```bash +csdk crypto-auth-module list +csdk crypto-auth-module list --where.. --orderBy +csdk crypto-auth-module list --limit 10 --after +csdk crypto-auth-module find-first --where.. +csdk crypto-auth-module get --id +csdk crypto-auth-module create --databaseId --userField [--schemaId ] [--usersTableId ] [--secretsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--addressesTableId ] [--cryptoNetwork ] [--signInRequestChallenge ] [--signInRecordFailure ] [--signUpWithKey ] [--signInWithChallenge ] +csdk crypto-auth-module update --id [--databaseId ] [--schemaId ] [--usersTableId ] [--secretsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--addressesTableId ] [--userField ] [--cryptoNetwork ] [--signInRequestChallenge ] [--signInRecordFailure ] [--signUpWithKey ] [--signInWithChallenge ] +csdk crypto-auth-module delete --id +``` + +## Examples + +### List cryptoAuthModule records + +```bash +csdk crypto-auth-module list +``` + +### List cryptoAuthModule records with pagination + +```bash +csdk crypto-auth-module list --limit 10 --offset 0 +``` + +### List cryptoAuthModule records with cursor pagination + +```bash +csdk crypto-auth-module list --limit 10 --after +``` + +### Find first matching cryptoAuthModule + +```bash +csdk crypto-auth-module find-first --where.id.equalTo +``` + +### List cryptoAuthModule records with field selection + +```bash +csdk crypto-auth-module list --select id,id +``` + +### List cryptoAuthModule records with filtering and ordering + +```bash +csdk crypto-auth-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a cryptoAuthModule + +```bash +csdk crypto-auth-module create --databaseId --userField [--schemaId ] [--usersTableId ] [--secretsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--addressesTableId ] [--cryptoNetwork ] [--signInRequestChallenge ] [--signInRecordFailure ] [--signUpWithKey ] [--signInWithChallenge ] +``` + +### Get a cryptoAuthModule by id + +```bash +csdk crypto-auth-module get --id +``` diff --git a/.agents/skills/cli-modules/references/database-provision-module.md b/.agents/skills/cli-modules/references/database-provision-module.md new file mode 100644 index 0000000000..d90694c6af --- /dev/null +++ b/.agents/skills/cli-modules/references/database-provision-module.md @@ -0,0 +1,68 @@ +# databaseProvisionModule + + + +CRUD operations for DatabaseProvisionModule records via csdk CLI + +## Usage + +```bash +csdk database-provision-module list +csdk database-provision-module list --where.. --orderBy +csdk database-provision-module list --limit 10 --after +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 delete --id +``` + +## Examples + +### List databaseProvisionModule records + +```bash +csdk database-provision-module list +``` + +### List databaseProvisionModule records with pagination + +```bash +csdk database-provision-module list --limit 10 --offset 0 +``` + +### List databaseProvisionModule records with cursor pagination + +```bash +csdk database-provision-module list --limit 10 --after +``` + +### Find first matching databaseProvisionModule + +```bash +csdk database-provision-module find-first --where.id.equalTo +``` + +### List databaseProvisionModule records with field selection + +```bash +csdk database-provision-module list --select id,id +``` + +### List databaseProvisionModule records with filtering and ordering + +```bash +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 ] +``` + +### Get a databaseProvisionModule by id + +```bash +csdk database-provision-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 new file mode 100644 index 0000000000..2f09fceeab --- /dev/null +++ b/.agents/skills/cli-modules/references/db-usage-module.md @@ -0,0 +1,68 @@ +# dbUsageModule + + + +CRUD operations for DbUsageModule records via csdk CLI + +## Usage + +```bash +csdk db-usage-module list +csdk db-usage-module list --where.. --orderBy +csdk db-usage-module list --limit 10 --after +csdk db-usage-module find-first --where.. +csdk db-usage-module get --id +csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--apiName ] [--privateApiName ] +csdk db-usage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--apiName ] [--privateApiName ] +csdk db-usage-module delete --id +``` + +## Examples + +### List dbUsageModule records + +```bash +csdk db-usage-module list +``` + +### List dbUsageModule records with pagination + +```bash +csdk db-usage-module list --limit 10 --offset 0 +``` + +### List dbUsageModule records with cursor pagination + +```bash +csdk db-usage-module list --limit 10 --after +``` + +### Find first matching dbUsageModule + +```bash +csdk db-usage-module find-first --where.id.equalTo +``` + +### List dbUsageModule records with field selection + +```bash +csdk db-usage-module list --select id,id +``` + +### List dbUsageModule records with filtering and ordering + +```bash +csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dbUsageModule + +```bash +csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a dbUsageModule by id + +```bash +csdk db-usage-module get --id +``` diff --git a/.agents/skills/cli-modules/references/default-ids-module.md b/.agents/skills/cli-modules/references/default-ids-module.md new file mode 100644 index 0000000000..00d5ec0db0 --- /dev/null +++ b/.agents/skills/cli-modules/references/default-ids-module.md @@ -0,0 +1,68 @@ +# defaultIdsModule + + + +CRUD operations for DefaultIdsModule records via csdk CLI + +## Usage + +```bash +csdk default-ids-module list +csdk default-ids-module list --where.. --orderBy +csdk default-ids-module list --limit 10 --after +csdk default-ids-module find-first --where.. +csdk default-ids-module get --id +csdk default-ids-module create --databaseId +csdk default-ids-module update --id [--databaseId ] +csdk default-ids-module delete --id +``` + +## Examples + +### List defaultIdsModule records + +```bash +csdk default-ids-module list +``` + +### List defaultIdsModule records with pagination + +```bash +csdk default-ids-module list --limit 10 --offset 0 +``` + +### List defaultIdsModule records with cursor pagination + +```bash +csdk default-ids-module list --limit 10 --after +``` + +### Find first matching defaultIdsModule + +```bash +csdk default-ids-module find-first --where.id.equalTo +``` + +### List defaultIdsModule records with field selection + +```bash +csdk default-ids-module list --select id,id +``` + +### List defaultIdsModule records with filtering and ordering + +```bash +csdk default-ids-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a defaultIdsModule + +```bash +csdk default-ids-module create --databaseId +``` + +### Get a defaultIdsModule by id + +```bash +csdk default-ids-module get --id +``` diff --git a/.agents/skills/cli-modules/references/denormalized-table-field.md b/.agents/skills/cli-modules/references/denormalized-table-field.md new file mode 100644 index 0000000000..52d4746705 --- /dev/null +++ b/.agents/skills/cli-modules/references/denormalized-table-field.md @@ -0,0 +1,68 @@ +# denormalizedTableField + + + +CRUD operations for DenormalizedTableField records via csdk CLI + +## Usage + +```bash +csdk denormalized-table-field list +csdk denormalized-table-field list --where.. --orderBy +csdk denormalized-table-field list --limit 10 --after +csdk denormalized-table-field find-first --where.. +csdk denormalized-table-field get --id +csdk denormalized-table-field create --databaseId --tableId --fieldId --refTableId --refFieldId [--setIds ] [--refIds ] [--useUpdates ] [--updateDefaults ] [--funcName ] [--funcOrder ] +csdk denormalized-table-field update --id [--databaseId ] [--tableId ] [--fieldId ] [--setIds ] [--refTableId ] [--refFieldId ] [--refIds ] [--useUpdates ] [--updateDefaults ] [--funcName ] [--funcOrder ] +csdk denormalized-table-field delete --id +``` + +## Examples + +### List denormalizedTableField records + +```bash +csdk denormalized-table-field list +``` + +### List denormalizedTableField records with pagination + +```bash +csdk denormalized-table-field list --limit 10 --offset 0 +``` + +### List denormalizedTableField records with cursor pagination + +```bash +csdk denormalized-table-field list --limit 10 --after +``` + +### Find first matching denormalizedTableField + +```bash +csdk denormalized-table-field find-first --where.id.equalTo +``` + +### List denormalizedTableField records with field selection + +```bash +csdk denormalized-table-field list --select id,id +``` + +### List denormalizedTableField records with filtering and ordering + +```bash +csdk denormalized-table-field list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a denormalizedTableField + +```bash +csdk denormalized-table-field create --databaseId --tableId --fieldId --refTableId --refFieldId [--setIds ] [--refIds ] [--useUpdates ] [--updateDefaults ] [--funcName ] [--funcOrder ] +``` + +### Get a denormalizedTableField by id + +```bash +csdk denormalized-table-field get --id +``` diff --git a/.agents/skills/cli-modules/references/devices-module.md b/.agents/skills/cli-modules/references/devices-module.md new file mode 100644 index 0000000000..9054cca043 --- /dev/null +++ b/.agents/skills/cli-modules/references/devices-module.md @@ -0,0 +1,68 @@ +# devicesModule + + + +CRUD operations for DevicesModule records via csdk CLI + +## Usage + +```bash +csdk devices-module list +csdk devices-module list --where.. --orderBy +csdk devices-module list --limit 10 --after +csdk devices-module find-first --where.. +csdk devices-module get --id +csdk devices-module create --databaseId [--schemaId ] [--userDevicesTableId ] [--deviceSettingsTableId ] [--userDevicesTable ] [--deviceSettingsTable ] +csdk devices-module update --id [--databaseId ] [--schemaId ] [--userDevicesTableId ] [--deviceSettingsTableId ] [--userDevicesTable ] [--deviceSettingsTable ] +csdk devices-module delete --id +``` + +## Examples + +### List devicesModule records + +```bash +csdk devices-module list +``` + +### List devicesModule records with pagination + +```bash +csdk devices-module list --limit 10 --offset 0 +``` + +### List devicesModule records with cursor pagination + +```bash +csdk devices-module list --limit 10 --after +``` + +### Find first matching devicesModule + +```bash +csdk devices-module find-first --where.id.equalTo +``` + +### List devicesModule records with field selection + +```bash +csdk devices-module list --select id,id +``` + +### List devicesModule records with filtering and ordering + +```bash +csdk devices-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a devicesModule + +```bash +csdk devices-module create --databaseId [--schemaId ] [--userDevicesTableId ] [--deviceSettingsTableId ] [--userDevicesTable ] [--deviceSettingsTable ] +``` + +### Get a devicesModule by id + +```bash +csdk devices-module get --id +``` diff --git a/.agents/skills/cli-modules/references/emails-module.md b/.agents/skills/cli-modules/references/emails-module.md new file mode 100644 index 0000000000..2e39f729a6 --- /dev/null +++ b/.agents/skills/cli-modules/references/emails-module.md @@ -0,0 +1,68 @@ +# emailsModule + + + +CRUD operations for EmailsModule records via csdk CLI + +## Usage + +```bash +csdk emails-module list +csdk emails-module list --where.. --orderBy +csdk emails-module list --limit 10 --after +csdk emails-module find-first --where.. +csdk emails-module get --id +csdk emails-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--apiName ] [--privateApiName ] +csdk emails-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk emails-module delete --id +``` + +## Examples + +### List emailsModule records + +```bash +csdk emails-module list +``` + +### List emailsModule records with pagination + +```bash +csdk emails-module list --limit 10 --offset 0 +``` + +### List emailsModule records with cursor pagination + +```bash +csdk emails-module list --limit 10 --after +``` + +### Find first matching emailsModule + +```bash +csdk emails-module find-first --where.id.equalTo +``` + +### List emailsModule records with field selection + +```bash +csdk emails-module list --select id,id +``` + +### List emailsModule records with filtering and ordering + +```bash +csdk emails-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a emailsModule + +```bash +csdk emails-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a emailsModule by id + +```bash +csdk emails-module get --id +``` diff --git a/.agents/skills/cli-modules/references/entity-type-provision.md b/.agents/skills/cli-modules/references/entity-type-provision.md new file mode 100644 index 0000000000..73c5c10cae --- /dev/null +++ b/.agents/skills/cli-modules/references/entity-type-provision.md @@ -0,0 +1,68 @@ +# entityTypeProvision + + + +CRUD operations for EntityTypeProvision records via csdk CLI + +## Usage + +```bash +csdk entity-type-provision list +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 ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--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 ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +csdk entity-type-provision delete --id +``` + +## Examples + +### List entityTypeProvision records + +```bash +csdk entity-type-provision list +``` + +### List entityTypeProvision records with pagination + +```bash +csdk entity-type-provision list --limit 10 --offset 0 +``` + +### List entityTypeProvision records with cursor pagination + +```bash +csdk entity-type-provision list --limit 10 --after +``` + +### Find first matching entityTypeProvision + +```bash +csdk entity-type-provision find-first --where.id.equalTo +``` + +### List entityTypeProvision records with field selection + +```bash +csdk entity-type-provision list --select id,id +``` + +### List entityTypeProvision records with filtering and ordering + +```bash +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 ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +``` + +### Get a entityTypeProvision by id + +```bash +csdk entity-type-provision get --id +``` diff --git a/.agents/skills/cli-modules/references/events-module.md b/.agents/skills/cli-modules/references/events-module.md new file mode 100644 index 0000000000..500d05dd33 --- /dev/null +++ b/.agents/skills/cli-modules/references/events-module.md @@ -0,0 +1,68 @@ +# eventsModule + + + +CRUD operations for EventsModule records via csdk CLI + +## Usage + +```bash +csdk events-module list +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 ] [--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 ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk events-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--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 ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk events-module delete --id +``` + +## Examples + +### List eventsModule records + +```bash +csdk events-module list +``` + +### List eventsModule records with pagination + +```bash +csdk events-module list --limit 10 --offset 0 +``` + +### List eventsModule records with cursor pagination + +```bash +csdk events-module list --limit 10 --after +``` + +### Find first matching eventsModule + +```bash +csdk events-module find-first --where.id.equalTo +``` + +### List eventsModule records with field selection + +```bash +csdk events-module list --select id,id +``` + +### List eventsModule records with filtering and ordering + +```bash +csdk events-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a eventsModule + +```bash +csdk events-module create --databaseId [--schemaId ] [--privateSchemaId ] [--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 ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a eventsModule by id + +```bash +csdk events-module get --id +``` diff --git a/.agents/skills/cli-modules/references/function-module.md b/.agents/skills/cli-modules/references/function-module.md new file mode 100644 index 0000000000..ee8b219cfa --- /dev/null +++ b/.agents/skills/cli-modules/references/function-module.md @@ -0,0 +1,68 @@ +# functionModule + + + +CRUD operations for FunctionModule records via csdk CLI + +## Usage + +```bash +csdk function-module list +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 ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk function-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk function-module delete --id +``` + +## Examples + +### List functionModule records + +```bash +csdk function-module list +``` + +### List functionModule records with pagination + +```bash +csdk function-module list --limit 10 --offset 0 +``` + +### List functionModule records with cursor pagination + +```bash +csdk function-module list --limit 10 --after +``` + +### Find first matching functionModule + +```bash +csdk function-module find-first --where.id.equalTo +``` + +### List functionModule records with field selection + +```bash +csdk function-module list --select id,id +``` + +### List functionModule records with filtering and ordering + +```bash +csdk function-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a functionModule + +```bash +csdk function-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +``` + +### Get a functionModule by id + +```bash +csdk function-module get --id +``` diff --git a/.agents/skills/cli-modules/references/graph-module.md b/.agents/skills/cli-modules/references/graph-module.md new file mode 100644 index 0000000000..a84302ce64 --- /dev/null +++ b/.agents/skills/cli-modules/references/graph-module.md @@ -0,0 +1,68 @@ +# graphModule + + + +CRUD operations for GraphModule records via csdk CLI + +## Usage + +```bash +csdk graph-module list +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 ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--databaseOwned ] [--entityTableId ] [--policies ] [--provisions ] +csdk graph-module update --id [--databaseId ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--merkleStoreModuleId ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--databaseOwned ] [--entityTableId ] [--policies ] [--provisions ] +csdk graph-module delete --id +``` + +## Examples + +### List graphModule records + +```bash +csdk graph-module list +``` + +### List graphModule records with pagination + +```bash +csdk graph-module list --limit 10 --offset 0 +``` + +### List graphModule records with cursor pagination + +```bash +csdk graph-module list --limit 10 --after +``` + +### Find first matching graphModule + +```bash +csdk graph-module find-first --where.id.equalTo +``` + +### List graphModule records with field selection + +```bash +csdk graph-module list --select id,id +``` + +### List graphModule records with filtering and ordering + +```bash +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 ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--databaseOwned ] [--entityTableId ] [--policies ] [--provisions ] +``` + +### Get a graphModule by id + +```bash +csdk graph-module get --id +``` diff --git a/.agents/skills/cli-modules/references/hierarchy-module.md b/.agents/skills/cli-modules/references/hierarchy-module.md new file mode 100644 index 0000000000..a009d516e7 --- /dev/null +++ b/.agents/skills/cli-modules/references/hierarchy-module.md @@ -0,0 +1,68 @@ +# hierarchyModule + + + +CRUD operations for HierarchyModule records via csdk CLI + +## Usage + +```bash +csdk hierarchy-module list +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 ] +csdk hierarchy-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--entityTableId ] [--usersTableId ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] +csdk hierarchy-module delete --id +``` + +## Examples + +### List hierarchyModule records + +```bash +csdk hierarchy-module list +``` + +### List hierarchyModule records with pagination + +```bash +csdk hierarchy-module list --limit 10 --offset 0 +``` + +### List hierarchyModule records with cursor pagination + +```bash +csdk hierarchy-module list --limit 10 --after +``` + +### Find first matching hierarchyModule + +```bash +csdk hierarchy-module find-first --where.id.equalTo +``` + +### List hierarchyModule records with field selection + +```bash +csdk hierarchy-module list --select id,id +``` + +### List hierarchyModule records with filtering and ordering + +```bash +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 ] +``` + +### Get a hierarchyModule by id + +```bash +csdk hierarchy-module get --id +``` diff --git a/.agents/skills/cli-modules/references/i-18-n-module.md b/.agents/skills/cli-modules/references/i-18-n-module.md new file mode 100644 index 0000000000..8d4580b380 --- /dev/null +++ b/.agents/skills/cli-modules/references/i-18-n-module.md @@ -0,0 +1,68 @@ +# i18NModule + + + +CRUD operations for I18NModule records via csdk CLI + +## Usage + +```bash +csdk i-18-n-module list +csdk i-18-n-module list --where.. --orderBy +csdk i-18-n-module list --limit 10 --after +csdk i-18-n-module find-first --where.. +csdk i-18-n-module get --id +csdk i-18-n-module create --databaseId [--schemaId ] [--privateSchemaId ] [--settingsTableId ] [--apiName ] [--privateApiName ] +csdk i-18-n-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--settingsTableId ] [--apiName ] [--privateApiName ] +csdk i-18-n-module delete --id +``` + +## Examples + +### List i18NModule records + +```bash +csdk i-18-n-module list +``` + +### List i18NModule records with pagination + +```bash +csdk i-18-n-module list --limit 10 --offset 0 +``` + +### List i18NModule records with cursor pagination + +```bash +csdk i-18-n-module list --limit 10 --after +``` + +### Find first matching i18NModule + +```bash +csdk i-18-n-module find-first --where.id.equalTo +``` + +### List i18NModule records with field selection + +```bash +csdk i-18-n-module list --select id,id +``` + +### List i18NModule records with filtering and ordering + +```bash +csdk i-18-n-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a i18NModule + +```bash +csdk i-18-n-module create --databaseId [--schemaId ] [--privateSchemaId ] [--settingsTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a i18NModule by id + +```bash +csdk i-18-n-module get --id +``` diff --git a/.agents/skills/cli-modules/references/identity-providers-module.md b/.agents/skills/cli-modules/references/identity-providers-module.md new file mode 100644 index 0000000000..00e1b2d271 --- /dev/null +++ b/.agents/skills/cli-modules/references/identity-providers-module.md @@ -0,0 +1,68 @@ +# identityProvidersModule + + + +CRUD operations for IdentityProvidersModule records via csdk CLI + +## Usage + +```bash +csdk identity-providers-module list +csdk identity-providers-module list --where.. --orderBy +csdk identity-providers-module list --limit 10 --after +csdk identity-providers-module find-first --where.. +csdk identity-providers-module get --id +csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk identity-providers-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk identity-providers-module delete --id +``` + +## Examples + +### List identityProvidersModule records + +```bash +csdk identity-providers-module list +``` + +### List identityProvidersModule records with pagination + +```bash +csdk identity-providers-module list --limit 10 --offset 0 +``` + +### List identityProvidersModule records with cursor pagination + +```bash +csdk identity-providers-module list --limit 10 --after +``` + +### Find first matching identityProvidersModule + +```bash +csdk identity-providers-module find-first --where.id.equalTo +``` + +### List identityProvidersModule records with field selection + +```bash +csdk identity-providers-module list --select id,id +``` + +### List identityProvidersModule records with filtering and ordering + +```bash +csdk identity-providers-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a identityProvidersModule + +```bash +csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +``` + +### Get a identityProvidersModule by id + +```bash +csdk identity-providers-module get --id +``` diff --git a/.agents/skills/cli-modules/references/inference-log-module.md b/.agents/skills/cli-modules/references/inference-log-module.md new file mode 100644 index 0000000000..0fc427abef --- /dev/null +++ b/.agents/skills/cli-modules/references/inference-log-module.md @@ -0,0 +1,68 @@ +# inferenceLogModule + + + +CRUD operations for InferenceLogModule records via csdk CLI + +## Usage + +```bash +csdk inference-log-module list +csdk inference-log-module list --where.. --orderBy +csdk inference-log-module list --limit 10 --after +csdk inference-log-module find-first --where.. +csdk inference-log-module get --id +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module delete --id +``` + +## Examples + +### List inferenceLogModule records + +```bash +csdk inference-log-module list +``` + +### List inferenceLogModule records with pagination + +```bash +csdk inference-log-module list --limit 10 --offset 0 +``` + +### List inferenceLogModule records with cursor pagination + +```bash +csdk inference-log-module list --limit 10 --after +``` + +### Find first matching inferenceLogModule + +```bash +csdk inference-log-module find-first --where.id.equalTo +``` + +### List inferenceLogModule records with field selection + +```bash +csdk inference-log-module list --select id,id +``` + +### List inferenceLogModule records with filtering and ordering + +```bash +csdk inference-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a inferenceLogModule + +```bash +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a inferenceLogModule by id + +```bash +csdk inference-log-module get --id +``` diff --git a/.agents/skills/cli-modules/references/invites-module.md b/.agents/skills/cli-modules/references/invites-module.md new file mode 100644 index 0000000000..71b72674ec --- /dev/null +++ b/.agents/skills/cli-modules/references/invites-module.md @@ -0,0 +1,68 @@ +# invitesModule + + + +CRUD operations for InvitesModule records via csdk CLI + +## Usage + +```bash +csdk invites-module list +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 ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module delete --id +``` + +## Examples + +### List invitesModule records + +```bash +csdk invites-module list +``` + +### List invitesModule records with pagination + +```bash +csdk invites-module list --limit 10 --offset 0 +``` + +### List invitesModule records with cursor pagination + +```bash +csdk invites-module list --limit 10 --after +``` + +### Find first matching invitesModule + +```bash +csdk invites-module find-first --where.id.equalTo +``` + +### List invitesModule records with field selection + +```bash +csdk invites-module list --select id,id +``` + +### List invitesModule records with filtering and ordering + +```bash +csdk invites-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a invitesModule + +```bash +csdk invites-module create --databaseId [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a invitesModule by id + +```bash +csdk invites-module get --id +``` diff --git a/.agents/skills/cli-modules/references/limits-module.md b/.agents/skills/cli-modules/references/limits-module.md new file mode 100644 index 0000000000..980168e4e0 --- /dev/null +++ b/.agents/skills/cli-modules/references/limits-module.md @@ -0,0 +1,68 @@ +# limitsModule + + + +CRUD operations for LimitsModule records via csdk CLI + +## Usage + +```bash +csdk limits-module list +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 ] [--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 ] [--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 +``` + +## Examples + +### List limitsModule records + +```bash +csdk limits-module list +``` + +### List limitsModule records with pagination + +```bash +csdk limits-module list --limit 10 --offset 0 +``` + +### List limitsModule records with cursor pagination + +```bash +csdk limits-module list --limit 10 --after +``` + +### Find first matching limitsModule + +```bash +csdk limits-module find-first --where.id.equalTo +``` + +### List limitsModule records with field selection + +```bash +csdk limits-module list --select id,id +``` + +### List limitsModule records with filtering and ordering + +```bash +csdk limits-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a limitsModule + +```bash +csdk limits-module create --databaseId [--schemaId ] [--privateSchemaId ] [--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 + +```bash +csdk limits-module get --id +``` diff --git a/.agents/skills/cli-modules/references/membership-types-module.md b/.agents/skills/cli-modules/references/membership-types-module.md new file mode 100644 index 0000000000..11b1c20423 --- /dev/null +++ b/.agents/skills/cli-modules/references/membership-types-module.md @@ -0,0 +1,68 @@ +# membershipTypesModule + + + +CRUD operations for MembershipTypesModule records via csdk CLI + +## Usage + +```bash +csdk membership-types-module list +csdk membership-types-module list --where.. --orderBy +csdk membership-types-module list --limit 10 --after +csdk membership-types-module find-first --where.. +csdk membership-types-module get --id +csdk membership-types-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +csdk membership-types-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] +csdk membership-types-module delete --id +``` + +## Examples + +### List membershipTypesModule records + +```bash +csdk membership-types-module list +``` + +### List membershipTypesModule records with pagination + +```bash +csdk membership-types-module list --limit 10 --offset 0 +``` + +### List membershipTypesModule records with cursor pagination + +```bash +csdk membership-types-module list --limit 10 --after +``` + +### Find first matching membershipTypesModule + +```bash +csdk membership-types-module find-first --where.id.equalTo +``` + +### List membershipTypesModule records with field selection + +```bash +csdk membership-types-module list --select id,id +``` + +### List membershipTypesModule records with filtering and ordering + +```bash +csdk membership-types-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a membershipTypesModule + +```bash +csdk membership-types-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a membershipTypesModule by id + +```bash +csdk membership-types-module get --id +``` diff --git a/.agents/skills/cli-modules/references/memberships-module.md b/.agents/skills/cli-modules/references/memberships-module.md new file mode 100644 index 0000000000..010eb708b6 --- /dev/null +++ b/.agents/skills/cli-modules/references/memberships-module.md @@ -0,0 +1,68 @@ +# membershipsModule + + + +CRUD operations for MembershipsModule records via csdk CLI + +## Usage + +```bash +csdk memberships-module list +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 ] [--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 ] [--apiName ] [--privateApiName ] +csdk memberships-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--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 ] [--apiName ] [--privateApiName ] +csdk memberships-module delete --id +``` + +## Examples + +### List membershipsModule records + +```bash +csdk memberships-module list +``` + +### List membershipsModule records with pagination + +```bash +csdk memberships-module list --limit 10 --offset 0 +``` + +### List membershipsModule records with cursor pagination + +```bash +csdk memberships-module list --limit 10 --after +``` + +### Find first matching membershipsModule + +```bash +csdk memberships-module find-first --where.id.equalTo +``` + +### List membershipsModule records with field selection + +```bash +csdk memberships-module list --select id,id +``` + +### List membershipsModule records with filtering and ordering + +```bash +csdk memberships-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a membershipsModule + +```bash +csdk memberships-module create --databaseId [--schemaId ] [--privateSchemaId ] [--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 ] [--apiName ] [--privateApiName ] +``` + +### Get a membershipsModule by id + +```bash +csdk memberships-module get --id +``` diff --git a/.agents/skills/cli-modules/references/merkle-store-module.md b/.agents/skills/cli-modules/references/merkle-store-module.md new file mode 100644 index 0000000000..1ca6c9f56f --- /dev/null +++ b/.agents/skills/cli-modules/references/merkle-store-module.md @@ -0,0 +1,68 @@ +# merkleStoreModule + + + +CRUD operations for MerkleStoreModule records via csdk CLI + +## Usage + +```bash +csdk merkle-store-module list +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 ] [--databaseOwned ] +csdk merkle-store-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--databaseOwned ] +csdk merkle-store-module delete --id +``` + +## Examples + +### List merkleStoreModule records + +```bash +csdk merkle-store-module list +``` + +### List merkleStoreModule records with pagination + +```bash +csdk merkle-store-module list --limit 10 --offset 0 +``` + +### List merkleStoreModule records with cursor pagination + +```bash +csdk merkle-store-module list --limit 10 --after +``` + +### Find first matching merkleStoreModule + +```bash +csdk merkle-store-module find-first --where.id.equalTo +``` + +### List merkleStoreModule records with field selection + +```bash +csdk merkle-store-module list --select id,id +``` + +### List merkleStoreModule records with filtering and ordering + +```bash +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 ] [--databaseOwned ] +``` + +### Get a merkleStoreModule by id + +```bash +csdk merkle-store-module get --id +``` diff --git a/.agents/skills/cli-modules/references/namespace-module.md b/.agents/skills/cli-modules/references/namespace-module.md new file mode 100644 index 0000000000..30151b3144 --- /dev/null +++ b/.agents/skills/cli-modules/references/namespace-module.md @@ -0,0 +1,68 @@ +# namespaceModule + + + +CRUD operations for NamespaceModule records via csdk CLI + +## Usage + +```bash +csdk namespace-module list +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 ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk namespace-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk namespace-module delete --id +``` + +## Examples + +### List namespaceModule records + +```bash +csdk namespace-module list +``` + +### List namespaceModule records with pagination + +```bash +csdk namespace-module list --limit 10 --offset 0 +``` + +### List namespaceModule records with cursor pagination + +```bash +csdk namespace-module list --limit 10 --after +``` + +### Find first matching namespaceModule + +```bash +csdk namespace-module find-first --where.id.equalTo +``` + +### List namespaceModule records with field selection + +```bash +csdk namespace-module list --select id,id +``` + +### List namespaceModule records with filtering and ordering + +```bash +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 ] [--databaseOwned ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +``` + +### Get a namespaceModule by id + +```bash +csdk namespace-module get --id +``` diff --git a/.agents/skills/cli-modules/references/notifications-module.md b/.agents/skills/cli-modules/references/notifications-module.md new file mode 100644 index 0000000000..e1b22bf2fa --- /dev/null +++ b/.agents/skills/cli-modules/references/notifications-module.md @@ -0,0 +1,68 @@ +# notificationsModule + + + +CRUD operations for NotificationsModule records via csdk CLI + +## Usage + +```bash +csdk notifications-module list +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 ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--apiName ] [--privateApiName ] +csdk notifications-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--apiName ] [--privateApiName ] +csdk notifications-module delete --id +``` + +## Examples + +### List notificationsModule records + +```bash +csdk notifications-module list +``` + +### List notificationsModule records with pagination + +```bash +csdk notifications-module list --limit 10 --offset 0 +``` + +### List notificationsModule records with cursor pagination + +```bash +csdk notifications-module list --limit 10 --after +``` + +### Find first matching notificationsModule + +```bash +csdk notifications-module find-first --where.id.equalTo +``` + +### List notificationsModule records with field selection + +```bash +csdk notifications-module list --select id,id +``` + +### List notificationsModule records with filtering and ordering + +```bash +csdk notifications-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a notificationsModule + +```bash +csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--apiName ] [--privateApiName ] +``` + +### Get a notificationsModule by id + +```bash +csdk notifications-module get --id +``` diff --git a/.agents/skills/cli-modules/references/permissions-module.md b/.agents/skills/cli-modules/references/permissions-module.md new file mode 100644 index 0000000000..ec637d3d08 --- /dev/null +++ b/.agents/skills/cli-modules/references/permissions-module.md @@ -0,0 +1,68 @@ +# permissionsModule + + + +CRUD operations for PermissionsModule records via csdk CLI + +## Usage + +```bash +csdk permissions-module list +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 ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module delete --id +``` + +## Examples + +### List permissionsModule records + +```bash +csdk permissions-module list +``` + +### List permissionsModule records with pagination + +```bash +csdk permissions-module list --limit 10 --offset 0 +``` + +### List permissionsModule records with cursor pagination + +```bash +csdk permissions-module list --limit 10 --after +``` + +### Find first matching permissionsModule + +```bash +csdk permissions-module find-first --where.id.equalTo +``` + +### List permissionsModule records with field selection + +```bash +csdk permissions-module list --select id,id +``` + +### List permissionsModule records with filtering and ordering + +```bash +csdk permissions-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a permissionsModule + +```bash +csdk permissions-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +``` + +### Get a permissionsModule by id + +```bash +csdk permissions-module get --id +``` diff --git a/.agents/skills/cli-modules/references/phone-numbers-module.md b/.agents/skills/cli-modules/references/phone-numbers-module.md new file mode 100644 index 0000000000..4f4c1b4f59 --- /dev/null +++ b/.agents/skills/cli-modules/references/phone-numbers-module.md @@ -0,0 +1,68 @@ +# phoneNumbersModule + + + +CRUD operations for PhoneNumbersModule records via csdk CLI + +## Usage + +```bash +csdk phone-numbers-module list +csdk phone-numbers-module list --where.. --orderBy +csdk phone-numbers-module list --limit 10 --after +csdk phone-numbers-module find-first --where.. +csdk phone-numbers-module get --id +csdk phone-numbers-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--apiName ] [--privateApiName ] +csdk phone-numbers-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk phone-numbers-module delete --id +``` + +## Examples + +### List phoneNumbersModule records + +```bash +csdk phone-numbers-module list +``` + +### List phoneNumbersModule records with pagination + +```bash +csdk phone-numbers-module list --limit 10 --offset 0 +``` + +### List phoneNumbersModule records with cursor pagination + +```bash +csdk phone-numbers-module list --limit 10 --after +``` + +### Find first matching phoneNumbersModule + +```bash +csdk phone-numbers-module find-first --where.id.equalTo +``` + +### List phoneNumbersModule records with field selection + +```bash +csdk phone-numbers-module list --select id,id +``` + +### List phoneNumbersModule records with filtering and ordering + +```bash +csdk phone-numbers-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a phoneNumbersModule + +```bash +csdk phone-numbers-module create --databaseId --tableName [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a phoneNumbersModule by id + +```bash +csdk phone-numbers-module get --id +``` diff --git a/.agents/skills/cli-modules/references/plans-module.md b/.agents/skills/cli-modules/references/plans-module.md new file mode 100644 index 0000000000..6e0aee12d5 --- /dev/null +++ b/.agents/skills/cli-modules/references/plans-module.md @@ -0,0 +1,68 @@ +# plansModule + + + +CRUD operations for PlansModule records via csdk CLI + +## Usage + +```bash +csdk plans-module list +csdk plans-module list --where.. --orderBy +csdk plans-module list --limit 10 --after +csdk plans-module find-first --where.. +csdk plans-module get --id +csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk plans-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk plans-module delete --id +``` + +## Examples + +### List plansModule records + +```bash +csdk plans-module list +``` + +### List plansModule records with pagination + +```bash +csdk plans-module list --limit 10 --offset 0 +``` + +### List plansModule records with cursor pagination + +```bash +csdk plans-module list --limit 10 --after +``` + +### Find first matching plansModule + +```bash +csdk plans-module find-first --where.id.equalTo +``` + +### List plansModule records with field selection + +```bash +csdk plans-module list --select id,id +``` + +### List plansModule records with filtering and ordering + +```bash +csdk plans-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a plansModule + +```bash +csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a plansModule by id + +```bash +csdk plans-module get --id +``` diff --git a/.agents/skills/cli-modules/references/profiles-module.md b/.agents/skills/cli-modules/references/profiles-module.md new file mode 100644 index 0000000000..61aa11b5c1 --- /dev/null +++ b/.agents/skills/cli-modules/references/profiles-module.md @@ -0,0 +1,68 @@ +# profilesModule + + + +CRUD operations for ProfilesModule records via csdk CLI + +## Usage + +```bash +csdk profiles-module list +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 ] [--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 ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +csdk profiles-module delete --id +``` + +## Examples + +### List profilesModule records + +```bash +csdk profiles-module list +``` + +### List profilesModule records with pagination + +```bash +csdk profiles-module list --limit 10 --offset 0 +``` + +### List profilesModule records with cursor pagination + +```bash +csdk profiles-module list --limit 10 --after +``` + +### Find first matching profilesModule + +```bash +csdk profiles-module find-first --where.id.equalTo +``` + +### List profilesModule records with field selection + +```bash +csdk profiles-module list --select id,id +``` + +### List profilesModule records with filtering and ordering + +```bash +csdk profiles-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a profilesModule + +```bash +csdk profiles-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +``` + +### Get a profilesModule by id + +```bash +csdk profiles-module get --id +``` diff --git a/.agents/skills/cli-modules/references/provision-bucket.md b/.agents/skills/cli-modules/references/provision-bucket.md new file mode 100644 index 0000000000..cc17ffbc21 --- /dev/null +++ b/.agents/skills/cli-modules/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/references/provision-check-constraint.md b/.agents/skills/cli-modules/references/provision-check-constraint.md new file mode 100644 index 0000000000..9f3c8bac7a --- /dev/null +++ b/.agents/skills/cli-modules/references/provision-check-constraint.md @@ -0,0 +1,19 @@ +# provisionCheckConstraint + + + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +## Usage + +```bash +csdk provision-check-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` + +## Examples + +### Run provisionCheckConstraint + +```bash +csdk provision-check-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` diff --git a/.agents/skills/cli-modules/references/provision-full-text-search.md b/.agents/skills/cli-modules/references/provision-full-text-search.md new file mode 100644 index 0000000000..aff521535b --- /dev/null +++ b/.agents/skills/cli-modules/references/provision-full-text-search.md @@ -0,0 +1,19 @@ +# provisionFullTextSearch + + + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +## Usage + +```bash +csdk provision-full-text-search --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` + +## Examples + +### Run provisionFullTextSearch + +```bash +csdk provision-full-text-search --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` diff --git a/.agents/skills/cli-modules/references/provision-index.md b/.agents/skills/cli-modules/references/provision-index.md new file mode 100644 index 0000000000..59f85da822 --- /dev/null +++ b/.agents/skills/cli-modules/references/provision-index.md @@ -0,0 +1,19 @@ +# provisionIndex + + + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +## Usage + +```bash +csdk provision-index --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` + +## Examples + +### Run provisionIndex + +```bash +csdk provision-index --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` diff --git a/.agents/skills/cli-modules/references/provision-relation.md b/.agents/skills/cli-modules/references/provision-relation.md new file mode 100644 index 0000000000..15516a0500 --- /dev/null +++ b/.agents/skills/cli-modules/references/provision-relation.md @@ -0,0 +1,19 @@ +# provisionRelation + + + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +## Usage + +```bash +csdk provision-relation --input.clientMutationId --input.databaseId --input.relationType --input.sourceTableId --input.targetTableId --input.fieldName --input.deleteAction --input.isRequired --input.apiRequired --input.createIndex --input.junctionTableId --input.junctionTableName --input.junctionSchemaId --input.sourceFieldName --input.targetFieldName --input.useCompositeKey --input.exposeInApi --input.nodes --input.grants --input.policies +``` + +## Examples + +### Run provisionRelation + +```bash +csdk provision-relation --input.clientMutationId --input.databaseId --input.relationType --input.sourceTableId --input.targetTableId --input.fieldName --input.deleteAction --input.isRequired --input.apiRequired --input.createIndex --input.junctionTableId --input.junctionTableName --input.junctionSchemaId --input.sourceFieldName --input.targetFieldName --input.useCompositeKey --input.exposeInApi --input.nodes --input.grants --input.policies +``` diff --git a/.agents/skills/cli-modules/references/provision-spatial-relation.md b/.agents/skills/cli-modules/references/provision-spatial-relation.md new file mode 100644 index 0000000000..0b5b896142 --- /dev/null +++ b/.agents/skills/cli-modules/references/provision-spatial-relation.md @@ -0,0 +1,19 @@ +# provisionSpatialRelation + + + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +## Usage + +```bash +csdk provision-spatial-relation --input.clientMutationId --input.pDatabaseId --input.pSourceTableId --input.pSourceFieldId --input.pTargetTableId --input.pTargetFieldId --input.pName --input.pOperator --input.pParamName +``` + +## Examples + +### Run provisionSpatialRelation + +```bash +csdk provision-spatial-relation --input.clientMutationId --input.pDatabaseId --input.pSourceTableId --input.pSourceFieldId --input.pTargetTableId --input.pTargetFieldId --input.pName --input.pOperator --input.pParamName +``` diff --git a/.agents/skills/cli-modules/references/provision-table.md b/.agents/skills/cli-modules/references/provision-table.md new file mode 100644 index 0000000000..9426533f52 --- /dev/null +++ b/.agents/skills/cli-modules/references/provision-table.md @@ -0,0 +1,19 @@ +# provisionTable + + + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +## Usage + +```bash +csdk provision-table --input.clientMutationId --input.databaseId --input.schemaId --input.tableName --input.tableId --input.nodes --input.fields --input.policies --input.grants --input.useRls --input.indexes --input.fullTextSearches --input.uniqueConstraints --input.description +``` + +## Examples + +### Run provisionTable + +```bash +csdk provision-table --input.clientMutationId --input.databaseId --input.schemaId --input.tableName --input.tableId --input.nodes --input.fields --input.policies --input.grants --input.useRls --input.indexes --input.fullTextSearches --input.uniqueConstraints --input.description +``` diff --git a/.agents/skills/cli-modules/references/provision-unique-constraint.md b/.agents/skills/cli-modules/references/provision-unique-constraint.md new file mode 100644 index 0000000000..71df14404e --- /dev/null +++ b/.agents/skills/cli-modules/references/provision-unique-constraint.md @@ -0,0 +1,19 @@ +# provisionUniqueConstraint + + + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +## Usage + +```bash +csdk provision-unique-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` + +## Examples + +### Run provisionUniqueConstraint + +```bash +csdk provision-unique-constraint --input.clientMutationId --input.databaseId --input.tableId --input.definition +``` diff --git a/.agents/skills/cli-modules/references/rate-limit-meters-module.md b/.agents/skills/cli-modules/references/rate-limit-meters-module.md new file mode 100644 index 0000000000..472d3747bd --- /dev/null +++ b/.agents/skills/cli-modules/references/rate-limit-meters-module.md @@ -0,0 +1,68 @@ +# rateLimitMetersModule + + + +CRUD operations for RateLimitMetersModule records via csdk CLI + +## Usage + +```bash +csdk rate-limit-meters-module list +csdk rate-limit-meters-module list --where.. --orderBy +csdk rate-limit-meters-module list --limit 10 --after +csdk rate-limit-meters-module find-first --where.. +csdk rate-limit-meters-module get --id +csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk rate-limit-meters-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk rate-limit-meters-module delete --id +``` + +## Examples + +### List rateLimitMetersModule records + +```bash +csdk rate-limit-meters-module list +``` + +### List rateLimitMetersModule records with pagination + +```bash +csdk rate-limit-meters-module list --limit 10 --offset 0 +``` + +### List rateLimitMetersModule records with cursor pagination + +```bash +csdk rate-limit-meters-module list --limit 10 --after +``` + +### Find first matching rateLimitMetersModule + +```bash +csdk rate-limit-meters-module find-first --where.id.equalTo +``` + +### List rateLimitMetersModule records with field selection + +```bash +csdk rate-limit-meters-module list --select id,id +``` + +### List rateLimitMetersModule records with filtering and ordering + +```bash +csdk rate-limit-meters-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a rateLimitMetersModule + +```bash +csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a rateLimitMetersModule by id + +```bash +csdk rate-limit-meters-module get --id +``` diff --git a/.agents/skills/cli-modules/references/rate-limits-module.md b/.agents/skills/cli-modules/references/rate-limits-module.md new file mode 100644 index 0000000000..da889d04f6 --- /dev/null +++ b/.agents/skills/cli-modules/references/rate-limits-module.md @@ -0,0 +1,68 @@ +# rateLimitsModule + + + +CRUD operations for RateLimitsModule records via csdk CLI + +## Usage + +```bash +csdk rate-limits-module list +csdk rate-limits-module list --where.. --orderBy +csdk rate-limits-module list --limit 10 --after +csdk rate-limits-module find-first --where.. +csdk rate-limits-module get --id +csdk rate-limits-module create --databaseId [--schemaId ] [--rateLimitSettingsTableId ] [--ipRateLimitsTableId ] [--rateLimitsTableId ] [--rateLimitSettingsTable ] [--ipRateLimitsTable ] [--rateLimitsTable ] +csdk rate-limits-module update --id [--databaseId ] [--schemaId ] [--rateLimitSettingsTableId ] [--ipRateLimitsTableId ] [--rateLimitsTableId ] [--rateLimitSettingsTable ] [--ipRateLimitsTable ] [--rateLimitsTable ] +csdk rate-limits-module delete --id +``` + +## Examples + +### List rateLimitsModule records + +```bash +csdk rate-limits-module list +``` + +### List rateLimitsModule records with pagination + +```bash +csdk rate-limits-module list --limit 10 --offset 0 +``` + +### List rateLimitsModule records with cursor pagination + +```bash +csdk rate-limits-module list --limit 10 --after +``` + +### Find first matching rateLimitsModule + +```bash +csdk rate-limits-module find-first --where.id.equalTo +``` + +### List rateLimitsModule records with field selection + +```bash +csdk rate-limits-module list --select id,id +``` + +### List rateLimitsModule records with filtering and ordering + +```bash +csdk rate-limits-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a rateLimitsModule + +```bash +csdk rate-limits-module create --databaseId [--schemaId ] [--rateLimitSettingsTableId ] [--ipRateLimitsTableId ] [--rateLimitsTableId ] [--rateLimitSettingsTable ] [--ipRateLimitsTable ] [--rateLimitsTable ] +``` + +### Get a rateLimitsModule by id + +```bash +csdk rate-limits-module get --id +``` diff --git a/.agents/skills/cli-modules/references/realtime-module.md b/.agents/skills/cli-modules/references/realtime-module.md new file mode 100644 index 0000000000..92c7c91f24 --- /dev/null +++ b/.agents/skills/cli-modules/references/realtime-module.md @@ -0,0 +1,68 @@ +# realtimeModule + + + +CRUD operations for RealtimeModule records via csdk CLI + +## Usage + +```bash +csdk realtime-module list +csdk realtime-module list --where.. --orderBy +csdk realtime-module list --limit 10 --after +csdk realtime-module find-first --where.. +csdk realtime-module get --id +csdk realtime-module create --databaseId [--schemaId ] [--privateSchemaId ] [--subscriptionsSchemaId ] [--changeLogTableId ] [--listenerNodeTableId ] [--sourceRegistryTableId ] [--retentionHours ] [--premake ] [--interval ] [--notifyChannel ] [--apiName ] [--privateApiName ] +csdk realtime-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--subscriptionsSchemaId ] [--changeLogTableId ] [--listenerNodeTableId ] [--sourceRegistryTableId ] [--retentionHours ] [--premake ] [--interval ] [--notifyChannel ] [--apiName ] [--privateApiName ] +csdk realtime-module delete --id +``` + +## Examples + +### List realtimeModule records + +```bash +csdk realtime-module list +``` + +### List realtimeModule records with pagination + +```bash +csdk realtime-module list --limit 10 --offset 0 +``` + +### List realtimeModule records with cursor pagination + +```bash +csdk realtime-module list --limit 10 --after +``` + +### Find first matching realtimeModule + +```bash +csdk realtime-module find-first --where.id.equalTo +``` + +### List realtimeModule records with field selection + +```bash +csdk realtime-module list --select id,id +``` + +### List realtimeModule records with filtering and ordering + +```bash +csdk realtime-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a realtimeModule + +```bash +csdk realtime-module create --databaseId [--schemaId ] [--privateSchemaId ] [--subscriptionsSchemaId ] [--changeLogTableId ] [--listenerNodeTableId ] [--sourceRegistryTableId ] [--retentionHours ] [--premake ] [--interval ] [--notifyChannel ] [--apiName ] [--privateApiName ] +``` + +### Get a realtimeModule by id + +```bash +csdk realtime-module get --id +``` diff --git a/.agents/skills/cli-modules/references/relation-provision.md b/.agents/skills/cli-modules/references/relation-provision.md new file mode 100644 index 0000000000..d4e7702645 --- /dev/null +++ b/.agents/skills/cli-modules/references/relation-provision.md @@ -0,0 +1,68 @@ +# relationProvision + + + +CRUD operations for RelationProvision records via csdk CLI + +## Usage + +```bash +csdk relation-provision list +csdk relation-provision list --where.. --orderBy +csdk relation-provision list --limit 10 --after +csdk relation-provision find-first --where.. +csdk relation-provision get --id +csdk relation-provision create --databaseId --relationType --sourceTableId --targetTableId [--fieldName ] [--deleteAction ] [--isRequired ] [--apiRequired ] [--junctionTableId ] [--junctionTableName ] [--junctionSchemaId ] [--sourceFieldName ] [--targetFieldName ] [--useCompositeKey ] [--createIndex ] [--exposeInApi ] [--nodes ] [--grants ] [--policies ] [--outFieldId ] [--outJunctionTableId ] [--outSourceFieldId ] [--outTargetFieldId ] +csdk relation-provision update --id [--databaseId ] [--relationType ] [--sourceTableId ] [--targetTableId ] [--fieldName ] [--deleteAction ] [--isRequired ] [--apiRequired ] [--junctionTableId ] [--junctionTableName ] [--junctionSchemaId ] [--sourceFieldName ] [--targetFieldName ] [--useCompositeKey ] [--createIndex ] [--exposeInApi ] [--nodes ] [--grants ] [--policies ] [--outFieldId ] [--outJunctionTableId ] [--outSourceFieldId ] [--outTargetFieldId ] +csdk relation-provision delete --id +``` + +## Examples + +### List relationProvision records + +```bash +csdk relation-provision list +``` + +### List relationProvision records with pagination + +```bash +csdk relation-provision list --limit 10 --offset 0 +``` + +### List relationProvision records with cursor pagination + +```bash +csdk relation-provision list --limit 10 --after +``` + +### Find first matching relationProvision + +```bash +csdk relation-provision find-first --where.id.equalTo +``` + +### List relationProvision records with field selection + +```bash +csdk relation-provision list --select id,id +``` + +### List relationProvision records with filtering and ordering + +```bash +csdk relation-provision list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a relationProvision + +```bash +csdk relation-provision create --databaseId --relationType --sourceTableId --targetTableId [--fieldName ] [--deleteAction ] [--isRequired ] [--apiRequired ] [--junctionTableId ] [--junctionTableName ] [--junctionSchemaId ] [--sourceFieldName ] [--targetFieldName ] [--useCompositeKey ] [--createIndex ] [--exposeInApi ] [--nodes ] [--grants ] [--policies ] [--outFieldId ] [--outJunctionTableId ] [--outSourceFieldId ] [--outTargetFieldId ] +``` + +### Get a relationProvision by id + +```bash +csdk relation-provision get --id +``` diff --git a/.agents/skills/cli-modules/references/resolve-blueprint-field.md b/.agents/skills/cli-modules/references/resolve-blueprint-field.md new file mode 100644 index 0000000000..4aac79d782 --- /dev/null +++ b/.agents/skills/cli-modules/references/resolve-blueprint-field.md @@ -0,0 +1,19 @@ +# resolveBlueprintField + + + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +## Usage + +```bash +csdk resolve-blueprint-field --databaseId --tableId --fieldName +``` + +## Examples + +### Run resolveBlueprintField + +```bash +csdk resolve-blueprint-field --databaseId --tableId --fieldName +``` diff --git a/.agents/skills/cli-modules/references/resolve-blueprint-table.md b/.agents/skills/cli-modules/references/resolve-blueprint-table.md new file mode 100644 index 0000000000..fc2075b2c1 --- /dev/null +++ b/.agents/skills/cli-modules/references/resolve-blueprint-table.md @@ -0,0 +1,19 @@ +# resolveBlueprintTable + + + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +## Usage + +```bash +csdk resolve-blueprint-table --databaseId --tableName --schemaName --tableMap --defaultSchemaId +``` + +## Examples + +### Run resolveBlueprintTable + +```bash +csdk resolve-blueprint-table --databaseId --tableName --schemaName --tableMap --defaultSchemaId +``` diff --git a/.agents/skills/cli-modules/references/rls-module.md b/.agents/skills/cli-modules/references/rls-module.md new file mode 100644 index 0000000000..844b7e82a9 --- /dev/null +++ b/.agents/skills/cli-modules/references/rls-module.md @@ -0,0 +1,68 @@ +# rlsModule + + + +CRUD operations for RlsModule records via csdk CLI + +## Usage + +```bash +csdk rls-module list +csdk rls-module list --where.. --orderBy +csdk rls-module list --limit 10 --after +csdk rls-module find-first --where.. +csdk rls-module get --id +csdk rls-module create --databaseId [--schemaId ] [--privateSchemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] [--authenticate ] [--authenticateStrict ] [--currentRole ] [--currentRoleId ] [--apiName ] [--privateApiName ] +csdk rls-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] [--authenticate ] [--authenticateStrict ] [--currentRole ] [--currentRoleId ] [--apiName ] [--privateApiName ] +csdk rls-module delete --id +``` + +## Examples + +### List rlsModule records + +```bash +csdk rls-module list +``` + +### List rlsModule records with pagination + +```bash +csdk rls-module list --limit 10 --offset 0 +``` + +### List rlsModule records with cursor pagination + +```bash +csdk rls-module list --limit 10 --after +``` + +### Find first matching rlsModule + +```bash +csdk rls-module find-first --where.id.equalTo +``` + +### List rlsModule records with field selection + +```bash +csdk rls-module list --select id,id +``` + +### List rlsModule records with filtering and ordering + +```bash +csdk rls-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a rlsModule + +```bash +csdk rls-module create --databaseId [--schemaId ] [--privateSchemaId ] [--sessionCredentialsTableId ] [--sessionsTableId ] [--usersTableId ] [--authenticate ] [--authenticateStrict ] [--currentRole ] [--currentRoleId ] [--apiName ] [--privateApiName ] +``` + +### Get a rlsModule by id + +```bash +csdk rls-module get --id +``` diff --git a/.agents/skills/cli-modules/references/secure-table-provision.md b/.agents/skills/cli-modules/references/secure-table-provision.md new file mode 100644 index 0000000000..8cc0bce0f5 --- /dev/null +++ b/.agents/skills/cli-modules/references/secure-table-provision.md @@ -0,0 +1,68 @@ +# secureTableProvision + + + +CRUD operations for SecureTableProvision records via csdk CLI + +## Usage + +```bash +csdk secure-table-provision list +csdk secure-table-provision list --where.. --orderBy +csdk secure-table-provision list --limit 10 --after +csdk secure-table-provision find-first --where.. +csdk secure-table-provision get --id +csdk secure-table-provision create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--nodes ] [--useRls ] [--fields ] [--grants ] [--policies ] [--outFields ] +csdk secure-table-provision update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--nodes ] [--useRls ] [--fields ] [--grants ] [--policies ] [--outFields ] +csdk secure-table-provision delete --id +``` + +## Examples + +### List secureTableProvision records + +```bash +csdk secure-table-provision list +``` + +### List secureTableProvision records with pagination + +```bash +csdk secure-table-provision list --limit 10 --offset 0 +``` + +### List secureTableProvision records with cursor pagination + +```bash +csdk secure-table-provision list --limit 10 --after +``` + +### Find first matching secureTableProvision + +```bash +csdk secure-table-provision find-first --where.id.equalTo +``` + +### List secureTableProvision records with field selection + +```bash +csdk secure-table-provision list --select id,id +``` + +### List secureTableProvision records with filtering and ordering + +```bash +csdk secure-table-provision list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a secureTableProvision + +```bash +csdk secure-table-provision create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--nodes ] [--useRls ] [--fields ] [--grants ] [--policies ] [--outFields ] +``` + +### Get a secureTableProvision by id + +```bash +csdk secure-table-provision get --id +``` diff --git a/.agents/skills/cli-modules/references/session-secrets-module.md b/.agents/skills/cli-modules/references/session-secrets-module.md new file mode 100644 index 0000000000..e02671d1af --- /dev/null +++ b/.agents/skills/cli-modules/references/session-secrets-module.md @@ -0,0 +1,68 @@ +# sessionSecretsModule + + + +CRUD operations for SessionSecretsModule records via csdk CLI + +## Usage + +```bash +csdk session-secrets-module list +csdk session-secrets-module list --where.. --orderBy +csdk session-secrets-module list --limit 10 --after +csdk session-secrets-module find-first --where.. +csdk session-secrets-module get --id +csdk session-secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--sessionsTableId ] +csdk session-secrets-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--sessionsTableId ] +csdk session-secrets-module delete --id +``` + +## Examples + +### List sessionSecretsModule records + +```bash +csdk session-secrets-module list +``` + +### List sessionSecretsModule records with pagination + +```bash +csdk session-secrets-module list --limit 10 --offset 0 +``` + +### List sessionSecretsModule records with cursor pagination + +```bash +csdk session-secrets-module list --limit 10 --after +``` + +### Find first matching sessionSecretsModule + +```bash +csdk session-secrets-module find-first --where.id.equalTo +``` + +### List sessionSecretsModule records with field selection + +```bash +csdk session-secrets-module list --select id,id +``` + +### List sessionSecretsModule records with filtering and ordering + +```bash +csdk session-secrets-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a sessionSecretsModule + +```bash +csdk session-secrets-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--sessionsTableId ] +``` + +### Get a sessionSecretsModule by id + +```bash +csdk session-secrets-module get --id +``` diff --git a/.agents/skills/cli-modules/references/sessions-module.md b/.agents/skills/cli-modules/references/sessions-module.md new file mode 100644 index 0000000000..6fb1cd668b --- /dev/null +++ b/.agents/skills/cli-modules/references/sessions-module.md @@ -0,0 +1,68 @@ +# sessionsModule + + + +CRUD operations for SessionsModule records via csdk CLI + +## Usage + +```bash +csdk sessions-module list +csdk sessions-module list --where.. --orderBy +csdk sessions-module list --limit 10 --after +csdk sessions-module find-first --where.. +csdk sessions-module get --id +csdk sessions-module create --databaseId [--schemaId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--authSettingsTableId ] [--usersTableId ] [--sessionsDefaultExpiration ] [--sessionsTable ] [--sessionCredentialsTable ] [--authSettingsTable ] +csdk sessions-module update --id [--databaseId ] [--schemaId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--authSettingsTableId ] [--usersTableId ] [--sessionsDefaultExpiration ] [--sessionsTable ] [--sessionCredentialsTable ] [--authSettingsTable ] +csdk sessions-module delete --id +``` + +## Examples + +### List sessionsModule records + +```bash +csdk sessions-module list +``` + +### List sessionsModule records with pagination + +```bash +csdk sessions-module list --limit 10 --offset 0 +``` + +### List sessionsModule records with cursor pagination + +```bash +csdk sessions-module list --limit 10 --after +``` + +### Find first matching sessionsModule + +```bash +csdk sessions-module find-first --where.id.equalTo +``` + +### List sessionsModule records with field selection + +```bash +csdk sessions-module list --select id,id +``` + +### List sessionsModule records with filtering and ordering + +```bash +csdk sessions-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a sessionsModule + +```bash +csdk sessions-module create --databaseId [--schemaId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--authSettingsTableId ] [--usersTableId ] [--sessionsDefaultExpiration ] [--sessionsTable ] [--sessionCredentialsTable ] [--authSettingsTable ] +``` + +### Get a sessionsModule by id + +```bash +csdk sessions-module get --id +``` diff --git a/.agents/skills/cli-modules/references/storage-log-module.md b/.agents/skills/cli-modules/references/storage-log-module.md new file mode 100644 index 0000000000..2be64f9702 --- /dev/null +++ b/.agents/skills/cli-modules/references/storage-log-module.md @@ -0,0 +1,68 @@ +# storageLogModule + + + +CRUD operations for StorageLogModule records via csdk CLI + +## Usage + +```bash +csdk storage-log-module list +csdk storage-log-module list --where.. --orderBy +csdk storage-log-module list --limit 10 --after +csdk storage-log-module find-first --where.. +csdk storage-log-module get --id +csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module delete --id +``` + +## Examples + +### List storageLogModule records + +```bash +csdk storage-log-module list +``` + +### List storageLogModule records with pagination + +```bash +csdk storage-log-module list --limit 10 --offset 0 +``` + +### List storageLogModule records with cursor pagination + +```bash +csdk storage-log-module list --limit 10 --after +``` + +### Find first matching storageLogModule + +```bash +csdk storage-log-module find-first --where.id.equalTo +``` + +### List storageLogModule records with field selection + +```bash +csdk storage-log-module list --select id,id +``` + +### List storageLogModule records with filtering and ordering + +```bash +csdk storage-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a storageLogModule + +```bash +csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a storageLogModule by id + +```bash +csdk storage-log-module get --id +``` diff --git a/.agents/skills/cli-modules/references/storage-module.md b/.agents/skills/cli-modules/references/storage-module.md new file mode 100644 index 0000000000..3e56d933bd --- /dev/null +++ b/.agents/skills/cli-modules/references/storage-module.md @@ -0,0 +1,68 @@ +# storageModule + + + +CRUD operations for StorageModule records via csdk CLI + +## Usage + +```bash +csdk storage-module list +csdk storage-module list --where.. --orderBy +csdk storage-module list --limit 10 --after +csdk storage-module find-first --where.. +csdk storage-module get --id +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--databaseOwned ] [--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 ] [--apiName ] [--privateApiName ] +csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--databaseOwned ] [--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 ] [--apiName ] [--privateApiName ] +csdk storage-module delete --id +``` + +## Examples + +### List storageModule records + +```bash +csdk storage-module list +``` + +### List storageModule records with pagination + +```bash +csdk storage-module list --limit 10 --offset 0 +``` + +### List storageModule records with cursor pagination + +```bash +csdk storage-module list --limit 10 --after +``` + +### Find first matching storageModule + +```bash +csdk storage-module find-first --where.id.equalTo +``` + +### List storageModule records with field selection + +```bash +csdk storage-module list --select id,id +``` + +### List storageModule records with filtering and ordering + +```bash +csdk storage-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a storageModule + +```bash +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--databaseOwned ] [--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 ] [--apiName ] [--privateApiName ] +``` + +### Get a storageModule by id + +```bash +csdk storage-module get --id +``` diff --git a/.agents/skills/cli-modules/references/transfer-log-module.md b/.agents/skills/cli-modules/references/transfer-log-module.md new file mode 100644 index 0000000000..07cd7142a2 --- /dev/null +++ b/.agents/skills/cli-modules/references/transfer-log-module.md @@ -0,0 +1,68 @@ +# transferLogModule + + + +CRUD operations for TransferLogModule records via csdk CLI + +## Usage + +```bash +csdk transfer-log-module list +csdk transfer-log-module list --where.. --orderBy +csdk transfer-log-module list --limit 10 --after +csdk transfer-log-module find-first --where.. +csdk transfer-log-module get --id +csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module delete --id +``` + +## Examples + +### List transferLogModule records + +```bash +csdk transfer-log-module list +``` + +### List transferLogModule records with pagination + +```bash +csdk transfer-log-module list --limit 10 --offset 0 +``` + +### List transferLogModule records with cursor pagination + +```bash +csdk transfer-log-module list --limit 10 --after +``` + +### Find first matching transferLogModule + +```bash +csdk transfer-log-module find-first --where.id.equalTo +``` + +### List transferLogModule records with field selection + +```bash +csdk transfer-log-module list --select id,id +``` + +### List transferLogModule records with filtering and ordering + +```bash +csdk transfer-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a transferLogModule + +```bash +csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +``` + +### Get a transferLogModule by id + +```bash +csdk transfer-log-module get --id +``` diff --git a/.agents/skills/cli-modules/references/user-auth-module.md b/.agents/skills/cli-modules/references/user-auth-module.md new file mode 100644 index 0000000000..f0806f50cb --- /dev/null +++ b/.agents/skills/cli-modules/references/user-auth-module.md @@ -0,0 +1,68 @@ +# userAuthModule + + + +CRUD operations for UserAuthModule records via csdk CLI + +## Usage + +```bash +csdk user-auth-module list +csdk user-auth-module list --where.. --orderBy +csdk user-auth-module list --limit 10 --after +csdk user-auth-module find-first --where.. +csdk user-auth-module get --id +csdk user-auth-module create --databaseId [--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 ] +csdk user-auth-module update --id [--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 ] +csdk user-auth-module delete --id +``` + +## Examples + +### List userAuthModule records + +```bash +csdk user-auth-module list +``` + +### List userAuthModule records with pagination + +```bash +csdk user-auth-module list --limit 10 --offset 0 +``` + +### List userAuthModule records with cursor pagination + +```bash +csdk user-auth-module list --limit 10 --after +``` + +### Find first matching userAuthModule + +```bash +csdk user-auth-module find-first --where.id.equalTo +``` + +### List userAuthModule records with field selection + +```bash +csdk user-auth-module list --select id,id +``` + +### List userAuthModule records with filtering and ordering + +```bash +csdk user-auth-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a userAuthModule + +```bash +csdk user-auth-module 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 ] +``` + +### Get a userAuthModule by id + +```bash +csdk user-auth-module get --id +``` diff --git a/.agents/skills/cli-modules/references/user-credentials-module.md b/.agents/skills/cli-modules/references/user-credentials-module.md new file mode 100644 index 0000000000..0602648363 --- /dev/null +++ b/.agents/skills/cli-modules/references/user-credentials-module.md @@ -0,0 +1,68 @@ +# userCredentialsModule + + + +CRUD operations for UserCredentialsModule records via csdk CLI + +## Usage + +```bash +csdk user-credentials-module list +csdk user-credentials-module list --where.. --orderBy +csdk user-credentials-module list --limit 10 --after +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 delete --id +``` + +## Examples + +### List userCredentialsModule records + +```bash +csdk user-credentials-module list +``` + +### List userCredentialsModule records with pagination + +```bash +csdk user-credentials-module list --limit 10 --offset 0 +``` + +### List userCredentialsModule records with cursor pagination + +```bash +csdk user-credentials-module list --limit 10 --after +``` + +### Find first matching userCredentialsModule + +```bash +csdk user-credentials-module find-first --where.id.equalTo +``` + +### List userCredentialsModule records with field selection + +```bash +csdk user-credentials-module list --select id,id +``` + +### List userCredentialsModule records with filtering and ordering + +```bash +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 ] +``` + +### Get a userCredentialsModule by id + +```bash +csdk user-credentials-module get --id +``` diff --git a/.agents/skills/cli-modules/references/user-settings-module.md b/.agents/skills/cli-modules/references/user-settings-module.md new file mode 100644 index 0000000000..d71f34074d --- /dev/null +++ b/.agents/skills/cli-modules/references/user-settings-module.md @@ -0,0 +1,68 @@ +# userSettingsModule + + + +CRUD operations for UserSettingsModule records via csdk CLI + +## Usage + +```bash +csdk user-settings-module list +csdk user-settings-module list --where.. --orderBy +csdk user-settings-module list --limit 10 --after +csdk user-settings-module find-first --where.. +csdk user-settings-module get --id +csdk user-settings-module create --databaseId [--schemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] +csdk user-settings-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] +csdk user-settings-module delete --id +``` + +## Examples + +### List userSettingsModule records + +```bash +csdk user-settings-module list +``` + +### List userSettingsModule records with pagination + +```bash +csdk user-settings-module list --limit 10 --offset 0 +``` + +### List userSettingsModule records with cursor pagination + +```bash +csdk user-settings-module list --limit 10 --after +``` + +### Find first matching userSettingsModule + +```bash +csdk user-settings-module find-first --where.id.equalTo +``` + +### List userSettingsModule records with field selection + +```bash +csdk user-settings-module list --select id,id +``` + +### List userSettingsModule records with filtering and ordering + +```bash +csdk user-settings-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a userSettingsModule + +```bash +csdk user-settings-module create --databaseId [--schemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] +``` + +### Get a userSettingsModule by id + +```bash +csdk user-settings-module get --id +``` diff --git a/.agents/skills/cli-modules/references/user-state-module.md b/.agents/skills/cli-modules/references/user-state-module.md new file mode 100644 index 0000000000..325431eb21 --- /dev/null +++ b/.agents/skills/cli-modules/references/user-state-module.md @@ -0,0 +1,68 @@ +# userStateModule + + + +CRUD operations for UserStateModule records via csdk CLI + +## Usage + +```bash +csdk user-state-module list +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 delete --id +``` + +## Examples + +### List userStateModule records + +```bash +csdk user-state-module list +``` + +### List userStateModule records with pagination + +```bash +csdk user-state-module list --limit 10 --offset 0 +``` + +### List userStateModule records with cursor pagination + +```bash +csdk user-state-module list --limit 10 --after +``` + +### Find first matching userStateModule + +```bash +csdk user-state-module find-first --where.id.equalTo +``` + +### List userStateModule records with field selection + +```bash +csdk user-state-module list --select id,id +``` + +### List userStateModule records with filtering and ordering + +```bash +csdk user-state-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a userStateModule + +```bash +csdk user-state-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a userStateModule by id + +```bash +csdk user-state-module get --id +``` diff --git a/.agents/skills/cli-modules/references/users-module.md b/.agents/skills/cli-modules/references/users-module.md new file mode 100644 index 0000000000..762b322c89 --- /dev/null +++ b/.agents/skills/cli-modules/references/users-module.md @@ -0,0 +1,68 @@ +# usersModule + + + +CRUD operations for UsersModule records via csdk CLI + +## Usage + +```bash +csdk users-module list +csdk users-module list --where.. --orderBy +csdk users-module list --limit 10 --after +csdk users-module find-first --where.. +csdk users-module get --id +csdk users-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--typeTableId ] [--typeTableName ] [--apiName ] [--privateApiName ] +csdk users-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--typeTableId ] [--typeTableName ] [--apiName ] [--privateApiName ] +csdk users-module delete --id +``` + +## Examples + +### List usersModule records + +```bash +csdk users-module list +``` + +### List usersModule records with pagination + +```bash +csdk users-module list --limit 10 --offset 0 +``` + +### List usersModule records with cursor pagination + +```bash +csdk users-module list --limit 10 --after +``` + +### Find first matching usersModule + +```bash +csdk users-module find-first --where.id.equalTo +``` + +### List usersModule records with field selection + +```bash +csdk users-module list --select id,id +``` + +### List usersModule records with filtering and ordering + +```bash +csdk users-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a usersModule + +```bash +csdk users-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--typeTableId ] [--typeTableName ] [--apiName ] [--privateApiName ] +``` + +### Get a usersModule by id + +```bash +csdk users-module get --id +``` diff --git a/.agents/skills/cli-modules/references/webauthn-auth-module.md b/.agents/skills/cli-modules/references/webauthn-auth-module.md new file mode 100644 index 0000000000..18714da265 --- /dev/null +++ b/.agents/skills/cli-modules/references/webauthn-auth-module.md @@ -0,0 +1,68 @@ +# webauthnAuthModule + + + +CRUD operations for WebauthnAuthModule records via csdk CLI + +## Usage + +```bash +csdk webauthn-auth-module list +csdk webauthn-auth-module list --where.. --orderBy +csdk webauthn-auth-module list --limit 10 --after +csdk webauthn-auth-module find-first --where.. +csdk webauthn-auth-module get --id +csdk webauthn-auth-module create --databaseId [--schemaId ] [--usersTableId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--authSettingsTableId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpiry ] +csdk webauthn-auth-module update --id [--databaseId ] [--schemaId ] [--usersTableId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--authSettingsTableId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpiry ] +csdk webauthn-auth-module delete --id +``` + +## Examples + +### List webauthnAuthModule records + +```bash +csdk webauthn-auth-module list +``` + +### List webauthnAuthModule records with pagination + +```bash +csdk webauthn-auth-module list --limit 10 --offset 0 +``` + +### List webauthnAuthModule records with cursor pagination + +```bash +csdk webauthn-auth-module list --limit 10 --after +``` + +### Find first matching webauthnAuthModule + +```bash +csdk webauthn-auth-module find-first --where.id.equalTo +``` + +### List webauthnAuthModule records with field selection + +```bash +csdk webauthn-auth-module list --select id,id +``` + +### List webauthnAuthModule records with filtering and ordering + +```bash +csdk webauthn-auth-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a webauthnAuthModule + +```bash +csdk webauthn-auth-module create --databaseId [--schemaId ] [--usersTableId ] [--credentialsTableId ] [--sessionsTableId ] [--sessionCredentialsTableId ] [--sessionSecretsTableId ] [--authSettingsTableId ] [--rpId ] [--rpName ] [--originAllowlist ] [--attestationType ] [--requireUserVerification ] [--residentKey ] [--challengeExpiry ] +``` + +### Get a webauthnAuthModule by id + +```bash +csdk webauthn-auth-module get --id +``` diff --git a/.agents/skills/cli-modules/references/webauthn-credentials-module.md b/.agents/skills/cli-modules/references/webauthn-credentials-module.md new file mode 100644 index 0000000000..91c5f29ced --- /dev/null +++ b/.agents/skills/cli-modules/references/webauthn-credentials-module.md @@ -0,0 +1,68 @@ +# webauthnCredentialsModule + + + +CRUD operations for WebauthnCredentialsModule records via csdk CLI + +## Usage + +```bash +csdk webauthn-credentials-module list +csdk webauthn-credentials-module list --where.. --orderBy +csdk webauthn-credentials-module list --limit 10 --after +csdk webauthn-credentials-module find-first --where.. +csdk webauthn-credentials-module get --id +csdk webauthn-credentials-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk webauthn-credentials-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk webauthn-credentials-module delete --id +``` + +## Examples + +### List webauthnCredentialsModule records + +```bash +csdk webauthn-credentials-module list +``` + +### List webauthnCredentialsModule records with pagination + +```bash +csdk webauthn-credentials-module list --limit 10 --offset 0 +``` + +### List webauthnCredentialsModule records with cursor pagination + +```bash +csdk webauthn-credentials-module list --limit 10 --after +``` + +### Find first matching webauthnCredentialsModule + +```bash +csdk webauthn-credentials-module find-first --where.id.equalTo +``` + +### List webauthnCredentialsModule records with field selection + +```bash +csdk webauthn-credentials-module list --select id,id +``` + +### List webauthnCredentialsModule records with filtering and ordering + +```bash +csdk webauthn-credentials-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a webauthnCredentialsModule + +```bash +csdk webauthn-credentials-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--ownerTableId ] [--tableName ] [--apiName ] [--privateApiName ] +``` + +### Get a webauthnCredentialsModule by id + +```bash +csdk webauthn-credentials-module get --id +``` diff --git a/.agents/skills/cli-objects/SKILL.md b/.agents/skills/cli-objects/SKILL.md index 62e69e840e..91b3561b72 100644 --- a/.agents/skills/cli-objects/SKILL.md +++ b/.agents/skills/cli-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-objects -description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 13 custom operations +description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 4 custom operations --- # cli-objects -CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 13 custom operations +CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 4 custom operations ## Usage @@ -57,20 +57,11 @@ See the `references/` directory for detailed per-entity API documentation: - [auth](references/auth.md) - [config](references/config.md) - [get-all-record](references/get-all-record.md) -- [object](references/object.md) - [ref](references/ref.md) - [store](references/store.md) +- [object](references/object.md) - [commit](references/commit.md) -- [rev-parse](references/rev-parse.md) -- [get-all-objects-from-root](references/get-all-objects-from-root.md) -- [get-path-objects-from-root](references/get-path-objects-from-root.md) -- [get-object-at-path](references/get-object-at-path.md) -- [freeze-objects](references/freeze-objects.md) - [init-empty-repo](references/init-empty-repo.md) -- [remove-node-at-path](references/remove-node-at-path.md) - [set-data-at-path](references/set-data-at-path.md) -- [set-props-and-commit](references/set-props-and-commit.md) - [insert-node-at-path](references/insert-node-at-path.md) -- [update-node-at-path](references/update-node-at-path.md) -- [set-and-commit](references/set-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-objects/references/init-empty-repo.md b/.agents/skills/cli-objects/references/init-empty-repo.md index 7ba5aa8199..22523a8cd8 100644 --- a/.agents/skills/cli-objects/references/init-empty-repo.md +++ b/.agents/skills/cli-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` ## Examples @@ -15,5 +15,5 @@ csdk init-empty-repo --input.clientMutationId --input.dbId --inp ### Run initEmptyRepo ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` diff --git a/.agents/skills/cli-objects/references/insert-node-at-path.md b/.agents/skills/cli-objects/references/insert-node-at-path.md index b93267c911..5a9e3b7ba3 100644 --- a/.agents/skills/cli-objects/references/insert-node-at-path.md +++ b/.agents/skills/cli-objects/references/insert-node-at-path.md @@ -7,7 +7,7 @@ Execute the insertNodeAtPath mutation ## Usage ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk insert-node-at-path --input.clientMutationId --input.dbId - ### Run insertNodeAtPath ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-objects/references/object.md b/.agents/skills/cli-objects/references/object.md index 97a6238558..2fc380225b 100644 --- a/.agents/skills/cli-objects/references/object.md +++ b/.agents/skills/cli-objects/references/object.md @@ -12,8 +12,8 @@ csdk object list --where.. --orderBy csdk object list --limit 10 --after csdk object find-first --where.. csdk object get --id -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] -csdk object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --databaseId [--kids ] [--ktree ] [--data ] +csdk object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] csdk object delete --id ``` @@ -58,7 +58,7 @@ csdk object list --where.id.equalTo --orderBy ID_ASC ### Create a object ```bash -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --databaseId [--kids ] [--ktree ] [--data ] ``` ### Get a object by id diff --git a/.agents/skills/cli-objects/references/set-data-at-path.md b/.agents/skills/cli-objects/references/set-data-at-path.md index 965cece542..0b30c6a3ab 100644 --- a/.agents/skills/cli-objects/references/set-data-at-path.md +++ b/.agents/skills/cli-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-data-at-path --input.clientMutationId --input.dbId --in ### Run setDataAtPath ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` diff --git a/.agents/skills/cli-usage/SKILL.md b/.agents/skills/cli-usage/SKILL.md new file mode 100644 index 0000000000..9a3a959f0c --- /dev/null +++ b/.agents/skills/cli-usage/SKILL.md @@ -0,0 +1,81 @@ +--- +name: cli-usage +description: CLI tool (csdk) for the usage API — provides CRUD commands for 18 tables and 5 custom operations +--- + +# cli-usage + + + +CLI tool (csdk) for the usage API — provides CRUD commands for 18 tables and 5 custom operations + +## Usage + +```bash +# Context management +csdk context create --endpoint +csdk context use + +# Authentication +csdk auth set-token + +# Config variables +csdk config set +csdk config get + +# CRUD for any table (e.g. app-limit-caps-default) +csdk app-limit-caps-default list +csdk app-limit-caps-default get --id +csdk app-limit-caps-default create -- + +# Non-interactive mode (skip all prompts, use flags only) +csdk --no-tty app-limit-caps-default 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 app-limit-caps-default list +``` + +### Non-interactive mode (for scripts and CI) + +```bash +csdk --no-tty app-limit-caps-default create -- +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [config](references/config.md) +- [app-limit-caps-default](references/app-limit-caps-default.md) +- [org-limit-caps-default](references/org-limit-caps-default.md) +- [app-limit-cap](references/app-limit-cap.md) +- [org-limit-cap](references/org-limit-cap.md) +- [app-limit-default](references/app-limit-default.md) +- [app-limit-credit](references/app-limit-credit.md) +- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) +- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) +- [org-limit-default](references/org-limit-default.md) +- [org-limit-credit](references/org-limit-credit.md) +- [app-limit-warning](references/app-limit-warning.md) +- [org-limit-warning](references/org-limit-warning.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) +- [app-limit](references/app-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) +- [org-limit](references/org-limit.md) +- [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) +- [seed-app-limit-defaults](references/seed-app-limit-defaults.md) +- [seed-org-limit-caps-defaults](references/seed-org-limit-caps-defaults.md) +- [seed-org-limit-defaults](references/seed-org-limit-defaults.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-usage/references/app-limit-cap.md b/.agents/skills/cli-usage/references/app-limit-cap.md new file mode 100644 index 0000000000..f9ffb5b50f --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-cap.md @@ -0,0 +1,68 @@ +# appLimitCap + + + +CRUD operations for AppLimitCap records via csdk CLI + +## Usage + +```bash +csdk app-limit-cap list +csdk app-limit-cap list --where.. --orderBy +csdk app-limit-cap list --limit 10 --after +csdk app-limit-cap find-first --where.. +csdk app-limit-cap get --id +csdk app-limit-cap create --name --entityId [--max ] +csdk app-limit-cap update --id [--name ] [--entityId ] [--max ] +csdk app-limit-cap delete --id +``` + +## Examples + +### List appLimitCap records + +```bash +csdk app-limit-cap list +``` + +### List appLimitCap records with pagination + +```bash +csdk app-limit-cap list --limit 10 --offset 0 +``` + +### List appLimitCap records with cursor pagination + +```bash +csdk app-limit-cap list --limit 10 --after +``` + +### Find first matching appLimitCap + +```bash +csdk app-limit-cap find-first --where.id.equalTo +``` + +### List appLimitCap records with field selection + +```bash +csdk app-limit-cap list --select id,id +``` + +### List appLimitCap records with filtering and ordering + +```bash +csdk app-limit-cap list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitCap + +```bash +csdk app-limit-cap create --name --entityId [--max ] +``` + +### Get a appLimitCap by id + +```bash +csdk app-limit-cap get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-caps-default.md b/.agents/skills/cli-usage/references/app-limit-caps-default.md new file mode 100644 index 0000000000..2c1bbca484 --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-caps-default.md @@ -0,0 +1,68 @@ +# appLimitCapsDefault + + + +CRUD operations for AppLimitCapsDefault records via csdk CLI + +## Usage + +```bash +csdk app-limit-caps-default list +csdk app-limit-caps-default list --where.. --orderBy +csdk app-limit-caps-default list --limit 10 --after +csdk app-limit-caps-default find-first --where.. +csdk app-limit-caps-default get --id +csdk app-limit-caps-default create --name [--max ] +csdk app-limit-caps-default update --id [--name ] [--max ] +csdk app-limit-caps-default delete --id +``` + +## Examples + +### List appLimitCapsDefault records + +```bash +csdk app-limit-caps-default list +``` + +### List appLimitCapsDefault records with pagination + +```bash +csdk app-limit-caps-default list --limit 10 --offset 0 +``` + +### List appLimitCapsDefault records with cursor pagination + +```bash +csdk app-limit-caps-default list --limit 10 --after +``` + +### Find first matching appLimitCapsDefault + +```bash +csdk app-limit-caps-default find-first --where.id.equalTo +``` + +### List appLimitCapsDefault records with field selection + +```bash +csdk app-limit-caps-default list --select id,id +``` + +### List appLimitCapsDefault records with filtering and ordering + +```bash +csdk app-limit-caps-default list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitCapsDefault + +```bash +csdk app-limit-caps-default create --name [--max ] +``` + +### Get a appLimitCapsDefault by id + +```bash +csdk app-limit-caps-default get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-credit-code-item.md b/.agents/skills/cli-usage/references/app-limit-credit-code-item.md new file mode 100644 index 0000000000..5b7fc35676 --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-credit-code-item.md @@ -0,0 +1,68 @@ +# appLimitCreditCodeItem + + + +CRUD operations for AppLimitCreditCodeItem records via csdk CLI + +## Usage + +```bash +csdk app-limit-credit-code-item list +csdk app-limit-credit-code-item list --where.. --orderBy +csdk app-limit-credit-code-item list --limit 10 --after +csdk app-limit-credit-code-item find-first --where.. +csdk app-limit-credit-code-item get --id +csdk app-limit-credit-code-item create --creditCodeId --defaultLimitId --amount [--creditType ] +csdk app-limit-credit-code-item update --id [--creditCodeId ] [--defaultLimitId ] [--amount ] [--creditType ] +csdk app-limit-credit-code-item delete --id +``` + +## Examples + +### List appLimitCreditCodeItem records + +```bash +csdk app-limit-credit-code-item list +``` + +### List appLimitCreditCodeItem records with pagination + +```bash +csdk app-limit-credit-code-item list --limit 10 --offset 0 +``` + +### List appLimitCreditCodeItem records with cursor pagination + +```bash +csdk app-limit-credit-code-item list --limit 10 --after +``` + +### Find first matching appLimitCreditCodeItem + +```bash +csdk app-limit-credit-code-item find-first --where.id.equalTo +``` + +### List appLimitCreditCodeItem records with field selection + +```bash +csdk app-limit-credit-code-item list --select id,id +``` + +### List appLimitCreditCodeItem records with filtering and ordering + +```bash +csdk app-limit-credit-code-item list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitCreditCodeItem + +```bash +csdk app-limit-credit-code-item create --creditCodeId --defaultLimitId --amount [--creditType ] +``` + +### Get a appLimitCreditCodeItem by id + +```bash +csdk app-limit-credit-code-item get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-credit-code.md b/.agents/skills/cli-usage/references/app-limit-credit-code.md new file mode 100644 index 0000000000..018821c303 --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-credit-code.md @@ -0,0 +1,68 @@ +# appLimitCreditCode + + + +CRUD operations for AppLimitCreditCode records via csdk CLI + +## Usage + +```bash +csdk app-limit-credit-code list +csdk app-limit-credit-code list --where.. --orderBy +csdk app-limit-credit-code list --limit 10 --after +csdk app-limit-credit-code find-first --where.. +csdk app-limit-credit-code get --id +csdk app-limit-credit-code create --code [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] +csdk app-limit-credit-code update --id [--code ] [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] +csdk app-limit-credit-code delete --id +``` + +## Examples + +### List appLimitCreditCode records + +```bash +csdk app-limit-credit-code list +``` + +### List appLimitCreditCode records with pagination + +```bash +csdk app-limit-credit-code list --limit 10 --offset 0 +``` + +### List appLimitCreditCode records with cursor pagination + +```bash +csdk app-limit-credit-code list --limit 10 --after +``` + +### Find first matching appLimitCreditCode + +```bash +csdk app-limit-credit-code find-first --where.id.equalTo +``` + +### List appLimitCreditCode records with field selection + +```bash +csdk app-limit-credit-code list --select id,id +``` + +### List appLimitCreditCode records with filtering and ordering + +```bash +csdk app-limit-credit-code list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitCreditCode + +```bash +csdk app-limit-credit-code create --code [--maxRedemptions ] [--currentRedemptions ] [--expiresAt ] +``` + +### Get a appLimitCreditCode by id + +```bash +csdk app-limit-credit-code get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-credit-redemption.md b/.agents/skills/cli-usage/references/app-limit-credit-redemption.md new file mode 100644 index 0000000000..a0fe5d61fa --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-credit-redemption.md @@ -0,0 +1,68 @@ +# appLimitCreditRedemption + + + +CRUD operations for AppLimitCreditRedemption records via csdk CLI + +## Usage + +```bash +csdk app-limit-credit-redemption list +csdk app-limit-credit-redemption list --where.. --orderBy +csdk app-limit-credit-redemption list --limit 10 --after +csdk app-limit-credit-redemption find-first --where.. +csdk app-limit-credit-redemption get --id +csdk app-limit-credit-redemption create --creditCodeId --entityId [--organizationId ] [--entityType ] +csdk app-limit-credit-redemption update --id [--creditCodeId ] [--entityId ] [--organizationId ] [--entityType ] +csdk app-limit-credit-redemption delete --id +``` + +## Examples + +### List appLimitCreditRedemption records + +```bash +csdk app-limit-credit-redemption list +``` + +### List appLimitCreditRedemption records with pagination + +```bash +csdk app-limit-credit-redemption list --limit 10 --offset 0 +``` + +### List appLimitCreditRedemption records with cursor pagination + +```bash +csdk app-limit-credit-redemption list --limit 10 --after +``` + +### Find first matching appLimitCreditRedemption + +```bash +csdk app-limit-credit-redemption find-first --where.id.equalTo +``` + +### List appLimitCreditRedemption records with field selection + +```bash +csdk app-limit-credit-redemption list --select id,id +``` + +### List appLimitCreditRedemption records with filtering and ordering + +```bash +csdk app-limit-credit-redemption list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitCreditRedemption + +```bash +csdk app-limit-credit-redemption create --creditCodeId --entityId [--organizationId ] [--entityType ] +``` + +### Get a appLimitCreditRedemption by id + +```bash +csdk app-limit-credit-redemption get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-credit.md b/.agents/skills/cli-usage/references/app-limit-credit.md new file mode 100644 index 0000000000..cbcd84184a --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-credit.md @@ -0,0 +1,68 @@ +# appLimitCredit + + + +CRUD operations for AppLimitCredit records via csdk CLI + +## Usage + +```bash +csdk app-limit-credit list +csdk app-limit-credit list --where.. --orderBy +csdk app-limit-credit list --limit 10 --after +csdk app-limit-credit find-first --where.. +csdk app-limit-credit get --id +csdk app-limit-credit create --defaultLimitId --amount [--actorId ] [--creditType ] [--reason ] +csdk app-limit-credit update --id [--defaultLimitId ] [--actorId ] [--amount ] [--creditType ] [--reason ] +csdk app-limit-credit delete --id +``` + +## Examples + +### List appLimitCredit records + +```bash +csdk app-limit-credit list +``` + +### List appLimitCredit records with pagination + +```bash +csdk app-limit-credit list --limit 10 --offset 0 +``` + +### List appLimitCredit records with cursor pagination + +```bash +csdk app-limit-credit list --limit 10 --after +``` + +### Find first matching appLimitCredit + +```bash +csdk app-limit-credit find-first --where.id.equalTo +``` + +### List appLimitCredit records with field selection + +```bash +csdk app-limit-credit list --select id,id +``` + +### List appLimitCredit records with filtering and ordering + +```bash +csdk app-limit-credit list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitCredit + +```bash +csdk app-limit-credit create --defaultLimitId --amount [--actorId ] [--creditType ] [--reason ] +``` + +### Get a appLimitCredit by id + +```bash +csdk app-limit-credit get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-default.md b/.agents/skills/cli-usage/references/app-limit-default.md new file mode 100644 index 0000000000..365d73b586 --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-default.md @@ -0,0 +1,68 @@ +# appLimitDefault + + + +CRUD operations for AppLimitDefault records via csdk CLI + +## Usage + +```bash +csdk app-limit-default list +csdk app-limit-default list --where.. --orderBy +csdk app-limit-default list --limit 10 --after +csdk app-limit-default find-first --where.. +csdk app-limit-default get --id +csdk app-limit-default create --name [--max ] [--softMax ] +csdk app-limit-default update --id [--name ] [--max ] [--softMax ] +csdk app-limit-default delete --id +``` + +## Examples + +### List appLimitDefault records + +```bash +csdk app-limit-default list +``` + +### List appLimitDefault records with pagination + +```bash +csdk app-limit-default list --limit 10 --offset 0 +``` + +### List appLimitDefault records with cursor pagination + +```bash +csdk app-limit-default list --limit 10 --after +``` + +### Find first matching appLimitDefault + +```bash +csdk app-limit-default find-first --where.id.equalTo +``` + +### List appLimitDefault records with field selection + +```bash +csdk app-limit-default list --select id,id +``` + +### List appLimitDefault records with filtering and ordering + +```bash +csdk app-limit-default list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitDefault + +```bash +csdk app-limit-default create --name [--max ] [--softMax ] +``` + +### Get a appLimitDefault by id + +```bash +csdk app-limit-default get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-event.md b/.agents/skills/cli-usage/references/app-limit-event.md new file mode 100644 index 0000000000..dabcac3d1b --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-event.md @@ -0,0 +1,68 @@ +# appLimitEvent + + + +CRUD operations for AppLimitEvent records via csdk CLI + +## Usage + +```bash +csdk app-limit-event list +csdk app-limit-event list --where.. --orderBy +csdk app-limit-event list --limit 10 --after +csdk app-limit-event find-first --where.. +csdk app-limit-event get --id +csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk app-limit-event update --id [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk app-limit-event delete --id +``` + +## Examples + +### List appLimitEvent records + +```bash +csdk app-limit-event list +``` + +### List appLimitEvent records with pagination + +```bash +csdk app-limit-event list --limit 10 --offset 0 +``` + +### List appLimitEvent records with cursor pagination + +```bash +csdk app-limit-event list --limit 10 --after +``` + +### Find first matching appLimitEvent + +```bash +csdk app-limit-event find-first --where.id.equalTo +``` + +### List appLimitEvent records with field selection + +```bash +csdk app-limit-event list --select id,id +``` + +### List appLimitEvent records with filtering and ordering + +```bash +csdk app-limit-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitEvent + +```bash +csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +``` + +### Get a appLimitEvent by id + +```bash +csdk app-limit-event get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit-warning.md b/.agents/skills/cli-usage/references/app-limit-warning.md new file mode 100644 index 0000000000..d9bbefd2c7 --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit-warning.md @@ -0,0 +1,68 @@ +# appLimitWarning + + + +CRUD operations for AppLimitWarning records via csdk CLI + +## Usage + +```bash +csdk app-limit-warning list +csdk app-limit-warning list --where.. --orderBy +csdk app-limit-warning list --limit 10 --after +csdk app-limit-warning find-first --where.. +csdk app-limit-warning get --id +csdk app-limit-warning create --name --warningType --thresholdValue --taskIdentifier +csdk app-limit-warning update --id [--name ] [--warningType ] [--thresholdValue ] [--taskIdentifier ] +csdk app-limit-warning delete --id +``` + +## Examples + +### List appLimitWarning records + +```bash +csdk app-limit-warning list +``` + +### List appLimitWarning records with pagination + +```bash +csdk app-limit-warning list --limit 10 --offset 0 +``` + +### List appLimitWarning records with cursor pagination + +```bash +csdk app-limit-warning list --limit 10 --after +``` + +### Find first matching appLimitWarning + +```bash +csdk app-limit-warning find-first --where.id.equalTo +``` + +### List appLimitWarning records with field selection + +```bash +csdk app-limit-warning list --select id,id +``` + +### List appLimitWarning records with filtering and ordering + +```bash +csdk app-limit-warning list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitWarning + +```bash +csdk app-limit-warning create --name --warningType --thresholdValue --taskIdentifier +``` + +### Get a appLimitWarning by id + +```bash +csdk app-limit-warning get --id +``` diff --git a/.agents/skills/cli-usage/references/app-limit.md b/.agents/skills/cli-usage/references/app-limit.md new file mode 100644 index 0000000000..101544e504 --- /dev/null +++ b/.agents/skills/cli-usage/references/app-limit.md @@ -0,0 +1,68 @@ +# appLimit + + + +CRUD operations for AppLimit records via csdk CLI + +## Usage + +```bash +csdk app-limit list +csdk app-limit list --where.. --orderBy +csdk app-limit list --limit 10 --after +csdk app-limit find-first --where.. +csdk app-limit get --id +csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] +csdk app-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] +csdk app-limit delete --id +``` + +## Examples + +### List appLimit records + +```bash +csdk app-limit list +``` + +### List appLimit records with pagination + +```bash +csdk app-limit list --limit 10 --offset 0 +``` + +### List appLimit records with cursor pagination + +```bash +csdk app-limit list --limit 10 --after +``` + +### Find first matching appLimit + +```bash +csdk app-limit find-first --where.id.equalTo +``` + +### List appLimit records with field selection + +```bash +csdk app-limit list --select id,id +``` + +### List appLimit records with filtering and ordering + +```bash +csdk app-limit list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimit + +```bash +csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] +``` + +### Get a appLimit by id + +```bash +csdk app-limit get --id +``` diff --git a/.agents/skills/cli-usage/references/auth.md b/.agents/skills/cli-usage/references/auth.md new file mode 100644 index 0000000000..d24ec20dd5 --- /dev/null +++ b/.agents/skills/cli-usage/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-usage/references/config.md b/.agents/skills/cli-usage/references/config.md new file mode 100644 index 0000000000..cc1c23b7ba --- /dev/null +++ b/.agents/skills/cli-usage/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-usage/references/context.md b/.agents/skills/cli-usage/references/context.md new file mode 100644 index 0000000000..704ff09111 --- /dev/null +++ b/.agents/skills/cli-usage/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-usage/references/org-limit-aggregate.md b/.agents/skills/cli-usage/references/org-limit-aggregate.md new file mode 100644 index 0000000000..b9a899e208 --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit-aggregate.md @@ -0,0 +1,68 @@ +# orgLimitAggregate + + + +CRUD operations for OrgLimitAggregate records via csdk CLI + +## Usage + +```bash +csdk org-limit-aggregate list +csdk org-limit-aggregate list --where.. --orderBy +csdk org-limit-aggregate list --limit 10 --after +csdk org-limit-aggregate find-first --where.. +csdk org-limit-aggregate get --id +csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] +csdk org-limit-aggregate update --id [--name ] [--entityId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] +csdk org-limit-aggregate delete --id +``` + +## Examples + +### List orgLimitAggregate records + +```bash +csdk org-limit-aggregate list +``` + +### List orgLimitAggregate records with pagination + +```bash +csdk org-limit-aggregate list --limit 10 --offset 0 +``` + +### List orgLimitAggregate records with cursor pagination + +```bash +csdk org-limit-aggregate list --limit 10 --after +``` + +### Find first matching orgLimitAggregate + +```bash +csdk org-limit-aggregate find-first --where.id.equalTo +``` + +### List orgLimitAggregate records with field selection + +```bash +csdk org-limit-aggregate list --select id,id +``` + +### List orgLimitAggregate records with filtering and ordering + +```bash +csdk org-limit-aggregate list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitAggregate + +```bash +csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--reserved ] [--organizationId ] [--entityType ] +``` + +### Get a orgLimitAggregate by id + +```bash +csdk org-limit-aggregate get --id +``` diff --git a/.agents/skills/cli-usage/references/org-limit-cap.md b/.agents/skills/cli-usage/references/org-limit-cap.md new file mode 100644 index 0000000000..793babf73a --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit-cap.md @@ -0,0 +1,68 @@ +# orgLimitCap + + + +CRUD operations for OrgLimitCap records via csdk CLI + +## Usage + +```bash +csdk org-limit-cap list +csdk org-limit-cap list --where.. --orderBy +csdk org-limit-cap list --limit 10 --after +csdk org-limit-cap find-first --where.. +csdk org-limit-cap get --id +csdk org-limit-cap create --name --entityId [--max ] +csdk org-limit-cap update --id [--name ] [--entityId ] [--max ] +csdk org-limit-cap delete --id +``` + +## Examples + +### List orgLimitCap records + +```bash +csdk org-limit-cap list +``` + +### List orgLimitCap records with pagination + +```bash +csdk org-limit-cap list --limit 10 --offset 0 +``` + +### List orgLimitCap records with cursor pagination + +```bash +csdk org-limit-cap list --limit 10 --after +``` + +### Find first matching orgLimitCap + +```bash +csdk org-limit-cap find-first --where.id.equalTo +``` + +### List orgLimitCap records with field selection + +```bash +csdk org-limit-cap list --select id,id +``` + +### List orgLimitCap records with filtering and ordering + +```bash +csdk org-limit-cap list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitCap + +```bash +csdk org-limit-cap create --name --entityId [--max ] +``` + +### Get a orgLimitCap by id + +```bash +csdk org-limit-cap get --id +``` diff --git a/.agents/skills/cli-usage/references/org-limit-caps-default.md b/.agents/skills/cli-usage/references/org-limit-caps-default.md new file mode 100644 index 0000000000..cfc6561a16 --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit-caps-default.md @@ -0,0 +1,68 @@ +# orgLimitCapsDefault + + + +CRUD operations for OrgLimitCapsDefault records via csdk CLI + +## Usage + +```bash +csdk org-limit-caps-default list +csdk org-limit-caps-default list --where.. --orderBy +csdk org-limit-caps-default list --limit 10 --after +csdk org-limit-caps-default find-first --where.. +csdk org-limit-caps-default get --id +csdk org-limit-caps-default create --name [--max ] +csdk org-limit-caps-default update --id [--name ] [--max ] +csdk org-limit-caps-default delete --id +``` + +## Examples + +### List orgLimitCapsDefault records + +```bash +csdk org-limit-caps-default list +``` + +### List orgLimitCapsDefault records with pagination + +```bash +csdk org-limit-caps-default list --limit 10 --offset 0 +``` + +### List orgLimitCapsDefault records with cursor pagination + +```bash +csdk org-limit-caps-default list --limit 10 --after +``` + +### Find first matching orgLimitCapsDefault + +```bash +csdk org-limit-caps-default find-first --where.id.equalTo +``` + +### List orgLimitCapsDefault records with field selection + +```bash +csdk org-limit-caps-default list --select id,id +``` + +### List orgLimitCapsDefault records with filtering and ordering + +```bash +csdk org-limit-caps-default list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitCapsDefault + +```bash +csdk org-limit-caps-default create --name [--max ] +``` + +### Get a orgLimitCapsDefault by id + +```bash +csdk org-limit-caps-default get --id +``` diff --git a/.agents/skills/cli-usage/references/org-limit-credit.md b/.agents/skills/cli-usage/references/org-limit-credit.md new file mode 100644 index 0000000000..1a32a16b78 --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit-credit.md @@ -0,0 +1,68 @@ +# orgLimitCredit + + + +CRUD operations for OrgLimitCredit records via csdk CLI + +## Usage + +```bash +csdk org-limit-credit list +csdk org-limit-credit list --where.. --orderBy +csdk org-limit-credit list --limit 10 --after +csdk org-limit-credit find-first --where.. +csdk org-limit-credit get --id +csdk org-limit-credit create --defaultLimitId --amount [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--creditType ] [--reason ] +csdk org-limit-credit update --id [--defaultLimitId ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--amount ] [--creditType ] [--reason ] +csdk org-limit-credit delete --id +``` + +## Examples + +### List orgLimitCredit records + +```bash +csdk org-limit-credit list +``` + +### List orgLimitCredit records with pagination + +```bash +csdk org-limit-credit list --limit 10 --offset 0 +``` + +### List orgLimitCredit records with cursor pagination + +```bash +csdk org-limit-credit list --limit 10 --after +``` + +### Find first matching orgLimitCredit + +```bash +csdk org-limit-credit find-first --where.id.equalTo +``` + +### List orgLimitCredit records with field selection + +```bash +csdk org-limit-credit list --select id,id +``` + +### List orgLimitCredit records with filtering and ordering + +```bash +csdk org-limit-credit list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitCredit + +```bash +csdk org-limit-credit create --defaultLimitId --amount [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--creditType ] [--reason ] +``` + +### Get a orgLimitCredit by id + +```bash +csdk org-limit-credit get --id +``` diff --git a/.agents/skills/cli-usage/references/org-limit-default.md b/.agents/skills/cli-usage/references/org-limit-default.md new file mode 100644 index 0000000000..2a1be2a459 --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit-default.md @@ -0,0 +1,68 @@ +# orgLimitDefault + + + +CRUD operations for OrgLimitDefault records via csdk CLI + +## Usage + +```bash +csdk org-limit-default list +csdk org-limit-default list --where.. --orderBy +csdk org-limit-default list --limit 10 --after +csdk org-limit-default find-first --where.. +csdk org-limit-default get --id +csdk org-limit-default create --name [--max ] [--softMax ] +csdk org-limit-default update --id [--name ] [--max ] [--softMax ] +csdk org-limit-default delete --id +``` + +## Examples + +### List orgLimitDefault records + +```bash +csdk org-limit-default list +``` + +### List orgLimitDefault records with pagination + +```bash +csdk org-limit-default list --limit 10 --offset 0 +``` + +### List orgLimitDefault records with cursor pagination + +```bash +csdk org-limit-default list --limit 10 --after +``` + +### Find first matching orgLimitDefault + +```bash +csdk org-limit-default find-first --where.id.equalTo +``` + +### List orgLimitDefault records with field selection + +```bash +csdk org-limit-default list --select id,id +``` + +### List orgLimitDefault records with filtering and ordering + +```bash +csdk org-limit-default list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitDefault + +```bash +csdk org-limit-default create --name [--max ] [--softMax ] +``` + +### Get a orgLimitDefault by id + +```bash +csdk org-limit-default get --id +``` diff --git a/.agents/skills/cli-usage/references/org-limit-event.md b/.agents/skills/cli-usage/references/org-limit-event.md new file mode 100644 index 0000000000..971b708c73 --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit-event.md @@ -0,0 +1,68 @@ +# orgLimitEvent + + + +CRUD operations for OrgLimitEvent records via csdk CLI + +## Usage + +```bash +csdk org-limit-event list +csdk org-limit-event list --where.. --orderBy +csdk org-limit-event list --limit 10 --after +csdk org-limit-event find-first --where.. +csdk org-limit-event get --id +csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk org-limit-event update --id [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk org-limit-event delete --id +``` + +## Examples + +### List orgLimitEvent records + +```bash +csdk org-limit-event list +``` + +### List orgLimitEvent records with pagination + +```bash +csdk org-limit-event list --limit 10 --offset 0 +``` + +### List orgLimitEvent records with cursor pagination + +```bash +csdk org-limit-event list --limit 10 --after +``` + +### Find first matching orgLimitEvent + +```bash +csdk org-limit-event find-first --where.id.equalTo +``` + +### List orgLimitEvent records with field selection + +```bash +csdk org-limit-event list --select id,id +``` + +### List orgLimitEvent records with filtering and ordering + +```bash +csdk org-limit-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitEvent + +```bash +csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--organizationId ] [--entityType ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +``` + +### Get a orgLimitEvent by id + +```bash +csdk org-limit-event get --id +``` diff --git a/.agents/skills/cli-usage/references/org-limit-warning.md b/.agents/skills/cli-usage/references/org-limit-warning.md new file mode 100644 index 0000000000..d6e30c4c62 --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit-warning.md @@ -0,0 +1,68 @@ +# orgLimitWarning + + + +CRUD operations for OrgLimitWarning records via csdk CLI + +## Usage + +```bash +csdk org-limit-warning list +csdk org-limit-warning list --where.. --orderBy +csdk org-limit-warning list --limit 10 --after +csdk org-limit-warning find-first --where.. +csdk org-limit-warning get --id +csdk org-limit-warning create --name --warningType --thresholdValue --taskIdentifier [--entityId ] +csdk org-limit-warning update --id [--name ] [--warningType ] [--thresholdValue ] [--taskIdentifier ] [--entityId ] +csdk org-limit-warning delete --id +``` + +## Examples + +### List orgLimitWarning records + +```bash +csdk org-limit-warning list +``` + +### List orgLimitWarning records with pagination + +```bash +csdk org-limit-warning list --limit 10 --offset 0 +``` + +### List orgLimitWarning records with cursor pagination + +```bash +csdk org-limit-warning list --limit 10 --after +``` + +### Find first matching orgLimitWarning + +```bash +csdk org-limit-warning find-first --where.id.equalTo +``` + +### List orgLimitWarning records with field selection + +```bash +csdk org-limit-warning list --select id,id +``` + +### List orgLimitWarning records with filtering and ordering + +```bash +csdk org-limit-warning list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitWarning + +```bash +csdk org-limit-warning create --name --warningType --thresholdValue --taskIdentifier [--entityId ] +``` + +### Get a orgLimitWarning by id + +```bash +csdk org-limit-warning get --id +``` diff --git a/.agents/skills/cli-usage/references/org-limit.md b/.agents/skills/cli-usage/references/org-limit.md new file mode 100644 index 0000000000..a72ce6fe87 --- /dev/null +++ b/.agents/skills/cli-usage/references/org-limit.md @@ -0,0 +1,68 @@ +# orgLimit + + + +CRUD operations for OrgLimit records via csdk CLI + +## Usage + +```bash +csdk org-limit list +csdk org-limit list --where.. --orderBy +csdk org-limit list --limit 10 --after +csdk org-limit find-first --where.. +csdk org-limit get --id +csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] +csdk org-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--entityId ] [--organizationId ] [--entityType ] +csdk org-limit delete --id +``` + +## Examples + +### List orgLimit records + +```bash +csdk org-limit list +``` + +### List orgLimit records with pagination + +```bash +csdk org-limit list --limit 10 --offset 0 +``` + +### List orgLimit records with cursor pagination + +```bash +csdk org-limit list --limit 10 --after +``` + +### Find first matching orgLimit + +```bash +csdk org-limit find-first --where.id.equalTo +``` + +### List orgLimit records with field selection + +```bash +csdk org-limit list --select id,id +``` + +### List orgLimit records with filtering and ordering + +```bash +csdk org-limit list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimit + +```bash +csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--planMax ] [--purchasedCredits ] [--periodCredits ] [--organizationId ] [--entityType ] +``` + +### Get a orgLimit by id + +```bash +csdk org-limit get --id +``` diff --git a/.agents/skills/cli-usage/references/provision-bucket.md b/.agents/skills/cli-usage/references/provision-bucket.md new file mode 100644 index 0000000000..cc17ffbc21 --- /dev/null +++ b/.agents/skills/cli-usage/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-usage/references/seed-app-limit-caps-defaults.md b/.agents/skills/cli-usage/references/seed-app-limit-caps-defaults.md new file mode 100644 index 0000000000..f0347ce75c --- /dev/null +++ b/.agents/skills/cli-usage/references/seed-app-limit-caps-defaults.md @@ -0,0 +1,19 @@ +# seedAppLimitCapsDefaults + + + +Execute the seedAppLimitCapsDefaults mutation + +## Usage + +```bash +csdk seed-app-limit-caps-defaults --input.clientMutationId --input.defaults +``` + +## Examples + +### Run seedAppLimitCapsDefaults + +```bash +csdk seed-app-limit-caps-defaults --input.clientMutationId --input.defaults +``` diff --git a/.agents/skills/cli-usage/references/seed-app-limit-defaults.md b/.agents/skills/cli-usage/references/seed-app-limit-defaults.md new file mode 100644 index 0000000000..fc21d69ca1 --- /dev/null +++ b/.agents/skills/cli-usage/references/seed-app-limit-defaults.md @@ -0,0 +1,19 @@ +# seedAppLimitDefaults + + + +Execute the seedAppLimitDefaults mutation + +## Usage + +```bash +csdk seed-app-limit-defaults --input.clientMutationId --input.defaults +``` + +## Examples + +### Run seedAppLimitDefaults + +```bash +csdk seed-app-limit-defaults --input.clientMutationId --input.defaults +``` diff --git a/.agents/skills/cli-usage/references/seed-org-limit-caps-defaults.md b/.agents/skills/cli-usage/references/seed-org-limit-caps-defaults.md new file mode 100644 index 0000000000..1d1b2720c8 --- /dev/null +++ b/.agents/skills/cli-usage/references/seed-org-limit-caps-defaults.md @@ -0,0 +1,19 @@ +# seedOrgLimitCapsDefaults + + + +Execute the seedOrgLimitCapsDefaults mutation + +## Usage + +```bash +csdk seed-org-limit-caps-defaults --input.clientMutationId --input.defaults +``` + +## Examples + +### Run seedOrgLimitCapsDefaults + +```bash +csdk seed-org-limit-caps-defaults --input.clientMutationId --input.defaults +``` diff --git a/.agents/skills/cli-usage/references/seed-org-limit-defaults.md b/.agents/skills/cli-usage/references/seed-org-limit-defaults.md new file mode 100644 index 0000000000..a86f4c4b30 --- /dev/null +++ b/.agents/skills/cli-usage/references/seed-org-limit-defaults.md @@ -0,0 +1,19 @@ +# seedOrgLimitDefaults + + + +Execute the seedOrgLimitDefaults mutation + +## Usage + +```bash +csdk seed-org-limit-defaults --input.clientMutationId --input.defaults +``` + +## Examples + +### Run seedOrgLimitDefaults + +```bash +csdk seed-org-limit-defaults --input.clientMutationId --input.defaults +``` diff --git a/.agents/skills/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index f8e3fd8c80..1886822986 100644 --- a/.agents/skills/hooks-admin/SKILL.md +++ b/.agents/skills/hooks-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-admin -description: React Query hooks for the admin API — provides typed query and mutation hooks for 44 tables and 12 custom operations +description: React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 12 custom operations --- # hooks-admin -React Query hooks for the admin API — provides typed query and mutation hooks for 44 tables and 12 custom operations +React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 12 custom operations ## Usage @@ -42,45 +42,27 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) -- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) -- [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) +- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) -- [org-permission-default](references/org-permission-default.md) -- [app-membership-default](references/app-membership-default.md) - [org-admin-grant](references/org-admin-grant.md) -- [org-membership-default](references/org-membership-default.md) - [org-owner-grant](references/org-owner-grant.md) -- [app-limit-caps-default](references/app-limit-caps-default.md) -- [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [org-chart-edge](references/org-chart-edge.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [org-limit-credit](references/org-limit-credit.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [app-limit-warning](references/app-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) -- [org-limit-warning](references/org-limit-warning.md) - [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) - [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) - [org-membership-setting](references/org-membership-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [app-membership](references/app-membership.md) +- [app-invite](references/app-invite.md) - [org-membership](references/org-membership.md) - [org-member-profile](references/org-member-profile.md) -- [app-invite](references/app-invite.md) -- [app-limit](references/app-limit.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit](references/org-limit.md) - [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) diff --git a/.agents/skills/hooks-admin/references/membership-type.md b/.agents/skills/hooks-admin/references/membership-type.md index 6273754ce6..95e90c1ce5 100644 --- a/.agents/skills/hooks-admin/references/membership-type.md +++ b/.agents/skills/hooks-admin/references/membership-type.md @@ -7,8 +7,8 @@ Defines the different scopes of membership (e.g. App Member, Organization Member ## Usage ```typescript -useMembershipTypesQuery({ selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } } }) -useMembershipTypeQuery({ id: '', selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } } }) +useMembershipTypesQuery({ selection: { fields: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } } }) +useMembershipTypeQuery({ id: '', selection: { fields: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } } }) useCreateMembershipTypeMutation({ selection: { fields: { id: true } } }) useUpdateMembershipTypeMutation({ selection: { fields: { id: true } } }) useDeleteMembershipTypeMutation({}) @@ -20,7 +20,7 @@ useDeleteMembershipTypeMutation({}) ```typescript const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, + selection: { fields: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useMembershipTypesQuery({ const { mutate } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +mutate({ name: '', description: '', scope: '', parentMembershipType: '', hasUsersTableEntry: '' }); ``` diff --git a/.agents/skills/hooks-agent/SKILL.md b/.agents/skills/hooks-agent/SKILL.md new file mode 100644 index 0000000000..ebf33c0d97 --- /dev/null +++ b/.agents/skills/hooks-agent/SKILL.md @@ -0,0 +1,47 @@ +--- +name: hooks-agent +description: React Query hooks for the agent API — provides typed query and mutation hooks for 6 tables and 1 custom operations +--- + +# hooks-agent + + + +React Query hooks for the agent API — provides typed query and mutation hooks for 6 tables and 1 custom operations + +## Usage + +```typescript +// Import hooks +import { useAgentPlansQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation +// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. + +const { data, isLoading } = useAgentPlansQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useAgentPlansQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [agent-plan](references/agent-plan.md) +- [agent-message](references/agent-message.md) +- [agent-task](references/agent-task.md) +- [agent-thread](references/agent-thread.md) +- [agent-prompt](references/agent-prompt.md) +- [agent-skill](references/agent-skill.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-agent/references/agent-message.md b/.agents/skills/hooks-agent/references/agent-message.md new file mode 100644 index 0000000000..776d5de58e --- /dev/null +++ b/.agents/skills/hooks-agent/references/agent-message.md @@ -0,0 +1,34 @@ +# agentMessage + + + +Message within an agent thread with TextPart/ToolPart jsonb parts + +## Usage + +```typescript +useAgentMessagesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } } }) +useAgentMessageQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } } }) +useCreateAgentMessageMutation({ selection: { fields: { id: true } } }) +useUpdateAgentMessageMutation({ selection: { fields: { id: true } } }) +useDeleteAgentMessageMutation({}) +``` + +## Examples + +### List all agentMessages + +```typescript +const { data, isLoading } = useAgentMessagesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }, +}); +``` + +### Create a agentMessage + +```typescript +const { mutate } = useCreateAgentMessageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/agent-plan.md b/.agents/skills/hooks-agent/references/agent-plan.md new file mode 100644 index 0000000000..50d71d4cf0 --- /dev/null +++ b/.agents/skills/hooks-agent/references/agent-plan.md @@ -0,0 +1,34 @@ +# agentPlan + + + +Workflow plan attached to an agent thread with ordered tasks and optional approval gates + +## 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 } } }) +useCreateAgentPlanMutation({ selection: { fields: { id: true } } }) +useUpdateAgentPlanMutation({ selection: { fields: { id: true } } }) +useDeleteAgentPlanMutation({}) +``` + +## Examples + +### List all agentPlans + +```typescript +const { data, isLoading } = useAgentPlansQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }, +}); +``` + +### Create a agentPlan + +```typescript +const { mutate } = useCreateAgentPlanMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', threadId: '', title: '', description: '', status: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/agent-prompt.md b/.agents/skills/hooks-agent/references/agent-prompt.md new file mode 100644 index 0000000000..6933c2368a --- /dev/null +++ b/.agents/skills/hooks-agent/references/agent-prompt.md @@ -0,0 +1,34 @@ +# agentPrompt + + + +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 } } }) +useCreateAgentPromptMutation({ selection: { fields: { id: true } } }) +useUpdateAgentPromptMutation({ selection: { fields: { id: true } } }) +useDeleteAgentPromptMutation({}) +``` + +## Examples + +### List all agentPrompts + +```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 } }, +}); +``` + +### Create a agentPrompt + +```typescript +const { mutate } = useCreateAgentPromptMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/agent-skill.md b/.agents/skills/hooks-agent/references/agent-skill.md new file mode 100644 index 0000000000..16807bb7b4 --- /dev/null +++ b/.agents/skills/hooks-agent/references/agent-skill.md @@ -0,0 +1,34 @@ +# agentSkill + + + +Structured procedural instructions for agent workflows + +## Usage + +```typescript +useAgentSkillsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } } }) +useAgentSkillQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } } }) +useCreateAgentSkillMutation({ selection: { fields: { id: true } } }) +useUpdateAgentSkillMutation({ selection: { fields: { id: true } } }) +useDeleteAgentSkillMutation({}) +``` + +## Examples + +### List all agentSkills + +```typescript +const { data, isLoading } = useAgentSkillsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }, +}); +``` + +### Create a agentSkill + +```typescript +const { mutate } = useCreateAgentSkillMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/agent-task.md b/.agents/skills/hooks-agent/references/agent-task.md new file mode 100644 index 0000000000..d3db1b356f --- /dev/null +++ b/.agents/skills/hooks-agent/references/agent-task.md @@ -0,0 +1,34 @@ +# agentTask + + + +Task within a plan, with ordering and optional approval gates + +## Usage + +```typescript +useAgentTasksQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: 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, ownerId: true, status: true, planId: 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({}) +``` + +## Examples + +### List all agentTasks + +```typescript +const { data, isLoading } = useAgentTasksQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, +}); +``` + +### Create a agentTask + +```typescript +const { mutate } = useCreateAgentTaskMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', status: '', planId: '', 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 new file mode 100644 index 0000000000..abc028d5a0 --- /dev/null +++ b/.agents/skills/hooks-agent/references/agent-thread.md @@ -0,0 +1,34 @@ +# agentThread + + + +Top-level AI/LLM conversation thread + +## Usage + +```typescript +useAgentThreadsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } } }) +useAgentThreadQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } } }) +useCreateAgentThreadMutation({ selection: { fields: { id: true } } }) +useUpdateAgentThreadMutation({ selection: { fields: { id: true } } }) +useDeleteAgentThreadMutation({}) +``` + +## Examples + +### List all agentThreads + +```typescript +const { data, isLoading } = useAgentThreadsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }, +}); +``` + +### Create a agentThread + +```typescript +const { mutate } = useCreateAgentThreadMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', status: '', title: '', mode: '', model: '', systemPrompt: '', promptTemplateId: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/provision-bucket.md b/.agents/skills/hooks-agent/references/provision-bucket.md new file mode 100644 index 0000000000..e003fc5551 --- /dev/null +++ b/.agents/skills/hooks-agent/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-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md new file mode 100644 index 0000000000..88c8427972 --- /dev/null +++ b/.agents/skills/hooks-api/SKILL.md @@ -0,0 +1,95 @@ +--- +name: hooks-api +description: React Query hooks for the api API — provides typed query and mutation hooks for 45 tables and 10 custom operations +--- + +# hooks-api + + + +React Query hooks for the api API — provides typed query and mutation hooks for 45 tables and 10 custom operations + +## Usage + +```typescript +// Import hooks +import { useFunctionsQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation +// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. + +const { data, isLoading } = useFunctionsQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useFunctionsQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [function](references/function.md) +- [schema](references/schema.md) +- [table](references/table.md) +- [check-constraint](references/check-constraint.md) +- [field](references/field.md) +- [spatial-relation](references/spatial-relation.md) +- [foreign-key-constraint](references/foreign-key-constraint.md) +- [full-text-search](references/full-text-search.md) +- [index](references/index.md) +- [policy](references/policy.md) +- [primary-key-constraint](references/primary-key-constraint.md) +- [table-grant](references/table-grant.md) +- [trigger](references/trigger.md) +- [unique-constraint](references/unique-constraint.md) +- [view](references/view.md) +- [view-table](references/view-table.md) +- [view-grant](references/view-grant.md) +- [view-rule](references/view-rule.md) +- [embedding-chunk](references/embedding-chunk.md) +- [schema-grant](references/schema-grant.md) +- [default-privilege](references/default-privilege.md) +- [enum](references/enum.md) +- [api-schema](references/api-schema.md) +- [api-module](references/api-module.md) +- [domain](references/domain.md) +- [site-metadatum](references/site-metadatum.md) +- [site-module](references/site-module.md) +- [site-theme](references/site-theme.md) +- [cors-setting](references/cors-setting.md) +- [trigger-function](references/trigger-function.md) +- [partition](references/partition.md) +- [database-transfer](references/database-transfer.md) +- [api](references/api.md) +- [site](references/site.md) +- [app](references/app.md) +- [api-setting](references/api-setting.md) +- [migrate-file](references/migrate-file.md) +- [node-type-registry](references/node-type-registry.md) +- [pubkey-setting](references/pubkey-setting.md) +- [database](references/database.md) +- [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) +- [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) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-api/references/accept-database-transfer.md b/.agents/skills/hooks-api/references/accept-database-transfer.md new file mode 100644 index 0000000000..f65ac99295 --- /dev/null +++ b/.agents/skills/hooks-api/references/accept-database-transfer.md @@ -0,0 +1,20 @@ +# acceptDatabaseTransfer + + + +React Query mutation hook for acceptDatabaseTransfer + +## Usage + +```typescript +const { mutate } = useAcceptDatabaseTransferMutation(); mutate({ input: { transferId: '' } }); +``` + +## Examples + +### Use useAcceptDatabaseTransferMutation + +```typescript +const { mutate, isLoading } = useAcceptDatabaseTransferMutation(); +mutate({ input: { transferId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/api-module.md b/.agents/skills/hooks-api/references/api-module.md new file mode 100644 index 0000000000..8a76c77ee4 --- /dev/null +++ b/.agents/skills/hooks-api/references/api-module.md @@ -0,0 +1,34 @@ +# apiModule + + + +Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server + +## Usage + +```typescript +useApiModulesQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) +useApiModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } } }) +useCreateApiModuleMutation({ selection: { fields: { id: true } } }) +useUpdateApiModuleMutation({ selection: { fields: { id: true } } }) +useDeleteApiModuleMutation({}) +``` + +## Examples + +### List all apiModules + +```typescript +const { data, isLoading } = useApiModulesQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, +}); +``` + +### Create a apiModule + +```typescript +const { mutate } = useCreateApiModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', apiId: '', name: '', data: '' }); +``` diff --git a/.agents/skills/hooks-api/references/api-schema.md b/.agents/skills/hooks-api/references/api-schema.md new file mode 100644 index 0000000000..2e0bb4023e --- /dev/null +++ b/.agents/skills/hooks-api/references/api-schema.md @@ -0,0 +1,34 @@ +# apiSchema + + + +Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API + +## Usage + +```typescript +useApiSchemasQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) +useApiSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } } }) +useCreateApiSchemaMutation({ selection: { fields: { id: true } } }) +useUpdateApiSchemaMutation({ selection: { fields: { id: true } } }) +useDeleteApiSchemaMutation({}) +``` + +## Examples + +### List all apiSchemas + +```typescript +const { data, isLoading } = useApiSchemasQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, +}); +``` + +### Create a apiSchema + +```typescript +const { mutate } = useCreateApiSchemaMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', apiId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/api-setting.md b/.agents/skills/hooks-api/references/api-setting.md new file mode 100644 index 0000000000..739122b470 --- /dev/null +++ b/.agents/skills/hooks-api/references/api-setting.md @@ -0,0 +1,34 @@ +# apiSetting + + + +Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default + +## Usage + +```typescript +useApiSettingsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } } }) +useApiSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } } }) +useCreateApiSettingMutation({ selection: { fields: { id: true } } }) +useUpdateApiSettingMutation({ selection: { fields: { id: true } } }) +useDeleteApiSettingMutation({}) +``` + +## Examples + +### List all apiSettings + +```typescript +const { data, isLoading } = useApiSettingsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }, +}); +``` + +### Create a apiSetting + +```typescript +const { mutate } = useCreateApiSettingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }); +``` diff --git a/.agents/skills/hooks-api/references/api.md b/.agents/skills/hooks-api/references/api.md new file mode 100644 index 0000000000..9f88f46b0a --- /dev/null +++ b/.agents/skills/hooks-api/references/api.md @@ -0,0 +1,34 @@ +# api + + + +API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings + +## Usage + +```typescript +useApisQuery({ selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) +useApiQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } } }) +useCreateApiMutation({ selection: { fields: { id: true } } }) +useUpdateApiMutation({ selection: { fields: { id: true } } }) +useDeleteApiMutation({}) +``` + +## Examples + +### List all apis + +```typescript +const { data, isLoading } = useApisQuery({ + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, +}); +``` + +### Create a api + +```typescript +const { mutate } = useCreateApiMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); +``` diff --git a/.agents/skills/hooks-api/references/app.md b/.agents/skills/hooks-api/references/app.md new file mode 100644 index 0000000000..6460a0a3e9 --- /dev/null +++ b/.agents/skills/hooks-api/references/app.md @@ -0,0 +1,34 @@ +# app + + + +Mobile and native app configuration linked to a site, including store links and identifiers + +## Usage + +```typescript +useAppsQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) +useAppQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } } }) +useCreateAppMutation({ selection: { fields: { id: true } } }) +useUpdateAppMutation({ selection: { fields: { id: true } } }) +useDeleteAppMutation({}) +``` + +## Examples + +### List all apps + +```typescript +const { data, isLoading } = useAppsQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, +}); +``` + +### Create a app + +```typescript +const { mutate } = useCreateAppMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); +``` diff --git a/.agents/skills/hooks-api/references/apply-registry-defaults.md b/.agents/skills/hooks-api/references/apply-registry-defaults.md new file mode 100644 index 0000000000..fc5423c059 --- /dev/null +++ b/.agents/skills/hooks-api/references/apply-registry-defaults.md @@ -0,0 +1,19 @@ +# applyRegistryDefaults + + + +React Query query hook for applyRegistryDefaults + +## Usage + +```typescript +useApplyRegistryDefaultsQuery({ nodeType: '', data: '' }) +``` + +## Examples + +### Use useApplyRegistryDefaultsQuery + +```typescript +const { data, isLoading } = useApplyRegistryDefaultsQuery({ nodeType: '', data: '' }); +``` diff --git a/.agents/skills/hooks-api/references/apply-rls.md b/.agents/skills/hooks-api/references/apply-rls.md new file mode 100644 index 0000000000..aaf274edbc --- /dev/null +++ b/.agents/skills/hooks-api/references/apply-rls.md @@ -0,0 +1,20 @@ +# applyRls + + + +React Query mutation hook for applyRls + +## Usage + +```typescript +const { mutate } = useApplyRlsMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useApplyRlsMutation + +```typescript +const { mutate, isLoading } = useApplyRlsMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-api/references/ast-migration.md b/.agents/skills/hooks-api/references/ast-migration.md new file mode 100644 index 0000000000..8e141cf36f --- /dev/null +++ b/.agents/skills/hooks-api/references/ast-migration.md @@ -0,0 +1,34 @@ +# astMigration + + + +React Query hooks for AstMigration data operations + +## Usage + +```typescript +useAstMigrationsQuery({ selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useAstMigrationQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useCreateAstMigrationMutation({ selection: { fields: { id: true } } }) +useUpdateAstMigrationMutation({ selection: { fields: { id: true } } }) +useDeleteAstMigrationMutation({}) +``` + +## Examples + +### List all astMigrations + +```typescript +const { data, isLoading } = useAstMigrationsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); +``` + +### Create a astMigration + +```typescript +const { mutate } = useCreateAstMigrationMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/bootstrap-user.md b/.agents/skills/hooks-api/references/bootstrap-user.md new file mode 100644 index 0000000000..c7401dcb6b --- /dev/null +++ b/.agents/skills/hooks-api/references/bootstrap-user.md @@ -0,0 +1,20 @@ +# bootstrapUser + + + +React Query mutation hook for bootstrapUser + +## Usage + +```typescript +const { mutate } = useBootstrapUserMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useBootstrapUserMutation + +```typescript +const { mutate, isLoading } = useBootstrapUserMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-api/references/cancel-database-transfer.md b/.agents/skills/hooks-api/references/cancel-database-transfer.md new file mode 100644 index 0000000000..59953ca800 --- /dev/null +++ b/.agents/skills/hooks-api/references/cancel-database-transfer.md @@ -0,0 +1,20 @@ +# cancelDatabaseTransfer + + + +React Query mutation hook for cancelDatabaseTransfer + +## Usage + +```typescript +const { mutate } = useCancelDatabaseTransferMutation(); mutate({ input: { transferId: '' } }); +``` + +## Examples + +### Use useCancelDatabaseTransferMutation + +```typescript +const { mutate, isLoading } = useCancelDatabaseTransferMutation(); +mutate({ input: { transferId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/check-constraint.md b/.agents/skills/hooks-api/references/check-constraint.md new file mode 100644 index 0000000000..acd3e522da --- /dev/null +++ b/.agents/skills/hooks-api/references/check-constraint.md @@ -0,0 +1,34 @@ +# checkConstraint + + + +React Query hooks for CheckConstraint data operations + +## Usage + +```typescript +useCheckConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCheckConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateCheckConstraintMutation({ selection: { fields: { id: true } } }) +useUpdateCheckConstraintMutation({ selection: { fields: { id: true } } }) +useDeleteCheckConstraintMutation({}) +``` + +## Examples + +### List all checkConstraints + +```typescript +const { data, isLoading } = useCheckConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a checkConstraint + +```typescript +const { mutate } = useCreateCheckConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/cors-setting.md b/.agents/skills/hooks-api/references/cors-setting.md new file mode 100644 index 0000000000..fb9c468fdc --- /dev/null +++ b/.agents/skills/hooks-api/references/cors-setting.md @@ -0,0 +1,34 @@ +# corsSetting + + + +Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries + +## Usage + +```typescript +useCorsSettingsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } } }) +useCorsSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } } }) +useCreateCorsSettingMutation({ selection: { fields: { id: true } } }) +useUpdateCorsSettingMutation({ selection: { fields: { id: true } } }) +useDeleteCorsSettingMutation({}) +``` + +## Examples + +### List all corsSettings + +```typescript +const { data, isLoading } = useCorsSettingsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }, +}); +``` + +### Create a corsSetting + +```typescript +const { mutate } = useCreateCorsSettingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', apiId: '', allowedOrigins: '' }); +``` diff --git a/.agents/skills/hooks-api/references/create-user-database.md b/.agents/skills/hooks-api/references/create-user-database.md new file mode 100644 index 0000000000..fadd746a4f --- /dev/null +++ b/.agents/skills/hooks-api/references/create-user-database.md @@ -0,0 +1,36 @@ +# 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) + +Returns the database_id UUID of the newly created database. + +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 + + +## Usage + +```typescript +const { mutate } = useCreateUserDatabaseMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCreateUserDatabaseMutation + +```typescript +const { mutate, isLoading } = useCreateUserDatabaseMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-api/references/database-setting.md b/.agents/skills/hooks-api/references/database-setting.md new file mode 100644 index 0000000000..60e0831b28 --- /dev/null +++ b/.agents/skills/hooks-api/references/database-setting.md @@ -0,0 +1,34 @@ +# databaseSetting + + + +Database-wide feature flags and settings; controls which platform features are available to all APIs in this database + +## Usage + +```typescript +useDatabaseSettingsQuery({ selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } } }) +useDatabaseSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } } }) +useCreateDatabaseSettingMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseSettingMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseSettingMutation({}) +``` + +## Examples + +### List all databaseSettings + +```typescript +const { data, isLoading } = useDatabaseSettingsQuery({ + selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }, +}); +``` + +### Create a databaseSetting + +```typescript +const { mutate } = useCreateDatabaseSettingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }); +``` diff --git a/.agents/skills/hooks-api/references/database-transfer.md b/.agents/skills/hooks-api/references/database-transfer.md new file mode 100644 index 0000000000..614057bf93 --- /dev/null +++ b/.agents/skills/hooks-api/references/database-transfer.md @@ -0,0 +1,34 @@ +# databaseTransfer + + + +React Query hooks for DatabaseTransfer data operations + +## Usage + +```typescript +useDatabaseTransfersQuery({ selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } } }) +useDatabaseTransferQuery({ id: '', selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } } }) +useCreateDatabaseTransferMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseTransferMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseTransferMutation({}) +``` + +## Examples + +### List all databaseTransfers + +```typescript +const { data, isLoading } = useDatabaseTransfersQuery({ + selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); +``` + +### Create a databaseTransfer + +```typescript +const { mutate } = useCreateDatabaseTransferMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }); +``` diff --git a/.agents/skills/hooks-api/references/database.md b/.agents/skills/hooks-api/references/database.md new file mode 100644 index 0000000000..5bc69199a6 --- /dev/null +++ b/.agents/skills/hooks-api/references/database.md @@ -0,0 +1,34 @@ +# database + + + +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 } } }) +useCreateDatabaseMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseMutation({}) +``` + +## Examples + +### List all databases + +```typescript +const { data, isLoading } = useDatabasesQuery({ + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a database + +```typescript +const { mutate } = useCreateDatabaseMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); +``` diff --git a/.agents/skills/hooks-api/references/default-privilege.md b/.agents/skills/hooks-api/references/default-privilege.md new file mode 100644 index 0000000000..b887c2dca1 --- /dev/null +++ b/.agents/skills/hooks-api/references/default-privilege.md @@ -0,0 +1,34 @@ +# defaultPrivilege + + + +React Query hooks for DefaultPrivilege data operations + +## Usage + +```typescript +useDefaultPrivilegesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) +useDefaultPrivilegeQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } } }) +useCreateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) +useUpdateDefaultPrivilegeMutation({ selection: { fields: { id: true } } }) +useDeleteDefaultPrivilegeMutation({}) +``` + +## Examples + +### List all defaultPrivileges + +```typescript +const { data, isLoading } = useDefaultPrivilegesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); +``` + +### Create a defaultPrivilege + +```typescript +const { mutate } = useCreateDefaultPrivilegeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); +``` diff --git a/.agents/skills/hooks-api/references/domain.md b/.agents/skills/hooks-api/references/domain.md new file mode 100644 index 0000000000..2d6cc26b9b --- /dev/null +++ b/.agents/skills/hooks-api/references/domain.md @@ -0,0 +1,34 @@ +# domain + + + +DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site + +## Usage + +```typescript +useDomainsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) +useDomainQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } } }) +useCreateDomainMutation({ selection: { fields: { id: true } } }) +useUpdateDomainMutation({ selection: { fields: { id: true } } }) +useDeleteDomainMutation({}) +``` + +## Examples + +### List all domains + +```typescript +const { data, isLoading } = useDomainsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, +}); +``` + +### Create a domain + +```typescript +const { mutate } = useCreateDomainMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); +``` diff --git a/.agents/skills/hooks-api/references/embedding-chunk.md b/.agents/skills/hooks-api/references/embedding-chunk.md new file mode 100644 index 0000000000..9aa882c6c0 --- /dev/null +++ b/.agents/skills/hooks-api/references/embedding-chunk.md @@ -0,0 +1,34 @@ +# embeddingChunk + + + +React Query hooks for EmbeddingChunk data operations + +## Usage + +```typescript +useEmbeddingChunksQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } } }) +useEmbeddingChunkQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } } }) +useCreateEmbeddingChunkMutation({ selection: { fields: { id: true } } }) +useUpdateEmbeddingChunkMutation({ selection: { fields: { id: true } } }) +useDeleteEmbeddingChunkMutation({}) +``` + +## Examples + +### List all embeddingChunks + +```typescript +const { data, isLoading } = useEmbeddingChunksQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a embeddingChunk + +```typescript +const { mutate } = useCreateEmbeddingChunkMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/enum.md b/.agents/skills/hooks-api/references/enum.md new file mode 100644 index 0000000000..0e052d7af9 --- /dev/null +++ b/.agents/skills/hooks-api/references/enum.md @@ -0,0 +1,34 @@ +# enum + + + +React Query hooks for Enum data operations + +## Usage + +```typescript +useEnumsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useEnumQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useCreateEnumMutation({ selection: { fields: { id: true } } }) +useUpdateEnumMutation({ selection: { fields: { id: true } } }) +useDeleteEnumMutation({}) +``` + +## Examples + +### List all enums + +```typescript +const { data, isLoading } = useEnumsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); +``` + +### Create a enum + +```typescript +const { mutate } = useCreateEnumMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/field.md b/.agents/skills/hooks-api/references/field.md new file mode 100644 index 0000000000..6a2a372467 --- /dev/null +++ b/.agents/skills/hooks-api/references/field.md @@ -0,0 +1,34 @@ +# field + + + +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, module: true, scope: 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, module: true, scope: true, createdAt: true, updatedAt: true } } }) +useCreateFieldMutation({ selection: { fields: { id: true } } }) +useUpdateFieldMutation({ selection: { fields: { id: true } } }) +useDeleteFieldMutation({}) +``` + +## Examples + +### List all fields + +```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, module: true, scope: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a field + +```typescript +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: '', module: '', scope: '' }); +``` diff --git a/.agents/skills/hooks-api/references/foreign-key-constraint.md b/.agents/skills/hooks-api/references/foreign-key-constraint.md new file mode 100644 index 0000000000..424a575721 --- /dev/null +++ b/.agents/skills/hooks-api/references/foreign-key-constraint.md @@ -0,0 +1,34 @@ +# foreignKeyConstraint + + + +React Query hooks for ForeignKeyConstraint data operations + +## Usage + +```typescript +useForeignKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useForeignKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) +useUpdateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) +useDeleteForeignKeyConstraintMutation({}) +``` + +## Examples + +### List all foreignKeyConstraints + +```typescript +const { data, isLoading } = useForeignKeyConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a foreignKeyConstraint + +```typescript +const { mutate } = useCreateForeignKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/full-text-search.md b/.agents/skills/hooks-api/references/full-text-search.md new file mode 100644 index 0000000000..885d9aa3ae --- /dev/null +++ b/.agents/skills/hooks-api/references/full-text-search.md @@ -0,0 +1,34 @@ +# fullTextSearch + + + +React Query hooks for FullTextSearch data operations + +## Usage + +```typescript +useFullTextSearchesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } } }) +useFullTextSearchQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } } }) +useCreateFullTextSearchMutation({ selection: { fields: { id: true } } }) +useUpdateFullTextSearchMutation({ selection: { fields: { id: true } } }) +useDeleteFullTextSearchMutation({}) +``` + +## Examples + +### List all fullTextSearches + +```typescript +const { data, isLoading } = useFullTextSearchesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a fullTextSearch + +```typescript +const { mutate } = useCreateFullTextSearchMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '', langColumn: '' }); +``` diff --git a/.agents/skills/hooks-api/references/function.md b/.agents/skills/hooks-api/references/function.md new file mode 100644 index 0000000000..b30eb3f5c9 --- /dev/null +++ b/.agents/skills/hooks-api/references/function.md @@ -0,0 +1,34 @@ +# function + + + +React Query hooks for Function data operations + +## Usage + +```typescript +useFunctionsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } } }) +useFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } } }) +useCreateFunctionMutation({ selection: { fields: { id: true } } }) +useUpdateFunctionMutation({ selection: { fields: { id: true } } }) +useDeleteFunctionMutation({}) +``` + +## Examples + +### List all functions + +```typescript +const { data, isLoading } = useFunctionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } }, +}); +``` + +### Create a function + +```typescript +const { mutate } = useCreateFunctionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', name: '' }); +``` diff --git a/.agents/skills/hooks-api/references/index.md b/.agents/skills/hooks-api/references/index.md new file mode 100644 index 0000000000..a27d1307b3 --- /dev/null +++ b/.agents/skills/hooks-api/references/index.md @@ -0,0 +1,34 @@ +# index + + + +React Query hooks for Index data operations + +## Usage + +```typescript +useIndicesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useIndexQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateIndexMutation({ selection: { fields: { id: true } } }) +useUpdateIndexMutation({ selection: { fields: { id: true } } }) +useDeleteIndexMutation({}) +``` + +## Examples + +### List all indices + +```typescript +const { data, isLoading } = useIndicesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a index + +```typescript +const { mutate } = useCreateIndexMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/migrate-file.md b/.agents/skills/hooks-api/references/migrate-file.md new file mode 100644 index 0000000000..a0eddc5d55 --- /dev/null +++ b/.agents/skills/hooks-api/references/migrate-file.md @@ -0,0 +1,34 @@ +# migrateFile + + + +React Query hooks for MigrateFile data operations + +## Usage + +```typescript +useMigrateFilesQuery({ selection: { fields: { id: true, databaseId: true, upload: true } } }) +useMigrateFileQuery({ id: '', selection: { fields: { id: true, databaseId: true, upload: true } } }) +useCreateMigrateFileMutation({ selection: { fields: { id: true } } }) +useUpdateMigrateFileMutation({ selection: { fields: { id: true } } }) +useDeleteMigrateFileMutation({}) +``` + +## Examples + +### List all migrateFiles + +```typescript +const { data, isLoading } = useMigrateFilesQuery({ + selection: { fields: { id: true, databaseId: true, upload: true } }, +}); +``` + +### Create a migrateFile + +```typescript +const { mutate } = useCreateMigrateFileMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', upload: '' }); +``` diff --git a/.agents/skills/hooks-api/references/node-type-registry.md b/.agents/skills/hooks-api/references/node-type-registry.md new file mode 100644 index 0000000000..cd5642e1e1 --- /dev/null +++ b/.agents/skills/hooks-api/references/node-type-registry.md @@ -0,0 +1,34 @@ +# nodeTypeRegistry + + + +React Query hooks for NodeTypeRegistry data operations + +## Usage + +```typescript +useNodeTypeRegistriesQuery({ selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } } }) +useNodeTypeRegistryQuery({ name: '', selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } } }) +useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) +useUpdateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) +useDeleteNodeTypeRegistryMutation({}) +``` + +## Examples + +### List all nodeTypeRegistries + +```typescript +const { data, isLoading } = useNodeTypeRegistriesQuery({ + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, +}); +``` + +### Create a nodeTypeRegistry + +```typescript +const { mutate } = useCreateNodeTypeRegistryMutation({ + selection: { fields: { name: true } }, +}); +mutate({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/partition.md b/.agents/skills/hooks-api/references/partition.md new file mode 100644 index 0000000000..e771d96117 --- /dev/null +++ b/.agents/skills/hooks-api/references/partition.md @@ -0,0 +1,34 @@ +# partition + + + +React Query hooks for Partition data operations + +## Usage + +```typescript +usePartitionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } } }) +usePartitionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } } }) +useCreatePartitionMutation({ selection: { fields: { id: true } } }) +useUpdatePartitionMutation({ selection: { fields: { id: true } } }) +useDeletePartitionMutation({}) +``` + +## Examples + +### List all partitions + +```typescript +const { data, isLoading } = usePartitionsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a partition + +```typescript +const { mutate } = useCreatePartitionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }); +``` diff --git a/.agents/skills/hooks-api/references/policy.md b/.agents/skills/hooks-api/references/policy.md new file mode 100644 index 0000000000..cc92cfd044 --- /dev/null +++ b/.agents/skills/hooks-api/references/policy.md @@ -0,0 +1,34 @@ +# policy + + + +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, module: true, scope: 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, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreatePolicyMutation({ selection: { fields: { id: true } } }) +useUpdatePolicyMutation({ selection: { fields: { id: true } } }) +useDeletePolicyMutation({}) +``` + +## Examples + +### List all policies + +```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, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a policy + +```typescript +const { mutate } = useCreatePolicyMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/primary-key-constraint.md b/.agents/skills/hooks-api/references/primary-key-constraint.md new file mode 100644 index 0000000000..8f79348d32 --- /dev/null +++ b/.agents/skills/hooks-api/references/primary-key-constraint.md @@ -0,0 +1,34 @@ +# primaryKeyConstraint + + + +React Query hooks for PrimaryKeyConstraint data operations + +## Usage + +```typescript +usePrimaryKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) +useUpdatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) +useDeletePrimaryKeyConstraintMutation({}) +``` + +## Examples + +### List all primaryKeyConstraints + +```typescript +const { data, isLoading } = usePrimaryKeyConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a primaryKeyConstraint + +```typescript +const { mutate } = useCreatePrimaryKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/provision-bucket.md b/.agents/skills/hooks-api/references/provision-bucket.md new file mode 100644 index 0000000000..e003fc5551 --- /dev/null +++ b/.agents/skills/hooks-api/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-api/references/provision-database-with-user.md b/.agents/skills/hooks-api/references/provision-database-with-user.md new file mode 100644 index 0000000000..99f34945ba --- /dev/null +++ b/.agents/skills/hooks-api/references/provision-database-with-user.md @@ -0,0 +1,20 @@ +# provisionDatabaseWithUser + + + +React Query mutation hook for provisionDatabaseWithUser + +## Usage + +```typescript +const { mutate } = useProvisionDatabaseWithUserMutation(); mutate({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }); +``` + +## Examples + +### Use useProvisionDatabaseWithUserMutation + +```typescript +const { mutate, isLoading } = useProvisionDatabaseWithUserMutation(); +mutate({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/pubkey-setting.md b/.agents/skills/hooks-api/references/pubkey-setting.md new file mode 100644 index 0000000000..6670f28134 --- /dev/null +++ b/.agents/skills/hooks-api/references/pubkey-setting.md @@ -0,0 +1,34 @@ +# pubkeySetting + + + +Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries + +## Usage + +```typescript +usePubkeySettingsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } } }) +usePubkeySettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } } }) +useCreatePubkeySettingMutation({ selection: { fields: { id: true } } }) +useUpdatePubkeySettingMutation({ selection: { fields: { id: true } } }) +useDeletePubkeySettingMutation({}) +``` + +## Examples + +### List all pubkeySettings + +```typescript +const { data, isLoading } = usePubkeySettingsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }, +}); +``` + +### Create a pubkeySetting + +```typescript +const { mutate } = useCreatePubkeySettingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/reject-database-transfer.md b/.agents/skills/hooks-api/references/reject-database-transfer.md new file mode 100644 index 0000000000..cea99bc49b --- /dev/null +++ b/.agents/skills/hooks-api/references/reject-database-transfer.md @@ -0,0 +1,20 @@ +# rejectDatabaseTransfer + + + +React Query mutation hook for rejectDatabaseTransfer + +## Usage + +```typescript +const { mutate } = useRejectDatabaseTransferMutation(); mutate({ input: { transferId: '' } }); +``` + +## Examples + +### Use useRejectDatabaseTransferMutation + +```typescript +const { mutate, isLoading } = useRejectDatabaseTransferMutation(); +mutate({ input: { transferId: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/rls-setting.md b/.agents/skills/hooks-api/references/rls-setting.md new file mode 100644 index 0000000000..03951e763c --- /dev/null +++ b/.agents/skills/hooks-api/references/rls-setting.md @@ -0,0 +1,34 @@ +# rlsSetting + + + +Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries + +## Usage + +```typescript +useRlsSettingsQuery({ selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } } }) +useRlsSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } } }) +useCreateRlsSettingMutation({ selection: { fields: { id: true } } }) +useUpdateRlsSettingMutation({ selection: { fields: { id: true } } }) +useDeleteRlsSettingMutation({}) +``` + +## Examples + +### List all rlsSettings + +```typescript +const { data, isLoading } = useRlsSettingsQuery({ + selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }, +}); +``` + +### Create a rlsSetting + +```typescript +const { mutate } = useCreateRlsSettingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/schema-grant.md b/.agents/skills/hooks-api/references/schema-grant.md new file mode 100644 index 0000000000..c28d90b788 --- /dev/null +++ b/.agents/skills/hooks-api/references/schema-grant.md @@ -0,0 +1,34 @@ +# schemaGrant + + + +React Query hooks for SchemaGrant data operations + +## Usage + +```typescript +useSchemaGrantsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) +useSchemaGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } } }) +useCreateSchemaGrantMutation({ selection: { fields: { id: true } } }) +useUpdateSchemaGrantMutation({ selection: { fields: { id: true } } }) +useDeleteSchemaGrantMutation({}) +``` + +## Examples + +### List all schemaGrants + +```typescript +const { data, isLoading } = useSchemaGrantsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a schemaGrant + +```typescript +const { mutate } = useCreateSchemaGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', granteeName: '' }); +``` diff --git a/.agents/skills/hooks-api/references/schema.md b/.agents/skills/hooks-api/references/schema.md new file mode 100644 index 0000000000..a4fb5146d4 --- /dev/null +++ b/.agents/skills/hooks-api/references/schema.md @@ -0,0 +1,34 @@ +# schema + + + +React Query hooks for Schema data operations + +## Usage + +```typescript +useSchemasQuery({ selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) +useSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) +useCreateSchemaMutation({ selection: { fields: { id: true } } }) +useUpdateSchemaMutation({ selection: { fields: { id: true } } }) +useDeleteSchemaMutation({}) +``` + +## Examples + +### List all schemas + +```typescript +const { data, isLoading } = useSchemasQuery({ + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a schema + +```typescript +const { mutate } = useCreateSchemaMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); +``` diff --git a/.agents/skills/hooks-api/references/set-field-order.md b/.agents/skills/hooks-api/references/set-field-order.md new file mode 100644 index 0000000000..7fe81ff163 --- /dev/null +++ b/.agents/skills/hooks-api/references/set-field-order.md @@ -0,0 +1,20 @@ +# setFieldOrder + + + +React Query mutation hook for setFieldOrder + +## Usage + +```typescript +const { mutate } = useSetFieldOrderMutation(); mutate({ input: { fieldIds: '' } }); +``` + +## Examples + +### Use useSetFieldOrderMutation + +```typescript +const { mutate, isLoading } = useSetFieldOrderMutation(); +mutate({ input: { fieldIds: '' } }); +``` diff --git a/.agents/skills/hooks-api/references/site-metadatum.md b/.agents/skills/hooks-api/references/site-metadatum.md new file mode 100644 index 0000000000..0a382a53e7 --- /dev/null +++ b/.agents/skills/hooks-api/references/site-metadatum.md @@ -0,0 +1,34 @@ +# siteMetadatum + + + +SEO and social sharing metadata for a site: page title, description, and Open Graph image + +## Usage + +```typescript +useSiteMetadataQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) +useSiteMetadatumQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } } }) +useCreateSiteMetadatumMutation({ selection: { fields: { id: true } } }) +useUpdateSiteMetadatumMutation({ selection: { fields: { id: true } } }) +useDeleteSiteMetadatumMutation({}) +``` + +## Examples + +### List all siteMetadata + +```typescript +const { data, isLoading } = useSiteMetadataQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, +}); +``` + +### Create a siteMetadatum + +```typescript +const { mutate } = useCreateSiteMetadatumMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); +``` diff --git a/.agents/skills/hooks-api/references/site-module.md b/.agents/skills/hooks-api/references/site-module.md new file mode 100644 index 0000000000..aeb2436b2f --- /dev/null +++ b/.agents/skills/hooks-api/references/site-module.md @@ -0,0 +1,34 @@ +# siteModule + + + +Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site + +## Usage + +```typescript +useSiteModulesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) +useSiteModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } } }) +useCreateSiteModuleMutation({ selection: { fields: { id: true } } }) +useUpdateSiteModuleMutation({ selection: { fields: { id: true } } }) +useDeleteSiteModuleMutation({}) +``` + +## Examples + +### List all siteModules + +```typescript +const { data, isLoading } = useSiteModulesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, +}); +``` + +### Create a siteModule + +```typescript +const { mutate } = useCreateSiteModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', name: '', data: '' }); +``` diff --git a/.agents/skills/hooks-api/references/site-theme.md b/.agents/skills/hooks-api/references/site-theme.md new file mode 100644 index 0000000000..15ed70af52 --- /dev/null +++ b/.agents/skills/hooks-api/references/site-theme.md @@ -0,0 +1,34 @@ +# siteTheme + + + +Theme configuration for a site; stores design tokens, colors, and typography as JSONB + +## Usage + +```typescript +useSiteThemesQuery({ selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) +useSiteThemeQuery({ id: '', selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } } }) +useCreateSiteThemeMutation({ selection: { fields: { id: true } } }) +useUpdateSiteThemeMutation({ selection: { fields: { id: true } } }) +useDeleteSiteThemeMutation({}) +``` + +## Examples + +### List all siteThemes + +```typescript +const { data, isLoading } = useSiteThemesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, +}); +``` + +### Create a siteTheme + +```typescript +const { mutate } = useCreateSiteThemeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', siteId: '', theme: '' }); +``` diff --git a/.agents/skills/hooks-api/references/site.md b/.agents/skills/hooks-api/references/site.md new file mode 100644 index 0000000000..798f3150ad --- /dev/null +++ b/.agents/skills/hooks-api/references/site.md @@ -0,0 +1,34 @@ +# site + + + +Top-level site configuration: branding assets, title, and description for a deployed application + +## Usage + +```typescript +useSitesQuery({ selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) +useSiteQuery({ id: '', selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } } }) +useCreateSiteMutation({ selection: { fields: { id: true } } }) +useUpdateSiteMutation({ selection: { fields: { id: true } } }) +useDeleteSiteMutation({}) +``` + +## Examples + +### List all sites + +```typescript +const { data, isLoading } = useSitesQuery({ + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, +}); +``` + +### Create a site + +```typescript +const { mutate } = useCreateSiteMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); +``` diff --git a/.agents/skills/hooks-api/references/spatial-relation.md b/.agents/skills/hooks-api/references/spatial-relation.md new file mode 100644 index 0000000000..2ace884042 --- /dev/null +++ b/.agents/skills/hooks-api/references/spatial-relation.md @@ -0,0 +1,34 @@ +# spatialRelation + + + +React Query hooks for SpatialRelation data operations + +## Usage + +```typescript +useSpatialRelationsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useSpatialRelationQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateSpatialRelationMutation({ selection: { fields: { id: true } } }) +useUpdateSpatialRelationMutation({ selection: { fields: { id: true } } }) +useDeleteSpatialRelationMutation({}) +``` + +## Examples + +### List all spatialRelations + +```typescript +const { data, isLoading } = useSpatialRelationsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a spatialRelation + +```typescript +const { mutate } = useCreateSpatialRelationMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/sql-action.md b/.agents/skills/hooks-api/references/sql-action.md new file mode 100644 index 0000000000..d746e47fa9 --- /dev/null +++ b/.agents/skills/hooks-api/references/sql-action.md @@ -0,0 +1,34 @@ +# sqlAction + + + +React Query hooks for SqlAction data operations + +## Usage + +```typescript +useSqlActionsQuery({ selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useSqlActionQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } } }) +useCreateSqlActionMutation({ selection: { fields: { id: true } } }) +useUpdateSqlActionMutation({ selection: { fields: { id: true } } }) +useDeleteSqlActionMutation({}) +``` + +## Examples + +### List all sqlActions + +```typescript +const { data, isLoading } = useSqlActionsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); +``` + +### Create a sqlAction + +```typescript +const { mutate } = useCreateSqlActionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/table-grant.md b/.agents/skills/hooks-api/references/table-grant.md new file mode 100644 index 0000000000..612bdb6469 --- /dev/null +++ b/.agents/skills/hooks-api/references/table-grant.md @@ -0,0 +1,34 @@ +# tableGrant + + + +React Query hooks for TableGrant data operations + +## Usage + +```typescript +useTableGrantsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) +useTableGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } } }) +useCreateTableGrantMutation({ selection: { fields: { id: true } } }) +useUpdateTableGrantMutation({ selection: { fields: { id: true } } }) +useDeleteTableGrantMutation({}) +``` + +## Examples + +### List all tableGrants + +```typescript +const { data, isLoading } = useTableGrantsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a tableGrant + +```typescript +const { mutate } = useCreateTableGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); +``` diff --git a/.agents/skills/hooks-api/references/table.md b/.agents/skills/hooks-api/references/table.md new file mode 100644 index 0000000000..e251a89a15 --- /dev/null +++ b/.agents/skills/hooks-api/references/table.md @@ -0,0 +1,34 @@ +# table + + + +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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } } }) +useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } } }) +useCreateTableMutation({ selection: { fields: { id: true } } }) +useUpdateTableMutation({ selection: { fields: { id: true } } }) +useDeleteTableMutation({}) +``` + +## Examples + +### List all tables + +```typescript +const { data, isLoading } = useTablesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a table + +```typescript +const { mutate } = useCreateTableMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); +``` diff --git a/.agents/skills/hooks-api/references/trigger-function.md b/.agents/skills/hooks-api/references/trigger-function.md new file mode 100644 index 0000000000..0962a9d6bf --- /dev/null +++ b/.agents/skills/hooks-api/references/trigger-function.md @@ -0,0 +1,34 @@ +# triggerFunction + + + +React Query hooks for TriggerFunction data operations + +## Usage + +```typescript +useTriggerFunctionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) +useTriggerFunctionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } } }) +useCreateTriggerFunctionMutation({ selection: { fields: { id: true } } }) +useUpdateTriggerFunctionMutation({ selection: { fields: { id: true } } }) +useDeleteTriggerFunctionMutation({}) +``` + +## Examples + +### List all triggerFunctions + +```typescript +const { data, isLoading } = useTriggerFunctionsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a triggerFunction + +```typescript +const { mutate } = useCreateTriggerFunctionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', code: '' }); +``` diff --git a/.agents/skills/hooks-api/references/trigger.md b/.agents/skills/hooks-api/references/trigger.md new file mode 100644 index 0000000000..b0f481c71a --- /dev/null +++ b/.agents/skills/hooks-api/references/trigger.md @@ -0,0 +1,34 @@ +# trigger + + + +React Query hooks for Trigger data operations + +## Usage + +```typescript +useTriggersQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useTriggerQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateTriggerMutation({ selection: { fields: { id: true } } }) +useUpdateTriggerMutation({ selection: { fields: { id: true } } }) +useDeleteTriggerMutation({}) +``` + +## Examples + +### List all triggers + +```typescript +const { data, isLoading } = useTriggersQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a trigger + +```typescript +const { mutate } = useCreateTriggerMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/unique-constraint.md b/.agents/skills/hooks-api/references/unique-constraint.md new file mode 100644 index 0000000000..2b1628b940 --- /dev/null +++ b/.agents/skills/hooks-api/references/unique-constraint.md @@ -0,0 +1,34 @@ +# uniqueConstraint + + + +React Query hooks for UniqueConstraint data operations + +## Usage + +```typescript +useUniqueConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useUniqueConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCreateUniqueConstraintMutation({ selection: { fields: { id: true } } }) +useUpdateUniqueConstraintMutation({ selection: { fields: { id: true } } }) +useDeleteUniqueConstraintMutation({}) +``` + +## Examples + +### List all uniqueConstraints + +```typescript +const { data, isLoading } = useUniqueConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a uniqueConstraint + +```typescript +const { mutate } = useCreateUniqueConstraintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/view-grant.md b/.agents/skills/hooks-api/references/view-grant.md new file mode 100644 index 0000000000..d7412dad34 --- /dev/null +++ b/.agents/skills/hooks-api/references/view-grant.md @@ -0,0 +1,34 @@ +# viewGrant + + + +React Query hooks for ViewGrant data operations + +## Usage + +```typescript +useViewGrantsQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) +useViewGrantQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } } }) +useCreateViewGrantMutation({ selection: { fields: { id: true } } }) +useUpdateViewGrantMutation({ selection: { fields: { id: true } } }) +useDeleteViewGrantMutation({}) +``` + +## Examples + +### List all viewGrants + +```typescript +const { data, isLoading } = useViewGrantsQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, +}); +``` + +### Create a viewGrant + +```typescript +const { mutate } = useCreateViewGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); +``` diff --git a/.agents/skills/hooks-api/references/view-rule.md b/.agents/skills/hooks-api/references/view-rule.md new file mode 100644 index 0000000000..488e9c9c17 --- /dev/null +++ b/.agents/skills/hooks-api/references/view-rule.md @@ -0,0 +1,34 @@ +# viewRule + + + +DO INSTEAD rules for views (e.g., read-only enforcement) + +## Usage + +```typescript +useViewRulesQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) +useViewRuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } } }) +useCreateViewRuleMutation({ selection: { fields: { id: true } } }) +useUpdateViewRuleMutation({ selection: { fields: { id: true } } }) +useDeleteViewRuleMutation({}) +``` + +## Examples + +### List all viewRules + +```typescript +const { data, isLoading } = useViewRulesQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, +}); +``` + +### Create a viewRule + +```typescript +const { mutate } = useCreateViewRuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', viewId: '', name: '', event: '', action: '' }); +``` diff --git a/.agents/skills/hooks-api/references/view-table.md b/.agents/skills/hooks-api/references/view-table.md new file mode 100644 index 0000000000..651a00cb72 --- /dev/null +++ b/.agents/skills/hooks-api/references/view-table.md @@ -0,0 +1,34 @@ +# viewTable + + + +Junction table linking views to their joined tables for referential integrity + +## Usage + +```typescript +useViewTablesQuery({ selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) +useViewTableQuery({ id: '', selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) +useCreateViewTableMutation({ selection: { fields: { id: true } } }) +useUpdateViewTableMutation({ selection: { fields: { id: true } } }) +useDeleteViewTableMutation({}) +``` + +## Examples + +### List all viewTables + +```typescript +const { data, isLoading } = useViewTablesQuery({ + selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, +}); +``` + +### Create a viewTable + +```typescript +const { mutate } = useCreateViewTableMutation({ + selection: { fields: { id: true } }, +}); +mutate({ viewId: '', tableId: '', joinOrder: '' }); +``` diff --git a/.agents/skills/hooks-api/references/view.md b/.agents/skills/hooks-api/references/view.md new file mode 100644 index 0000000000..b3f08a5d0d --- /dev/null +++ b/.agents/skills/hooks-api/references/view.md @@ -0,0 +1,34 @@ +# view + + + +React Query hooks for View data operations + +## Usage + +```typescript +useViewsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useViewQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useCreateViewMutation({ selection: { fields: { id: true } } }) +useUpdateViewMutation({ selection: { fields: { id: true } } }) +useDeleteViewMutation({}) +``` + +## Examples + +### List all views + +```typescript +const { data, isLoading } = useViewsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); +``` + +### Create a view + +```typescript +const { mutate } = useCreateViewMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/webauthn-setting.md b/.agents/skills/hooks-api/references/webauthn-setting.md new file mode 100644 index 0000000000..94985870c0 --- /dev/null +++ b/.agents/skills/hooks-api/references/webauthn-setting.md @@ -0,0 +1,34 @@ +# webauthnSetting + + + +Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries + +## Usage + +```typescript +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 } } }) +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 } } }) +useCreateWebauthnSettingMutation({ selection: { fields: { id: true } } }) +useUpdateWebauthnSettingMutation({ selection: { fields: { id: true } } }) +useDeleteWebauthnSettingMutation({}) +``` + +## Examples + +### List all webauthnSettings + +```typescript +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 } }, +}); +``` + +### Create a webauthnSetting + +```typescript +const { mutate } = useCreateWebauthnSettingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }); +``` diff --git a/.agents/skills/hooks-modules/SKILL.md b/.agents/skills/hooks-modules/SKILL.md new file mode 100644 index 0000000000..7ea0236e1b --- /dev/null +++ b/.agents/skills/hooks-modules/SKILL.md @@ -0,0 +1,108 @@ +--- +name: hooks-modules +description: React Query hooks for the modules API — provides typed query and mutation hooks for 56 tables and 12 custom operations +--- + +# hooks-modules + + + +React Query hooks for the modules API — provides typed query and mutation hooks for 56 tables and 12 custom operations + +## Usage + +```typescript +// Import hooks +import { useDefaultIdsModulesQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation +// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. + +const { data, isLoading } = useDefaultIdsModulesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useDefaultIdsModulesQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +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) +- [identity-providers-module](references/identity-providers-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) +- [crypto-addresses-module](references/crypto-addresses-module.md) +- [denormalized-table-field](references/denormalized-table-field.md) +- [rls-module](references/rls-module.md) +- [blueprint](references/blueprint.md) +- [blueprint-template](references/blueprint-template.md) +- [blueprint-construction](references/blueprint-construction.md) +- [crypto-auth-module](references/crypto-auth-module.md) +- [rate-limit-meters-module](references/rate-limit-meters-module.md) +- [sessions-module](references/sessions-module.md) +- [merkle-store-module](references/merkle-store-module.md) +- [graph-module](references/graph-module.md) +- [secure-table-provision](references/secure-table-provision.md) +- [config-secrets-module](references/config-secrets-module.md) +- [invites-module](references/invites-module.md) +- [database-provision-module](references/database-provision-module.md) +- [realtime-module](references/realtime-module.md) +- [webauthn-auth-module](references/webauthn-auth-module.md) +- [namespace-module](references/namespace-module.md) +- [compute-log-module](references/compute-log-module.md) +- [inference-log-module](references/inference-log-module.md) +- [storage-log-module](references/storage-log-module.md) +- [transfer-log-module](references/transfer-log-module.md) +- [db-usage-module](references/db-usage-module.md) +- [notifications-module](references/notifications-module.md) +- [plans-module](references/plans-module.md) +- [hierarchy-module](references/hierarchy-module.md) +- [billing-module](references/billing-module.md) +- [billing-provider-module](references/billing-provider-module.md) +- [profiles-module](references/profiles-module.md) +- [permissions-module](references/permissions-module.md) +- [relation-provision](references/relation-provision.md) +- [function-module](references/function-module.md) +- [user-auth-module](references/user-auth-module.md) +- [agent-module](references/agent-module.md) +- [limits-module](references/limits-module.md) +- [memberships-module](references/memberships-module.md) +- [storage-module](references/storage-module.md) +- [events-module](references/events-module.md) +- [entity-type-provision](references/entity-type-provision.md) +- [resolve-blueprint-field](references/resolve-blueprint-field.md) +- [resolve-blueprint-table](references/resolve-blueprint-table.md) +- [construct-blueprint](references/construct-blueprint.md) +- [provision-full-text-search](references/provision-full-text-search.md) +- [provision-index](references/provision-index.md) +- [provision-check-constraint](references/provision-check-constraint.md) +- [provision-unique-constraint](references/provision-unique-constraint.md) +- [copy-template-to-blueprint](references/copy-template-to-blueprint.md) +- [provision-spatial-relation](references/provision-spatial-relation.md) +- [provision-table](references/provision-table.md) +- [provision-relation](references/provision-relation.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-modules/references/agent-module.md b/.agents/skills/hooks-modules/references/agent-module.md new file mode 100644 index 0000000000..c85f15d464 --- /dev/null +++ b/.agents/skills/hooks-modules/references/agent-module.md @@ -0,0 +1,34 @@ +# agentModule + + + +React Query hooks for AgentModule data operations + +## Usage + +```typescript +useAgentModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } } }) +useAgentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } } }) +useCreateAgentModuleMutation({ selection: { fields: { id: true } } }) +useUpdateAgentModuleMutation({ selection: { fields: { id: true } } }) +useDeleteAgentModuleMutation({}) +``` + +## Examples + +### List all agentModules + +```typescript +const { data, isLoading } = useAgentModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }, +}); +``` + +### Create a agentModule + +```typescript +const { mutate } = useCreateAgentModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', planTableId: '', skillTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', planTableName: '', skillTableName: '', hasKnowledge: '', hasPlans: '', hasSkills: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', knowledgeConfig: '', skillsConfig: '', knowledgePolicies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/billing-module.md b/.agents/skills/hooks-modules/references/billing-module.md new file mode 100644 index 0000000000..ccb75ca7d6 --- /dev/null +++ b/.agents/skills/hooks-modules/references/billing-module.md @@ -0,0 +1,34 @@ +# billingModule + + + +React Query hooks for BillingModule data operations + +## Usage + +```typescript +useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) +useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) +useDeleteBillingModuleMutation({}) +``` + +## Examples + +### List all billingModules + +```typescript +const { data, isLoading } = useBillingModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a billingModule + +```typescript +const { mutate } = useCreateBillingModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/billing-provider-module.md b/.agents/skills/hooks-modules/references/billing-provider-module.md new file mode 100644 index 0000000000..dfc6707bf0 --- /dev/null +++ b/.agents/skills/hooks-modules/references/billing-provider-module.md @@ -0,0 +1,34 @@ +# billingProviderModule + + + +React Query hooks for BillingProviderModule data operations + +## Usage + +```typescript +useBillingProviderModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useBillingProviderModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) +useUpdateBillingProviderModuleMutation({ selection: { fields: { id: true } } }) +useDeleteBillingProviderModuleMutation({}) +``` + +## Examples + +### List all billingProviderModules + +```typescript +const { data, isLoading } = useBillingProviderModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a billingProviderModule + +```typescript +const { mutate } = useCreateBillingProviderModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/blueprint-construction.md b/.agents/skills/hooks-modules/references/blueprint-construction.md new file mode 100644 index 0000000000..6eed6f40d5 --- /dev/null +++ b/.agents/skills/hooks-modules/references/blueprint-construction.md @@ -0,0 +1,34 @@ +# blueprintConstruction + + + +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + +## Usage + +```typescript +useBlueprintConstructionsQuery({ selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } } }) +useBlueprintConstructionQuery({ id: '', selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } } }) +useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) +useUpdateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) +useDeleteBlueprintConstructionMutation({}) +``` + +## Examples + +### List all blueprintConstructions + +```typescript +const { data, isLoading } = useBlueprintConstructionsQuery({ + selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a blueprintConstruction + +```typescript +const { mutate } = useCreateBlueprintConstructionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/blueprint-template.md b/.agents/skills/hooks-modules/references/blueprint-template.md new file mode 100644 index 0000000000..c268969029 --- /dev/null +++ b/.agents/skills/hooks-modules/references/blueprint-template.md @@ -0,0 +1,34 @@ +# blueprintTemplate + + + +A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + +## Usage + +```typescript +useBlueprintTemplatesQuery({ selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) +useBlueprintTemplateQuery({ id: '', selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) +useCreateBlueprintTemplateMutation({ selection: { fields: { id: true } } }) +useUpdateBlueprintTemplateMutation({ selection: { fields: { id: true } } }) +useDeleteBlueprintTemplateMutation({}) +``` + +## Examples + +### List all blueprintTemplates + +```typescript +const { data, isLoading } = useBlueprintTemplatesQuery({ + selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a blueprintTemplate + +```typescript +const { mutate } = useCreateBlueprintTemplateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/blueprint.md b/.agents/skills/hooks-modules/references/blueprint.md new file mode 100644 index 0000000000..4d551205c7 --- /dev/null +++ b/.agents/skills/hooks-modules/references/blueprint.md @@ -0,0 +1,34 @@ +# blueprint + + + +An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. + +## Usage + +```typescript +useBlueprintsQuery({ selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) +useBlueprintQuery({ id: '', selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } } }) +useCreateBlueprintMutation({ selection: { fields: { id: true } } }) +useUpdateBlueprintMutation({ selection: { fields: { id: true } } }) +useDeleteBlueprintMutation({}) +``` + +## Examples + +### List all blueprints + +```typescript +const { data, isLoading } = useBlueprintsQuery({ + selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a blueprint + +```typescript +const { mutate } = useCreateBlueprintMutation({ + selection: { fields: { id: true } }, +}); +mutate({ ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/compute-log-module.md b/.agents/skills/hooks-modules/references/compute-log-module.md new file mode 100644 index 0000000000..e94765f1f6 --- /dev/null +++ b/.agents/skills/hooks-modules/references/compute-log-module.md @@ -0,0 +1,34 @@ +# computeLogModule + + + +React Query hooks for ComputeLogModule data operations + +## Usage + +```typescript +useComputeLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useComputeLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateComputeLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateComputeLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteComputeLogModuleMutation({}) +``` + +## Examples + +### List all computeLogModules + +```typescript +const { data, isLoading } = useComputeLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a computeLogModule + +```typescript +const { mutate } = useCreateComputeLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/config-secrets-module.md b/.agents/skills/hooks-modules/references/config-secrets-module.md new file mode 100644 index 0000000000..10e8213dd5 --- /dev/null +++ b/.agents/skills/hooks-modules/references/config-secrets-module.md @@ -0,0 +1,36 @@ +# configSecretsModule + + + +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. + +## Usage + +```typescript +useConfigSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) +useConfigSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) +useCreateConfigSecretsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConfigSecretsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConfigSecretsModuleMutation({}) +``` + +## Examples + +### List all configSecretsModules + +```typescript +const { data, isLoading } = useConfigSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, +}); +``` + +### Create a configSecretsModule + +```typescript +const { mutate } = useCreateConfigSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/config-secrets-org-module.md b/.agents/skills/hooks-modules/references/config-secrets-org-module.md new file mode 100644 index 0000000000..2c27a2f31f --- /dev/null +++ b/.agents/skills/hooks-modules/references/config-secrets-org-module.md @@ -0,0 +1,34 @@ +# configSecretsOrgModule + + + +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + +## Usage + +```typescript +useConfigSecretsOrgModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useConfigSecretsOrgModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useCreateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConfigSecretsOrgModuleMutation({}) +``` + +## Examples + +### List all configSecretsOrgModules + +```typescript +const { data, isLoading } = useConfigSecretsOrgModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a configSecretsOrgModule + +```typescript +const { mutate } = useCreateConfigSecretsOrgModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', 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 new file mode 100644 index 0000000000..5249159e9e --- /dev/null +++ b/.agents/skills/hooks-modules/references/config-secrets-user-module.md @@ -0,0 +1,34 @@ +# configSecretsUserModule + + + +React Query hooks for ConfigSecretsUserModule data operations + +## Usage + +```typescript +useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, 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 } } }) +useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConfigSecretsUserModuleMutation({}) +``` + +## Examples + +### List all configSecretsUserModules + +```typescript +const { data, isLoading } = useConfigSecretsUserModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a configSecretsUserModule + +```typescript +const { mutate } = useCreateConfigSecretsUserModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/connected-accounts-module.md b/.agents/skills/hooks-modules/references/connected-accounts-module.md new file mode 100644 index 0000000000..a7082839f4 --- /dev/null +++ b/.agents/skills/hooks-modules/references/connected-accounts-module.md @@ -0,0 +1,34 @@ +# connectedAccountsModule + + + +React Query hooks for ConnectedAccountsModule data operations + +## Usage + +```typescript +useConnectedAccountsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useConnectedAccountsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useCreateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConnectedAccountsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConnectedAccountsModuleMutation({}) +``` + +## Examples + +### List all connectedAccountsModules + +```typescript +const { data, isLoading } = useConnectedAccountsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a connectedAccountsModule + +```typescript +const { mutate } = useCreateConnectedAccountsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/construct-blueprint.md b/.agents/skills/hooks-modules/references/construct-blueprint.md new file mode 100644 index 0000000000..8e2057c745 --- /dev/null +++ b/.agents/skills/hooks-modules/references/construct-blueprint.md @@ -0,0 +1,20 @@ +# constructBlueprint + + + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +## Usage + +```typescript +const { mutate } = useConstructBlueprintMutation(); mutate({ input: { blueprintId: '', schemaId: '' } }); +``` + +## Examples + +### Use useConstructBlueprintMutation + +```typescript +const { mutate, isLoading } = useConstructBlueprintMutation(); +mutate({ input: { blueprintId: '', schemaId: '' } }); +``` diff --git a/.agents/skills/hooks-modules/references/copy-template-to-blueprint.md b/.agents/skills/hooks-modules/references/copy-template-to-blueprint.md new file mode 100644 index 0000000000..3a69acb0b8 --- /dev/null +++ b/.agents/skills/hooks-modules/references/copy-template-to-blueprint.md @@ -0,0 +1,20 @@ +# copyTemplateToBlueprint + + + +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. + +## Usage + +```typescript +const { mutate } = useCopyTemplateToBlueprintMutation(); mutate({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }); +``` + +## Examples + +### Use useCopyTemplateToBlueprintMutation + +```typescript +const { mutate, isLoading } = useCopyTemplateToBlueprintMutation(); +mutate({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }); +``` diff --git a/.agents/skills/hooks-modules/references/crypto-addresses-module.md b/.agents/skills/hooks-modules/references/crypto-addresses-module.md new file mode 100644 index 0000000000..4b6870d9c9 --- /dev/null +++ b/.agents/skills/hooks-modules/references/crypto-addresses-module.md @@ -0,0 +1,34 @@ +# cryptoAddressesModule + + + +React Query hooks for CryptoAddressesModule data operations + +## Usage + +```typescript +useCryptoAddressesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } } }) +useCryptoAddressesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } } }) +useCreateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateCryptoAddressesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteCryptoAddressesModuleMutation({}) +``` + +## Examples + +### List all cryptoAddressesModules + +```typescript +const { data, isLoading } = useCryptoAddressesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a cryptoAddressesModule + +```typescript +const { mutate } = useCreateCryptoAddressesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/crypto-auth-module.md b/.agents/skills/hooks-modules/references/crypto-auth-module.md new file mode 100644 index 0000000000..71a816b992 --- /dev/null +++ b/.agents/skills/hooks-modules/references/crypto-auth-module.md @@ -0,0 +1,34 @@ +# cryptoAuthModule + + + +React Query hooks for CryptoAuthModule data operations + +## Usage + +```typescript +useCryptoAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) +useCryptoAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } } }) +useCreateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) +useUpdateCryptoAuthModuleMutation({ selection: { fields: { id: true } } }) +useDeleteCryptoAuthModuleMutation({}) +``` + +## Examples + +### List all cryptoAuthModules + +```typescript +const { data, isLoading } = useCryptoAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, +}); +``` + +### Create a cryptoAuthModule + +```typescript +const { mutate } = useCreateCryptoAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/database-provision-module.md b/.agents/skills/hooks-modules/references/database-provision-module.md new file mode 100644 index 0000000000..cb4de4d0bf --- /dev/null +++ b/.agents/skills/hooks-modules/references/database-provision-module.md @@ -0,0 +1,34 @@ +# databaseProvisionModule + + + +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. + +## 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 } } }) +useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDatabaseProvisionModuleMutation({}) +``` + +## Examples + +### List all databaseProvisionModules + +```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 } }, +}); +``` + +### Create a databaseProvisionModule + +```typescript +const { mutate } = useCreateDatabaseProvisionModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/db-usage-module.md b/.agents/skills/hooks-modules/references/db-usage-module.md new file mode 100644 index 0000000000..a7d2fd7842 --- /dev/null +++ b/.agents/skills/hooks-modules/references/db-usage-module.md @@ -0,0 +1,34 @@ +# dbUsageModule + + + +React Query hooks for DbUsageModule data operations + +## Usage + +```typescript +useDbUsageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } } }) +useDbUsageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDbUsageModuleMutation({}) +``` + +## Examples + +### List all dbUsageModules + +```typescript +const { data, isLoading } = useDbUsageModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a dbUsageModule + +```typescript +const { mutate } = useCreateDbUsageModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/default-ids-module.md b/.agents/skills/hooks-modules/references/default-ids-module.md new file mode 100644 index 0000000000..7359d36450 --- /dev/null +++ b/.agents/skills/hooks-modules/references/default-ids-module.md @@ -0,0 +1,34 @@ +# defaultIdsModule + + + +React Query hooks for DefaultIdsModule data operations + +## Usage + +```typescript +useDefaultIdsModulesQuery({ selection: { fields: { id: true, databaseId: true } } }) +useDefaultIdsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true } } }) +useCreateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDefaultIdsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDefaultIdsModuleMutation({}) +``` + +## Examples + +### List all defaultIdsModules + +```typescript +const { data, isLoading } = useDefaultIdsModulesQuery({ + selection: { fields: { id: true, databaseId: true } }, +}); +``` + +### Create a defaultIdsModule + +```typescript +const { mutate } = useCreateDefaultIdsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/denormalized-table-field.md b/.agents/skills/hooks-modules/references/denormalized-table-field.md new file mode 100644 index 0000000000..5c4fcd7ab0 --- /dev/null +++ b/.agents/skills/hooks-modules/references/denormalized-table-field.md @@ -0,0 +1,34 @@ +# denormalizedTableField + + + +React Query hooks for DenormalizedTableField data operations + +## Usage + +```typescript +useDenormalizedTableFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) +useDenormalizedTableFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } } }) +useCreateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) +useUpdateDenormalizedTableFieldMutation({ selection: { fields: { id: true } } }) +useDeleteDenormalizedTableFieldMutation({}) +``` + +## Examples + +### List all denormalizedTableFields + +```typescript +const { data, isLoading } = useDenormalizedTableFieldsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, +}); +``` + +### Create a denormalizedTableField + +```typescript +const { mutate } = useCreateDenormalizedTableFieldMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/devices-module.md b/.agents/skills/hooks-modules/references/devices-module.md new file mode 100644 index 0000000000..d1c5489cd8 --- /dev/null +++ b/.agents/skills/hooks-modules/references/devices-module.md @@ -0,0 +1,34 @@ +# devicesModule + + + +React Query hooks for DevicesModule data operations + +## Usage + +```typescript +useDevicesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } } }) +useDevicesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } } }) +useCreateDevicesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDevicesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDevicesModuleMutation({}) +``` + +## Examples + +### List all devicesModules + +```typescript +const { data, isLoading } = useDevicesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, +}); +``` + +### Create a devicesModule + +```typescript +const { mutate } = useCreateDevicesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/emails-module.md b/.agents/skills/hooks-modules/references/emails-module.md new file mode 100644 index 0000000000..f0cbe39ec1 --- /dev/null +++ b/.agents/skills/hooks-modules/references/emails-module.md @@ -0,0 +1,34 @@ +# emailsModule + + + +React Query hooks for EmailsModule data operations + +## Usage + +```typescript +useEmailsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useEmailsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useCreateEmailsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateEmailsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteEmailsModuleMutation({}) +``` + +## Examples + +### List all emailsModules + +```typescript +const { data, isLoading } = useEmailsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a emailsModule + +```typescript +const { mutate } = useCreateEmailsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/entity-type-provision.md b/.agents/skills/hooks-modules/references/entity-type-provision.md new file mode 100644 index 0000000000..ed4222c7c6 --- /dev/null +++ b/.agents/skills/hooks-modules/references/entity-type-provision.md @@ -0,0 +1,41 @@ +# entityTypeProvision + + + +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 + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. + +## 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) +useCreateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) +useUpdateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) +useDeleteEntityTypeProvisionMutation({}) +``` + +## Examples + +### List all entityTypeProvisions + +```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, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, +}); +``` + +### Create a entityTypeProvision + +```typescript +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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/events-module.md b/.agents/skills/hooks-modules/references/events-module.md new file mode 100644 index 0000000000..400f83a45e --- /dev/null +++ b/.agents/skills/hooks-modules/references/events-module.md @@ -0,0 +1,34 @@ +# eventsModule + + + +React Query hooks for EventsModule data operations + +## Usage + +```typescript +useEventsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) +useEventsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) +useCreateEventsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateEventsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteEventsModuleMutation({}) +``` + +## Examples + +### List all eventsModules + +```typescript +const { data, isLoading } = useEventsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a eventsModule + +```typescript +const { mutate } = useCreateEventsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', 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: '', databaseOwned: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/function-module.md b/.agents/skills/hooks-modules/references/function-module.md new file mode 100644 index 0000000000..1ef4dee8d2 --- /dev/null +++ b/.agents/skills/hooks-modules/references/function-module.md @@ -0,0 +1,34 @@ +# functionModule + + + +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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) +useFunctionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) +useCreateFunctionModuleMutation({ selection: { fields: { id: true } } }) +useUpdateFunctionModuleMutation({ selection: { fields: { id: true } } }) +useDeleteFunctionModuleMutation({}) +``` + +## Examples + +### List all functionModules + +```typescript +const { data, isLoading } = useFunctionModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, +}); +``` + +### Create a functionModule + +```typescript +const { mutate } = useCreateFunctionModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/graph-module.md b/.agents/skills/hooks-modules/references/graph-module.md new file mode 100644 index 0000000000..3dd0470cb3 --- /dev/null +++ b/.agents/skills/hooks-modules/references/graph-module.md @@ -0,0 +1,34 @@ +# graphModule + + + +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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: 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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: true } } }) +useCreateGraphModuleMutation({ selection: { fields: { id: true } } }) +useUpdateGraphModuleMutation({ selection: { fields: { id: true } } }) +useDeleteGraphModuleMutation({}) +``` + +## Examples + +### List all graphModules + +```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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, +}); +``` + +### Create a graphModule + +```typescript +const { mutate } = useCreateGraphModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', databaseOwned: '', entityTableId: '', policies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/hierarchy-module.md b/.agents/skills/hooks-modules/references/hierarchy-module.md new file mode 100644 index 0000000000..4cfa08b1e4 --- /dev/null +++ b/.agents/skills/hooks-modules/references/hierarchy-module.md @@ -0,0 +1,34 @@ +# hierarchyModule + + + +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, 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, createdAt: true } } }) +useCreateHierarchyModuleMutation({ selection: { fields: { id: true } } }) +useUpdateHierarchyModuleMutation({ selection: { fields: { id: true } } }) +useDeleteHierarchyModuleMutation({}) +``` + +## Examples + +### List all hierarchyModules + +```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, createdAt: true } }, +}); +``` + +### Create a hierarchyModule + +```typescript +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: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/i-18-n-module.md b/.agents/skills/hooks-modules/references/i-18-n-module.md new file mode 100644 index 0000000000..c711118e36 --- /dev/null +++ b/.agents/skills/hooks-modules/references/i-18-n-module.md @@ -0,0 +1,34 @@ +# i18NModule + + + +React Query hooks for I18NModule data operations + +## Usage + +```typescript +useI18nModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } } }) +useI18NModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } } }) +useCreateI18NModuleMutation({ selection: { fields: { id: true } } }) +useUpdateI18NModuleMutation({ selection: { fields: { id: true } } }) +useDeleteI18NModuleMutation({}) +``` + +## Examples + +### List all i18nModules + +```typescript +const { data, isLoading } = useI18nModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a i18NModule + +```typescript +const { mutate } = useCreateI18NModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/identity-providers-module.md b/.agents/skills/hooks-modules/references/identity-providers-module.md new file mode 100644 index 0000000000..102214076b --- /dev/null +++ b/.agents/skills/hooks-modules/references/identity-providers-module.md @@ -0,0 +1,34 @@ +# identityProvidersModule + + + +Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. + +## Usage + +```typescript +useIdentityProvidersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useIdentityProvidersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) +useUpdateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) +useDeleteIdentityProvidersModuleMutation({}) +``` + +## Examples + +### List all identityProvidersModules + +```typescript +const { data, isLoading } = useIdentityProvidersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a identityProvidersModule + +```typescript +const { mutate } = useCreateIdentityProvidersModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/inference-log-module.md b/.agents/skills/hooks-modules/references/inference-log-module.md new file mode 100644 index 0000000000..aaa1953f61 --- /dev/null +++ b/.agents/skills/hooks-modules/references/inference-log-module.md @@ -0,0 +1,34 @@ +# inferenceLogModule + + + +React Query hooks for InferenceLogModule data operations + +## Usage + +```typescript +useInferenceLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInferenceLogModuleMutation({}) +``` + +## Examples + +### List all inferenceLogModules + +```typescript +const { data, isLoading } = useInferenceLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a inferenceLogModule + +```typescript +const { mutate } = useCreateInferenceLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/invites-module.md b/.agents/skills/hooks-modules/references/invites-module.md new file mode 100644 index 0000000000..edf74095f4 --- /dev/null +++ b/.agents/skills/hooks-modules/references/invites-module.md @@ -0,0 +1,34 @@ +# invitesModule + + + +React Query hooks for InvitesModule data operations + +## Usage + +```typescript +useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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({}) +``` + +## Examples + +### List all invitesModules + +```typescript +const { data, isLoading } = useInvitesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 invitesModule + +```typescript +const { mutate } = useCreateInvitesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', 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 new file mode 100644 index 0000000000..18647438aa --- /dev/null +++ b/.agents/skills/hooks-modules/references/limits-module.md @@ -0,0 +1,34 @@ +# limitsModule + + + +React Query hooks for LimitsModule data operations + +## Usage + +```typescript +useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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({}) +``` + +## Examples + +### List all limitsModules + +```typescript +const { data, isLoading } = useLimitsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 + +```typescript +const { mutate } = useCreateLimitsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', 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/membership-types-module.md b/.agents/skills/hooks-modules/references/membership-types-module.md new file mode 100644 index 0000000000..27f4c7602d --- /dev/null +++ b/.agents/skills/hooks-modules/references/membership-types-module.md @@ -0,0 +1,34 @@ +# membershipTypesModule + + + +React Query hooks for MembershipTypesModule data operations + +## Usage + +```typescript +useMembershipTypesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useMembershipTypesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) +useUpdateMembershipTypesModuleMutation({ selection: { fields: { id: true } } }) +useDeleteMembershipTypesModuleMutation({}) +``` + +## Examples + +### List all membershipTypesModules + +```typescript +const { data, isLoading } = useMembershipTypesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a membershipTypesModule + +```typescript +const { mutate } = useCreateMembershipTypesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/memberships-module.md b/.agents/skills/hooks-modules/references/memberships-module.md new file mode 100644 index 0000000000..c58dd87bbe --- /dev/null +++ b/.agents/skills/hooks-modules/references/memberships-module.md @@ -0,0 +1,34 @@ +# membershipsModule + + + +React Query hooks for MembershipsModule data operations + +## Usage + +```typescript +useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, apiName: true, privateApiName: true } } }) +useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, apiName: true, privateApiName: true } } }) +useCreateMembershipsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateMembershipsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteMembershipsModuleMutation({}) +``` + +## Examples + +### List all membershipsModules + +```typescript +const { data, isLoading } = useMembershipsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, apiName: true, privateApiName: true } }, +}); +``` + +### Create a membershipsModule + +```typescript +const { mutate } = useCreateMembershipsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', 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: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/merkle-store-module.md b/.agents/skills/hooks-modules/references/merkle-store-module.md new file mode 100644 index 0000000000..9cc538be6c --- /dev/null +++ b/.agents/skills/hooks-modules/references/merkle-store-module.md @@ -0,0 +1,34 @@ +# merkleStoreModule + + + +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, databaseOwned: 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, databaseOwned: true, createdAt: true } } }) +useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) +useUpdateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) +useDeleteMerkleStoreModuleMutation({}) +``` + +## Examples + +### List all merkleStoreModules + +```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, databaseOwned: true, createdAt: true } }, +}); +``` + +### Create a merkleStoreModule + +```typescript +const { mutate } = useCreateMerkleStoreModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', databaseOwned: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/namespace-module.md b/.agents/skills/hooks-modules/references/namespace-module.md new file mode 100644 index 0000000000..deb570d99f --- /dev/null +++ b/.agents/skills/hooks-modules/references/namespace-module.md @@ -0,0 +1,34 @@ +# namespaceModule + + + +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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) +useCreateNamespaceModuleMutation({ selection: { fields: { id: true } } }) +useUpdateNamespaceModuleMutation({ selection: { fields: { id: true } } }) +useDeleteNamespaceModuleMutation({}) +``` + +## Examples + +### List all namespaceModules + +```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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, +}); +``` + +### Create a namespaceModule + +```typescript +const { mutate } = useCreateNamespaceModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/notifications-module.md b/.agents/skills/hooks-modules/references/notifications-module.md new file mode 100644 index 0000000000..35291eac06 --- /dev/null +++ b/.agents/skills/hooks-modules/references/notifications-module.md @@ -0,0 +1,34 @@ +# notificationsModule + + + +React Query hooks for NotificationsModule data operations + +## Usage + +```typescript +useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } } }) +useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } } }) +useCreateNotificationsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateNotificationsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteNotificationsModuleMutation({}) +``` + +## Examples + +### List all notificationsModules + +```typescript +const { data, isLoading } = useNotificationsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a notificationsModule + +```typescript +const { mutate } = useCreateNotificationsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/permissions-module.md b/.agents/skills/hooks-modules/references/permissions-module.md new file mode 100644 index 0000000000..f75fc17352 --- /dev/null +++ b/.agents/skills/hooks-modules/references/permissions-module.md @@ -0,0 +1,34 @@ +# permissionsModule + + + +React Query hooks for PermissionsModule data operations + +## Usage + +```typescript +usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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({}) +``` + +## Examples + +### List all permissionsModules + +```typescript +const { data, isLoading } = usePermissionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 + +```typescript +const { mutate } = useCreatePermissionsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/phone-numbers-module.md b/.agents/skills/hooks-modules/references/phone-numbers-module.md new file mode 100644 index 0000000000..747fd05b3d --- /dev/null +++ b/.agents/skills/hooks-modules/references/phone-numbers-module.md @@ -0,0 +1,34 @@ +# phoneNumbersModule + + + +React Query hooks for PhoneNumbersModule data operations + +## Usage + +```typescript +usePhoneNumbersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +usePhoneNumbersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useCreatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) +useUpdatePhoneNumbersModuleMutation({ selection: { fields: { id: true } } }) +useDeletePhoneNumbersModuleMutation({}) +``` + +## Examples + +### List all phoneNumbersModules + +```typescript +const { data, isLoading } = usePhoneNumbersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a phoneNumbersModule + +```typescript +const { mutate } = useCreatePhoneNumbersModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/plans-module.md b/.agents/skills/hooks-modules/references/plans-module.md new file mode 100644 index 0000000000..28c03c39b5 --- /dev/null +++ b/.agents/skills/hooks-modules/references/plans-module.md @@ -0,0 +1,34 @@ +# plansModule + + + +React Query hooks for PlansModule data operations + +## Usage + +```typescript +usePlansModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 } } }) +usePlansModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 } } }) +useCreatePlansModuleMutation({ selection: { fields: { id: true } } }) +useUpdatePlansModuleMutation({ selection: { fields: { id: true } } }) +useDeletePlansModuleMutation({}) +``` + +## Examples + +### List all plansModules + +```typescript +const { data, isLoading } = usePlansModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 plansModule + +```typescript +const { mutate } = useCreatePlansModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/profiles-module.md b/.agents/skills/hooks-modules/references/profiles-module.md new file mode 100644 index 0000000000..3a358f185e --- /dev/null +++ b/.agents/skills/hooks-modules/references/profiles-module.md @@ -0,0 +1,34 @@ +# profilesModule + + + +React Query hooks for ProfilesModule data operations + +## Usage + +```typescript +useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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({}) +``` + +## Examples + +### List all profilesModules + +```typescript +const { data, isLoading } = useProfilesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 + +```typescript +const { mutate } = useCreateProfilesModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', 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/provision-bucket.md b/.agents/skills/hooks-modules/references/provision-bucket.md new file mode 100644 index 0000000000..e003fc5551 --- /dev/null +++ b/.agents/skills/hooks-modules/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/references/provision-check-constraint.md b/.agents/skills/hooks-modules/references/provision-check-constraint.md new file mode 100644 index 0000000000..f2a75b484b --- /dev/null +++ b/.agents/skills/hooks-modules/references/provision-check-constraint.md @@ -0,0 +1,20 @@ +# provisionCheckConstraint + + + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +## Usage + +```typescript +const { mutate } = useProvisionCheckConstraintMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` + +## Examples + +### Use useProvisionCheckConstraintMutation + +```typescript +const { mutate, isLoading } = useProvisionCheckConstraintMutation(); +mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` diff --git a/.agents/skills/hooks-modules/references/provision-full-text-search.md b/.agents/skills/hooks-modules/references/provision-full-text-search.md new file mode 100644 index 0000000000..f44c7ec250 --- /dev/null +++ b/.agents/skills/hooks-modules/references/provision-full-text-search.md @@ -0,0 +1,20 @@ +# provisionFullTextSearch + + + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +## Usage + +```typescript +const { mutate } = useProvisionFullTextSearchMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` + +## Examples + +### Use useProvisionFullTextSearchMutation + +```typescript +const { mutate, isLoading } = useProvisionFullTextSearchMutation(); +mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` diff --git a/.agents/skills/hooks-modules/references/provision-index.md b/.agents/skills/hooks-modules/references/provision-index.md new file mode 100644 index 0000000000..55b6769e1d --- /dev/null +++ b/.agents/skills/hooks-modules/references/provision-index.md @@ -0,0 +1,20 @@ +# provisionIndex + + + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +## Usage + +```typescript +const { mutate } = useProvisionIndexMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` + +## Examples + +### Use useProvisionIndexMutation + +```typescript +const { mutate, isLoading } = useProvisionIndexMutation(); +mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` diff --git a/.agents/skills/hooks-modules/references/provision-relation.md b/.agents/skills/hooks-modules/references/provision-relation.md new file mode 100644 index 0000000000..54eb612139 --- /dev/null +++ b/.agents/skills/hooks-modules/references/provision-relation.md @@ -0,0 +1,20 @@ +# provisionRelation + + + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +## Usage + +```typescript +const { mutate } = useProvisionRelationMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useProvisionRelationMutation + +```typescript +const { mutate, isLoading } = useProvisionRelationMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/provision-spatial-relation.md b/.agents/skills/hooks-modules/references/provision-spatial-relation.md new file mode 100644 index 0000000000..9392c24136 --- /dev/null +++ b/.agents/skills/hooks-modules/references/provision-spatial-relation.md @@ -0,0 +1,20 @@ +# provisionSpatialRelation + + + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +## Usage + +```typescript +const { mutate } = useProvisionSpatialRelationMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useProvisionSpatialRelationMutation + +```typescript +const { mutate, isLoading } = useProvisionSpatialRelationMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/provision-table.md b/.agents/skills/hooks-modules/references/provision-table.md new file mode 100644 index 0000000000..0f8ec3553f --- /dev/null +++ b/.agents/skills/hooks-modules/references/provision-table.md @@ -0,0 +1,20 @@ +# provisionTable + + + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +## Usage + +```typescript +const { mutate } = useProvisionTableMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useProvisionTableMutation + +```typescript +const { mutate, isLoading } = useProvisionTableMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/provision-unique-constraint.md b/.agents/skills/hooks-modules/references/provision-unique-constraint.md new file mode 100644 index 0000000000..d7017a6d63 --- /dev/null +++ b/.agents/skills/hooks-modules/references/provision-unique-constraint.md @@ -0,0 +1,20 @@ +# provisionUniqueConstraint + + + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +## Usage + +```typescript +const { mutate } = useProvisionUniqueConstraintMutation(); mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` + +## Examples + +### Use useProvisionUniqueConstraintMutation + +```typescript +const { mutate, isLoading } = useProvisionUniqueConstraintMutation(); +mutate({ input: { databaseId: '', tableId: '', definition: '' } }); +``` diff --git a/.agents/skills/hooks-modules/references/rate-limit-meters-module.md b/.agents/skills/hooks-modules/references/rate-limit-meters-module.md new file mode 100644 index 0000000000..bbf4a1f6cc --- /dev/null +++ b/.agents/skills/hooks-modules/references/rate-limit-meters-module.md @@ -0,0 +1,34 @@ +# rateLimitMetersModule + + + +React Query hooks for RateLimitMetersModule data operations + +## Usage + +```typescript +useRateLimitMetersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useRateLimitMetersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) +useUpdateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) +useDeleteRateLimitMetersModuleMutation({}) +``` + +## Examples + +### List all rateLimitMetersModules + +```typescript +const { data, isLoading } = useRateLimitMetersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a rateLimitMetersModule + +```typescript +const { mutate } = useCreateRateLimitMetersModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/rate-limits-module.md b/.agents/skills/hooks-modules/references/rate-limits-module.md new file mode 100644 index 0000000000..a9e75c6503 --- /dev/null +++ b/.agents/skills/hooks-modules/references/rate-limits-module.md @@ -0,0 +1,34 @@ +# rateLimitsModule + + + +React Query hooks for RateLimitsModule data operations + +## Usage + +```typescript +useRateLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } } }) +useRateLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } } }) +useCreateRateLimitsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateRateLimitsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteRateLimitsModuleMutation({}) +``` + +## Examples + +### List all rateLimitsModules + +```typescript +const { data, isLoading } = useRateLimitsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, +}); +``` + +### Create a rateLimitsModule + +```typescript +const { mutate } = useCreateRateLimitsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/realtime-module.md b/.agents/skills/hooks-modules/references/realtime-module.md new file mode 100644 index 0000000000..d819ac3aa8 --- /dev/null +++ b/.agents/skills/hooks-modules/references/realtime-module.md @@ -0,0 +1,34 @@ +# realtimeModule + + + +React Query hooks for RealtimeModule data operations + +## Usage + +```typescript +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 } } }) +useRealtimeModuleQuery({ 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 } } }) +useCreateRealtimeModuleMutation({ selection: { fields: { id: true } } }) +useUpdateRealtimeModuleMutation({ selection: { fields: { id: true } } }) +useDeleteRealtimeModuleMutation({}) +``` + +## Examples + +### List all realtimeModules + +```typescript +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 } }, +}); +``` + +### Create a realtimeModule + +```typescript +const { mutate } = useCreateRealtimeModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/relation-provision.md b/.agents/skills/hooks-modules/references/relation-provision.md new file mode 100644 index 0000000000..430fe55c68 --- /dev/null +++ b/.agents/skills/hooks-modules/references/relation-provision.md @@ -0,0 +1,41 @@ +# relationProvision + + + +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. + +## Usage + +```typescript +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 } } }) +useRelationProvisionQuery({ 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 } } }) +useCreateRelationProvisionMutation({ selection: { fields: { id: true } } }) +useUpdateRelationProvisionMutation({ selection: { fields: { id: true } } }) +useDeleteRelationProvisionMutation({}) +``` + +## Examples + +### List all relationProvisions + +```typescript +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 } }, +}); +``` + +### Create a relationProvision + +```typescript +const { mutate } = useCreateRelationProvisionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/resolve-blueprint-field.md b/.agents/skills/hooks-modules/references/resolve-blueprint-field.md new file mode 100644 index 0000000000..703251d083 --- /dev/null +++ b/.agents/skills/hooks-modules/references/resolve-blueprint-field.md @@ -0,0 +1,19 @@ +# resolveBlueprintField + + + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +## Usage + +```typescript +useResolveBlueprintFieldQuery({ databaseId: '', tableId: '', fieldName: '' }) +``` + +## Examples + +### Use useResolveBlueprintFieldQuery + +```typescript +const { data, isLoading } = useResolveBlueprintFieldQuery({ databaseId: '', tableId: '', fieldName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/resolve-blueprint-table.md b/.agents/skills/hooks-modules/references/resolve-blueprint-table.md new file mode 100644 index 0000000000..d28ed938f3 --- /dev/null +++ b/.agents/skills/hooks-modules/references/resolve-blueprint-table.md @@ -0,0 +1,19 @@ +# resolveBlueprintTable + + + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +## Usage + +```typescript +useResolveBlueprintTableQuery({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }) +``` + +## Examples + +### Use useResolveBlueprintTableQuery + +```typescript +const { data, isLoading } = useResolveBlueprintTableQuery({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/rls-module.md b/.agents/skills/hooks-modules/references/rls-module.md new file mode 100644 index 0000000000..82a78f0306 --- /dev/null +++ b/.agents/skills/hooks-modules/references/rls-module.md @@ -0,0 +1,34 @@ +# rlsModule + + + +React Query hooks for RlsModule data operations + +## Usage + +```typescript +useRlsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } } }) +useRlsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } } }) +useCreateRlsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateRlsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteRlsModuleMutation({}) +``` + +## Examples + +### List all rlsModules + +```typescript +const { data, isLoading } = useRlsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a rlsModule + +```typescript +const { mutate } = useCreateRlsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/secure-table-provision.md b/.agents/skills/hooks-modules/references/secure-table-provision.md new file mode 100644 index 0000000000..c335318acc --- /dev/null +++ b/.agents/skills/hooks-modules/references/secure-table-provision.md @@ -0,0 +1,34 @@ +# secureTableProvision + + + +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. + +## Usage + +```typescript +useSecureTableProvisionsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } } }) +useSecureTableProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } } }) +useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) +useUpdateSecureTableProvisionMutation({ selection: { fields: { id: true } } }) +useDeleteSecureTableProvisionMutation({}) +``` + +## Examples + +### List all secureTableProvisions + +```typescript +const { data, isLoading } = useSecureTableProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, +}); +``` + +### Create a secureTableProvision + +```typescript +const { mutate } = useCreateSecureTableProvisionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/session-secrets-module.md b/.agents/skills/hooks-modules/references/session-secrets-module.md new file mode 100644 index 0000000000..d074e3bacc --- /dev/null +++ b/.agents/skills/hooks-modules/references/session-secrets-module.md @@ -0,0 +1,34 @@ +# sessionSecretsModule + + + +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. + +## Usage + +```typescript +useSessionSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } } }) +useSessionSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } } }) +useCreateSessionSecretsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateSessionSecretsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteSessionSecretsModuleMutation({}) +``` + +## Examples + +### List all sessionSecretsModules + +```typescript +const { data, isLoading } = useSessionSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }, +}); +``` + +### Create a sessionSecretsModule + +```typescript +const { mutate } = useCreateSessionSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/sessions-module.md b/.agents/skills/hooks-modules/references/sessions-module.md new file mode 100644 index 0000000000..f087d41bda --- /dev/null +++ b/.agents/skills/hooks-modules/references/sessions-module.md @@ -0,0 +1,34 @@ +# sessionsModule + + + +React Query hooks for SessionsModule data operations + +## Usage + +```typescript +useSessionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) +useSessionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } } }) +useCreateSessionsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateSessionsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteSessionsModuleMutation({}) +``` + +## Examples + +### List all sessionsModules + +```typescript +const { data, isLoading } = useSessionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, +}); +``` + +### Create a sessionsModule + +```typescript +const { mutate } = useCreateSessionsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/storage-log-module.md b/.agents/skills/hooks-modules/references/storage-log-module.md new file mode 100644 index 0000000000..913c387531 --- /dev/null +++ b/.agents/skills/hooks-modules/references/storage-log-module.md @@ -0,0 +1,34 @@ +# storageLogModule + + + +React Query hooks for StorageLogModule data operations + +## Usage + +```typescript +useStorageLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useStorageLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteStorageLogModuleMutation({}) +``` + +## Examples + +### List all storageLogModules + +```typescript +const { data, isLoading } = useStorageLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a storageLogModule + +```typescript +const { mutate } = useCreateStorageLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md new file mode 100644 index 0000000000..f334bbe591 --- /dev/null +++ b/.agents/skills/hooks-modules/references/storage-module.md @@ -0,0 +1,34 @@ +# storageModule + + + +React Query hooks for StorageModule data operations + +## Usage + +```typescript +useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } } }) +useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) +useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) +useDeleteStorageModuleMutation({}) +``` + +## Examples + +### List all storageModules + +```typescript +const { data, isLoading } = useStorageModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } }, +}); +``` + +### Create a storageModule + +```typescript +const { mutate } = useCreateStorageModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', databaseOwned: '', 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: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/transfer-log-module.md b/.agents/skills/hooks-modules/references/transfer-log-module.md new file mode 100644 index 0000000000..c0b16afc36 --- /dev/null +++ b/.agents/skills/hooks-modules/references/transfer-log-module.md @@ -0,0 +1,34 @@ +# transferLogModule + + + +React Query hooks for TransferLogModule data operations + +## Usage + +```typescript +useTransferLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useTransferLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useCreateTransferLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateTransferLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteTransferLogModuleMutation({}) +``` + +## Examples + +### List all transferLogModules + +```typescript +const { data, isLoading } = useTransferLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a transferLogModule + +```typescript +const { mutate } = useCreateTransferLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/user-auth-module.md b/.agents/skills/hooks-modules/references/user-auth-module.md new file mode 100644 index 0000000000..44e6234b84 --- /dev/null +++ b/.agents/skills/hooks-modules/references/user-auth-module.md @@ -0,0 +1,34 @@ +# userAuthModule + + + +React Query hooks for UserAuthModule data operations + +## Usage + +```typescript +useUserAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } } }) +useUserAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } } }) +useCreateUserAuthModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUserAuthModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUserAuthModuleMutation({}) +``` + +## Examples + +### List all userAuthModules + +```typescript +const { data, isLoading } = useUserAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a userAuthModule + +```typescript +const { mutate } = useCreateUserAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ 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: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/user-credentials-module.md b/.agents/skills/hooks-modules/references/user-credentials-module.md new file mode 100644 index 0000000000..de1169a972 --- /dev/null +++ b/.agents/skills/hooks-modules/references/user-credentials-module.md @@ -0,0 +1,36 @@ +# userCredentialsModule + + + +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. + +## 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 } } }) +useCreateUserCredentialsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUserCredentialsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUserCredentialsModuleMutation({}) +``` + +## Examples + +### List all userCredentialsModules + +```typescript +const { data, isLoading } = useUserCredentialsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a userCredentialsModule + +```typescript +const { mutate } = useCreateUserCredentialsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/user-settings-module.md b/.agents/skills/hooks-modules/references/user-settings-module.md new file mode 100644 index 0000000000..5910a1ea12 --- /dev/null +++ b/.agents/skills/hooks-modules/references/user-settings-module.md @@ -0,0 +1,34 @@ +# userSettingsModule + + + +React Query hooks for UserSettingsModule data operations + +## Usage + +```typescript +useUserSettingsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } } }) +useUserSettingsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } } }) +useCreateUserSettingsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUserSettingsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUserSettingsModuleMutation({}) +``` + +## Examples + +### List all userSettingsModules + +```typescript +const { data, isLoading } = useUserSettingsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }, +}); +``` + +### Create a userSettingsModule + +```typescript +const { mutate } = useCreateUserSettingsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/user-state-module.md b/.agents/skills/hooks-modules/references/user-state-module.md new file mode 100644 index 0000000000..37cefbfdad --- /dev/null +++ b/.agents/skills/hooks-modules/references/user-state-module.md @@ -0,0 +1,34 @@ +# userStateModule + + + +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 } } }) +useCreateUserStateModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUserStateModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUserStateModuleMutation({}) +``` + +## Examples + +### List all userStateModules + +```typescript +const { data, isLoading } = useUserStateModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a userStateModule + +```typescript +const { mutate } = useCreateUserStateModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/users-module.md b/.agents/skills/hooks-modules/references/users-module.md new file mode 100644 index 0000000000..e17affbcf6 --- /dev/null +++ b/.agents/skills/hooks-modules/references/users-module.md @@ -0,0 +1,34 @@ +# usersModule + + + +React Query hooks for UsersModule data operations + +## Usage + +```typescript +useUsersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } } }) +useUsersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } } }) +useCreateUsersModuleMutation({ selection: { fields: { id: true } } }) +useUpdateUsersModuleMutation({ selection: { fields: { id: true } } }) +useDeleteUsersModuleMutation({}) +``` + +## Examples + +### List all usersModules + +```typescript +const { data, isLoading } = useUsersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a usersModule + +```typescript +const { mutate } = useCreateUsersModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/webauthn-auth-module.md b/.agents/skills/hooks-modules/references/webauthn-auth-module.md new file mode 100644 index 0000000000..dfd9386cbb --- /dev/null +++ b/.agents/skills/hooks-modules/references/webauthn-auth-module.md @@ -0,0 +1,34 @@ +# webauthnAuthModule + + + +React Query hooks for WebauthnAuthModule data operations + +## Usage + +```typescript +useWebauthnAuthModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } } }) +useWebauthnAuthModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } } }) +useCreateWebauthnAuthModuleMutation({ selection: { fields: { id: true } } }) +useUpdateWebauthnAuthModuleMutation({ selection: { fields: { id: true } } }) +useDeleteWebauthnAuthModuleMutation({}) +``` + +## Examples + +### List all webauthnAuthModules + +```typescript +const { data, isLoading } = useWebauthnAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }, +}); +``` + +### Create a webauthnAuthModule + +```typescript +const { mutate } = useCreateWebauthnAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/webauthn-credentials-module.md b/.agents/skills/hooks-modules/references/webauthn-credentials-module.md new file mode 100644 index 0000000000..75ff3f4740 --- /dev/null +++ b/.agents/skills/hooks-modules/references/webauthn-credentials-module.md @@ -0,0 +1,34 @@ +# webauthnCredentialsModule + + + +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. + +## Usage + +```typescript +useWebauthnCredentialsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useWebauthnCredentialsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useCreateWebauthnCredentialsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateWebauthnCredentialsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteWebauthnCredentialsModuleMutation({}) +``` + +## Examples + +### List all webauthnCredentialsModules + +```typescript +const { data, isLoading } = useWebauthnCredentialsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); +``` + +### Create a webauthnCredentialsModule + +```typescript +const { mutate } = useCreateWebauthnCredentialsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` diff --git a/.agents/skills/hooks-objects/SKILL.md b/.agents/skills/hooks-objects/SKILL.md index 28b0b76eaf..4605439fb4 100644 --- a/.agents/skills/hooks-objects/SKILL.md +++ b/.agents/skills/hooks-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-objects -description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 13 custom operations +description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 4 custom operations --- # hooks-objects -React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 13 custom operations +React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 4 custom operations ## Usage @@ -39,20 +39,11 @@ const { data, isLoading } = useGetAllQuery({ See the `references/` directory for detailed per-entity API documentation: - [get-all-record](references/get-all-record.md) -- [object](references/object.md) - [ref](references/ref.md) - [store](references/store.md) +- [object](references/object.md) - [commit](references/commit.md) -- [rev-parse](references/rev-parse.md) -- [get-all-objects-from-root](references/get-all-objects-from-root.md) -- [get-path-objects-from-root](references/get-path-objects-from-root.md) -- [get-object-at-path](references/get-object-at-path.md) -- [freeze-objects](references/freeze-objects.md) - [init-empty-repo](references/init-empty-repo.md) -- [remove-node-at-path](references/remove-node-at-path.md) - [set-data-at-path](references/set-data-at-path.md) -- [set-props-and-commit](references/set-props-and-commit.md) - [insert-node-at-path](references/insert-node-at-path.md) -- [update-node-at-path](references/update-node-at-path.md) -- [set-and-commit](references/set-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-objects/references/commit.md b/.agents/skills/hooks-objects/references/commit.md index a6c4430011..a38dadef1d 100644 --- a/.agents/skills/hooks-objects/references/commit.md +++ b/.agents/skills/hooks-objects/references/commit.md @@ -2,7 +2,7 @@ -A commit records changes to the repository. +Commit history — each commit snapshots a tree root for a store ## Usage diff --git a/.agents/skills/hooks-objects/references/init-empty-repo.md b/.agents/skills/hooks-objects/references/init-empty-repo.md index a6c8e875b4..2886faeeb7 100644 --- a/.agents/skills/hooks-objects/references/init-empty-repo.md +++ b/.agents/skills/hooks-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ React Query mutation hook for initEmptyRepo ## Usage ```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', storeId: '' } }); +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: { dbId: '', storeId: '' } }); +mutate({ input: { sId: '', storeId: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/object.md b/.agents/skills/hooks-objects/references/object.md index 02b80242e6..315f4167f7 100644 --- a/.agents/skills/hooks-objects/references/object.md +++ b/.agents/skills/hooks-objects/references/object.md @@ -2,13 +2,13 @@ -React Query hooks for Object data operations +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children ## Usage ```typescript -useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectsQuery({ selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } } }) useCreateObjectMutation({ selection: { fields: { id: true } } }) useUpdateObjectMutation({ selection: { fields: { id: true } } }) useDeleteObjectMutation({}) @@ -20,7 +20,7 @@ useDeleteObjectMutation({}) ```typescript const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useObjectsQuery({ const { mutate } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +mutate({ databaseId: '', kids: '', ktree: '', data: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/ref.md b/.agents/skills/hooks-objects/references/ref.md index ec187041d4..9a4645c420 100644 --- a/.agents/skills/hooks-objects/references/ref.md +++ b/.agents/skills/hooks-objects/references/ref.md @@ -2,7 +2,7 @@ -A ref is a data structure for pointing to a commit. +Branch heads — mutable pointers into the commit chain ## Usage diff --git a/.agents/skills/hooks-objects/references/set-data-at-path.md b/.agents/skills/hooks-objects/references/set-data-at-path.md index e22c1a1cd5..dcb9adb0aa 100644 --- a/.agents/skills/hooks-objects/references/set-data-at-path.md +++ b/.agents/skills/hooks-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for setDataAtPath ## Usage ```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +const { mutate } = useSetDataAtPathMutation(); mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/store.md b/.agents/skills/hooks-objects/references/store.md index fd0c67b206..2e8a2412be 100644 --- a/.agents/skills/hooks-objects/references/store.md +++ b/.agents/skills/hooks-objects/references/store.md @@ -2,7 +2,7 @@ -A store represents an isolated object repository within a database. +Named stores — one per version-controlled tree (e.g. one graph, one definition set) ## Usage diff --git a/.agents/skills/hooks-usage/SKILL.md b/.agents/skills/hooks-usage/SKILL.md new file mode 100644 index 0000000000..1c5f982f51 --- /dev/null +++ b/.agents/skills/hooks-usage/SKILL.md @@ -0,0 +1,63 @@ +--- +name: hooks-usage +description: React Query hooks for the usage API — provides typed query and mutation hooks for 18 tables and 5 custom operations +--- + +# hooks-usage + + + +React Query hooks for the usage API — provides typed query and mutation hooks for 18 tables and 5 custom operations + +## Usage + +```typescript +// Import hooks +import { useAppLimitCapsDefaultsQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation +// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. + +const { data, isLoading } = useAppLimitCapsDefaultsQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useAppLimitCapsDefaultsQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [app-limit-caps-default](references/app-limit-caps-default.md) +- [org-limit-caps-default](references/org-limit-caps-default.md) +- [app-limit-cap](references/app-limit-cap.md) +- [org-limit-cap](references/org-limit-cap.md) +- [app-limit-default](references/app-limit-default.md) +- [app-limit-credit](references/app-limit-credit.md) +- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) +- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) +- [org-limit-default](references/org-limit-default.md) +- [org-limit-credit](references/org-limit-credit.md) +- [app-limit-warning](references/app-limit-warning.md) +- [org-limit-warning](references/org-limit-warning.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) +- [app-limit](references/app-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) +- [org-limit](references/org-limit.md) +- [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) +- [seed-app-limit-defaults](references/seed-app-limit-defaults.md) +- [seed-org-limit-caps-defaults](references/seed-org-limit-caps-defaults.md) +- [seed-org-limit-defaults](references/seed-org-limit-defaults.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-usage/references/app-limit-cap.md b/.agents/skills/hooks-usage/references/app-limit-cap.md new file mode 100644 index 0000000000..b219f8c7a6 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-cap.md @@ -0,0 +1,34 @@ +# appLimitCap + + + +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. + +## Usage + +```typescript +useAppLimitCapsQuery({ selection: { fields: { id: true, name: true, entityId: true, max: true } } }) +useAppLimitCapQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, max: true } } }) +useCreateAppLimitCapMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitCapMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitCapMutation({}) +``` + +## Examples + +### List all appLimitCaps + +```typescript +const { data, isLoading } = useAppLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); +``` + +### Create a appLimitCap + +```typescript +const { mutate } = useCreateAppLimitCapMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', entityId: '', max: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-caps-default.md b/.agents/skills/hooks-usage/references/app-limit-caps-default.md new file mode 100644 index 0000000000..6804054bd7 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-caps-default.md @@ -0,0 +1,34 @@ +# appLimitCapsDefault + + + +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. + +## Usage + +```typescript +useAppLimitCapsDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) +useAppLimitCapsDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useCreateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitCapsDefaultMutation({}) +``` + +## Examples + +### List all appLimitCapsDefaults + +```typescript +const { data, isLoading } = useAppLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); +``` + +### Create a appLimitCapsDefault + +```typescript +const { mutate } = useCreateAppLimitCapsDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-credit-code-item.md b/.agents/skills/hooks-usage/references/app-limit-credit-code-item.md new file mode 100644 index 0000000000..c65b5e90eb --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-credit-code-item.md @@ -0,0 +1,34 @@ +# appLimitCreditCodeItem + + + +Items within a credit code — each row grants credits for a specific limit definition + +## Usage + +```typescript +useAppLimitCreditCodeItemsQuery({ selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } } }) +useAppLimitCreditCodeItemQuery({ id: '', selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } } }) +useCreateAppLimitCreditCodeItemMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitCreditCodeItemMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitCreditCodeItemMutation({}) +``` + +## Examples + +### List all appLimitCreditCodeItems + +```typescript +const { data, isLoading } = useAppLimitCreditCodeItemsQuery({ + selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, +}); +``` + +### Create a appLimitCreditCodeItem + +```typescript +const { mutate } = useCreateAppLimitCreditCodeItemMutation({ + selection: { fields: { id: true } }, +}); +mutate({ creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-credit-code.md b/.agents/skills/hooks-usage/references/app-limit-credit-code.md new file mode 100644 index 0000000000..e2102ea5c1 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-credit-code.md @@ -0,0 +1,34 @@ +# appLimitCreditCode + + + +Redeemable credit codes managed by admins with the add_credits permission + +## Usage + +```typescript +useAppLimitCreditCodesQuery({ selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } } }) +useAppLimitCreditCodeQuery({ id: '', selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } } }) +useCreateAppLimitCreditCodeMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitCreditCodeMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitCreditCodeMutation({}) +``` + +## Examples + +### List all appLimitCreditCodes + +```typescript +const { data, isLoading } = useAppLimitCreditCodesQuery({ + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +}); +``` + +### Create a appLimitCreditCode + +```typescript +const { mutate } = useCreateAppLimitCreditCodeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-credit-redemption.md b/.agents/skills/hooks-usage/references/app-limit-credit-redemption.md new file mode 100644 index 0000000000..e0b0f3c740 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-credit-redemption.md @@ -0,0 +1,34 @@ +# appLimitCreditRedemption + + + +Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits + +## Usage + +```typescript +useAppLimitCreditRedemptionsQuery({ selection: { fields: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } } }) +useAppLimitCreditRedemptionQuery({ id: '', selection: { fields: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } } }) +useCreateAppLimitCreditRedemptionMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitCreditRedemptionMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitCreditRedemptionMutation({}) +``` + +## Examples + +### List all appLimitCreditRedemptions + +```typescript +const { data, isLoading } = useAppLimitCreditRedemptionsQuery({ + selection: { fields: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }, +}); +``` + +### Create a appLimitCreditRedemption + +```typescript +const { mutate } = useCreateAppLimitCreditRedemptionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ creditCodeId: '', entityId: '', organizationId: '', entityType: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-credit.md b/.agents/skills/hooks-usage/references/app-limit-credit.md new file mode 100644 index 0000000000..d37eb3fc36 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-credit.md @@ -0,0 +1,34 @@ +# appLimitCredit + + + +Append-only ledger of credit grants that automatically update limit ceilings + +## Usage + +```typescript +useAppLimitCreditsQuery({ selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } } }) +useAppLimitCreditQuery({ id: '', selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } } }) +useCreateAppLimitCreditMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitCreditMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitCreditMutation({}) +``` + +## Examples + +### List all appLimitCredits + +```typescript +const { data, isLoading } = useAppLimitCreditsQuery({ + selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, +}); +``` + +### Create a appLimitCredit + +```typescript +const { mutate } = useCreateAppLimitCreditMutation({ + selection: { fields: { id: true } }, +}); +mutate({ defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-default.md b/.agents/skills/hooks-usage/references/app-limit-default.md new file mode 100644 index 0000000000..da6f1b58c4 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-default.md @@ -0,0 +1,34 @@ +# appLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitDefaultMutation({}) +``` + +## Examples + +### List all appLimitDefaults + +```typescript +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, +}); +``` + +### Create a appLimitDefault + +```typescript +const { mutate } = useCreateAppLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '', softMax: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-event.md b/.agents/skills/hooks-usage/references/app-limit-event.md new file mode 100644 index 0000000000..e4f0d5f714 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-event.md @@ -0,0 +1,34 @@ +# appLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +useAppLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitEventMutation({}) +``` + +## Examples + +### List all appLimitEvents + +```typescript +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); +``` + +### Create a appLimitEvent + +```typescript +const { mutate } = useCreateAppLimitEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit-warning.md b/.agents/skills/hooks-usage/references/app-limit-warning.md new file mode 100644 index 0000000000..4524bde668 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit-warning.md @@ -0,0 +1,34 @@ +# appLimitWarning + + + +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. + +## Usage + +```typescript +useAppLimitWarningsQuery({ selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } } }) +useAppLimitWarningQuery({ id: '', selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } } }) +useCreateAppLimitWarningMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitWarningMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitWarningMutation({}) +``` + +## Examples + +### List all appLimitWarnings + +```typescript +const { data, isLoading } = useAppLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +}); +``` + +### Create a appLimitWarning + +```typescript +const { mutate } = useCreateAppLimitWarningMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/app-limit.md b/.agents/skills/hooks-usage/references/app-limit.md new file mode 100644 index 0000000000..8bf12e1969 --- /dev/null +++ b/.agents/skills/hooks-usage/references/app-limit.md @@ -0,0 +1,34 @@ +# appLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } } }) +useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } } }) +useCreateAppLimitMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitMutation({}) +``` + +## Examples + +### List all appLimits + +```typescript +const { data, isLoading } = useAppLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, +}); +``` + +### Create a appLimit + +```typescript +const { mutate } = useCreateAppLimitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit-aggregate.md b/.agents/skills/hooks-usage/references/org-limit-aggregate.md new file mode 100644 index 0000000000..b6393046ff --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit-aggregate.md @@ -0,0 +1,34 @@ +# orgLimitAggregate + + + +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + +## Usage + +```typescript +useOrgLimitAggregatesQuery({ selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } } }) +useOrgLimitAggregateQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } } }) +useCreateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitAggregateMutation({}) +``` + +## Examples + +### List all orgLimitAggregates + +```typescript +const { data, isLoading } = useOrgLimitAggregatesQuery({ + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, +}); +``` + +### Create a orgLimitAggregate + +```typescript +const { mutate } = useCreateOrgLimitAggregateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit-cap.md b/.agents/skills/hooks-usage/references/org-limit-cap.md new file mode 100644 index 0000000000..8ab258d56c --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit-cap.md @@ -0,0 +1,34 @@ +# orgLimitCap + + + +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. + +## Usage + +```typescript +useOrgLimitCapsQuery({ selection: { fields: { id: true, name: true, entityId: true, max: true } } }) +useOrgLimitCapQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, max: true } } }) +useCreateOrgLimitCapMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitCapMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitCapMutation({}) +``` + +## Examples + +### List all orgLimitCaps + +```typescript +const { data, isLoading } = useOrgLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); +``` + +### Create a orgLimitCap + +```typescript +const { mutate } = useCreateOrgLimitCapMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', entityId: '', max: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit-caps-default.md b/.agents/skills/hooks-usage/references/org-limit-caps-default.md new file mode 100644 index 0000000000..7c0a14b6da --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit-caps-default.md @@ -0,0 +1,34 @@ +# orgLimitCapsDefault + + + +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. + +## Usage + +```typescript +useOrgLimitCapsDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) +useOrgLimitCapsDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useCreateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitCapsDefaultMutation({}) +``` + +## Examples + +### List all orgLimitCapsDefaults + +```typescript +const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); +``` + +### Create a orgLimitCapsDefault + +```typescript +const { mutate } = useCreateOrgLimitCapsDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit-credit.md b/.agents/skills/hooks-usage/references/org-limit-credit.md new file mode 100644 index 0000000000..62cbf814d1 --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit-credit.md @@ -0,0 +1,34 @@ +# orgLimitCredit + + + +Append-only ledger of credit grants that automatically update limit ceilings + +## Usage + +```typescript +useOrgLimitCreditsQuery({ selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } } }) +useOrgLimitCreditQuery({ id: '', selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } } }) +useCreateOrgLimitCreditMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitCreditMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitCreditMutation({}) +``` + +## Examples + +### List all orgLimitCredits + +```typescript +const { data, isLoading } = useOrgLimitCreditsQuery({ + selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }, +}); +``` + +### Create a orgLimitCredit + +```typescript +const { mutate } = useCreateOrgLimitCreditMutation({ + selection: { fields: { id: true } }, +}); +mutate({ defaultLimitId: '', actorId: '', entityId: '', organizationId: '', entityType: '', amount: '', creditType: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit-default.md b/.agents/skills/hooks-usage/references/org-limit-default.md new file mode 100644 index 0000000000..343480af82 --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit-default.md @@ -0,0 +1,34 @@ +# orgLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitDefaultMutation({}) +``` + +## Examples + +### List all orgLimitDefaults + +```typescript +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, +}); +``` + +### Create a orgLimitDefault + +```typescript +const { mutate } = useCreateOrgLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', max: '', softMax: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit-event.md b/.agents/skills/hooks-usage/references/org-limit-event.md new file mode 100644 index 0000000000..2ac2bb1bd4 --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit-event.md @@ -0,0 +1,34 @@ +# orgLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +useOrgLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitEventMutation({}) +``` + +## Examples + +### List all orgLimitEvents + +```typescript +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); +``` + +### Create a orgLimitEvent + +```typescript +const { mutate } = useCreateOrgLimitEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit-warning.md b/.agents/skills/hooks-usage/references/org-limit-warning.md new file mode 100644 index 0000000000..da526e5870 --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit-warning.md @@ -0,0 +1,34 @@ +# orgLimitWarning + + + +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. + +## Usage + +```typescript +useOrgLimitWarningsQuery({ selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } } }) +useOrgLimitWarningQuery({ id: '', selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } } }) +useCreateOrgLimitWarningMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitWarningMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitWarningMutation({}) +``` + +## Examples + +### List all orgLimitWarnings + +```typescript +const { data, isLoading } = useOrgLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, +}); +``` + +### Create a orgLimitWarning + +```typescript +const { mutate } = useCreateOrgLimitWarningMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/org-limit.md b/.agents/skills/hooks-usage/references/org-limit.md new file mode 100644 index 0000000000..1fbfda8c71 --- /dev/null +++ b/.agents/skills/hooks-usage/references/org-limit.md @@ -0,0 +1,34 @@ +# orgLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } } }) +useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } } }) +useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitMutation({}) +``` + +## Examples + +### List all orgLimits + +```typescript +const { data, isLoading } = useOrgLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, +}); +``` + +### Create a orgLimit + +```typescript +const { mutate } = useCreateOrgLimitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }); +``` diff --git a/.agents/skills/hooks-usage/references/provision-bucket.md b/.agents/skills/hooks-usage/references/provision-bucket.md new file mode 100644 index 0000000000..e003fc5551 --- /dev/null +++ b/.agents/skills/hooks-usage/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-usage/references/seed-app-limit-caps-defaults.md b/.agents/skills/hooks-usage/references/seed-app-limit-caps-defaults.md new file mode 100644 index 0000000000..3124b30945 --- /dev/null +++ b/.agents/skills/hooks-usage/references/seed-app-limit-caps-defaults.md @@ -0,0 +1,20 @@ +# seedAppLimitCapsDefaults + + + +React Query mutation hook for seedAppLimitCapsDefaults + +## Usage + +```typescript +const { mutate } = useSeedAppLimitCapsDefaultsMutation(); mutate({ input: { defaults: '' } }); +``` + +## Examples + +### Use useSeedAppLimitCapsDefaultsMutation + +```typescript +const { mutate, isLoading } = useSeedAppLimitCapsDefaultsMutation(); +mutate({ input: { defaults: '' } }); +``` diff --git a/.agents/skills/hooks-usage/references/seed-app-limit-defaults.md b/.agents/skills/hooks-usage/references/seed-app-limit-defaults.md new file mode 100644 index 0000000000..531dcc5f5f --- /dev/null +++ b/.agents/skills/hooks-usage/references/seed-app-limit-defaults.md @@ -0,0 +1,20 @@ +# seedAppLimitDefaults + + + +React Query mutation hook for seedAppLimitDefaults + +## Usage + +```typescript +const { mutate } = useSeedAppLimitDefaultsMutation(); mutate({ input: { defaults: '' } }); +``` + +## Examples + +### Use useSeedAppLimitDefaultsMutation + +```typescript +const { mutate, isLoading } = useSeedAppLimitDefaultsMutation(); +mutate({ input: { defaults: '' } }); +``` diff --git a/.agents/skills/hooks-usage/references/seed-org-limit-caps-defaults.md b/.agents/skills/hooks-usage/references/seed-org-limit-caps-defaults.md new file mode 100644 index 0000000000..a9ea04df43 --- /dev/null +++ b/.agents/skills/hooks-usage/references/seed-org-limit-caps-defaults.md @@ -0,0 +1,20 @@ +# seedOrgLimitCapsDefaults + + + +React Query mutation hook for seedOrgLimitCapsDefaults + +## Usage + +```typescript +const { mutate } = useSeedOrgLimitCapsDefaultsMutation(); mutate({ input: { defaults: '' } }); +``` + +## Examples + +### Use useSeedOrgLimitCapsDefaultsMutation + +```typescript +const { mutate, isLoading } = useSeedOrgLimitCapsDefaultsMutation(); +mutate({ input: { defaults: '' } }); +``` diff --git a/.agents/skills/hooks-usage/references/seed-org-limit-defaults.md b/.agents/skills/hooks-usage/references/seed-org-limit-defaults.md new file mode 100644 index 0000000000..822f6249ef --- /dev/null +++ b/.agents/skills/hooks-usage/references/seed-org-limit-defaults.md @@ -0,0 +1,20 @@ +# seedOrgLimitDefaults + + + +React Query mutation hook for seedOrgLimitDefaults + +## Usage + +```typescript +const { mutate } = useSeedOrgLimitDefaultsMutation(); mutate({ input: { defaults: '' } }); +``` + +## Examples + +### Use useSeedOrgLimitDefaultsMutation + +```typescript +const { mutate, isLoading } = useSeedOrgLimitDefaultsMutation(); +mutate({ input: { defaults: '' } }); +``` diff --git a/.agents/skills/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index b54128f718..49d516efd0 100644 --- a/.agents/skills/orm-admin/SKILL.md +++ b/.agents/skills/orm-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-admin -description: ORM client for the admin API — provides typed CRUD operations for 44 tables and 12 custom operations +description: ORM client for the admin API — provides typed CRUD operations for 26 tables and 12 custom operations --- # orm-admin -ORM client for the admin API — provides typed CRUD operations for 44 tables and 12 custom operations +ORM client for the admin API — provides typed CRUD operations for 26 tables and 12 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the admin API — provides typed CRUD operations for 44 tables an // Import the ORM client import { db } from './orm'; -// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, appPermission, orgPermission, appLimitCreditRedemption, appLimitCreditCodeItem, appLimitCredit, orgMember, ... +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, appPermission, orgPermission, orgMember, appPermissionDefault, orgPermissionDefault, appAdminGrant, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -41,45 +41,27 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) -- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) -- [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) +- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) -- [org-permission-default](references/org-permission-default.md) -- [app-membership-default](references/app-membership-default.md) - [org-admin-grant](references/org-admin-grant.md) -- [org-membership-default](references/org-membership-default.md) - [org-owner-grant](references/org-owner-grant.md) -- [app-limit-caps-default](references/app-limit-caps-default.md) -- [org-limit-caps-default](references/org-limit-caps-default.md) -- [app-limit-cap](references/app-limit-cap.md) -- [org-limit-cap](references/org-limit-cap.md) -- [org-chart-edge](references/org-chart-edge.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [org-limit-credit](references/org-limit-credit.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [app-limit-warning](references/app-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) -- [org-limit-warning](references/org-limit-warning.md) - [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) - [org-grant](references/org-grant.md) +- [org-chart-edge](references/org-chart-edge.md) - [org-membership-setting](references/org-membership-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [app-membership](references/app-membership.md) +- [app-invite](references/app-invite.md) - [org-membership](references/org-membership.md) - [org-member-profile](references/org-member-profile.md) -- [app-invite](references/app-invite.md) -- [app-limit](references/app-limit.md) -- [org-limit-aggregate](references/org-limit-aggregate.md) -- [org-limit](references/org-limit.md) - [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) diff --git a/.agents/skills/orm-admin/references/membership-type.md b/.agents/skills/orm-admin/references/membership-type.md index d6d7e36a14..1e4ddaf310 100644 --- a/.agents/skills/orm-admin/references/membership-type.md +++ b/.agents/skills/orm-admin/references/membership-type.md @@ -9,7 +9,7 @@ Defines the different scopes of membership (e.g. App Member, Organization Member ```typescript db.membershipType.findMany({ select: { id: true } }).execute() db.membershipType.findOne({ id: '', select: { id: true } }).execute() -db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute() +db.membershipType.create({ data: { name: '', description: '', scope: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute() db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.membershipType.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.membershipType.findMany({ ```typescript const item = await db.membershipType.create({ - data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, + data: { name: '', description: '', scope: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/SKILL.md b/.agents/skills/orm-agent/SKILL.md new file mode 100644 index 0000000000..6754c33606 --- /dev/null +++ b/.agents/skills/orm-agent/SKILL.md @@ -0,0 +1,46 @@ +--- +name: orm-agent +description: ORM client for the agent API — provides typed CRUD operations for 6 tables and 1 custom operations +--- + +# orm-agent + + + +ORM client for the agent API — provides typed CRUD operations for 6 tables and 1 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: agentPlan, agentMessage, agentTask, agentThread, agentPrompt, agentSkill +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.agentPlan.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [agent-plan](references/agent-plan.md) +- [agent-message](references/agent-message.md) +- [agent-task](references/agent-task.md) +- [agent-thread](references/agent-thread.md) +- [agent-prompt](references/agent-prompt.md) +- [agent-skill](references/agent-skill.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-agent/references/agent-message.md b/.agents/skills/orm-agent/references/agent-message.md new file mode 100644 index 0000000000..0ed2dc2a7b --- /dev/null +++ b/.agents/skills/orm-agent/references/agent-message.md @@ -0,0 +1,34 @@ +# agentMessage + + + +Message within an agent thread with TextPart/ToolPart jsonb parts + +## Usage + +```typescript +db.agentMessage.findMany({ select: { id: true } }).execute() +db.agentMessage.findOne({ id: '', select: { id: true } }).execute() +db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute() +db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.agentMessage.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentMessage records + +```typescript +const items = await db.agentMessage.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a agentMessage + +```typescript +const item = await db.agentMessage.create({ + data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/agent-plan.md b/.agents/skills/orm-agent/references/agent-plan.md new file mode 100644 index 0000000000..d7e9a6bc49 --- /dev/null +++ b/.agents/skills/orm-agent/references/agent-plan.md @@ -0,0 +1,34 @@ +# agentPlan + + + +Workflow plan attached to an agent thread with ordered tasks and optional approval gates + +## Usage + +```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.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.agentPlan.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentPlan records + +```typescript +const items = await db.agentPlan.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a agentPlan + +```typescript +const item = await db.agentPlan.create({ + data: { ownerId: '', threadId: '', 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 new file mode 100644 index 0000000000..1b71c14b52 --- /dev/null +++ b/.agents/skills/orm-agent/references/agent-prompt.md @@ -0,0 +1,34 @@ +# agentPrompt + + + +Shared system prompt templates for agent conversations + +## Usage + +```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.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.agentPrompt.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentPrompt records + +```typescript +const items = await db.agentPrompt.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a agentPrompt + +```typescript +const item = await db.agentPrompt.create({ + data: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/agent-skill.md b/.agents/skills/orm-agent/references/agent-skill.md new file mode 100644 index 0000000000..7dc1a439db --- /dev/null +++ b/.agents/skills/orm-agent/references/agent-skill.md @@ -0,0 +1,40 @@ +# agentSkill + + + +Structured procedural instructions for agent workflows + +**pgvector embedding fields:** `embedding` +High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +**Unified Search API fields:** `search` +Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Usage + +```typescript +db.agentSkill.findMany({ select: { id: true } }).execute() +db.agentSkill.findOne({ id: '', select: { id: true } }).execute() +db.agentSkill.create({ data: { createdBy: '', updatedBy: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute() +db.agentSkill.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.agentSkill.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentSkill records + +```typescript +const items = await db.agentSkill.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a agentSkill + +```typescript +const item = await db.agentSkill.create({ + data: { createdBy: '', updatedBy: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', 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 new file mode 100644 index 0000000000..7a1aaf29cb --- /dev/null +++ b/.agents/skills/orm-agent/references/agent-task.md @@ -0,0 +1,34 @@ +# agentTask + + + +Task within a plan, with ordering and optional approval gates + +## Usage + +```typescript +db.agentTask.findMany({ select: { id: true } }).execute() +db.agentTask.findOne({ id: '', select: { id: true } }).execute() +db.agentTask.create({ data: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute() +db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.agentTask.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentTask records + +```typescript +const items = await db.agentTask.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a agentTask + +```typescript +const item = await db.agentTask.create({ + data: { ownerId: '', status: '', planId: '', 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 new file mode 100644 index 0000000000..67a0cd1357 --- /dev/null +++ b/.agents/skills/orm-agent/references/agent-thread.md @@ -0,0 +1,34 @@ +# agentThread + + + +Top-level AI/LLM conversation thread + +## Usage + +```typescript +db.agentThread.findMany({ select: { id: true } }).execute() +db.agentThread.findOne({ id: '', select: { id: true } }).execute() +db.agentThread.create({ data: { ownerId: '', status: '', title: '', mode: '', model: '', systemPrompt: '', promptTemplateId: '' }, select: { id: true } }).execute() +db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.agentThread.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentThread records + +```typescript +const items = await db.agentThread.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a agentThread + +```typescript +const item = await db.agentThread.create({ + data: { ownerId: '', status: '', title: '', mode: '', model: '', systemPrompt: '', promptTemplateId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/provision-bucket.md b/.agents/skills/orm-agent/references/provision-bucket.md new file mode 100644 index 0000000000..a9133530f2 --- /dev/null +++ b/.agents/skills/orm-agent/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-api/SKILL.md b/.agents/skills/orm-api/SKILL.md new file mode 100644 index 0000000000..35fe0dfd6f --- /dev/null +++ b/.agents/skills/orm-api/SKILL.md @@ -0,0 +1,94 @@ +--- +name: orm-api +description: ORM client for the api API — provides typed CRUD operations for 45 tables and 10 custom operations +--- + +# orm-api + + + +ORM client for the api API — provides typed CRUD operations for 45 tables and 10 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: function, schema, table, checkConstraint, field, spatialRelation, foreignKeyConstraint, fullTextSearch, ... +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.function.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [function](references/function.md) +- [schema](references/schema.md) +- [table](references/table.md) +- [check-constraint](references/check-constraint.md) +- [field](references/field.md) +- [spatial-relation](references/spatial-relation.md) +- [foreign-key-constraint](references/foreign-key-constraint.md) +- [full-text-search](references/full-text-search.md) +- [index](references/index.md) +- [policy](references/policy.md) +- [primary-key-constraint](references/primary-key-constraint.md) +- [table-grant](references/table-grant.md) +- [trigger](references/trigger.md) +- [unique-constraint](references/unique-constraint.md) +- [view](references/view.md) +- [view-table](references/view-table.md) +- [view-grant](references/view-grant.md) +- [view-rule](references/view-rule.md) +- [embedding-chunk](references/embedding-chunk.md) +- [schema-grant](references/schema-grant.md) +- [default-privilege](references/default-privilege.md) +- [enum](references/enum.md) +- [api-schema](references/api-schema.md) +- [api-module](references/api-module.md) +- [domain](references/domain.md) +- [site-metadatum](references/site-metadatum.md) +- [site-module](references/site-module.md) +- [site-theme](references/site-theme.md) +- [cors-setting](references/cors-setting.md) +- [trigger-function](references/trigger-function.md) +- [partition](references/partition.md) +- [database-transfer](references/database-transfer.md) +- [api](references/api.md) +- [site](references/site.md) +- [app](references/app.md) +- [api-setting](references/api-setting.md) +- [migrate-file](references/migrate-file.md) +- [node-type-registry](references/node-type-registry.md) +- [pubkey-setting](references/pubkey-setting.md) +- [database](references/database.md) +- [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) +- [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) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-api/references/accept-database-transfer.md b/.agents/skills/orm-api/references/accept-database-transfer.md new file mode 100644 index 0000000000..402b8961ef --- /dev/null +++ b/.agents/skills/orm-api/references/accept-database-transfer.md @@ -0,0 +1,19 @@ +# acceptDatabaseTransfer + + + +Execute the acceptDatabaseTransfer mutation + +## Usage + +```typescript +db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute() +``` + +## Examples + +### Run acceptDatabaseTransfer + +```typescript +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/api-module.md b/.agents/skills/orm-api/references/api-module.md new file mode 100644 index 0000000000..8b36f45e24 --- /dev/null +++ b/.agents/skills/orm-api/references/api-module.md @@ -0,0 +1,34 @@ +# apiModule + + + +Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server + +## Usage + +```typescript +db.apiModule.findMany({ select: { id: true } }).execute() +db.apiModule.findOne({ id: '', select: { id: true } }).execute() +db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute() +db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.apiModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all apiModule records + +```typescript +const items = await db.apiModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a apiModule + +```typescript +const item = await db.apiModule.create({ + data: { databaseId: '', apiId: '', name: '', data: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/api-schema.md b/.agents/skills/orm-api/references/api-schema.md new file mode 100644 index 0000000000..2dff837634 --- /dev/null +++ b/.agents/skills/orm-api/references/api-schema.md @@ -0,0 +1,34 @@ +# apiSchema + + + +Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API + +## Usage + +```typescript +db.apiSchema.findMany({ select: { id: true } }).execute() +db.apiSchema.findOne({ id: '', select: { id: true } }).execute() +db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute() +db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.apiSchema.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all apiSchema records + +```typescript +const items = await db.apiSchema.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a apiSchema + +```typescript +const item = await db.apiSchema.create({ + data: { databaseId: '', schemaId: '', apiId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/api-setting.md b/.agents/skills/orm-api/references/api-setting.md new file mode 100644 index 0000000000..c3cc2d5915 --- /dev/null +++ b/.agents/skills/orm-api/references/api-setting.md @@ -0,0 +1,34 @@ +# apiSetting + + + +Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default + +## Usage + +```typescript +db.apiSetting.findMany({ select: { id: true } }).execute() +db.apiSetting.findOne({ id: '', select: { id: true } }).execute() +db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute() +db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.apiSetting.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all apiSetting records + +```typescript +const items = await db.apiSetting.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a apiSetting + +```typescript +const item = await db.apiSetting.create({ + data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/api.md b/.agents/skills/orm-api/references/api.md new file mode 100644 index 0000000000..c0e13cf3e9 --- /dev/null +++ b/.agents/skills/orm-api/references/api.md @@ -0,0 +1,34 @@ +# api + + + +API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings + +## Usage + +```typescript +db.api.findMany({ select: { id: true } }).execute() +db.api.findOne({ id: '', select: { id: true } }).execute() +db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute() +db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.api.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all api records + +```typescript +const items = await db.api.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a api + +```typescript +const item = await db.api.create({ + data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/app.md b/.agents/skills/orm-api/references/app.md new file mode 100644 index 0000000000..6c3685651d --- /dev/null +++ b/.agents/skills/orm-api/references/app.md @@ -0,0 +1,34 @@ +# app + + + +Mobile and native app configuration linked to a site, including store links and identifiers + +## Usage + +```typescript +db.app.findMany({ select: { id: true } }).execute() +db.app.findOne({ id: '', select: { id: true } }).execute() +db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute() +db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.app.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all app records + +```typescript +const items = await db.app.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a app + +```typescript +const item = await db.app.create({ + data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/apply-registry-defaults.md b/.agents/skills/orm-api/references/apply-registry-defaults.md new file mode 100644 index 0000000000..b090f3fe9a --- /dev/null +++ b/.agents/skills/orm-api/references/apply-registry-defaults.md @@ -0,0 +1,19 @@ +# applyRegistryDefaults + + + +Execute the applyRegistryDefaults query + +## Usage + +```typescript +db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute() +``` + +## Examples + +### Run applyRegistryDefaults + +```typescript +const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/apply-rls.md b/.agents/skills/orm-api/references/apply-rls.md new file mode 100644 index 0000000000..e87f1b898f --- /dev/null +++ b/.agents/skills/orm-api/references/apply-rls.md @@ -0,0 +1,19 @@ +# applyRls + + + +Execute the applyRls mutation + +## Usage + +```typescript +db.mutation.applyRls({ input: '' }).execute() +``` + +## Examples + +### Run applyRls + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/ast-migration.md b/.agents/skills/orm-api/references/ast-migration.md new file mode 100644 index 0000000000..e672e5a347 --- /dev/null +++ b/.agents/skills/orm-api/references/ast-migration.md @@ -0,0 +1,34 @@ +# astMigration + + + +ORM operations for AstMigration records + +## Usage + +```typescript +db.astMigration.findMany({ select: { id: true } }).execute() +db.astMigration.findOne({ id: '', select: { id: true } }).execute() +db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() +db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.astMigration.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all astMigration records + +```typescript +const items = await db.astMigration.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a astMigration + +```typescript +const item = await db.astMigration.create({ + data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/bootstrap-user.md b/.agents/skills/orm-api/references/bootstrap-user.md new file mode 100644 index 0000000000..dc3b925815 --- /dev/null +++ b/.agents/skills/orm-api/references/bootstrap-user.md @@ -0,0 +1,19 @@ +# bootstrapUser + + + +Execute the bootstrapUser mutation + +## Usage + +```typescript +db.mutation.bootstrapUser({ input: '' }).execute() +``` + +## Examples + +### Run bootstrapUser + +```typescript +const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/cancel-database-transfer.md b/.agents/skills/orm-api/references/cancel-database-transfer.md new file mode 100644 index 0000000000..7ec716b88a --- /dev/null +++ b/.agents/skills/orm-api/references/cancel-database-transfer.md @@ -0,0 +1,19 @@ +# cancelDatabaseTransfer + + + +Execute the cancelDatabaseTransfer mutation + +## Usage + +```typescript +db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute() +``` + +## Examples + +### Run cancelDatabaseTransfer + +```typescript +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/check-constraint.md b/.agents/skills/orm-api/references/check-constraint.md new file mode 100644 index 0000000000..c00c7ff287 --- /dev/null +++ b/.agents/skills/orm-api/references/check-constraint.md @@ -0,0 +1,34 @@ +# checkConstraint + + + +ORM operations for CheckConstraint records + +## Usage + +```typescript +db.checkConstraint.findMany({ select: { id: true } }).execute() +db.checkConstraint.findOne({ id: '', select: { id: true } }).execute() +db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.checkConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all checkConstraint records + +```typescript +const items = await db.checkConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a checkConstraint + +```typescript +const item = await db.checkConstraint.create({ + data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/cors-setting.md b/.agents/skills/orm-api/references/cors-setting.md new file mode 100644 index 0000000000..780cbf6938 --- /dev/null +++ b/.agents/skills/orm-api/references/cors-setting.md @@ -0,0 +1,34 @@ +# corsSetting + + + +Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries + +## Usage + +```typescript +db.corsSetting.findMany({ select: { id: true } }).execute() +db.corsSetting.findOne({ id: '', select: { id: true } }).execute() +db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute() +db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.corsSetting.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all corsSetting records + +```typescript +const items = await db.corsSetting.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a corsSetting + +```typescript +const item = await db.corsSetting.create({ + data: { databaseId: '', apiId: '', allowedOrigins: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/create-user-database.md b/.agents/skills/orm-api/references/create-user-database.md new file mode 100644 index 0000000000..e5fad5cf5b --- /dev/null +++ b/.agents/skills/orm-api/references/create-user-database.md @@ -0,0 +1,35 @@ +# 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) + +Returns the database_id UUID of the newly created database. + +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 + + +## Usage + +```typescript +db.mutation.createUserDatabase({ input: '' }).execute() +``` + +## Examples + +### Run createUserDatabase + +```typescript +const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/database-setting.md b/.agents/skills/orm-api/references/database-setting.md new file mode 100644 index 0000000000..b2faba9911 --- /dev/null +++ b/.agents/skills/orm-api/references/database-setting.md @@ -0,0 +1,34 @@ +# databaseSetting + + + +Database-wide feature flags and settings; controls which platform features are available to all APIs in this database + +## Usage + +```typescript +db.databaseSetting.findMany({ select: { id: true } }).execute() +db.databaseSetting.findOne({ id: '', select: { id: true } }).execute() +db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute() +db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.databaseSetting.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseSetting records + +```typescript +const items = await db.databaseSetting.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a databaseSetting + +```typescript +const item = await db.databaseSetting.create({ + data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/database-transfer.md b/.agents/skills/orm-api/references/database-transfer.md new file mode 100644 index 0000000000..360741e0bb --- /dev/null +++ b/.agents/skills/orm-api/references/database-transfer.md @@ -0,0 +1,34 @@ +# databaseTransfer + + + +ORM operations for DatabaseTransfer records + +## Usage + +```typescript +db.databaseTransfer.findMany({ select: { id: true } }).execute() +db.databaseTransfer.findOne({ id: '', select: { id: true } }).execute() +db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute() +db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.databaseTransfer.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseTransfer records + +```typescript +const items = await db.databaseTransfer.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a databaseTransfer + +```typescript +const item = await db.databaseTransfer.create({ + data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/database.md b/.agents/skills/orm-api/references/database.md new file mode 100644 index 0000000000..a225f1def2 --- /dev/null +++ b/.agents/skills/orm-api/references/database.md @@ -0,0 +1,34 @@ +# database + + + +ORM operations for Database records + +## Usage + +```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.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.database.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all database records + +```typescript +const items = await db.database.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a database + +```typescript +const item = await db.database.create({ + data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/default-privilege.md b/.agents/skills/orm-api/references/default-privilege.md new file mode 100644 index 0000000000..bfd0e41ead --- /dev/null +++ b/.agents/skills/orm-api/references/default-privilege.md @@ -0,0 +1,34 @@ +# defaultPrivilege + + + +ORM operations for DefaultPrivilege records + +## Usage + +```typescript +db.defaultPrivilege.findMany({ select: { id: true } }).execute() +db.defaultPrivilege.findOne({ id: '', select: { id: true } }).execute() +db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute() +db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultPrivilege.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all defaultPrivilege records + +```typescript +const items = await db.defaultPrivilege.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a defaultPrivilege + +```typescript +const item = await db.defaultPrivilege.create({ + data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/domain.md b/.agents/skills/orm-api/references/domain.md new file mode 100644 index 0000000000..9f1dae6abd --- /dev/null +++ b/.agents/skills/orm-api/references/domain.md @@ -0,0 +1,34 @@ +# domain + + + +DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site + +## Usage + +```typescript +db.domain.findMany({ select: { id: true } }).execute() +db.domain.findOne({ id: '', select: { id: true } }).execute() +db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute() +db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.domain.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all domain records + +```typescript +const items = await db.domain.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a domain + +```typescript +const item = await db.domain.create({ + data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/embedding-chunk.md b/.agents/skills/orm-api/references/embedding-chunk.md new file mode 100644 index 0000000000..45edf9c068 --- /dev/null +++ b/.agents/skills/orm-api/references/embedding-chunk.md @@ -0,0 +1,34 @@ +# embeddingChunk + + + +ORM operations for EmbeddingChunk records + +## Usage + +```typescript +db.embeddingChunk.findMany({ select: { id: true } }).execute() +db.embeddingChunk.findOne({ id: '', select: { id: true } }).execute() +db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute() +db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.embeddingChunk.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all embeddingChunk records + +```typescript +const items = await db.embeddingChunk.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a embeddingChunk + +```typescript +const item = await db.embeddingChunk.create({ + data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/enum.md b/.agents/skills/orm-api/references/enum.md new file mode 100644 index 0000000000..a7a06ae94a --- /dev/null +++ b/.agents/skills/orm-api/references/enum.md @@ -0,0 +1,34 @@ +# enum + + + +ORM operations for Enum records + +## Usage + +```typescript +db.enum.findMany({ select: { id: true } }).execute() +db.enum.findOne({ id: '', select: { id: true } }).execute() +db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.enum.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all enum records + +```typescript +const items = await db.enum.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a enum + +```typescript +const item = await db.enum.create({ + data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/field.md b/.agents/skills/orm-api/references/field.md new file mode 100644 index 0000000000..e9f555e20b --- /dev/null +++ b/.agents/skills/orm-api/references/field.md @@ -0,0 +1,34 @@ +# field + + + +ORM operations for Field records + +## Usage + +```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: '', module: '', scope: '' }, select: { id: true } }).execute() +db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.field.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all field records + +```typescript +const items = await db.field.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a field + +```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: '', module: '', scope: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/foreign-key-constraint.md b/.agents/skills/orm-api/references/foreign-key-constraint.md new file mode 100644 index 0000000000..213fb4e273 --- /dev/null +++ b/.agents/skills/orm-api/references/foreign-key-constraint.md @@ -0,0 +1,34 @@ +# foreignKeyConstraint + + + +ORM operations for ForeignKeyConstraint records + +## Usage + +```typescript +db.foreignKeyConstraint.findMany({ select: { id: true } }).execute() +db.foreignKeyConstraint.findOne({ id: '', select: { id: true } }).execute() +db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all foreignKeyConstraint records + +```typescript +const items = await db.foreignKeyConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a foreignKeyConstraint + +```typescript +const item = await db.foreignKeyConstraint.create({ + data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/full-text-search.md b/.agents/skills/orm-api/references/full-text-search.md new file mode 100644 index 0000000000..c82122f1bf --- /dev/null +++ b/.agents/skills/orm-api/references/full-text-search.md @@ -0,0 +1,34 @@ +# fullTextSearch + + + +ORM operations for FullTextSearch records + +## Usage + +```typescript +db.fullTextSearch.findMany({ select: { id: true } }).execute() +db.fullTextSearch.findOne({ id: '', select: { id: true } }).execute() +db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '', langColumn: '' }, select: { id: true } }).execute() +db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.fullTextSearch.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all fullTextSearch records + +```typescript +const items = await db.fullTextSearch.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a fullTextSearch + +```typescript +const item = await db.fullTextSearch.create({ + data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '', langColumn: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/function.md b/.agents/skills/orm-api/references/function.md new file mode 100644 index 0000000000..0e7ffbf59d --- /dev/null +++ b/.agents/skills/orm-api/references/function.md @@ -0,0 +1,34 @@ +# function + + + +ORM operations for Function records + +## Usage + +```typescript +db.function.findMany({ select: { id: true } }).execute() +db.function.findOne({ id: '', select: { id: true } }).execute() +db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute() +db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.function.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all function records + +```typescript +const items = await db.function.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a function + +```typescript +const item = await db.function.create({ + data: { databaseId: '', schemaId: '', name: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/index.md b/.agents/skills/orm-api/references/index.md new file mode 100644 index 0000000000..f996b32ae4 --- /dev/null +++ b/.agents/skills/orm-api/references/index.md @@ -0,0 +1,34 @@ +# index + + + +ORM operations for Index records + +## Usage + +```typescript +db.index.findMany({ select: { id: true } }).execute() +db.index.findOne({ id: '', select: { id: true } }).execute() +db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.index.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all index records + +```typescript +const items = await db.index.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a index + +```typescript +const item = await db.index.create({ + data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/migrate-file.md b/.agents/skills/orm-api/references/migrate-file.md new file mode 100644 index 0000000000..621ea5e796 --- /dev/null +++ b/.agents/skills/orm-api/references/migrate-file.md @@ -0,0 +1,34 @@ +# migrateFile + + + +ORM operations for MigrateFile records + +## Usage + +```typescript +db.migrateFile.findMany({ select: { id: true } }).execute() +db.migrateFile.findOne({ id: '', select: { id: true } }).execute() +db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute() +db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.migrateFile.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all migrateFile records + +```typescript +const items = await db.migrateFile.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a migrateFile + +```typescript +const item = await db.migrateFile.create({ + data: { databaseId: '', upload: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/node-type-registry.md b/.agents/skills/orm-api/references/node-type-registry.md new file mode 100644 index 0000000000..2c5dff04d0 --- /dev/null +++ b/.agents/skills/orm-api/references/node-type-registry.md @@ -0,0 +1,34 @@ +# nodeTypeRegistry + + + +ORM operations for NodeTypeRegistry records + +## Usage + +```typescript +db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() +db.nodeTypeRegistry.findOne({ name: '', select: { id: true } }).execute() +db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() +``` + +## Examples + +### List all nodeTypeRegistry records + +```typescript +const items = await db.nodeTypeRegistry.findMany({ + select: { name: true, slug: true } +}).execute(); +``` + +### Create a nodeTypeRegistry + +```typescript +const item = await db.nodeTypeRegistry.create({ + data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, + select: { name: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/partition.md b/.agents/skills/orm-api/references/partition.md new file mode 100644 index 0000000000..ae1962e6c9 --- /dev/null +++ b/.agents/skills/orm-api/references/partition.md @@ -0,0 +1,34 @@ +# partition + + + +ORM operations for Partition records + +## Usage + +```typescript +db.partition.findMany({ select: { id: true } }).execute() +db.partition.findOne({ id: '', select: { id: true } }).execute() +db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute() +db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.partition.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all partition records + +```typescript +const items = await db.partition.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a partition + +```typescript +const item = await db.partition.create({ + data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/policy.md b/.agents/skills/orm-api/references/policy.md new file mode 100644 index 0000000000..a96ff2dc53 --- /dev/null +++ b/.agents/skills/orm-api/references/policy.md @@ -0,0 +1,34 @@ +# policy + + + +ORM operations for Policy records + +## Usage + +```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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.policy.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all policy records + +```typescript +const items = await db.policy.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a policy + +```typescript +const item = await db.policy.create({ + data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/primary-key-constraint.md b/.agents/skills/orm-api/references/primary-key-constraint.md new file mode 100644 index 0000000000..a8036ef905 --- /dev/null +++ b/.agents/skills/orm-api/references/primary-key-constraint.md @@ -0,0 +1,34 @@ +# primaryKeyConstraint + + + +ORM operations for PrimaryKeyConstraint records + +## Usage + +```typescript +db.primaryKeyConstraint.findMany({ select: { id: true } }).execute() +db.primaryKeyConstraint.findOne({ id: '', select: { id: true } }).execute() +db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all primaryKeyConstraint records + +```typescript +const items = await db.primaryKeyConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a primaryKeyConstraint + +```typescript +const item = await db.primaryKeyConstraint.create({ + data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/provision-bucket.md b/.agents/skills/orm-api/references/provision-bucket.md new file mode 100644 index 0000000000..a9133530f2 --- /dev/null +++ b/.agents/skills/orm-api/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-api/references/provision-database-with-user.md b/.agents/skills/orm-api/references/provision-database-with-user.md new file mode 100644 index 0000000000..a2684af9ae --- /dev/null +++ b/.agents/skills/orm-api/references/provision-database-with-user.md @@ -0,0 +1,19 @@ +# provisionDatabaseWithUser + + + +Execute the provisionDatabaseWithUser mutation + +## Usage + +```typescript +db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute() +``` + +## Examples + +### Run provisionDatabaseWithUser + +```typescript +const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/pubkey-setting.md b/.agents/skills/orm-api/references/pubkey-setting.md new file mode 100644 index 0000000000..27069a4617 --- /dev/null +++ b/.agents/skills/orm-api/references/pubkey-setting.md @@ -0,0 +1,34 @@ +# pubkeySetting + + + +Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries + +## Usage + +```typescript +db.pubkeySetting.findMany({ select: { id: true } }).execute() +db.pubkeySetting.findOne({ id: '', select: { id: true } }).execute() +db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute() +db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.pubkeySetting.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all pubkeySetting records + +```typescript +const items = await db.pubkeySetting.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a pubkeySetting + +```typescript +const item = await db.pubkeySetting.create({ + data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/reject-database-transfer.md b/.agents/skills/orm-api/references/reject-database-transfer.md new file mode 100644 index 0000000000..a4e8548411 --- /dev/null +++ b/.agents/skills/orm-api/references/reject-database-transfer.md @@ -0,0 +1,19 @@ +# rejectDatabaseTransfer + + + +Execute the rejectDatabaseTransfer mutation + +## Usage + +```typescript +db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute() +``` + +## Examples + +### Run rejectDatabaseTransfer + +```typescript +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/rls-setting.md b/.agents/skills/orm-api/references/rls-setting.md new file mode 100644 index 0000000000..deb6e1b174 --- /dev/null +++ b/.agents/skills/orm-api/references/rls-setting.md @@ -0,0 +1,34 @@ +# rlsSetting + + + +Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries + +## Usage + +```typescript +db.rlsSetting.findMany({ select: { id: true } }).execute() +db.rlsSetting.findOne({ id: '', select: { id: true } }).execute() +db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute() +db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.rlsSetting.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all rlsSetting records + +```typescript +const items = await db.rlsSetting.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a rlsSetting + +```typescript +const item = await db.rlsSetting.create({ + data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/schema-grant.md b/.agents/skills/orm-api/references/schema-grant.md new file mode 100644 index 0000000000..c13416b524 --- /dev/null +++ b/.agents/skills/orm-api/references/schema-grant.md @@ -0,0 +1,34 @@ +# schemaGrant + + + +ORM operations for SchemaGrant records + +## Usage + +```typescript +db.schemaGrant.findMany({ select: { id: true } }).execute() +db.schemaGrant.findOne({ id: '', select: { id: true } }).execute() +db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute() +db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.schemaGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all schemaGrant records + +```typescript +const items = await db.schemaGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a schemaGrant + +```typescript +const item = await db.schemaGrant.create({ + data: { databaseId: '', schemaId: '', granteeName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/schema.md b/.agents/skills/orm-api/references/schema.md new file mode 100644 index 0000000000..e028a6438f --- /dev/null +++ b/.agents/skills/orm-api/references/schema.md @@ -0,0 +1,34 @@ +# schema + + + +ORM operations for Schema records + +## Usage + +```typescript +db.schema.findMany({ select: { id: true } }).execute() +db.schema.findOne({ id: '', select: { id: true } }).execute() +db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() +db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.schema.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all schema records + +```typescript +const items = await db.schema.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a schema + +```typescript +const item = await db.schema.create({ + data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/set-field-order.md b/.agents/skills/orm-api/references/set-field-order.md new file mode 100644 index 0000000000..a210bff170 --- /dev/null +++ b/.agents/skills/orm-api/references/set-field-order.md @@ -0,0 +1,19 @@ +# setFieldOrder + + + +Execute the setFieldOrder mutation + +## Usage + +```typescript +db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute() +``` + +## Examples + +### Run setFieldOrder + +```typescript +const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); +``` diff --git a/.agents/skills/orm-api/references/site-metadatum.md b/.agents/skills/orm-api/references/site-metadatum.md new file mode 100644 index 0000000000..90648b34a9 --- /dev/null +++ b/.agents/skills/orm-api/references/site-metadatum.md @@ -0,0 +1,34 @@ +# siteMetadatum + + + +SEO and social sharing metadata for a site: page title, description, and Open Graph image + +## Usage + +```typescript +db.siteMetadatum.findMany({ select: { id: true } }).execute() +db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() +db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute() +db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteMetadatum.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteMetadatum records + +```typescript +const items = await db.siteMetadatum.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteMetadatum + +```typescript +const item = await db.siteMetadatum.create({ + data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/site-module.md b/.agents/skills/orm-api/references/site-module.md new file mode 100644 index 0000000000..a55da11dfb --- /dev/null +++ b/.agents/skills/orm-api/references/site-module.md @@ -0,0 +1,34 @@ +# siteModule + + + +Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site + +## Usage + +```typescript +db.siteModule.findMany({ select: { id: true } }).execute() +db.siteModule.findOne({ id: '', select: { id: true } }).execute() +db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute() +db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteModule records + +```typescript +const items = await db.siteModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteModule + +```typescript +const item = await db.siteModule.create({ + data: { databaseId: '', siteId: '', name: '', data: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/site-theme.md b/.agents/skills/orm-api/references/site-theme.md new file mode 100644 index 0000000000..7d9777c6cf --- /dev/null +++ b/.agents/skills/orm-api/references/site-theme.md @@ -0,0 +1,34 @@ +# siteTheme + + + +Theme configuration for a site; stores design tokens, colors, and typography as JSONB + +## Usage + +```typescript +db.siteTheme.findMany({ select: { id: true } }).execute() +db.siteTheme.findOne({ id: '', select: { id: true } }).execute() +db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute() +db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteTheme.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteTheme records + +```typescript +const items = await db.siteTheme.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteTheme + +```typescript +const item = await db.siteTheme.create({ + data: { databaseId: '', siteId: '', theme: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/site.md b/.agents/skills/orm-api/references/site.md new file mode 100644 index 0000000000..80a999a93a --- /dev/null +++ b/.agents/skills/orm-api/references/site.md @@ -0,0 +1,34 @@ +# site + + + +Top-level site configuration: branding assets, title, and description for a deployed application + +## Usage + +```typescript +db.site.findMany({ select: { id: true } }).execute() +db.site.findOne({ id: '', select: { id: true } }).execute() +db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute() +db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.site.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all site records + +```typescript +const items = await db.site.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a site + +```typescript +const item = await db.site.create({ + data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/spatial-relation.md b/.agents/skills/orm-api/references/spatial-relation.md new file mode 100644 index 0000000000..c0094eb821 --- /dev/null +++ b/.agents/skills/orm-api/references/spatial-relation.md @@ -0,0 +1,34 @@ +# spatialRelation + + + +ORM operations for SpatialRelation records + +## Usage + +```typescript +db.spatialRelation.findMany({ select: { id: true } }).execute() +db.spatialRelation.findOne({ id: '', select: { id: true } }).execute() +db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.spatialRelation.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all spatialRelation records + +```typescript +const items = await db.spatialRelation.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a spatialRelation + +```typescript +const item = await db.spatialRelation.create({ + data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/sql-action.md b/.agents/skills/orm-api/references/sql-action.md new file mode 100644 index 0000000000..856968aa22 --- /dev/null +++ b/.agents/skills/orm-api/references/sql-action.md @@ -0,0 +1,34 @@ +# sqlAction + + + +ORM operations for SqlAction records + +## Usage + +```typescript +db.sqlAction.findMany({ select: { id: true } }).execute() +db.sqlAction.findOne({ id: '', select: { id: true } }).execute() +db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() +db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.sqlAction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all sqlAction records + +```typescript +const items = await db.sqlAction.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a sqlAction + +```typescript +const item = await db.sqlAction.create({ + data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/table-grant.md b/.agents/skills/orm-api/references/table-grant.md new file mode 100644 index 0000000000..a312157df1 --- /dev/null +++ b/.agents/skills/orm-api/references/table-grant.md @@ -0,0 +1,34 @@ +# tableGrant + + + +ORM operations for TableGrant records + +## Usage + +```typescript +db.tableGrant.findMany({ select: { id: true } }).execute() +db.tableGrant.findOne({ id: '', select: { id: true } }).execute() +db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute() +db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.tableGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all tableGrant records + +```typescript +const items = await db.tableGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a tableGrant + +```typescript +const item = await db.tableGrant.create({ + data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/table.md b/.agents/skills/orm-api/references/table.md new file mode 100644 index 0000000000..e10c909b0d --- /dev/null +++ b/.agents/skills/orm-api/references/table.md @@ -0,0 +1,34 @@ +# table + + + +ORM operations for Table records + +## Usage + +```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: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', 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() +``` + +## Examples + +### List all table records + +```typescript +const items = await db.table.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a table + +```typescript +const item = await db.table.create({ + data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/trigger-function.md b/.agents/skills/orm-api/references/trigger-function.md new file mode 100644 index 0000000000..4cef6f445b --- /dev/null +++ b/.agents/skills/orm-api/references/trigger-function.md @@ -0,0 +1,34 @@ +# triggerFunction + + + +ORM operations for TriggerFunction records + +## Usage + +```typescript +db.triggerFunction.findMany({ select: { id: true } }).execute() +db.triggerFunction.findOne({ id: '', select: { id: true } }).execute() +db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute() +db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.triggerFunction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all triggerFunction records + +```typescript +const items = await db.triggerFunction.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a triggerFunction + +```typescript +const item = await db.triggerFunction.create({ + data: { databaseId: '', name: '', code: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/trigger.md b/.agents/skills/orm-api/references/trigger.md new file mode 100644 index 0000000000..ed25868a14 --- /dev/null +++ b/.agents/skills/orm-api/references/trigger.md @@ -0,0 +1,34 @@ +# trigger + + + +ORM operations for Trigger records + +## Usage + +```typescript +db.trigger.findMany({ select: { id: true } }).execute() +db.trigger.findOne({ id: '', select: { id: true } }).execute() +db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.trigger.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all trigger records + +```typescript +const items = await db.trigger.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a trigger + +```typescript +const item = await db.trigger.create({ + data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/unique-constraint.md b/.agents/skills/orm-api/references/unique-constraint.md new file mode 100644 index 0000000000..3202c59c00 --- /dev/null +++ b/.agents/skills/orm-api/references/unique-constraint.md @@ -0,0 +1,34 @@ +# uniqueConstraint + + + +ORM operations for UniqueConstraint records + +## Usage + +```typescript +db.uniqueConstraint.findMany({ select: { id: true } }).execute() +db.uniqueConstraint.findOne({ id: '', select: { id: true } }).execute() +db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.uniqueConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all uniqueConstraint records + +```typescript +const items = await db.uniqueConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a uniqueConstraint + +```typescript +const item = await db.uniqueConstraint.create({ + data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/view-grant.md b/.agents/skills/orm-api/references/view-grant.md new file mode 100644 index 0000000000..dd146a26d8 --- /dev/null +++ b/.agents/skills/orm-api/references/view-grant.md @@ -0,0 +1,34 @@ +# viewGrant + + + +ORM operations for ViewGrant records + +## Usage + +```typescript +db.viewGrant.findMany({ select: { id: true } }).execute() +db.viewGrant.findOne({ id: '', select: { id: true } }).execute() +db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute() +db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.viewGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewGrant records + +```typescript +const items = await db.viewGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a viewGrant + +```typescript +const item = await db.viewGrant.create({ + data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/view-rule.md b/.agents/skills/orm-api/references/view-rule.md new file mode 100644 index 0000000000..4f35c87d46 --- /dev/null +++ b/.agents/skills/orm-api/references/view-rule.md @@ -0,0 +1,34 @@ +# viewRule + + + +DO INSTEAD rules for views (e.g., read-only enforcement) + +## Usage + +```typescript +db.viewRule.findMany({ select: { id: true } }).execute() +db.viewRule.findOne({ id: '', select: { id: true } }).execute() +db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute() +db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.viewRule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewRule records + +```typescript +const items = await db.viewRule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a viewRule + +```typescript +const item = await db.viewRule.create({ + data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/view-table.md b/.agents/skills/orm-api/references/view-table.md new file mode 100644 index 0000000000..cc8dc554c9 --- /dev/null +++ b/.agents/skills/orm-api/references/view-table.md @@ -0,0 +1,34 @@ +# viewTable + + + +Junction table linking views to their joined tables for referential integrity + +## Usage + +```typescript +db.viewTable.findMany({ select: { id: true } }).execute() +db.viewTable.findOne({ id: '', select: { id: true } }).execute() +db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute() +db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute() +db.viewTable.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewTable records + +```typescript +const items = await db.viewTable.findMany({ + select: { id: true, viewId: true } +}).execute(); +``` + +### Create a viewTable + +```typescript +const item = await db.viewTable.create({ + data: { viewId: '', tableId: '', joinOrder: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/view.md b/.agents/skills/orm-api/references/view.md new file mode 100644 index 0000000000..d68d36500a --- /dev/null +++ b/.agents/skills/orm-api/references/view.md @@ -0,0 +1,34 @@ +# view + + + +ORM operations for View records + +## Usage + +```typescript +db.view.findMany({ select: { id: true } }).execute() +db.view.findOne({ id: '', select: { id: true } }).execute() +db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.view.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all view records + +```typescript +const items = await db.view.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a view + +```typescript +const item = await db.view.create({ + data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/webauthn-setting.md b/.agents/skills/orm-api/references/webauthn-setting.md new file mode 100644 index 0000000000..9464fed54e --- /dev/null +++ b/.agents/skills/orm-api/references/webauthn-setting.md @@ -0,0 +1,34 @@ +# webauthnSetting + + + +Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries + +## Usage + +```typescript +db.webauthnSetting.findMany({ select: { id: true } }).execute() +db.webauthnSetting.findOne({ id: '', select: { id: true } }).execute() +db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute() +db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.webauthnSetting.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all webauthnSetting records + +```typescript +const items = await db.webauthnSetting.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a webauthnSetting + +```typescript +const item = await db.webauthnSetting.create({ + data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/SKILL.md b/.agents/skills/orm-modules/SKILL.md new file mode 100644 index 0000000000..6877d76f85 --- /dev/null +++ b/.agents/skills/orm-modules/SKILL.md @@ -0,0 +1,107 @@ +--- +name: orm-modules +description: ORM client for the modules API — provides typed CRUD operations for 56 tables and 12 custom operations +--- + +# orm-modules + + + +ORM client for the modules API — provides typed CRUD operations for 56 tables and 12 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: defaultIdsModule, membershipTypesModule, userStateModule, sessionSecretsModule, configSecretsOrgModule, devicesModule, i18NModule, userCredentialsModule, ... +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.defaultIdsModule.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +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) +- [identity-providers-module](references/identity-providers-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) +- [crypto-addresses-module](references/crypto-addresses-module.md) +- [denormalized-table-field](references/denormalized-table-field.md) +- [rls-module](references/rls-module.md) +- [blueprint](references/blueprint.md) +- [blueprint-template](references/blueprint-template.md) +- [blueprint-construction](references/blueprint-construction.md) +- [crypto-auth-module](references/crypto-auth-module.md) +- [rate-limit-meters-module](references/rate-limit-meters-module.md) +- [sessions-module](references/sessions-module.md) +- [merkle-store-module](references/merkle-store-module.md) +- [graph-module](references/graph-module.md) +- [secure-table-provision](references/secure-table-provision.md) +- [config-secrets-module](references/config-secrets-module.md) +- [invites-module](references/invites-module.md) +- [database-provision-module](references/database-provision-module.md) +- [realtime-module](references/realtime-module.md) +- [webauthn-auth-module](references/webauthn-auth-module.md) +- [namespace-module](references/namespace-module.md) +- [compute-log-module](references/compute-log-module.md) +- [inference-log-module](references/inference-log-module.md) +- [storage-log-module](references/storage-log-module.md) +- [transfer-log-module](references/transfer-log-module.md) +- [db-usage-module](references/db-usage-module.md) +- [notifications-module](references/notifications-module.md) +- [plans-module](references/plans-module.md) +- [hierarchy-module](references/hierarchy-module.md) +- [billing-module](references/billing-module.md) +- [billing-provider-module](references/billing-provider-module.md) +- [profiles-module](references/profiles-module.md) +- [permissions-module](references/permissions-module.md) +- [relation-provision](references/relation-provision.md) +- [function-module](references/function-module.md) +- [user-auth-module](references/user-auth-module.md) +- [agent-module](references/agent-module.md) +- [limits-module](references/limits-module.md) +- [memberships-module](references/memberships-module.md) +- [storage-module](references/storage-module.md) +- [events-module](references/events-module.md) +- [entity-type-provision](references/entity-type-provision.md) +- [resolve-blueprint-field](references/resolve-blueprint-field.md) +- [resolve-blueprint-table](references/resolve-blueprint-table.md) +- [construct-blueprint](references/construct-blueprint.md) +- [provision-full-text-search](references/provision-full-text-search.md) +- [provision-index](references/provision-index.md) +- [provision-check-constraint](references/provision-check-constraint.md) +- [provision-unique-constraint](references/provision-unique-constraint.md) +- [copy-template-to-blueprint](references/copy-template-to-blueprint.md) +- [provision-spatial-relation](references/provision-spatial-relation.md) +- [provision-table](references/provision-table.md) +- [provision-relation](references/provision-relation.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-modules/references/agent-module.md b/.agents/skills/orm-modules/references/agent-module.md new file mode 100644 index 0000000000..358a22daa3 --- /dev/null +++ b/.agents/skills/orm-modules/references/agent-module.md @@ -0,0 +1,34 @@ +# agentModule + + + +ORM operations for AgentModule records + +## Usage + +```typescript +db.agentModule.findMany({ select: { id: true } }).execute() +db.agentModule.findOne({ id: '', select: { id: true } }).execute() +db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', planTableId: '', skillTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', planTableName: '', skillTableName: '', hasKnowledge: '', hasPlans: '', hasSkills: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', knowledgeConfig: '', skillsConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute() +db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.agentModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentModule records + +```typescript +const items = await db.agentModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a agentModule + +```typescript +const item = await db.agentModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', planTableId: '', skillTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', planTableName: '', skillTableName: '', hasKnowledge: '', hasPlans: '', hasSkills: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', knowledgeConfig: '', skillsConfig: '', knowledgePolicies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/billing-module.md b/.agents/skills/orm-modules/references/billing-module.md new file mode 100644 index 0000000000..9b80264333 --- /dev/null +++ b/.agents/skills/orm-modules/references/billing-module.md @@ -0,0 +1,34 @@ +# billingModule + + + +ORM operations for BillingModule records + +## Usage + +```typescript +db.billingModule.findMany({ select: { id: true } }).execute() +db.billingModule.findOne({ id: '', select: { id: true } }).execute() +db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.billingModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all billingModule records + +```typescript +const items = await db.billingModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a billingModule + +```typescript +const item = await db.billingModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/billing-provider-module.md b/.agents/skills/orm-modules/references/billing-provider-module.md new file mode 100644 index 0000000000..194b77ccd1 --- /dev/null +++ b/.agents/skills/orm-modules/references/billing-provider-module.md @@ -0,0 +1,34 @@ +# billingProviderModule + + + +ORM operations for BillingProviderModule records + +## Usage + +```typescript +db.billingProviderModule.findMany({ select: { id: true } }).execute() +db.billingProviderModule.findOne({ id: '', select: { id: true } }).execute() +db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.billingProviderModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all billingProviderModule records + +```typescript +const items = await db.billingProviderModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a billingProviderModule + +```typescript +const item = await db.billingProviderModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/blueprint-construction.md b/.agents/skills/orm-modules/references/blueprint-construction.md new file mode 100644 index 0000000000..5636340086 --- /dev/null +++ b/.agents/skills/orm-modules/references/blueprint-construction.md @@ -0,0 +1,34 @@ +# blueprintConstruction + + + +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. + +## Usage + +```typescript +db.blueprintConstruction.findMany({ select: { id: true } }).execute() +db.blueprintConstruction.findOne({ id: '', select: { id: true } }).execute() +db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute() +db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute() +db.blueprintConstruction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all blueprintConstruction records + +```typescript +const items = await db.blueprintConstruction.findMany({ + select: { id: true, blueprintId: true } +}).execute(); +``` + +### Create a blueprintConstruction + +```typescript +const item = await db.blueprintConstruction.create({ + data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/blueprint-template.md b/.agents/skills/orm-modules/references/blueprint-template.md new file mode 100644 index 0000000000..5df1bc5a1e --- /dev/null +++ b/.agents/skills/orm-modules/references/blueprint-template.md @@ -0,0 +1,34 @@ +# blueprintTemplate + + + +A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + +## Usage + +```typescript +db.blueprintTemplate.findMany({ select: { id: true } }).execute() +db.blueprintTemplate.findOne({ id: '', select: { id: true } }).execute() +db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute() +db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.blueprintTemplate.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all blueprintTemplate records + +```typescript +const items = await db.blueprintTemplate.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a blueprintTemplate + +```typescript +const item = await db.blueprintTemplate.create({ + data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/blueprint.md b/.agents/skills/orm-modules/references/blueprint.md new file mode 100644 index 0000000000..277cf80fc2 --- /dev/null +++ b/.agents/skills/orm-modules/references/blueprint.md @@ -0,0 +1,34 @@ +# blueprint + + + +An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. + +## Usage + +```typescript +db.blueprint.findMany({ select: { id: true } }).execute() +db.blueprint.findOne({ id: '', select: { id: true } }).execute() +db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute() +db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.blueprint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all blueprint records + +```typescript +const items = await db.blueprint.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a blueprint + +```typescript +const item = await db.blueprint.create({ + data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, + 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 new file mode 100644 index 0000000000..77507642c9 --- /dev/null +++ b/.agents/skills/orm-modules/references/compute-log-module.md @@ -0,0 +1,34 @@ +# computeLogModule + + + +ORM operations for ComputeLogModule records + +## Usage + +```typescript +db.computeLogModule.findMany({ select: { id: true } }).execute() +db.computeLogModule.findOne({ id: '', select: { id: true } }).execute() +db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.computeLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all computeLogModule records + +```typescript +const items = await db.computeLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a computeLogModule + +```typescript +const item = await db.computeLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/config-secrets-module.md b/.agents/skills/orm-modules/references/config-secrets-module.md new file mode 100644 index 0000000000..20fbefe829 --- /dev/null +++ b/.agents/skills/orm-modules/references/config-secrets-module.md @@ -0,0 +1,36 @@ +# configSecretsModule + + + +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. + +## Usage + +```typescript +db.configSecretsModule.findMany({ select: { id: true } }).execute() +db.configSecretsModule.findOne({ id: '', select: { id: true } }).execute() +db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute() +db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.configSecretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all configSecretsModule records + +```typescript +const items = await db.configSecretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a configSecretsModule + +```typescript +const item = await db.configSecretsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/config-secrets-org-module.md b/.agents/skills/orm-modules/references/config-secrets-org-module.md new file mode 100644 index 0000000000..fd5bfcd4de --- /dev/null +++ b/.agents/skills/orm-modules/references/config-secrets-org-module.md @@ -0,0 +1,34 @@ +# configSecretsOrgModule + + + +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + +## Usage + +```typescript +db.configSecretsOrgModule.findMany({ select: { id: true } }).execute() +db.configSecretsOrgModule.findOne({ id: '', select: { id: true } }).execute() +db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.configSecretsOrgModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all configSecretsOrgModule records + +```typescript +const items = await db.configSecretsOrgModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a configSecretsOrgModule + +```typescript +const item = await db.configSecretsOrgModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '', 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 new file mode 100644 index 0000000000..7cdf8bcebb --- /dev/null +++ b/.agents/skills/orm-modules/references/config-secrets-user-module.md @@ -0,0 +1,34 @@ +# configSecretsUserModule + + + +ORM operations for ConfigSecretsUserModule records + +## Usage + +```typescript +db.configSecretsUserModule.findMany({ select: { id: true } }).execute() +db.configSecretsUserModule.findOne({ id: '', select: { id: true } }).execute() +db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.configSecretsUserModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all configSecretsUserModule records + +```typescript +const items = await db.configSecretsUserModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a configSecretsUserModule + +```typescript +const item = await db.configSecretsUserModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/connected-accounts-module.md b/.agents/skills/orm-modules/references/connected-accounts-module.md new file mode 100644 index 0000000000..7b485f86d3 --- /dev/null +++ b/.agents/skills/orm-modules/references/connected-accounts-module.md @@ -0,0 +1,34 @@ +# connectedAccountsModule + + + +ORM operations for ConnectedAccountsModule records + +## Usage + +```typescript +db.connectedAccountsModule.findMany({ select: { id: true } }).execute() +db.connectedAccountsModule.findOne({ id: '', select: { id: true } }).execute() +db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.connectedAccountsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all connectedAccountsModule records + +```typescript +const items = await db.connectedAccountsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a connectedAccountsModule + +```typescript +const item = await db.connectedAccountsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/construct-blueprint.md b/.agents/skills/orm-modules/references/construct-blueprint.md new file mode 100644 index 0000000000..f36067fbd0 --- /dev/null +++ b/.agents/skills/orm-modules/references/construct-blueprint.md @@ -0,0 +1,19 @@ +# constructBlueprint + + + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +## Usage + +```typescript +db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute() +``` + +## Examples + +### Run constructBlueprint + +```typescript +const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/copy-template-to-blueprint.md b/.agents/skills/orm-modules/references/copy-template-to-blueprint.md new file mode 100644 index 0000000000..ccc40184d4 --- /dev/null +++ b/.agents/skills/orm-modules/references/copy-template-to-blueprint.md @@ -0,0 +1,19 @@ +# copyTemplateToBlueprint + + + +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. + +## Usage + +```typescript +db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute() +``` + +## Examples + +### Run copyTemplateToBlueprint + +```typescript +const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/crypto-addresses-module.md b/.agents/skills/orm-modules/references/crypto-addresses-module.md new file mode 100644 index 0000000000..811d554e11 --- /dev/null +++ b/.agents/skills/orm-modules/references/crypto-addresses-module.md @@ -0,0 +1,34 @@ +# cryptoAddressesModule + + + +ORM operations for CryptoAddressesModule records + +## Usage + +```typescript +db.cryptoAddressesModule.findMany({ select: { id: true } }).execute() +db.cryptoAddressesModule.findOne({ id: '', select: { id: true } }).execute() +db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.cryptoAddressesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAddressesModule records + +```typescript +const items = await db.cryptoAddressesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a cryptoAddressesModule + +```typescript +const item = await db.cryptoAddressesModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/crypto-auth-module.md b/.agents/skills/orm-modules/references/crypto-auth-module.md new file mode 100644 index 0000000000..ca11788776 --- /dev/null +++ b/.agents/skills/orm-modules/references/crypto-auth-module.md @@ -0,0 +1,34 @@ +# cryptoAuthModule + + + +ORM operations for CryptoAuthModule records + +## Usage + +```typescript +db.cryptoAuthModule.findMany({ select: { id: true } }).execute() +db.cryptoAuthModule.findOne({ id: '', select: { id: true } }).execute() +db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute() +db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.cryptoAuthModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAuthModule records + +```typescript +const items = await db.cryptoAuthModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a cryptoAuthModule + +```typescript +const item = await db.cryptoAuthModule.create({ + data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, + 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 new file mode 100644 index 0000000000..223b584a49 --- /dev/null +++ b/.agents/skills/orm-modules/references/database-provision-module.md @@ -0,0 +1,34 @@ +# databaseProvisionModule + + + +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. + +## Usage + +```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.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseProvisionModule records + +```typescript +const items = await db.databaseProvisionModule.findMany({ + select: { id: true, databaseName: true } +}).execute(); +``` + +### Create a databaseProvisionModule + +```typescript +const item = await db.databaseProvisionModule.create({ + data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, + 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 new file mode 100644 index 0000000000..0e638627f8 --- /dev/null +++ b/.agents/skills/orm-modules/references/db-usage-module.md @@ -0,0 +1,34 @@ +# dbUsageModule + + + +ORM operations for DbUsageModule records + +## Usage + +```typescript +db.dbUsageModule.findMany({ select: { id: true } }).execute() +db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() +db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.dbUsageModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dbUsageModule records + +```typescript +const items = await db.dbUsageModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a dbUsageModule + +```typescript +const item = await db.dbUsageModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/default-ids-module.md b/.agents/skills/orm-modules/references/default-ids-module.md new file mode 100644 index 0000000000..efb0b3a9a2 --- /dev/null +++ b/.agents/skills/orm-modules/references/default-ids-module.md @@ -0,0 +1,34 @@ +# defaultIdsModule + + + +ORM operations for DefaultIdsModule records + +## Usage + +```typescript +db.defaultIdsModule.findMany({ select: { id: true } }).execute() +db.defaultIdsModule.findOne({ id: '', select: { id: true } }).execute() +db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultIdsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all defaultIdsModule records + +```typescript +const items = await db.defaultIdsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a defaultIdsModule + +```typescript +const item = await db.defaultIdsModule.create({ + data: { databaseId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/denormalized-table-field.md b/.agents/skills/orm-modules/references/denormalized-table-field.md new file mode 100644 index 0000000000..384181d191 --- /dev/null +++ b/.agents/skills/orm-modules/references/denormalized-table-field.md @@ -0,0 +1,34 @@ +# denormalizedTableField + + + +ORM operations for DenormalizedTableField records + +## Usage + +```typescript +db.denormalizedTableField.findMany({ select: { id: true } }).execute() +db.denormalizedTableField.findOne({ id: '', select: { id: true } }).execute() +db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute() +db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.denormalizedTableField.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all denormalizedTableField records + +```typescript +const items = await db.denormalizedTableField.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a denormalizedTableField + +```typescript +const item = await db.denormalizedTableField.create({ + data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/devices-module.md b/.agents/skills/orm-modules/references/devices-module.md new file mode 100644 index 0000000000..b66b4c8580 --- /dev/null +++ b/.agents/skills/orm-modules/references/devices-module.md @@ -0,0 +1,34 @@ +# devicesModule + + + +ORM operations for DevicesModule records + +## Usage + +```typescript +db.devicesModule.findMany({ select: { id: true } }).execute() +db.devicesModule.findOne({ id: '', select: { id: true } }).execute() +db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute() +db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.devicesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all devicesModule records + +```typescript +const items = await db.devicesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a devicesModule + +```typescript +const item = await db.devicesModule.create({ + data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/emails-module.md b/.agents/skills/orm-modules/references/emails-module.md new file mode 100644 index 0000000000..2c773163bd --- /dev/null +++ b/.agents/skills/orm-modules/references/emails-module.md @@ -0,0 +1,34 @@ +# emailsModule + + + +ORM operations for EmailsModule records + +## Usage + +```typescript +db.emailsModule.findMany({ select: { id: true } }).execute() +db.emailsModule.findOne({ id: '', select: { id: true } }).execute() +db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.emailsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all emailsModule records + +```typescript +const items = await db.emailsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a emailsModule + +```typescript +const item = await db.emailsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', 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 new file mode 100644 index 0000000000..4cc98c486c --- /dev/null +++ b/.agents/skills/orm-modules/references/entity-type-provision.md @@ -0,0 +1,41 @@ +# entityTypeProvision + + + +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 + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. + +## Usage + +```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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute() +db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.entityTypeProvision.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all entityTypeProvision records + +```typescript +const items = await db.entityTypeProvision.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a entityTypeProvision + +```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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', 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 new file mode 100644 index 0000000000..e6c07e1ce1 --- /dev/null +++ b/.agents/skills/orm-modules/references/events-module.md @@ -0,0 +1,34 @@ +# eventsModule + + + +ORM operations for EventsModule records + +## Usage + +```typescript +db.eventsModule.findMany({ select: { id: true } }).execute() +db.eventsModule.findOne({ id: '', select: { id: true } }).execute() +db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', databaseOwned: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.eventsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all eventsModule records + +```typescript +const items = await db.eventsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a eventsModule + +```typescript +const item = await db.eventsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', databaseOwned: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/function-module.md b/.agents/skills/orm-modules/references/function-module.md new file mode 100644 index 0000000000..8fdf576478 --- /dev/null +++ b/.agents/skills/orm-modules/references/function-module.md @@ -0,0 +1,34 @@ +# functionModule + + + +ORM operations for FunctionModule records + +## Usage + +```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: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.functionModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all functionModule records + +```typescript +const items = await db.functionModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a functionModule + +```typescript +const item = await db.functionModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/graph-module.md b/.agents/skills/orm-modules/references/graph-module.md new file mode 100644 index 0000000000..992d919b56 --- /dev/null +++ b/.agents/skills/orm-modules/references/graph-module.md @@ -0,0 +1,34 @@ +# graphModule + + + +ORM operations for GraphModule records + +## Usage + +```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: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', databaseOwned: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.graphModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all graphModule records + +```typescript +const items = await db.graphModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a graphModule + +```typescript +const item = await db.graphModule.create({ + data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', databaseOwned: '', entityTableId: '', policies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/hierarchy-module.md b/.agents/skills/orm-modules/references/hierarchy-module.md new file mode 100644 index 0000000000..d6d344bfff --- /dev/null +++ b/.agents/skills/orm-modules/references/hierarchy-module.md @@ -0,0 +1,34 @@ +# hierarchyModule + + + +ORM operations for HierarchyModule records + +## Usage + +```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: '' }, select: { id: true } }).execute() +db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.hierarchyModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all hierarchyModule records + +```typescript +const items = await db.hierarchyModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a hierarchyModule + +```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: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/i-18-n-module.md b/.agents/skills/orm-modules/references/i-18-n-module.md new file mode 100644 index 0000000000..28638ceb57 --- /dev/null +++ b/.agents/skills/orm-modules/references/i-18-n-module.md @@ -0,0 +1,34 @@ +# i18NModule + + + +ORM operations for I18NModule records + +## Usage + +```typescript +db.i18NModule.findMany({ select: { id: true } }).execute() +db.i18NModule.findOne({ id: '', select: { id: true } }).execute() +db.i18NModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.i18NModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.i18NModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all i18NModule records + +```typescript +const items = await db.i18NModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a i18NModule + +```typescript +const item = await db.i18NModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }, + 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 new file mode 100644 index 0000000000..6e661a9f4d --- /dev/null +++ b/.agents/skills/orm-modules/references/identity-providers-module.md @@ -0,0 +1,34 @@ +# identityProvidersModule + + + +Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. + +## Usage + +```typescript +db.identityProvidersModule.findMany({ select: { id: true } }).execute() +db.identityProvidersModule.findOne({ id: '', select: { id: true } }).execute() +db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.identityProvidersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all identityProvidersModule records + +```typescript +const items = await db.identityProvidersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a identityProvidersModule + +```typescript +const item = await db.identityProvidersModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, + 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 new file mode 100644 index 0000000000..6f1b9d3c32 --- /dev/null +++ b/.agents/skills/orm-modules/references/inference-log-module.md @@ -0,0 +1,34 @@ +# inferenceLogModule + + + +ORM operations for InferenceLogModule records + +## Usage + +```typescript +db.inferenceLogModule.findMany({ select: { id: true } }).execute() +db.inferenceLogModule.findOne({ id: '', select: { id: true } }).execute() +db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.inferenceLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all inferenceLogModule records + +```typescript +const items = await db.inferenceLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a inferenceLogModule + +```typescript +const item = await db.inferenceLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/invites-module.md b/.agents/skills/orm-modules/references/invites-module.md new file mode 100644 index 0000000000..31ee702ec8 --- /dev/null +++ b/.agents/skills/orm-modules/references/invites-module.md @@ -0,0 +1,34 @@ +# invitesModule + + + +ORM operations for InvitesModule records + +## Usage + +```typescript +db.invitesModule.findMany({ select: { id: true } }).execute() +db.invitesModule.findOne({ id: '', select: { id: true } }).execute() +db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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() +``` + +## Examples + +### List all invitesModule records + +```typescript +const items = await db.invitesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a invitesModule + +```typescript +const item = await db.invitesModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', 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 new file mode 100644 index 0000000000..3a4c24fdb7 --- /dev/null +++ b/.agents/skills/orm-modules/references/limits-module.md @@ -0,0 +1,34 @@ +# limitsModule + + + +ORM operations for LimitsModule records + +## Usage + +```typescript +db.limitsModule.findMany({ select: { id: true } }).execute() +db.limitsModule.findOne({ id: '', select: { id: true } }).execute() +db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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() +``` + +## Examples + +### List all limitsModule records + +```typescript +const items = await db.limitsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a limitsModule + +```typescript +const item = await db.limitsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', 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/membership-types-module.md b/.agents/skills/orm-modules/references/membership-types-module.md new file mode 100644 index 0000000000..0d6cf60df7 --- /dev/null +++ b/.agents/skills/orm-modules/references/membership-types-module.md @@ -0,0 +1,34 @@ +# membershipTypesModule + + + +ORM operations for MembershipTypesModule records + +## Usage + +```typescript +db.membershipTypesModule.findMany({ select: { id: true } }).execute() +db.membershipTypesModule.findOne({ id: '', select: { id: true } }).execute() +db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.membershipTypesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipTypesModule records + +```typescript +const items = await db.membershipTypesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a membershipTypesModule + +```typescript +const item = await db.membershipTypesModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/memberships-module.md b/.agents/skills/orm-modules/references/memberships-module.md new file mode 100644 index 0000000000..486652042d --- /dev/null +++ b/.agents/skills/orm-modules/references/memberships-module.md @@ -0,0 +1,34 @@ +# membershipsModule + + + +ORM operations for MembershipsModule records + +## Usage + +```typescript +db.membershipsModule.findMany({ select: { id: true } }).execute() +db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() +db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.membershipsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipsModule records + +```typescript +const items = await db.membershipsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a membershipsModule + +```typescript +const item = await db.membershipsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', 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 new file mode 100644 index 0000000000..676c291105 --- /dev/null +++ b/.agents/skills/orm-modules/references/merkle-store-module.md @@ -0,0 +1,34 @@ +# merkleStoreModule + + + +ORM operations for MerkleStoreModule records + +## Usage + +```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: '', databaseOwned: '' }, select: { id: true } }).execute() +db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.merkleStoreModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all merkleStoreModule records + +```typescript +const items = await db.merkleStoreModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a merkleStoreModule + +```typescript +const item = await db.merkleStoreModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', databaseOwned: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/namespace-module.md b/.agents/skills/orm-modules/references/namespace-module.md new file mode 100644 index 0000000000..2753ef64f4 --- /dev/null +++ b/.agents/skills/orm-modules/references/namespace-module.md @@ -0,0 +1,34 @@ +# namespaceModule + + + +ORM operations for NamespaceModule records + +## Usage + +```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: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.namespaceModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all namespaceModule records + +```typescript +const items = await db.namespaceModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a namespaceModule + +```typescript +const item = await db.namespaceModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/notifications-module.md b/.agents/skills/orm-modules/references/notifications-module.md new file mode 100644 index 0000000000..5b3ddc2e11 --- /dev/null +++ b/.agents/skills/orm-modules/references/notifications-module.md @@ -0,0 +1,34 @@ +# notificationsModule + + + +ORM operations for NotificationsModule records + +## Usage + +```typescript +db.notificationsModule.findMany({ select: { id: true } }).execute() +db.notificationsModule.findOne({ id: '', select: { id: true } }).execute() +db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.notificationsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all notificationsModule records + +```typescript +const items = await db.notificationsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a notificationsModule + +```typescript +const item = await db.notificationsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', 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 new file mode 100644 index 0000000000..d0475f4e06 --- /dev/null +++ b/.agents/skills/orm-modules/references/permissions-module.md @@ -0,0 +1,34 @@ +# permissionsModule + + + +ORM operations for PermissionsModule records + +## Usage + +```typescript +db.permissionsModule.findMany({ select: { id: true } }).execute() +db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() +db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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() +``` + +## Examples + +### List all permissionsModule records + +```typescript +const items = await db.permissionsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a permissionsModule + +```typescript +const item = await db.permissionsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', 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/phone-numbers-module.md b/.agents/skills/orm-modules/references/phone-numbers-module.md new file mode 100644 index 0000000000..ea7f2fa721 --- /dev/null +++ b/.agents/skills/orm-modules/references/phone-numbers-module.md @@ -0,0 +1,34 @@ +# phoneNumbersModule + + + +ORM operations for PhoneNumbersModule records + +## Usage + +```typescript +db.phoneNumbersModule.findMany({ select: { id: true } }).execute() +db.phoneNumbersModule.findOne({ id: '', select: { id: true } }).execute() +db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.phoneNumbersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all phoneNumbersModule records + +```typescript +const items = await db.phoneNumbersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a phoneNumbersModule + +```typescript +const item = await db.phoneNumbersModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/plans-module.md b/.agents/skills/orm-modules/references/plans-module.md new file mode 100644 index 0000000000..68eaa42072 --- /dev/null +++ b/.agents/skills/orm-modules/references/plans-module.md @@ -0,0 +1,34 @@ +# plansModule + + + +ORM operations for PlansModule records + +## Usage + +```typescript +db.plansModule.findMany({ select: { id: true } }).execute() +db.plansModule.findOne({ id: '', select: { id: true } }).execute() +db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.plansModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all plansModule records + +```typescript +const items = await db.plansModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a plansModule + +```typescript +const item = await db.plansModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', 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 new file mode 100644 index 0000000000..cdce9b15da --- /dev/null +++ b/.agents/skills/orm-modules/references/profiles-module.md @@ -0,0 +1,34 @@ +# profilesModule + + + +ORM operations for ProfilesModule records + +## Usage + +```typescript +db.profilesModule.findMany({ select: { id: true } }).execute() +db.profilesModule.findOne({ id: '', select: { id: true } }).execute() +db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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() +``` + +## Examples + +### List all profilesModule records + +```typescript +const items = await db.profilesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a profilesModule + +```typescript +const item = await db.profilesModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', 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/provision-bucket.md b/.agents/skills/orm-modules/references/provision-bucket.md new file mode 100644 index 0000000000..a9133530f2 --- /dev/null +++ b/.agents/skills/orm-modules/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/references/provision-check-constraint.md b/.agents/skills/orm-modules/references/provision-check-constraint.md new file mode 100644 index 0000000000..bf24f38093 --- /dev/null +++ b/.agents/skills/orm-modules/references/provision-check-constraint.md @@ -0,0 +1,19 @@ +# provisionCheckConstraint + + + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +## Usage + +```typescript +db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute() +``` + +## Examples + +### Run provisionCheckConstraint + +```typescript +const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/provision-full-text-search.md b/.agents/skills/orm-modules/references/provision-full-text-search.md new file mode 100644 index 0000000000..af6c6dfe60 --- /dev/null +++ b/.agents/skills/orm-modules/references/provision-full-text-search.md @@ -0,0 +1,19 @@ +# provisionFullTextSearch + + + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +## Usage + +```typescript +db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute() +``` + +## Examples + +### Run provisionFullTextSearch + +```typescript +const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/provision-index.md b/.agents/skills/orm-modules/references/provision-index.md new file mode 100644 index 0000000000..183d8b63bf --- /dev/null +++ b/.agents/skills/orm-modules/references/provision-index.md @@ -0,0 +1,19 @@ +# provisionIndex + + + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +## Usage + +```typescript +db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute() +``` + +## Examples + +### Run provisionIndex + +```typescript +const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/provision-relation.md b/.agents/skills/orm-modules/references/provision-relation.md new file mode 100644 index 0000000000..61b6712cf8 --- /dev/null +++ b/.agents/skills/orm-modules/references/provision-relation.md @@ -0,0 +1,19 @@ +# provisionRelation + + + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +## Usage + +```typescript +db.mutation.provisionRelation({ input: '' }).execute() +``` + +## Examples + +### Run provisionRelation + +```typescript +const result = await db.mutation.provisionRelation({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/provision-spatial-relation.md b/.agents/skills/orm-modules/references/provision-spatial-relation.md new file mode 100644 index 0000000000..78407861b1 --- /dev/null +++ b/.agents/skills/orm-modules/references/provision-spatial-relation.md @@ -0,0 +1,19 @@ +# provisionSpatialRelation + + + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +## Usage + +```typescript +db.mutation.provisionSpatialRelation({ input: '' }).execute() +``` + +## Examples + +### Run provisionSpatialRelation + +```typescript +const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/provision-table.md b/.agents/skills/orm-modules/references/provision-table.md new file mode 100644 index 0000000000..e8989d30c3 --- /dev/null +++ b/.agents/skills/orm-modules/references/provision-table.md @@ -0,0 +1,19 @@ +# provisionTable + + + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +## Usage + +```typescript +db.mutation.provisionTable({ input: '' }).execute() +``` + +## Examples + +### Run provisionTable + +```typescript +const result = await db.mutation.provisionTable({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/provision-unique-constraint.md b/.agents/skills/orm-modules/references/provision-unique-constraint.md new file mode 100644 index 0000000000..d0de9114f9 --- /dev/null +++ b/.agents/skills/orm-modules/references/provision-unique-constraint.md @@ -0,0 +1,19 @@ +# provisionUniqueConstraint + + + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +## Usage + +```typescript +db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute() +``` + +## Examples + +### Run provisionUniqueConstraint + +```typescript +const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/rate-limit-meters-module.md b/.agents/skills/orm-modules/references/rate-limit-meters-module.md new file mode 100644 index 0000000000..244d9a8fe7 --- /dev/null +++ b/.agents/skills/orm-modules/references/rate-limit-meters-module.md @@ -0,0 +1,34 @@ +# rateLimitMetersModule + + + +ORM operations for RateLimitMetersModule records + +## Usage + +```typescript +db.rateLimitMetersModule.findMany({ select: { id: true } }).execute() +db.rateLimitMetersModule.findOne({ id: '', select: { id: true } }).execute() +db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.rateLimitMetersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all rateLimitMetersModule records + +```typescript +const items = await db.rateLimitMetersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a rateLimitMetersModule + +```typescript +const item = await db.rateLimitMetersModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/rate-limits-module.md b/.agents/skills/orm-modules/references/rate-limits-module.md new file mode 100644 index 0000000000..f9e2535eca --- /dev/null +++ b/.agents/skills/orm-modules/references/rate-limits-module.md @@ -0,0 +1,34 @@ +# rateLimitsModule + + + +ORM operations for RateLimitsModule records + +## Usage + +```typescript +db.rateLimitsModule.findMany({ select: { id: true } }).execute() +db.rateLimitsModule.findOne({ id: '', select: { id: true } }).execute() +db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute() +db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.rateLimitsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all rateLimitsModule records + +```typescript +const items = await db.rateLimitsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a rateLimitsModule + +```typescript +const item = await db.rateLimitsModule.create({ + data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/realtime-module.md b/.agents/skills/orm-modules/references/realtime-module.md new file mode 100644 index 0000000000..6a31d67ab7 --- /dev/null +++ b/.agents/skills/orm-modules/references/realtime-module.md @@ -0,0 +1,34 @@ +# realtimeModule + + + +ORM operations for RealtimeModule records + +## Usage + +```typescript +db.realtimeModule.findMany({ select: { id: true } }).execute() +db.realtimeModule.findOne({ id: '', select: { id: true } }).execute() +db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.realtimeModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all realtimeModule records + +```typescript +const items = await db.realtimeModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a realtimeModule + +```typescript +const item = await db.realtimeModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/relation-provision.md b/.agents/skills/orm-modules/references/relation-provision.md new file mode 100644 index 0000000000..ec6d973a92 --- /dev/null +++ b/.agents/skills/orm-modules/references/relation-provision.md @@ -0,0 +1,41 @@ +# relationProvision + + + +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. + +## Usage + +```typescript +db.relationProvision.findMany({ select: { id: true } }).execute() +db.relationProvision.findOne({ id: '', select: { id: true } }).execute() +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() +db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.relationProvision.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all relationProvision records + +```typescript +const items = await db.relationProvision.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a relationProvision + +```typescript +const item = 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(); +``` diff --git a/.agents/skills/orm-modules/references/resolve-blueprint-field.md b/.agents/skills/orm-modules/references/resolve-blueprint-field.md new file mode 100644 index 0000000000..55ae9fa56c --- /dev/null +++ b/.agents/skills/orm-modules/references/resolve-blueprint-field.md @@ -0,0 +1,19 @@ +# resolveBlueprintField + + + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +## Usage + +```typescript +db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute() +``` + +## Examples + +### Run resolveBlueprintField + +```typescript +const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/resolve-blueprint-table.md b/.agents/skills/orm-modules/references/resolve-blueprint-table.md new file mode 100644 index 0000000000..d3fb9c40e7 --- /dev/null +++ b/.agents/skills/orm-modules/references/resolve-blueprint-table.md @@ -0,0 +1,19 @@ +# resolveBlueprintTable + + + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +## Usage + +```typescript +db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute() +``` + +## Examples + +### Run resolveBlueprintTable + +```typescript +const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); +``` diff --git a/.agents/skills/orm-modules/references/rls-module.md b/.agents/skills/orm-modules/references/rls-module.md new file mode 100644 index 0000000000..46dcd9ec8d --- /dev/null +++ b/.agents/skills/orm-modules/references/rls-module.md @@ -0,0 +1,34 @@ +# rlsModule + + + +ORM operations for RlsModule records + +## Usage + +```typescript +db.rlsModule.findMany({ select: { id: true } }).execute() +db.rlsModule.findOne({ id: '', select: { id: true } }).execute() +db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.rlsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all rlsModule records + +```typescript +const items = await db.rlsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a rlsModule + +```typescript +const item = await db.rlsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/secure-table-provision.md b/.agents/skills/orm-modules/references/secure-table-provision.md new file mode 100644 index 0000000000..e5bc1b0178 --- /dev/null +++ b/.agents/skills/orm-modules/references/secure-table-provision.md @@ -0,0 +1,34 @@ +# secureTableProvision + + + +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. + +## Usage + +```typescript +db.secureTableProvision.findMany({ select: { id: true } }).execute() +db.secureTableProvision.findOne({ id: '', select: { id: true } }).execute() +db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute() +db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.secureTableProvision.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all secureTableProvision records + +```typescript +const items = await db.secureTableProvision.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a secureTableProvision + +```typescript +const item = await db.secureTableProvision.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/session-secrets-module.md b/.agents/skills/orm-modules/references/session-secrets-module.md new file mode 100644 index 0000000000..996da9a44c --- /dev/null +++ b/.agents/skills/orm-modules/references/session-secrets-module.md @@ -0,0 +1,34 @@ +# sessionSecretsModule + + + +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. + +## Usage + +```typescript +db.sessionSecretsModule.findMany({ select: { id: true } }).execute() +db.sessionSecretsModule.findOne({ id: '', select: { id: true } }).execute() +db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute() +db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.sessionSecretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all sessionSecretsModule records + +```typescript +const items = await db.sessionSecretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a sessionSecretsModule + +```typescript +const item = await db.sessionSecretsModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/sessions-module.md b/.agents/skills/orm-modules/references/sessions-module.md new file mode 100644 index 0000000000..7820e56214 --- /dev/null +++ b/.agents/skills/orm-modules/references/sessions-module.md @@ -0,0 +1,34 @@ +# sessionsModule + + + +ORM operations for SessionsModule records + +## Usage + +```typescript +db.sessionsModule.findMany({ select: { id: true } }).execute() +db.sessionsModule.findOne({ id: '', select: { id: true } }).execute() +db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute() +db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.sessionsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all sessionsModule records + +```typescript +const items = await db.sessionsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a sessionsModule + +```typescript +const item = await db.sessionsModule.create({ + data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, + 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 new file mode 100644 index 0000000000..47aab822c9 --- /dev/null +++ b/.agents/skills/orm-modules/references/storage-log-module.md @@ -0,0 +1,34 @@ +# storageLogModule + + + +ORM operations for StorageLogModule records + +## Usage + +```typescript +db.storageLogModule.findMany({ select: { id: true } }).execute() +db.storageLogModule.findOne({ id: '', select: { id: true } }).execute() +db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.storageLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all storageLogModule records + +```typescript +const items = await db.storageLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a storageLogModule + +```typescript +const item = await db.storageLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', 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 new file mode 100644 index 0000000000..7432653503 --- /dev/null +++ b/.agents/skills/orm-modules/references/storage-module.md @@ -0,0 +1,34 @@ +# storageModule + + + +ORM operations for StorageModule records + +## Usage + +```typescript +db.storageModule.findMany({ select: { id: true } }).execute() +db.storageModule.findOne({ id: '', select: { id: true } }).execute() +db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', databaseOwned: '', 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: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.storageModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all storageModule records + +```typescript +const items = await db.storageModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a storageModule + +```typescript +const item = await db.storageModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', databaseOwned: '', 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: '', 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 new file mode 100644 index 0000000000..45a9e9b9e3 --- /dev/null +++ b/.agents/skills/orm-modules/references/transfer-log-module.md @@ -0,0 +1,34 @@ +# transferLogModule + + + +ORM operations for TransferLogModule records + +## Usage + +```typescript +db.transferLogModule.findMany({ select: { id: true } }).execute() +db.transferLogModule.findOne({ id: '', select: { id: true } }).execute() +db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.transferLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all transferLogModule records + +```typescript +const items = await db.transferLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a transferLogModule + +```typescript +const item = await db.transferLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/user-auth-module.md b/.agents/skills/orm-modules/references/user-auth-module.md new file mode 100644 index 0000000000..53ee396e3e --- /dev/null +++ b/.agents/skills/orm-modules/references/user-auth-module.md @@ -0,0 +1,34 @@ +# userAuthModule + + + +ORM operations for UserAuthModule records + +## Usage + +```typescript +db.userAuthModule.findMany({ select: { id: true } }).execute() +db.userAuthModule.findOne({ id: '', select: { id: true } }).execute() +db.userAuthModule.create({ data: { 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: '' }, select: { id: true } }).execute() +db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.userAuthModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userAuthModule records + +```typescript +const items = await db.userAuthModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a userAuthModule + +```typescript +const item = await db.userAuthModule.create({ + data: { 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: '' }, + 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 new file mode 100644 index 0000000000..e87f5e61a8 --- /dev/null +++ b/.agents/skills/orm-modules/references/user-credentials-module.md @@ -0,0 +1,36 @@ +# userCredentialsModule + + + +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. + +## Usage + +```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.userCredentialsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userCredentialsModule records + +```typescript +const items = await db.userCredentialsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a userCredentialsModule + +```typescript +const item = await db.userCredentialsModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/user-settings-module.md b/.agents/skills/orm-modules/references/user-settings-module.md new file mode 100644 index 0000000000..2680589dfc --- /dev/null +++ b/.agents/skills/orm-modules/references/user-settings-module.md @@ -0,0 +1,34 @@ +# userSettingsModule + + + +ORM operations for UserSettingsModule records + +## Usage + +```typescript +db.userSettingsModule.findMany({ select: { id: true } }).execute() +db.userSettingsModule.findOne({ id: '', select: { id: true } }).execute() +db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute() +db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.userSettingsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userSettingsModule records + +```typescript +const items = await db.userSettingsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a userSettingsModule + +```typescript +const item = await db.userSettingsModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, + 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 new file mode 100644 index 0000000000..4110d5ff75 --- /dev/null +++ b/.agents/skills/orm-modules/references/user-state-module.md @@ -0,0 +1,34 @@ +# userStateModule + + + +ORM operations for UserStateModule records + +## Usage + +```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.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.userStateModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userStateModule records + +```typescript +const items = await db.userStateModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a userStateModule + +```typescript +const item = await db.userStateModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/users-module.md b/.agents/skills/orm-modules/references/users-module.md new file mode 100644 index 0000000000..222e0d26d4 --- /dev/null +++ b/.agents/skills/orm-modules/references/users-module.md @@ -0,0 +1,34 @@ +# usersModule + + + +ORM operations for UsersModule records + +## Usage + +```typescript +db.usersModule.findMany({ select: { id: true } }).execute() +db.usersModule.findOne({ id: '', select: { id: true } }).execute() +db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.usersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all usersModule records + +```typescript +const items = await db.usersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a usersModule + +```typescript +const item = await db.usersModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/webauthn-auth-module.md b/.agents/skills/orm-modules/references/webauthn-auth-module.md new file mode 100644 index 0000000000..c8d9588e01 --- /dev/null +++ b/.agents/skills/orm-modules/references/webauthn-auth-module.md @@ -0,0 +1,34 @@ +# webauthnAuthModule + + + +ORM operations for WebauthnAuthModule records + +## Usage + +```typescript +db.webauthnAuthModule.findMany({ select: { id: true } }).execute() +db.webauthnAuthModule.findOne({ id: '', select: { id: true } }).execute() +db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute() +db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.webauthnAuthModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all webauthnAuthModule records + +```typescript +const items = await db.webauthnAuthModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a webauthnAuthModule + +```typescript +const item = await db.webauthnAuthModule.create({ + data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/webauthn-credentials-module.md b/.agents/skills/orm-modules/references/webauthn-credentials-module.md new file mode 100644 index 0000000000..379699ce78 --- /dev/null +++ b/.agents/skills/orm-modules/references/webauthn-credentials-module.md @@ -0,0 +1,34 @@ +# webauthnCredentialsModule + + + +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. + +## Usage + +```typescript +db.webauthnCredentialsModule.findMany({ select: { id: true } }).execute() +db.webauthnCredentialsModule.findOne({ id: '', select: { id: true } }).execute() +db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all webauthnCredentialsModule records + +```typescript +const items = await db.webauthnCredentialsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a webauthnCredentialsModule + +```typescript +const item = await db.webauthnCredentialsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-objects/SKILL.md b/.agents/skills/orm-objects/SKILL.md index d294f5733b..225119f2bb 100644 --- a/.agents/skills/orm-objects/SKILL.md +++ b/.agents/skills/orm-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-objects -description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 13 custom operations +description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 4 custom operations --- # orm-objects -ORM client for the objects API — provides typed CRUD operations for 5 tables and 13 custom operations +ORM client for the objects API — provides typed CRUD operations for 5 tables and 4 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the objects API — provides typed CRUD operations for 5 tables a // Import the ORM client import { db } from './orm'; -// Available models: getAllRecord, object, ref, store, commit +// Available models: getAllRecord, ref, store, object, commit db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -38,20 +38,11 @@ const items = await db.getAllRecord.findMany({ See the `references/` directory for detailed per-entity API documentation: - [get-all-record](references/get-all-record.md) -- [object](references/object.md) - [ref](references/ref.md) - [store](references/store.md) +- [object](references/object.md) - [commit](references/commit.md) -- [rev-parse](references/rev-parse.md) -- [get-all-objects-from-root](references/get-all-objects-from-root.md) -- [get-path-objects-from-root](references/get-path-objects-from-root.md) -- [get-object-at-path](references/get-object-at-path.md) -- [freeze-objects](references/freeze-objects.md) - [init-empty-repo](references/init-empty-repo.md) -- [remove-node-at-path](references/remove-node-at-path.md) - [set-data-at-path](references/set-data-at-path.md) -- [set-props-and-commit](references/set-props-and-commit.md) - [insert-node-at-path](references/insert-node-at-path.md) -- [update-node-at-path](references/update-node-at-path.md) -- [set-and-commit](references/set-and-commit.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-objects/references/commit.md b/.agents/skills/orm-objects/references/commit.md index b3e1b59c39..82f5852564 100644 --- a/.agents/skills/orm-objects/references/commit.md +++ b/.agents/skills/orm-objects/references/commit.md @@ -2,7 +2,7 @@ -A commit records changes to the repository. +Commit history — each commit snapshots a tree root for a store ## Usage diff --git a/.agents/skills/orm-objects/references/init-empty-repo.md b/.agents/skills/orm-objects/references/init-empty-repo.md index 00eb301388..9134c92d86 100644 --- a/.agents/skills/orm-objects/references/init-empty-repo.md +++ b/.agents/skills/orm-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```typescript -db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute() +db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).exec ### Run initEmptyRepo ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/object.md b/.agents/skills/orm-objects/references/object.md index 130fc55c2f..4ae352b0f4 100644 --- a/.agents/skills/orm-objects/references/object.md +++ b/.agents/skills/orm-objects/references/object.md @@ -2,15 +2,15 @@ -ORM operations for Object records +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children ## Usage ```typescript db.object.findMany({ select: { id: true } }).execute() db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() -db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() +db.object.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute() +db.object.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.object.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.object.delete({ where: { id: '' } }).execute() ```typescript const items = await db.object.findMany({ - select: { id: true, hashUuid: true } + select: { id: true, databaseId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.object.findMany({ ```typescript const item = await db.object.create({ - data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, + data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/ref.md b/.agents/skills/orm-objects/references/ref.md index 56499466ae..71af0ff754 100644 --- a/.agents/skills/orm-objects/references/ref.md +++ b/.agents/skills/orm-objects/references/ref.md @@ -2,7 +2,7 @@ -A ref is a data structure for pointing to a commit. +Branch heads — mutable pointers into the commit chain ## Usage diff --git a/.agents/skills/orm-objects/references/set-data-at-path.md b/.agents/skills/orm-objects/references/set-data-at-path.md index 6098a15a51..4176ca275b 100644 --- a/.agents/skills/orm-objects/references/set-data-at-path.md +++ b/.agents/skills/orm-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```typescript -db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute() +db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/store.md b/.agents/skills/orm-objects/references/store.md index 63f88e898e..29e1f5f900 100644 --- a/.agents/skills/orm-objects/references/store.md +++ b/.agents/skills/orm-objects/references/store.md @@ -2,7 +2,7 @@ -A store represents an isolated object repository within a database. +Named stores — one per version-controlled tree (e.g. one graph, one definition set) ## Usage diff --git a/.agents/skills/orm-usage/SKILL.md b/.agents/skills/orm-usage/SKILL.md new file mode 100644 index 0000000000..eecb1e3f4b --- /dev/null +++ b/.agents/skills/orm-usage/SKILL.md @@ -0,0 +1,62 @@ +--- +name: orm-usage +description: ORM client for the usage API — provides typed CRUD operations for 18 tables and 5 custom operations +--- + +# orm-usage + + + +ORM client for the usage API — provides typed CRUD operations for 18 tables and 5 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: appLimitCapsDefault, orgLimitCapsDefault, appLimitCap, orgLimitCap, appLimitDefault, appLimitCredit, appLimitCreditCodeItem, appLimitCreditRedemption, ... +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.appLimitCapsDefault.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [app-limit-caps-default](references/app-limit-caps-default.md) +- [org-limit-caps-default](references/org-limit-caps-default.md) +- [app-limit-cap](references/app-limit-cap.md) +- [org-limit-cap](references/org-limit-cap.md) +- [app-limit-default](references/app-limit-default.md) +- [app-limit-credit](references/app-limit-credit.md) +- [app-limit-credit-code-item](references/app-limit-credit-code-item.md) +- [app-limit-credit-redemption](references/app-limit-credit-redemption.md) +- [org-limit-default](references/org-limit-default.md) +- [org-limit-credit](references/org-limit-credit.md) +- [app-limit-warning](references/app-limit-warning.md) +- [org-limit-warning](references/org-limit-warning.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) +- [app-limit](references/app-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) +- [org-limit](references/org-limit.md) +- [seed-app-limit-caps-defaults](references/seed-app-limit-caps-defaults.md) +- [seed-app-limit-defaults](references/seed-app-limit-defaults.md) +- [seed-org-limit-caps-defaults](references/seed-org-limit-caps-defaults.md) +- [seed-org-limit-defaults](references/seed-org-limit-defaults.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-usage/references/app-limit-cap.md b/.agents/skills/orm-usage/references/app-limit-cap.md new file mode 100644 index 0000000000..76ac73b9d8 --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-cap.md @@ -0,0 +1,34 @@ +# appLimitCap + + + +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. + +## Usage + +```typescript +db.appLimitCap.findMany({ select: { id: true } }).execute() +db.appLimitCap.findOne({ id: '', select: { id: true } }).execute() +db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute() +db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitCap.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitCap records + +```typescript +const items = await db.appLimitCap.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitCap + +```typescript +const item = await db.appLimitCap.create({ + data: { name: '', entityId: '', max: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-caps-default.md b/.agents/skills/orm-usage/references/app-limit-caps-default.md new file mode 100644 index 0000000000..18848a6a2c --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-caps-default.md @@ -0,0 +1,34 @@ +# appLimitCapsDefault + + + +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. + +## Usage + +```typescript +db.appLimitCapsDefault.findMany({ select: { id: true } }).execute() +db.appLimitCapsDefault.findOne({ id: '', select: { id: true } }).execute() +db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitCapsDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitCapsDefault records + +```typescript +const items = await db.appLimitCapsDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitCapsDefault + +```typescript +const item = await db.appLimitCapsDefault.create({ + data: { name: '', max: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-credit-code-item.md b/.agents/skills/orm-usage/references/app-limit-credit-code-item.md new file mode 100644 index 0000000000..8bf8044340 --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-credit-code-item.md @@ -0,0 +1,34 @@ +# appLimitCreditCodeItem + + + +Items within a credit code — each row grants credits for a specific limit definition + +## Usage + +```typescript +db.appLimitCreditCodeItem.findMany({ select: { id: true } }).execute() +db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true } }).execute() +db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute() +db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute() +db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitCreditCodeItem records + +```typescript +const items = await db.appLimitCreditCodeItem.findMany({ + select: { id: true, creditCodeId: true } +}).execute(); +``` + +### Create a appLimitCreditCodeItem + +```typescript +const item = await db.appLimitCreditCodeItem.create({ + data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-credit-code.md b/.agents/skills/orm-usage/references/app-limit-credit-code.md new file mode 100644 index 0000000000..e18ba1c296 --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-credit-code.md @@ -0,0 +1,34 @@ +# appLimitCreditCode + + + +Redeemable credit codes managed by admins with the add_credits permission + +## Usage + +```typescript +db.appLimitCreditCode.findMany({ select: { id: true } }).execute() +db.appLimitCreditCode.findOne({ id: '', select: { id: true } }).execute() +db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute() +db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute() +db.appLimitCreditCode.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitCreditCode records + +```typescript +const items = await db.appLimitCreditCode.findMany({ + select: { id: true, code: true } +}).execute(); +``` + +### Create a appLimitCreditCode + +```typescript +const item = await db.appLimitCreditCode.create({ + data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-credit-redemption.md b/.agents/skills/orm-usage/references/app-limit-credit-redemption.md new file mode 100644 index 0000000000..c71a0a8e4c --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-credit-redemption.md @@ -0,0 +1,34 @@ +# appLimitCreditRedemption + + + +Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits + +## Usage + +```typescript +db.appLimitCreditRedemption.findMany({ select: { id: true } }).execute() +db.appLimitCreditRedemption.findOne({ id: '', select: { id: true } }).execute() +db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() +db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute() +db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitCreditRedemption records + +```typescript +const items = await db.appLimitCreditRedemption.findMany({ + select: { id: true, creditCodeId: true } +}).execute(); +``` + +### Create a appLimitCreditRedemption + +```typescript +const item = await db.appLimitCreditRedemption.create({ + data: { creditCodeId: '', entityId: '', organizationId: '', entityType: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-credit.md b/.agents/skills/orm-usage/references/app-limit-credit.md new file mode 100644 index 0000000000..e4177b9dde --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-credit.md @@ -0,0 +1,34 @@ +# appLimitCredit + + + +Append-only ledger of credit grants that automatically update limit ceilings + +## Usage + +```typescript +db.appLimitCredit.findMany({ select: { id: true } }).execute() +db.appLimitCredit.findOne({ id: '', select: { id: true } }).execute() +db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute() +db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute() +db.appLimitCredit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitCredit records + +```typescript +const items = await db.appLimitCredit.findMany({ + select: { id: true, defaultLimitId: true } +}).execute(); +``` + +### Create a appLimitCredit + +```typescript +const item = await db.appLimitCredit.create({ + data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-default.md b/.agents/skills/orm-usage/references/app-limit-default.md new file mode 100644 index 0000000000..e4fc4452ee --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-default.md @@ -0,0 +1,34 @@ +# appLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +db.appLimitDefault.findMany({ select: { id: true } }).execute() +db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() +db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() +db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitDefault records + +```typescript +const items = await db.appLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitDefault + +```typescript +const item = await db.appLimitDefault.create({ + data: { name: '', max: '', softMax: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-event.md b/.agents/skills/orm-usage/references/app-limit-event.md new file mode 100644 index 0000000000..61dd781609 --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-event.md @@ -0,0 +1,34 @@ +# appLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +db.appLimitEvent.findMany({ select: { id: true } }).execute() +db.appLimitEvent.findOne({ id: '', select: { id: true } }).execute() +db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() +db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitEvent records + +```typescript +const items = await db.appLimitEvent.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitEvent + +```typescript +const item = await db.appLimitEvent.create({ + data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit-warning.md b/.agents/skills/orm-usage/references/app-limit-warning.md new file mode 100644 index 0000000000..24501ac07d --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit-warning.md @@ -0,0 +1,34 @@ +# appLimitWarning + + + +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. + +## Usage + +```typescript +db.appLimitWarning.findMany({ select: { id: true } }).execute() +db.appLimitWarning.findOne({ id: '', select: { id: true } }).execute() +db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute() +db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitWarning.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitWarning records + +```typescript +const items = await db.appLimitWarning.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitWarning + +```typescript +const item = await db.appLimitWarning.create({ + data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/app-limit.md b/.agents/skills/orm-usage/references/app-limit.md new file mode 100644 index 0000000000..1029c788dc --- /dev/null +++ b/.agents/skills/orm-usage/references/app-limit.md @@ -0,0 +1,34 @@ +# appLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +db.appLimit.findMany({ select: { id: true } }).execute() +db.appLimit.findOne({ id: '', select: { id: true } }).execute() +db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() +db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimit records + +```typescript +const items = await db.appLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimit + +```typescript +const item = await db.appLimit.create({ + data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit-aggregate.md b/.agents/skills/orm-usage/references/org-limit-aggregate.md new file mode 100644 index 0000000000..cab72fb348 --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit-aggregate.md @@ -0,0 +1,34 @@ +# orgLimitAggregate + + + +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + +## Usage + +```typescript +db.orgLimitAggregate.findMany({ select: { id: true } }).execute() +db.orgLimitAggregate.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() +db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitAggregate.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitAggregate records + +```typescript +const items = await db.orgLimitAggregate.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitAggregate + +```typescript +const item = await db.orgLimitAggregate.create({ + data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit-cap.md b/.agents/skills/orm-usage/references/org-limit-cap.md new file mode 100644 index 0000000000..72fc875db3 --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit-cap.md @@ -0,0 +1,34 @@ +# orgLimitCap + + + +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. + +## Usage + +```typescript +db.orgLimitCap.findMany({ select: { id: true } }).execute() +db.orgLimitCap.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute() +db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitCap.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitCap records + +```typescript +const items = await db.orgLimitCap.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitCap + +```typescript +const item = await db.orgLimitCap.create({ + data: { name: '', entityId: '', max: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit-caps-default.md b/.agents/skills/orm-usage/references/org-limit-caps-default.md new file mode 100644 index 0000000000..d314196a9f --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit-caps-default.md @@ -0,0 +1,34 @@ +# orgLimitCapsDefault + + + +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. + +## Usage + +```typescript +db.orgLimitCapsDefault.findMany({ select: { id: true } }).execute() +db.orgLimitCapsDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitCapsDefault records + +```typescript +const items = await db.orgLimitCapsDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitCapsDefault + +```typescript +const item = await db.orgLimitCapsDefault.create({ + data: { name: '', max: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit-credit.md b/.agents/skills/orm-usage/references/org-limit-credit.md new file mode 100644 index 0000000000..c24518aa85 --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit-credit.md @@ -0,0 +1,34 @@ +# orgLimitCredit + + + +Append-only ledger of credit grants that automatically update limit ceilings + +## Usage + +```typescript +db.orgLimitCredit.findMany({ select: { id: true } }).execute() +db.orgLimitCredit.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', organizationId: '', entityType: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute() +db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute() +db.orgLimitCredit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitCredit records + +```typescript +const items = await db.orgLimitCredit.findMany({ + select: { id: true, defaultLimitId: true } +}).execute(); +``` + +### Create a orgLimitCredit + +```typescript +const item = await db.orgLimitCredit.create({ + data: { defaultLimitId: '', actorId: '', entityId: '', organizationId: '', entityType: '', amount: '', creditType: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit-default.md b/.agents/skills/orm-usage/references/org-limit-default.md new file mode 100644 index 0000000000..70eb9ec161 --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit-default.md @@ -0,0 +1,34 @@ +# orgLimitDefault + + + +Default maximum values for each named limit, applied when no per-actor override exists + +## Usage + +```typescript +db.orgLimitDefault.findMany({ select: { id: true } }).execute() +db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() +db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitDefault records + +```typescript +const items = await db.orgLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitDefault + +```typescript +const item = await db.orgLimitDefault.create({ + data: { name: '', max: '', softMax: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit-event.md b/.agents/skills/orm-usage/references/org-limit-event.md new file mode 100644 index 0000000000..c00894412f --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit-event.md @@ -0,0 +1,34 @@ +# orgLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +db.orgLimitEvent.findMany({ select: { id: true } }).execute() +db.orgLimitEvent.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() +db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitEvent records + +```typescript +const items = await db.orgLimitEvent.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitEvent + +```typescript +const item = await db.orgLimitEvent.create({ + data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit-warning.md b/.agents/skills/orm-usage/references/org-limit-warning.md new file mode 100644 index 0000000000..fc33071499 --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit-warning.md @@ -0,0 +1,34 @@ +# orgLimitWarning + + + +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. + +## Usage + +```typescript +db.orgLimitWarning.findMany({ select: { id: true } }).execute() +db.orgLimitWarning.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute() +db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitWarning.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitWarning records + +```typescript +const items = await db.orgLimitWarning.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitWarning + +```typescript +const item = await db.orgLimitWarning.create({ + data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/org-limit.md b/.agents/skills/orm-usage/references/org-limit.md new file mode 100644 index 0000000000..6376b75357 --- /dev/null +++ b/.agents/skills/orm-usage/references/org-limit.md @@ -0,0 +1,34 @@ +# orgLimit + + + +Tracks per-actor usage counts against configurable maximum limits + +## Usage + +```typescript +db.orgLimit.findMany({ select: { id: true } }).execute() +db.orgLimit.findOne({ id: '', select: { id: true } }).execute() +db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute() +db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimit records + +```typescript +const items = await db.orgLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimit + +```typescript +const item = await db.orgLimit.create({ + data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-usage/references/provision-bucket.md b/.agents/skills/orm-usage/references/provision-bucket.md new file mode 100644 index 0000000000..a9133530f2 --- /dev/null +++ b/.agents/skills/orm-usage/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-usage/references/seed-app-limit-caps-defaults.md b/.agents/skills/orm-usage/references/seed-app-limit-caps-defaults.md new file mode 100644 index 0000000000..6d8806450a --- /dev/null +++ b/.agents/skills/orm-usage/references/seed-app-limit-caps-defaults.md @@ -0,0 +1,19 @@ +# seedAppLimitCapsDefaults + + + +Execute the seedAppLimitCapsDefaults mutation + +## Usage + +```typescript +db.mutation.seedAppLimitCapsDefaults({ input: { defaults: '' } }).execute() +``` + +## Examples + +### Run seedAppLimitCapsDefaults + +```typescript +const result = await db.mutation.seedAppLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` diff --git a/.agents/skills/orm-usage/references/seed-app-limit-defaults.md b/.agents/skills/orm-usage/references/seed-app-limit-defaults.md new file mode 100644 index 0000000000..da3719d7e5 --- /dev/null +++ b/.agents/skills/orm-usage/references/seed-app-limit-defaults.md @@ -0,0 +1,19 @@ +# seedAppLimitDefaults + + + +Execute the seedAppLimitDefaults mutation + +## Usage + +```typescript +db.mutation.seedAppLimitDefaults({ input: { defaults: '' } }).execute() +``` + +## Examples + +### Run seedAppLimitDefaults + +```typescript +const result = await db.mutation.seedAppLimitDefaults({ input: { defaults: '' } }).execute(); +``` diff --git a/.agents/skills/orm-usage/references/seed-org-limit-caps-defaults.md b/.agents/skills/orm-usage/references/seed-org-limit-caps-defaults.md new file mode 100644 index 0000000000..c466855503 --- /dev/null +++ b/.agents/skills/orm-usage/references/seed-org-limit-caps-defaults.md @@ -0,0 +1,19 @@ +# seedOrgLimitCapsDefaults + + + +Execute the seedOrgLimitCapsDefaults mutation + +## Usage + +```typescript +db.mutation.seedOrgLimitCapsDefaults({ input: { defaults: '' } }).execute() +``` + +## Examples + +### Run seedOrgLimitCapsDefaults + +```typescript +const result = await db.mutation.seedOrgLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` diff --git a/.agents/skills/orm-usage/references/seed-org-limit-defaults.md b/.agents/skills/orm-usage/references/seed-org-limit-defaults.md new file mode 100644 index 0000000000..a52a2d685e --- /dev/null +++ b/.agents/skills/orm-usage/references/seed-org-limit-defaults.md @@ -0,0 +1,19 @@ +# seedOrgLimitDefaults + + + +Execute the seedOrgLimitDefaults mutation + +## Usage + +```typescript +db.mutation.seedOrgLimitDefaults({ input: { defaults: '' } }).execute() +``` + +## Examples + +### Run seedOrgLimitDefaults + +```typescript +const result = await db.mutation.seedOrgLimitDefaults({ input: { defaults: '' } }).execute(); +``` diff --git a/sdk/constructive-cli/README.md b/sdk/constructive-cli/README.md index 122660ef55..fff798ad59 100644 --- a/sdk/constructive-cli/README.md +++ b/sdk/constructive-cli/README.md @@ -11,9 +11,12 @@ | API | Endpoint | Generators | Docs | |-----|----------|------------|------| | admin | - | ORM, CLI | [./src/admin/README.md](./src/admin/README.md) | +| agent | - | ORM, CLI | [./src/agent/README.md](./src/agent/README.md) | +| api | - | ORM, CLI | [./src/api/README.md](./src/api/README.md) | | auth | - | ORM, CLI | [./src/auth/README.md](./src/auth/README.md) | +| modules | - | ORM, CLI | [./src/modules/README.md](./src/modules/README.md) | | objects | - | ORM, CLI | [./src/objects/README.md](./src/objects/README.md) | -| public | - | ORM, CLI | [./src/public/README.md](./src/public/README.md) | +| usage | - | ORM, CLI | [./src/usage/README.md](./src/usage/README.md) | --- diff --git a/sdk/constructive-cli/src/admin/README.md b/sdk/constructive-cli/src/admin/README.md index 01696ddc08..19e780852e 100644 --- a/sdk/constructive-cli/src/admin/README.md +++ b/sdk/constructive-cli/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 44 +- **Tables:** 26 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index b5440cbd61..b812a61b38 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -30,45 +30,27 @@ csdk auth set-token | `org-get-subordinates-record` | orgGetSubordinatesRecord CRUD operations | | `app-permission` | appPermission CRUD operations | | `org-permission` | orgPermission CRUD operations | -| `app-limit-credit-redemption` | appLimitCreditRedemption CRUD operations | -| `app-limit-credit-code-item` | appLimitCreditCodeItem CRUD operations | -| `app-limit-credit` | appLimitCredit CRUD operations | | `org-member` | orgMember CRUD operations | | `app-permission-default` | appPermissionDefault CRUD operations | +| `org-permission-default` | orgPermissionDefault CRUD operations | | `app-admin-grant` | appAdminGrant CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | -| `org-permission-default` | orgPermissionDefault CRUD operations | -| `app-membership-default` | appMembershipDefault CRUD operations | | `org-admin-grant` | orgAdminGrant CRUD operations | -| `org-membership-default` | orgMembershipDefault CRUD operations | | `org-owner-grant` | orgOwnerGrant CRUD operations | -| `app-limit-caps-default` | appLimitCapsDefault CRUD operations | -| `org-limit-caps-default` | orgLimitCapsDefault CRUD operations | -| `app-limit-cap` | appLimitCap CRUD operations | -| `org-limit-cap` | orgLimitCap CRUD operations | -| `org-chart-edge` | orgChartEdge CRUD operations | -| `app-limit-default` | appLimitDefault CRUD operations | -| `org-limit-default` | orgLimitDefault CRUD operations | -| `org-limit-credit` | orgLimitCredit CRUD operations | -| `app-limit-credit-code` | appLimitCreditCode CRUD operations | -| `app-limit-warning` | appLimitWarning CRUD operations | | `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | | `app-claimed-invite` | appClaimedInvite CRUD operations | -| `org-limit-warning` | orgLimitWarning CRUD operations | | `membership-type` | membershipType CRUD operations | | `app-grant` | appGrant CRUD operations | +| `app-membership-default` | appMembershipDefault CRUD operations | +| `org-membership-default` | orgMembershipDefault CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | | `org-grant` | orgGrant CRUD operations | +| `org-chart-edge` | orgChartEdge CRUD operations | | `org-membership-setting` | orgMembershipSetting CRUD operations | -| `app-limit-event` | appLimitEvent CRUD operations | -| `org-limit-event` | orgLimitEvent CRUD operations | | `app-membership` | appMembership CRUD operations | +| `app-invite` | appInvite CRUD operations | | `org-membership` | orgMembership CRUD operations | | `org-member-profile` | orgMemberProfile CRUD operations | -| `app-invite` | appInvite CRUD operations | -| `app-limit` | appLimit CRUD operations | -| `org-limit-aggregate` | orgLimitAggregate CRUD operations | -| `org-limit` | orgLimit CRUD operations | | `org-invite` | orgInvite CRUD operations | | `app-permissions-get-padded-mask` | appPermissionsGetPaddedMask | | `org-permissions-get-padded-mask` | orgPermissionsGetPaddedMask | @@ -221,82 +203,6 @@ CRUD operations for OrgPermission records. **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` -### `app-limit-credit-redemption` - -CRUD operations for AppLimitCreditRedemption records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCreditRedemption records | -| `find-first` | Find first matching appLimitCreditRedemption record | -| `get` | Get a appLimitCreditRedemption by id | -| `create` | Create a new appLimitCreditRedemption | -| `update` | Update an existing appLimitCreditRedemption | -| `delete` | Delete a appLimitCreditRedemption | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `creditCodeId` | UUID | -| `entityId` | UUID | - -**Required create fields:** `creditCodeId`, `entityId` - -### `app-limit-credit-code-item` - -CRUD operations for AppLimitCreditCodeItem records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCreditCodeItem records | -| `find-first` | Find first matching appLimitCreditCodeItem record | -| `get` | Get a appLimitCreditCodeItem by id | -| `create` | Create a new appLimitCreditCodeItem | -| `update` | Update an existing appLimitCreditCodeItem | -| `delete` | Delete a appLimitCreditCodeItem | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `creditCodeId` | UUID | -| `defaultLimitId` | UUID | -| `amount` | BigInt | -| `creditType` | String | - -**Required create fields:** `creditCodeId`, `defaultLimitId`, `amount` -**Optional create fields (backend defaults):** `creditType` - -### `app-limit-credit` - -CRUD operations for AppLimitCredit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCredit records | -| `find-first` | Find first matching appLimitCredit record | -| `get` | Get a appLimitCredit by id | -| `create` | Create a new appLimitCredit | -| `update` | Update an existing appLimitCredit | -| `delete` | Delete a appLimitCredit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `defaultLimitId` | UUID | -| `actorId` | UUID | -| `amount` | BigInt | -| `creditType` | String | -| `reason` | String | - -**Required create fields:** `defaultLimitId`, `amount` -**Optional create fields (backend defaults):** `actorId`, `creditType`, `reason` - ### `org-member` CRUD operations for OrgMember records. @@ -344,6 +250,30 @@ CRUD operations for AppPermissionDefault records. **Optional create fields (backend defaults):** `permissions` +### `org-permission-default` + +CRUD operations for OrgPermissionDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgPermissionDefault records | +| `find-first` | Find first matching orgPermissionDefault record | +| `get` | Get a orgPermissionDefault by id | +| `create` | Create a new orgPermissionDefault | +| `update` | Update an existing orgPermissionDefault | +| `delete` | Delete a orgPermissionDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissions` | BitString | +| `entityId` | UUID | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `permissions` + ### `app-admin-grant` CRUD operations for AppAdminGrant records. @@ -398,57 +328,6 @@ CRUD operations for AppOwnerGrant records. **Required create fields:** `actorId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` -### `org-permission-default` - -CRUD operations for OrgPermissionDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefault records | -| `find-first` | Find first matching orgPermissionDefault record | -| `get` | Get a orgPermissionDefault by id | -| `create` | Create a new orgPermissionDefault | -| `update` | Update an existing orgPermissionDefault | -| `delete` | Delete a orgPermissionDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `permissions` | BitString | -| `entityId` | UUID | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `permissions` - -### `app-membership-default` - -CRUD operations for AppMembershipDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appMembershipDefault records | -| `find-first` | Find first matching appMembershipDefault record | -| `get` | Get a appMembershipDefault by id | -| `create` | Create a new appMembershipDefault | -| `update` | Update an existing appMembershipDefault | -| `delete` | Delete a appMembershipDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isVerified` | Boolean | - -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` - ### `org-admin-grant` CRUD operations for OrgAdminGrant records. @@ -477,34 +356,6 @@ CRUD operations for OrgAdminGrant records. **Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` -### `org-membership-default` - -CRUD operations for OrgMembershipDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMembershipDefault records | -| `find-first` | Find first matching orgMembershipDefault record | -| `get` | Get a orgMembershipDefault by id | -| `create` | Create a new orgMembershipDefault | -| `update` | Update an existing orgMembershipDefault | -| `delete` | Delete a orgMembershipDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `entityId` | UUID | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` - ### `org-owner-grant` CRUD operations for OrgOwnerGrant records. @@ -533,116 +384,129 @@ CRUD operations for OrgOwnerGrant records. **Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` -### `app-limit-caps-default` +### `org-chart-edge-grant` -CRUD operations for AppLimitCapsDefault records. +CRUD operations for OrgChartEdgeGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitCapsDefault records | -| `find-first` | Find first matching appLimitCapsDefault record | -| `get` | Get a appLimitCapsDefault by id | -| `create` | Create a new appLimitCapsDefault | -| `update` | Update an existing appLimitCapsDefault | -| `delete` | Delete a appLimitCapsDefault | +| `list` | List all orgChartEdgeGrant records | +| `find-first` | Find first matching orgChartEdgeGrant record | +| `get` | Get a orgChartEdgeGrant by id | +| `create` | Create a new orgChartEdgeGrant | +| `update` | Update an existing orgChartEdgeGrant | +| `delete` | Delete a orgChartEdgeGrant | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `max` | BigInt | +| `entityId` | UUID | +| `childId` | UUID | +| `parentId` | UUID | +| `grantorId` | UUID | +| `isGrant` | Boolean | +| `positionTitle` | String | +| `positionLevel` | Int | +| `createdAt` | Datetime | -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max` +**Required create fields:** `entityId`, `childId` +**Optional create fields (backend defaults):** `parentId`, `grantorId`, `isGrant`, `positionTitle`, `positionLevel` -### `org-limit-caps-default` +### `app-claimed-invite` -CRUD operations for OrgLimitCapsDefault records. +CRUD operations for AppClaimedInvite records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitCapsDefault records | -| `find-first` | Find first matching orgLimitCapsDefault record | -| `get` | Get a orgLimitCapsDefault by id | -| `create` | Create a new orgLimitCapsDefault | -| `update` | Update an existing orgLimitCapsDefault | -| `delete` | Delete a orgLimitCapsDefault | +| `list` | List all appClaimedInvite records | +| `find-first` | Find first matching appClaimedInvite record | +| `get` | Get a appClaimedInvite by id | +| `create` | Create a new appClaimedInvite | +| `update` | Update an existing appClaimedInvite | +| `delete` | Delete a appClaimedInvite | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `max` | BigInt | +| `data` | JSON | +| `senderId` | UUID | +| `receiverId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max` +**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` -### `app-limit-cap` +### `membership-type` -CRUD operations for AppLimitCap records. +CRUD operations for MembershipType records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitCap records | -| `find-first` | Find first matching appLimitCap record | -| `get` | Get a appLimitCap by id | -| `create` | Create a new appLimitCap | -| `update` | Update an existing appLimitCap | -| `delete` | Delete a appLimitCap | +| `list` | List all membershipType records | +| `find-first` | Find first matching membershipType record | +| `get` | Get a membershipType by id | +| `create` | Create a new membershipType | +| `update` | Update an existing membershipType | +| `delete` | Delete a membershipType | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | +| `id` | Int | | `name` | String | -| `entityId` | UUID | -| `max` | BigInt | +| `description` | String | +| `scope` | String | +| `parentMembershipType` | Int | +| `hasUsersTableEntry` | Boolean | -**Required create fields:** `name`, `entityId` -**Optional create fields (backend defaults):** `max` +**Required create fields:** `name`, `description`, `scope` +**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` -### `org-limit-cap` +### `app-grant` -CRUD operations for OrgLimitCap records. +CRUD operations for AppGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitCap records | -| `find-first` | Find first matching orgLimitCap record | -| `get` | Get a orgLimitCap by id | -| `create` | Create a new orgLimitCap | -| `update` | Update an existing orgLimitCap | -| `delete` | Delete a orgLimitCap | +| `list` | List all appGrant records | +| `find-first` | Find first matching appGrant record | +| `get` | Get a appGrant by id | +| `create` | Create a new appGrant | +| `update` | Update an existing appGrant | +| `delete` | Delete a appGrant | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `entityId` | UUID | -| `max` | BigInt | +| `permissions` | BitString | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `grantorId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `name`, `entityId` -**Optional create fields (backend defaults):** `max` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` -### `org-chart-edge` +### `app-membership-default` -CRUD operations for OrgChartEdge records. +CRUD operations for AppMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgChartEdge records | -| `find-first` | Find first matching orgChartEdge record | -| `get` | Get a orgChartEdge by id | -| `create` | Create a new orgChartEdge | -| `update` | Update an existing orgChartEdge | -| `delete` | Delete a orgChartEdge | +| `list` | List all appMembershipDefault records | +| `find-first` | Find first matching appMembershipDefault record | +| `get` | Get a appMembershipDefault by id | +| `create` | Create a new appMembershipDefault | +| `update` | Update an existing appMembershipDefault | +| `delete` | Delete a appMembershipDefault | **Fields:** @@ -651,281 +515,40 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `entityId` | UUID | -| `childId` | UUID | -| `parentId` | UUID | -| `positionTitle` | String | -| `positionLevel` | Int | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isVerified` | Boolean | -**Required create fields:** `entityId`, `childId` -**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` -### `app-limit-default` +### `org-membership-default` -CRUD operations for AppLimitDefault records. +CRUD operations for OrgMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitDefault records | -| `find-first` | Find first matching appLimitDefault record | -| `get` | Get a appLimitDefault by id | -| `create` | Create a new appLimitDefault | -| `update` | Update an existing appLimitDefault | -| `delete` | Delete a appLimitDefault | +| `list` | List all orgMembershipDefault records | +| `find-first` | Find first matching orgMembershipDefault record | +| `get` | Get a orgMembershipDefault by id | +| `create` | Create a new orgMembershipDefault | +| `update` | Update an existing orgMembershipDefault | +| `delete` | Delete a orgMembershipDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `max` | BigInt | -| `softMax` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max`, `softMax` - -### `org-limit-default` - -CRUD operations for OrgLimitDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitDefault records | -| `find-first` | Find first matching orgLimitDefault record | -| `get` | Get a orgLimitDefault by id | -| `create` | Create a new orgLimitDefault | -| `update` | Update an existing orgLimitDefault | -| `delete` | Delete a orgLimitDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `max` | BigInt | -| `softMax` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max`, `softMax` - -### `org-limit-credit` - -CRUD operations for OrgLimitCredit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitCredit records | -| `find-first` | Find first matching orgLimitCredit record | -| `get` | Get a orgLimitCredit by id | -| `create` | Create a new orgLimitCredit | -| `update` | Update an existing orgLimitCredit | -| `delete` | Delete a orgLimitCredit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `defaultLimitId` | UUID | -| `actorId` | UUID | -| `entityId` | UUID | -| `amount` | BigInt | -| `creditType` | String | -| `reason` | String | - -**Required create fields:** `defaultLimitId`, `amount` -**Optional create fields (backend defaults):** `actorId`, `entityId`, `creditType`, `reason` - -### `app-limit-credit-code` - -CRUD operations for AppLimitCreditCode records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCreditCode records | -| `find-first` | Find first matching appLimitCreditCode record | -| `get` | Get a appLimitCreditCode by id | -| `create` | Create a new appLimitCreditCode | -| `update` | Update an existing appLimitCreditCode | -| `delete` | Delete a appLimitCreditCode | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `code` | String | -| `maxRedemptions` | Int | -| `currentRedemptions` | Int | -| `expiresAt` | Datetime | - -**Required create fields:** `code` -**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` - -### `app-limit-warning` - -CRUD operations for AppLimitWarning records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitWarning records | -| `find-first` | Find first matching appLimitWarning record | -| `get` | Get a appLimitWarning by id | -| `create` | Create a new appLimitWarning | -| `update` | Update an existing appLimitWarning | -| `delete` | Delete a appLimitWarning | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `warningType` | String | -| `thresholdValue` | BigInt | -| `taskIdentifier` | String | - -**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` - -### `org-chart-edge-grant` - -CRUD operations for OrgChartEdgeGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgChartEdgeGrant records | -| `find-first` | Find first matching orgChartEdgeGrant record | -| `get` | Get a orgChartEdgeGrant by id | -| `create` | Create a new orgChartEdgeGrant | -| `update` | Update an existing orgChartEdgeGrant | -| `delete` | Delete a orgChartEdgeGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `entityId` | UUID | -| `childId` | UUID | -| `parentId` | UUID | -| `grantorId` | UUID | -| `isGrant` | Boolean | -| `positionTitle` | String | -| `positionLevel` | Int | -| `createdAt` | Datetime | - -**Required create fields:** `entityId`, `childId` -**Optional create fields (backend defaults):** `parentId`, `grantorId`, `isGrant`, `positionTitle`, `positionLevel` - -### `app-claimed-invite` - -CRUD operations for AppClaimedInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appClaimedInvite records | -| `find-first` | Find first matching appClaimedInvite record | -| `get` | Get a appClaimedInvite by id | -| `create` | Create a new appClaimedInvite | -| `update` | Update an existing appClaimedInvite | -| `delete` | Delete a appClaimedInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `data` | JSON | -| `senderId` | UUID | -| `receiverId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` - -### `org-limit-warning` - -CRUD operations for OrgLimitWarning records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitWarning records | -| `find-first` | Find first matching orgLimitWarning record | -| `get` | Get a orgLimitWarning by id | -| `create` | Create a new orgLimitWarning | -| `update` | Update an existing orgLimitWarning | -| `delete` | Delete a orgLimitWarning | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `warningType` | String | -| `thresholdValue` | BigInt | -| `taskIdentifier` | String | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | | `entityId` | UUID | -**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` -**Optional create fields (backend defaults):** `entityId` - -### `membership-type` - -CRUD operations for MembershipType records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | -| `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | - -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` - -### `app-grant` - -CRUD operations for AppGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appGrant records | -| `find-first` | Find first matching appGrant record | -| `get` | Get a appGrant by id | -| `create` | Create a new appGrant | -| `update` | Update an existing appGrant | -| `delete` | Delete a appGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `permissions` | BitString | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` ### `org-claimed-invite` @@ -984,6 +607,35 @@ CRUD operations for OrgGrant records. **Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` +### `org-chart-edge` + +CRUD operations for OrgChartEdge records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgChartEdge records | +| `find-first` | Find first matching orgChartEdge record | +| `get` | Get a orgChartEdge by id | +| `create` | Create a new orgChartEdge | +| `update` | Update an existing orgChartEdge | +| `delete` | Delete a orgChartEdge | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `entityId` | UUID | +| `childId` | UUID | +| `parentId` | UUID | +| `positionTitle` | String | +| `positionLevel` | Int | + +**Required create fields:** `entityId`, `childId` +**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` + ### `org-membership-setting` CRUD operations for OrgMembershipSetting records. @@ -1019,72 +671,6 @@ CRUD operations for OrgMembershipSetting records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` -### `app-limit-event` - -CRUD operations for AppLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitEvent records | -| `find-first` | Find first matching appLimitEvent record | -| `get` | Get a appLimitEvent by id | -| `create` | Create a new appLimitEvent | -| `update` | Update an existing appLimitEvent | -| `delete` | Delete a appLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `organizationId` | UUID | -| `entityType` | String | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `organizationId`, `entityType`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - -### `org-limit-event` - -CRUD operations for OrgLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitEvent records | -| `find-first` | Find first matching orgLimitEvent record | -| `get` | Get a orgLimitEvent by id | -| `create` | Create a new orgLimitEvent | -| `update` | Update an existing orgLimitEvent | -| `delete` | Delete a orgLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `organizationId` | UUID | -| `entityType` | String | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `organizationId`, `entityType`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - ### `app-membership` CRUD operations for AppMembership records. @@ -1122,6 +708,39 @@ CRUD operations for AppMembership records. **Required create fields:** `actorId` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` +### `app-invite` + +CRUD operations for AppInvite records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appInvite records | +| `find-first` | Find first matching appInvite record | +| `get` | Get a appInvite by id | +| `create` | Create a new appInvite | +| `update` | Update an existing appInvite | +| `delete` | Delete a appInvite | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `email` | Email | +| `senderId` | UUID | +| `inviteToken` | String | +| `inviteValid` | Boolean | +| `inviteLimit` | Int | +| `inviteCount` | Int | +| `multiple` | Boolean | +| `data` | JSON | +| `profileId` | UUID | +| `expiresAt` | Datetime | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` + ### `org-membership` CRUD operations for OrgMembership records. @@ -1193,143 +812,6 @@ CRUD operations for OrgMemberProfile records. **Required create fields:** `membershipId`, `entityId`, `actorId` **Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` -### `app-invite` - -CRUD operations for AppInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appInvite records | -| `find-first` | Find first matching appInvite record | -| `get` | Get a appInvite by id | -| `create` | Create a new appInvite | -| `update` | Update an existing appInvite | -| `delete` | Delete a appInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `email` | Email | -| `senderId` | UUID | -| `inviteToken` | String | -| `inviteValid` | Boolean | -| `inviteLimit` | Int | -| `inviteCount` | Int | -| `multiple` | Boolean | -| `data` | JSON | -| `profileId` | UUID | -| `expiresAt` | Datetime | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` - -### `app-limit` - -CRUD operations for AppLimit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimit records | -| `find-first` | Find first matching appLimit record | -| `get` | Get a appLimit by id | -| `create` | Create a new appLimit | -| `update` | Update an existing appLimit | -| `delete` | Delete a appLimit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `num` | BigInt | -| `max` | BigInt | -| `softMax` | BigInt | -| `windowStart` | Datetime | -| `windowDuration` | Interval | -| `planMax` | BigInt | -| `purchasedCredits` | BigInt | -| `periodCredits` | BigInt | -| `organizationId` | UUID | -| `entityType` | String | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `organizationId`, `entityType` - -### `org-limit-aggregate` - -CRUD operations for OrgLimitAggregate records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitAggregate records | -| `find-first` | Find first matching orgLimitAggregate record | -| `get` | Get a orgLimitAggregate by id | -| `create` | Create a new orgLimitAggregate | -| `update` | Update an existing orgLimitAggregate | -| `delete` | Delete a orgLimitAggregate | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `entityId` | UUID | -| `num` | BigInt | -| `max` | BigInt | -| `softMax` | BigInt | -| `windowStart` | Datetime | -| `windowDuration` | Interval | -| `planMax` | BigInt | -| `purchasedCredits` | BigInt | -| `periodCredits` | BigInt | -| `reserved` | BigInt | -| `organizationId` | UUID | -| `entityType` | String | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `reserved`, `organizationId`, `entityType` - -### `org-limit` - -CRUD operations for OrgLimit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimit records | -| `find-first` | Find first matching orgLimit record | -| `get` | Get a orgLimit by id | -| `create` | Create a new orgLimit | -| `update` | Update an existing orgLimit | -| `delete` | Delete a orgLimit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `num` | BigInt | -| `max` | BigInt | -| `softMax` | BigInt | -| `windowStart` | Datetime | -| `windowDuration` | Interval | -| `planMax` | BigInt | -| `purchasedCredits` | BigInt | -| `periodCredits` | BigInt | -| `entityId` | UUID | -| `organizationId` | UUID | -| `entityType` | String | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `organizationId`, `entityType` - ### `org-invite` CRUD operations for OrgInvite records. diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index 4356f854d7..88ab8b820e 100644 --- a/sdk/constructive-cli/src/admin/cli/commands.ts +++ b/sdk/constructive-cli/src/admin/cli/commands.ts @@ -10,45 +10,27 @@ import orgGetManagersRecordCmd from './commands/org-get-managers-record'; import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record'; import appPermissionCmd from './commands/app-permission'; import orgPermissionCmd from './commands/org-permission'; -import appLimitCreditRedemptionCmd from './commands/app-limit-credit-redemption'; -import appLimitCreditCodeItemCmd from './commands/app-limit-credit-code-item'; -import appLimitCreditCmd from './commands/app-limit-credit'; import orgMemberCmd from './commands/org-member'; import appPermissionDefaultCmd from './commands/app-permission-default'; +import orgPermissionDefaultCmd from './commands/org-permission-default'; import appAdminGrantCmd from './commands/app-admin-grant'; import appOwnerGrantCmd from './commands/app-owner-grant'; -import orgPermissionDefaultCmd from './commands/org-permission-default'; -import appMembershipDefaultCmd from './commands/app-membership-default'; import orgAdminGrantCmd from './commands/org-admin-grant'; -import orgMembershipDefaultCmd from './commands/org-membership-default'; import orgOwnerGrantCmd from './commands/org-owner-grant'; -import appLimitCapsDefaultCmd from './commands/app-limit-caps-default'; -import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default'; -import appLimitCapCmd from './commands/app-limit-cap'; -import orgLimitCapCmd from './commands/org-limit-cap'; -import orgChartEdgeCmd from './commands/org-chart-edge'; -import appLimitDefaultCmd from './commands/app-limit-default'; -import orgLimitDefaultCmd from './commands/org-limit-default'; -import orgLimitCreditCmd from './commands/org-limit-credit'; -import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; -import appLimitWarningCmd from './commands/app-limit-warning'; import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; import appClaimedInviteCmd from './commands/app-claimed-invite'; -import orgLimitWarningCmd from './commands/org-limit-warning'; import membershipTypeCmd from './commands/membership-type'; import appGrantCmd from './commands/app-grant'; +import appMembershipDefaultCmd from './commands/app-membership-default'; +import orgMembershipDefaultCmd from './commands/org-membership-default'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; import orgGrantCmd from './commands/org-grant'; +import orgChartEdgeCmd from './commands/org-chart-edge'; import orgMembershipSettingCmd from './commands/org-membership-setting'; -import appLimitEventCmd from './commands/app-limit-event'; -import orgLimitEventCmd from './commands/org-limit-event'; import appMembershipCmd from './commands/app-membership'; +import appInviteCmd from './commands/app-invite'; import orgMembershipCmd from './commands/org-membership'; import orgMemberProfileCmd from './commands/org-member-profile'; -import appInviteCmd from './commands/app-invite'; -import appLimitCmd from './commands/app-limit'; -import orgLimitAggregateCmd from './commands/org-limit-aggregate'; -import orgLimitCmd from './commands/org-limit'; import orgInviteCmd from './commands/org-invite'; import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask'; import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask'; @@ -76,45 +58,27 @@ const createCommandMap: () => Record< 'org-get-subordinates-record': orgGetSubordinatesRecordCmd, 'app-permission': appPermissionCmd, 'org-permission': orgPermissionCmd, - 'app-limit-credit-redemption': appLimitCreditRedemptionCmd, - 'app-limit-credit-code-item': appLimitCreditCodeItemCmd, - 'app-limit-credit': appLimitCreditCmd, 'org-member': orgMemberCmd, 'app-permission-default': appPermissionDefaultCmd, + 'org-permission-default': orgPermissionDefaultCmd, 'app-admin-grant': appAdminGrantCmd, 'app-owner-grant': appOwnerGrantCmd, - 'org-permission-default': orgPermissionDefaultCmd, - 'app-membership-default': appMembershipDefaultCmd, 'org-admin-grant': orgAdminGrantCmd, - 'org-membership-default': orgMembershipDefaultCmd, 'org-owner-grant': orgOwnerGrantCmd, - 'app-limit-caps-default': appLimitCapsDefaultCmd, - 'org-limit-caps-default': orgLimitCapsDefaultCmd, - 'app-limit-cap': appLimitCapCmd, - 'org-limit-cap': orgLimitCapCmd, - 'org-chart-edge': orgChartEdgeCmd, - 'app-limit-default': appLimitDefaultCmd, - 'org-limit-default': orgLimitDefaultCmd, - 'org-limit-credit': orgLimitCreditCmd, - 'app-limit-credit-code': appLimitCreditCodeCmd, - 'app-limit-warning': appLimitWarningCmd, 'org-chart-edge-grant': orgChartEdgeGrantCmd, 'app-claimed-invite': appClaimedInviteCmd, - 'org-limit-warning': orgLimitWarningCmd, 'membership-type': membershipTypeCmd, 'app-grant': appGrantCmd, + 'app-membership-default': appMembershipDefaultCmd, + 'org-membership-default': orgMembershipDefaultCmd, 'org-claimed-invite': orgClaimedInviteCmd, 'org-grant': orgGrantCmd, + 'org-chart-edge': orgChartEdgeCmd, 'org-membership-setting': orgMembershipSettingCmd, - 'app-limit-event': appLimitEventCmd, - 'org-limit-event': orgLimitEventCmd, 'app-membership': appMembershipCmd, + 'app-invite': appInviteCmd, 'org-membership': orgMembershipCmd, 'org-member-profile': orgMemberProfileCmd, - 'app-invite': appInviteCmd, - 'app-limit': appLimitCmd, - 'org-limit-aggregate': orgLimitAggregateCmd, - 'org-limit': orgLimitCmd, 'org-invite': orgInviteCmd, 'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd, 'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd, @@ -130,7 +94,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n membership-type membershipType CRUD operations\n app-grant appGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-grant orgGrant CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-invite appInvite CRUD operations\n app-limit appLimit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n org-invite orgInvite CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n membership-type membershipType CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-membership appMembership CRUD operations\n app-invite appInvite CRUD operations\n org-membership orgMembership CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-invite orgInvite CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-redemption.ts b/sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-redemption.ts deleted file mode 100644 index c2d2be8b89..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-redemption.ts +++ /dev/null @@ -1,279 +0,0 @@ -/** - * CLI commands for AppLimitCreditRedemption - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitCreditRedemptionInput, - AppLimitCreditRedemptionPatch, - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - creditCodeId: 'uuid', - entityId: 'uuid', -}; -const usage = - '\napp-limit-credit-redemption \n\nCommands:\n list List appLimitCreditRedemption records\n find-first Find first matching appLimitCreditRedemption record\n get Get a appLimitCreditRedemption by ID\n create Create a new appLimitCreditRedemption\n update Update an existing appLimitCreditRedemption\n delete Delete a appLimitCreditRedemption\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - creditCodeId: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - > & { - select: AppLimitCreditRedemptionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditRedemption.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - creditCodeId: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - > & { - select: AppLimitCreditRedemptionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditRedemption.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitCreditRedemption - .findOne({ - id: answers.id as string, - select: { - id: true, - creditCodeId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'creditCodeId', - message: 'creditCodeId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitCreditRedemptionInput['appLimitCreditRedemption']; - const client = getClient(); - const result = await client.appLimitCreditRedemption - .create({ - data: { - creditCodeId: cleanedData.creditCodeId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - creditCodeId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'creditCodeId', - message: 'creditCodeId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitCreditRedemptionPatch; - const client = getClient(); - const result = await client.appLimitCreditRedemption - .update({ - where: { - id: answers.id as string, - }, - data: { - creditCodeId: cleanedData.creditCodeId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - creditCodeId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitCreditRedemption - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts b/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts index ab07b93cd3..3b1686e6f4 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { id: 'int', name: 'string', description: 'string', - prefix: 'string', + scope: 'string', parentMembershipType: 'int', hasUsersTableEntry: 'boolean', }; @@ -77,7 +77,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, name: true, description: true, - prefix: true, + scope: true, parentMembershipType: true, hasUsersTableEntry: true, }; @@ -103,7 +103,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, name: true, description: true, - prefix: true, + scope: true, parentMembershipType: true, hasUsersTableEntry: true, }; @@ -141,7 +141,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, name: true, description: true, - prefix: true, + scope: true, parentMembershipType: true, hasUsersTableEntry: true, }, @@ -173,8 +173,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', required: true, }, { @@ -203,7 +203,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { name: cleanedData.name, description: cleanedData.description, - prefix: cleanedData.prefix, + scope: cleanedData.scope, parentMembershipType: cleanedData.parentMembershipType, hasUsersTableEntry: cleanedData.hasUsersTableEntry, }, @@ -211,7 +211,7 @@ async function handleCreate(argv: Partial>, prompter: In id: true, name: true, description: true, - prefix: true, + scope: true, parentMembershipType: true, hasUsersTableEntry: true, }, @@ -249,8 +249,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', required: false, }, { @@ -279,7 +279,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { name: cleanedData.name, description: cleanedData.description, - prefix: cleanedData.prefix, + scope: cleanedData.scope, parentMembershipType: cleanedData.parentMembershipType, hasUsersTableEntry: cleanedData.hasUsersTableEntry, }, @@ -287,7 +287,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: true, name: true, description: true, - prefix: true, + scope: true, parentMembershipType: true, hasUsersTableEntry: true, }, diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-credit.ts b/sdk/constructive-cli/src/admin/cli/commands/org-limit-credit.ts deleted file mode 100644 index 62d3fe2e44..0000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/org-limit-credit.ts +++ /dev/null @@ -1,359 +0,0 @@ -/** - * CLI commands for OrgLimitCredit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitCreditInput, - OrgLimitCreditPatch, - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - defaultLimitId: 'uuid', - actorId: 'uuid', - entityId: 'uuid', - amount: 'int', - creditType: 'string', - reason: 'string', -}; -const usage = - '\norg-limit-credit \n\nCommands:\n list List orgLimitCredit records\n find-first Find first matching orgLimitCredit record\n get Get a orgLimitCredit by ID\n create Create a new orgLimitCredit\n update Update an existing orgLimitCredit\n delete Delete a orgLimitCredit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitCreditSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCredit.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitCreditSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCredit.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitCredit - .findOne({ - id: answers.id as string, - select: { - id: true, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: true, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitCreditInput['orgLimitCredit']; - const client = getClient(); - const result = await client.orgLimitCredit - .create({ - data: { - defaultLimitId: cleanedData.defaultLimitId, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - reason: cleanedData.reason, - }, - select: { - id: true, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: false, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: false, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitCreditPatch; - const client = getClient(); - const result = await client.orgLimitCredit - .update({ - where: { - id: answers.id as string, - }, - data: { - defaultLimitId: cleanedData.defaultLimitId, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - reason: cleanedData.reason, - }, - select: { - id: true, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.orgLimitCredit - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 53fcc9ce06..027e84fff8 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -25,45 +25,27 @@ const db = createClient({ | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | -| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | -| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | -| `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitCapsDefault` | findMany, findOne, create, update, delete | -| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitCredit` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -194,139 +176,71 @@ const updated = await db.orgPermission.update({ where: { id: '' }, data: { const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditRedemption` - -CRUD operations for AppLimitCreditRedemption records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditRedemption records -const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Create -const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCodeItem` - -CRUD operations for AppLimitCreditCodeItem records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `defaultLimitId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCodeItem records -const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Create -const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCredit` +### `db.orgMember` -CRUD operations for AppLimitCredit records. +CRUD operations for OrgMember records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | +| `isAdmin` | Boolean | Yes | | `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appLimitCredit records -const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); +// List all orgMember records +const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMember` +### `db.appPermissionDefault` -CRUD operations for OrgMember records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | +| `permissions` | BitString | Yes | **Operations:** ```typescript -// List all orgMember records -const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.orgPermissionDefault` -CRUD operations for AppPermissionDefault records. +CRUD operations for OrgPermissionDefault records. **Fields:** @@ -334,24 +248,25 @@ CRUD operations for AppPermissionDefault records. |-------|------|----------| | `id` | UUID | No | | `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -422,676 +337,284 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermissionDefault` +### `db.orgAdminGrant` -CRUD operations for OrgPermissionDefault records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.orgOwnerGrant` -CRUD operations for AppMembershipDefault records. +CRUD operations for OrgOwnerGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdgeGrant` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdgeGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | | `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.appClaimedInvite` -CRUD operations for OrgMembershipDefault records. +CRUD operations for AppClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all appClaimedInvite records +const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.membershipType` -CRUD operations for OrgOwnerGrant records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `scope` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', scope: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCapsDefault` +### `db.appGrant` -CRUD operations for AppLimitCapsDefault records. +CRUD operations for AppGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCapsDefault records -const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appGrant records +const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitCapsDefault` +### `db.appMembershipDefault` -CRUD operations for OrgLimitCapsDefault records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCap` +### `db.orgMembershipDefault` -CRUD operations for AppLimitCap records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | | `entityId` | UUID | Yes | -| `max` | BigInt | Yes | **Operations:** ```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdge` - -CRUD operations for OrgChartEdge records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | - -**Operations:** - -```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCode` - -CRUD operations for AppLimitCreditCode records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitWarning` - -CRUD operations for AppLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdgeGrant` - -CRUD operations for OrgChartEdgeGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitWarning` - -CRUD operations for OrgLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appGrant` - -CRUD operations for AppGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -1165,9 +688,9 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { perm const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgChartEdge` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgChartEdge records. **Fields:** @@ -1176,117 +699,71 @@ CRUD operations for OrgMembershipSetting records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` +### `db.orgMembershipSetting` -CRUD operations for AppLimitEvent records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` - -CRUD operations for OrgLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| | `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -1333,91 +810,6 @@ const updated = await db.appMembership.update({ where: { id: '' }, data: { const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - ### `db.appInvite` CRUD operations for AppInvite records. @@ -1459,129 +851,89 @@ const updated = await db.appInvite.update({ where: { id: '' }, data: { ema const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimit` +### `db.orgMembership` -CRUD operations for AppLimit records. +CRUD operations for OrgMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | | `entityId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); +// List all orgMembership records +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimit` +### `db.orgMemberProfile` -CRUD operations for OrgLimit records. +CRUD operations for OrgMemberProfile records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` diff --git a/sdk/constructive-cli/src/admin/orm/index.ts b/sdk/constructive-cli/src/admin/orm/index.ts index 9c9e9839c6..4fdc6e95eb 100644 --- a/sdk/constructive-cli/src/admin/orm/index.ts +++ b/sdk/constructive-cli/src/admin/orm/index.ts @@ -9,45 +9,27 @@ import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; -import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; -import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; -import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; -import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { OrgLimitCreditModel } from './models/orgLimitCredit'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { AppLimitWarningModel } from './models/appLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { AppMembershipModel } from './models/appMembership'; +import { AppInviteModel } from './models/appInvite'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { AppInviteModel } from './models/appInvite'; -import { AppLimitModel } from './models/appLimit'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitModel } from './models/orgLimit'; import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -88,45 +70,27 @@ export function createClient(config: OrmClientConfig) { orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), - appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), - appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), orgAdminGrant: new OrgAdminGrantModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - appLimitCapsDefault: new AppLimitCapsDefaultModel(client), - orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - orgLimitCredit: new OrgLimitCreditModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - appLimitWarning: new AppLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), appMembership: new AppMembershipModel(client), + appInvite: new AppInviteModel(client), orgMembership: new OrgMembershipModel(client), orgMemberProfile: new OrgMemberProfileModel(client), - appInvite: new AppInviteModel(client), - appLimit: new AppLimitModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimit: new OrgLimitModel(client), orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 9d6397d59c..c06ff000a6 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -266,40 +266,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ -export interface AppLimitCreditRedemption { - id: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string | null; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string | null; -} -/** Items within a credit code — each row grants credits for a specific limit definition */ -export interface AppLimitCreditCodeItem { - id: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string | null; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string | null; - /** Number of credits this item grants per redemption */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface AppLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; @@ -316,6 +282,14 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface OrgPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; + /** References the entity these default permissions apply to */ + entityId?: string | null; +} /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; @@ -338,26 +312,6 @@ export interface AppOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} /** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; @@ -371,18 +325,6 @@ export interface OrgAdminGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; @@ -396,118 +338,6 @@ export interface OrgOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface OrgLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { id: string; @@ -540,20 +370,6 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; -} /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -562,8 +378,8 @@ export interface MembershipType { name?: string | null; /** Description of what this membership type represents */ description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope?: string | null; /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ parentMembershipType?: number | null; /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ @@ -582,6 +398,30 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -610,6 +450,22 @@ export interface OrgGrant { createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -636,62 +492,6 @@ export interface OrgMembershipSetting { /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ limitAllocationMode?: string | null; } -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; @@ -721,6 +521,32 @@ export interface AppMembership { actorId?: string | null; profileId?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { + id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; @@ -777,119 +603,6 @@ export interface OrgMemberProfile { profilePicture?: ConstructiveInternalTypeImage | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ -export interface OrgLimitAggregate { - id: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string | null; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string | null; - /** Current aggregate usage count for this entity and limit */ - num?: string | null; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - entityId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; /** Email address of the invited recipient */ @@ -937,66 +650,31 @@ export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface AppLimitCreditRedemptionRelations { - creditCode?: AppLimitCreditCode | null; -} -export interface AppLimitCreditCodeItemRelations { - creditCode?: AppLimitCreditCode | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditRelations { - defaultLimit?: AppLimitDefault | null; -} export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} +export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface OrgPermissionDefaultRelations {} -export interface AppMembershipDefaultRelations {} export interface OrgAdminGrantRelations {} -export interface OrgMembershipDefaultRelations {} export interface OrgOwnerGrantRelations {} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface OrgChartEdgeRelations {} -export interface AppLimitDefaultRelations { - appLimitCreditsByDefaultLimitId?: ConnectionResult; - appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitDefaultRelations { - orgLimitCreditsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitCreditRelations { - defaultLimit?: OrgLimitDefault | null; -} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} -export interface OrgLimitWarningRelations {} export interface MembershipTypeRelations {} export interface AppGrantRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGrantRelations {} +export interface OrgChartEdgeRelations {} export interface OrgMembershipSettingRelations {} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface AppMembershipRelations {} +export interface AppInviteRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } -export interface AppInviteRelations {} -export interface AppLimitRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & @@ -1005,52 +683,32 @@ export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & - AppLimitCreditRedemptionRelations; -export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & - AppLimitCreditCodeItemRelations; -export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; +export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; +export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; -export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { @@ -1075,38 +733,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type AppLimitCreditRedemptionSelect = { - id?: boolean; - creditCodeId?: boolean; - entityId?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; -}; -export type AppLimitCreditCodeItemSelect = { - id?: boolean; - creditCodeId?: boolean; - defaultLimitId?: boolean; - amount?: boolean; - creditType?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; export type OrgMemberSelect = { id?: boolean; isAdmin?: boolean; @@ -1117,7 +743,12 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppAdminGrantSelect = { +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; +}; +export type AppAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; @@ -1133,20 +764,6 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -1156,15 +773,6 @@ export type OrgAdminGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; -}; export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; @@ -1174,106 +782,6 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgChartEdgeSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - appLimitCreditsByDefaultLimitId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - appLimitCreditCodeItemsByDefaultLimitId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - orgLimitCreditsByDefaultLimitId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; -}; -export type OrgLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - entityId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - defaultLimit?: { - select: OrgLimitDefaultSelect; - }; -}; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; export type OrgChartEdgeGrantSelect = { id?: boolean; entityId?: boolean; @@ -1293,19 +801,11 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; - entityId?: boolean; -}; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; - prefix?: boolean; + scope?: boolean; parentMembershipType?: boolean; hasUsersTableEntry?: boolean; }; @@ -1318,6 +818,24 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; export type OrgClaimedInviteSelect = { id?: boolean; data?: boolean; @@ -1337,6 +855,16 @@ export type OrgGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; +}; export type OrgMembershipSettingSelect = { id?: boolean; createdAt?: boolean; @@ -1353,36 +881,6 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; limitAllocationMode?: boolean; }; -export type AppLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -1401,6 +899,21 @@ export type AppMembershipSelect = { actorId?: boolean; profileId?: boolean; }; +export type AppInviteSelect = { + id?: boolean; + email?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -1440,68 +953,6 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; -export type OrgLimitAggregateSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - reserved?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; export type OrgInviteSelect = { id?: boolean; email?: boolean; @@ -1571,66 +1022,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1659,6 +1050,20 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } +export interface OrgPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultFilter; +} export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1699,42 +1104,6 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; -} -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1757,28 +1126,6 @@ export interface OrgAdminGrantFilter { /** Negates the expression. */ not?: OrgAdminGrantFilter; } -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; -} export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1801,203 +1148,7 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; -} -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -export interface OrgChartEdgeGrantFilter { +export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `entityId` field. */ @@ -2041,26 +1192,6 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; -} export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; @@ -2068,8 +1199,8 @@ export interface MembershipTypeFilter { name?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `parentMembershipType` field. */ parentMembershipType?: IntFilter; /** Filter by the object’s `hasUsersTableEntry` field. */ @@ -2103,6 +1234,50 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} export interface OrgClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2147,6 +1322,30 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2183,74 +1382,6 @@ export interface OrgMembershipSettingFilter { /** Negates the expression. */ not?: OrgMembershipSettingFilter; } -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2291,6 +1422,38 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } +export interface AppInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: AppInviteFilter[]; + /** Negates the expression. */ + not?: AppInviteFilter; +} export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2371,13 +1534,15 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface AppInviteFilter { +export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; /** Filter by the object’s `senderId` field. */ senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; /** Filter by the object’s `inviteToken` field. */ inviteToken?: StringFilter; /** Filter by the object’s `inviteValid` field. */ @@ -2390,162 +1555,22 @@ export interface AppInviteFilter { multiple?: BooleanFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; + and?: OrgInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; + or?: OrgInviteFilter[]; /** Negates the expression. */ - not?: AppInviteFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; -} -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; + not?: OrgInviteFilter; } // ============ OrderBy Types ============ export type OrgGetManagersRecordsOrderBy = @@ -2592,46 +1617,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type OrgMemberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,6 +1637,16 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2684,34 +1679,6 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2730,24 +1697,6 @@ export type OrgAdminGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2766,140 +1715,6 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2938,22 +1753,6 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2964,8 +1763,8 @@ export type MembershipTypeOrderBy = | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' @@ -2988,32 +1787,68 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgClaimedInviteOrderBy = +export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgGrantOrderBy = + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgClaimedInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' @@ -3026,6 +1861,26 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3058,66 +1913,6 @@ export type OrgMembershipSettingOrderBy = | 'POPULATE_MEMBER_EMAIL_DESC' | 'LIMIT_ALLOCATION_MODE_ASC' | 'LIMIT_ALLOCATION_MODE_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3154,6 +1949,36 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3220,130 +2045,6 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3469,76 +2170,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - appLimitCreditRedemption: { - creditCodeId: string; - entityId: string; - }; -} -export interface AppLimitCreditRedemptionPatch { - creditCodeId?: string | null; - entityId?: string | null; -} -export interface UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - appLimitCreditCodeItem: { - creditCodeId: string; - defaultLimitId: string; - amount: string; - creditType?: string; - }; -} -export interface AppLimitCreditCodeItemPatch { - creditCodeId?: string | null; - defaultLimitId?: string | null; - amount?: string | null; - creditType?: string | null; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - appLimitCredit: { - defaultLimitId: string; - actorId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface AppLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - appLimitCreditPatch: AppLimitCreditPatch; -} -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMemberInput { clientMutationId?: string; orgMember: { @@ -3579,6 +2210,26 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; appAdminGrant: { @@ -3623,203 +2274,251 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateOrgAdminGrantInput { clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; + orgAdminGrant: { + isGrant?: boolean; + actorId: string; entityId: string; + grantorId?: string; }; } -export interface OrgPermissionDefaultPatch { - permissions?: string | null; +export interface OrgAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; entityId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgPermissionDefaultInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteOrgPermissionDefaultInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateOrgOwnerGrantInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; + orgOwnerGrant: { + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; } -export interface UpdateAppMembershipDefaultInput { +export interface OrgOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgAdminGrantInput { +export interface CreateOrgChartEdgeGrantInput { clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; + orgChartEdgeGrant: { entityId: string; + childId: string; + parentId?: string; grantorId?: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; }; } -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgChartEdgeGrantPatch { entityId?: string | null; + childId?: string | null; + parentId?: string | null; grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateOrgAdminGrantInput { +export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppClaimedInviteInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appClaimedInvitePatch: AppClaimedInvitePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgOwnerGrantInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgOwnerGrant: { + membershipType: { + name: string; + description: string; + scope: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; + }; +} +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + scope?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + id: number; + membershipTypePatch: MembershipTypePatch; +} +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + appGrant: { + permissions?: string; isGrant?: boolean; actorId: string; - entityId: string; grantorId?: string; }; } -export interface OrgOwnerGrantPatch { +export interface AppGrantPatch { + permissions?: string | null; isGrant?: boolean | null; actorId?: string | null; - entityId?: string | null; grantorId?: string | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapsDefaultInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appLimitCapsDefault: { - name: string; - max?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface AppLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; } -export interface UpdateAppLimitCapsDefaultInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -export interface DeleteAppLimitCapsDefaultInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCapsDefaultInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - orgLimitCapsDefault: { - name: string; - max?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; }; } -export interface OrgLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; } -export interface UpdateOrgLimitCapsDefaultInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -export interface DeleteOrgLimitCapsDefaultInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapInput { +export interface CreateOrgClaimedInviteInput { clientMutationId?: string; - appLimitCap: { - name: string; + orgClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; entityId: string; - max?: string; }; } -export interface AppLimitCapPatch { - name?: string | null; +export interface OrgClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; entityId?: string | null; - max?: string | null; } -export interface UpdateAppLimitCapInput { +export interface UpdateOrgClaimedInviteInput { clientMutationId?: string; id: string; - appLimitCapPatch: AppLimitCapPatch; + orgClaimedInvitePatch: OrgClaimedInvitePatch; } -export interface DeleteAppLimitCapInput { +export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCapInput { +export interface CreateOrgGrantInput { clientMutationId?: string; - orgLimitCap: { - name: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; entityId: string; - max?: string; + grantorId?: string; }; } -export interface OrgLimitCapPatch { - name?: string | null; +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; entityId?: string | null; - max?: string | null; + grantorId?: string | null; } -export interface UpdateOrgLimitCapInput { +export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; - orgLimitCapPatch: OrgLimitCapPatch; + orgGrantPatch: OrgGrantPatch; } -export interface DeleteOrgLimitCapInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } @@ -3849,2467 +2548,855 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - appLimitDefault: { - name: string; - max?: string; - softMax?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface AppLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: string; - softMax?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCreditInput { +export interface CreateAppInviteInput { clientMutationId?: string; - orgLimitCredit: { - defaultLimitId: string; - actorId?: string; - entityId?: string; - amount: string; - creditType?: string; - reason?: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + expiresAt?: string; }; } -export interface OrgLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - entityId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; - }; -} -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeGrantInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - orgChartEdgeGrant: { + orgMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; entityId: string; - childId: string; - parentId?: string; - grantorId?: string; - isGrant?: boolean; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgeGrantPatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -export interface DeleteOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; -} -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; -} -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - orgLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - entityId?: string; + isReadOnly?: boolean; + profileId?: string; }; } -export interface OrgLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; entityId?: string | null; + isReadOnly?: boolean | null; + profileId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateAppGrantInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; + orgMemberProfile: { + membershipId: string; + entityId: string; actorId: string; - grantorId?: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; +export interface OrgMemberProfilePatch { + membershipId?: string | null; + entityId?: string | null; actorId?: string | null; - grantorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgClaimedInviteInput { +export interface CreateOrgInviteInput { clientMutationId?: string; - orgClaimedInvite: { - data?: Record; + orgInvite: { + email?: ConstructiveInternalTypeEmail; senderId?: string; receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + isReadOnly?: boolean; + expiresAt?: string; entityId: string; }; } -export interface OrgClaimedInvitePatch { - data?: Record | null; +export interface OrgInvitePatch { + email?: ConstructiveInternalTypeEmail | null; senderId?: string | null; receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; + isReadOnly?: boolean | null; + expiresAt?: string | null; entityId?: string | null; } -export interface UpdateOrgClaimedInviteInput { +export interface UpdateOrgInviteInput { clientMutationId?: string; id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; + orgInvitePatch: OrgInvitePatch; } -export interface DeleteOrgClaimedInviteInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGrantInput { +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SubmitAppInviteCodeInput { clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; + token?: string; } -export interface UpdateOrgGrantInput { +export interface SubmitOrgInviteCodeInput { clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; + token?: string; } -export interface DeleteOrgGrantInput { - clientMutationId?: string; - 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; } -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface AppLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - orgLimitAggregate: { - name?: string; - entityId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - reserved?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitAggregatePatch { - name?: string | null; - entityId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - reserved?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -export interface DeleteOrgLimitAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - entityId: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - orgInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - receiverId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - isReadOnly?: boolean; - expiresAt?: string; - entityId: string; - }; -} -export interface OrgInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - receiverId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - isReadOnly?: boolean | null; - expiresAt?: string | null; - entityId?: string | null; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - orgInvitePatch: OrgInvitePatch; -} -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppLimitDefault: { - appLimitCreditsByDefaultLimitId: 'AppLimitCredit', - appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', - }, - OrgLimitDefault: { - orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -/** 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; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * 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 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; -} -/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ -export interface BigIntFilter { - /** 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; -} -/** 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; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** 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; -} -/** 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; -} -/** A connection to a list of `AppPermission` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - nodes?: { - select: AppPermissionSelect; - }; - edges?: { - select: AppPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - nodes?: { - select: OrgPermissionSelect; - }; - edges?: { - select: OrgPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface SubmitAppInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitAppInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitOrgInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitOrgInviteCodePayloadSelect = { - 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 CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type CreateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type UpdateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type DeleteAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type CreateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type UpdateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type DeleteAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type CreateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type UpdateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type DeleteAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type CreateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type UpdateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type DeleteAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was created by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type CreateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was updated by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type UpdateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was deleted by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type DeleteOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type CreateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type UpdateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type DeleteAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type CreateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type UpdateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type DeleteOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeEmailFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeEmail; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeEmail; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: ConstructiveInternalTypeEmail[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: ConstructiveInternalTypeEmail[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: ConstructiveInternalTypeEmail; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -export type CreateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** 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; } -export type UpdateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; } -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; +export type AppPermissionConnectionSelect = { + nodes?: { + select: AppPermissionSelect; }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + edges?: { + select: AppPermissionEdgeSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + pageInfo?: { + select: PageInfoSelect; }; + totalCount?: boolean; }; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; } -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; +export type OrgPermissionConnectionSelect = { + nodes?: { + select: OrgPermissionSelect; }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + edges?: { + select: OrgPermissionEdgeSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + pageInfo?: { + select: PageInfoSelect; }; + totalCount?: boolean; }; -export interface CreateAppLimitCapsDefaultPayload { +export interface SubmitAppInviteCodePayload { clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; + result?: boolean | null; } -export type CreateAppLimitCapsDefaultPayloadSelect = { +export type SubmitAppInviteCodePayloadSelect = { clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; + result?: boolean; }; -export interface UpdateAppLimitCapsDefaultPayload { +export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; + result?: boolean | null; } -export type UpdateAppLimitCapsDefaultPayloadSelect = { +export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; + result?: boolean; }; -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | 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; } -export type DeleteAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; }; -export interface CreateOrgLimitCapsDefaultPayload { +export interface CreateAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type CreateOrgLimitCapsDefaultPayloadSelect = { +export type CreateAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface UpdateOrgLimitCapsDefaultPayload { +export interface UpdateAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type UpdateOrgLimitCapsDefaultPayloadSelect = { +export type UpdateAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface DeleteOrgLimitCapsDefaultPayload { +export interface DeleteAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type DeleteOrgLimitCapsDefaultPayloadSelect = { +export type DeleteAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface CreateAppLimitCapPayload { +export interface CreateOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type CreateAppLimitCapPayloadSelect = { +export type CreateOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface UpdateAppLimitCapPayload { +export interface UpdateOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type UpdateAppLimitCapPayloadSelect = { +export type UpdateOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface DeleteAppLimitCapPayload { +export interface DeleteOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type DeleteAppLimitCapPayloadSelect = { +export type DeleteOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface CreateOrgLimitCapPayload { +export interface CreateOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was created by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type CreateOrgLimitCapPayloadSelect = { +export type CreateOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { +export interface UpdateOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was updated by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type UpdateOrgLimitCapPayloadSelect = { +export type UpdateOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface DeleteOrgLimitCapPayload { +export interface DeleteOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was deleted by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type DeleteOrgLimitCapPayloadSelect = { +export type DeleteOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type CreateOrgChartEdgePayloadSelect = { +export type CreateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface CreateOrgLimitCreditPayload { +export interface CreateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type CreateOrgLimitCreditPayloadSelect = { +export type CreateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface UpdateOrgLimitCreditPayload { +export interface UpdateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type UpdateOrgLimitCreditPayloadSelect = { +export type UpdateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface DeleteOrgLimitCreditPayload { +export interface DeleteAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type DeleteOrgLimitCreditPayloadSelect = { +export type DeleteAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateAppLimitWarningPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateAppLimitWarningPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateAppLimitWarningPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateAppLimitWarningPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteAppLimitWarningPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteAppLimitWarningPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateOrgChartEdgeGrantPayload { @@ -6402,51 +3489,6 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -6503,38 +3545,128 @@ export type CreateAppGrantPayloadSelect = { appGrant?: { select: AppGrantSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type UpdateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type DeleteAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6627,6 +3759,51 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type CreateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was created by this mutation. */ @@ -6672,96 +3849,6 @@ export type DeleteOrgMembershipSettingPayloadSelect = { select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type UpdateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type DeleteAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type UpdateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type DeleteOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -6807,96 +3894,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; export interface CreateAppInvitePayload { clientMutationId?: string | null; /** The `AppInvite` that was created by this mutation. */ @@ -6942,139 +3939,94 @@ export type DeleteAppInvitePayloadSelect = { select: AppInviteEdgeSelect; }; }; -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type CreateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateOrgLimitAggregatePayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateOrgLimitAggregatePayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateOrgLimitAggregatePayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateOrgLimitAggregatePayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteOrgLimitAggregatePayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteOrgLimitAggregatePayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface CreateOrgLimitPayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type CreateOrgLimitPayloadSelect = { +export type CreateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface UpdateOrgLimitPayload { +export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type UpdateOrgLimitPayloadSelect = { +export type UpdateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface DeleteOrgLimitPayload { +export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type DeleteOrgLimitPayloadSelect = { +export type DeleteOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7163,42 +4115,6 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} -export type AppLimitCreditRedemptionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditRedemptionSelect; - }; -}; -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -export type AppLimitCreditCodeItemEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeItemSelect; - }; -}; -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -export type AppLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditSelect; - }; -}; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -7223,6 +4139,18 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -7247,30 +4175,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -7283,18 +4187,6 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} -export type OrgMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipDefaultSelect; - }; -}; /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { cursor?: string | null; @@ -7307,126 +4199,6 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -export type AppLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapsDefaultSelect; - }; -}; -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -export type OrgLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapsDefaultSelect; - }; -}; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -export type OrgLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapSelect; - }; -}; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} -export type OrgLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCreditSelect; - }; -}; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -export type AppLimitCreditCodeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeSelect; - }; -}; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} -export type AppLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitWarningSelect; - }; -}; /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { cursor?: string | null; @@ -7451,18 +4223,6 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} -export type OrgLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitWarningSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -7487,6 +4247,30 @@ export type AppGrantEdgeSelect = { select: AppGrantSelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { cursor?: string | null; @@ -7511,40 +4295,28 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} -export type OrgMembershipSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSettingSelect; - }; -}; -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type AppLimitEventEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitEventSelect; + select: OrgChartEdgeSelect; }; }; -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; } -export type OrgLimitEventEdgeSelect = { +export type OrgMembershipSettingEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitEventSelect; + select: OrgMembershipSettingSelect; }; }; /** A `AppMembership` edge in the connection. */ @@ -7559,30 +4331,6 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; /** A `AppInvite` edge in the connection. */ export interface AppInviteEdge { cursor?: string | null; @@ -7595,40 +4343,28 @@ export type AppInviteEdgeSelect = { select: AppInviteSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } -export type OrgLimitAggregateEdgeSelect = { +export type OrgMembershipEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitAggregateSelect; + select: OrgMembershipSelect; }; }; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } -export type OrgLimitEdgeSelect = { +export type OrgMemberProfileEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitSelect; + select: OrgMemberProfileSelect; }; }; /** A `OrgInvite` edge in the connection. */ diff --git a/sdk/constructive-cli/src/admin/orm/models/index.ts b/sdk/constructive-cli/src/admin/orm/models/index.ts index c2222e7884..3580afbcaf 100644 --- a/sdk/constructive-cli/src/admin/orm/models/index.ts +++ b/sdk/constructive-cli/src/admin/orm/models/index.ts @@ -7,43 +7,25 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; -export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; -export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; -export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { OrgLimitCreditModel } from './orgLimitCredit'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { AppLimitWarningModel } from './appLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { AppMembershipModel } from './appMembership'; +export { AppInviteModel } from './appInvite'; export { OrgMembershipModel } from './orgMembership'; export { OrgMemberProfileModel } from './orgMemberProfile'; -export { AppInviteModel } from './appInvite'; -export { AppLimitModel } from './appLimit'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitModel } from './orgLimit'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-cli/src/agent/README.md b/sdk/constructive-cli/src/agent/README.md new file mode 100644 index 0000000000..bbd318306c --- /dev/null +++ b/sdk/constructive-cli/src/agent/README.md @@ -0,0 +1,47 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 6 +- **Custom queries:** 0 +- **Custom mutations:** 1 + +**Generators:** ORM, CLI + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### CLI Commands (`./cli`) + +inquirerer-based CLI commands for `csdk`. + +See [cli/README.md](./cli/README.md) for command reference. + +--- + +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/agent/cli/README.md b/sdk/constructive-cli/src/agent/cli/README.md new file mode 100644 index 0000000000..af5406f9f2 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/README.md @@ -0,0 +1,379 @@ +# 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) | +| `agent-plan` | agentPlan CRUD operations | +| `agent-message` | agentMessage CRUD operations | +| `agent-task` | agentTask CRUD operations | +| `agent-thread` | agentThread CRUD operations | +| `agent-prompt` | agentPrompt CRUD operations | +| `agent-skill` | agentSkill CRUD operations | +| `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. | + +## Infrastructure Commands + +### `context` + +Manage named API contexts (kubectl-style). + +| Subcommand | Description | +|------------|-------------| +| `create --endpoint ` | Create a new context | +| `list` | List all contexts | +| `use ` | Set the active context | +| `current` | Show current context | +| `delete ` | Delete a context | + +Configuration is stored at `~/.csdk/config/`. + +### `auth` + +Manage authentication tokens per context. + +| Subcommand | Description | +|------------|-------------| +| `set-token ` | Store bearer token for current context | +| `status` | Show auth status across all contexts | +| `logout` | Remove credentials for current context | + +### `config` + +Manage per-context key-value configuration variables. + +| Subcommand | Description | +|------------|-------------| +| `get ` | Get a config value | +| `set ` | Set a config value | +| `list` | List all config values | +| `delete ` | Delete a config value | + +Variables are scoped to the active context and stored at `~/.csdk/config/`. + +## Table Commands + +### `agent-plan` + +CRUD operations for AgentPlan records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentPlan records | +| `find-first` | Find first matching agentPlan record | +| `get` | Get a agentPlan by id | +| `create` | Create a new agentPlan | +| `update` | Update an existing agentPlan | +| `delete` | Delete a agentPlan | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `ownerId` | UUID | +| `threadId` | UUID | +| `title` | String | +| `description` | String | +| `status` | String | + +**Required create fields:** `threadId`, `title` +**Optional create fields (backend defaults):** `ownerId`, `description`, `status` + +### `agent-message` + +CRUD operations for AgentMessage records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentMessage records | +| `find-first` | Find first matching agentMessage record | +| `get` | Get a agentMessage by id | +| `create` | Create a new agentMessage | +| `update` | Update an existing agentMessage | +| `delete` | Delete a agentMessage | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `ownerId` | UUID | +| `parts` | JSON | +| `threadId` | UUID | +| `authorRole` | String | +| `model` | String | + +**Required create fields:** `threadId`, `authorRole` +**Optional create fields (backend defaults):** `ownerId`, `parts`, `model` + +### `agent-task` + +CRUD operations for AgentTask records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentTask records | +| `find-first` | Find first matching agentTask record | +| `get` | Get a agentTask by id | +| `create` | Create a new agentTask | +| `update` | Update an existing agentTask | +| `delete` | Delete a agentTask | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `ownerId` | UUID | +| `status` | String | +| `planId` | UUID | +| `description` | String | +| `source` | String | +| `error` | String | +| `orderIndex` | Int | +| `requiresApproval` | Boolean | +| `approvalStatus` | String | +| `approvedBy` | UUID | +| `approvedAt` | Datetime | +| `approvalFeedback` | String | + +**Required create fields:** `planId`, `description` +**Optional create fields (backend defaults):** `ownerId`, `status`, `source`, `error`, `orderIndex`, `requiresApproval`, `approvalStatus`, `approvedBy`, `approvedAt`, `approvalFeedback` + +### `agent-thread` + +CRUD operations for AgentThread records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentThread records | +| `find-first` | Find first matching agentThread record | +| `get` | Get a agentThread by id | +| `create` | Create a new agentThread | +| `update` | Update an existing agentThread | +| `delete` | Delete a agentThread | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `ownerId` | UUID | +| `status` | String | +| `title` | String | +| `mode` | String | +| `model` | String | +| `systemPrompt` | String | +| `promptTemplateId` | UUID | + +**Optional create fields (backend defaults):** `ownerId`, `status`, `title`, `mode`, `model`, `systemPrompt`, `promptTemplateId` + +### `agent-prompt` + +CRUD operations for AgentPrompt records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentPrompt records | +| `find-first` | Find first matching agentPrompt record | +| `get` | Get a agentPrompt by id | +| `create` | Create a new agentPrompt | +| `update` | Update an existing agentPrompt | +| `delete` | Delete a agentPrompt | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `name` | String | +| `content` | String | +| `description` | String | +| `isDefault` | Boolean | +| `metadata` | JSON | + +**Required create fields:** `name`, `content` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `description`, `isDefault`, `metadata` + +### `agent-skill` + +CRUD operations for AgentSkill records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentSkill records | +| `find-first` | Find first matching agentSkill record | +| `search ` | Search agentSkill records | +| `get` | Get a agentSkill by id | +| `create` | Create a new agentSkill | +| `update` | Update an existing agentSkill | +| `delete` | Delete a agentSkill | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `title` | String | +| `description` | String | +| `body` | String | +| `keywords` | String | +| `isActive` | Boolean | +| `metadata` | JSON | +| `search` | FullText | +| `embedding` | Vector | +| `embeddingUpdatedAt` | Datetime | +| `searchTsvRank` | Float | +| `embeddingVectorDistance` | Float | +| `titleTrgmSimilarity` | Float | +| `descriptionTrgmSimilarity` | Float | +| `bodyTrgmSimilarity` | Float | +| `searchScore` | Float | + +**Required create fields:** `title`, `body` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `description`, `keywords`, `isActive`, `metadata`, `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. + +> **Unified Search API fields:** `search`, `titleTrgmSimilarity`, `descriptionTrgmSimilarity`, `bodyTrgmSimilarity`, `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +**Search Examples:** + +*Vector similarity search via `embedding` (manual vector):* +```bash +# Pass a pre-computed vector array via dot-notation +csdk agent-skill list --where.embedding.vector '[0.1,0.2,0.3]' --where.embedding.distance 1.0 --select title,embeddingVectorDistance +``` + +*Vector semantic search via `embedding` with --auto-embed:* +```bash +# --auto-embed converts text to vectors using the configured embedder (e.g. Ollama nomic-embed-text) +EMBEDDER_PROVIDER=ollama csdk agent-skill search "semantic query" --auto-embed --select title,embeddingVectorDistance +EMBEDDER_PROVIDER=ollama csdk agent-skill list --where.embedding.vector "semantic query" --auto-embed --select title,embeddingVectorDistance +``` + +*Create/update with auto-embedded `embedding` via --auto-embed:* +```bash +# --auto-embed on create/update converts text strings in vector fields to embeddings before saving +EMBEDDER_PROVIDER=ollama csdk agent-skill create --embedding "text to embed" --auto-embed +EMBEDDER_PROVIDER=ollama csdk agent-skill update --embedding "new text to embed" --auto-embed +``` + +*Full-text search via tsvector (`search`):* +```bash +csdk agent-skill list --where.search "search query" --select title,tsvRank +``` + +*Fuzzy search via trigram similarity (`trgmTitle`):* +```bash +csdk agent-skill list --where.trgmTitle.value "approximate query" --where.trgmTitle.threshold 0.3 --select title,titleTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmDescription`):* +```bash +csdk agent-skill list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity +``` + +*Fuzzy search via trigram similarity (`trgmBody`):* +```bash +csdk agent-skill list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity +``` + +*Composite search (unifiedSearch dispatches to all text adapters):* +```bash +csdk agent-skill list --where.unifiedSearch "search query" --select title,tsvRank,titleTrgmSimilarity,descriptionTrgmSimilarity,bodyTrgmSimilarity,searchScore +``` + +*Search with pagination and field projection:* +```bash +csdk agent-skill list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore +csdk agent-skill search "query" --limit 10 --select id,title,searchScore +``` + + +## Custom Operations + +### `provision-bucket` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bucketKey` | String (required) | + | `--input.ownerId` | UUID | + +## Output + +All commands output JSON to stdout. Pipe to `jq` for formatting: + +```bash +csdk car list | jq '.[]' +csdk car get --id | jq '.' +``` + +## Non-Interactive Mode + +Use `--no-tty` to skip all interactive prompts (useful for scripts and CI): + +```bash +csdk --no-tty car create --name "Sedan" --year 2024 +``` + +--- + +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/agent/cli/commands.ts b/sdk/constructive-cli/src/agent/cli/commands.ts new file mode 100644 index 0000000000..b242ae8ed0 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands.ts @@ -0,0 +1,67 @@ +/** + * 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 agentPlanCmd from './commands/agent-plan'; +import agentMessageCmd from './commands/agent-message'; +import agentTaskCmd from './commands/agent-task'; +import agentThreadCmd from './commands/agent-thread'; +import agentPromptCmd from './commands/agent-prompt'; +import agentSkillCmd from './commands/agent-skill'; +import provisionBucketCmd from './commands/provision-bucket'; +const createCommandMap: () => Record< + string, + ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions + ) => Promise +> = () => ({ + context: contextCmd, + auth: authCmd, + 'agent-plan': agentPlanCmd, + 'agent-message': agentMessageCmd, + 'agent-task': agentTaskCmd, + 'agent-thread': agentThreadCmd, + 'agent-prompt': agentPromptCmd, + 'agent-skill': agentSkillCmd, + 'provision-bucket': provisionBucketCmd, +}); +const usage = + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent-plan agentPlan CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n agent-thread agentThread CRUD operations\n agent-prompt agentPrompt CRUD operations\n agent-skill agentSkill CRUD operations\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; +export const commands = async ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + let { first: command, newArgv } = extractFirst(argv); + const commandMap = createCommandMap(); + if (!command) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'command', + message: 'What do you want to do?', + options: Object.keys(commandMap), + }, + ]); + command = answer.command as string; + } + const commandFn = commandMap[command]; + if (!commandFn) { + console.log(usage); + console.error(`Unknown command: ${command}`); + process.exit(1); + } + await commandFn(newArgv, prompter, options); + prompter.close(); + return argv; +}; diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts new file mode 100644 index 0000000000..5770836964 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts @@ -0,0 +1,349 @@ +/** + * CLI commands for AgentMessage + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentMessageInput, + AgentMessagePatch, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + parts: 'json', + threadId: 'uuid', + authorRole: 'string', + model: 'string', +}; +const usage = + '\nagent-message \n\nCommands:\n list List agentMessage records\n find-first Find first matching agentMessage record\n get Get a agentMessage by ID\n create Create a new agentMessage\n update Update an existing agentMessage\n delete Delete a agentMessage\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + ownerId: true, + parts: true, + threadId: true, + authorRole: true, + model: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentMessage.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + threadId: true, + authorRole: true, + model: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentMessage.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.agentMessage + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + threadId: true, + authorRole: true, + model: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parts', + message: 'parts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: true, + }, + { + type: 'text', + name: 'authorRole', + message: 'authorRole', + required: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAgentMessageInput['agentMessage']; + const client = getClient(); + const result = await client.agentMessage + .create({ + data: { + ownerId: cleanedData.ownerId, + parts: cleanedData.parts, + threadId: cleanedData.threadId, + authorRole: cleanedData.authorRole, + model: cleanedData.model, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + threadId: true, + authorRole: true, + model: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parts', + message: 'parts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: false, + }, + { + type: 'text', + name: 'authorRole', + message: 'authorRole', + required: false, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentMessagePatch; + const client = getClient(); + const result = await client.agentMessage + .update({ + where: { + id: answers.id as string, + }, + data: { + ownerId: cleanedData.ownerId, + parts: cleanedData.parts, + threadId: cleanedData.threadId, + authorRole: cleanedData.authorRole, + model: cleanedData.model, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + threadId: true, + authorRole: true, + model: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentMessage + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts new file mode 100644 index 0000000000..955eb6b584 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts @@ -0,0 +1,346 @@ +/** + * CLI commands for AgentPlan + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentPlanInput, + AgentPlanPatch, + AgentPlanSelect, + AgentPlanFilter, + AgentPlanOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + threadId: 'uuid', + title: 'string', + description: 'string', + status: 'string', +}; +const usage = + '\nagent-plan \n\nCommands:\n list List agentPlan records\n find-first Find first matching agentPlan record\n get Get a agentPlan by ID\n create Create a new agentPlan\n update Update an existing agentPlan\n delete Delete a agentPlan\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + ownerId: true, + threadId: true, + title: true, + description: true, + status: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentPlanSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentPlan.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + ownerId: true, + threadId: true, + title: true, + description: true, + status: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentPlanSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentPlan.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.agentPlan + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + threadId: true, + title: true, + description: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateAgentPlanInput['agentPlan']; + const client = getClient(); + const result = await client.agentPlan + .create({ + data: { + ownerId: cleanedData.ownerId, + threadId: cleanedData.threadId, + title: cleanedData.title, + description: cleanedData.description, + status: cleanedData.status, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + threadId: true, + title: true, + description: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: false, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentPlanPatch; + const client = getClient(); + const result = await client.agentPlan + .update({ + where: { + id: answers.id as string, + }, + data: { + ownerId: cleanedData.ownerId, + threadId: cleanedData.threadId, + title: cleanedData.title, + description: cleanedData.description, + status: cleanedData.status, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + threadId: true, + title: true, + description: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentPlan + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts new file mode 100644 index 0000000000..5efcb21d98 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts @@ -0,0 +1,393 @@ +/** + * CLI commands for AgentPrompt + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentPromptInput, + AgentPromptPatch, + AgentPromptSelect, + AgentPromptFilter, + AgentPromptOrderBy, +} 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', + name: 'string', + content: 'string', + description: 'string', + isDefault: 'boolean', + metadata: 'json', +}; +const usage = + '\nagent-prompt \n\nCommands:\n list List agentPrompt records\n find-first Find first matching agentPrompt record\n get Get a agentPrompt by ID\n create Create a new agentPrompt\n update Update an existing agentPrompt\n delete Delete a agentPrompt\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + name: true, + content: true, + description: true, + isDefault: true, + metadata: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentPromptSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentPrompt.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + name: true, + content: true, + description: true, + isDefault: true, + metadata: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentPromptSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentPrompt.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.agentPrompt + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + name: true, + content: true, + description: true, + isDefault: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'content', + message: 'content', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAgentPromptInput['agentPrompt']; + const client = getClient(); + const result = await client.agentPrompt + .create({ + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + name: cleanedData.name, + content: cleanedData.content, + description: cleanedData.description, + isDefault: cleanedData.isDefault, + metadata: cleanedData.metadata, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + name: true, + content: true, + description: true, + isDefault: 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: 'createdBy', + message: 'createdBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'content', + message: 'content', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isDefault', + message: 'isDefault', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentPromptPatch; + const client = getClient(); + const result = await client.agentPrompt + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + name: cleanedData.name, + content: cleanedData.content, + description: cleanedData.description, + isDefault: cleanedData.isDefault, + metadata: cleanedData.metadata, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + name: true, + content: true, + description: true, + isDefault: 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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentPrompt + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-skill.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-skill.ts new file mode 100644 index 0000000000..bfff3f3b14 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-skill.ts @@ -0,0 +1,564 @@ +/** + * CLI commands for AgentSkill + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentSkillInput, + AgentSkillPatch, + AgentSkillSelect, + AgentSkillFilter, + AgentSkillOrderBy, +} 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', + title: 'string', + description: 'string', + body: 'string', + keywords: 'string', + isActive: 'boolean', + metadata: 'json', + search: 'string', + embedding: 'string', + embeddingUpdatedAt: 'string', + searchTsvRank: 'float', + embeddingVectorDistance: 'float', + titleTrgmSimilarity: 'float', + descriptionTrgmSimilarity: 'float', + bodyTrgmSimilarity: 'float', + searchScore: 'float', +}; +import { resolveEmbedder, autoEmbedWhere, autoEmbedInput } from '../embedder'; +const usage = + '\nagent-skill \n\nCommands:\n list List agentSkill records\n find-first Find first matching agentSkill record\n search Search agentSkill records\n get Get a agentSkill by ID\n create Create a new agentSkill\n update Update an existing agentSkill\n\nCreate/Update Options:\n --auto-embed Convert text values in vector fields to embeddings before saving\n delete Delete a agentSkill\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n --auto-embed Convert text queries to vectors via configured embedder\n\nEmbedding Options (for --auto-embed):\n Set EMBEDDER_PROVIDER=ollama to enable text-to-vector embedding.\n Optional: EMBEDDER_MODEL (default: nomic-embed-text)\n Optional: EMBEDDER_BASE_URL (default: http://localhost:11434)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'search', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'search': + return handleSearch(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + title: true, + description: true, + body: true, + keywords: true, + isActive: true, + metadata: true, + embedding: true, + embeddingUpdatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentSkillSelect; + } + >(argv, defaultSelect); + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + findManyArgs.where = await autoEmbedWhere(findManyArgs.where ?? {}, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.agentSkill.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + title: true, + description: true, + body: true, + keywords: true, + isActive: true, + metadata: true, + embedding: true, + embeddingUpdatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentSkillSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentSkill.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleSearch(argv: Partial>, _prompter: Inquirerer) { + try { + const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; + if (!query) { + console.error('Error: search requires a argument'); + process.exit(1); + } + const searchWhere = { + embedding: { + vector: query, + }, + search: { + query, + }, + trgmTitle: { + value: query, + threshold: 0.3, + }, + trgmDescription: { + value: query, + threshold: 0.3, + }, + trgmBody: { + value: query, + threshold: 0.3, + }, + }; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedWhere(searchWhere ?? {}, ['embedding'], embedder); + } + const defaultSelect = { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + title: true, + description: true, + body: true, + keywords: true, + isActive: true, + metadata: true, + embedding: true, + embeddingUpdatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentSkillSelect; + } + >(argv, defaultSelect, searchWhere); + const client = getClient(); + const result = await client.agentSkill.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to search records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.agentSkill + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + title: true, + description: true, + body: true, + keywords: true, + isActive: true, + metadata: true, + embedding: true, + embeddingUpdatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + 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: 'title', + message: 'title', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: true, + }, + { + type: 'text', + name: 'keywords', + message: 'keywords', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embeddingUpdatedAt', + message: 'embeddingUpdatedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateAgentSkillInput['agentSkill']; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.agentSkill + .create({ + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + title: cleanedData.title, + description: cleanedData.description, + body: cleanedData.body, + keywords: cleanedData.keywords, + isActive: cleanedData.isActive, + metadata: cleanedData.metadata, + embedding: cleanedData.embedding, + embeddingUpdatedAt: cleanedData.embeddingUpdatedAt, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + title: true, + description: true, + body: true, + keywords: true, + isActive: true, + metadata: true, + embedding: true, + embeddingUpdatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async 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: 'title', + message: 'title', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'body', + message: 'body', + required: false, + }, + { + type: 'text', + name: 'keywords', + message: 'keywords', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embedding', + message: 'embedding', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'embeddingUpdatedAt', + message: 'embeddingUpdatedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentSkillPatch; + if (argv['auto-embed']) { + const embedder = resolveEmbedder(); + if (!embedder) { + console.error( + '--auto-embed requires an embedder. Set EMBEDDER_PROVIDER=ollama (and optionally EMBEDDER_MODEL, EMBEDDER_BASE_URL).' + ); + process.exit(1); + } + await autoEmbedInput(cleanedData, ['embedding'], embedder); + } + const client = getClient(); + const result = await client.agentSkill + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + title: cleanedData.title, + description: cleanedData.description, + body: cleanedData.body, + keywords: cleanedData.keywords, + isActive: cleanedData.isActive, + metadata: cleanedData.metadata, + embedding: cleanedData.embedding, + embeddingUpdatedAt: cleanedData.embeddingUpdatedAt, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + title: true, + description: true, + body: true, + keywords: true, + isActive: true, + metadata: true, + embedding: true, + embeddingUpdatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.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.agentSkill + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts new file mode 100644 index 0000000000..1d9487250a --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts @@ -0,0 +1,500 @@ +/** + * CLI commands for AgentTask + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentTaskInput, + AgentTaskPatch, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + status: 'string', + planId: 'uuid', + description: 'string', + source: 'string', + error: 'string', + orderIndex: 'int', + requiresApproval: 'boolean', + approvalStatus: 'string', + approvedBy: 'uuid', + approvedAt: 'string', + approvalFeedback: 'string', +}; +const usage = + '\nagent-task \n\nCommands:\n list List agentTask records\n find-first Find first matching agentTask record\n get Get a agentTask by ID\n create Create a new agentTask\n update Update an existing agentTask\n delete Delete a agentTask\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + planId: true, + description: true, + source: true, + error: true, + orderIndex: true, + requiresApproval: true, + approvalStatus: true, + approvedBy: true, + approvedAt: true, + approvalFeedback: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentTaskSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentTask.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + planId: true, + description: true, + source: true, + error: true, + orderIndex: true, + requiresApproval: true, + approvalStatus: true, + approvedBy: true, + approvedAt: true, + approvalFeedback: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentTaskSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentTask.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.agentTask + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + planId: true, + description: true, + source: true, + error: true, + orderIndex: true, + requiresApproval: true, + approvalStatus: true, + approvedBy: true, + approvedAt: true, + approvalFeedback: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planId', + message: 'planId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: true, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'orderIndex', + message: 'orderIndex', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'requiresApproval', + message: 'requiresApproval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalStatus', + message: 'approvalStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedBy', + message: 'approvedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedAt', + message: 'approvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalFeedback', + message: 'approvalFeedback', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateAgentTaskInput['agentTask']; + const client = getClient(); + const result = await client.agentTask + .create({ + data: { + ownerId: cleanedData.ownerId, + status: cleanedData.status, + planId: cleanedData.planId, + description: cleanedData.description, + source: cleanedData.source, + error: cleanedData.error, + orderIndex: cleanedData.orderIndex, + requiresApproval: cleanedData.requiresApproval, + approvalStatus: cleanedData.approvalStatus, + approvedBy: cleanedData.approvedBy, + approvedAt: cleanedData.approvedAt, + approvalFeedback: cleanedData.approvalFeedback, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + planId: true, + description: true, + source: true, + error: true, + orderIndex: true, + requiresApproval: true, + approvalStatus: true, + approvedBy: true, + approvedAt: true, + approvalFeedback: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planId', + message: 'planId', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'orderIndex', + message: 'orderIndex', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'requiresApproval', + message: 'requiresApproval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalStatus', + message: 'approvalStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedBy', + message: 'approvedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvedAt', + message: 'approvedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'approvalFeedback', + message: 'approvalFeedback', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentTaskPatch; + const client = getClient(); + const result = await client.agentTask + .update({ + where: { + id: answers.id as string, + }, + data: { + ownerId: cleanedData.ownerId, + status: cleanedData.status, + planId: cleanedData.planId, + description: cleanedData.description, + source: cleanedData.source, + error: cleanedData.error, + orderIndex: cleanedData.orderIndex, + requiresApproval: cleanedData.requiresApproval, + approvalStatus: cleanedData.approvalStatus, + approvedBy: cleanedData.approvedBy, + approvedAt: cleanedData.approvedAt, + approvalFeedback: cleanedData.approvalFeedback, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + planId: true, + description: true, + source: true, + error: true, + orderIndex: true, + requiresApproval: true, + approvalStatus: true, + approvedBy: true, + approvedAt: true, + approvalFeedback: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentTask + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts new file mode 100644 index 0000000000..eaf9bd1a7a --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts @@ -0,0 +1,397 @@ +/** + * CLI commands for AgentThread + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentThreadInput, + AgentThreadPatch, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + status: 'string', + title: 'string', + mode: 'string', + model: 'string', + systemPrompt: 'string', + promptTemplateId: 'uuid', +}; +const usage = + '\nagent-thread \n\nCommands:\n list List agentThread records\n find-first Find first matching agentThread record\n get Get a agentThread by ID\n create Create a new agentThread\n update Update an existing agentThread\n delete Delete a agentThread\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + title: true, + mode: true, + model: true, + systemPrompt: true, + promptTemplateId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentThreadSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentThread.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + title: true, + mode: true, + model: true, + systemPrompt: true, + promptTemplateId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentThreadSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentThread.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.agentThread + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + title: true, + mode: true, + model: true, + systemPrompt: true, + promptTemplateId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'promptTemplateId', + message: 'promptTemplateId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAgentThreadInput['agentThread']; + const client = getClient(); + const result = await client.agentThread + .create({ + data: { + ownerId: cleanedData.ownerId, + status: cleanedData.status, + title: cleanedData.title, + mode: cleanedData.mode, + model: cleanedData.model, + systemPrompt: cleanedData.systemPrompt, + promptTemplateId: cleanedData.promptTemplateId, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + title: true, + mode: true, + model: true, + systemPrompt: true, + promptTemplateId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'promptTemplateId', + message: 'promptTemplateId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentThreadPatch; + const client = getClient(); + const result = await client.agentThread + .update({ + where: { + id: answers.id as string, + }, + data: { + ownerId: cleanedData.ownerId, + status: cleanedData.status, + title: cleanedData.title, + mode: cleanedData.mode, + model: cleanedData.model, + systemPrompt: cleanedData.systemPrompt, + promptTemplateId: cleanedData.promptTemplateId, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + title: true, + mode: true, + model: true, + systemPrompt: true, + promptTemplateId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentThread + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/auth.ts b/sdk/constructive-cli/src/agent/cli/commands/auth.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/auth.ts rename to sdk/constructive-cli/src/agent/cli/commands/auth.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/context.ts b/sdk/constructive-cli/src/agent/cli/commands/context.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/context.ts rename to sdk/constructive-cli/src/agent/cli/commands/context.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/agent/cli/commands/provision-bucket.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-bucket.ts rename to sdk/constructive-cli/src/agent/cli/commands/provision-bucket.ts diff --git a/sdk/constructive-cli/src/agent/cli/embedder.ts b/sdk/constructive-cli/src/agent/cli/embedder.ts new file mode 100644 index 0000000000..71b00bf103 --- /dev/null +++ b/sdk/constructive-cli/src/agent/cli/embedder.ts @@ -0,0 +1,162 @@ +/** + * CLI embedder — pluggable text-to-vector embedding for search commands + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import OllamaClient from '@agentic-kit/ollama'; + +// ─── Types ─────────────────────────────────────────────────────────────────── + +export type EmbedderFunction = (text: string) => Promise; + +export interface EmbedderConfig { + /** Provider name: 'ollama' or 'custom' */ + provider: string; + /** Model identifier (e.g. 'nomic-embed-text') */ + model?: string; + /** Base URL for the provider (e.g. 'http://localhost:11434' for Ollama) */ + baseUrl?: string; +} + +// ─── Built-in Ollama Provider ──────────────────────────────────────────────── + +function createOllamaEmbedder( + baseUrl: string = 'http://localhost:11434', + model: string = 'nomic-embed-text' +): EmbedderFunction { + const client = new OllamaClient(baseUrl); + return async (text: string): Promise => { + const result = await client.generateEmbedding(text, model); + return result.embedding; + }; +} + +// ─── Embedder Resolution ───────────────────────────────────────────────────── + +/** + * Resolve an embedder function from environment variables or appstash config. + * + * Resolution order: + * 1. EMBEDDER_PROVIDER env var (+ EMBEDDER_MODEL, EMBEDDER_BASE_URL) + * 2. appstash config keys: embedder.provider, embedder.model, embedder.baseUrl + * 3. null (no embedder configured) + * + * @param store - Optional appstash config store for reading persisted config + * @returns An EmbedderFunction or null if no embedder is configured + */ +export function resolveEmbedder(store?: { + getVar: (key: string) => string | undefined; +}): EmbedderFunction | null { + // 1. Check environment variables first + const envProvider = process.env.EMBEDDER_PROVIDER; + if (envProvider) { + return buildEmbedder({ + provider: envProvider, + model: process.env.EMBEDDER_MODEL, + baseUrl: process.env.EMBEDDER_BASE_URL, + }); + } + + // 2. Check appstash config + if (store) { + const configProvider = store.getVar('embedder.provider'); + if (configProvider) { + return buildEmbedder({ + provider: configProvider, + model: store.getVar('embedder.model'), + baseUrl: store.getVar('embedder.baseUrl'), + }); + } + } + + // 3. No embedder configured + return null; +} + +/** + * Build an embedder function from a config object. + */ +function buildEmbedder(config: EmbedderConfig): EmbedderFunction | null { + switch (config.provider) { + case 'ollama': + return createOllamaEmbedder(config.baseUrl, config.model); + default: + console.error(`Unknown embedder provider: '${config.provider}'. Supported: ollama`); + return null; + } +} + +/** + * Auto-embed text values in vector where-clause fields. + * + * When --auto-embed is passed, any vector field in the where clause that + * contains a text string (instead of a float array) will be converted to + * an embedding vector using the configured embedder. + * + * @param where - The where clause object (mutated in place) + * @param vectorFieldNames - Names of vector embedding fields (e.g. ['vectorEmbedding']) + * @param embedder - The resolved embedder function + * @returns The modified where clause + */ +export async function autoEmbedWhere( + where: T, + vectorFieldNames: string[], + embedder: EmbedderFunction +): Promise { + const rec = where as unknown as Record; + for (const fieldName of vectorFieldNames) { + const fieldValue = rec[fieldName]; + if (fieldValue && typeof fieldValue === 'object') { + const input = fieldValue as Record; + // If 'vector' is a string, embed it + if (typeof input.vector === 'string') { + const text = input.vector; + const embedding = await embedder(text); + input.vector = embedding; + } + } else if (typeof fieldValue === 'string') { + // Shorthand: --where.vectorEmbedding "text" with --auto-embed + // becomes { vector: [embedded], metric: 'COSINE' } + const embedding = await embedder(fieldValue); + rec[fieldName] = { vector: embedding }; + } + } + return where; +} + +/** + * Auto-embed text values in mutation input data (create/update). + * + * When --auto-embed is passed on create or update, any vector field in + * the input data that contains a text string will be converted to an + * embedding vector using the configured embedder. + * + * Usage: + * csdk article create --input.embedding "Machine learning concepts" --auto-embed + * csdk article update --id xxx --input.embedding "Updated description" --auto-embed + * + * This is a CLI-only convenience — in production, database triggers or + * a job queue should handle embedding generation. + * + * @param data - The mutation input data object (mutated in place) + * @param vectorFieldNames - Names of vector embedding fields (e.g. ['embedding']) + * @param embedder - The resolved embedder function + * @returns The modified data object with text values replaced by vectors + */ +export async function autoEmbedInput( + data: T, + vectorFieldNames: string[], + embedder: EmbedderFunction +): Promise { + const rec = data as unknown as Record; + for (const fieldName of vectorFieldNames) { + const fieldValue = rec[fieldName]; + if (typeof fieldValue === 'string') { + // Text string → embed to vector array + const embedding = await embedder(fieldValue); + rec[fieldName] = embedding; + } + // If it's already an array (pre-computed vector), leave it as-is + } + return data; +} diff --git a/sdk/constructive-cli/src/public/cli/executor.ts b/sdk/constructive-cli/src/agent/cli/executor.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/executor.ts rename to sdk/constructive-cli/src/agent/cli/executor.ts diff --git a/sdk/constructive-cli/src/public/cli/index.ts b/sdk/constructive-cli/src/agent/cli/index.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/index.ts rename to sdk/constructive-cli/src/agent/cli/index.ts diff --git a/sdk/constructive-cli/src/public/cli/utils.ts b/sdk/constructive-cli/src/agent/cli/utils.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/utils.ts rename to sdk/constructive-cli/src/agent/cli/utils.ts diff --git a/sdk/constructive-cli/src/public/index.ts b/sdk/constructive-cli/src/agent/index.ts similarity index 100% rename from sdk/constructive-cli/src/public/index.ts rename to sdk/constructive-cli/src/agent/index.ts diff --git a/sdk/constructive-cli/src/agent/orm/README.md b/sdk/constructive-cli/src/agent/orm/README.md new file mode 100644 index 0000000000..c7a2b551d4 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/README.md @@ -0,0 +1,306 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `agentPlan` | findMany, findOne, create, update, delete | +| `agentMessage` | findMany, findOne, create, update, delete | +| `agentTask` | findMany, findOne, create, update, delete | +| `agentThread` | findMany, findOne, create, update, delete | +| `agentPrompt` | findMany, findOne, create, update, delete | +| `agentSkill` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.agentPlan` + +CRUD operations for AgentPlan records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `threadId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `status` | String | Yes | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentPlan.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentPlan.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentMessage` + +CRUD operations for AgentMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `parts` | JSON | Yes | +| `threadId` | UUID | Yes | +| `authorRole` | String | Yes | +| `model` | String | Yes | + +**Operations:** + +```typescript +// List all agentMessage records +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); + +// Get one by id +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); + +// Create +const created = await db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentTask` + +CRUD operations for AgentTask records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `planId` | UUID | Yes | +| `description` | String | Yes | +| `source` | String | Yes | +| `error` | String | Yes | +| `orderIndex` | Int | Yes | +| `requiresApproval` | Boolean | Yes | +| `approvalStatus` | String | Yes | +| `approvedBy` | UUID | Yes | +| `approvedAt` | Datetime | Yes | +| `approvalFeedback` | String | Yes | + +**Operations:** + +```typescript +// List all agentTask records +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: 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, ownerId: true, status: true, planId: 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: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentThread` + +CRUD operations for AgentThread records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `title` | String | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `systemPrompt` | String | Yes | +| `promptTemplateId` | UUID | Yes | + +**Operations:** + +```typescript +// List all agentThread records +const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }).execute(); + +// Get one by id +const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }).execute(); + +// Create +const created = await db.agentThread.create({ data: { ownerId: '', status: '', title: '', mode: '', model: '', systemPrompt: '', promptTemplateId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentPrompt` + +CRUD operations for AgentPrompt records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `name` | String | Yes | +| `content` | String | Yes | +| `description` | String | Yes | +| `isDefault` | Boolean | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentPrompt.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentPrompt.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentSkill` + +CRUD operations for AgentSkill records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `body` | String | Yes | +| `keywords` | String | Yes | +| `isActive` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `search` | FullText | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `searchTsvRank` | Float | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `searchScore` | Float | Yes | + +**Operations:** + +```typescript +// List all agentSkill records +const items = await db.agentSkill.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); + +// Get one by id +const item = await db.agentSkill.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); + +// Create +const created = await db.agentSkill.create({ data: { createdBy: '', updatedBy: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentSkill.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentSkill.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Custom Operations + +### `db.mutation.provisionBucket` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +--- + +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/public/orm/client.ts b/sdk/constructive-cli/src/agent/orm/client.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/client.ts rename to sdk/constructive-cli/src/agent/orm/client.ts diff --git a/sdk/constructive-cli/src/agent/orm/index.ts b/sdk/constructive-cli/src/agent/orm/index.ts new file mode 100644 index 0000000000..cdd1c62a4a --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/index.ts @@ -0,0 +1,55 @@ +/** + * 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 { AgentPlanModel } from './models/agentPlan'; +import { AgentMessageModel } from './models/agentMessage'; +import { AgentTaskModel } from './models/agentTask'; +import { AgentThreadModel } from './models/agentThread'; +import { AgentPromptModel } from './models/agentPrompt'; +import { AgentSkillModel } from './models/agentSkill'; +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 { + agentPlan: new AgentPlanModel(client), + agentMessage: new AgentMessageModel(client), + agentTask: new AgentTaskModel(client), + agentThread: new AgentThreadModel(client), + agentPrompt: new AgentPromptModel(client), + agentSkill: new AgentSkillModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-cli/src/agent/orm/input-types.ts b/sdk/constructive-cli/src/agent/orm/input-types.ts new file mode 100644 index 0000000000..cbd29082a9 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/input-types.ts @@ -0,0 +1,1987 @@ +/** + * 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; +} +/** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ +// ============ Entity Types ============ +export interface AgentPlan { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this plan */ + ownerId?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Human-readable plan name */ + title?: string | null; + /** Overall goal or context for this plan */ + description?: string | null; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string | null; +} +/** Message within an agent thread with TextPart/ToolPart jsonb parts */ +export interface AgentMessage { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this message */ + ownerId?: string | null; + /** Message content: TextPart and ToolPart array */ + parts?: Record | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Who authored this message: user or assistant */ + authorRole?: string | null; + /** LLM model that generated this response */ + model?: string | null; +} +/** Task within a plan, with ordering and optional approval gates */ +export interface AgentTask { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this task */ + ownerId?: string | null; + /** Current status of this task */ + status?: string | null; + /** Foreign key to agent_plan */ + planId?: string | null; + /** Natural-language description of the work to do */ + description?: string | null; + /** Who created the task: agent or user */ + source?: string | null; + /** Error message captured when the task failed */ + error?: string | null; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number | null; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean | null; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string | null; + /** User who approved or rejected this task */ + approvedBy?: string | null; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string | null; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string | null; +} +/** Top-level AI/LLM conversation thread */ +export interface AgentThread { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this thread */ + ownerId?: string | null; + /** Current status of this thread */ + status?: string | null; + /** Human-readable conversation title */ + title?: string | null; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string | null; + /** LLM model id this thread is bound to */ + model?: string | null; + /** System prompt active for this thread */ + systemPrompt?: string | null; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string | null; +} +/** Shared system prompt templates for agent conversations */ +export interface AgentPrompt { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string | null; + /** The system prompt template content */ + content?: string | null; + /** What this prompt template is for */ + description?: string | null; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean | null; + /** Variables, tags, category metadata */ + metadata?: Record | null; +} +/** Structured procedural instructions for agent workflows */ +export interface AgentSkill { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Skill name or title */ + title?: string | null; + /** Brief description of when this skill applies */ + description?: string | null; + /** Full skill instructions (markdown) */ + body?: string | null; + /** Keywords for deterministic retrieval routing */ + keywords?: string[] | null; + /** Whether this skill is active and retrievable */ + isActive?: boolean | null; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record | null; + search?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; +} +// ============ 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 AgentPlanRelations { + thread?: AgentThread | null; + agentTasksByPlanId?: ConnectionResult; +} +export interface AgentMessageRelations { + thread?: AgentThread | null; +} +export interface AgentTaskRelations { + plan?: AgentPlan | null; +} +export interface AgentThreadRelations { + promptTemplate?: AgentPrompt | null; + agentMessagesByThreadId?: ConnectionResult; + agentPlansByThreadId?: ConnectionResult; +} +export interface AgentPromptRelations {} +export interface AgentSkillRelations {} +// ============ Entity Types With Relations ============ +export type AgentPlanWithRelations = AgentPlan & AgentPlanRelations; +export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; +export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; +export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type AgentPromptWithRelations = AgentPrompt & AgentPromptRelations; +export type AgentSkillWithRelations = AgentSkill & AgentSkillRelations; +// ============ Entity Select Types ============ +export type AgentPlanSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + threadId?: boolean; + title?: boolean; + description?: boolean; + status?: boolean; + thread?: { + select: AgentThreadSelect; + }; + agentTasksByPlanId?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; +}; +export type AgentMessageSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + parts?: boolean; + threadId?: boolean; + authorRole?: boolean; + model?: boolean; + thread?: { + select: AgentThreadSelect; + }; +}; +export type AgentTaskSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + planId?: boolean; + description?: boolean; + source?: boolean; + error?: boolean; + orderIndex?: boolean; + requiresApproval?: boolean; + approvalStatus?: boolean; + approvedBy?: boolean; + approvedAt?: boolean; + approvalFeedback?: boolean; + plan?: { + select: AgentPlanSelect; + }; +}; +export type AgentThreadSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + title?: boolean; + mode?: boolean; + model?: boolean; + systemPrompt?: boolean; + promptTemplateId?: boolean; + promptTemplate?: { + select: AgentPromptSelect; + }; + agentMessagesByThreadId?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + agentPlansByThreadId?: { + select: AgentPlanSelect; + first?: number; + filter?: AgentPlanFilter; + orderBy?: AgentPlanOrderBy[]; + }; +}; +export type AgentPromptSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + name?: boolean; + content?: boolean; + description?: boolean; + isDefault?: boolean; + metadata?: boolean; +}; +export type AgentSkillSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + title?: boolean; + description?: boolean; + body?: boolean; + keywords?: boolean; + isActive?: boolean; + metadata?: boolean; + search?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + searchTsvRank?: boolean; + embeddingVectorDistance?: boolean; + titleTrgmSimilarity?: boolean; + descriptionTrgmSimilarity?: boolean; + bodyTrgmSimilarity?: boolean; + searchScore?: boolean; +}; +// ============ Table Filter Types ============ +export interface AgentPlanFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; +} +export interface AgentMessageFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface AgentTaskFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; +} +export interface AgentThreadFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; +} +export interface AgentPromptFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Negates the expression. */ + not?: AgentPromptFilter; +} +export interface AgentSkillFilter { + /** 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 `title` field. */ + title?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AgentSkillFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentSkillFilter[]; + /** Negates the expression. */ + not?: AgentSkillFilter; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; +} +// ============ OrderBy Types ============ +export type AgentPlanOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type AgentMessageOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC'; +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC'; +export type AgentThreadOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC'; +export type AgentPromptOrderBy = + | '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' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC'; +export type AgentSkillOrderBy = + | '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' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC'; +// ============ CRUD Input Types ============ +export interface CreateAgentPlanInput { + clientMutationId?: string; + agentPlan: { + ownerId?: string; + threadId: string; + title: string; + description?: string; + status?: string; + }; +} +export interface AgentPlanPatch { + ownerId?: string | null; + threadId?: string | null; + title?: string | null; + description?: string | null; + status?: string | null; +} +export interface UpdateAgentPlanInput { + clientMutationId?: string; + id: string; + agentPlanPatch: AgentPlanPatch; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + ownerId?: string; + parts?: Record; + threadId: string; + authorRole: string; + model?: string; + }; +} +export interface AgentMessagePatch { + ownerId?: string | null; + parts?: Record | null; + threadId?: string | null; + authorRole?: string | null; + model?: string | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + ownerId?: string; + status?: string; + planId: string; + description: string; + source?: string; + error?: string; + orderIndex?: number; + requiresApproval?: boolean; + approvalStatus?: string; + approvedBy?: string; + approvedAt?: string; + approvalFeedback?: string; + }; +} +export interface AgentTaskPatch { + ownerId?: string | null; + status?: string | null; + planId?: string | null; + description?: string | null; + source?: string | null; + error?: string | null; + orderIndex?: number | null; + requiresApproval?: boolean | null; + approvalStatus?: string | null; + approvedBy?: string | null; + approvedAt?: string | null; + approvalFeedback?: string | null; +} +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + agentThread: { + ownerId?: string; + status?: string; + title?: string; + mode?: string; + model?: string; + systemPrompt?: string; + promptTemplateId?: string; + }; +} +export interface AgentThreadPatch { + ownerId?: string | null; + status?: string | null; + title?: string | null; + mode?: string | null; + model?: string | null; + systemPrompt?: string | null; + promptTemplateId?: string | null; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + agentThreadPatch: AgentThreadPatch; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPromptInput { + clientMutationId?: string; + agentPrompt: { + createdBy?: string; + updatedBy?: string; + name: string; + content: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + }; +} +export interface AgentPromptPatch { + createdBy?: string | null; + updatedBy?: string | null; + name?: string | null; + content?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; +} +export interface UpdateAgentPromptInput { + clientMutationId?: string; + id: string; + agentPromptPatch: AgentPromptPatch; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentSkillInput { + clientMutationId?: string; + agentSkill: { + createdBy?: string; + updatedBy?: string; + title: string; + description?: string; + body: string; + keywords?: string[]; + isActive?: boolean; + metadata?: Record; + embedding?: number[]; + embeddingUpdatedAt?: string; + }; +} +export interface AgentSkillPatch { + createdBy?: string | null; + updatedBy?: string | null; + title?: string | null; + description?: string | null; + body?: string | null; + keywords?: string[] | null; + isActive?: boolean | null; + metadata?: Record | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; +} +export interface UpdateAgentSkillInput { + clientMutationId?: string; + id: string; + agentSkillPatch: AgentSkillPatch; +} +export interface DeleteAgentSkillInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + AgentPlan: { + agentTasksByPlanId: 'AgentTask', + }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentPlansByThreadId: 'AgentPlan', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; +} +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Query vector for similarity search. */ + vector: number[]; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; +} +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; +} +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'L2' | 'IP'; +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; +} +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Negates the expression. */ + not?: AgentPromptFilter; +} +// ============ Payload/Return Types (for custom operations) ============ +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 CreateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was created by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type CreateAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface UpdateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was updated by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type UpdateAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface DeleteAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was deleted by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type DeleteAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface CreateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type CreateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface UpdateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type UpdateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface DeleteAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type DeleteAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type CreateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type UpdateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type DeleteAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface CreateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type CreateAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface UpdateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type UpdateAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface DeleteAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type DeleteAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface CreateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was created by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type CreateAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface UpdateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was updated by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type UpdateAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface DeleteAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was deleted by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type DeleteAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface CreateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was created by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type CreateAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +export interface UpdateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was updated by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type UpdateAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +export interface DeleteAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was deleted by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type DeleteAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +/** A `AgentPlan` edge in the connection. */ +export interface AgentPlanEdge { + cursor?: string | null; + /** The `AgentPlan` at the end of the edge. */ + node?: AgentPlan | null; +} +export type AgentPlanEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentPlanSelect; + }; +}; +/** A `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { + cursor?: string | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; +} +export type AgentMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentMessageSelect; + }; +}; +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { + cursor?: string | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; +} +export type AgentTaskEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentTaskSelect; + }; +}; +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { + cursor?: string | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; +} +export type AgentThreadEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentThreadSelect; + }; +}; +/** A `AgentPrompt` edge in the connection. */ +export interface AgentPromptEdge { + cursor?: string | null; + /** The `AgentPrompt` at the end of the edge. */ + node?: AgentPrompt | null; +} +export type AgentPromptEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentPromptSelect; + }; +}; +/** A `AgentSkill` edge in the connection. */ +export interface AgentSkillEdge { + cursor?: string | null; + /** The `AgentSkill` at the end of the edge. */ + node?: AgentSkill | null; +} +export type AgentSkillEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentSkillSelect; + }; +}; diff --git a/sdk/constructive-cli/src/agent/orm/models/agentMessage.ts b/sdk/constructive-cli/src/agent/orm/models/agentMessage.ts new file mode 100644 index 0000000000..d128641c85 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/agentMessage.ts @@ -0,0 +1,244 @@ +/** + * AgentMessage model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentMessage, + AgentMessageWithRelations, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, + CreateAgentMessageInput, + UpdateAgentMessageInput, + AgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentMessage', + 'createAgentMessage', + 'agentMessage', + args.select, + args.data, + 'CreateAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'createAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentMessage', + 'updateAgentMessage', + 'agentMessage', + args.select, + args.where.id, + args.data, + 'UpdateAgentMessageInput', + 'id', + 'agentMessagePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'updateAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentMessage', + 'deleteAgentMessage', + 'agentMessage', + { + id: args.where.id, + }, + 'DeleteAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'deleteAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/agentPlan.ts b/sdk/constructive-cli/src/agent/orm/models/agentPlan.ts new file mode 100644 index 0000000000..ec029de47d --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/agentPlan.ts @@ -0,0 +1,244 @@ +/** + * AgentPlan model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentPlan, + AgentPlanWithRelations, + AgentPlanSelect, + AgentPlanFilter, + AgentPlanOrderBy, + CreateAgentPlanInput, + UpdateAgentPlanInput, + AgentPlanPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentPlanModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlans: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlans', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlan', + document, + variables, + transform: (data: { + agentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPlan: data.agentPlans?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlan', + document, + variables, + transform: (data: { + agentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPlan: data.agentPlans?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentPlan', + 'createAgentPlan', + 'agentPlan', + args.select, + args.data, + 'CreateAgentPlanInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'createAgentPlan', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentPlanPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentPlan', + 'updateAgentPlan', + 'agentPlan', + args.select, + args.where.id, + args.data, + 'UpdateAgentPlanInput', + 'id', + 'agentPlanPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'updateAgentPlan', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentPlan', + 'deleteAgentPlan', + 'agentPlan', + { + id: args.where.id, + }, + 'DeleteAgentPlanInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'deleteAgentPlan', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/agentPrompt.ts b/sdk/constructive-cli/src/agent/orm/models/agentPrompt.ts new file mode 100644 index 0000000000..5e4aa9b6d1 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/agentPrompt.ts @@ -0,0 +1,244 @@ +/** + * AgentPrompt model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentPrompt, + AgentPromptWithRelations, + AgentPromptSelect, + AgentPromptFilter, + AgentPromptOrderBy, + CreateAgentPromptInput, + UpdateAgentPromptInput, + AgentPromptPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentPromptModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompt', + document, + variables, + transform: (data: { + agentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPrompt: data.agentPrompts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompt', + document, + variables, + transform: (data: { + agentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPrompt: data.agentPrompts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentPrompt', + 'createAgentPrompt', + 'agentPrompt', + args.select, + args.data, + 'CreateAgentPromptInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'createAgentPrompt', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentPromptPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentPrompt', + 'updateAgentPrompt', + 'agentPrompt', + args.select, + args.where.id, + args.data, + 'UpdateAgentPromptInput', + 'id', + 'agentPromptPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'updateAgentPrompt', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentPrompt', + 'deleteAgentPrompt', + 'agentPrompt', + { + id: args.where.id, + }, + 'DeleteAgentPromptInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'deleteAgentPrompt', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/agentSkill.ts b/sdk/constructive-cli/src/agent/orm/models/agentSkill.ts new file mode 100644 index 0000000000..6d9674a010 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/agentSkill.ts @@ -0,0 +1,244 @@ +/** + * AgentSkill model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentSkill, + AgentSkillWithRelations, + AgentSkillSelect, + AgentSkillFilter, + AgentSkillOrderBy, + CreateAgentSkillInput, + UpdateAgentSkillInput, + AgentSkillPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentSkillModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkills: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkills', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkill: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkill', + document, + variables, + transform: (data: { + agentSkills?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentSkill: data.agentSkills?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkill: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkill', + document, + variables, + transform: (data: { + agentSkills?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentSkill: data.agentSkills?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentSkill', + 'createAgentSkill', + 'agentSkill', + args.select, + args.data, + 'CreateAgentSkillInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'createAgentSkill', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentSkillPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentSkill', + 'updateAgentSkill', + 'agentSkill', + args.select, + args.where.id, + args.data, + 'UpdateAgentSkillInput', + 'id', + 'agentSkillPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'updateAgentSkill', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentSkill', + 'deleteAgentSkill', + 'agentSkill', + { + id: args.where.id, + }, + 'DeleteAgentSkillInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'deleteAgentSkill', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/agentTask.ts b/sdk/constructive-cli/src/agent/orm/models/agentTask.ts new file mode 100644 index 0000000000..3bbc609f16 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/agentTask.ts @@ -0,0 +1,244 @@ +/** + * AgentTask model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentTask, + AgentTaskWithRelations, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, + CreateAgentTaskInput, + UpdateAgentTaskInput, + AgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentTask', + 'createAgentTask', + 'agentTask', + args.select, + args.data, + 'CreateAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'createAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentTask', + 'updateAgentTask', + 'agentTask', + args.select, + args.where.id, + args.data, + 'UpdateAgentTaskInput', + 'id', + 'agentTaskPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'updateAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentTask', + 'deleteAgentTask', + 'agentTask', + { + id: args.where.id, + }, + 'DeleteAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'deleteAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/agentThread.ts b/sdk/constructive-cli/src/agent/orm/models/agentThread.ts new file mode 100644 index 0000000000..7bbd14abec --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/agentThread.ts @@ -0,0 +1,244 @@ +/** + * AgentThread model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentThread, + AgentThreadWithRelations, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, + CreateAgentThreadInput, + UpdateAgentThreadInput, + AgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentThread', + 'createAgentThread', + 'agentThread', + args.select, + args.data, + 'CreateAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'createAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentThread', + 'updateAgentThread', + 'agentThread', + args.select, + args.where.id, + args.data, + 'UpdateAgentThreadInput', + 'id', + 'agentThreadPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'updateAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentThread', + 'deleteAgentThread', + 'agentThread', + { + id: args.where.id, + }, + 'DeleteAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'deleteAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/orm/models/index.ts b/sdk/constructive-cli/src/agent/orm/models/index.ts new file mode 100644 index 0000000000..2c3871f194 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/models/index.ts @@ -0,0 +1,11 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { AgentPlanModel } from './agentPlan'; +export { AgentMessageModel } from './agentMessage'; +export { AgentTaskModel } from './agentTask'; +export { AgentThreadModel } from './agentThread'; +export { AgentPromptModel } from './agentPrompt'; +export { AgentSkillModel } from './agentSkill'; diff --git a/sdk/constructive-cli/src/agent/orm/mutation/index.ts b/sdk/constructive-cli/src/agent/orm/mutation/index.ts new file mode 100644 index 0000000000..989afbcbd6 --- /dev/null +++ b/sdk/constructive-cli/src/agent/orm/mutation/index.ts @@ -0,0 +1,57 @@ +/** + * Custom mutation operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + ProvisionBucketInput, + ProvisionBucketPayload, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for provisionBucket + * Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + }; +} diff --git a/sdk/constructive-cli/src/public/orm/query-builder.ts b/sdk/constructive-cli/src/agent/orm/query-builder.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/query-builder.ts rename to sdk/constructive-cli/src/agent/orm/query-builder.ts diff --git a/sdk/constructive-cli/src/public/orm/realtime.ts b/sdk/constructive-cli/src/agent/orm/realtime.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/realtime.ts rename to sdk/constructive-cli/src/agent/orm/realtime.ts diff --git a/sdk/constructive-cli/src/public/orm/select-types.ts b/sdk/constructive-cli/src/agent/orm/select-types.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/select-types.ts rename to sdk/constructive-cli/src/agent/orm/select-types.ts diff --git a/sdk/constructive-cli/src/public/orm/types.ts b/sdk/constructive-cli/src/agent/orm/types.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/types.ts rename to sdk/constructive-cli/src/agent/orm/types.ts diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md new file mode 100644 index 0000000000..0baaecb549 --- /dev/null +++ b/sdk/constructive-cli/src/api/README.md @@ -0,0 +1,47 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 45 +- **Custom queries:** 1 +- **Custom mutations:** 9 + +**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/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md new file mode 100644 index 0000000000..a9cf495d31 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/README.md @@ -0,0 +1,1758 @@ +# 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) | +| `function` | function CRUD operations | +| `schema` | schema CRUD operations | +| `table` | table CRUD operations | +| `check-constraint` | checkConstraint CRUD operations | +| `field` | field CRUD operations | +| `spatial-relation` | spatialRelation CRUD operations | +| `foreign-key-constraint` | foreignKeyConstraint CRUD operations | +| `full-text-search` | fullTextSearch CRUD operations | +| `index` | index CRUD operations | +| `policy` | policy CRUD operations | +| `primary-key-constraint` | primaryKeyConstraint CRUD operations | +| `table-grant` | tableGrant CRUD operations | +| `trigger` | trigger CRUD operations | +| `unique-constraint` | uniqueConstraint CRUD operations | +| `view` | view CRUD operations | +| `view-table` | viewTable CRUD operations | +| `view-grant` | viewGrant CRUD operations | +| `view-rule` | viewRule CRUD operations | +| `embedding-chunk` | embeddingChunk CRUD operations | +| `schema-grant` | schemaGrant CRUD operations | +| `default-privilege` | defaultPrivilege CRUD operations | +| `enum` | enum CRUD operations | +| `api-schema` | apiSchema CRUD operations | +| `api-module` | apiModule CRUD operations | +| `domain` | domain CRUD operations | +| `site-metadatum` | siteMetadatum CRUD operations | +| `site-module` | siteModule CRUD operations | +| `site-theme` | siteTheme CRUD operations | +| `cors-setting` | corsSetting CRUD operations | +| `trigger-function` | triggerFunction CRUD operations | +| `partition` | partition CRUD operations | +| `database-transfer` | databaseTransfer CRUD operations | +| `api` | api CRUD operations | +| `site` | site CRUD operations | +| `app` | app CRUD operations | +| `api-setting` | apiSetting CRUD operations | +| `migrate-file` | migrateFile CRUD operations | +| `node-type-registry` | nodeTypeRegistry CRUD operations | +| `pubkey-setting` | pubkeySetting CRUD operations | +| `database` | database CRUD operations | +| `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 | +| `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) + +Returns the database_id UUID of the newly created database. + +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 + | +| `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 + +### `function` + +CRUD operations for Function records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all function records | +| `find-first` | Find first matching function record | +| `get` | Get a function by id | +| `create` | Create a new function | +| `update` | Update an existing function | +| `delete` | Delete a function | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `name` | String | + +**Required create fields:** `databaseId`, `schemaId`, `name` + +### `schema` + +CRUD operations for Schema records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all schema records | +| `find-first` | Find first matching schema record | +| `get` | Get a schema by id | +| `create` | Create a new schema | +| `update` | Update an existing schema | +| `delete` | Delete a schema | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `name` | String | +| `schemaName` | String | +| `label` | String | +| `description` | String | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `isPublic` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `name`, `schemaName` +**Optional create fields (backend defaults):** `label`, `description`, `smartTags`, `category`, `module`, `scope`, `tags`, `isPublic` + +### `table` + +CRUD operations for Table records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all table records | +| `find-first` | Find first matching table record | +| `get` | Get a table by id | +| `create` | Create a new table | +| `update` | Update an existing table | +| `delete` | Delete a table | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `name` | String | +| `label` | String | +| `description` | String | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `useRls` | Boolean | +| `timestamps` | Boolean | +| `peoplestamps` | Boolean | +| `pluralName` | String | +| `singularName` | String | +| `tags` | String | +| `partitioned` | Boolean | +| `partitionStrategy` | String | +| `partitionKeyNames` | String | +| `partitionKeyTypes` | String | +| `inheritsId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `schemaId`, `name` +**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `category`, `module`, `scope`, `useRls`, `timestamps`, `peoplestamps`, `pluralName`, `singularName`, `tags`, `partitioned`, `partitionStrategy`, `partitionKeyNames`, `partitionKeyTypes`, `inheritsId` + +### `check-constraint` + +CRUD operations for CheckConstraint records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all checkConstraint records | +| `find-first` | Find first matching checkConstraint record | +| `get` | Get a checkConstraint by id | +| `create` | Create a new checkConstraint | +| `update` | Update an existing checkConstraint | +| `delete` | Delete a checkConstraint | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `type` | String | +| `fieldIds` | UUID | +| `expr` | JSON | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `fieldIds` +**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `expr`, `smartTags`, `category`, `module`, `scope`, `tags` + +### `field` + +CRUD operations for Field records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all field records | +| `find-first` | Find first matching field record | +| `get` | Get a field by id | +| `create` | Create a new field | +| `update` | Update an existing field | +| `delete` | Delete a field | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `label` | String | +| `description` | String | +| `smartTags` | JSON | +| `isRequired` | Boolean | +| `apiRequired` | Boolean | +| `defaultValue` | JSON | +| `type` | JSON | +| `fieldOrder` | Int | +| `regexp` | String | +| `chk` | JSON | +| `chkExpr` | JSON | +| `min` | Float | +| `max` | Float | +| `tags` | String | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `createdAt` | Datetime | +| `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`, `module`, `scope` + +### `spatial-relation` + +CRUD operations for SpatialRelation records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all spatialRelation records | +| `find-first` | Find first matching spatialRelation record | +| `get` | Get a spatialRelation by id | +| `create` | Create a new spatialRelation | +| `update` | Update an existing spatialRelation | +| `delete` | Delete a spatialRelation | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `fieldId` | UUID | +| `refTableId` | UUID | +| `refFieldId` | UUID | +| `name` | String | +| `operator` | String | +| `paramName` | String | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `fieldId`, `refTableId`, `refFieldId`, `name`, `operator` +**Optional create fields (backend defaults):** `databaseId`, `paramName`, `category`, `module`, `scope`, `tags` + +### `foreign-key-constraint` + +CRUD operations for ForeignKeyConstraint records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all foreignKeyConstraint records | +| `find-first` | Find first matching foreignKeyConstraint record | +| `get` | Get a foreignKeyConstraint by id | +| `create` | Create a new foreignKeyConstraint | +| `update` | Update an existing foreignKeyConstraint | +| `delete` | Delete a foreignKeyConstraint | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `description` | String | +| `smartTags` | JSON | +| `type` | String | +| `fieldIds` | UUID | +| `refTableId` | UUID | +| `refFieldIds` | UUID | +| `deleteAction` | String | +| `updateAction` | String | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `fieldIds`, `refTableId`, `refFieldIds` +**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `deleteAction`, `updateAction`, `category`, `module`, `scope`, `tags` + +### `full-text-search` + +CRUD operations for FullTextSearch records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all fullTextSearch records | +| `find-first` | Find first matching fullTextSearch record | +| `get` | Get a fullTextSearch by id | +| `create` | Create a new fullTextSearch | +| `update` | Update an existing fullTextSearch | +| `delete` | Delete a fullTextSearch | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `fieldId` | UUID | +| `fieldIds` | UUID | +| `weights` | String | +| `langs` | String | +| `langColumn` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `fieldId`, `fieldIds`, `weights`, `langs` +**Optional create fields (backend defaults):** `databaseId`, `langColumn` + +### `index` + +CRUD operations for Index records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all index records | +| `find-first` | Find first matching index record | +| `get` | Get a index by id | +| `create` | Create a new index | +| `update` | Update an existing index | +| `delete` | Delete a index | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `fieldIds` | UUID | +| `includeFieldIds` | UUID | +| `accessMethod` | String | +| `indexParams` | JSON | +| `whereClause` | JSON | +| `isUnique` | Boolean | +| `options` | JSON | +| `opClasses` | String | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `tableId` +**Optional create fields (backend defaults):** `name`, `fieldIds`, `includeFieldIds`, `accessMethod`, `indexParams`, `whereClause`, `isUnique`, `options`, `opClasses`, `smartTags`, `category`, `module`, `scope`, `tags` + +### `policy` + +CRUD operations for Policy records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all policy records | +| `find-first` | Find first matching policy record | +| `get` | Get a policy by id | +| `create` | Create a new policy | +| `update` | Update an existing policy | +| `delete` | Delete a policy | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `granteeName` | String | +| `privilege` | String | +| `permissive` | Boolean | +| `disabled` | Boolean | +| `policyType` | String | +| `data` | JSON | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId` +**Optional create fields (backend defaults):** `databaseId`, `name`, `granteeName`, `privilege`, `permissive`, `disabled`, `policyType`, `data`, `smartTags`, `category`, `module`, `scope`, `tags` + +### `primary-key-constraint` + +CRUD operations for PrimaryKeyConstraint records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all primaryKeyConstraint records | +| `find-first` | Find first matching primaryKeyConstraint record | +| `get` | Get a primaryKeyConstraint by id | +| `create` | Create a new primaryKeyConstraint | +| `update` | Update an existing primaryKeyConstraint | +| `delete` | Delete a primaryKeyConstraint | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `type` | String | +| `fieldIds` | UUID | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `fieldIds` +**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `smartTags`, `category`, `module`, `scope`, `tags` + +### `table-grant` + +CRUD operations for TableGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all tableGrant records | +| `find-first` | Find first matching tableGrant record | +| `get` | Get a tableGrant by id | +| `create` | Create a new tableGrant | +| `update` | Update an existing tableGrant | +| `delete` | Delete a tableGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `privilege` | String | +| `granteeName` | String | +| `fieldIds` | UUID | +| `isGrant` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `privilege`, `granteeName` +**Optional create fields (backend defaults):** `databaseId`, `fieldIds`, `isGrant` + +### `trigger` + +CRUD operations for Trigger records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all trigger records | +| `find-first` | Find first matching trigger record | +| `get` | Get a trigger by id | +| `create` | Create a new trigger | +| `update` | Update an existing trigger | +| `delete` | Delete a trigger | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `event` | String | +| `functionName` | String | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `name` +**Optional create fields (backend defaults):** `databaseId`, `event`, `functionName`, `smartTags`, `category`, `module`, `scope`, `tags` + +### `unique-constraint` + +CRUD operations for UniqueConstraint records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all uniqueConstraint records | +| `find-first` | Find first matching uniqueConstraint record | +| `get` | Get a uniqueConstraint by id | +| `create` | Create a new uniqueConstraint | +| `update` | Update an existing uniqueConstraint | +| `delete` | Delete a uniqueConstraint | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `name` | String | +| `description` | String | +| `smartTags` | JSON | +| `type` | String | +| `fieldIds` | UUID | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId`, `fieldIds` +**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `category`, `module`, `scope`, `tags` + +### `view` + +CRUD operations for View records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all view records | +| `find-first` | Find first matching view record | +| `get` | Get a view by id | +| `create` | Create a new view | +| `update` | Update an existing view | +| `delete` | Delete a view | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `name` | String | +| `tableId` | UUID | +| `viewType` | String | +| `data` | JSON | +| `filterType` | String | +| `filterData` | JSON | +| `securityInvoker` | Boolean | +| `isReadOnly` | Boolean | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | + +**Required create fields:** `schemaId`, `name`, `viewType` +**Optional create fields (backend defaults):** `databaseId`, `tableId`, `data`, `filterType`, `filterData`, `securityInvoker`, `isReadOnly`, `smartTags`, `category`, `module`, `scope`, `tags` + +### `view-table` + +CRUD operations for ViewTable records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all viewTable records | +| `find-first` | Find first matching viewTable record | +| `get` | Get a viewTable by id | +| `create` | Create a new viewTable | +| `update` | Update an existing viewTable | +| `delete` | Delete a viewTable | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `viewId` | UUID | +| `tableId` | UUID | +| `joinOrder` | Int | + +**Required create fields:** `viewId`, `tableId` +**Optional create fields (backend defaults):** `joinOrder` + +### `view-grant` + +CRUD operations for ViewGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all viewGrant records | +| `find-first` | Find first matching viewGrant record | +| `get` | Get a viewGrant by id | +| `create` | Create a new viewGrant | +| `update` | Update an existing viewGrant | +| `delete` | Delete a viewGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `viewId` | UUID | +| `granteeName` | String | +| `privilege` | String | +| `withGrantOption` | Boolean | +| `isGrant` | Boolean | + +**Required create fields:** `viewId`, `granteeName`, `privilege` +**Optional create fields (backend defaults):** `databaseId`, `withGrantOption`, `isGrant` + +### `view-rule` + +CRUD operations for ViewRule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all viewRule records | +| `find-first` | Find first matching viewRule record | +| `get` | Get a viewRule by id | +| `create` | Create a new viewRule | +| `update` | Update an existing viewRule | +| `delete` | Delete a viewRule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `viewId` | UUID | +| `name` | String | +| `event` | String | +| `action` | String | + +**Required create fields:** `viewId`, `name`, `event` +**Optional create fields (backend defaults):** `databaseId`, `action` + +### `embedding-chunk` + +CRUD operations for EmbeddingChunk records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all embeddingChunk records | +| `find-first` | Find first matching embeddingChunk record | +| `get` | Get a embeddingChunk by id | +| `create` | Create a new embeddingChunk | +| `update` | Update an existing embeddingChunk | +| `delete` | Delete a embeddingChunk | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `embeddingFieldId` | UUID | +| `chunksTableId` | UUID | +| `chunksTableName` | String | +| `contentFieldName` | String | +| `dimensions` | Int | +| `metric` | String | +| `chunkSize` | Int | +| `chunkOverlap` | Int | +| `chunkStrategy` | String | +| `metadataFields` | JSON | +| `searchIndexes` | JSON | +| `enqueueChunkingJob` | Boolean | +| `chunkingTaskName` | String | +| `embeddingModel` | String | +| `embeddingProvider` | String | +| `parentFkFieldId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId` +**Optional create fields (backend defaults):** `databaseId`, `embeddingFieldId`, `chunksTableId`, `chunksTableName`, `contentFieldName`, `dimensions`, `metric`, `chunkSize`, `chunkOverlap`, `chunkStrategy`, `metadataFields`, `searchIndexes`, `enqueueChunkingJob`, `chunkingTaskName`, `embeddingModel`, `embeddingProvider`, `parentFkFieldId` + +### `schema-grant` + +CRUD operations for SchemaGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all schemaGrant records | +| `find-first` | Find first matching schemaGrant record | +| `get` | Get a schemaGrant by id | +| `create` | Create a new schemaGrant | +| `update` | Update an existing schemaGrant | +| `delete` | Delete a schemaGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `granteeName` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `schemaId`, `granteeName` +**Optional create fields (backend defaults):** `databaseId` + +### `default-privilege` + +CRUD operations for DefaultPrivilege records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all defaultPrivilege records | +| `find-first` | Find first matching defaultPrivilege record | +| `get` | Get a defaultPrivilege by id | +| `create` | Create a new defaultPrivilege | +| `update` | Update an existing defaultPrivilege | +| `delete` | Delete a defaultPrivilege | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `objectType` | String | +| `privilege` | String | +| `granteeName` | String | +| `isGrant` | Boolean | + +**Required create fields:** `schemaId`, `objectType`, `privilege`, `granteeName` +**Optional create fields (backend defaults):** `databaseId`, `isGrant` + +### `enum` + +CRUD operations for Enum records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all enum records | +| `find-first` | Find first matching enum record | +| `get` | Get a enum by id | +| `create` | Create a new enum | +| `update` | Update an existing enum | +| `delete` | Delete a enum | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `name` | String | +| `label` | String | +| `description` | String | +| `values` | String | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | + +**Required create fields:** `databaseId`, `schemaId`, `name` +**Optional create fields (backend defaults):** `label`, `description`, `values`, `smartTags`, `category`, `module`, `scope`, `tags` + +### `api-schema` + +CRUD operations for ApiSchema records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all apiSchema records | +| `find-first` | Find first matching apiSchema record | +| `get` | Get a apiSchema by id | +| `create` | Create a new apiSchema | +| `update` | Update an existing apiSchema | +| `delete` | Delete a apiSchema | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `apiId` | UUID | + +**Required create fields:** `databaseId`, `schemaId`, `apiId` + +### `api-module` + +CRUD operations for ApiModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all apiModule records | +| `find-first` | Find first matching apiModule record | +| `get` | Get a apiModule by id | +| `create` | Create a new apiModule | +| `update` | Update an existing apiModule | +| `delete` | Delete a apiModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `apiId` | UUID | +| `name` | String | +| `data` | JSON | + +**Required create fields:** `databaseId`, `apiId`, `name`, `data` + +### `domain` + +CRUD operations for Domain records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all domain records | +| `find-first` | Find first matching domain record | +| `get` | Get a domain by id | +| `create` | Create a new domain | +| `update` | Update an existing domain | +| `delete` | Delete a domain | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `apiId` | UUID | +| `siteId` | UUID | +| `subdomain` | Hostname | +| `domain` | Hostname | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `apiId`, `siteId`, `subdomain`, `domain` + +### `site-metadatum` + +CRUD operations for SiteMetadatum records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all siteMetadatum records | +| `find-first` | Find first matching siteMetadatum record | +| `get` | Get a siteMetadatum by id | +| `create` | Create a new siteMetadatum | +| `update` | Update an existing siteMetadatum | +| `delete` | Delete a siteMetadatum | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `siteId` | UUID | +| `title` | String | +| `description` | String | +| `ogImage` | Image | + +**Required create fields:** `databaseId`, `siteId` +**Optional create fields (backend defaults):** `title`, `description`, `ogImage` + +### `site-module` + +CRUD operations for SiteModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all siteModule records | +| `find-first` | Find first matching siteModule record | +| `get` | Get a siteModule by id | +| `create` | Create a new siteModule | +| `update` | Update an existing siteModule | +| `delete` | Delete a siteModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `siteId` | UUID | +| `name` | String | +| `data` | JSON | + +**Required create fields:** `databaseId`, `siteId`, `name`, `data` + +### `site-theme` + +CRUD operations for SiteTheme records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all siteTheme records | +| `find-first` | Find first matching siteTheme record | +| `get` | Get a siteTheme by id | +| `create` | Create a new siteTheme | +| `update` | Update an existing siteTheme | +| `delete` | Delete a siteTheme | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `siteId` | UUID | +| `theme` | JSON | + +**Required create fields:** `databaseId`, `siteId`, `theme` + +### `cors-setting` + +CRUD operations for CorsSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all corsSetting records | +| `find-first` | Find first matching corsSetting record | +| `get` | Get a corsSetting by id | +| `create` | Create a new corsSetting | +| `update` | Update an existing corsSetting | +| `delete` | Delete a corsSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `apiId` | UUID | +| `allowedOrigins` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `apiId`, `allowedOrigins` + +### `trigger-function` + +CRUD operations for TriggerFunction records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all triggerFunction records | +| `find-first` | Find first matching triggerFunction record | +| `get` | Get a triggerFunction by id | +| `create` | Create a new triggerFunction | +| `update` | Update an existing triggerFunction | +| `delete` | Delete a triggerFunction | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `name` | String | +| `code` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `name` +**Optional create fields (backend defaults):** `code` + +### `partition` + +CRUD operations for Partition records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all partition records | +| `find-first` | Find first matching partition record | +| `get` | Get a partition by id | +| `create` | Create a new partition | +| `update` | Update an existing partition | +| `delete` | Delete a partition | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `strategy` | String | +| `partitionKeyId` | UUID | +| `interval` | String | +| `retention` | String | +| `retentionKeepTable` | Boolean | +| `premake` | Int | +| `namingPattern` | String | +| `isParented` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `databaseId`, `tableId`, `strategy`, `partitionKeyId` +**Optional create fields (backend defaults):** `interval`, `retention`, `retentionKeepTable`, `premake`, `namingPattern`, `isParented` + +### `database-transfer` + +CRUD operations for DatabaseTransfer records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all databaseTransfer records | +| `find-first` | Find first matching databaseTransfer record | +| `get` | Get a databaseTransfer by id | +| `create` | Create a new databaseTransfer | +| `update` | Update an existing databaseTransfer | +| `delete` | Delete a databaseTransfer | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `targetOwnerId` | UUID | +| `sourceApproved` | Boolean | +| `targetApproved` | Boolean | +| `sourceApprovedAt` | Datetime | +| `targetApprovedAt` | Datetime | +| `status` | String | +| `initiatedBy` | UUID | +| `notes` | String | +| `expiresAt` | Datetime | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `completedAt` | Datetime | + +**Required create fields:** `databaseId`, `targetOwnerId`, `initiatedBy` +**Optional create fields (backend defaults):** `sourceApproved`, `targetApproved`, `sourceApprovedAt`, `targetApprovedAt`, `status`, `notes`, `expiresAt`, `completedAt` + +### `api` + +CRUD operations for Api records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all api records | +| `find-first` | Find first matching api record | +| `get` | Get a api by id | +| `create` | Create a new api | +| `update` | Update an existing api | +| `delete` | Delete a api | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `name` | String | +| `dbname` | String | +| `roleName` | String | +| `anonRole` | String | +| `isPublic` | Boolean | + +**Required create fields:** `databaseId`, `name` +**Optional create fields (backend defaults):** `dbname`, `roleName`, `anonRole`, `isPublic` + +### `site` + +CRUD operations for Site records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all site records | +| `find-first` | Find first matching site record | +| `get` | Get a site by id | +| `create` | Create a new site | +| `update` | Update an existing site | +| `delete` | Delete a site | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `title` | String | +| `description` | String | +| `ogImage` | Image | +| `favicon` | Attachment | +| `appleTouchIcon` | Image | +| `logo` | Image | +| `dbname` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `title`, `description`, `ogImage`, `favicon`, `appleTouchIcon`, `logo`, `dbname` + +### `app` + +CRUD operations for App records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all app records | +| `find-first` | Find first matching app record | +| `get` | Get a app by id | +| `create` | Create a new app | +| `update` | Update an existing app | +| `delete` | Delete a app | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `siteId` | UUID | +| `name` | String | +| `appImage` | Image | +| `appStoreLink` | Url | +| `appStoreId` | String | +| `appIdPrefix` | String | +| `playStoreLink` | Url | + +**Required create fields:** `databaseId`, `siteId` +**Optional create fields (backend defaults):** `name`, `appImage`, `appStoreLink`, `appStoreId`, `appIdPrefix`, `playStoreLink` + +### `api-setting` + +CRUD operations for ApiSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all apiSetting records | +| `find-first` | Find first matching apiSetting record | +| `get` | Get a apiSetting by id | +| `create` | Create a new apiSetting | +| `update` | Update an existing apiSetting | +| `delete` | Delete a apiSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `apiId` | UUID | +| `enableAggregates` | Boolean | +| `enablePostgis` | Boolean | +| `enableSearch` | Boolean | +| `enableDirectUploads` | Boolean | +| `enablePresignedUploads` | Boolean | +| `enableManyToMany` | Boolean | +| `enableConnectionFilter` | Boolean | +| `enableLtree` | Boolean | +| `enableLlm` | Boolean | +| `enableRealtime` | Boolean | +| `enableBulk` | Boolean | +| `enableI18N` | Boolean | +| `options` | JSON | + +**Required create fields:** `databaseId`, `apiId` +**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `enableI18N`, `options` + +### `migrate-file` + +CRUD operations for MigrateFile records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all migrateFile records | +| `find-first` | Find first matching migrateFile record | +| `get` | Get a migrateFile by id | +| `create` | Create a new migrateFile | +| `update` | Update an existing migrateFile | +| `delete` | Delete a migrateFile | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `upload` | Upload | + +**Optional create fields (backend defaults):** `databaseId`, `upload` + +### `node-type-registry` + +CRUD operations for NodeTypeRegistry records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all nodeTypeRegistry records | +| `find-first` | Find first matching nodeTypeRegistry record | +| `get` | Get a nodeTypeRegistry by name | +| `create` | Create a new nodeTypeRegistry | +| `update` | Update an existing nodeTypeRegistry | +| `delete` | Delete a nodeTypeRegistry | + +**Fields:** + +| Field | Type | +|-------|------| +| `name` | String | +| `slug` | String | +| `category` | String | +| `displayName` | String | +| `description` | String | +| `parameterSchema` | JSON | +| `tags` | String | + +**Required create fields:** `slug`, `category` +**Optional create fields (backend defaults):** `displayName`, `description`, `parameterSchema`, `tags` + +### `pubkey-setting` + +CRUD operations for PubkeySetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all pubkeySetting records | +| `find-first` | Find first matching pubkeySetting record | +| `get` | Get a pubkeySetting by id | +| `create` | Create a new pubkeySetting | +| `update` | Update an existing pubkeySetting | +| `delete` | Delete a pubkeySetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `cryptoNetwork` | String | +| `userField` | String | +| `signUpWithKeyFunctionId` | UUID | +| `signInRequestChallengeFunctionId` | UUID | +| `signInRecordFailureFunctionId` | UUID | +| `signInWithChallengeFunctionId` | UUID | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `cryptoNetwork`, `userField`, `signUpWithKeyFunctionId`, `signInRequestChallengeFunctionId`, `signInRecordFailureFunctionId`, `signInWithChallengeFunctionId` + +### `database` + +CRUD operations for Database records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all database records | +| `find-first` | Find first matching database record | +| `get` | Get a database by id | +| `create` | Create a new database | +| `update` | Update an existing database | +| `delete` | Delete a database | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `ownerId` | UUID | +| `schemaHash` | String | +| `name` | String | +| `label` | String | +| `hash` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Optional create fields (backend defaults):** `ownerId`, `schemaHash`, `name`, `label`, `hash` + +### `rls-setting` + +CRUD operations for RlsSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all rlsSetting records | +| `find-first` | Find first matching rlsSetting record | +| `get` | Get a rlsSetting by id | +| `create` | Create a new rlsSetting | +| `update` | Update an existing rlsSetting | +| `delete` | Delete a rlsSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `authenticateSchemaId` | UUID | +| `roleSchemaId` | UUID | +| `authenticateFunctionId` | UUID | +| `authenticateStrictFunctionId` | UUID | +| `currentRoleFunctionId` | UUID | +| `currentRoleIdFunctionId` | UUID | +| `currentUserAgentFunctionId` | UUID | +| `currentIpAddressFunctionId` | UUID | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `authenticateSchemaId`, `roleSchemaId`, `authenticateFunctionId`, `authenticateStrictFunctionId`, `currentRoleFunctionId`, `currentRoleIdFunctionId`, `currentUserAgentFunctionId`, `currentIpAddressFunctionId` + +### `sql-action` + +CRUD operations for SqlAction records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all sqlAction records | +| `find-first` | Find first matching sqlAction record | +| `get` | Get a sqlAction by id | +| `create` | Create a new sqlAction | +| `update` | Update an existing sqlAction | +| `delete` | Delete a sqlAction | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | Int | +| `name` | String | +| `databaseId` | UUID | +| `deploy` | String | +| `deps` | String | +| `payload` | JSON | +| `content` | String | +| `revert` | String | +| `verify` | String | +| `createdAt` | Datetime | +| `action` | String | +| `actionId` | UUID | +| `actorId` | UUID | + +**Optional create fields (backend defaults):** `name`, `databaseId`, `deploy`, `deps`, `payload`, `content`, `revert`, `verify`, `action`, `actionId`, `actorId` + +### `database-setting` + +CRUD operations for DatabaseSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all databaseSetting records | +| `find-first` | Find first matching databaseSetting record | +| `get` | Get a databaseSetting by id | +| `create` | Create a new databaseSetting | +| `update` | Update an existing databaseSetting | +| `delete` | Delete a databaseSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `enableAggregates` | Boolean | +| `enablePostgis` | Boolean | +| `enableSearch` | Boolean | +| `enableDirectUploads` | Boolean | +| `enablePresignedUploads` | Boolean | +| `enableManyToMany` | Boolean | +| `enableConnectionFilter` | Boolean | +| `enableLtree` | Boolean | +| `enableLlm` | Boolean | +| `enableRealtime` | Boolean | +| `enableBulk` | Boolean | +| `enableI18N` | Boolean | +| `options` | JSON | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `enableI18N`, `options` + +### `webauthn-setting` + +CRUD operations for WebauthnSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all webauthnSetting records | +| `find-first` | Find first matching webauthnSetting record | +| `get` | Get a webauthnSetting by id | +| `create` | Create a new webauthnSetting | +| `update` | Update an existing webauthnSetting | +| `delete` | Delete a webauthnSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `credentialsSchemaId` | UUID | +| `sessionsSchemaId` | UUID | +| `sessionSecretsSchemaId` | UUID | +| `credentialsTableId` | UUID | +| `sessionsTableId` | UUID | +| `sessionCredentialsTableId` | UUID | +| `sessionSecretsTableId` | UUID | +| `userFieldId` | UUID | +| `rpId` | String | +| `rpName` | String | +| `originAllowlist` | String | +| `attestationType` | String | +| `requireUserVerification` | Boolean | +| `residentKey` | String | +| `challengeExpirySeconds` | BigInt | + +**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` + +applyRegistryDefaults + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--nodeType` | String | + | `--data` | JSON | + +### `accept-database-transfer` + +acceptDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.transferId` | UUID | + +### `cancel-database-transfer` + +cancelDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.transferId` | UUID | + +### `reject-database-transfer` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--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 + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.fieldIds` | UUID | + +### `apply-rls` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.tableId` | UUID | + | `--input.grants` | JSON | + | `--input.policyType` | String | + | `--input.vars` | JSON | + | `--input.fieldIds` | UUID | + | `--input.permissive` | Boolean | + | `--input.name` | String | + +### `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) + +Returns the database_id UUID of the newly created database. + +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 + + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseName` | String | + | `--input.ownerId` | UUID | + | `--input.includeInvites` | Boolean | + | `--input.includeGroups` | Boolean | + | `--input.includeLevels` | Boolean | + | `--input.bitlen` | Int | + | `--input.tokensExpiration` | IntervalInput | + +### `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/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts new file mode 100644 index 0000000000..c6caf4262a --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands.ts @@ -0,0 +1,163 @@ +/** + * 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 functionCmd from './commands/function'; +import schemaCmd from './commands/schema'; +import tableCmd from './commands/table'; +import checkConstraintCmd from './commands/check-constraint'; +import fieldCmd from './commands/field'; +import spatialRelationCmd from './commands/spatial-relation'; +import foreignKeyConstraintCmd from './commands/foreign-key-constraint'; +import fullTextSearchCmd from './commands/full-text-search'; +import indexCmd from './commands/index'; +import policyCmd from './commands/policy'; +import primaryKeyConstraintCmd from './commands/primary-key-constraint'; +import tableGrantCmd from './commands/table-grant'; +import triggerCmd from './commands/trigger'; +import uniqueConstraintCmd from './commands/unique-constraint'; +import viewCmd from './commands/view'; +import viewTableCmd from './commands/view-table'; +import viewGrantCmd from './commands/view-grant'; +import viewRuleCmd from './commands/view-rule'; +import embeddingChunkCmd from './commands/embedding-chunk'; +import schemaGrantCmd from './commands/schema-grant'; +import defaultPrivilegeCmd from './commands/default-privilege'; +import enumCmd from './commands/enum'; +import apiSchemaCmd from './commands/api-schema'; +import apiModuleCmd from './commands/api-module'; +import domainCmd from './commands/domain'; +import siteMetadatumCmd from './commands/site-metadatum'; +import siteModuleCmd from './commands/site-module'; +import siteThemeCmd from './commands/site-theme'; +import corsSettingCmd from './commands/cors-setting'; +import triggerFunctionCmd from './commands/trigger-function'; +import partitionCmd from './commands/partition'; +import databaseTransferCmd from './commands/database-transfer'; +import apiCmd from './commands/api'; +import siteCmd from './commands/site'; +import appCmd from './commands/app'; +import apiSettingCmd from './commands/api-setting'; +import migrateFileCmd from './commands/migrate-file'; +import nodeTypeRegistryCmd from './commands/node-type-registry'; +import pubkeySettingCmd from './commands/pubkey-setting'; +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 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 provisionBucketCmd from './commands/provision-bucket'; +const createCommandMap: () => Record< + string, + ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions + ) => Promise +> = () => ({ + context: contextCmd, + auth: authCmd, + function: functionCmd, + schema: schemaCmd, + table: tableCmd, + 'check-constraint': checkConstraintCmd, + field: fieldCmd, + 'spatial-relation': spatialRelationCmd, + 'foreign-key-constraint': foreignKeyConstraintCmd, + 'full-text-search': fullTextSearchCmd, + index: indexCmd, + policy: policyCmd, + 'primary-key-constraint': primaryKeyConstraintCmd, + 'table-grant': tableGrantCmd, + trigger: triggerCmd, + 'unique-constraint': uniqueConstraintCmd, + view: viewCmd, + 'view-table': viewTableCmd, + 'view-grant': viewGrantCmd, + 'view-rule': viewRuleCmd, + 'embedding-chunk': embeddingChunkCmd, + 'schema-grant': schemaGrantCmd, + 'default-privilege': defaultPrivilegeCmd, + enum: enumCmd, + 'api-schema': apiSchemaCmd, + 'api-module': apiModuleCmd, + domain: domainCmd, + 'site-metadatum': siteMetadatumCmd, + 'site-module': siteModuleCmd, + 'site-theme': siteThemeCmd, + 'cors-setting': corsSettingCmd, + 'trigger-function': triggerFunctionCmd, + partition: partitionCmd, + 'database-transfer': databaseTransferCmd, + api: apiCmd, + site: siteCmd, + app: appCmd, + 'api-setting': apiSettingCmd, + 'migrate-file': migrateFileCmd, + 'node-type-registry': nodeTypeRegistryCmd, + 'pubkey-setting': pubkeySettingCmd, + database: databaseCmd, + 'rls-setting': rlsSettingCmd, + 'sql-action': sqlActionCmd, + 'database-setting': databaseSettingCmd, + 'webauthn-setting': webauthnSettingCmd, + 'ast-migration': astMigrationCmd, + '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, + '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 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"; +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/public/cli/commands/accept-database-transfer.ts b/sdk/constructive-cli/src/api/cli/commands/accept-database-transfer.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/accept-database-transfer.ts rename to sdk/constructive-cli/src/api/cli/commands/accept-database-transfer.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/api-module.ts b/sdk/constructive-cli/src/api/cli/commands/api-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/api-module.ts rename to sdk/constructive-cli/src/api/cli/commands/api-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/api-schema.ts b/sdk/constructive-cli/src/api/cli/commands/api-schema.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/api-schema.ts rename to sdk/constructive-cli/src/api/cli/commands/api-schema.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/api-setting.ts b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts similarity index 96% rename from sdk/constructive-cli/src/public/cli/commands/api-setting.ts rename to sdk/constructive-cli/src/api/cli/commands/api-setting.ts index d75b9c02d7..dea2b0ce4e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/api-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts @@ -30,6 +30,7 @@ const fieldSchema: FieldSchema = { enableLlm: 'boolean', enableRealtime: 'boolean', enableBulk: 'boolean', + enableI18N: 'boolean', options: 'json', }; const usage = @@ -97,6 +98,7 @@ async function handleList(argv: Partial>, _prompter: Inq enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }; const findManyArgs = parseFindManyArgs< @@ -132,6 +134,7 @@ async function handleFindFirst(argv: Partial>, _prompter enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }; const findFirstArgs = parseFindFirstArgs< @@ -179,6 +182,7 @@ async function handleGet(argv: Partial>, prompter: Inqui enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }, }) @@ -284,6 +288,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableI18N', + message: 'enableI18N', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -311,6 +322,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, enableBulk: cleanedData.enableBulk, + enableI18N: cleanedData.enableI18N, options: cleanedData.options, }, select: { @@ -328,6 +340,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }, }) @@ -439,6 +452,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableI18N', + message: 'enableI18N', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -469,6 +489,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, enableBulk: cleanedData.enableBulk, + enableI18N: cleanedData.enableI18N, options: cleanedData.options, }, select: { @@ -486,6 +507,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }, }) diff --git a/sdk/constructive-cli/src/public/cli/commands/api.ts b/sdk/constructive-cli/src/api/cli/commands/api.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/api.ts rename to sdk/constructive-cli/src/api/cli/commands/api.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/app.ts b/sdk/constructive-cli/src/api/cli/commands/app.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/app.ts rename to sdk/constructive-cli/src/api/cli/commands/app.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/apply-registry-defaults.ts b/sdk/constructive-cli/src/api/cli/commands/apply-registry-defaults.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/apply-registry-defaults.ts rename to sdk/constructive-cli/src/api/cli/commands/apply-registry-defaults.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/apply-rls.ts b/sdk/constructive-cli/src/api/cli/commands/apply-rls.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/apply-rls.ts rename to sdk/constructive-cli/src/api/cli/commands/apply-rls.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/ast-migration.ts b/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/ast-migration.ts rename to sdk/constructive-cli/src/api/cli/commands/ast-migration.ts diff --git a/sdk/constructive-cli/src/api/cli/commands/auth.ts b/sdk/constructive-cli/src/api/cli/commands/auth.ts new file mode 100644 index 0000000000..c731ba27ca --- /dev/null +++ b/sdk/constructive-cli/src/api/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/public/cli/commands/bootstrap-user.ts b/sdk/constructive-cli/src/api/cli/commands/bootstrap-user.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/bootstrap-user.ts rename to sdk/constructive-cli/src/api/cli/commands/bootstrap-user.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/cancel-database-transfer.ts b/sdk/constructive-cli/src/api/cli/commands/cancel-database-transfer.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/cancel-database-transfer.ts rename to sdk/constructive-cli/src/api/cli/commands/cancel-database-transfer.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/check-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/check-constraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/check-constraint.ts rename to sdk/constructive-cli/src/api/cli/commands/check-constraint.ts diff --git a/sdk/constructive-cli/src/api/cli/commands/context.ts b/sdk/constructive-cli/src/api/cli/commands/context.ts new file mode 100644 index 0000000000..52d12c666b --- /dev/null +++ b/sdk/constructive-cli/src/api/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/public/cli/commands/cors-setting.ts b/sdk/constructive-cli/src/api/cli/commands/cors-setting.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/cors-setting.ts rename to sdk/constructive-cli/src/api/cli/commands/cors-setting.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/create-user-database.ts b/sdk/constructive-cli/src/api/cli/commands/create-user-database.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/create-user-database.ts rename to sdk/constructive-cli/src/api/cli/commands/create-user-database.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/database-setting.ts b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts similarity index 96% rename from sdk/constructive-cli/src/public/cli/commands/database-setting.ts rename to sdk/constructive-cli/src/api/cli/commands/database-setting.ts index 4d3d9b87ec..ce8c1f53cf 100644 --- a/sdk/constructive-cli/src/public/cli/commands/database-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts @@ -29,6 +29,7 @@ const fieldSchema: FieldSchema = { enableLlm: 'boolean', enableRealtime: 'boolean', enableBulk: 'boolean', + enableI18N: 'boolean', options: 'json', }; const usage = @@ -95,6 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }; const findManyArgs = parseFindManyArgs< @@ -129,6 +131,7 @@ async function handleFindFirst(argv: Partial>, _prompter enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }; const findFirstArgs = parseFindFirstArgs< @@ -175,6 +178,7 @@ async function handleGet(argv: Partial>, prompter: Inqui enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }, }) @@ -274,6 +278,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableI18N', + message: 'enableI18N', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -303,6 +314,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, enableBulk: cleanedData.enableBulk, + enableI18N: cleanedData.enableI18N, options: cleanedData.options, }, select: { @@ -319,6 +331,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }, }) @@ -424,6 +437,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableI18N', + message: 'enableI18N', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -453,6 +473,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, enableBulk: cleanedData.enableBulk, + enableI18N: cleanedData.enableI18N, options: cleanedData.options, }, select: { @@ -469,6 +490,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLlm: true, enableRealtime: true, enableBulk: true, + enableI18N: true, options: true, }, }) diff --git a/sdk/constructive-cli/src/public/cli/commands/database-transfer.ts b/sdk/constructive-cli/src/api/cli/commands/database-transfer.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/database-transfer.ts rename to sdk/constructive-cli/src/api/cli/commands/database-transfer.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/database.ts b/sdk/constructive-cli/src/api/cli/commands/database.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/database.ts rename to sdk/constructive-cli/src/api/cli/commands/database.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/default-privilege.ts b/sdk/constructive-cli/src/api/cli/commands/default-privilege.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/default-privilege.ts rename to sdk/constructive-cli/src/api/cli/commands/default-privilege.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/domain.ts b/sdk/constructive-cli/src/api/cli/commands/domain.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/domain.ts rename to sdk/constructive-cli/src/api/cli/commands/domain.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/embedding-chunk.ts b/sdk/constructive-cli/src/api/cli/commands/embedding-chunk.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/embedding-chunk.ts rename to sdk/constructive-cli/src/api/cli/commands/embedding-chunk.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/enum.ts b/sdk/constructive-cli/src/api/cli/commands/enum.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/enum.ts rename to sdk/constructive-cli/src/api/cli/commands/enum.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/field.ts b/sdk/constructive-cli/src/api/cli/commands/field.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/field.ts rename to sdk/constructive-cli/src/api/cli/commands/field.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/foreign-key-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/foreign-key-constraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/foreign-key-constraint.ts rename to sdk/constructive-cli/src/api/cli/commands/foreign-key-constraint.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/full-text-search.ts b/sdk/constructive-cli/src/api/cli/commands/full-text-search.ts similarity index 95% rename from sdk/constructive-cli/src/public/cli/commands/full-text-search.ts rename to sdk/constructive-cli/src/api/cli/commands/full-text-search.ts index dda885e166..7885f86ae8 100644 --- a/sdk/constructive-cli/src/public/cli/commands/full-text-search.ts +++ b/sdk/constructive-cli/src/api/cli/commands/full-text-search.ts @@ -23,6 +23,7 @@ const fieldSchema: FieldSchema = { fieldIds: 'uuid', weights: 'string', langs: 'string', + langColumn: 'string', createdAt: 'string', updatedAt: 'string', }; @@ -84,6 +85,7 @@ async function handleList(argv: Partial>, _prompter: Inq fieldIds: true, weights: true, langs: true, + langColumn: true, createdAt: true, updatedAt: true, }; @@ -113,6 +115,7 @@ async function handleFindFirst(argv: Partial>, _prompter fieldIds: true, weights: true, langs: true, + langColumn: true, createdAt: true, updatedAt: true, }; @@ -154,6 +157,7 @@ async function handleGet(argv: Partial>, prompter: Inqui fieldIds: true, weights: true, langs: true, + langColumn: true, createdAt: true, updatedAt: true, }, @@ -208,6 +212,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'langs', required: true, }, + { + type: 'text', + name: 'langColumn', + message: 'langColumn', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -224,6 +235,7 @@ async function handleCreate(argv: Partial>, prompter: In fieldIds: cleanedData.fieldIds, weights: cleanedData.weights, langs: cleanedData.langs, + langColumn: cleanedData.langColumn, }, select: { id: true, @@ -233,6 +245,7 @@ async function handleCreate(argv: Partial>, prompter: In fieldIds: true, weights: true, langs: true, + langColumn: true, createdAt: true, updatedAt: true, }, @@ -293,6 +306,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'langs', required: false, }, + { + type: 'text', + name: 'langColumn', + message: 'langColumn', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as FullTextSearchPatch; @@ -309,6 +329,7 @@ async function handleUpdate(argv: Partial>, prompter: In fieldIds: cleanedData.fieldIds, weights: cleanedData.weights, langs: cleanedData.langs, + langColumn: cleanedData.langColumn, }, select: { id: true, @@ -318,6 +339,7 @@ async function handleUpdate(argv: Partial>, prompter: In fieldIds: true, weights: true, langs: true, + langColumn: true, createdAt: true, updatedAt: true, }, diff --git a/sdk/constructive-cli/src/public/cli/commands/function.ts b/sdk/constructive-cli/src/api/cli/commands/function.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/function.ts rename to sdk/constructive-cli/src/api/cli/commands/function.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/index.ts b/sdk/constructive-cli/src/api/cli/commands/index.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/index.ts rename to sdk/constructive-cli/src/api/cli/commands/index.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/migrate-file.ts b/sdk/constructive-cli/src/api/cli/commands/migrate-file.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/migrate-file.ts rename to sdk/constructive-cli/src/api/cli/commands/migrate-file.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts b/sdk/constructive-cli/src/api/cli/commands/node-type-registry.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts rename to sdk/constructive-cli/src/api/cli/commands/node-type-registry.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/partition.ts b/sdk/constructive-cli/src/api/cli/commands/partition.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/partition.ts rename to sdk/constructive-cli/src/api/cli/commands/partition.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/policy.ts b/sdk/constructive-cli/src/api/cli/commands/policy.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/policy.ts rename to sdk/constructive-cli/src/api/cli/commands/policy.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/primary-key-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/primary-key-constraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/primary-key-constraint.ts rename to sdk/constructive-cli/src/api/cli/commands/primary-key-constraint.ts diff --git a/sdk/constructive-cli/src/api/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/api/cli/commands/provision-bucket.ts new file mode 100644 index 0000000000..ecd2e539d5 --- /dev/null +++ b/sdk/constructive-cli/src/api/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/public/cli/commands/provision-database-with-user.ts b/sdk/constructive-cli/src/api/cli/commands/provision-database-with-user.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-database-with-user.ts rename to sdk/constructive-cli/src/api/cli/commands/provision-database-with-user.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/pubkey-setting.ts b/sdk/constructive-cli/src/api/cli/commands/pubkey-setting.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/pubkey-setting.ts rename to sdk/constructive-cli/src/api/cli/commands/pubkey-setting.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/reject-database-transfer.ts b/sdk/constructive-cli/src/api/cli/commands/reject-database-transfer.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/reject-database-transfer.ts rename to sdk/constructive-cli/src/api/cli/commands/reject-database-transfer.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/rls-setting.ts b/sdk/constructive-cli/src/api/cli/commands/rls-setting.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/rls-setting.ts rename to sdk/constructive-cli/src/api/cli/commands/rls-setting.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/schema-grant.ts b/sdk/constructive-cli/src/api/cli/commands/schema-grant.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/schema-grant.ts rename to sdk/constructive-cli/src/api/cli/commands/schema-grant.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/schema.ts b/sdk/constructive-cli/src/api/cli/commands/schema.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/schema.ts rename to sdk/constructive-cli/src/api/cli/commands/schema.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/set-field-order.ts b/sdk/constructive-cli/src/api/cli/commands/set-field-order.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/set-field-order.ts rename to sdk/constructive-cli/src/api/cli/commands/set-field-order.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/site-metadatum.ts b/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/site-metadatum.ts rename to sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/site-module.ts b/sdk/constructive-cli/src/api/cli/commands/site-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/site-module.ts rename to sdk/constructive-cli/src/api/cli/commands/site-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/site-theme.ts b/sdk/constructive-cli/src/api/cli/commands/site-theme.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/site-theme.ts rename to sdk/constructive-cli/src/api/cli/commands/site-theme.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/site.ts b/sdk/constructive-cli/src/api/cli/commands/site.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/site.ts rename to sdk/constructive-cli/src/api/cli/commands/site.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/spatial-relation.ts b/sdk/constructive-cli/src/api/cli/commands/spatial-relation.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/spatial-relation.ts rename to sdk/constructive-cli/src/api/cli/commands/spatial-relation.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/sql-action.ts b/sdk/constructive-cli/src/api/cli/commands/sql-action.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/sql-action.ts rename to sdk/constructive-cli/src/api/cli/commands/sql-action.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/table-grant.ts b/sdk/constructive-cli/src/api/cli/commands/table-grant.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/table-grant.ts rename to sdk/constructive-cli/src/api/cli/commands/table-grant.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/table.ts b/sdk/constructive-cli/src/api/cli/commands/table.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/table.ts rename to sdk/constructive-cli/src/api/cli/commands/table.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/trigger-function.ts b/sdk/constructive-cli/src/api/cli/commands/trigger-function.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/trigger-function.ts rename to sdk/constructive-cli/src/api/cli/commands/trigger-function.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/trigger.ts b/sdk/constructive-cli/src/api/cli/commands/trigger.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/trigger.ts rename to sdk/constructive-cli/src/api/cli/commands/trigger.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/unique-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/unique-constraint.ts rename to sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/view-grant.ts b/sdk/constructive-cli/src/api/cli/commands/view-grant.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/view-grant.ts rename to sdk/constructive-cli/src/api/cli/commands/view-grant.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/view-rule.ts b/sdk/constructive-cli/src/api/cli/commands/view-rule.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/view-rule.ts rename to sdk/constructive-cli/src/api/cli/commands/view-rule.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/view-table.ts b/sdk/constructive-cli/src/api/cli/commands/view-table.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/view-table.ts rename to sdk/constructive-cli/src/api/cli/commands/view-table.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/view.ts b/sdk/constructive-cli/src/api/cli/commands/view.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/view.ts rename to sdk/constructive-cli/src/api/cli/commands/view.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/webauthn-setting.ts b/sdk/constructive-cli/src/api/cli/commands/webauthn-setting.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/webauthn-setting.ts rename to sdk/constructive-cli/src/api/cli/commands/webauthn-setting.ts diff --git a/sdk/constructive-cli/src/api/cli/executor.ts b/sdk/constructive-cli/src/api/cli/executor.ts new file mode 100644 index 0000000000..50d150bce8 --- /dev/null +++ b/sdk/constructive-cli/src/api/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/api/cli/index.ts b/sdk/constructive-cli/src/api/cli/index.ts new file mode 100644 index 0000000000..9ca839a9ee --- /dev/null +++ b/sdk/constructive-cli/src/api/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/api/cli/utils.ts b/sdk/constructive-cli/src/api/cli/utils.ts new file mode 100644 index 0000000000..78a7defb6f --- /dev/null +++ b/sdk/constructive-cli/src/api/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/api/index.ts b/sdk/constructive-cli/src/api/index.ts new file mode 100644 index 0000000000..df67cba476 --- /dev/null +++ b/sdk/constructive-cli/src/api/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/api/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md new file mode 100644 index 0000000000..8690e7411b --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/README.md @@ -0,0 +1,2001 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `function` | findMany, findOne, create, update, delete | +| `schema` | findMany, findOne, create, update, delete | +| `table` | findMany, findOne, create, update, delete | +| `checkConstraint` | findMany, findOne, create, update, delete | +| `field` | findMany, findOne, create, update, delete | +| `spatialRelation` | findMany, findOne, create, update, delete | +| `foreignKeyConstraint` | findMany, findOne, create, update, delete | +| `fullTextSearch` | findMany, findOne, create, update, delete | +| `index` | findMany, findOne, create, update, delete | +| `policy` | findMany, findOne, create, update, delete | +| `primaryKeyConstraint` | findMany, findOne, create, update, delete | +| `tableGrant` | findMany, findOne, create, update, delete | +| `trigger` | findMany, findOne, create, update, delete | +| `uniqueConstraint` | findMany, findOne, create, update, delete | +| `view` | findMany, findOne, create, update, delete | +| `viewTable` | findMany, findOne, create, update, delete | +| `viewGrant` | findMany, findOne, create, update, delete | +| `viewRule` | findMany, findOne, create, update, delete | +| `embeddingChunk` | findMany, findOne, create, update, delete | +| `schemaGrant` | findMany, findOne, create, update, delete | +| `defaultPrivilege` | findMany, findOne, create, update, delete | +| `enum` | findMany, findOne, create, update, delete | +| `apiSchema` | findMany, findOne, create, update, delete | +| `apiModule` | findMany, findOne, create, update, delete | +| `domain` | findMany, findOne, create, update, delete | +| `siteMetadatum` | findMany, findOne, create, update, delete | +| `siteModule` | findMany, findOne, create, update, delete | +| `siteTheme` | findMany, findOne, create, update, delete | +| `corsSetting` | findMany, findOne, create, update, delete | +| `triggerFunction` | findMany, findOne, create, update, delete | +| `partition` | findMany, findOne, create, update, delete | +| `databaseTransfer` | findMany, findOne, create, update, delete | +| `api` | findMany, findOne, create, update, delete | +| `site` | findMany, findOne, create, update, delete | +| `app` | findMany, findOne, create, update, delete | +| `apiSetting` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `pubkeySetting` | findMany, findOne, create, update, delete | +| `database` | findMany, findOne, create, update, delete | +| `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 | + +## Table Operations + +### `db.function` + +CRUD operations for Function records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all function records +const items = await db.function.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); + +// Get one by id +const item = await db.function.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); + +// Create +const created = await db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.function.delete({ where: { id: '' } }).execute(); +``` + +### `db.schema` + +CRUD operations for Schema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `schemaName` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `isPublic` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schema records +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schema.delete({ where: { id: '' } }).execute(); +``` + +### `db.table` + +CRUD operations for Table records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `useRls` | Boolean | Yes | +| `timestamps` | Boolean | Yes | +| `peoplestamps` | Boolean | Yes | +| `pluralName` | String | Yes | +| `singularName` | String | Yes | +| `tags` | String | Yes | +| `partitioned` | Boolean | Yes | +| `partitionStrategy` | String | Yes | +| `partitionKeyNames` | String | Yes | +| `partitionKeyTypes` | String | Yes | +| `inheritsId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.table.delete({ where: { id: '' } }).execute(); +``` + +### `db.checkConstraint` + +CRUD operations for CheckConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `expr` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all checkConstraint records +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.field` + +CRUD operations for Field records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | +| `defaultValue` | JSON | Yes | +| `type` | JSON | Yes | +| `fieldOrder` | Int | Yes | +| `regexp` | String | Yes | +| `chk` | JSON | Yes | +| `chkExpr` | JSON | Yes | +| `min` | Float | Yes | +| `max` | Float | Yes | +| `tags` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.field.delete({ where: { id: '' } }).execute(); +``` + +### `db.spatialRelation` + +CRUD operations for SpatialRelation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `name` | String | Yes | +| `operator` | String | Yes | +| `paramName` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all spatialRelation records +const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); +``` + +### `db.foreignKeyConstraint` + +CRUD operations for ForeignKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldIds` | UUID | Yes | +| `deleteAction` | String | Yes | +| `updateAction` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all foreignKeyConstraint records +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.fullTextSearch` + +CRUD operations for FullTextSearch records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fieldIds` | UUID | Yes | +| `weights` | String | Yes | +| `langs` | String | Yes | +| `langColumn` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all fullTextSearch records +const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '', langColumn: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); +``` + +### `db.index` + +CRUD operations for Index records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `fieldIds` | UUID | Yes | +| `includeFieldIds` | UUID | Yes | +| `accessMethod` | String | Yes | +| `indexParams` | JSON | Yes | +| `whereClause` | JSON | Yes | +| `isUnique` | Boolean | Yes | +| `options` | JSON | Yes | +| `opClasses` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all index records +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.index.delete({ where: { id: '' } }).execute(); +``` + +### `db.policy` + +CRUD operations for Policy records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `granteeName` | String | Yes | +| `privilege` | String | Yes | +| `permissive` | Boolean | Yes | +| `disabled` | Boolean | Yes | +| `policyType` | String | Yes | +| `data` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.policy.delete({ where: { id: '' } }).execute(); +``` + +### `db.primaryKeyConstraint` + +CRUD operations for PrimaryKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all primaryKeyConstraint records +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.tableGrant` + +CRUD operations for TableGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `fieldIds` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all tableGrant records +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.trigger` + +CRUD operations for Trigger records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `functionName` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all trigger records +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); +``` + +### `db.uniqueConstraint` + +CRUD operations for UniqueConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all uniqueConstraint records +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.view` + +CRUD operations for View records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `tableId` | UUID | Yes | +| `viewType` | String | Yes | +| `data` | JSON | Yes | +| `filterType` | String | Yes | +| `filterData` | JSON | Yes | +| `securityInvoker` | Boolean | Yes | +| `isReadOnly` | Boolean | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all view records +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.view.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewTable` + +CRUD operations for ViewTable records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `viewId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `joinOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all viewTable records +const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Get one by id +const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Create +const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewGrant` + +CRUD operations for ViewGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `granteeName` | String | Yes | +| `privilege` | String | Yes | +| `withGrantOption` | Boolean | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all viewGrant records +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); + +// Create +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewRule` + +CRUD operations for ViewRule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `action` | String | Yes | + +**Operations:** + +```typescript +// List all viewRule records +const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Get one by id +const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Create +const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.embeddingChunk` + +CRUD operations for EmbeddingChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `embeddingFieldId` | UUID | Yes | +| `chunksTableId` | UUID | Yes | +| `chunksTableName` | String | Yes | +| `contentFieldName` | String | Yes | +| `dimensions` | Int | Yes | +| `metric` | String | Yes | +| `chunkSize` | Int | Yes | +| `chunkOverlap` | Int | Yes | +| `chunkStrategy` | String | Yes | +| `metadataFields` | JSON | Yes | +| `searchIndexes` | JSON | Yes | +| `enqueueChunkingJob` | Boolean | Yes | +| `chunkingTaskName` | String | Yes | +| `embeddingModel` | String | Yes | +| `embeddingProvider` | String | Yes | +| `parentFkFieldId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all embeddingChunk records +const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); +``` + +### `db.schemaGrant` + +CRUD operations for SchemaGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `granteeName` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schemaGrant records +const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.defaultPrivilege` + +CRUD operations for DefaultPrivilege records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `objectType` | String | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all defaultPrivilege records +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Create +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + +### `db.enum` + +CRUD operations for Enum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `values` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all enum records +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.enum.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiSchema` + +CRUD operations for ApiSchema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `apiId` | UUID | Yes | + +**Operations:** + +```typescript +// List all apiSchema records +const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Get one by id +const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Create +const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiModule` + +CRUD operations for ApiModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all apiModule records +const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.domain` + +CRUD operations for Domain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `subdomain` | ConstructiveInternalTypeHostname | Yes | +| `domain` | ConstructiveInternalTypeHostname | Yes | + +**Operations:** + +```typescript +// List all domain records +const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Get one by id +const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Create +const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.domain.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteMetadatum` + +CRUD operations for SiteMetadatum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | + +**Operations:** + +```typescript +// List all siteMetadatum records +const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Get one by id +const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Create +const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteModule` + +CRUD operations for SiteModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteModule records +const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteTheme` + +CRUD operations for SiteTheme records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `theme` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteTheme records +const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Get one by id +const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Create +const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); +``` + +### `db.corsSetting` + +CRUD operations for CorsSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `allowedOrigins` | String | Yes | + +**Operations:** + +```typescript +// List all corsSetting records +const items = await db.corsSetting.findMany({ select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); + +// Get one by id +const item = await db.corsSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); + +// Create +const created = await db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.corsSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.triggerFunction` + +CRUD operations for TriggerFunction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `code` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all triggerFunction records +const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +``` + +### `db.partition` + +CRUD operations for Partition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `strategy` | String | Yes | +| `partitionKeyId` | UUID | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | +| `premake` | Int | Yes | +| `namingPattern` | String | Yes | +| `isParented` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all partition records +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.partition.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseTransfer` + +CRUD operations for DatabaseTransfer records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `targetOwnerId` | UUID | Yes | +| `sourceApproved` | Boolean | Yes | +| `targetApproved` | Boolean | Yes | +| `sourceApprovedAt` | Datetime | Yes | +| `targetApprovedAt` | Datetime | Yes | +| `status` | String | Yes | +| `initiatedBy` | UUID | Yes | +| `notes` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseTransfer records +const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Get one by id +const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Create +const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); +``` + +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `dbname` | String | Yes | +| `roleName` | String | Yes | +| `anonRole` | String | Yes | +| `isPublic` | Boolean | Yes | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Create +const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + +### `db.site` + +CRUD operations for Site records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | +| `favicon` | ConstructiveInternalTypeAttachment | Yes | +| `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `dbname` | String | Yes | + +**Operations:** + +```typescript +// List all site records +const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Get one by id +const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Create +const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.site.delete({ where: { id: '' } }).execute(); +``` + +### `db.app` + +CRUD operations for App records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `appImage` | ConstructiveInternalTypeImage | Yes | +| `appStoreLink` | ConstructiveInternalTypeUrl | Yes | +| `appStoreId` | String | Yes | +| `appIdPrefix` | String | Yes | +| `playStoreLink` | ConstructiveInternalTypeUrl | Yes | + +**Operations:** + +```typescript +// List all app records +const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Get one by id +const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Create +const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.app.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiSetting` + +CRUD operations for ApiSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `enableI18N` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all apiSetting records +const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Get one by id +const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Create +const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); + +// Get one by id +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); + +// Create +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +``` + +### `db.nodeTypeRegistry` + +CRUD operations for NodeTypeRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Create +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); + +// Update +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); + +// Delete +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +``` + +### `db.pubkeySetting` + +CRUD operations for PubkeySetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `cryptoNetwork` | String | Yes | +| `userField` | String | Yes | +| `signUpWithKeyFunctionId` | UUID | Yes | +| `signInRequestChallengeFunctionId` | UUID | Yes | +| `signInRecordFailureFunctionId` | UUID | Yes | +| `signInWithChallengeFunctionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all pubkeySetting records +const items = await db.pubkeySetting.findMany({ select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); + +// Get one by id +const item = await db.pubkeySetting.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); + +// Create +const created = await db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.database` + +CRUD operations for Database records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `schemaHash` | String | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.database.delete({ where: { id: '' } }).execute(); +``` + +### `db.rlsSetting` + +CRUD operations for RlsSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `authenticateSchemaId` | UUID | Yes | +| `roleSchemaId` | UUID | Yes | +| `authenticateFunctionId` | UUID | Yes | +| `authenticateStrictFunctionId` | UUID | Yes | +| `currentRoleFunctionId` | UUID | Yes | +| `currentRoleIdFunctionId` | UUID | Yes | +| `currentUserAgentFunctionId` | UUID | Yes | +| `currentIpAddressFunctionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all rlsSetting records +const items = await db.rlsSetting.findMany({ select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); + +// Get one by id +const item = await db.rlsSetting.findOne({ id: '', select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); + +// Create +const created = await db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.sqlAction` + +CRUD operations for SqlAction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `deploy` | String | Yes | +| `deps` | String | Yes | +| `payload` | JSON | Yes | +| `content` | String | Yes | +| `revert` | String | Yes | +| `verify` | String | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all sqlAction records +const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Get one by id +const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Create +const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseSetting` + +CRUD operations for DatabaseSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `enableI18N` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all databaseSetting records +const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Get one by id +const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Create +const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.webauthnSetting` + +CRUD operations for WebauthnSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `credentialsSchemaId` | UUID | Yes | +| `sessionsSchemaId` | UUID | Yes | +| `sessionSecretsSchemaId` | UUID | Yes | +| `credentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionSecretsTableId` | UUID | Yes | +| `userFieldId` | UUID | Yes | +| `rpId` | String | Yes | +| `rpName` | String | Yes | +| `originAllowlist` | String | Yes | +| `attestationType` | String | Yes | +| `requireUserVerification` | Boolean | Yes | +| `residentKey` | String | Yes | +| `challengeExpirySeconds` | BigInt | Yes | + +**Operations:** + +```typescript +// List all webauthnSetting records +const items = await db.webauthnSetting.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.webauthnSetting.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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` + +applyRegistryDefaults + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `nodeType` | String | + | `data` | JSON | + +```typescript +const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); +``` + +### `db.mutation.acceptDatabaseTransfer` + +acceptDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AcceptDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.cancelDatabaseTransfer` + +cancelDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CancelDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.rejectDatabaseTransfer` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RejectDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.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 + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +```typescript +const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); +``` + +### `db.mutation.applyRls` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` + +### `db.mutation.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) + +Returns the database_id UUID of the newly created database. + +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 + + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateUserDatabaseInput (required) | + +```typescript +const result = await db.mutation.createUserDatabase({ 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/public/orm/client.ts b/sdk/constructive-cli/src/api/orm/client.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/client.ts rename to sdk/constructive-cli/src/api/orm/client.ts diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts new file mode 100644 index 0000000000..b2161f6fdc --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/index.ts @@ -0,0 +1,136 @@ +/** + * 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 { FunctionModel } from './models/function'; +import { SchemaModel } from './models/schema'; +import { TableModel } from './models/table'; +import { CheckConstraintModel } from './models/checkConstraint'; +import { FieldModel } from './models/field'; +import { SpatialRelationModel } from './models/spatialRelation'; +import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; +import { FullTextSearchModel } from './models/fullTextSearch'; +import { IndexModel } from './models/index'; +import { PolicyModel } from './models/policy'; +import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; +import { TableGrantModel } from './models/tableGrant'; +import { TriggerModel } from './models/trigger'; +import { UniqueConstraintModel } from './models/uniqueConstraint'; +import { ViewModel } from './models/view'; +import { ViewTableModel } from './models/viewTable'; +import { ViewGrantModel } from './models/viewGrant'; +import { ViewRuleModel } from './models/viewRule'; +import { EmbeddingChunkModel } from './models/embeddingChunk'; +import { SchemaGrantModel } from './models/schemaGrant'; +import { DefaultPrivilegeModel } from './models/defaultPrivilege'; +import { EnumModel } from './models/enum'; +import { ApiSchemaModel } from './models/apiSchema'; +import { ApiModuleModel } from './models/apiModule'; +import { DomainModel } from './models/domain'; +import { SiteMetadatumModel } from './models/siteMetadatum'; +import { SiteModuleModel } from './models/siteModule'; +import { SiteThemeModel } from './models/siteTheme'; +import { CorsSettingModel } from './models/corsSetting'; +import { TriggerFunctionModel } from './models/triggerFunction'; +import { PartitionModel } from './models/partition'; +import { DatabaseTransferModel } from './models/databaseTransfer'; +import { ApiModel } from './models/api'; +import { SiteModel } from './models/site'; +import { AppModel } from './models/app'; +import { ApiSettingModel } from './models/apiSetting'; +import { MigrateFileModel } from './models/migrateFile'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { PubkeySettingModel } from './models/pubkeySetting'; +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 { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @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 { + function: new FunctionModel(client), + schema: new SchemaModel(client), + table: new TableModel(client), + checkConstraint: new CheckConstraintModel(client), + field: new FieldModel(client), + spatialRelation: new SpatialRelationModel(client), + foreignKeyConstraint: new ForeignKeyConstraintModel(client), + fullTextSearch: new FullTextSearchModel(client), + index: new IndexModel(client), + policy: new PolicyModel(client), + primaryKeyConstraint: new PrimaryKeyConstraintModel(client), + tableGrant: new TableGrantModel(client), + trigger: new TriggerModel(client), + uniqueConstraint: new UniqueConstraintModel(client), + view: new ViewModel(client), + viewTable: new ViewTableModel(client), + viewGrant: new ViewGrantModel(client), + viewRule: new ViewRuleModel(client), + embeddingChunk: new EmbeddingChunkModel(client), + schemaGrant: new SchemaGrantModel(client), + defaultPrivilege: new DefaultPrivilegeModel(client), + enum: new EnumModel(client), + apiSchema: new ApiSchemaModel(client), + apiModule: new ApiModuleModel(client), + domain: new DomainModel(client), + siteMetadatum: new SiteMetadatumModel(client), + siteModule: new SiteModuleModel(client), + siteTheme: new SiteThemeModel(client), + corsSetting: new CorsSettingModel(client), + triggerFunction: new TriggerFunctionModel(client), + partition: new PartitionModel(client), + databaseTransfer: new DatabaseTransferModel(client), + api: new ApiModel(client), + site: new SiteModel(client), + app: new AppModel(client), + apiSetting: new ApiSettingModel(client), + migrateFile: new MigrateFileModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), + pubkeySetting: new PubkeySettingModel(client), + database: new DatabaseModel(client), + rlsSetting: new RlsSettingModel(client), + sqlAction: new SqlActionModel(client), + databaseSetting: new DatabaseSettingModel(client), + webauthnSetting: new WebauthnSettingModel(client), + astMigration: new AstMigrationModel(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 new file mode 100644 index 0000000000..8da4e53642 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -0,0 +1,13087 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Enum Types ============ +export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; +export type ConstructiveInternalTypeUrl = unknown; +// ============ Entity Types ============ +export interface Function { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; +} +export interface Schema { + id: string; + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + isPublic?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Table { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string[] | null; + partitioned?: boolean | null; + partitionStrategy?: string | null; + partitionKeyNames?: string[] | null; + partitionKeyTypes?: string[] | null; + inheritsId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface CheckConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Field { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + defaultValue?: Record | null; + type?: Record | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface SpatialRelation { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + name?: string | null; + operator?: string | null; + paramName?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ForeignKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + refTableId?: string | null; + refFieldIds?: string[] | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface FullTextSearch { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; + langColumn?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Index { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + options?: Record | null; + opClasses?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Policy { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + granteeName?: string | null; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PrimaryKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface TableGrant { + id: string; + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + granteeName?: string | null; + fieldIds?: string[] | null; + isGrant?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Trigger { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface UniqueConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface View { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +/** Junction table linking views to their joined tables for referential integrity */ +export interface ViewTable { + id: string; + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface ViewGrant { + id: string; + databaseId?: string | null; + viewId?: string | null; + granteeName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; + isGrant?: boolean | null; +} +/** DO INSTEAD rules for views (e.g., read-only enforcement) */ +export interface ViewRule { + id: string; + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + /** INSERT, UPDATE, or DELETE */ + event?: string | null; + /** NOTHING (for read-only) or custom action */ + action?: string | null; +} +export interface EmbeddingChunk { + id: string; + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + searchIndexes?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + embeddingModel?: string | null; + embeddingProvider?: string | null; + parentFkFieldId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface SchemaGrant { + id: string; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface DefaultPrivilege { + id: string; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface Enum { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ +export interface ApiSchema { + /** Unique identifier for this API-schema mapping */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Metaschema schema being exposed through the API */ + schemaId?: string | null; + /** API that exposes this schema */ + apiId?: string | null; +} +/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ +export interface ApiModule { + /** Unique identifier for this API module record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** API this module configuration belongs to */ + apiId?: string | null; + /** Module name (e.g. auth, uploads, webhooks) */ + name?: string | null; + /** JSON configuration data for this module */ + data?: Record | null; +} +/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ +export interface Domain { + /** Unique identifier for this domain record */ + id: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId?: string | null; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string | null; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string | null; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname | null; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname | null; +} +/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ +export interface SiteMetadatum { + /** Unique identifier for this metadata record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this metadata belongs to */ + siteId?: string | null; + /** Page title for SEO (max 120 characters) */ + title?: string | null; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string | null; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage | null; +} +/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ +export interface SiteModule { + /** Unique identifier for this site module record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this module configuration belongs to */ + siteId?: string | null; + /** Module name (e.g. user_auth_module, analytics) */ + name?: string | null; + /** JSON configuration data for this module */ + data?: Record | null; +} +/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ +export interface SiteTheme { + /** Unique identifier for this theme record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this theme belongs to */ + siteId?: string | null; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: Record | null; +} +/** Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries */ +export interface CorsSetting { + /** Unique identifier for this CORS settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string | null; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[] | null; +} +export interface TriggerFunction { + id: string; + databaseId?: string | null; + name?: string | null; + code?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Partition { + id: string; + databaseId?: string | null; + tableId?: string | null; + strategy?: string | null; + partitionKeyId?: string | null; + interval?: string | null; + retention?: string | null; + retentionKeepTable?: boolean | null; + premake?: number | null; + namingPattern?: string | null; + isParented?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface DatabaseTransfer { + id: string; + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; +} +/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ +export interface Api { + /** Unique identifier for this API */ + id: string; + /** Reference to the metaschema database this API serves */ + databaseId?: string | null; + /** Unique name for this API within its database */ + name?: string | null; + /** PostgreSQL database name to connect to */ + dbname?: string | null; + /** PostgreSQL role used for authenticated requests */ + roleName?: string | null; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string | null; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean | null; +} +/** Top-level site configuration: branding assets, title, and description for a deployed application */ +export interface Site { + /** Unique identifier for this site */ + id: string; + /** Reference to the metaschema database this site belongs to */ + databaseId?: string | null; + /** Display title for the site (max 120 characters) */ + title?: string | null; + /** Short description of the site (max 120 characters) */ + description?: string | null; + /** Open Graph image used for social media link previews */ + ogImage?: ConstructiveInternalTypeImage | null; + /** Browser favicon attachment */ + favicon?: ConstructiveInternalTypeAttachment | null; + /** Apple touch icon for iOS home screen bookmarks */ + appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** Primary logo image for the site */ + logo?: ConstructiveInternalTypeImage | null; + /** PostgreSQL database name this site connects to */ + dbname?: string | null; +} +/** Mobile and native app configuration linked to a site, including store links and identifiers */ +export interface App { + /** Unique identifier for this app */ + id: string; + /** Reference to the metaschema database this app belongs to */ + databaseId?: string | null; + /** Site this app is associated with (one app per site) */ + siteId?: string | null; + /** Display name of the app */ + name?: string | null; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage | null; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl | null; + /** Apple App Store application identifier */ + appStoreId?: string | null; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string | null; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl | null; +} +/** Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default */ +export interface ApiSetting { + /** Unique identifier for this API settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** API these settings override for */ + apiId?: string | null; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean | null; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean | null; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean | null; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean | null; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean | null; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean | null; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean | null; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean | null; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean | null; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean | null; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean | null; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean | null; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: Record | null; +} +export interface MigrateFile { + id: string; + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ +export interface PubkeySetting { + /** Unique identifier for this pubkey settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string | null; + /** Field name used to identify the user in crypto auth functions */ + userField?: string | null; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string | null; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string | null; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string | null; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string | null; +} +export interface Database { + id: string; + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ +export interface RlsSetting { + /** Unique identifier for this RLS settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string | null; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string | null; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string | null; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string | null; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string | null; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string | null; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string | null; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string | null; +} +export interface SqlAction { + id: number; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ +export interface DatabaseSetting { + /** Unique identifier for this settings record */ + id: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string | null; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean | null; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean | null; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean | null; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean | null; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean | null; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean | null; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean | null; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean | null; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean | null; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean | null; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean | null; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean | null; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record | 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 */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string | null; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string | null; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string | null; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string | null; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string | null; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string | null; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string | null; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string | null; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string | null; + /** WebAuthn Relying Party display name */ + rpName?: string | null; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[] | null; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string | null; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean | null; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string | null; + /** 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[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface FunctionRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface SchemaRelations { + database?: Database | null; + tables?: ConnectionResult; + schemaGrants?: ConnectionResult; + views?: ConnectionResult; + defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + functions?: ConnectionResult; + apiSchemas?: ConnectionResult; +} +export interface TableRelations { + database?: Database | null; + schema?: Schema | null; + inherits?: Table | null; + partition?: Partition | null; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + tableGrants?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewTables?: ConnectionResult; + embeddingChunksByChunksTableId?: ConnectionResult; + embeddingChunks?: ConnectionResult; + spatialRelationsByRefTableId?: ConnectionResult; + spatialRelations?: ConnectionResult; +} +export interface CheckConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface FieldRelations { + database?: Database | null; + table?: Table | null; + spatialRelations?: ConnectionResult; + spatialRelationsByRefFieldId?: ConnectionResult; +} +export interface SpatialRelationRelations { + database?: Database | null; + field?: Field | null; + refField?: Field | null; + refTable?: Table | null; + table?: Table | null; +} +export interface ForeignKeyConstraintRelations { + database?: Database | null; + refTable?: Table | null; + table?: Table | null; +} +export interface FullTextSearchRelations { + database?: Database | null; + table?: Table | null; +} +export interface IndexRelations { + database?: Database | null; + table?: Table | null; +} +export interface PolicyRelations { + database?: Database | null; + table?: Table | null; +} +export interface PrimaryKeyConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface TableGrantRelations { + database?: Database | null; + table?: Table | null; +} +export interface TriggerRelations { + database?: Database | null; + table?: Table | null; +} +export interface UniqueConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface ViewRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; + viewTables?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; +} +export interface ViewTableRelations { + table?: Table | null; + view?: View | null; +} +export interface ViewGrantRelations { + database?: Database | null; + view?: View | null; +} +export interface ViewRuleRelations { + database?: Database | null; + view?: View | null; +} +export interface EmbeddingChunkRelations { + chunksTable?: Table | null; + database?: Database | null; + embeddingField?: Field | null; + parentFkField?: Field | null; + table?: Table | null; +} +export interface SchemaGrantRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface DefaultPrivilegeRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface EnumRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface ApiSchemaRelations { + api?: Api | null; + database?: Database | null; + schema?: Schema | null; +} +export interface ApiModuleRelations { + api?: Api | null; + database?: Database | null; +} +export interface DomainRelations { + api?: Api | null; + database?: Database | null; + site?: Site | null; +} +export interface SiteMetadatumRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteModuleRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteThemeRelations { + database?: Database | null; + site?: Site | null; +} +export interface CorsSettingRelations { + api?: Api | null; + database?: Database | null; +} +export interface TriggerFunctionRelations { + database?: Database | null; +} +export interface PartitionRelations { + database?: Database | null; + partitionKey?: Field | null; + table?: Table | null; +} +export interface DatabaseTransferRelations { + database?: Database | null; +} +export interface ApiRelations { + database?: Database | null; + apiSetting?: ApiSetting | null; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + domains?: ConnectionResult; + corsSettings?: ConnectionResult; +} +export interface SiteRelations { + database?: Database | null; + app?: App | null; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; +} +export interface AppRelations { + site?: Site | null; + database?: Database | null; +} +export interface ApiSettingRelations { + api?: Api | null; + database?: Database | null; +} +export interface MigrateFileRelations {} +export interface NodeTypeRegistryRelations {} +export interface PubkeySettingRelations { + database?: Database | null; + schema?: Schema | null; + signInRecordFailureFunction?: Function | null; + signInRequestChallengeFunction?: Function | null; + signInWithChallengeFunction?: Function | null; + signUpWithKeyFunction?: Function | null; +} +export interface DatabaseRelations { + databaseSetting?: DatabaseSetting | null; + rlsSetting?: RlsSetting | null; + pubkeySetting?: PubkeySetting | null; + webauthnSetting?: WebauthnSetting | null; + schemas?: ConnectionResult; + tables?: ConnectionResult
; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + schemaGrants?: ConnectionResult; + tableGrants?: ConnectionResult; + triggerFunctions?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; + defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + embeddingChunks?: ConnectionResult; + spatialRelations?: ConnectionResult; + functions?: ConnectionResult; + partitions?: ConnectionResult; + databaseTransfers?: ConnectionResult; + apis?: ConnectionResult; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + sites?: ConnectionResult; + apps?: ConnectionResult; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; + apiSettings?: ConnectionResult; + corsSettings?: ConnectionResult; +} +export interface RlsSettingRelations { + authenticateFunction?: Function | null; + authenticateSchema?: Schema | null; + authenticateStrictFunction?: Function | null; + currentIpAddressFunction?: Function | null; + currentRoleFunction?: Function | null; + currentRoleIdFunction?: Function | null; + currentUserAgentFunction?: Function | null; + database?: Database | null; + roleSchema?: Schema | null; +} +export interface SqlActionRelations {} +export interface DatabaseSettingRelations { + database?: Database | null; +} +export interface WebauthnSettingRelations { + credentialsSchema?: Schema | null; + credentialsTable?: Table | null; + database?: Database | null; + schema?: Schema | null; + sessionCredentialsTable?: Table | null; + sessionSecretsSchema?: Schema | null; + sessionSecretsTable?: Table | null; + sessionsSchema?: Schema | null; + sessionsTable?: Table | null; + userField?: Field | null; +} +export interface AstMigrationRelations {} +// ============ Entity Types With Relations ============ +export type FunctionWithRelations = Function & FunctionRelations; +export type SchemaWithRelations = Schema & SchemaRelations; +export type TableWithRelations = Table & TableRelations; +export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; +export type FieldWithRelations = Field & FieldRelations; +export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; +export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & + ForeignKeyConstraintRelations; +export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; +export type IndexWithRelations = Index & IndexRelations; +export type PolicyWithRelations = Policy & PolicyRelations; +export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & + PrimaryKeyConstraintRelations; +export type TableGrantWithRelations = TableGrant & TableGrantRelations; +export type TriggerWithRelations = Trigger & TriggerRelations; +export type UniqueConstraintWithRelations = UniqueConstraint & UniqueConstraintRelations; +export type ViewWithRelations = View & ViewRelations; +export type ViewTableWithRelations = ViewTable & ViewTableRelations; +export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; +export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; +export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; +export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; +export type EnumWithRelations = Enum & EnumRelations; +export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; +export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; +export type DomainWithRelations = Domain & DomainRelations; +export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; +export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; +export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; +export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; +export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; +export type PartitionWithRelations = Partition & PartitionRelations; +export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; +export type ApiWithRelations = Api & ApiRelations; +export type SiteWithRelations = Site & SiteRelations; +export type AppWithRelations = App & AppRelations; +export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; +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; +// ============ Entity Select Types ============ +export type FunctionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type SchemaSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + schemaName?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + isPublic?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + functions?: { + select: FunctionSelect; + first?: number; + filter?: FunctionFilter; + orderBy?: FunctionOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; +}; +export type TableSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: boolean; + singularName?: boolean; + tags?: boolean; + partitioned?: boolean; + partitionStrategy?: boolean; + partitionKeyNames?: boolean; + partitionKeyTypes?: boolean; + inheritsId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + inherits?: { + select: TableSelect; + }; + partition?: { + select: PartitionSelect; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + embeddingChunksByChunksTableId?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + spatialRelationsByRefTableId?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; +}; +export type CheckConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + expr?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: boolean; + type?: boolean; + fieldOrder?: boolean; + regexp?: boolean; + chk?: boolean; + chkExpr?: boolean; + min?: boolean; + max?: boolean; + tags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + spatialRelationsByRefFieldId?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; +}; +export type SpatialRelationSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + refTableId?: boolean; + refFieldId?: boolean; + name?: boolean; + operator?: boolean; + paramName?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + field?: { + select: FieldSelect; + }; + refField?: { + select: FieldSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ForeignKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + refTableId?: boolean; + refFieldIds?: boolean; + deleteAction?: boolean; + updateAction?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FullTextSearchSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + fieldIds?: boolean; + weights?: boolean; + langs?: boolean; + langColumn?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type IndexSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + fieldIds?: boolean; + includeFieldIds?: boolean; + accessMethod?: boolean; + indexParams?: boolean; + whereClause?: boolean; + isUnique?: boolean; + options?: boolean; + opClasses?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PolicySelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + granteeName?: boolean; + privilege?: boolean; + permissive?: boolean; + disabled?: boolean; + policyType?: boolean; + data?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PrimaryKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TableGrantSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + privilege?: boolean; + granteeName?: boolean; + fieldIds?: boolean; + isGrant?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TriggerSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + event?: boolean; + functionName?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type UniqueConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ViewSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + tableId?: boolean; + viewType?: boolean; + data?: boolean; + filterType?: boolean; + filterData?: boolean; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; +}; +export type ViewTableSelect = { + id?: boolean; + viewId?: boolean; + tableId?: boolean; + joinOrder?: boolean; + table?: { + select: TableSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewGrantSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + granteeName?: boolean; + privilege?: boolean; + withGrantOption?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewRuleSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + name?: boolean; + event?: boolean; + action?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type EmbeddingChunkSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + embeddingFieldId?: boolean; + chunksTableId?: boolean; + chunksTableName?: boolean; + contentFieldName?: boolean; + dimensions?: boolean; + metric?: boolean; + chunkSize?: boolean; + chunkOverlap?: boolean; + chunkStrategy?: boolean; + metadataFields?: boolean; + searchIndexes?: boolean; + enqueueChunkingJob?: boolean; + chunkingTaskName?: boolean; + embeddingModel?: boolean; + embeddingProvider?: boolean; + parentFkFieldId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + chunksTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + embeddingField?: { + select: FieldSelect; + }; + parentFkField?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type SchemaGrantSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + granteeName?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type DefaultPrivilegeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + objectType?: boolean; + privilege?: boolean; + granteeName?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type EnumSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + values?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiSchemaSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + apiId?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiModuleSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + name?: boolean; + data?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type DomainSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + siteId?: boolean; + subdomain?: boolean; + domain?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteMetadatumSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteModuleSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + data?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteThemeSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + theme?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type CorsSettingSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + allowedOrigins?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type TriggerFunctionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + code?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type PartitionSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + strategy?: boolean; + partitionKeyId?: boolean; + interval?: boolean; + retention?: boolean; + retentionKeepTable?: boolean; + premake?: boolean; + namingPattern?: boolean; + isParented?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + partitionKey?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type DatabaseTransferSelect = { + id?: boolean; + databaseId?: boolean; + targetOwnerId?: boolean; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: boolean; + targetApprovedAt?: boolean; + status?: boolean; + initiatedBy?: boolean; + notes?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type ApiSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + dbname?: boolean; + roleName?: boolean; + anonRole?: boolean; + isPublic?: boolean; + database?: { + select: DatabaseSelect; + }; + apiSetting?: { + select: ApiSettingSelect; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; +export type SiteSelect = { + id?: boolean; + databaseId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + favicon?: boolean; + appleTouchIcon?: boolean; + logo?: boolean; + dbname?: boolean; + database?: { + select: DatabaseSelect; + }; + app?: { + select: AppSelect; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; +}; +export type AppSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + appImage?: boolean; + appStoreLink?: boolean; + appStoreId?: boolean; + appIdPrefix?: boolean; + playStoreLink?: boolean; + site?: { + select: SiteSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type ApiSettingSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type MigrateFileSelect = { + id?: boolean; + databaseId?: boolean; + upload?: boolean; +}; +export type NodeTypeRegistrySelect = { + name?: boolean; + slug?: boolean; + category?: boolean; + displayName?: boolean; + description?: boolean; + parameterSchema?: boolean; + tags?: boolean; +}; +export type PubkeySettingSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + cryptoNetwork?: boolean; + userField?: boolean; + signUpWithKeyFunctionId?: boolean; + signInRequestChallengeFunctionId?: boolean; + signInRecordFailureFunctionId?: boolean; + signInWithChallengeFunctionId?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + signInRecordFailureFunction?: { + select: FunctionSelect; + }; + signInRequestChallengeFunction?: { + select: FunctionSelect; + }; + signInWithChallengeFunction?: { + select: FunctionSelect; + }; + signUpWithKeyFunction?: { + select: FunctionSelect; + }; +}; +export type DatabaseSelect = { + id?: boolean; + ownerId?: boolean; + schemaHash?: boolean; + name?: boolean; + label?: boolean; + hash?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + rlsSetting?: { + select: RlsSettingSelect; + }; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + schemas?: { + select: SchemaSelect; + first?: number; + filter?: SchemaFilter; + orderBy?: SchemaOrderBy[]; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggerFunctions?: { + select: TriggerFunctionSelect; + first?: number; + filter?: TriggerFunctionFilter; + orderBy?: TriggerFunctionOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + functions?: { + select: FunctionSelect; + first?: number; + filter?: FunctionFilter; + orderBy?: FunctionOrderBy[]; + }; + partitions?: { + select: PartitionSelect; + first?: number; + filter?: PartitionFilter; + orderBy?: PartitionOrderBy[]; + }; + databaseTransfers?: { + select: DatabaseTransferSelect; + first?: number; + filter?: DatabaseTransferFilter; + orderBy?: DatabaseTransferOrderBy[]; + }; + apis?: { + select: ApiSelect; + first?: number; + filter?: ApiFilter; + orderBy?: ApiOrderBy[]; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + sites?: { + select: SiteSelect; + first?: number; + filter?: SiteFilter; + orderBy?: SiteOrderBy[]; + }; + apps?: { + select: AppSelect; + first?: number; + filter?: AppFilter; + orderBy?: AppOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; + apiSettings?: { + select: ApiSettingSelect; + first?: number; + filter?: ApiSettingFilter; + orderBy?: ApiSettingOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; +export type RlsSettingSelect = { + id?: boolean; + databaseId?: boolean; + authenticateSchemaId?: boolean; + roleSchemaId?: boolean; + authenticateFunctionId?: boolean; + authenticateStrictFunctionId?: boolean; + currentRoleFunctionId?: boolean; + currentRoleIdFunctionId?: boolean; + currentUserAgentFunctionId?: boolean; + currentIpAddressFunctionId?: boolean; + authenticateFunction?: { + select: FunctionSelect; + }; + authenticateSchema?: { + select: SchemaSelect; + }; + authenticateStrictFunction?: { + select: FunctionSelect; + }; + currentIpAddressFunction?: { + select: FunctionSelect; + }; + currentRoleFunction?: { + select: FunctionSelect; + }; + currentRoleIdFunction?: { + select: FunctionSelect; + }; + currentUserAgentFunction?: { + select: FunctionSelect; + }; + database?: { + select: DatabaseSelect; + }; + roleSchema?: { + select: SchemaSelect; + }; +}; +export type SqlActionSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + deploy?: boolean; + deps?: boolean; + payload?: boolean; + content?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; +export type DatabaseSettingSelect = { + id?: boolean; + databaseId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type WebauthnSettingSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + credentialsSchemaId?: boolean; + sessionsSchemaId?: boolean; + sessionSecretsSchemaId?: boolean; + credentialsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + sessionSecretsTableId?: boolean; + userFieldId?: boolean; + rpId?: boolean; + rpName?: boolean; + originAllowlist?: boolean; + attestationType?: boolean; + requireUserVerification?: boolean; + residentKey?: boolean; + challengeExpirySeconds?: boolean; + credentialsSchema?: { + select: SchemaSelect; + }; + credentialsTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + sessionCredentialsTable?: { + select: TableSelect; + }; + sessionSecretsSchema?: { + select: SchemaSelect; + }; + sessionSecretsTable?: { + select: TableSelect; + }; + sessionsSchema?: { + select: SchemaSelect; + }; + sessionsTable?: { + select: TableSelect; + }; + userField?: { + 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. */ + 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 `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionFilter[]; + /** Negates the expression. */ + not?: FunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: SchemaToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; +} +export interface TableFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `partitioned` field. */ + partitioned?: BooleanFilter; + /** Filter by the object’s `partitionStrategy` field. */ + partitionStrategy?: StringFilter; + /** Filter by the object’s `partitionKeyNames` field. */ + partitionKeyNames?: StringListFilter; + /** Filter by the object’s `partitionKeyTypes` field. */ + partitionKeyTypes?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `inherits` relation. */ + inherits?: TableFilter; + /** A related `inherits` exists. */ + inheritsExists?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: TableToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: TableToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: TableToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: TableToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: TableToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: TableToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: TableToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: TableToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: TableToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: TableToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ + spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; + /** `spatialRelationsByRefTableId` exist. */ + spatialRelationsByRefTableIdExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: TableToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `partition` relation. */ + partition?: PartitionFilter; + /** A related `partition` exists. */ + partitionExists?: boolean; +} +export interface CheckConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface FieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: JSONFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** 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?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: FieldToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ + spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; + /** `spatialRelationsByRefFieldId` exist. */ + spatialRelationsByRefFieldIdExist?: boolean; +} +export interface SpatialRelationFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `operator` field. */ + operator?: StringFilter; + /** Filter by the object’s `paramName` field. */ + paramName?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: SpatialRelationFilter[]; + /** Checks for any expressions in this list. */ + or?: SpatialRelationFilter[]; + /** Negates the expression. */ + not?: SpatialRelationFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `field` relation. */ + field?: FieldFilter; + /** Filter by the object’s `refField` relation. */ + refField?: FieldFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface ForeignKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface FullTextSearchFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: StringListFilter; + /** Filter by the object’s `langColumn` field. */ + langColumn?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface IndexFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `opClasses` field. */ + opClasses?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: IndexFilter[]; + /** Negates the expression. */ + not?: IndexFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface PolicyFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface PrimaryKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface TableGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface TriggerFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface UniqueConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** A related `table` exists. */ + tableExists?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: ViewToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: ViewToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: ViewToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; +} +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface EmbeddingChunkFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `searchIndexes` field. */ + searchIndexes?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringFilter; + /** Filter by the object’s `embeddingProvider` field. */ + embeddingProvider?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: 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?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface EnumFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** A related `site` exists. */ + siteExists?: boolean; +} +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface CorsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CorsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: CorsSettingFilter[]; + /** Negates the expression. */ + not?: CorsSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface TriggerFunctionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface PartitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `strategy` field. */ + strategy?: StringFilter; + /** Filter by the object’s `partitionKeyId` field. */ + partitionKeyId?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `namingPattern` field. */ + namingPattern?: StringFilter; + /** Filter by the object’s `isParented` field. */ + isParented?: 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?: PartitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PartitionFilter[]; + /** Negates the expression. */ + not?: PartitionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `partitionKey` relation. */ + partitionKey?: FieldFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface ApiFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: ApiToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: ApiToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; +} +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: 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. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `app` relation. */ + app?: AppFilter; + /** A related `app` exists. */ + appExists?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: SiteToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: SiteToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; +} +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface ApiSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ApiSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSettingFilter[]; + /** Negates the expression. */ + not?: ApiSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface MigrateFileFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; + /** Checks for all expressions in this list. */ + and?: MigrateFileFilter[]; + /** Checks for any expressions in this list. */ + or?: MigrateFileFilter[]; + /** Negates the expression. */ + not?: MigrateFileFilter; +} +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +export interface PubkeySettingFilter { + /** 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 `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `signUpWithKeyFunctionId` field. */ + signUpWithKeyFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ + signInRequestChallengeFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRecordFailureFunctionId` field. */ + signInRecordFailureFunctionId?: UUIDFilter; + /** Filter by the object’s `signInWithChallengeFunctionId` field. */ + signInWithChallengeFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PubkeySettingFilter[]; + /** Checks for any expressions in this list. */ + or?: PubkeySettingFilter[]; + /** Negates the expression. */ + not?: PubkeySettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `signInRecordFailureFunction` relation. */ + signInRecordFailureFunction?: FunctionFilter; + /** A related `signInRecordFailureFunction` exists. */ + signInRecordFailureFunctionExists?: boolean; + /** Filter by the object’s `signInRequestChallengeFunction` relation. */ + signInRequestChallengeFunction?: FunctionFilter; + /** A related `signInRequestChallengeFunction` exists. */ + signInRequestChallengeFunctionExists?: boolean; + /** Filter by the object’s `signInWithChallengeFunction` relation. */ + signInWithChallengeFunction?: FunctionFilter; + /** A related `signInWithChallengeFunction` exists. */ + signInWithChallengeFunctionExists?: boolean; + /** Filter by the object’s `signUpWithKeyFunction` relation. */ + signUpWithKeyFunction?: FunctionFilter; + /** A related `signUpWithKeyFunction` exists. */ + signUpWithKeyFunctionExists?: boolean; +} +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; + /** Filter by the object’s `schemas` relation. */ + schemas?: DatabaseToManySchemaFilter; + /** `schemas` exist. */ + schemasExist?: boolean; + /** Filter by the object’s `tables` relation. */ + tables?: DatabaseToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: DatabaseToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: DatabaseToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: DatabaseToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggerFunctions` relation. */ + triggerFunctions?: DatabaseToManyTriggerFunctionFilter; + /** `triggerFunctions` exist. */ + triggerFunctionsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: DatabaseToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: DatabaseToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: DatabaseToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: DatabaseToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: DatabaseToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `partitions` relation. */ + partitions?: DatabaseToManyPartitionFilter; + /** `partitions` exist. */ + partitionsExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `apis` relation. */ + apis?: DatabaseToManyApiFilter; + /** `apis` exist. */ + apisExist?: boolean; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: DatabaseToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: DatabaseToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `sites` relation. */ + sites?: DatabaseToManySiteFilter; + /** `sites` exist. */ + sitesExist?: boolean; + /** Filter by the object’s `apps` relation. */ + apps?: DatabaseToManyAppFilter; + /** `apps` exist. */ + appsExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: DatabaseToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: DatabaseToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: DatabaseToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: DatabaseToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `databaseSetting` relation. */ + databaseSetting?: DatabaseSettingFilter; + /** A related `databaseSetting` exists. */ + databaseSettingExists?: boolean; + /** Filter by the object’s `apiSettings` relation. */ + apiSettings?: DatabaseToManyApiSettingFilter; + /** `apiSettings` exist. */ + apiSettingsExist?: boolean; + /** Filter by the object’s `rlsSetting` relation. */ + rlsSetting?: RlsSettingFilter; + /** A related `rlsSetting` exists. */ + rlsSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: DatabaseToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `pubkeySetting` relation. */ + pubkeySetting?: PubkeySettingFilter; + /** A related `pubkeySetting` exists. */ + pubkeySettingExists?: boolean; + /** Filter by the object’s `webauthnSetting` relation. */ + webauthnSetting?: WebauthnSettingFilter; + /** A related `webauthnSetting` exists. */ + webauthnSettingExists?: boolean; +} +export interface RlsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `authenticateSchemaId` field. */ + authenticateSchemaId?: UUIDFilter; + /** Filter by the object’s `roleSchemaId` field. */ + roleSchemaId?: UUIDFilter; + /** Filter by the object’s `authenticateFunctionId` field. */ + authenticateFunctionId?: UUIDFilter; + /** Filter by the object’s `authenticateStrictFunctionId` field. */ + authenticateStrictFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleFunctionId` field. */ + currentRoleFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleIdFunctionId` field. */ + currentRoleIdFunctionId?: UUIDFilter; + /** Filter by the object’s `currentUserAgentFunctionId` field. */ + currentUserAgentFunctionId?: UUIDFilter; + /** Filter by the object’s `currentIpAddressFunctionId` field. */ + currentIpAddressFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RlsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsSettingFilter[]; + /** Negates the expression. */ + not?: RlsSettingFilter; + /** Filter by the object’s `authenticateFunction` relation. */ + authenticateFunction?: FunctionFilter; + /** A related `authenticateFunction` exists. */ + authenticateFunctionExists?: boolean; + /** Filter by the object’s `authenticateSchema` relation. */ + authenticateSchema?: SchemaFilter; + /** A related `authenticateSchema` exists. */ + authenticateSchemaExists?: boolean; + /** Filter by the object’s `authenticateStrictFunction` relation. */ + authenticateStrictFunction?: FunctionFilter; + /** A related `authenticateStrictFunction` exists. */ + authenticateStrictFunctionExists?: boolean; + /** Filter by the object’s `currentIpAddressFunction` relation. */ + currentIpAddressFunction?: FunctionFilter; + /** A related `currentIpAddressFunction` exists. */ + currentIpAddressFunctionExists?: boolean; + /** Filter by the object’s `currentRoleFunction` relation. */ + currentRoleFunction?: FunctionFilter; + /** A related `currentRoleFunction` exists. */ + currentRoleFunctionExists?: boolean; + /** Filter by the object’s `currentRoleIdFunction` relation. */ + currentRoleIdFunction?: FunctionFilter; + /** A related `currentRoleIdFunction` exists. */ + currentRoleIdFunctionExists?: boolean; + /** Filter by the object’s `currentUserAgentFunction` relation. */ + currentUserAgentFunction?: FunctionFilter; + /** A related `currentUserAgentFunction` exists. */ + currentUserAgentFunctionExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `roleSchema` relation. */ + roleSchema?: SchemaFilter; + /** A related `roleSchema` exists. */ + roleSchemaExists?: boolean; +} +export interface SqlActionFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlActionFilter[]; + /** Checks for any expressions in this list. */ + or?: SqlActionFilter[]; + /** Negates the expression. */ + not?: SqlActionFilter; +} +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface WebauthnSettingFilter { + /** 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 `credentialsSchemaId` field. */ + credentialsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionsSchemaId` field. */ + sessionsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsSchemaId` field. */ + sessionSecretsSchemaId?: 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 `userFieldId` field. */ + userFieldId?: 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 `challengeExpirySeconds` field. */ + challengeExpirySeconds?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnSettingFilter[]; + /** Negates the expression. */ + not?: WebauthnSettingFilter; + /** Filter by the object’s `credentialsSchema` relation. */ + credentialsSchema?: SchemaFilter; + /** A related `credentialsSchema` exists. */ + credentialsSchemaExists?: boolean; + /** Filter by the object’s `credentialsTable` relation. */ + credentialsTable?: TableFilter; + /** A related `credentialsTable` exists. */ + credentialsTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `sessionCredentialsTable` relation. */ + sessionCredentialsTable?: TableFilter; + /** A related `sessionCredentialsTable` exists. */ + sessionCredentialsTableExists?: boolean; + /** Filter by the object’s `sessionSecretsSchema` relation. */ + sessionSecretsSchema?: SchemaFilter; + /** A related `sessionSecretsSchema` exists. */ + sessionSecretsSchemaExists?: boolean; + /** Filter by the object’s `sessionSecretsTable` relation. */ + sessionSecretsTable?: TableFilter; + /** A related `sessionSecretsTable` exists. */ + sessionSecretsTableExists?: boolean; + /** Filter by the object’s `sessionsSchema` relation. */ + sessionsSchema?: SchemaFilter; + /** A related `sessionsSchema` exists. */ + sessionsSchemaExists?: boolean; + /** Filter by the object’s `sessionsTable` relation. */ + sessionsTable?: TableFilter; + /** A related `sessionsTable` exists. */ + sessionsTableExists?: boolean; + /** Filter by the object’s `userField` relation. */ + userField?: FieldFilter; + /** 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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type SchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCHEMA_NAME_ASC' + | 'SCHEMA_NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'TIMESTAMPS_ASC' + | 'TIMESTAMPS_DESC' + | 'PEOPLESTAMPS_ASC' + | 'PEOPLESTAMPS_DESC' + | 'PLURAL_NAME_ASC' + | 'PLURAL_NAME_DESC' + | 'SINGULAR_NAME_ASC' + | 'SINGULAR_NAME_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'PARTITIONED_ASC' + | 'PARTITIONED_DESC' + | 'PARTITION_STRATEGY_ASC' + | 'PARTITION_STRATEGY_DESC' + | 'PARTITION_KEY_NAMES_ASC' + | 'PARTITION_KEY_NAMES_DESC' + | 'PARTITION_KEY_TYPES_ASC' + | 'PARTITION_KEY_TYPES_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CheckConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'EXPR_ASC' + | 'EXPR_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'API_REQUIRED_ASC' + | 'API_REQUIRED_DESC' + | 'DEFAULT_VALUE_ASC' + | 'DEFAULT_VALUE_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_ORDER_ASC' + | 'FIELD_ORDER_DESC' + | 'REGEXP_ASC' + | 'REGEXP_DESC' + | 'CHK_ASC' + | 'CHK_DESC' + | 'CHK_EXPR_ASC' + | 'CHK_EXPR_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type SpatialRelationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OPERATOR_ASC' + | 'OPERATOR_DESC' + | 'PARAM_NAME_ASC' + | 'PARAM_NAME_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ForeignKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_IDS_ASC' + | 'REF_FIELD_IDS_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'UPDATE_ACTION_ASC' + | 'UPDATE_ACTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FullTextSearchOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'WEIGHTS_ASC' + | 'WEIGHTS_DESC' + | 'LANGS_ASC' + | 'LANGS_DESC' + | 'LANG_COLUMN_ASC' + | 'LANG_COLUMN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type IndexOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'INCLUDE_FIELD_IDS_ASC' + | 'INCLUDE_FIELD_IDS_DESC' + | 'ACCESS_METHOD_ASC' + | 'ACCESS_METHOD_DESC' + | 'INDEX_PARAMS_ASC' + | 'INDEX_PARAMS_DESC' + | 'WHERE_CLAUSE_ASC' + | 'WHERE_CLAUSE_DESC' + | 'IS_UNIQUE_ASC' + | 'IS_UNIQUE_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'OP_CLASSES_ASC' + | 'OP_CLASSES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PolicyOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'PERMISSIVE_ASC' + | 'PERMISSIVE_DESC' + | 'DISABLED_ASC' + | 'DISABLED_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PrimaryKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TriggerOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'FUNCTION_NAME_ASC' + | 'FUNCTION_NAME_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type UniqueConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ViewOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'VIEW_TYPE_ASC' + | 'VIEW_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FILTER_TYPE_ASC' + | 'FILTER_TYPE_DESC' + | 'FILTER_DATA_ASC' + | 'FILTER_DATA_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type ViewTableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'JOIN_ORDER_ASC' + | 'JOIN_ORDER_DESC'; +export type ViewGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'WITH_GRANT_OPTION_ASC' + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +export type ViewRuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC'; +export type EmbeddingChunkOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'EMBEDDING_FIELD_ID_ASC' + | 'EMBEDDING_FIELD_ID_DESC' + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CHUNKS_TABLE_NAME_ASC' + | 'CHUNKS_TABLE_NAME_DESC' + | 'CONTENT_FIELD_NAME_ASC' + | 'CONTENT_FIELD_NAME_DESC' + | 'DIMENSIONS_ASC' + | 'DIMENSIONS_DESC' + | 'METRIC_ASC' + | 'METRIC_DESC' + | 'CHUNK_SIZE_ASC' + | 'CHUNK_SIZE_DESC' + | 'CHUNK_OVERLAP_ASC' + | 'CHUNK_OVERLAP_DESC' + | 'CHUNK_STRATEGY_ASC' + | 'CHUNK_STRATEGY_DESC' + | 'METADATA_FIELDS_ASC' + | 'METADATA_FIELDS_DESC' + | 'SEARCH_INDEXES_ASC' + | 'SEARCH_INDEXES_DESC' + | 'ENQUEUE_CHUNKING_JOB_ASC' + | 'ENQUEUE_CHUNKING_JOB_DESC' + | 'CHUNKING_TASK_NAME_ASC' + | 'CHUNKING_TASK_NAME_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_PROVIDER_ASC' + | 'EMBEDDING_PROVIDER_DESC' + | 'PARENT_FK_FIELD_ID_ASC' + | 'PARENT_FK_FIELD_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type SchemaGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type DefaultPrivilegeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +export type EnumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'VALUES_ASC' + | 'VALUES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type ApiSchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +export type ApiModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type DomainOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC'; +export type SiteMetadatumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC'; +export type SiteModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type SiteThemeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'THEME_ASC' + | 'THEME_DESC'; +export type CorsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC'; +export type TriggerFunctionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PartitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'STRATEGY_ASC' + | 'STRATEGY_DESC' + | 'PARTITION_KEY_ID_ASC' + | 'PARTITION_KEY_ID_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'NAMING_PATTERN_ASC' + | 'NAMING_PATTERN_DESC' + | 'IS_PARENTED_ASC' + | 'IS_PARENTED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type DatabaseTransferOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'SOURCE_APPROVED_ASC' + | 'SOURCE_APPROVED_DESC' + | 'TARGET_APPROVED_ASC' + | 'TARGET_APPROVED_DESC' + | 'SOURCE_APPROVED_AT_ASC' + | 'SOURCE_APPROVED_AT_DESC' + | 'TARGET_APPROVED_AT_ASC' + | 'TARGET_APPROVED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INITIATED_BY_ASC' + | 'INITIATED_BY_DESC' + | 'NOTES_ASC' + | 'NOTES_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC'; +export type ApiOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC'; +export type SiteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC' + | 'FAVICON_ASC' + | 'FAVICON_DESC' + | 'APPLE_TOUCH_ICON_ASC' + | 'APPLE_TOUCH_ICON_DESC' + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC'; +export type AppOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'APP_IMAGE_ASC' + | 'APP_IMAGE_DESC' + | 'APP_STORE_LINK_ASC' + | 'APP_STORE_LINK_DESC' + | 'APP_STORE_ID_ASC' + | 'APP_STORE_ID_DESC' + | 'APP_ID_PREFIX_ASC' + | 'APP_ID_PREFIX_DESC' + | 'PLAY_STORE_LINK_ASC' + | 'PLAY_STORE_LINK_DESC'; +export type ApiSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +export type MigrateFileOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type PubkeySettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; +export type DatabaseOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SCHEMA_HASH_ASC' + | 'SCHEMA_HASH_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RlsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'AUTHENTICATE_SCHEMA_ID_ASC' + | 'AUTHENTICATE_SCHEMA_ID_DESC' + | 'ROLE_SCHEMA_ID_ASC' + | 'ROLE_SCHEMA_ID_DESC' + | 'AUTHENTICATE_FUNCTION_ID_ASC' + | 'AUTHENTICATE_FUNCTION_ID_DESC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; +export type SqlActionOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type DatabaseSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +export type 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'; +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; + function: { + databaseId: string; + schemaId: string; + name: string; + }; +} +export interface FunctionPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; +} +export interface UpdateFunctionInput { + clientMutationId?: string; + id: string; + functionPatch: FunctionPatch; +} +export interface DeleteFunctionInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaInput { + clientMutationId?: string; + schema: { + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + }; +} +export interface SchemaPatch { + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + isPublic?: boolean | null; +} +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + schemaPatch: SchemaPatch; +} +export interface DeleteSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableInput { + clientMutationId?: string; + table: { + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + inheritsId?: string; + }; +} +export interface TablePatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string[] | null; + partitioned?: boolean | null; + partitionStrategy?: string | null; + partitionKeyNames?: string[] | null; + partitionKeyTypes?: string[] | null; + inheritsId?: string | null; +} +export interface UpdateTableInput { + clientMutationId?: string; + id: string; + tablePatch: TablePatch; +} +export interface DeleteTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateCheckConstraintInput { + clientMutationId?: string; + checkConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface CheckConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateCheckConstraintInput { + clientMutationId?: string; + id: string; + checkConstraintPatch: CheckConstraintPatch; +} +export interface DeleteCheckConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFieldInput { + clientMutationId?: string; + field: { + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: Record; + type: Record; + fieldOrder?: number; + regexp?: string; + chk?: Record; + chkExpr?: Record; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + }; +} +export interface FieldPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + defaultValue?: Record | null; + type?: Record | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; +} +export interface UpdateFieldInput { + clientMutationId?: string; + id: string; + fieldPatch: FieldPatch; +} +export interface DeleteFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateSpatialRelationInput { + clientMutationId?: string; + spatialRelation: { + databaseId?: string; + tableId: string; + fieldId: string; + refTableId: string; + refFieldId: string; + name: string; + operator: string; + paramName?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface SpatialRelationPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + name?: string | null; + operator?: string | null; + paramName?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateSpatialRelationInput { + clientMutationId?: string; + id: string; + spatialRelationPatch: SpatialRelationPatch; +} +export interface DeleteSpatialRelationInput { + clientMutationId?: string; + id: string; +} +export interface CreateForeignKeyConstraintInput { + clientMutationId?: string; + foreignKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ForeignKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + refTableId?: string | null; + refFieldIds?: string[] | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateForeignKeyConstraintInput { + clientMutationId?: string; + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +export interface DeleteForeignKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFullTextSearchInput { + clientMutationId?: string; + fullTextSearch: { + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + langColumn?: string; + }; +} +export interface FullTextSearchPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; + langColumn?: string | null; +} +export interface UpdateFullTextSearchInput { + clientMutationId?: string; + id: string; + fullTextSearchPatch: FullTextSearchPatch; +} +export interface DeleteFullTextSearchInput { + clientMutationId?: string; + id: string; +} +export interface CreateIndexInput { + clientMutationId?: string; + index: { + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: Record; + whereClause?: Record; + isUnique?: boolean; + options?: Record; + opClasses?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface IndexPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + options?: Record | null; + opClasses?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateIndexInput { + clientMutationId?: string; + id: string; + indexPatch: IndexPatch; +} +export interface DeleteIndexInput { + clientMutationId?: string; + id: string; +} +export interface CreatePolicyInput { + clientMutationId?: string; + policy: { + databaseId?: string; + tableId: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PolicyPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + granteeName?: string | null; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdatePolicyInput { + clientMutationId?: string; + id: string; + policyPatch: PolicyPatch; +} +export interface DeletePolicyInput { + clientMutationId?: string; + id: string; +} +export interface CreatePrimaryKeyConstraintInput { + clientMutationId?: string; + primaryKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PrimaryKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdatePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; +} +export interface DeletePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + tableGrant: { + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + }; +} +export interface TableGrantPatch { + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + granteeName?: string | null; + fieldIds?: string[] | null; + isGrant?: boolean | null; +} +export interface UpdateTableGrantInput { + clientMutationId?: string; + id: string; + tableGrantPatch: TableGrantPatch; +} +export interface DeleteTableGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateTriggerInput { + clientMutationId?: string; + trigger: { + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface TriggerPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateTriggerInput { + clientMutationId?: string; + id: string; + triggerPatch: TriggerPatch; +} +export interface DeleteTriggerInput { + clientMutationId?: string; + id: string; +} +export interface CreateUniqueConstraintInput { + clientMutationId?: string; + uniqueConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface UniqueConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateUniqueConstraintInput { + clientMutationId?: string; + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; +} +export interface DeleteUniqueConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewInput { + clientMutationId?: string; + view: { + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: Record; + filterType?: string; + filterData?: Record; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ViewPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateViewInput { + clientMutationId?: string; + id: string; + viewPatch: ViewPatch; +} +export interface DeleteViewInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewTableInput { + clientMutationId?: string; + viewTable: { + viewId: string; + tableId: string; + joinOrder?: number; + }; +} +export interface ViewTablePatch { + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + viewTablePatch: ViewTablePatch; +} +export interface DeleteViewTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + viewGrant: { + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; + }; +} +export interface ViewGrantPatch { + databaseId?: string | null; + viewId?: string | null; + granteeName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; + isGrant?: boolean | null; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + viewGrantPatch: ViewGrantPatch; +} +export interface DeleteViewGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewRuleInput { + clientMutationId?: string; + viewRule: { + databaseId?: string; + viewId: string; + name: string; + event: string; + action?: string; + }; +} +export interface ViewRulePatch { + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + event?: string | null; + action?: string | null; +} +export interface UpdateViewRuleInput { + clientMutationId?: string; + id: string; + viewRulePatch: ViewRulePatch; +} +export interface DeleteViewRuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + embeddingChunk: { + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: Record; + searchIndexes?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + }; +} +export interface EmbeddingChunkPatch { + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + searchIndexes?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + embeddingModel?: string | null; + embeddingProvider?: string | null; + parentFkFieldId?: string | null; +} +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; +} +export interface DeleteEmbeddingChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaGrantInput { + clientMutationId?: string; + schemaGrant: { + databaseId?: string; + schemaId: string; + granteeName: string; + }; +} +export interface SchemaGrantPatch { + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + schemaGrantPatch: SchemaGrantPatch; +} +export interface DeleteSchemaGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + defaultPrivilege: { + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; + }; +} +export interface DefaultPrivilegePatch { + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} +export interface CreateEnumInput { + clientMutationId?: string; + enum: { + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface EnumPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateEnumInput { + clientMutationId?: string; + id: string; + enumPatch: EnumPatch; +} +export interface DeleteEnumInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiSchemaInput { + clientMutationId?: string; + apiSchema: { + databaseId: string; + schemaId: string; + apiId: string; + }; +} +export interface ApiSchemaPatch { + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + id: string; + apiSchemaPatch: ApiSchemaPatch; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + apiModule: { + databaseId: string; + apiId: string; + name: string; + data: Record; + }; +} +export interface ApiModulePatch { + databaseId?: string | null; + apiId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + id: string; + apiModulePatch: ApiModulePatch; +} +export interface DeleteApiModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDomainInput { + clientMutationId?: string; + domain: { + databaseId: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; + }; +} +export interface DomainPatch { + databaseId?: string | null; + apiId?: string | null; + siteId?: string | null; + subdomain?: ConstructiveInternalTypeHostname | null; + domain?: ConstructiveInternalTypeHostname | null; +} +export interface UpdateDomainInput { + clientMutationId?: string; + id: string; + domainPatch: DomainPatch; +} +export interface DeleteDomainInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + siteMetadatum: { + databaseId: string; + siteId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + }; +} +export interface SiteMetadatumPatch { + databaseId?: string | null; + siteId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + ogImageUpload?: File | null; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + id: string; + siteMetadatumPatch: SiteMetadatumPatch; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteModuleInput { + clientMutationId?: string; + siteModule: { + databaseId: string; + siteId: string; + name: string; + data: Record; + }; +} +export interface SiteModulePatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateSiteModuleInput { + clientMutationId?: string; + id: string; + siteModulePatch: SiteModulePatch; +} +export interface DeleteSiteModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteThemeInput { + clientMutationId?: string; + siteTheme: { + databaseId: string; + siteId: string; + theme: Record; + }; +} +export interface SiteThemePatch { + databaseId?: string | null; + siteId?: string | null; + theme?: Record | null; +} +export interface UpdateSiteThemeInput { + clientMutationId?: string; + id: string; + siteThemePatch: SiteThemePatch; +} +export interface DeleteSiteThemeInput { + clientMutationId?: string; + id: string; +} +export interface CreateCorsSettingInput { + clientMutationId?: string; + corsSetting: { + databaseId: string; + apiId?: string; + allowedOrigins?: string[]; + }; +} +export interface CorsSettingPatch { + databaseId?: string | null; + apiId?: string | null; + allowedOrigins?: string[] | null; +} +export interface UpdateCorsSettingInput { + clientMutationId?: string; + id: string; + corsSettingPatch: CorsSettingPatch; +} +export interface DeleteCorsSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateTriggerFunctionInput { + clientMutationId?: string; + triggerFunction: { + databaseId: string; + name: string; + code?: string; + }; +} +export interface TriggerFunctionPatch { + databaseId?: string | null; + name?: string | null; + code?: string | null; +} +export interface UpdateTriggerFunctionInput { + clientMutationId?: string; + id: string; + triggerFunctionPatch: TriggerFunctionPatch; +} +export interface DeleteTriggerFunctionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePartitionInput { + clientMutationId?: string; + partition: { + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + }; +} +export interface PartitionPatch { + databaseId?: string | null; + tableId?: string | null; + strategy?: string | null; + partitionKeyId?: string | null; + interval?: string | null; + retention?: string | null; + retentionKeepTable?: boolean | null; + premake?: number | null; + namingPattern?: string | null; + isParented?: boolean | null; +} +export interface UpdatePartitionInput { + clientMutationId?: string; + id: string; + partitionPatch: PartitionPatch; +} +export interface DeletePartitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + databaseTransfer: { + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + completedAt?: string; + }; +} +export interface DatabaseTransferPatch { + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + databaseTransferPatch: DatabaseTransferPatch; +} +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiInput { + clientMutationId?: string; + api: { + databaseId: string; + name: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; + }; +} +export interface ApiPatch { + databaseId?: string | null; + name?: string | null; + dbname?: string | null; + roleName?: string | null; + anonRole?: string | null; + isPublic?: boolean | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteInput { + clientMutationId?: string; + site: { + databaseId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + favicon?: ConstructiveInternalTypeAttachment; + appleTouchIcon?: ConstructiveInternalTypeImage; + logo?: ConstructiveInternalTypeImage; + dbname?: string; + }; +} +export interface SitePatch { + databaseId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + favicon?: ConstructiveInternalTypeAttachment | null; + appleTouchIcon?: ConstructiveInternalTypeImage | null; + logo?: ConstructiveInternalTypeImage | null; + dbname?: string | null; + ogImageUpload?: File | null; + faviconUpload?: File | null; + appleTouchIconUpload?: File | null; + logoUpload?: File | null; +} +export interface UpdateSiteInput { + clientMutationId?: string; + id: string; + sitePatch: SitePatch; +} +export interface DeleteSiteInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppInput { + clientMutationId?: string; + app: { + databaseId: string; + siteId: string; + name?: string; + appImage?: ConstructiveInternalTypeImage; + appStoreLink?: ConstructiveInternalTypeUrl; + appStoreId?: string; + appIdPrefix?: string; + playStoreLink?: ConstructiveInternalTypeUrl; + }; +} +export interface AppPatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + appImage?: ConstructiveInternalTypeImage | null; + appStoreLink?: ConstructiveInternalTypeUrl | null; + appStoreId?: string | null; + appIdPrefix?: string | null; + playStoreLink?: ConstructiveInternalTypeUrl | null; + appImageUpload?: File | null; +} +export interface UpdateAppInput { + clientMutationId?: string; + id: string; + appPatch: AppPatch; +} +export interface DeleteAppInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiSettingInput { + clientMutationId?: string; + apiSetting: { + databaseId: string; + apiId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: Record; + }; +} +export interface ApiSettingPatch { + databaseId?: string | null; + apiId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + enableI18N?: boolean | null; + options?: Record | null; +} +export interface UpdateApiSettingInput { + clientMutationId?: string; + id: string; + apiSettingPatch: ApiSettingPatch; +} +export interface DeleteApiSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { + clientMutationId?: string; + id: string; + migrateFilePatch: MigrateFilePatch; +} +export interface DeleteMigrateFileInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} +export interface CreatePubkeySettingInput { + clientMutationId?: string; + pubkeySetting: { + databaseId: string; + schemaId?: string; + cryptoNetwork?: string; + userField?: string; + signUpWithKeyFunctionId?: string; + signInRequestChallengeFunctionId?: string; + signInRecordFailureFunctionId?: string; + signInWithChallengeFunctionId?: string; + }; +} +export interface PubkeySettingPatch { + databaseId?: string | null; + schemaId?: string | null; + cryptoNetwork?: string | null; + userField?: string | null; + signUpWithKeyFunctionId?: string | null; + signInRequestChallengeFunctionId?: string | null; + signInRecordFailureFunctionId?: string | null; + signInWithChallengeFunctionId?: string | null; +} +export interface UpdatePubkeySettingInput { + clientMutationId?: string; + id: string; + pubkeySettingPatch: PubkeySettingPatch; +} +export interface DeletePubkeySettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseInput { + clientMutationId?: string; + database: { + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + }; +} +export interface DatabasePatch { + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; +} +export interface UpdateDatabaseInput { + clientMutationId?: string; + id: string; + databasePatch: DatabasePatch; +} +export interface DeleteDatabaseInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsSettingInput { + clientMutationId?: string; + rlsSetting: { + databaseId: string; + authenticateSchemaId?: string; + roleSchemaId?: string; + authenticateFunctionId?: string; + authenticateStrictFunctionId?: string; + currentRoleFunctionId?: string; + currentRoleIdFunctionId?: string; + currentUserAgentFunctionId?: string; + currentIpAddressFunctionId?: string; + }; +} +export interface RlsSettingPatch { + databaseId?: string | null; + authenticateSchemaId?: string | null; + roleSchemaId?: string | null; + authenticateFunctionId?: string | null; + authenticateStrictFunctionId?: string | null; + currentRoleFunctionId?: string | null; + currentRoleIdFunctionId?: string | null; + currentUserAgentFunctionId?: string | null; + currentIpAddressFunctionId?: string | null; +} +export interface UpdateRlsSettingInput { + clientMutationId?: string; + id: string; + rlsSettingPatch: RlsSettingPatch; +} +export interface DeleteRlsSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateSqlActionInput { + clientMutationId?: string; + sqlAction: { + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface SqlActionPatch { + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateSqlActionInput { + clientMutationId?: string; + id: number; + sqlActionPatch: SqlActionPatch; +} +export interface DeleteSqlActionInput { + clientMutationId?: string; + id: number; +} +export interface CreateDatabaseSettingInput { + clientMutationId?: string; + databaseSetting: { + databaseId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: Record; + }; +} +export interface DatabaseSettingPatch { + databaseId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + enableI18N?: boolean | null; + options?: Record | null; +} +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + id: string; + databaseSettingPatch: DatabaseSettingPatch; +} +export interface DeleteDatabaseSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnSettingInput { + clientMutationId?: string; + webauthnSetting: { + databaseId: string; + schemaId?: string; + credentialsSchemaId?: string; + sessionsSchemaId?: string; + sessionSecretsSchemaId?: string; + credentialsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; + userFieldId?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpirySeconds?: string; + }; +} +export interface WebauthnSettingPatch { + databaseId?: string | null; + schemaId?: string | null; + credentialsSchemaId?: string | null; + sessionsSchemaId?: string | null; + sessionSecretsSchemaId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + userFieldId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpirySeconds?: string | null; +} +export interface UpdateWebauthnSettingInput { + clientMutationId?: string; + id: string; + webauthnSettingPatch: WebauthnSettingPatch; +} +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: { + tables: 'Table', + schemaGrants: 'SchemaGrant', + views: 'View', + defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + functions: 'Function', + apiSchemas: 'ApiSchema', + }, + Table: { + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + tableGrants: 'TableGrant', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewTables: 'ViewTable', + embeddingChunksByChunksTableId: 'EmbeddingChunk', + embeddingChunks: 'EmbeddingChunk', + spatialRelationsByRefTableId: 'SpatialRelation', + spatialRelations: 'SpatialRelation', + }, + Field: { + spatialRelations: 'SpatialRelation', + spatialRelationsByRefFieldId: 'SpatialRelation', + }, + View: { + viewTables: 'ViewTable', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + }, + Api: { + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + domains: 'Domain', + corsSettings: 'CorsSetting', + }, + Site: { + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + }, + Database: { + schemas: 'Schema', + tables: 'Table', + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + schemaGrants: 'SchemaGrant', + tableGrants: 'TableGrant', + triggerFunctions: 'TriggerFunction', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + embeddingChunks: 'EmbeddingChunk', + spatialRelations: 'SpatialRelation', + functions: 'Function', + partitions: 'Partition', + databaseTransfers: 'DatabaseTransfer', + apis: 'Api', + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + sites: 'Site', + apps: 'App', + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + apiSettings: 'ApiSetting', + corsSettings: 'CorsSetting', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface AcceptDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +export interface CancelDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +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[]; +} +export interface ApplyRlsInput { + clientMutationId?: string; + tableId?: string; + grants?: Record; + policyType?: string; + vars?: Record; + fieldIds?: string[]; + permissive?: boolean; + name?: string; +} +export interface CreateUserDatabaseInput { + clientMutationId?: string; + databaseName?: string; + ownerId?: string; + includeInvites?: boolean; + includeGroups?: boolean; + includeLevels?: boolean; + bitlen?: number; + tokensExpiration?: IntervalInput; +} +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 ObjectCategory fields. All fields are combined with a logical ‘and.’ */ +export interface ObjectCategoryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ObjectCategory; + /** Not equal to the specified value. */ + notEqualTo?: ObjectCategory; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ObjectCategory; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ObjectCategory; + /** Included in the specified list. */ + in?: ObjectCategory[]; + /** Not included in the specified list. */ + notIn?: ObjectCategory[]; + /** Less than the specified value. */ + lessThan?: ObjectCategory; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ObjectCategory; + /** Greater than the specified value. */ + greaterThan?: ObjectCategory; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ObjectCategory; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeHostnameFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeHostname; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeHostname; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeHostname[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeHostname[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeHostname; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeHostname; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** 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; +} +/** 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 `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeAttachmentFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeAttachment; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeAttachment; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeAttachment[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeAttachment[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeAttachment; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeAttachment; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** 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; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUrlFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUrl; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUrl; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUrl[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUrl[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUrl; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUrl; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** 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; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; +} +/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaFilter; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFunctionFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPartitionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PartitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PartitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PartitionFilter; +} +/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDatabaseTransferFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseTransferFilter; + /** Filters to entities where every related entity matches. */ + every?: DatabaseTransferFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseTransferFilter; +} +/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiFilter; +} +/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteFilter; +} +/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyAppFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppFilter; + /** Filters to entities where every related entity matches. */ + every?: AppFilter; + /** Filters to entities where no related entity matches. */ + none?: AppFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSettingFilter; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** 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. */ + 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `partitioned` field. */ + partitioned?: BooleanFilter; + /** Filter by the object’s `partitionStrategy` field. */ + partitionStrategy?: StringFilter; + /** Filter by the object’s `partitionKeyNames` field. */ + partitionKeyNames?: StringListFilter; + /** Filter by the object’s `partitionKeyTypes` field. */ + partitionKeyTypes?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `inherits` relation. */ + inherits?: TableFilter; + /** A related `inherits` exists. */ + inheritsExists?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: TableToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: TableToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: TableToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: TableToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: TableToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: TableToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: TableToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: TableToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: TableToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: TableToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ + spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; + /** `spatialRelationsByRefTableId` exist. */ + spatialRelationsByRefTableIdExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: TableToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `partition` relation. */ + partition?: PartitionFilter; + /** A related `partition` exists. */ + partitionExists?: boolean; +} +/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** A related `table` exists. */ + tableExists?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: ViewToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: ViewToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: ViewToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; +} +/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface EnumFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionFilter[]; + /** Negates the expression. */ + not?: FunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** 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. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: JSONFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** 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?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: FieldToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ + spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; + /** `spatialRelationsByRefFieldId` exist. */ + spatialRelationsByRefFieldIdExist?: boolean; +} +/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface ForeignKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface FullTextSearchFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: StringListFilter; + /** Filter by the object’s `langColumn` field. */ + langColumn?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface IndexFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `opClasses` field. */ + opClasses?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: IndexFilter[]; + /** Negates the expression. */ + not?: IndexFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface PolicyFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface PrimaryKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface UniqueConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface EmbeddingChunkFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `searchIndexes` field. */ + searchIndexes?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringFilter; + /** Filter by the object’s `embeddingProvider` field. */ + embeddingProvider?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: 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?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface SpatialRelationFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `operator` field. */ + operator?: StringFilter; + /** Filter by the object’s `paramName` field. */ + paramName?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: SpatialRelationFilter[]; + /** Checks for any expressions in this list. */ + or?: SpatialRelationFilter[]; + /** Negates the expression. */ + not?: SpatialRelationFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `field` relation. */ + field?: FieldFilter; + /** Filter by the object’s `refField` relation. */ + refField?: FieldFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** A related `site` exists. */ + siteExists?: boolean; +} +/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface CorsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CorsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: CorsSettingFilter[]; + /** Negates the expression. */ + not?: CorsSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: SchemaToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; +} +/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFunctionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface PartitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `strategy` field. */ + strategy?: StringFilter; + /** Filter by the object’s `partitionKeyId` field. */ + partitionKeyId?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `namingPattern` field. */ + namingPattern?: StringFilter; + /** Filter by the object’s `isParented` field. */ + isParented?: 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?: PartitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PartitionFilter[]; + /** Negates the expression. */ + not?: PartitionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `partitionKey` relation. */ + partitionKey?: FieldFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: ApiToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: ApiToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; +} +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: 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. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `app` relation. */ + app?: AppFilter; + /** A related `app` exists. */ + appExists?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: SiteToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: SiteToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; +} +/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ApiSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSettingFilter[]; + /** Negates the expression. */ + not?: ApiSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; + /** Filter by the object’s `schemas` relation. */ + schemas?: DatabaseToManySchemaFilter; + /** `schemas` exist. */ + schemasExist?: boolean; + /** Filter by the object’s `tables` relation. */ + tables?: DatabaseToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: DatabaseToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: DatabaseToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: DatabaseToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggerFunctions` relation. */ + triggerFunctions?: DatabaseToManyTriggerFunctionFilter; + /** `triggerFunctions` exist. */ + triggerFunctionsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: DatabaseToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: DatabaseToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: DatabaseToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: DatabaseToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: DatabaseToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `partitions` relation. */ + partitions?: DatabaseToManyPartitionFilter; + /** `partitions` exist. */ + partitionsExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `apis` relation. */ + apis?: DatabaseToManyApiFilter; + /** `apis` exist. */ + apisExist?: boolean; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: DatabaseToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: DatabaseToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `sites` relation. */ + sites?: DatabaseToManySiteFilter; + /** `sites` exist. */ + sitesExist?: boolean; + /** Filter by the object’s `apps` relation. */ + apps?: DatabaseToManyAppFilter; + /** `apps` exist. */ + appsExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: DatabaseToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: DatabaseToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: DatabaseToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: DatabaseToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `databaseSetting` relation. */ + databaseSetting?: DatabaseSettingFilter; + /** A related `databaseSetting` exists. */ + databaseSettingExists?: boolean; + /** Filter by the object’s `apiSettings` relation. */ + apiSettings?: DatabaseToManyApiSettingFilter; + /** `apiSettings` exist. */ + apiSettingsExist?: boolean; + /** Filter by the object’s `rlsSetting` relation. */ + rlsSetting?: RlsSettingFilter; + /** A related `rlsSetting` exists. */ + rlsSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: DatabaseToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `pubkeySetting` relation. */ + pubkeySetting?: PubkeySettingFilter; + /** A related `pubkeySetting` exists. */ + pubkeySettingExists?: boolean; + /** Filter by the object’s `webauthnSetting` relation. */ + webauthnSetting?: WebauthnSettingFilter; + /** A related `webauthnSetting` exists. */ + webauthnSettingExists?: boolean; +} +/** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ +export interface UUIDListFilter { + /** 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 Float fields. All fields are combined with a logical ‘and.’ */ +export interface FloatFilter { + /** 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; +} +/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface RlsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `authenticateSchemaId` field. */ + authenticateSchemaId?: UUIDFilter; + /** Filter by the object’s `roleSchemaId` field. */ + roleSchemaId?: UUIDFilter; + /** Filter by the object’s `authenticateFunctionId` field. */ + authenticateFunctionId?: UUIDFilter; + /** Filter by the object’s `authenticateStrictFunctionId` field. */ + authenticateStrictFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleFunctionId` field. */ + currentRoleFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleIdFunctionId` field. */ + currentRoleIdFunctionId?: UUIDFilter; + /** Filter by the object’s `currentUserAgentFunctionId` field. */ + currentUserAgentFunctionId?: UUIDFilter; + /** Filter by the object’s `currentIpAddressFunctionId` field. */ + currentIpAddressFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RlsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsSettingFilter[]; + /** Negates the expression. */ + not?: RlsSettingFilter; + /** Filter by the object’s `authenticateFunction` relation. */ + authenticateFunction?: FunctionFilter; + /** A related `authenticateFunction` exists. */ + authenticateFunctionExists?: boolean; + /** Filter by the object’s `authenticateSchema` relation. */ + authenticateSchema?: SchemaFilter; + /** A related `authenticateSchema` exists. */ + authenticateSchemaExists?: boolean; + /** Filter by the object’s `authenticateStrictFunction` relation. */ + authenticateStrictFunction?: FunctionFilter; + /** A related `authenticateStrictFunction` exists. */ + authenticateStrictFunctionExists?: boolean; + /** Filter by the object’s `currentIpAddressFunction` relation. */ + currentIpAddressFunction?: FunctionFilter; + /** A related `currentIpAddressFunction` exists. */ + currentIpAddressFunctionExists?: boolean; + /** Filter by the object’s `currentRoleFunction` relation. */ + currentRoleFunction?: FunctionFilter; + /** A related `currentRoleFunction` exists. */ + currentRoleFunctionExists?: boolean; + /** Filter by the object’s `currentRoleIdFunction` relation. */ + currentRoleIdFunction?: FunctionFilter; + /** A related `currentRoleIdFunction` exists. */ + currentRoleIdFunctionExists?: boolean; + /** Filter by the object’s `currentUserAgentFunction` relation. */ + currentUserAgentFunction?: FunctionFilter; + /** A related `currentUserAgentFunction` exists. */ + currentUserAgentFunctionExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `roleSchema` relation. */ + roleSchema?: SchemaFilter; + /** A related `roleSchema` exists. */ + roleSchemaExists?: boolean; +} +/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ +export interface PubkeySettingFilter { + /** 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 `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `signUpWithKeyFunctionId` field. */ + signUpWithKeyFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ + signInRequestChallengeFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRecordFailureFunctionId` field. */ + signInRecordFailureFunctionId?: UUIDFilter; + /** Filter by the object’s `signInWithChallengeFunctionId` field. */ + signInWithChallengeFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PubkeySettingFilter[]; + /** Checks for any expressions in this list. */ + or?: PubkeySettingFilter[]; + /** Negates the expression. */ + not?: PubkeySettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `signInRecordFailureFunction` relation. */ + signInRecordFailureFunction?: FunctionFilter; + /** A related `signInRecordFailureFunction` exists. */ + signInRecordFailureFunctionExists?: boolean; + /** Filter by the object’s `signInRequestChallengeFunction` relation. */ + signInRequestChallengeFunction?: FunctionFilter; + /** A related `signInRequestChallengeFunction` exists. */ + signInRequestChallengeFunctionExists?: boolean; + /** Filter by the object’s `signInWithChallengeFunction` relation. */ + signInWithChallengeFunction?: FunctionFilter; + /** A related `signInWithChallengeFunction` exists. */ + signInWithChallengeFunctionExists?: boolean; + /** Filter by the object’s `signUpWithKeyFunction` relation. */ + signUpWithKeyFunction?: FunctionFilter; + /** A related `signUpWithKeyFunction` exists. */ + signUpWithKeyFunctionExists?: boolean; +} +/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface WebauthnSettingFilter { + /** 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 `credentialsSchemaId` field. */ + credentialsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionsSchemaId` field. */ + sessionsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsSchemaId` field. */ + sessionSecretsSchemaId?: 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 `userFieldId` field. */ + userFieldId?: 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 `challengeExpirySeconds` field. */ + challengeExpirySeconds?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnSettingFilter[]; + /** Negates the expression. */ + not?: WebauthnSettingFilter; + /** Filter by the object’s `credentialsSchema` relation. */ + credentialsSchema?: SchemaFilter; + /** A related `credentialsSchema` exists. */ + credentialsSchemaExists?: boolean; + /** Filter by the object’s `credentialsTable` relation. */ + credentialsTable?: TableFilter; + /** A related `credentialsTable` exists. */ + credentialsTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `sessionCredentialsTable` relation. */ + sessionCredentialsTable?: TableFilter; + /** A related `sessionCredentialsTable` exists. */ + sessionCredentialsTableExists?: boolean; + /** Filter by the object’s `sessionSecretsSchema` relation. */ + sessionSecretsSchema?: SchemaFilter; + /** A related `sessionSecretsSchema` exists. */ + sessionSecretsSchemaExists?: boolean; + /** Filter by the object’s `sessionSecretsTable` relation. */ + sessionSecretsTable?: TableFilter; + /** A related `sessionSecretsTable` exists. */ + sessionSecretsTableExists?: boolean; + /** Filter by the object’s `sessionsSchema` relation. */ + sessionsSchema?: SchemaFilter; + /** A related `sessionsSchema` exists. */ + sessionsSchemaExists?: boolean; + /** Filter by the object’s `sessionsTable` relation. */ + sessionsTable?: TableFilter; + /** A related `sessionsTable` exists. */ + sessionsTableExists?: boolean; + /** Filter by the object’s `userField` relation. */ + userField?: FieldFilter; + /** A related `userField` exists. */ + userFieldExists?: boolean; +} +/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ +export interface BigIntFilter { + /** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface AcceptDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AcceptDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CancelDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type CancelDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +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; +} +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ApplyRlsPayload { + clientMutationId?: string | null; +} +export type ApplyRlsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface CreateUserDatabasePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateUserDatabasePayloadSelect = { + 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 CreateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was created by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type CreateFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface UpdateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was updated by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type UpdateFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface DeleteFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was deleted by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type DeleteFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface CreateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type CreateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type UpdateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type DeleteSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface CreateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type CreateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface UpdateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type UpdateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface DeleteTablePayload { + clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type DeleteTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type CreateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type UpdateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type DeleteCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface CreateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was created by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type CreateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface UpdateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was updated by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type UpdateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface DeleteFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was deleted by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type DeleteFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface CreateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was created by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type CreateSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface UpdateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was updated by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type UpdateSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface DeleteSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was deleted by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type DeleteSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface CreateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was created by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type CreateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was updated by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type UpdateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was deleted by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type DeleteForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was created by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type CreateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was updated by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type UpdateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was deleted by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type DeleteFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface CreateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was created by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type CreateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface UpdateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type UpdateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface DeleteIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type DeleteIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface CreatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type CreatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was updated by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type UpdatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface DeletePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was deleted by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type DeletePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was created by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type CreatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface UpdatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type UpdatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface DeletePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type DeletePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type CreateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type UpdateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was deleted by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type DeleteTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface CreateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type CreateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was updated by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type UpdateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was deleted by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type DeleteTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type CreateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was updated by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type UpdateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was deleted by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type DeleteUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface CreateViewPayload { + clientMutationId?: string | null; + /** The `View` that was created by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type CreateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface UpdateViewPayload { + clientMutationId?: string | null; + /** The `View` that was updated by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type UpdateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface DeleteViewPayload { + clientMutationId?: string | null; + /** The `View` that was deleted by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type DeleteViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface CreateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type CreateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type UpdateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type DeleteViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type CreateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type UpdateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type DeleteViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface CreateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was created by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type CreateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface UpdateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was updated by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type UpdateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface DeleteViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was deleted by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type DeleteViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type CreateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type UpdateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type DeleteEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was created by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type CreateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was updated by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type UpdateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was deleted by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type DeleteSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type CreateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type UpdateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type DeleteDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type CreateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type UpdateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type DeleteEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was created by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type CreateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was updated by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type UpdateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was deleted by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type DeleteApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface CreateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type CreateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface UpdateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type UpdateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface DeleteApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type DeleteApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface CreateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was created by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type CreateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface UpdateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was updated by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type UpdateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface DeleteDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was deleted by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type DeleteDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type CreateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type UpdateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type DeleteSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type CreateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type UpdateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type DeleteSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type CreateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type UpdateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type DeleteSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface CreateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was created by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type CreateCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface UpdateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was updated by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type UpdateCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface DeleteCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was deleted by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type DeleteCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface CreateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was created by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type CreateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was updated by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type UpdateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was deleted by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type DeleteTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface CreatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was created by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type CreatePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface UpdatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was updated by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type UpdatePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface DeletePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was deleted by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type DeletePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type CreateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type UpdateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type DeleteDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface CreateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type CreateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface UpdateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type UpdateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface DeleteApiPayload { + clientMutationId?: string | null; + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type DeleteApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface CreateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type CreateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface UpdateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type UpdateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface DeleteSitePayload { + clientMutationId?: string | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type DeleteSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface CreateAppPayload { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type CreateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface UpdateAppPayload { + clientMutationId?: string | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type UpdateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface DeleteAppPayload { + clientMutationId?: string | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type DeleteAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface CreateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was created by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type CreateApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface UpdateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was updated by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type UpdateApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface DeleteApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was deleted by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type DeleteApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was created by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type CreatePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface UpdatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was updated by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type UpdatePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface DeletePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was deleted by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type DeletePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface CreateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was created by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type CreateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was updated by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type UpdateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type DeleteDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface CreateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was created by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type CreateRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface UpdateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was updated by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type UpdateRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface DeleteRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was deleted by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type DeleteRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface CreateSqlActionPayload { + clientMutationId?: string | null; + /** The `SqlAction` that was created by this mutation. */ + sqlAction?: SqlAction | null; +} +export type CreateSqlActionPayloadSelect = { + clientMutationId?: boolean; + sqlAction?: { + select: SqlActionSelect; + }; +}; +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type CreateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type UpdateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type DeleteDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface CreateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was created by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type CreateWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +export interface UpdateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was updated by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type UpdateWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +export interface DeleteWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was deleted by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type DeleteWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +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 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; +}; +/** A `Function` edge in the connection. */ +export interface FunctionEdge { + cursor?: string | null; + /** The `Function` at the end of the edge. */ + node?: Function | null; +} +export type FunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionSelect; + }; +}; +/** A `Schema` edge in the connection. */ +export interface SchemaEdge { + cursor?: string | null; + /** The `Schema` at the end of the edge. */ + node?: Schema | null; +} +export type SchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaSelect; + }; +}; +/** A `Table` edge in the connection. */ +export interface TableEdge { + cursor?: string | null; + /** The `Table` at the end of the edge. */ + node?: Table | null; +} +export type TableEdgeSelect = { + cursor?: boolean; + node?: { + select: TableSelect; + }; +}; +/** A `CheckConstraint` edge in the connection. */ +export interface CheckConstraintEdge { + cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ + node?: CheckConstraint | null; +} +export type CheckConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: CheckConstraintSelect; + }; +}; +/** A `Field` edge in the connection. */ +export interface FieldEdge { + cursor?: string | null; + /** The `Field` at the end of the edge. */ + node?: Field | null; +} +export type FieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FieldSelect; + }; +}; +/** A `SpatialRelation` edge in the connection. */ +export interface SpatialRelationEdge { + cursor?: string | null; + /** The `SpatialRelation` at the end of the edge. */ + node?: SpatialRelation | null; +} +export type SpatialRelationEdgeSelect = { + cursor?: boolean; + node?: { + select: SpatialRelationSelect; + }; +}; +/** A `ForeignKeyConstraint` edge in the connection. */ +export interface ForeignKeyConstraintEdge { + cursor?: string | null; + /** The `ForeignKeyConstraint` at the end of the edge. */ + node?: ForeignKeyConstraint | null; +} +export type ForeignKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: ForeignKeyConstraintSelect; + }; +}; +/** A `FullTextSearch` edge in the connection. */ +export interface FullTextSearchEdge { + cursor?: string | null; + /** The `FullTextSearch` at the end of the edge. */ + node?: FullTextSearch | null; +} +export type FullTextSearchEdgeSelect = { + cursor?: boolean; + node?: { + select: FullTextSearchSelect; + }; +}; +/** A `Index` edge in the connection. */ +export interface IndexEdge { + cursor?: string | null; + /** The `Index` at the end of the edge. */ + node?: Index | null; +} +export type IndexEdgeSelect = { + cursor?: boolean; + node?: { + select: IndexSelect; + }; +}; +/** A `Policy` edge in the connection. */ +export interface PolicyEdge { + cursor?: string | null; + /** The `Policy` at the end of the edge. */ + node?: Policy | null; +} +export type PolicyEdgeSelect = { + cursor?: boolean; + node?: { + select: PolicySelect; + }; +}; +/** A `PrimaryKeyConstraint` edge in the connection. */ +export interface PrimaryKeyConstraintEdge { + cursor?: string | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ + node?: PrimaryKeyConstraint | null; +} +export type PrimaryKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: PrimaryKeyConstraintSelect; + }; +}; +/** A `TableGrant` edge in the connection. */ +export interface TableGrantEdge { + cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ + node?: TableGrant | null; +} +export type TableGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: TableGrantSelect; + }; +}; +/** A `Trigger` edge in the connection. */ +export interface TriggerEdge { + cursor?: string | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | null; +} +export type TriggerEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerSelect; + }; +}; +/** A `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +export type UniqueConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: UniqueConstraintSelect; + }; +}; +/** A `View` edge in the connection. */ +export interface ViewEdge { + cursor?: string | null; + /** The `View` at the end of the edge. */ + node?: View | null; +} +export type ViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewSelect; + }; +}; +/** A `ViewTable` edge in the connection. */ +export interface ViewTableEdge { + cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ + node?: ViewTable | null; +} +export type ViewTableEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewTableSelect; + }; +}; +/** A `ViewGrant` edge in the connection. */ +export interface ViewGrantEdge { + cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ + node?: ViewGrant | null; +} +export type ViewGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewGrantSelect; + }; +}; +/** A `ViewRule` edge in the connection. */ +export interface ViewRuleEdge { + cursor?: string | null; + /** The `ViewRule` at the end of the edge. */ + node?: ViewRule | null; +} +export type ViewRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewRuleSelect; + }; +}; +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} +export type EmbeddingChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: EmbeddingChunkSelect; + }; +}; +/** A `SchemaGrant` edge in the connection. */ +export interface SchemaGrantEdge { + cursor?: string | null; + /** The `SchemaGrant` at the end of the edge. */ + node?: SchemaGrant | null; +} +export type SchemaGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaGrantSelect; + }; +}; +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +export type DefaultPrivilegeEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultPrivilegeSelect; + }; +}; +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} +export type EnumEdgeSelect = { + cursor?: boolean; + node?: { + select: EnumSelect; + }; +}; +/** A `ApiSchema` edge in the connection. */ +export interface ApiSchemaEdge { + cursor?: string | null; + /** The `ApiSchema` at the end of the edge. */ + node?: ApiSchema | null; +} +export type ApiSchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSchemaSelect; + }; +}; +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { + cursor?: string | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +export type ApiModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiModuleSelect; + }; +}; +/** A `Domain` edge in the connection. */ +export interface DomainEdge { + cursor?: string | null; + /** The `Domain` at the end of the edge. */ + node?: Domain | null; +} +export type DomainEdgeSelect = { + cursor?: boolean; + node?: { + select: DomainSelect; + }; +}; +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ + node?: SiteMetadatum | null; +} +export type SiteMetadatumEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteMetadatumSelect; + }; +}; +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; +} +export type SiteModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteModuleSelect; + }; +}; +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { + cursor?: string | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; +} +export type SiteThemeEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteThemeSelect; + }; +}; +/** A `CorsSetting` edge in the connection. */ +export interface CorsSettingEdge { + cursor?: string | null; + /** The `CorsSetting` at the end of the edge. */ + node?: CorsSetting | null; +} +export type CorsSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: CorsSettingSelect; + }; +}; +/** A `TriggerFunction` edge in the connection. */ +export interface TriggerFunctionEdge { + cursor?: string | null; + /** The `TriggerFunction` at the end of the edge. */ + node?: TriggerFunction | null; +} +export type TriggerFunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerFunctionSelect; + }; +}; +/** A `Partition` edge in the connection. */ +export interface PartitionEdge { + cursor?: string | null; + /** The `Partition` at the end of the edge. */ + node?: Partition | null; +} +export type PartitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PartitionSelect; + }; +}; +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} +export type DatabaseTransferEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseTransferSelect; + }; +}; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; +/** A `App` edge in the connection. */ +export interface AppEdge { + cursor?: string | null; + /** The `App` at the end of the edge. */ + node?: App | null; +} +export type AppEdgeSelect = { + cursor?: boolean; + node?: { + select: AppSelect; + }; +}; +/** A `ApiSetting` edge in the connection. */ +export interface ApiSettingEdge { + cursor?: string | null; + /** The `ApiSetting` at the end of the edge. */ + node?: ApiSetting | null; +} +export type ApiSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSettingSelect; + }; +}; +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +export type NodeTypeRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: NodeTypeRegistrySelect; + }; +}; +/** A `PubkeySetting` edge in the connection. */ +export interface PubkeySettingEdge { + cursor?: string | null; + /** The `PubkeySetting` at the end of the edge. */ + node?: PubkeySetting | null; +} +export type PubkeySettingEdgeSelect = { + cursor?: boolean; + node?: { + select: PubkeySettingSelect; + }; +}; +/** A `Database` edge in the connection. */ +export interface DatabaseEdge { + cursor?: string | null; + /** The `Database` at the end of the edge. */ + node?: Database | null; +} +export type DatabaseEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSelect; + }; +}; +/** A `RlsSetting` edge in the connection. */ +export interface RlsSettingEdge { + cursor?: string | null; + /** The `RlsSetting` at the end of the edge. */ + node?: RlsSetting | null; +} +export type RlsSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsSettingSelect; + }; +}; +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} +export type DatabaseSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSettingSelect; + }; +}; +/** A `WebauthnSetting` edge in the connection. */ +export interface WebauthnSettingEdge { + cursor?: string | null; + /** The `WebauthnSetting` at the end of the edge. */ + node?: WebauthnSetting | null; +} +export type WebauthnSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnSettingSelect; + }; +}; diff --git a/sdk/constructive-cli/src/public/orm/models/api.ts b/sdk/constructive-cli/src/api/orm/models/api.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/api.ts rename to sdk/constructive-cli/src/api/orm/models/api.ts diff --git a/sdk/constructive-cli/src/public/orm/models/apiModule.ts b/sdk/constructive-cli/src/api/orm/models/apiModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/apiModule.ts rename to sdk/constructive-cli/src/api/orm/models/apiModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/apiSchema.ts b/sdk/constructive-cli/src/api/orm/models/apiSchema.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/apiSchema.ts rename to sdk/constructive-cli/src/api/orm/models/apiSchema.ts diff --git a/sdk/constructive-cli/src/public/orm/models/apiSetting.ts b/sdk/constructive-cli/src/api/orm/models/apiSetting.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/apiSetting.ts rename to sdk/constructive-cli/src/api/orm/models/apiSetting.ts diff --git a/sdk/constructive-cli/src/public/orm/models/app.ts b/sdk/constructive-cli/src/api/orm/models/app.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/app.ts rename to sdk/constructive-cli/src/api/orm/models/app.ts diff --git a/sdk/constructive-cli/src/public/orm/models/astMigration.ts b/sdk/constructive-cli/src/api/orm/models/astMigration.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/astMigration.ts rename to sdk/constructive-cli/src/api/orm/models/astMigration.ts diff --git a/sdk/constructive-cli/src/public/orm/models/checkConstraint.ts b/sdk/constructive-cli/src/api/orm/models/checkConstraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/checkConstraint.ts rename to sdk/constructive-cli/src/api/orm/models/checkConstraint.ts diff --git a/sdk/constructive-cli/src/public/orm/models/corsSetting.ts b/sdk/constructive-cli/src/api/orm/models/corsSetting.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/corsSetting.ts rename to sdk/constructive-cli/src/api/orm/models/corsSetting.ts diff --git a/sdk/constructive-cli/src/public/orm/models/database.ts b/sdk/constructive-cli/src/api/orm/models/database.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/database.ts rename to sdk/constructive-cli/src/api/orm/models/database.ts diff --git a/sdk/constructive-cli/src/public/orm/models/databaseSetting.ts b/sdk/constructive-cli/src/api/orm/models/databaseSetting.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/databaseSetting.ts rename to sdk/constructive-cli/src/api/orm/models/databaseSetting.ts diff --git a/sdk/constructive-cli/src/public/orm/models/databaseTransfer.ts b/sdk/constructive-cli/src/api/orm/models/databaseTransfer.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/databaseTransfer.ts rename to sdk/constructive-cli/src/api/orm/models/databaseTransfer.ts diff --git a/sdk/constructive-cli/src/public/orm/models/defaultPrivilege.ts b/sdk/constructive-cli/src/api/orm/models/defaultPrivilege.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/defaultPrivilege.ts rename to sdk/constructive-cli/src/api/orm/models/defaultPrivilege.ts diff --git a/sdk/constructive-cli/src/public/orm/models/domain.ts b/sdk/constructive-cli/src/api/orm/models/domain.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/domain.ts rename to sdk/constructive-cli/src/api/orm/models/domain.ts diff --git a/sdk/constructive-cli/src/public/orm/models/embeddingChunk.ts b/sdk/constructive-cli/src/api/orm/models/embeddingChunk.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/embeddingChunk.ts rename to sdk/constructive-cli/src/api/orm/models/embeddingChunk.ts diff --git a/sdk/constructive-cli/src/public/orm/models/enum.ts b/sdk/constructive-cli/src/api/orm/models/enum.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/enum.ts rename to sdk/constructive-cli/src/api/orm/models/enum.ts diff --git a/sdk/constructive-cli/src/public/orm/models/field.ts b/sdk/constructive-cli/src/api/orm/models/field.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/field.ts rename to sdk/constructive-cli/src/api/orm/models/field.ts diff --git a/sdk/constructive-cli/src/public/orm/models/foreignKeyConstraint.ts b/sdk/constructive-cli/src/api/orm/models/foreignKeyConstraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/foreignKeyConstraint.ts rename to sdk/constructive-cli/src/api/orm/models/foreignKeyConstraint.ts diff --git a/sdk/constructive-cli/src/public/orm/models/fullTextSearch.ts b/sdk/constructive-cli/src/api/orm/models/fullTextSearch.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/fullTextSearch.ts rename to sdk/constructive-cli/src/api/orm/models/fullTextSearch.ts diff --git a/sdk/constructive-cli/src/public/orm/models/function.ts b/sdk/constructive-cli/src/api/orm/models/function.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/function.ts rename to sdk/constructive-cli/src/api/orm/models/function.ts diff --git a/sdk/constructive-cli/src/api/orm/models/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts new file mode 100644 index 0000000000..326c47f972 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/index.ts @@ -0,0 +1,50 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { FunctionModel } from './function'; +export { SchemaModel } from './schema'; +export { TableModel } from './table'; +export { CheckConstraintModel } from './checkConstraint'; +export { FieldModel } from './field'; +export { SpatialRelationModel } from './spatialRelation'; +export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; +export { FullTextSearchModel } from './fullTextSearch'; +export { IndexModel } from './indexModel'; +export { PolicyModel } from './policy'; +export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; +export { TableGrantModel } from './tableGrant'; +export { TriggerModel } from './trigger'; +export { UniqueConstraintModel } from './uniqueConstraint'; +export { ViewModel } from './view'; +export { ViewTableModel } from './viewTable'; +export { ViewGrantModel } from './viewGrant'; +export { ViewRuleModel } from './viewRule'; +export { EmbeddingChunkModel } from './embeddingChunk'; +export { SchemaGrantModel } from './schemaGrant'; +export { DefaultPrivilegeModel } from './defaultPrivilege'; +export { EnumModel } from './enum'; +export { ApiSchemaModel } from './apiSchema'; +export { ApiModuleModel } from './apiModule'; +export { DomainModel } from './domain'; +export { SiteMetadatumModel } from './siteMetadatum'; +export { SiteModuleModel } from './siteModule'; +export { SiteThemeModel } from './siteTheme'; +export { CorsSettingModel } from './corsSetting'; +export { TriggerFunctionModel } from './triggerFunction'; +export { PartitionModel } from './partition'; +export { DatabaseTransferModel } from './databaseTransfer'; +export { ApiModel } from './api'; +export { SiteModel } from './site'; +export { AppModel } from './app'; +export { ApiSettingModel } from './apiSetting'; +export { MigrateFileModel } from './migrateFile'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { PubkeySettingModel } from './pubkeySetting'; +export { DatabaseModel } from './database'; +export { RlsSettingModel } from './rlsSetting'; +export { SqlActionModel } from './sqlAction'; +export { DatabaseSettingModel } from './databaseSetting'; +export { WebauthnSettingModel } from './webauthnSetting'; +export { AstMigrationModel } from './astMigration'; diff --git a/sdk/constructive-cli/src/public/orm/models/indexModel.ts b/sdk/constructive-cli/src/api/orm/models/indexModel.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/indexModel.ts rename to sdk/constructive-cli/src/api/orm/models/indexModel.ts diff --git a/sdk/constructive-cli/src/public/orm/models/migrateFile.ts b/sdk/constructive-cli/src/api/orm/models/migrateFile.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/migrateFile.ts rename to sdk/constructive-cli/src/api/orm/models/migrateFile.ts diff --git a/sdk/constructive-cli/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-cli/src/api/orm/models/nodeTypeRegistry.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/nodeTypeRegistry.ts rename to sdk/constructive-cli/src/api/orm/models/nodeTypeRegistry.ts diff --git a/sdk/constructive-cli/src/public/orm/models/partition.ts b/sdk/constructive-cli/src/api/orm/models/partition.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/partition.ts rename to sdk/constructive-cli/src/api/orm/models/partition.ts diff --git a/sdk/constructive-cli/src/public/orm/models/policy.ts b/sdk/constructive-cli/src/api/orm/models/policy.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/policy.ts rename to sdk/constructive-cli/src/api/orm/models/policy.ts diff --git a/sdk/constructive-cli/src/public/orm/models/primaryKeyConstraint.ts b/sdk/constructive-cli/src/api/orm/models/primaryKeyConstraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/primaryKeyConstraint.ts rename to sdk/constructive-cli/src/api/orm/models/primaryKeyConstraint.ts diff --git a/sdk/constructive-cli/src/public/orm/models/pubkeySetting.ts b/sdk/constructive-cli/src/api/orm/models/pubkeySetting.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/pubkeySetting.ts rename to sdk/constructive-cli/src/api/orm/models/pubkeySetting.ts diff --git a/sdk/constructive-cli/src/public/orm/models/rlsSetting.ts b/sdk/constructive-cli/src/api/orm/models/rlsSetting.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/rlsSetting.ts rename to sdk/constructive-cli/src/api/orm/models/rlsSetting.ts diff --git a/sdk/constructive-cli/src/public/orm/models/schema.ts b/sdk/constructive-cli/src/api/orm/models/schema.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/schema.ts rename to sdk/constructive-cli/src/api/orm/models/schema.ts diff --git a/sdk/constructive-cli/src/public/orm/models/schemaGrant.ts b/sdk/constructive-cli/src/api/orm/models/schemaGrant.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/schemaGrant.ts rename to sdk/constructive-cli/src/api/orm/models/schemaGrant.ts diff --git a/sdk/constructive-cli/src/public/orm/models/site.ts b/sdk/constructive-cli/src/api/orm/models/site.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/site.ts rename to sdk/constructive-cli/src/api/orm/models/site.ts diff --git a/sdk/constructive-cli/src/public/orm/models/siteMetadatum.ts b/sdk/constructive-cli/src/api/orm/models/siteMetadatum.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/siteMetadatum.ts rename to sdk/constructive-cli/src/api/orm/models/siteMetadatum.ts diff --git a/sdk/constructive-cli/src/public/orm/models/siteModule.ts b/sdk/constructive-cli/src/api/orm/models/siteModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/siteModule.ts rename to sdk/constructive-cli/src/api/orm/models/siteModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/siteTheme.ts b/sdk/constructive-cli/src/api/orm/models/siteTheme.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/siteTheme.ts rename to sdk/constructive-cli/src/api/orm/models/siteTheme.ts diff --git a/sdk/constructive-cli/src/public/orm/models/spatialRelation.ts b/sdk/constructive-cli/src/api/orm/models/spatialRelation.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/spatialRelation.ts rename to sdk/constructive-cli/src/api/orm/models/spatialRelation.ts diff --git a/sdk/constructive-cli/src/public/orm/models/sqlAction.ts b/sdk/constructive-cli/src/api/orm/models/sqlAction.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/sqlAction.ts rename to sdk/constructive-cli/src/api/orm/models/sqlAction.ts diff --git a/sdk/constructive-cli/src/public/orm/models/table.ts b/sdk/constructive-cli/src/api/orm/models/table.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/table.ts rename to sdk/constructive-cli/src/api/orm/models/table.ts diff --git a/sdk/constructive-cli/src/public/orm/models/tableGrant.ts b/sdk/constructive-cli/src/api/orm/models/tableGrant.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/tableGrant.ts rename to sdk/constructive-cli/src/api/orm/models/tableGrant.ts diff --git a/sdk/constructive-cli/src/public/orm/models/trigger.ts b/sdk/constructive-cli/src/api/orm/models/trigger.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/trigger.ts rename to sdk/constructive-cli/src/api/orm/models/trigger.ts diff --git a/sdk/constructive-cli/src/public/orm/models/triggerFunction.ts b/sdk/constructive-cli/src/api/orm/models/triggerFunction.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/triggerFunction.ts rename to sdk/constructive-cli/src/api/orm/models/triggerFunction.ts diff --git a/sdk/constructive-cli/src/public/orm/models/uniqueConstraint.ts b/sdk/constructive-cli/src/api/orm/models/uniqueConstraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/uniqueConstraint.ts rename to sdk/constructive-cli/src/api/orm/models/uniqueConstraint.ts diff --git a/sdk/constructive-cli/src/public/orm/models/view.ts b/sdk/constructive-cli/src/api/orm/models/view.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/view.ts rename to sdk/constructive-cli/src/api/orm/models/view.ts diff --git a/sdk/constructive-cli/src/public/orm/models/viewGrant.ts b/sdk/constructive-cli/src/api/orm/models/viewGrant.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/viewGrant.ts rename to sdk/constructive-cli/src/api/orm/models/viewGrant.ts diff --git a/sdk/constructive-cli/src/public/orm/models/viewRule.ts b/sdk/constructive-cli/src/api/orm/models/viewRule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/viewRule.ts rename to sdk/constructive-cli/src/api/orm/models/viewRule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/viewTable.ts b/sdk/constructive-cli/src/api/orm/models/viewTable.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/viewTable.ts rename to sdk/constructive-cli/src/api/orm/models/viewTable.ts diff --git a/sdk/constructive-cli/src/public/orm/models/webauthnSetting.ts b/sdk/constructive-cli/src/api/orm/models/webauthnSetting.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/webauthnSetting.ts rename to sdk/constructive-cli/src/api/orm/models/webauthnSetting.ts diff --git a/sdk/constructive-cli/src/api/orm/mutation/index.ts b/sdk/constructive-cli/src/api/orm/mutation/index.ts new file mode 100644 index 0000000000..ef3c67f877 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/mutation/index.ts @@ -0,0 +1,356 @@ +/** + * 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 { + AcceptDatabaseTransferInput, + CancelDatabaseTransferInput, + RejectDatabaseTransferInput, + ProvisionDatabaseWithUserInput, + BootstrapUserInput, + SetFieldOrderInput, + ApplyRlsInput, + CreateUserDatabaseInput, + ProvisionBucketInput, + AcceptDatabaseTransferPayload, + CancelDatabaseTransferPayload, + RejectDatabaseTransferPayload, + ProvisionDatabaseWithUserPayload, + BootstrapUserPayload, + SetFieldOrderPayload, + ApplyRlsPayload, + CreateUserDatabasePayload, + ProvisionBucketPayload, + AcceptDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayloadSelect, + ProvisionDatabaseWithUserPayloadSelect, + BootstrapUserPayloadSelect, + SetFieldOrderPayloadSelect, + ApplyRlsPayloadSelect, + CreateUserDatabasePayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; +} +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; +} +export interface ProvisionDatabaseWithUserVariables { + input: ProvisionDatabaseWithUserInput; +} +export interface BootstrapUserVariables { + input: BootstrapUserInput; +} +export interface SetFieldOrderVariables { + input: SetFieldOrderInput; +} +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) + +Returns the database_id UUID of the newly created database. + +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 + */ +export interface CreateUserDatabaseVariables { + input: CreateUserDatabaseInput; +} +/** + * 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 { + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + acceptDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'AcceptDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'AcceptDatabaseTransferPayload' + ), + }), + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + cancelDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'CancelDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'CancelDatabaseTransferPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' + ), + }), + 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: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setFieldOrder: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetFieldOrder', + fieldName: 'setFieldOrder', + ...buildCustomDocument( + 'mutation', + 'SetFieldOrder', + 'setFieldOrder', + options.select, + args, + [ + { + name: 'input', + type: 'SetFieldOrderInput!', + }, + ], + connectionFieldsMap, + 'SetFieldOrderPayload' + ), + }), + applyRls: ( + args: ApplyRlsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + applyRls: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApplyRls', + fieldName: 'applyRls', + ...buildCustomDocument( + 'mutation', + 'ApplyRls', + 'applyRls', + options.select, + args, + [ + { + name: 'input', + type: 'ApplyRlsInput!', + }, + ], + connectionFieldsMap, + 'ApplyRlsPayload' + ), + }), + createUserDatabase: ( + args: CreateUserDatabaseVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createUserDatabase: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateUserDatabase', + fieldName: 'createUserDatabase', + ...buildCustomDocument( + 'mutation', + 'CreateUserDatabase', + 'createUserDatabase', + options.select, + args, + [ + { + name: 'input', + type: 'CreateUserDatabaseInput!', + }, + ], + connectionFieldsMap, + 'CreateUserDatabasePayload' + ), + }), + 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/public/orm/query-builder.ts b/sdk/constructive-cli/src/api/orm/query-builder.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/query-builder.ts rename to sdk/constructive-cli/src/api/orm/query-builder.ts diff --git a/sdk/constructive-cli/src/api/orm/query/index.ts b/sdk/constructive-cli/src/api/orm/query/index.ts new file mode 100644 index 0000000000..e004891a17 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/query/index.ts @@ -0,0 +1,50 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export interface ApplyRegistryDefaultsVariables { + nodeType?: string; + data?: unknown; +} +export function createQueryOperations(client: OrmClient) { + return { + applyRegistryDefaults: ( + args: ApplyRegistryDefaultsVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + applyRegistryDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'ApplyRegistryDefaults', + fieldName: 'applyRegistryDefaults', + ...buildCustomDocument( + 'query', + 'ApplyRegistryDefaults', + 'applyRegistryDefaults', + options?.select, + args, + [ + { + name: 'nodeType', + type: 'String', + }, + { + name: 'data', + type: 'JSON', + }, + ], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/public/orm/realtime.ts b/sdk/constructive-cli/src/api/orm/realtime.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/realtime.ts rename to sdk/constructive-cli/src/api/orm/realtime.ts diff --git a/sdk/constructive-react/src/public/orm/select-types.ts b/sdk/constructive-cli/src/api/orm/select-types.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/select-types.ts rename to sdk/constructive-cli/src/api/orm/select-types.ts diff --git a/sdk/constructive-react/src/public/orm/types.ts b/sdk/constructive-cli/src/api/orm/types.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/types.ts rename to sdk/constructive-cli/src/api/orm/types.ts diff --git a/sdk/constructive-cli/src/commands/base-handler.ts b/sdk/constructive-cli/src/commands/base-handler.ts deleted file mode 100644 index add3b0fec6..0000000000 --- a/sdk/constructive-cli/src/commands/base-handler.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Base command handler types and utilities. - * - * Provides the standard command handler signature and helpers for building - * CLI commands that work with inquirerer's CLI class. - */ - -import type { CLIOptions, Inquirerer } from 'inquirerer'; -import { extractFirst } from 'inquirerer'; - -/** - * Standard command handler function signature. - * All CLI commands follow this pattern for compatibility with inquirerer's CLI class. - * - * @param argv - Parsed command-line arguments from minimist - * @param prompter - The inquirerer prompter instance for interactive prompts - * @param options - CLI options including minimist configuration - */ -export type CommandHandler = ( - argv: Partial>, - prompter: Inquirerer, - options: CLIOptions -) => Promise; - -/** - * Command definition for registering commands with the CLI. - */ -export interface CommandDefinition { - /** The command name (used as the subcommand) */ - name: string; - /** The command handler function */ - handler: CommandHandler; - /** Optional usage/help text */ - usage?: string; -} - -/** - * Build a commands map from an array of command definitions. - * Returns the format expected by inquirerer's CLI class. - * - * @param definitions - Array of command definitions - * @returns Commands map keyed by command name - */ -export function buildCommands( - definitions: CommandDefinition[] -): Record { - const commands: Record = {}; - for (const def of definitions) { - commands[def.name] = def.handler; - } - return commands; -} - -/** - * Create a command handler that dispatches to subcommands. - * Useful for building nested command structures (e.g. `cli context create`). - * - * @param subcommands - Map of subcommand name to handler function - * @param usage - Usage text shown when no subcommand is provided or --help is used - * @returns A command handler that extracts the first arg and dispatches - */ -export function createSubcommandHandler( - subcommands: Record, - usage: string -): CommandHandler { - return async (argv, prompter, options) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - - const { first: subcommand, newArgv } = extractFirst(argv); - - if (!subcommand || !subcommands[subcommand]) { - console.log(usage); - process.exit(1); - } - - await subcommands[subcommand](newArgv, prompter, options); - }; -} diff --git a/sdk/constructive-cli/src/commands/index.ts b/sdk/constructive-cli/src/commands/index.ts deleted file mode 100644 index 58f5e5425e..0000000000 --- a/sdk/constructive-cli/src/commands/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { - buildCommands, - createSubcommandHandler, -} from './base-handler'; -export type { - CommandHandler, - CommandDefinition, -} from './base-handler'; diff --git a/sdk/constructive-cli/src/config/app-dirs.ts b/sdk/constructive-cli/src/config/app-dirs.ts deleted file mode 100644 index 443ef7bff7..0000000000 --- a/sdk/constructive-cli/src/config/app-dirs.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Application directory management using appstash. - * - * Provides a standardized way to manage CLI tool configuration directories, - * including config, cache, data, and log directories following XDG conventions. - */ - -import { appstash, createConfigStore } from 'appstash'; - -/** - * Options for initializing application directories. - */ -export interface AppDirOptions { - /** Ensure directories are created if they don't exist */ - ensure?: boolean; -} - -/** - * Get the application directory paths for a CLI tool. - * Creates directories under ~/.toolName/ with standard subdirectories. - * - * @param toolName - The name of the CLI tool (e.g. 'my-cli') - * @param options - Options for directory initialization - * @returns Object with paths to config, cache, data, and log directories - */ -export function getAppDirs(toolName: string, options: AppDirOptions = {}) { - return appstash(toolName, { ensure: options.ensure ?? true }); -} - -/** - * Create a config store for a CLI tool. - * The config store manages contexts, credentials, and settings - * persisted to the filesystem. - * - * @param toolName - The name of the CLI tool - * @returns A config store instance with context and credential management - */ -export function getConfigStore(toolName: string) { - return createConfigStore(toolName); -} diff --git a/sdk/constructive-cli/src/config/index.ts b/sdk/constructive-cli/src/config/index.ts deleted file mode 100644 index 9636f677cb..0000000000 --- a/sdk/constructive-cli/src/config/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { getAppDirs, getConfigStore } from './app-dirs'; -export type { AppDirOptions } from './app-dirs'; diff --git a/sdk/constructive-cli/src/index.ts b/sdk/constructive-cli/src/index.ts index 4f0892d9e0..dca8c56ed3 100644 --- a/sdk/constructive-cli/src/index.ts +++ b/sdk/constructive-cli/src/index.ts @@ -7,6 +7,9 @@ * @generated by @constructive-io/graphql-codegen */ export * as admin from './admin'; +export * as agent from './agent'; +export * as api from './api'; export * as auth from './auth'; +export * as modules from './modules'; export * as objects from './objects'; -export * as public_ from './public'; +export * as usage from './usage'; diff --git a/sdk/constructive-cli/src/modules/README.md b/sdk/constructive-cli/src/modules/README.md new file mode 100644 index 0000000000..e8acace7a8 --- /dev/null +++ b/sdk/constructive-cli/src/modules/README.md @@ -0,0 +1,47 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 56 +- **Custom queries:** 2 +- **Custom mutations:** 10 + +**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/modules/cli/README.md b/sdk/constructive-cli/src/modules/cli/README.md new file mode 100644 index 0000000000..79407daa5b --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/README.md @@ -0,0 +1,2458 @@ +# 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) | +| `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 | +| `identity-providers-module` | identityProvidersModule 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 | +| `crypto-addresses-module` | cryptoAddressesModule CRUD operations | +| `denormalized-table-field` | denormalizedTableField CRUD operations | +| `rls-module` | rlsModule CRUD operations | +| `blueprint` | blueprint CRUD operations | +| `blueprint-template` | blueprintTemplate CRUD operations | +| `blueprint-construction` | blueprintConstruction CRUD operations | +| `crypto-auth-module` | cryptoAuthModule CRUD operations | +| `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | +| `sessions-module` | sessionsModule CRUD operations | +| `merkle-store-module` | merkleStoreModule CRUD operations | +| `graph-module` | graphModule CRUD operations | +| `secure-table-provision` | secureTableProvision CRUD operations | +| `config-secrets-module` | configSecretsModule CRUD operations | +| `invites-module` | invitesModule CRUD operations | +| `database-provision-module` | databaseProvisionModule CRUD operations | +| `realtime-module` | realtimeModule CRUD operations | +| `webauthn-auth-module` | webauthnAuthModule CRUD operations | +| `namespace-module` | namespaceModule CRUD operations | +| `compute-log-module` | computeLogModule CRUD operations | +| `inference-log-module` | inferenceLogModule CRUD operations | +| `storage-log-module` | storageLogModule CRUD operations | +| `transfer-log-module` | transferLogModule CRUD operations | +| `db-usage-module` | dbUsageModule CRUD operations | +| `notifications-module` | notificationsModule CRUD operations | +| `plans-module` | plansModule CRUD operations | +| `hierarchy-module` | hierarchyModule CRUD operations | +| `billing-module` | billingModule CRUD operations | +| `billing-provider-module` | billingProviderModule CRUD operations | +| `profiles-module` | profilesModule CRUD operations | +| `permissions-module` | permissionsModule CRUD operations | +| `relation-provision` | relationProvision CRUD operations | +| `function-module` | functionModule CRUD operations | +| `user-auth-module` | userAuthModule CRUD operations | +| `agent-module` | agentModule CRUD operations | +| `limits-module` | limitsModule CRUD operations | +| `memberships-module` | membershipsModule CRUD operations | +| `storage-module` | storageModule CRUD operations | +| `events-module` | eventsModule CRUD operations | +| `entity-type-provision` | entityTypeProvision CRUD operations | +| `resolve-blueprint-field` | Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. | +| `resolve-blueprint-table` | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | +| `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | +| `provision-full-text-search` | Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. | +| `provision-index` | Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. | +| `provision-check-constraint` | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | +| `provision-unique-constraint` | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | +| `copy-template-to-blueprint` | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | +| `provision-spatial-relation` | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | +| `provision-table` | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | +| `provision-relation` | Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). | +| `provision-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 + +### `default-ids-module` + +CRUD operations for DefaultIdsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all defaultIdsModule records | +| `find-first` | Find first matching defaultIdsModule record | +| `get` | Get a defaultIdsModule by id | +| `create` | Create a new defaultIdsModule | +| `update` | Update an existing defaultIdsModule | +| `delete` | Delete a defaultIdsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | + +**Required create fields:** `databaseId` + +### `membership-types-module` + +CRUD operations for MembershipTypesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all membershipTypesModule records | +| `find-first` | Find first matching membershipTypesModule record | +| `get` | Get a membershipTypesModule by id | +| `create` | Create a new membershipTypesModule | +| `update` | Update an existing membershipTypesModule | +| `delete` | Delete a membershipTypesModule | + +**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` + +### `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. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all sessionSecretsModule records | +| `find-first` | Find first matching sessionSecretsModule record | +| `get` | Get a sessionSecretsModule by id | +| `create` | Create a new sessionSecretsModule | +| `update` | Update an existing sessionSecretsModule | +| `delete` | Delete a sessionSecretsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `tableId` | UUID | +| `tableName` | String | +| `sessionsTableId` | UUID | + +**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. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all devicesModule records | +| `find-first` | Find first matching devicesModule record | +| `get` | Get a devicesModule by id | +| `create` | Create a new devicesModule | +| `update` | Update an existing devicesModule | +| `delete` | Delete a devicesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `userDevicesTableId` | UUID | +| `deviceSettingsTableId` | UUID | +| `userDevicesTable` | String | +| `deviceSettingsTable` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` + +### `i-18-n-module` + +CRUD operations for I18NModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all i18NModule records | +| `find-first` | Find first matching i18NModule record | +| `get` | Get a i18NModule by id | +| `create` | Create a new i18NModule | +| `update` | Update an existing i18NModule | +| `delete` | Delete a i18NModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `settingsTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `settingsTableId`, `apiName`, `privateApiName` + +### `user-credentials-module` + +CRUD operations for UserCredentialsModule 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 | + +**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` + +### `user-settings-module` + +CRUD operations for UserSettingsModule 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `tableId` | UUID | +| `ownerTableId` | UUID | +| `tableName` | String | +| `apiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `tableId`, `ownerTableId`, `tableName`, `apiName` + +### `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 | +| `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` + +### `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 | +| `tableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `apiName`, `privateApiName` + +### `connected-accounts-module` + +CRUD operations for ConnectedAccountsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all connectedAccountsModule records | +| `find-first` | Find first matching connectedAccountsModule record | +| `get` | Get a connectedAccountsModule by id | +| `create` | Create a new connectedAccountsModule | +| `update` | Update an existing connectedAccountsModule | +| `delete` | Delete a connectedAccountsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableId` | UUID | +| `ownerTableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId`, `tableName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `apiName`, `privateApiName` + +### `emails-module` + +CRUD operations for EmailsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all emailsModule records | +| `find-first` | Find first matching emailsModule record | +| `get` | Get a emailsModule by id | +| `create` | Create a new emailsModule | +| `update` | Update an existing emailsModule | +| `delete` | Delete a emailsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableId` | UUID | +| `ownerTableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId`, `tableName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `apiName`, `privateApiName` + +### `phone-numbers-module` + +CRUD operations for PhoneNumbersModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all phoneNumbersModule records | +| `find-first` | Find first matching phoneNumbersModule record | +| `get` | Get a phoneNumbersModule by id | +| `create` | Create a new phoneNumbersModule | +| `update` | Update an existing phoneNumbersModule | +| `delete` | Delete a phoneNumbersModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableId` | UUID | +| `ownerTableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId`, `tableName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `apiName`, `privateApiName` + +### `rate-limits-module` + +CRUD operations for RateLimitsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all rateLimitsModule records | +| `find-first` | Find first matching rateLimitsModule record | +| `get` | Get a rateLimitsModule by id | +| `create` | Create a new rateLimitsModule | +| `update` | Update an existing rateLimitsModule | +| `delete` | Delete a rateLimitsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `rateLimitSettingsTableId` | UUID | +| `ipRateLimitsTableId` | UUID | +| `rateLimitsTableId` | UUID | +| `rateLimitSettingsTable` | String | +| `ipRateLimitsTable` | String | +| `rateLimitsTable` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `rateLimitSettingsTableId`, `ipRateLimitsTableId`, `rateLimitsTableId`, `rateLimitSettingsTable`, `ipRateLimitsTable`, `rateLimitsTable` + +### `users-module` + +CRUD operations for UsersModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all usersModule records | +| `find-first` | Find first matching usersModule record | +| `get` | Get a usersModule by id | +| `create` | Create a new usersModule | +| `update` | Update an existing usersModule | +| `delete` | Delete a usersModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `tableId` | UUID | +| `tableName` | String | +| `typeTableId` | UUID | +| `typeTableName` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `typeTableId`, `typeTableName`, `apiName`, `privateApiName` + +### `webauthn-credentials-module` + +CRUD operations for WebauthnCredentialsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all webauthnCredentialsModule records | +| `find-first` | Find first matching webauthnCredentialsModule record | +| `get` | Get a webauthnCredentialsModule by id | +| `create` | Create a new webauthnCredentialsModule | +| `update` | Update an existing webauthnCredentialsModule | +| `delete` | Delete a webauthnCredentialsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableId` | UUID | +| `ownerTableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `tableName`, `apiName`, `privateApiName` + +### `crypto-addresses-module` + +CRUD operations for CryptoAddressesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all cryptoAddressesModule records | +| `find-first` | Find first matching cryptoAddressesModule record | +| `get` | Get a cryptoAddressesModule by id | +| `create` | Create a new cryptoAddressesModule | +| `update` | Update an existing cryptoAddressesModule | +| `delete` | Delete a cryptoAddressesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableId` | UUID | +| `ownerTableId` | UUID | +| `tableName` | String | +| `cryptoNetwork` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId`, `tableName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `cryptoNetwork`, `apiName`, `privateApiName` + +### `denormalized-table-field` + +CRUD operations for DenormalizedTableField records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all denormalizedTableField records | +| `find-first` | Find first matching denormalizedTableField record | +| `get` | Get a denormalizedTableField by id | +| `create` | Create a new denormalizedTableField | +| `update` | Update an existing denormalizedTableField | +| `delete` | Delete a denormalizedTableField | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `fieldId` | UUID | +| `setIds` | UUID | +| `refTableId` | UUID | +| `refFieldId` | UUID | +| `refIds` | UUID | +| `useUpdates` | Boolean | +| `updateDefaults` | Boolean | +| `funcName` | String | +| `funcOrder` | Int | + +**Required create fields:** `databaseId`, `tableId`, `fieldId`, `refTableId`, `refFieldId` +**Optional create fields (backend defaults):** `setIds`, `refIds`, `useUpdates`, `updateDefaults`, `funcName`, `funcOrder` + +### `rls-module` + +CRUD operations for RlsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all rlsModule records | +| `find-first` | Find first matching rlsModule record | +| `get` | Get a rlsModule by id | +| `create` | Create a new rlsModule | +| `update` | Update an existing rlsModule | +| `delete` | Delete a rlsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `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 | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `usersTableId`, `authenticate`, `authenticateStrict`, `currentRole`, `currentRoleId`, `apiName`, `privateApiName` + +### `blueprint` + +CRUD operations for Blueprint records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all blueprint records | +| `find-first` | Find first matching blueprint record | +| `get` | Get a blueprint by id | +| `create` | Create a new blueprint | +| `update` | Update an existing blueprint | +| `delete` | Delete a blueprint | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `ownerId` | UUID | +| `databaseId` | UUID | +| `name` | String | +| `displayName` | String | +| `description` | String | +| `definition` | JSON | +| `templateId` | UUID | +| `definitionHash` | UUID | +| `tableHashes` | JSON | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `ownerId`, `databaseId`, `name`, `displayName`, `definition` +**Optional create fields (backend defaults):** `description`, `templateId`, `definitionHash`, `tableHashes` + +### `blueprint-template` + +CRUD operations for BlueprintTemplate records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all blueprintTemplate records | +| `find-first` | Find first matching blueprintTemplate record | +| `get` | Get a blueprintTemplate by id | +| `create` | Create a new blueprintTemplate | +| `update` | Update an existing blueprintTemplate | +| `delete` | Delete a blueprintTemplate | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `version` | String | +| `displayName` | String | +| `description` | String | +| `ownerId` | UUID | +| `visibility` | String | +| `categories` | String | +| `tags` | String | +| `definition` | JSON | +| `definitionSchemaVersion` | String | +| `source` | String | +| `complexity` | String | +| `copyCount` | Int | +| `forkCount` | Int | +| `forkedFromId` | UUID | +| `definitionHash` | UUID | +| `tableHashes` | JSON | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `name`, `displayName`, `ownerId`, `definition` +**Optional create fields (backend defaults):** `version`, `description`, `visibility`, `categories`, `tags`, `definitionSchemaVersion`, `source`, `complexity`, `copyCount`, `forkCount`, `forkedFromId`, `definitionHash`, `tableHashes` + +### `blueprint-construction` + +CRUD operations for BlueprintConstruction records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all blueprintConstruction records | +| `find-first` | Find first matching blueprintConstruction record | +| `get` | Get a blueprintConstruction by id | +| `create` | Create a new blueprintConstruction | +| `update` | Update an existing blueprintConstruction | +| `delete` | Delete a blueprintConstruction | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `blueprintId` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `status` | String | +| `errorDetails` | String | +| `tableMap` | JSON | +| `constructedDefinition` | JSON | +| `constructedAt` | Datetime | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `blueprintId`, `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `status`, `errorDetails`, `tableMap`, `constructedDefinition`, `constructedAt` + +### `crypto-auth-module` + +CRUD operations for CryptoAuthModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all cryptoAuthModule records | +| `find-first` | Find first matching cryptoAuthModule record | +| `get` | Get a cryptoAuthModule by id | +| `create` | Create a new cryptoAuthModule | +| `update` | Update an existing cryptoAuthModule | +| `delete` | Delete a cryptoAuthModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `usersTableId` | UUID | +| `secretsTableId` | UUID | +| `sessionsTableId` | UUID | +| `sessionCredentialsTableId` | UUID | +| `addressesTableId` | UUID | +| `userField` | String | +| `cryptoNetwork` | String | +| `signInRequestChallenge` | String | +| `signInRecordFailure` | String | +| `signUpWithKey` | String | +| `signInWithChallenge` | String | + +**Required create fields:** `databaseId`, `userField` +**Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `secretsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `addressesTableId`, `cryptoNetwork`, `signInRequestChallenge`, `signInRecordFailure`, `signUpWithKey`, `signInWithChallenge` + +### `rate-limit-meters-module` + +CRUD operations for RateLimitMetersModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all rateLimitMetersModule records | +| `find-first` | Find first matching rateLimitMetersModule record | +| `get` | Get a rateLimitMetersModule by id | +| `create` | Create a new rateLimitMetersModule | +| `update` | Update an existing rateLimitMetersModule | +| `delete` | Delete a rateLimitMetersModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `rateLimitStateTableId` | UUID | +| `rateLimitStateTableName` | String | +| `rateLimitOverridesTableId` | UUID | +| `rateLimitOverridesTableName` | String | +| `rateWindowLimitsTableId` | UUID | +| `rateWindowLimitsTableName` | String | +| `checkRateLimitFunction` | String | +| `prefix` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `rateLimitStateTableId`, `rateLimitStateTableName`, `rateLimitOverridesTableId`, `rateLimitOverridesTableName`, `rateWindowLimitsTableId`, `rateWindowLimitsTableName`, `checkRateLimitFunction`, `prefix`, `apiName`, `privateApiName` + +### `sessions-module` + +CRUD operations for SessionsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all sessionsModule records | +| `find-first` | Find first matching sessionsModule record | +| `get` | Get a sessionsModule by id | +| `create` | Create a new sessionsModule | +| `update` | Update an existing sessionsModule | +| `delete` | Delete a sessionsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `sessionsTableId` | UUID | +| `sessionCredentialsTableId` | UUID | +| `authSettingsTableId` | UUID | +| `usersTableId` | UUID | +| `sessionsDefaultExpiration` | Interval | +| `sessionsTable` | String | +| `sessionCredentialsTable` | String | +| `authSettingsTable` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `sessionsTableId`, `sessionCredentialsTableId`, `authSettingsTableId`, `usersTableId`, `sessionsDefaultExpiration`, `sessionsTable`, `sessionCredentialsTable`, `authSettingsTable` + +### `merkle-store-module` + +CRUD operations for MerkleStoreModule 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `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 | +| `databaseOwned` | Boolean | +| `createdAt` | Datetime | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `objectTableId`, `storeTableId`, `commitTableId`, `refTableId`, `prefix`, `apiName`, `privateApiName`, `databaseOwned` + +### `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 | +| `publicSchemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `scope` | String | +| `prefix` | String | +| `merkleStoreModuleId` | UUID | +| `graphsTableId` | UUID | +| `executionsTableId` | UUID | +| `outputsTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | +| `databaseOwned` | Boolean | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `createdAt` | Datetime | + +**Required create fields:** `databaseId`, `merkleStoreModuleId` +**Optional create fields (backend defaults):** `publicSchemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `scope`, `prefix`, `graphsTableId`, `executionsTableId`, `outputsTableId`, `apiName`, `privateApiName`, `databaseOwned`, `entityTableId`, `policies`, `provisions` + +### `secure-table-provision` + +CRUD operations for SecureTableProvision records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all secureTableProvision records | +| `find-first` | Find first matching secureTableProvision record | +| `get` | Get a secureTableProvision by id | +| `create` | Create a new secureTableProvision | +| `update` | Update an existing secureTableProvision | +| `delete` | Delete a secureTableProvision | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `tableId` | UUID | +| `tableName` | String | +| `nodes` | JSON | +| `useRls` | Boolean | +| `fields` | JSON | +| `grants` | JSON | +| `policies` | JSON | +| `outFields` | UUID | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `nodes`, `useRls`, `fields`, `grants`, `policies`, `outFields` + +### `config-secrets-module` + +CRUD operations for ConfigSecretsModule 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableId` | UUID | +| `configDefinitionsTableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `databaseOwned` | Boolean | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `hasConfig` | Boolean | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `configDefinitionsTableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `databaseOwned`, `prefix`, `entityTableId`, `policies`, `provisions`, `hasConfig` + +### `invites-module` + +CRUD operations for InvitesModule 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `emailsTableId` | UUID | +| `usersTableId` | UUID | +| `invitesTableId` | UUID | +| `claimedInvitesTableId` | UUID | +| `invitesTableName` | String | +| `claimedInvitesTableName` | String | +| `submitInviteCodeFunction` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `emailsTableId`, `usersTableId`, `invitesTableId`, `claimedInvitesTableId`, `invitesTableName`, `claimedInvitesTableName`, `submitInviteCodeFunction`, `scope`, `prefix`, `entityTableId`, `apiName`, `privateApiName` + +### `database-provision-module` + +CRUD operations for DatabaseProvisionModule 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 | + +**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 | + +**Required create fields:** `databaseName`, `ownerId`, `domain` +**Optional create fields (backend defaults):** `subdomain`, `modules`, `options`, `bootstrapUser`, `status`, `errorMessage`, `databaseId`, `completedAt` + +### `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` + +### `webauthn-auth-module` + +CRUD operations for WebauthnAuthModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all webauthnAuthModule records | +| `find-first` | Find first matching webauthnAuthModule record | +| `get` | Get a webauthnAuthModule by id | +| `create` | Create a new webauthnAuthModule | +| `update` | Update an existing webauthnAuthModule | +| `delete` | Delete a webauthnAuthModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `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 | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `credentialsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `sessionSecretsTableId`, `authSettingsTableId`, `rpId`, `rpName`, `originAllowlist`, `attestationType`, `requireUserVerification`, `residentKey`, `challengeExpiry` + +### `namespace-module` + +CRUD operations for NamespaceModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all namespaceModule records | +| `find-first` | Find first matching namespaceModule record | +| `get` | Get a namespaceModule by id | +| `create` | Create a new namespaceModule | +| `update` | Update an existing namespaceModule | +| `delete` | Delete a namespaceModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `namespacesTableId` | UUID | +| `namespaceEventsTableId` | UUID | +| `namespacesTableName` | String | +| `namespaceEventsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `databaseOwned` | Boolean | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `namespacesTableId`, `namespaceEventsTableId`, `namespacesTableName`, `namespaceEventsTableName`, `apiName`, `privateApiName`, `scope`, `databaseOwned`, `prefix`, `entityTableId`, `policies`, `provisions` + +### `compute-log-module` + +CRUD operations for ComputeLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all computeLogModule records | +| `find-first` | Find first matching computeLogModule record | +| `get` | Get a computeLogModule by id | +| `create` | Create a new computeLogModule | +| `update` | Update an existing computeLogModule | +| `delete` | Delete a computeLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `computeLogTableId` | UUID | +| `computeLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `computeLogTableId`, `computeLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` + +### `inference-log-module` + +CRUD operations for InferenceLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all inferenceLogModule records | +| `find-first` | Find first matching inferenceLogModule record | +| `get` | Get a inferenceLogModule by id | +| `create` | Create a new inferenceLogModule | +| `update` | Update an existing inferenceLogModule | +| `delete` | Delete a inferenceLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `inferenceLogTableId` | UUID | +| `inferenceLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` + +### `storage-log-module` + +CRUD operations for StorageLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all storageLogModule records | +| `find-first` | Find first matching storageLogModule record | +| `get` | Get a storageLogModule by id | +| `create` | Create a new storageLogModule | +| `update` | Update an existing storageLogModule | +| `delete` | Delete a storageLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `storageLogTableId` | UUID | +| `storageLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `storageLogTableId`, `storageLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` + +### `transfer-log-module` + +CRUD operations for TransferLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all transferLogModule records | +| `find-first` | Find first matching transferLogModule record | +| `get` | Get a transferLogModule by id | +| `create` | Create a new transferLogModule | +| `update` | Update an existing transferLogModule | +| `delete` | Delete a transferLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `transferLogTableId` | UUID | +| `transferLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `transferLogTableId`, `transferLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `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 | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableStatsLogTableId` | UUID | +| `tableStatsLogTableName` | String | +| `tableStatsDailyTableId` | UUID | +| `tableStatsDailyTableName` | String | +| `queryStatsLogTableId` | UUID | +| `queryStatsLogTableName` | String | +| `queryStatsDailyTableId` | UUID | +| `queryStatsDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `prefix` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsDailyTableId`, `tableStatsDailyTableName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsDailyTableId`, `queryStatsDailyTableName`, `interval`, `retention`, `premake`, `scope`, `prefix`, `apiName`, `privateApiName` + +### `notifications-module` + +CRUD operations for NotificationsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all notificationsModule records | +| `find-first` | Find first matching notificationsModule record | +| `get` | Get a notificationsModule by id | +| `create` | Create a new notificationsModule | +| `update` | Update an existing notificationsModule | +| `delete` | Delete a notificationsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `notificationsTableId` | UUID | +| `readStateTableId` | UUID | +| `preferencesTableId` | UUID | +| `channelsTableId` | UUID | +| `deliveryLogTableId` | UUID | +| `ownerTableId` | UUID | +| `userSettingsTableId` | UUID | +| `organizationSettingsTableId` | UUID | +| `hasChannels` | Boolean | +| `hasPreferences` | Boolean | +| `hasSettingsExtension` | Boolean | +| `hasDigestMetadata` | Boolean | +| `hasSubscriptions` | Boolean | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions`, `apiName`, `privateApiName` + +### `plans-module` + +CRUD operations for PlansModule 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | 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 | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `plansTableId`, `plansTableName`, `planLimitsTableId`, `planLimitsTableName`, `planPricingTableId`, `planOverridesTableId`, `planMeterLimitsTableId`, `planCapsTableId`, `applyPlanFunction`, `applyPlanAggregateFunction`, `applyBillingPlanFunction`, `applyPlanCapsFunction`, `prefix`, `apiName`, `privateApiName` + +### `hierarchy-module` + +CRUD operations for HierarchyModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all hierarchyModule records | +| `find-first` | Find first matching hierarchyModule record | +| `get` | Get a hierarchyModule by id | +| `create` | Create a new hierarchyModule | +| `update` | Update an existing hierarchyModule | +| `delete` | Delete a hierarchyModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `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 | +| `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` + +### `billing-module` + +CRUD operations for BillingModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all billingModule records | +| `find-first` | Find first matching billingModule record | +| `get` | Get a billingModule by id | +| `create` | Create a new billingModule | +| `update` | Update an existing billingModule | +| `delete` | Delete a billingModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `metersTableId` | UUID | +| `metersTableName` | String | +| `planSubscriptionsTableId` | UUID | +| `planSubscriptionsTableName` | String | +| `ledgerTableId` | UUID | +| `ledgerTableName` | String | +| `balancesTableId` | UUID | +| `balancesTableName` | String | +| `meterCreditsTableId` | UUID | +| `meterCreditsTableName` | String | +| `meterSourcesTableId` | UUID | +| `meterSourcesTableName` | String | +| `meterDefaultsTableId` | UUID | +| `meterDefaultsTableName` | String | +| `recordUsageFunction` | String | +| `prefix` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `recordUsageFunction`, `prefix`, `apiName`, `privateApiName` + +### `billing-provider-module` + +CRUD operations for BillingProviderModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all billingProviderModule records | +| `find-first` | Find first matching billingProviderModule record | +| `get` | Get a billingProviderModule by id | +| `create` | Create a new billingProviderModule | +| `update` | Update an existing billingProviderModule | +| `delete` | Delete a billingProviderModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `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 | +| `apiName` | String | +| `privateApiName` | String | + +**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` + +### `profiles-module` + +CRUD operations for ProfilesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all profilesModule records | +| `find-first` | Find first matching profilesModule record | +| `get` | Get a profilesModule by id | +| `create` | Create a new profilesModule | +| `update` | Update an existing profilesModule | +| `delete` | Delete a profilesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `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 | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `apiName`, `privateApiName` + +### `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 | +| `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`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `bitlen`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `getPaddedMask`, `getMask`, `getByMask`, `getMaskByName`, `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` + +### `function-module` + +CRUD operations for FunctionModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all functionModule records | +| `find-first` | Find first matching functionModule record | +| `get` | Get a functionModule by id | +| `create` | Create a new functionModule | +| `update` | Update an existing functionModule | +| `delete` | Delete a functionModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `definitionsTableId` | UUID | +| `invocationsTableId` | UUID | +| `executionLogsTableId` | UUID | +| `secretDefinitionsTableId` | UUID | +| `requirementsTableId` | UUID | +| `configDefinitionsTableId` | UUID | +| `configRequirementsTableId` | UUID | +| `definitionsTableName` | String | +| `invocationsTableName` | String | +| `executionLogsTableName` | String | +| `secretDefinitionsTableName` | String | +| `requirementsTableName` | String | +| `configRequirementsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `databaseOwned` | Boolean | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `definitionsTableId`, `invocationsTableId`, `executionLogsTableId`, `secretDefinitionsTableId`, `requirementsTableId`, `configDefinitionsTableId`, `configRequirementsTableId`, `definitionsTableName`, `invocationsTableName`, `executionLogsTableName`, `secretDefinitionsTableName`, `requirementsTableName`, `configRequirementsTableName`, `apiName`, `privateApiName`, `scope`, `databaseOwned`, `prefix`, `entityTableId`, `policies`, `provisions` + +### `user-auth-module` + +CRUD operations for UserAuthModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all userAuthModule records | +| `find-first` | Find first matching userAuthModule record | +| `get` | Get a userAuthModule by id | +| `create` | Create a new userAuthModule | +| `update` | Update an existing userAuthModule | +| `delete` | Delete a userAuthModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `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 | + +**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` + +### `agent-module` + +CRUD operations for AgentModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentModule records | +| `find-first` | Find first matching agentModule record | +| `get` | Get a agentModule by id | +| `create` | Create a new agentModule | +| `update` | Update an existing agentModule | +| `delete` | Delete a agentModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `threadTableId` | UUID | +| `messageTableId` | UUID | +| `taskTableId` | UUID | +| `promptsTableId` | UUID | +| `knowledgeTableId` | UUID | +| `planTableId` | UUID | +| `skillTableId` | UUID | +| `threadTableName` | String | +| `messageTableName` | String | +| `taskTableName` | String | +| `promptsTableName` | String | +| `knowledgeTableName` | String | +| `planTableName` | String | +| `skillTableName` | String | +| `hasKnowledge` | Boolean | +| `hasPlans` | Boolean | +| `hasSkills` | Boolean | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `databaseOwned` | Boolean | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `knowledgeConfig` | JSON | +| `skillsConfig` | JSON | +| `knowledgePolicies` | JSON | +| `provisions` | JSON | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `threadTableId`, `messageTableId`, `taskTableId`, `promptsTableId`, `knowledgeTableId`, `planTableId`, `skillTableId`, `threadTableName`, `messageTableName`, `taskTableName`, `promptsTableName`, `knowledgeTableName`, `planTableName`, `skillTableName`, `hasKnowledge`, `hasPlans`, `hasSkills`, `apiName`, `privateApiName`, `scope`, `databaseOwned`, `prefix`, `entityTableId`, `policies`, `knowledgeConfig`, `skillsConfig`, `knowledgePolicies`, `provisions` + +### `limits-module` + +CRUD operations for LimitsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all limitsModule records | +| `find-first` | Find first matching limitsModule record | +| `get` | Get a limitsModule by id | +| `create` | Create a new limitsModule | +| `update` | Update an existing limitsModule | +| `delete` | Delete a limitsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `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 | +| `actorTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `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 | +| `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 | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `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`, `apiName`, `privateApiName` + +### `storage-module` + +CRUD operations for StorageModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all storageModule records | +| `find-first` | Find first matching storageModule record | +| `get` | Get a storageModule by id | +| `create` | Create a new storageModule | +| `update` | Update an existing storageModule | +| `delete` | Delete a storageModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `bucketsTableId` | UUID | +| `filesTableId` | UUID | +| `bucketsTableName` | String | +| `filesTableName` | String | +| `scope` | String | +| `databaseOwned` | Boolean | +| `prefix` | String | +| `policies` | JSON | +| `provisions` | JSON | +| `entityTableId` | UUID | +| `endpoint` | String | +| `publicUrlPrefix` | String | +| `provider` | String | +| `allowedOrigins` | String | +| `restrictReads` | Boolean | +| `hasPathShares` | Boolean | +| `pathSharesTableId` | UUID | +| `uploadUrlExpirySeconds` | Int | +| `downloadUrlExpirySeconds` | Int | +| `defaultMaxFileSize` | BigInt | +| `maxFilenameLength` | Int | +| `cacheTtlSeconds` | Int | +| `maxBulkFiles` | Int | +| `maxBulkTotalSize` | BigInt | +| `hasVersioning` | Boolean | +| `hasContentHash` | Boolean | +| `hasCustomKeys` | Boolean | +| `hasAuditLog` | Boolean | +| `hasConfirmUpload` | Boolean | +| `confirmUploadDelay` | Interval | +| `fileEventsTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `scope`, `databaseOwned`, `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`, `apiName`, `privateApiName` + +### `events-module` + +CRUD operations for EventsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all eventsModule records | +| `find-first` | Find first matching eventsModule record | +| `get` | Get a eventsModule by id | +| `create` | Create a new eventsModule | +| `update` | Update an existing eventsModule | +| `delete` | Delete a eventsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `eventsTableId` | UUID | +| `eventsTableName` | String | +| `eventAggregatesTableId` | UUID | +| `eventAggregatesTableName` | String | +| `eventTypesTableId` | UUID | +| `eventTypesTableName` | String | +| `levelsTableId` | UUID | +| `levelsTableName` | String | +| `levelRequirementsTableId` | UUID | +| `levelRequirementsTableName` | String | +| `levelGrantsTableId` | UUID | +| `levelGrantsTableName` | String | +| `achievementRewardsTableId` | UUID | +| `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` | Int | +| `scope` | String | +| `databaseOwned` | Boolean | +| `prefix` | String | +| `entityTableId` | UUID | +| `actorTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `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`, `databaseOwned`, `prefix`, `entityTableId`, `actorTableId`, `apiName`, `privateApiName` + +### `entity-type-provision` + +CRUD operations for EntityTypeProvision records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all entityTypeProvision records | +| `find-first` | Find first matching entityTypeProvision record | +| `get` | Get a entityTypeProvision by id | +| `create` | Create a new entityTypeProvision | +| `update` | Update an existing entityTypeProvision | +| `delete` | Delete a entityTypeProvision | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `name` | String | +| `prefix` | String | +| `description` | String | +| `parentEntity` | String | +| `tableName` | String | +| `isVisible` | Boolean | +| `hasLimits` | Boolean | +| `hasProfiles` | Boolean | +| `hasLevels` | Boolean | +| `hasInvites` | Boolean | +| `hasInviteAchievements` | Boolean | +| `storage` | JSON | +| `namespaces` | JSON | +| `functions` | JSON | +| `graphs` | JSON | +| `agents` | JSON | +| `skipEntityPolicies` | Boolean | +| `tableProvision` | JSON | +| `outMembershipType` | Int | +| `outEntityTableId` | UUID | +| `outEntityTableName` | String | +| `outInstalledModules` | String | +| `outStorageModuleId` | UUID | +| `outBucketsTableId` | UUID | +| `outFilesTableId` | UUID | +| `outPathSharesTableId` | UUID | +| `outInvitesModuleId` | UUID | +| `outNamespaceModuleId` | UUID | +| `outNamespacesTableId` | UUID | +| `outNamespaceEventsTableId` | UUID | +| `outFunctionModuleId` | UUID | +| `outDefinitionsTableId` | UUID | +| `outInvocationsTableId` | UUID | +| `outExecutionLogsTableId` | UUID | +| `outSecretDefinitionsTableId` | UUID | +| `outRequirementsTableId` | UUID | +| `outConfigRequirementsTableId` | 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`, `outRequirementsTableId`, `outConfigRequirementsTableId`, `outGraphModuleId`, `outGraphsTableId`, `outAgentModuleId` + +## Custom Operations + +### `resolve-blueprint-field` + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--databaseId` | UUID | + | `--tableId` | UUID | + | `--fieldName` | String | + +### `resolve-blueprint-table` + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--databaseId` | UUID | + | `--tableName` | String | + | `--schemaName` | String | + | `--tableMap` | JSON | + | `--defaultSchemaId` | UUID | + +### `construct-blueprint` + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.blueprintId` | UUID | + | `--input.schemaId` | UUID | + +### `provision-full-text-search` + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.tableId` | UUID | + | `--input.definition` | JSON | + +### `provision-index` + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.tableId` | UUID | + | `--input.definition` | JSON | + +### `provision-check-constraint` + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.tableId` | UUID | + | `--input.definition` | JSON | + +### `provision-unique-constraint` + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.tableId` | UUID | + | `--input.definition` | JSON | + +### `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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.templateId` | UUID | + | `--input.databaseId` | UUID | + | `--input.ownerId` | UUID | + | `--input.nameOverride` | String | + | `--input.displayNameOverride` | String | + +### `provision-spatial-relation` + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.pDatabaseId` | UUID | + | `--input.pSourceTableId` | UUID | + | `--input.pSourceFieldId` | UUID | + | `--input.pTargetTableId` | UUID | + | `--input.pTargetFieldId` | UUID | + | `--input.pName` | String | + | `--input.pOperator` | String | + | `--input.pParamName` | String | + +### `provision-table` + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.schemaId` | UUID | + | `--input.tableName` | String | + | `--input.tableId` | UUID | + | `--input.nodes` | JSON | + | `--input.fields` | JSON | + | `--input.policies` | JSON | + | `--input.grants` | JSON | + | `--input.useRls` | Boolean | + | `--input.indexes` | JSON | + | `--input.fullTextSearches` | JSON | + | `--input.uniqueConstraints` | JSON | + | `--input.description` | String | + +### `provision-relation` + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.relationType` | String | + | `--input.sourceTableId` | UUID | + | `--input.targetTableId` | UUID | + | `--input.fieldName` | String | + | `--input.deleteAction` | String | + | `--input.isRequired` | Boolean | + | `--input.apiRequired` | Boolean | + | `--input.createIndex` | Boolean | + | `--input.junctionTableId` | UUID | + | `--input.junctionTableName` | String | + | `--input.junctionSchemaId` | UUID | + | `--input.sourceFieldName` | String | + | `--input.targetFieldName` | String | + | `--input.useCompositeKey` | Boolean | + | `--input.exposeInApi` | Boolean | + | `--input.nodes` | JSON | + | `--input.grants` | JSON | + | `--input.policies` | JSON | + +### `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/modules/cli/commands.ts b/sdk/constructive-cli/src/modules/cli/commands.ts new file mode 100644 index 0000000000..e8e548793c --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands.ts @@ -0,0 +1,189 @@ +/** + * 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 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 identityProvidersModuleCmd from './commands/identity-providers-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 cryptoAddressesModuleCmd from './commands/crypto-addresses-module'; +import denormalizedTableFieldCmd from './commands/denormalized-table-field'; +import rlsModuleCmd from './commands/rls-module'; +import blueprintCmd from './commands/blueprint'; +import blueprintTemplateCmd from './commands/blueprint-template'; +import blueprintConstructionCmd from './commands/blueprint-construction'; +import cryptoAuthModuleCmd from './commands/crypto-auth-module'; +import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; +import sessionsModuleCmd from './commands/sessions-module'; +import merkleStoreModuleCmd from './commands/merkle-store-module'; +import graphModuleCmd from './commands/graph-module'; +import secureTableProvisionCmd from './commands/secure-table-provision'; +import configSecretsModuleCmd from './commands/config-secrets-module'; +import invitesModuleCmd from './commands/invites-module'; +import databaseProvisionModuleCmd from './commands/database-provision-module'; +import realtimeModuleCmd from './commands/realtime-module'; +import webauthnAuthModuleCmd from './commands/webauthn-auth-module'; +import namespaceModuleCmd from './commands/namespace-module'; +import computeLogModuleCmd from './commands/compute-log-module'; +import inferenceLogModuleCmd from './commands/inference-log-module'; +import storageLogModuleCmd from './commands/storage-log-module'; +import transferLogModuleCmd from './commands/transfer-log-module'; +import dbUsageModuleCmd from './commands/db-usage-module'; +import notificationsModuleCmd from './commands/notifications-module'; +import plansModuleCmd from './commands/plans-module'; +import hierarchyModuleCmd from './commands/hierarchy-module'; +import billingModuleCmd from './commands/billing-module'; +import billingProviderModuleCmd from './commands/billing-provider-module'; +import profilesModuleCmd from './commands/profiles-module'; +import permissionsModuleCmd from './commands/permissions-module'; +import relationProvisionCmd from './commands/relation-provision'; +import functionModuleCmd from './commands/function-module'; +import userAuthModuleCmd from './commands/user-auth-module'; +import agentModuleCmd from './commands/agent-module'; +import limitsModuleCmd from './commands/limits-module'; +import membershipsModuleCmd from './commands/memberships-module'; +import storageModuleCmd from './commands/storage-module'; +import eventsModuleCmd from './commands/events-module'; +import entityTypeProvisionCmd from './commands/entity-type-provision'; +import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field'; +import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; +import constructBlueprintCmd from './commands/construct-blueprint'; +import provisionFullTextSearchCmd from './commands/provision-full-text-search'; +import provisionIndexCmd from './commands/provision-index'; +import provisionCheckConstraintCmd from './commands/provision-check-constraint'; +import provisionUniqueConstraintCmd from './commands/provision-unique-constraint'; +import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint'; +import provisionSpatialRelationCmd from './commands/provision-spatial-relation'; +import provisionTableCmd from './commands/provision-table'; +import provisionRelationCmd from './commands/provision-relation'; +import provisionBucketCmd from './commands/provision-bucket'; +const createCommandMap: () => Record< + string, + ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions + ) => Promise +> = () => ({ + context: contextCmd, + 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, + 'identity-providers-module': identityProvidersModuleCmd, + 'connected-accounts-module': connectedAccountsModuleCmd, + 'emails-module': emailsModuleCmd, + 'phone-numbers-module': phoneNumbersModuleCmd, + 'rate-limits-module': rateLimitsModuleCmd, + 'users-module': usersModuleCmd, + 'webauthn-credentials-module': webauthnCredentialsModuleCmd, + 'crypto-addresses-module': cryptoAddressesModuleCmd, + 'denormalized-table-field': denormalizedTableFieldCmd, + 'rls-module': rlsModuleCmd, + blueprint: blueprintCmd, + 'blueprint-template': blueprintTemplateCmd, + 'blueprint-construction': blueprintConstructionCmd, + 'crypto-auth-module': cryptoAuthModuleCmd, + 'rate-limit-meters-module': rateLimitMetersModuleCmd, + 'sessions-module': sessionsModuleCmd, + 'merkle-store-module': merkleStoreModuleCmd, + 'graph-module': graphModuleCmd, + 'secure-table-provision': secureTableProvisionCmd, + 'config-secrets-module': configSecretsModuleCmd, + 'invites-module': invitesModuleCmd, + 'database-provision-module': databaseProvisionModuleCmd, + 'realtime-module': realtimeModuleCmd, + 'webauthn-auth-module': webauthnAuthModuleCmd, + 'namespace-module': namespaceModuleCmd, + 'compute-log-module': computeLogModuleCmd, + 'inference-log-module': inferenceLogModuleCmd, + 'storage-log-module': storageLogModuleCmd, + 'transfer-log-module': transferLogModuleCmd, + 'db-usage-module': dbUsageModuleCmd, + 'notifications-module': notificationsModuleCmd, + 'plans-module': plansModuleCmd, + 'hierarchy-module': hierarchyModuleCmd, + 'billing-module': billingModuleCmd, + 'billing-provider-module': billingProviderModuleCmd, + 'profiles-module': profilesModuleCmd, + 'permissions-module': permissionsModuleCmd, + 'relation-provision': relationProvisionCmd, + 'function-module': functionModuleCmd, + 'user-auth-module': userAuthModuleCmd, + 'agent-module': agentModuleCmd, + 'limits-module': limitsModuleCmd, + 'memberships-module': membershipsModuleCmd, + 'storage-module': storageModuleCmd, + 'events-module': eventsModuleCmd, + 'entity-type-provision': entityTypeProvisionCmd, + 'resolve-blueprint-field': resolveBlueprintFieldCmd, + 'resolve-blueprint-table': resolveBlueprintTableCmd, + 'construct-blueprint': constructBlueprintCmd, + 'provision-full-text-search': provisionFullTextSearchCmd, + 'provision-index': provisionIndexCmd, + 'provision-check-constraint': provisionCheckConstraintCmd, + 'provision-unique-constraint': provisionUniqueConstraintCmd, + 'copy-template-to-blueprint': copyTemplateToBlueprintCmd, + 'provision-spatial-relation': provisionSpatialRelationCmd, + 'provision-table': provisionTableCmd, + 'provision-relation': provisionRelationCmd, + '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 identity-providers-module identityProvidersModule 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 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 rate-limit-meters-module rateLimitMetersModule CRUD operations\n sessions-module sessionsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n config-secrets-module configSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n realtime-module realtimeModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n namespace-module namespaceModule 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 db-usage-module dbUsageModule CRUD operations\n notifications-module notificationsModule CRUD operations\n plans-module plansModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n profiles-module profilesModule CRUD operations\n permissions-module permissionsModule CRUD operations\n relation-provision relationProvision CRUD operations\n function-module functionModule 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 storage-module storageModule CRUD operations\n events-module eventsModule CRUD operations\n entity-type-provision entityTypeProvision 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, + 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/public/cli/commands/agent-module.ts b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts similarity index 77% rename from sdk/constructive-cli/src/public/cli/commands/agent-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/agent-module.ts index 941e5aa2ae..7abb30aff0 100644 --- a/sdk/constructive-cli/src/public/cli/commands/agent-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts @@ -25,18 +25,27 @@ const fieldSchema: FieldSchema = { taskTableId: 'uuid', promptsTableId: 'uuid', knowledgeTableId: 'uuid', + planTableId: 'uuid', + skillTableId: 'uuid', threadTableName: 'string', messageTableName: 'string', taskTableName: 'string', promptsTableName: 'string', knowledgeTableName: 'string', + planTableName: 'string', + skillTableName: 'string', hasKnowledge: 'boolean', + hasPlans: 'boolean', + hasSkills: 'boolean', apiName: 'string', - membershipType: 'int', - key: 'string', + privateApiName: 'string', + scope: 'string', + databaseOwned: 'boolean', + prefix: 'string', entityTableId: 'uuid', policies: 'json', knowledgeConfig: 'json', + skillsConfig: 'json', knowledgePolicies: 'json', provisions: 'json', }; @@ -100,18 +109,27 @@ async function handleList(argv: Partial>, _prompter: Inq taskTableId: true, promptsTableId: true, knowledgeTableId: true, + planTableId: true, + skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, + planTableName: true, + skillTableName: true, hasKnowledge: true, + hasPlans: true, + hasSkills: true, apiName: true, - membershipType: true, - key: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, + skillsConfig: true, knowledgePolicies: true, provisions: true, }; @@ -143,18 +161,27 @@ async function handleFindFirst(argv: Partial>, _prompter taskTableId: true, promptsTableId: true, knowledgeTableId: true, + planTableId: true, + skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, + planTableName: true, + skillTableName: true, hasKnowledge: true, + hasPlans: true, + hasSkills: true, apiName: true, - membershipType: true, - key: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, + skillsConfig: true, knowledgePolicies: true, provisions: true, }; @@ -198,18 +225,27 @@ async function handleGet(argv: Partial>, prompter: Inqui taskTableId: true, promptsTableId: true, knowledgeTableId: true, + planTableId: true, + skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, + planTableName: true, + skillTableName: true, hasKnowledge: true, + hasPlans: true, + hasSkills: true, apiName: true, - membershipType: true, - key: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, + skillsConfig: true, knowledgePolicies: true, provisions: true, }, @@ -282,6 +318,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'planTableId', + message: 'planTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'skillTableId', + message: 'skillTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'threadTableName', @@ -317,6 +367,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'planTableName', + message: 'planTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'skillTableName', + message: 'skillTableName', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasKnowledge', @@ -324,6 +388,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasPlans', + message: 'hasPlans', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasSkills', + message: 'hasSkills', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -333,15 +411,29 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -366,6 +458,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'skillsConfig', + message: 'skillsConfig', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'knowledgePolicies', @@ -398,18 +497,27 @@ async function handleCreate(argv: Partial>, prompter: In taskTableId: cleanedData.taskTableId, promptsTableId: cleanedData.promptsTableId, knowledgeTableId: cleanedData.knowledgeTableId, + planTableId: cleanedData.planTableId, + skillTableId: cleanedData.skillTableId, threadTableName: cleanedData.threadTableName, messageTableName: cleanedData.messageTableName, taskTableName: cleanedData.taskTableName, promptsTableName: cleanedData.promptsTableName, knowledgeTableName: cleanedData.knowledgeTableName, + planTableName: cleanedData.planTableName, + skillTableName: cleanedData.skillTableName, hasKnowledge: cleanedData.hasKnowledge, + hasPlans: cleanedData.hasPlans, + hasSkills: cleanedData.hasSkills, apiName: cleanedData.apiName, - membershipType: cleanedData.membershipType, - key: cleanedData.key, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, knowledgeConfig: cleanedData.knowledgeConfig, + skillsConfig: cleanedData.skillsConfig, knowledgePolicies: cleanedData.knowledgePolicies, provisions: cleanedData.provisions, }, @@ -423,18 +531,27 @@ async function handleCreate(argv: Partial>, prompter: In taskTableId: true, promptsTableId: true, knowledgeTableId: true, + planTableId: true, + skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, + planTableName: true, + skillTableName: true, hasKnowledge: true, + hasPlans: true, + hasSkills: true, apiName: true, - membershipType: true, - key: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, + skillsConfig: true, knowledgePolicies: true, provisions: true, }, @@ -513,6 +630,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'planTableId', + message: 'planTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'skillTableId', + message: 'skillTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'threadTableName', @@ -548,6 +679,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'planTableName', + message: 'planTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'skillTableName', + message: 'skillTableName', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'hasKnowledge', @@ -555,6 +700,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasPlans', + message: 'hasPlans', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasSkills', + message: 'hasSkills', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -564,15 +723,29 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -597,6 +770,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'skillsConfig', + message: 'skillsConfig', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'knowledgePolicies', @@ -629,18 +809,27 @@ async function handleUpdate(argv: Partial>, prompter: In taskTableId: cleanedData.taskTableId, promptsTableId: cleanedData.promptsTableId, knowledgeTableId: cleanedData.knowledgeTableId, + planTableId: cleanedData.planTableId, + skillTableId: cleanedData.skillTableId, threadTableName: cleanedData.threadTableName, messageTableName: cleanedData.messageTableName, taskTableName: cleanedData.taskTableName, promptsTableName: cleanedData.promptsTableName, knowledgeTableName: cleanedData.knowledgeTableName, + planTableName: cleanedData.planTableName, + skillTableName: cleanedData.skillTableName, hasKnowledge: cleanedData.hasKnowledge, + hasPlans: cleanedData.hasPlans, + hasSkills: cleanedData.hasSkills, apiName: cleanedData.apiName, - membershipType: cleanedData.membershipType, - key: cleanedData.key, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, knowledgeConfig: cleanedData.knowledgeConfig, + skillsConfig: cleanedData.skillsConfig, knowledgePolicies: cleanedData.knowledgePolicies, provisions: cleanedData.provisions, }, @@ -654,18 +843,27 @@ async function handleUpdate(argv: Partial>, prompter: In taskTableId: true, promptsTableId: true, knowledgeTableId: true, + planTableId: true, + skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, + planTableName: true, + skillTableName: true, hasKnowledge: true, + hasPlans: true, + hasSkills: true, apiName: true, - membershipType: true, - key: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, + skillsConfig: true, knowledgePolicies: true, provisions: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/auth.ts b/sdk/constructive-cli/src/modules/cli/commands/auth.ts new file mode 100644 index 0000000000..c731ba27ca --- /dev/null +++ b/sdk/constructive-cli/src/modules/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/public/cli/commands/billing-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts similarity index 88% rename from sdk/constructive-cli/src/public/cli/commands/billing-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/billing-module.ts index 2a5359058d..afc9c1e66c 100644 --- a/sdk/constructive-cli/src/public/cli/commands/billing-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts @@ -32,8 +32,12 @@ const fieldSchema: FieldSchema = { meterCreditsTableName: 'string', meterSourcesTableId: 'uuid', meterSourcesTableName: 'string', + meterDefaultsTableId: 'uuid', + meterDefaultsTableName: 'string', recordUsageFunction: 'string', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nbilling-module \n\nCommands:\n list List billingModule records\n find-first Find first matching billingModule record\n get Get a billingModule by ID\n create Create a new billingModule\n update Update an existing billingModule\n delete Delete a billingModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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,8 +106,12 @@ async function handleList(argv: Partial>, _prompter: Inq meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, + meterDefaultsTableId: true, + meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -140,8 +148,12 @@ async function handleFindFirst(argv: Partial>, _prompter meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, + meterDefaultsTableId: true, + meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -190,8 +202,12 @@ async function handleGet(argv: Partial>, prompter: Inqui meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, + meterDefaultsTableId: true, + meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -311,6 +327,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'meterDefaultsTableId', + message: 'meterDefaultsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterDefaultsTableName', + message: 'meterDefaultsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordUsageFunction', @@ -325,6 +355,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -350,8 +394,12 @@ async function handleCreate(argv: Partial>, prompter: In meterCreditsTableName: cleanedData.meterCreditsTableName, meterSourcesTableId: cleanedData.meterSourcesTableId, meterSourcesTableName: cleanedData.meterSourcesTableName, + meterDefaultsTableId: cleanedData.meterDefaultsTableId, + meterDefaultsTableName: cleanedData.meterDefaultsTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -370,8 +418,12 @@ async function handleCreate(argv: Partial>, prompter: In meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, + meterDefaultsTableId: true, + meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -497,6 +549,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'meterDefaultsTableId', + message: 'meterDefaultsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterDefaultsTableName', + message: 'meterDefaultsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordUsageFunction', @@ -511,6 +577,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as BillingModulePatch; @@ -536,8 +616,12 @@ async function handleUpdate(argv: Partial>, prompter: In meterCreditsTableName: cleanedData.meterCreditsTableName, meterSourcesTableId: cleanedData.meterSourcesTableId, meterSourcesTableName: cleanedData.meterSourcesTableName, + meterDefaultsTableId: cleanedData.meterDefaultsTableId, + meterDefaultsTableName: cleanedData.meterDefaultsTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -556,8 +640,12 @@ async function handleUpdate(argv: Partial>, prompter: In meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, + meterDefaultsTableId: true, + meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/billing-provider-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts similarity index 94% rename from sdk/constructive-cli/src/public/cli/commands/billing-provider-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts index ba632b0812..9e71da89a4 100644 --- a/sdk/constructive-cli/src/public/cli/commands/billing-provider-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-provider-module.ts @@ -36,6 +36,8 @@ const fieldSchema: FieldSchema = { billingWebhookEventsTableName: 'string', processBillingEventFunction: 'string', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nbilling-provider-module \n\nCommands:\n list List billingProviderModule records\n find-first Find first matching billingProviderModule record\n get Get a billingProviderModule by ID\n create Create a new billingProviderModule\n update Update an existing billingProviderModule\n delete Delete a billingProviderModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -108,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -152,6 +156,8 @@ async function handleFindFirst(argv: Partial>, _prompter billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -208,6 +214,8 @@ async function handleGet(argv: Partial>, prompter: Inqui billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -355,6 +363,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -384,6 +406,8 @@ async function handleCreate(argv: Partial>, prompter: In billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName, processBillingEventFunction: cleanedData.processBillingEventFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -406,6 +430,8 @@ async function handleCreate(argv: Partial>, prompter: In billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -559,6 +585,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as BillingProviderModulePatch; @@ -588,6 +628,8 @@ async function handleUpdate(argv: Partial>, prompter: In billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName, processBillingEventFunction: cleanedData.processBillingEventFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -610,6 +652,8 @@ async function handleUpdate(argv: Partial>, prompter: In billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/blueprint-construction.ts b/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/blueprint-construction.ts rename to sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/blueprint-template.ts b/sdk/constructive-cli/src/modules/cli/commands/blueprint-template.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/blueprint-template.ts rename to sdk/constructive-cli/src/modules/cli/commands/blueprint-template.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/blueprint.ts b/sdk/constructive-cli/src/modules/cli/commands/blueprint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/blueprint.ts rename to sdk/constructive-cli/src/modules/cli/commands/blueprint.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/compute-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/compute-log-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts index f2b5518a28..f4459aa5a7 100644 --- a/sdk/constructive-cli/src/public/cli/commands/compute-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts @@ -31,6 +31,8 @@ const fieldSchema: FieldSchema = { actorFkTableId: 'uuid', entityFkTableId: 'uuid', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\ncompute-log-module \n\nCommands:\n list List computeLogModule records\n find-first Find first matching computeLogModule record\n get Get a computeLogModule by ID\n create Create a new computeLogModule\n update Update an existing computeLogModule\n delete Delete a computeLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -98,6 +100,8 @@ async function handleList(argv: Partial>, _prompter: Inq actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -133,6 +137,8 @@ async function handleFindFirst(argv: Partial>, _prompter actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -180,6 +186,8 @@ async function handleGet(argv: Partial>, prompter: Inqui actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -292,6 +300,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -316,6 +338,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -333,6 +357,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -451,6 +477,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ComputeLogModulePatch; @@ -475,6 +515,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -492,6 +534,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts new file mode 100644 index 0000000000..80e860b6ad --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts @@ -0,0 +1,567 @@ +/** + * CLI commands for ConfigSecretsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateConfigSecretsModuleInput, + ConfigSecretsModulePatch, + ConfigSecretsModuleSelect, + ConfigSecretsModuleFilter, + ConfigSecretsModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + tableId: 'uuid', + configDefinitionsTableId: 'uuid', + tableName: 'string', + apiName: 'string', + privateApiName: 'string', + scope: 'string', + databaseOwned: 'boolean', + prefix: 'string', + entityTableId: 'uuid', + 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'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + tableId: true, + configDefinitionsTableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + hasConfig: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + ConfigSecretsModuleSelect, + ConfigSecretsModuleFilter, + ConfigSecretsModuleOrderBy + > & { + select: ConfigSecretsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.configSecretsModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + tableId: true, + configDefinitionsTableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + hasConfig: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + ConfigSecretsModuleSelect, + ConfigSecretsModuleFilter, + ConfigSecretsModuleOrderBy + > & { + select: ConfigSecretsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.configSecretsModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.configSecretsModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableId: true, + configDefinitionsTableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + hasConfig: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + 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: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'configDefinitionsTableId', + message: 'configDefinitionsTableId', + 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: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', + 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, + }, + { + type: 'boolean', + name: 'hasConfig', + message: 'hasConfig', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateConfigSecretsModuleInput['configSecretsModule']; + const client = getClient(); + const result = await client.configSecretsModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + tableId: cleanedData.tableId, + configDefinitionsTableId: cleanedData.configDefinitionsTableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + hasConfig: cleanedData.hasConfig, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableId: true, + configDefinitionsTableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + hasConfig: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async 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: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'configDefinitionsTableId', + message: 'configDefinitionsTableId', + 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: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', + 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, + }, + { + type: 'boolean', + name: 'hasConfig', + message: 'hasConfig', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsModulePatch; + const client = getClient(); + const result = await client.configSecretsModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + tableId: cleanedData.tableId, + configDefinitionsTableId: cleanedData.configDefinitionsTableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + hasConfig: cleanedData.hasConfig, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableId: true, + configDefinitionsTableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + databaseOwned: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + hasConfig: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.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.configSecretsModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-org-module.ts similarity index 90% rename from sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/config-secrets-org-module.ts index eb43db4d25..7d2b87da72 100644 --- a/sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-org-module.ts @@ -21,6 +21,8 @@ const fieldSchema: FieldSchema = { schemaId: 'uuid', tableId: 'uuid', tableName: 'string', + apiName: 'string', + privateApiName: 'string', }; 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'; @@ -78,6 +80,8 @@ async function handleList(argv: Partial>, _prompter: Inq schemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -107,6 +111,8 @@ async function handleFindFirst(argv: Partial>, _prompter schemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -148,6 +154,8 @@ async function handleGet(argv: Partial>, prompter: Inqui schemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -190,6 +198,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -204,6 +226,8 @@ async function handleCreate(argv: Partial>, prompter: In schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -211,6 +235,8 @@ async function handleCreate(argv: Partial>, prompter: In schemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -259,6 +285,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsOrgModulePatch; @@ -273,6 +313,8 @@ async function handleUpdate(argv: Partial>, prompter: In schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -280,6 +322,8 @@ async function handleUpdate(argv: Partial>, prompter: In schemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-user-module.ts similarity index 90% rename from sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/config-secrets-user-module.ts index a806adc9f2..4c0fbaf8ab 100644 --- a/sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-user-module.ts @@ -22,6 +22,8 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', tableName: 'string', configDefinitionsTableId: 'uuid', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nconfig-secrets-user-module \n\nCommands:\n list List configSecretsUserModule records\n find-first Find first matching configSecretsUserModule record\n get Get a configSecretsUserModule by ID\n create Create a new configSecretsUserModule\n update Update an existing configSecretsUserModule\n delete Delete a configSecretsUserModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -80,6 +82,8 @@ async function handleList(argv: Partial>, _prompter: Inq tableId: true, tableName: true, configDefinitionsTableId: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -110,6 +114,8 @@ async function handleFindFirst(argv: Partial>, _prompter tableId: true, tableName: true, configDefinitionsTableId: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -152,6 +158,8 @@ async function handleGet(argv: Partial>, prompter: Inqui tableId: true, tableName: true, configDefinitionsTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -201,6 +209,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -216,6 +238,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: cleanedData.tableId, tableName: cleanedData.tableName, configDefinitionsTableId: cleanedData.configDefinitionsTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -224,6 +248,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: true, tableName: true, configDefinitionsTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -279,6 +305,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsUserModulePatch; @@ -294,6 +334,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: cleanedData.tableId, tableName: cleanedData.tableName, configDefinitionsTableId: cleanedData.configDefinitionsTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -302,6 +344,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: true, tableName: true, configDefinitionsTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/connected-accounts-module.ts b/sdk/constructive-cli/src/modules/cli/commands/connected-accounts-module.ts similarity index 91% rename from sdk/constructive-cli/src/public/cli/commands/connected-accounts-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/connected-accounts-module.ts index 07adcffb99..b30a31c14a 100644 --- a/sdk/constructive-cli/src/public/cli/commands/connected-accounts-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/connected-accounts-module.ts @@ -23,6 +23,8 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', ownerTableId: 'uuid', tableName: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nconnected-accounts-module \n\nCommands:\n list List connectedAccountsModule records\n find-first Find first matching connectedAccountsModule record\n get Get a connectedAccountsModule by ID\n create Create a new connectedAccountsModule\n update Update an existing connectedAccountsModule\n delete Delete a connectedAccountsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -82,6 +84,8 @@ async function handleList(argv: Partial>, _prompter: Inq tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -113,6 +117,8 @@ async function handleFindFirst(argv: Partial>, _prompter tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -156,6 +162,8 @@ async function handleGet(argv: Partial>, prompter: Inqui tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -211,6 +219,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'tableName', required: true, }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -227,6 +249,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -236,6 +260,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -297,6 +323,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'tableName', required: false, }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ConnectedAccountsModulePatch; @@ -313,6 +353,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -322,6 +364,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts b/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts rename to sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts diff --git a/sdk/constructive-cli/src/modules/cli/commands/context.ts b/sdk/constructive-cli/src/modules/cli/commands/context.ts new file mode 100644 index 0000000000..52d12c666b --- /dev/null +++ b/sdk/constructive-cli/src/modules/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/public/cli/commands/copy-template-to-blueprint.ts b/sdk/constructive-cli/src/modules/cli/commands/copy-template-to-blueprint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/copy-template-to-blueprint.ts rename to sdk/constructive-cli/src/modules/cli/commands/copy-template-to-blueprint.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/crypto-addresses-module.ts b/sdk/constructive-cli/src/modules/cli/commands/crypto-addresses-module.ts similarity index 91% rename from sdk/constructive-cli/src/public/cli/commands/crypto-addresses-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/crypto-addresses-module.ts index 7ae7ba2caa..773b6e5f16 100644 --- a/sdk/constructive-cli/src/public/cli/commands/crypto-addresses-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/crypto-addresses-module.ts @@ -24,6 +24,8 @@ const fieldSchema: FieldSchema = { ownerTableId: 'uuid', tableName: 'string', cryptoNetwork: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\ncrypto-addresses-module \n\nCommands:\n list List cryptoAddressesModule records\n find-first Find first matching cryptoAddressesModule record\n get Get a cryptoAddressesModule by ID\n create Create a new cryptoAddressesModule\n update Update an existing cryptoAddressesModule\n delete Delete a cryptoAddressesModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -84,6 +86,8 @@ async function handleList(argv: Partial>, _prompter: Inq ownerTableId: true, tableName: true, cryptoNetwork: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -116,6 +120,8 @@ async function handleFindFirst(argv: Partial>, _prompter ownerTableId: true, tableName: true, cryptoNetwork: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -160,6 +166,8 @@ async function handleGet(argv: Partial>, prompter: Inqui ownerTableId: true, tableName: true, cryptoNetwork: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -222,6 +230,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -239,6 +261,8 @@ async function handleCreate(argv: Partial>, prompter: In ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, cryptoNetwork: cleanedData.cryptoNetwork, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -249,6 +273,8 @@ async function handleCreate(argv: Partial>, prompter: In ownerTableId: true, tableName: true, cryptoNetwork: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -317,6 +343,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CryptoAddressesModulePatch; @@ -334,6 +374,8 @@ async function handleUpdate(argv: Partial>, prompter: In ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, cryptoNetwork: cleanedData.cryptoNetwork, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -344,6 +386,8 @@ async function handleUpdate(argv: Partial>, prompter: In ownerTableId: true, tableName: true, cryptoNetwork: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/crypto-auth-module.ts b/sdk/constructive-cli/src/modules/cli/commands/crypto-auth-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/crypto-auth-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/crypto-auth-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/database-provision-module.ts b/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts similarity index 99% rename from sdk/constructive-cli/src/public/cli/commands/database-provision-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts index 4fbd83d992..9fc93dc9b6 100644 --- a/sdk/constructive-cli/src/public/cli/commands/database-provision-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts @@ -21,7 +21,7 @@ const fieldSchema: FieldSchema = { ownerId: 'uuid', subdomain: 'string', domain: 'string', - modules: 'string', + modules: 'json', options: 'json', bootstrapUser: 'boolean', status: 'string', @@ -225,7 +225,7 @@ async function handleCreate(argv: Partial>, prompter: In required: true, }, { - type: 'text', + type: 'json', name: 'modules', message: 'modules', required: false, @@ -357,7 +357,7 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, }, { - type: 'text', + type: 'json', name: 'modules', message: 'modules', required: false, diff --git a/sdk/constructive-cli/src/public/cli/commands/db-usage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts similarity index 94% rename from sdk/constructive-cli/src/public/cli/commands/db-usage-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts index 826a1e92d3..c20430eb8e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/db-usage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts @@ -33,6 +33,8 @@ const fieldSchema: FieldSchema = { premake: 'int', scope: 'string', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\ndb-usage-module \n\nCommands:\n list List dbUsageModule records\n find-first Find first matching dbUsageModule record\n get Get a dbUsageModule by ID\n create Create a new dbUsageModule\n update Update an existing dbUsageModule\n delete Delete a dbUsageModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -102,6 +104,8 @@ async function handleList(argv: Partial>, _prompter: Inq premake: true, scope: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -139,6 +143,8 @@ async function handleFindFirst(argv: Partial>, _prompter premake: true, scope: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -188,6 +194,8 @@ async function handleGet(argv: Partial>, prompter: Inqui premake: true, scope: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -314,6 +322,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -340,6 +362,8 @@ async function handleCreate(argv: Partial>, prompter: In premake: cleanedData.premake, scope: cleanedData.scope, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -359,6 +383,8 @@ async function handleCreate(argv: Partial>, prompter: In premake: true, scope: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -491,6 +517,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as DbUsageModulePatch; @@ -517,6 +557,8 @@ async function handleUpdate(argv: Partial>, prompter: In premake: cleanedData.premake, scope: cleanedData.scope, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -536,6 +578,8 @@ async function handleUpdate(argv: Partial>, prompter: In premake: true, scope: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/default-ids-module.ts b/sdk/constructive-cli/src/modules/cli/commands/default-ids-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/default-ids-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/default-ids-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/denormalized-table-field.ts b/sdk/constructive-cli/src/modules/cli/commands/denormalized-table-field.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/denormalized-table-field.ts rename to sdk/constructive-cli/src/modules/cli/commands/denormalized-table-field.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/devices-module.ts b/sdk/constructive-cli/src/modules/cli/commands/devices-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/devices-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/devices-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/emails-module.ts b/sdk/constructive-cli/src/modules/cli/commands/emails-module.ts similarity index 90% rename from sdk/constructive-cli/src/public/cli/commands/emails-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/emails-module.ts index 9adb7f35d4..4f1dd82af0 100644 --- a/sdk/constructive-cli/src/public/cli/commands/emails-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/emails-module.ts @@ -23,6 +23,8 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', ownerTableId: 'uuid', tableName: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nemails-module \n\nCommands:\n list List emailsModule records\n find-first Find first matching emailsModule record\n get Get a emailsModule by ID\n create Create a new emailsModule\n update Update an existing emailsModule\n delete Delete a emailsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -82,6 +84,8 @@ async function handleList(argv: Partial>, _prompter: Inq tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -109,6 +113,8 @@ async function handleFindFirst(argv: Partial>, _prompter tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -148,6 +154,8 @@ async function handleGet(argv: Partial>, prompter: Inqui tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -203,6 +211,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'tableName', required: true, }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -219,6 +241,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -228,6 +252,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -289,6 +315,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'tableName', required: false, }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as EmailsModulePatch; @@ -305,6 +345,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -314,6 +356,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/entity-type-provision.ts b/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/entity-type-provision.ts rename to sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/events-module.ts b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/events-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/events-module.ts index d2ed98a3bf..a35b680c33 100644 --- a/sdk/constructive-cli/src/public/cli/commands/events-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts @@ -51,10 +51,13 @@ const fieldSchema: FieldSchema = { interval: 'string', retention: 'string', premake: 'int', + scope: 'string', + databaseOwned: 'boolean', prefix: 'string', - membershipType: 'int', entityTableId: 'uuid', actorTableId: 'uuid', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nevents-module \n\nCommands:\n list List eventsModule records\n find-first Find first matching eventsModule record\n get Get a eventsModule by ID\n create Create a new eventsModule\n update Update an existing eventsModule\n delete Delete a eventsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -142,10 +145,13 @@ async function handleList(argv: Partial>, _prompter: Inq interval: true, retention: true, premake: true, + scope: true, + databaseOwned: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -201,10 +207,13 @@ async function handleFindFirst(argv: Partial>, _prompter interval: true, retention: true, premake: true, + scope: true, + databaseOwned: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -272,10 +281,13 @@ async function handleGet(argv: Partial>, prompter: Inqui interval: true, retention: true, premake: true, + scope: true, + databaseOwned: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -530,16 +542,24 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, }, { type: 'text', @@ -555,6 +575,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -599,10 +633,13 @@ async function handleCreate(argv: Partial>, prompter: In interval: cleanedData.interval, retention: cleanedData.retention, premake: cleanedData.premake, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, prefix: cleanedData.prefix, - membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -640,10 +677,13 @@ async function handleCreate(argv: Partial>, prompter: In interval: true, retention: true, premake: true, + scope: true, + databaseOwned: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -904,16 +944,24 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'prefix', + message: 'prefix', required: false, + skipPrompt: true, }, { type: 'text', @@ -929,6 +977,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as EventsModulePatch; @@ -973,10 +1035,13 @@ async function handleUpdate(argv: Partial>, prompter: In interval: cleanedData.interval, retention: cleanedData.retention, premake: cleanedData.premake, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, prefix: cleanedData.prefix, - membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -1014,10 +1079,13 @@ async function handleUpdate(argv: Partial>, prompter: In interval: true, retention: true, premake: true, + scope: true, + databaseOwned: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/function-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts similarity index 96% rename from sdk/constructive-cli/src/public/cli/commands/function-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/function-module.ts index 2f7789cd80..298b892447 100644 --- a/sdk/constructive-cli/src/public/cli/commands/function-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts @@ -37,9 +37,9 @@ const fieldSchema: FieldSchema = { configRequirementsTableName: 'string', apiName: 'string', privateApiName: 'string', - membershipType: 'int', + scope: 'string', + databaseOwned: 'boolean', prefix: 'string', - key: 'string', entityTableId: 'uuid', policies: 'json', provisions: 'json', @@ -116,9 +116,9 @@ async function handleList(argv: Partial>, _prompter: Inq configRequirementsTableName: true, apiName: true, privateApiName: true, - membershipType: true, + scope: true, + databaseOwned: true, prefix: true, - key: true, entityTableId: true, policies: true, provisions: true, @@ -163,9 +163,9 @@ async function handleFindFirst(argv: Partial>, _prompter configRequirementsTableName: true, apiName: true, privateApiName: true, - membershipType: true, + scope: true, + databaseOwned: true, prefix: true, - key: true, entityTableId: true, policies: true, provisions: true, @@ -222,9 +222,9 @@ async function handleGet(argv: Partial>, prompter: Inqui configRequirementsTableName: true, apiName: true, privateApiName: true, - membershipType: true, + scope: true, + databaseOwned: true, prefix: true, - key: true, entityTableId: true, policies: true, provisions: true, @@ -384,22 +384,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', required: false, skipPrompt: true, }, { - type: 'text', - name: 'prefix', - message: 'prefix', + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -454,9 +454,9 @@ async function handleCreate(argv: Partial>, prompter: In configRequirementsTableName: cleanedData.configRequirementsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, prefix: cleanedData.prefix, - key: cleanedData.key, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, @@ -483,9 +483,9 @@ async function handleCreate(argv: Partial>, prompter: In configRequirementsTableName: true, apiName: true, privateApiName: true, - membershipType: true, + scope: true, + databaseOwned: true, prefix: true, - key: true, entityTableId: true, policies: true, provisions: true, @@ -651,22 +651,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', required: false, skipPrompt: true, }, { - type: 'text', - name: 'prefix', - message: 'prefix', + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -721,9 +721,9 @@ async function handleUpdate(argv: Partial>, prompter: In configRequirementsTableName: cleanedData.configRequirementsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, prefix: cleanedData.prefix, - key: cleanedData.key, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, @@ -750,9 +750,9 @@ async function handleUpdate(argv: Partial>, prompter: In configRequirementsTableName: true, apiName: true, privateApiName: true, - membershipType: true, + scope: true, + databaseOwned: true, prefix: true, - key: true, entityTableId: true, policies: true, provisions: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/graph-module.ts b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts similarity index 95% rename from sdk/constructive-cli/src/public/cli/commands/graph-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/graph-module.ts index 6a451dcb73..287d60a28e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/graph-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts @@ -22,6 +22,7 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', publicSchemaName: 'string', privateSchemaName: 'string', + scope: 'string', prefix: 'string', merkleStoreModuleId: 'uuid', graphsTableId: 'uuid', @@ -29,8 +30,7 @@ const fieldSchema: FieldSchema = { outputsTableId: 'uuid', apiName: 'string', privateApiName: 'string', - scopeField: 'string', - membershipType: 'int', + databaseOwned: 'boolean', entityTableId: 'uuid', policies: 'json', provisions: 'json', @@ -93,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, + scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, @@ -100,8 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq outputsTableId: true, apiName: true, privateApiName: true, - scopeField: true, - membershipType: true, + databaseOwned: true, entityTableId: true, policies: true, provisions: true, @@ -132,6 +132,7 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, + scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, @@ -139,8 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter outputsTableId: true, apiName: true, privateApiName: true, - scopeField: true, - membershipType: true, + databaseOwned: true, entityTableId: true, policies: true, provisions: true, @@ -183,6 +183,7 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, + scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, @@ -190,8 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui outputsTableId: true, apiName: true, privateApiName: true, - scopeField: true, - membershipType: true, + databaseOwned: true, entityTableId: true, policies: true, provisions: true, @@ -245,6 +245,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -294,16 +301,9 @@ async function handleCreate(argv: Partial>, prompter: In skipPrompt: true, }, { - type: 'text', - name: 'scopeField', - message: 'scopeField', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'membershipType', - message: 'membershipType', + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, @@ -343,6 +343,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, + scope: cleanedData.scope, prefix: cleanedData.prefix, merkleStoreModuleId: cleanedData.merkleStoreModuleId, graphsTableId: cleanedData.graphsTableId, @@ -350,8 +351,7 @@ async function handleCreate(argv: Partial>, prompter: In outputsTableId: cleanedData.outputsTableId, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - scopeField: cleanedData.scopeField, - membershipType: cleanedData.membershipType, + databaseOwned: cleanedData.databaseOwned, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, @@ -363,6 +363,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, + scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, @@ -370,8 +371,7 @@ async function handleCreate(argv: Partial>, prompter: In outputsTableId: true, apiName: true, privateApiName: true, - scopeField: true, - membershipType: true, + databaseOwned: true, entityTableId: true, policies: true, provisions: true, @@ -431,6 +431,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -480,16 +487,9 @@ async function handleUpdate(argv: Partial>, prompter: In skipPrompt: true, }, { - type: 'text', - name: 'scopeField', - message: 'scopeField', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'membershipType', - message: 'membershipType', + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, @@ -529,6 +529,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, + scope: cleanedData.scope, prefix: cleanedData.prefix, merkleStoreModuleId: cleanedData.merkleStoreModuleId, graphsTableId: cleanedData.graphsTableId, @@ -536,8 +537,7 @@ async function handleUpdate(argv: Partial>, prompter: In outputsTableId: cleanedData.outputsTableId, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - scopeField: cleanedData.scopeField, - membershipType: cleanedData.membershipType, + databaseOwned: cleanedData.databaseOwned, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, @@ -549,6 +549,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, + scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, @@ -556,8 +557,7 @@ async function handleUpdate(argv: Partial>, prompter: In outputsTableId: true, apiName: true, privateApiName: true, - scopeField: true, - membershipType: true, + databaseOwned: true, entityTableId: true, policies: true, provisions: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/hierarchy-module.ts b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts similarity index 97% rename from sdk/constructive-cli/src/public/cli/commands/hierarchy-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts index f3f22ed0ae..e82465d05e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/hierarchy-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts @@ -28,6 +28,7 @@ const fieldSchema: FieldSchema = { chartEdgeGrantsTableName: 'string', entityTableId: 'uuid', usersTableId: 'uuid', + scope: 'string', prefix: 'string', privateSchemaName: 'string', sprtTableName: 'string', @@ -100,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, + scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, @@ -140,6 +142,7 @@ async function handleFindFirst(argv: Partial>, _prompter chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, + scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, @@ -192,6 +195,7 @@ async function handleGet(argv: Partial>, prompter: Inqui chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, + scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, @@ -289,6 +293,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'usersTableId', required: true, }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -359,6 +370,7 @@ async function handleCreate(argv: Partial>, prompter: In chartEdgeGrantsTableName: cleanedData.chartEdgeGrantsTableName, entityTableId: cleanedData.entityTableId, usersTableId: cleanedData.usersTableId, + scope: cleanedData.scope, prefix: cleanedData.prefix, privateSchemaName: cleanedData.privateSchemaName, sprtTableName: cleanedData.sprtTableName, @@ -380,6 +392,7 @@ async function handleCreate(argv: Partial>, prompter: In chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, + scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, @@ -483,6 +496,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'usersTableId', required: false, }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -553,6 +573,7 @@ async function handleUpdate(argv: Partial>, prompter: In chartEdgeGrantsTableName: cleanedData.chartEdgeGrantsTableName, entityTableId: cleanedData.entityTableId, usersTableId: cleanedData.usersTableId, + scope: cleanedData.scope, prefix: cleanedData.prefix, privateSchemaName: cleanedData.privateSchemaName, sprtTableName: cleanedData.sprtTableName, @@ -574,6 +595,7 @@ async function handleUpdate(argv: Partial>, prompter: In chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, + scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/i-18-n-module.ts b/sdk/constructive-cli/src/modules/cli/commands/i-18-n-module.ts new file mode 100644 index 0000000000..b2209d4d24 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/i-18-n-module.ts @@ -0,0 +1,358 @@ +/** + * CLI commands for I18NModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateI18NModuleInput, + I18NModulePatch, + I18NModuleSelect, + I18NModuleFilter, + I18NModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + settingsTableId: 'uuid', + apiName: 'string', + privateApiName: 'string', +}; +const usage = + '\ni-18-n-module \n\nCommands:\n list List i18NModule records\n find-first Find first matching i18NModule record\n get Get a i18NModule by ID\n create Create a new i18NModule\n update Update an existing i18NModule\n delete Delete a i18NModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + settingsTableId: true, + apiName: true, + privateApiName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: I18NModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.i18NModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + settingsTableId: true, + apiName: true, + privateApiName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: I18NModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.i18NModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.i18NModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + settingsTableId: true, + apiName: true, + privateApiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + 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: 'settingsTableId', + message: 'settingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateI18NModuleInput['i18NModule']; + const client = getClient(); + const result = await client.i18NModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + settingsTableId: cleanedData.settingsTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + settingsTableId: true, + apiName: true, + privateApiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async 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: 'settingsTableId', + message: 'settingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as I18NModulePatch; + const client = getClient(); + const result = await client.i18NModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + settingsTableId: cleanedData.settingsTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + settingsTableId: true, + apiName: true, + privateApiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.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.i18NModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/identity-providers-module.ts b/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts similarity index 90% rename from sdk/constructive-cli/src/public/cli/commands/identity-providers-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts index 5e79d48942..0ec7e8a65e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/identity-providers-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts @@ -22,6 +22,8 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', tableId: 'uuid', tableName: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nidentity-providers-module \n\nCommands:\n list List identityProvidersModule records\n find-first Find first matching identityProvidersModule record\n get Get a identityProvidersModule by ID\n create Create a new identityProvidersModule\n update Update an existing identityProvidersModule\n delete Delete a identityProvidersModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -80,6 +82,8 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -110,6 +114,8 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -152,6 +158,8 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -201,6 +209,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -216,6 +238,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -224,6 +248,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -279,6 +305,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as IdentityProvidersModulePatch; @@ -294,6 +334,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -302,6 +344,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, tableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts index 6180988f65..64d476f718 100644 --- a/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts @@ -31,6 +31,8 @@ const fieldSchema: FieldSchema = { actorFkTableId: 'uuid', entityFkTableId: 'uuid', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\ninference-log-module \n\nCommands:\n list List inferenceLogModule records\n find-first Find first matching inferenceLogModule record\n get Get a inferenceLogModule by ID\n create Create a new inferenceLogModule\n update Update an existing inferenceLogModule\n delete Delete a inferenceLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -98,6 +100,8 @@ async function handleList(argv: Partial>, _prompter: Inq actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -137,6 +141,8 @@ async function handleFindFirst(argv: Partial>, _prompter actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -188,6 +194,8 @@ async function handleGet(argv: Partial>, prompter: Inqui actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -300,6 +308,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -324,6 +346,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -341,6 +365,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -459,6 +485,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as InferenceLogModulePatch; @@ -483,6 +523,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -500,6 +542,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/invites-module.ts b/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts similarity index 91% rename from sdk/constructive-cli/src/public/cli/commands/invites-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/invites-module.ts index efdd0e4886..8ea5b8ed79 100644 --- a/sdk/constructive-cli/src/public/cli/commands/invites-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts @@ -27,9 +27,11 @@ const fieldSchema: FieldSchema = { invitesTableName: 'string', claimedInvitesTableName: 'string', submitInviteCodeFunction: 'string', + scope: 'string', prefix: 'string', - membershipType: 'int', entityTableId: 'uuid', + apiName: 'string', + privateApiName: 'string', }; const usage = '\ninvites-module \n\nCommands:\n list List invitesModule records\n find-first Find first matching invitesModule record\n get Get a invitesModule by ID\n create Create a new invitesModule\n update Update an existing invitesModule\n delete Delete a invitesModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -93,9 +95,11 @@ async function handleList(argv: Partial>, _prompter: Inq invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -127,9 +131,11 @@ async function handleFindFirst(argv: Partial>, _prompter invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -173,9 +179,11 @@ async function handleGet(argv: Partial>, prompter: Inqui invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -262,16 +270,17 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', required: false, skipPrompt: true, }, { type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, }, { type: 'text', @@ -280,6 +289,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -300,9 +323,11 @@ async function handleCreate(argv: Partial>, prompter: In invitesTableName: cleanedData.invitesTableName, claimedInvitesTableName: cleanedData.claimedInvitesTableName, submitInviteCodeFunction: cleanedData.submitInviteCodeFunction, + scope: cleanedData.scope, prefix: cleanedData.prefix, - membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -316,9 +341,11 @@ async function handleCreate(argv: Partial>, prompter: In invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -411,16 +438,17 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', required: false, skipPrompt: true, }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'prefix', + message: 'prefix', required: false, + skipPrompt: true, }, { type: 'text', @@ -429,6 +457,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as InvitesModulePatch; @@ -449,9 +491,11 @@ async function handleUpdate(argv: Partial>, prompter: In invitesTableName: cleanedData.invitesTableName, claimedInvitesTableName: cleanedData.claimedInvitesTableName, submitInviteCodeFunction: cleanedData.submitInviteCodeFunction, + scope: cleanedData.scope, prefix: cleanedData.prefix, - membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -465,9 +509,11 @@ async function handleUpdate(argv: Partial>, prompter: In invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/limits-module.ts b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts similarity index 94% rename from sdk/constructive-cli/src/public/cli/commands/limits-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/limits-module.ts index a641b9a7c4..c8b894bd39 100644 --- a/sdk/constructive-cli/src/public/cli/commands/limits-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts @@ -44,10 +44,12 @@ const fieldSchema: FieldSchema = { limitWarningStateTableId: 'uuid', limitCheckSoftFunction: 'string', limitAggregateCheckSoftFunction: 'string', + scope: 'string', prefix: 'string', - membershipType: 'int', entityTableId: 'uuid', actorTableId: 'uuid', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nlimits-module \n\nCommands:\n list List limitsModule records\n find-first Find first matching limitsModule record\n get Get a limitsModule by ID\n create Create a new limitsModule\n update Update an existing limitsModule\n delete Delete a limitsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -128,10 +130,12 @@ async function handleList(argv: Partial>, _prompter: Inq limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -180,10 +184,12 @@ async function handleFindFirst(argv: Partial>, _prompter limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -244,10 +250,12 @@ async function handleGet(argv: Partial>, prompter: Inqui limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -453,16 +461,17 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', required: false, skipPrompt: true, }, { type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, }, { type: 'text', @@ -478,6 +487,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -515,10 +538,12 @@ async function handleCreate(argv: Partial>, prompter: In limitWarningStateTableId: cleanedData.limitWarningStateTableId, limitCheckSoftFunction: cleanedData.limitCheckSoftFunction, limitAggregateCheckSoftFunction: cleanedData.limitAggregateCheckSoftFunction, + scope: cleanedData.scope, prefix: cleanedData.prefix, - membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -549,10 +574,12 @@ async function handleCreate(argv: Partial>, prompter: In limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -764,16 +791,17 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'scope', + message: 'scope', required: false, skipPrompt: true, }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'prefix', + message: 'prefix', required: false, + skipPrompt: true, }, { type: 'text', @@ -789,6 +817,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as LimitsModulePatch; @@ -826,10 +868,12 @@ async function handleUpdate(argv: Partial>, prompter: In limitWarningStateTableId: cleanedData.limitWarningStateTableId, limitCheckSoftFunction: cleanedData.limitCheckSoftFunction, limitAggregateCheckSoftFunction: cleanedData.limitAggregateCheckSoftFunction, + scope: cleanedData.scope, prefix: cleanedData.prefix, - membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -860,10 +904,12 @@ async function handleUpdate(argv: Partial>, prompter: In limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, + scope: true, prefix: true, - membershipType: true, entityTableId: true, actorTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/membership-types-module.ts b/sdk/constructive-cli/src/modules/cli/commands/membership-types-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/membership-types-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/membership-types-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/memberships-module.ts b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts similarity index 95% rename from sdk/constructive-cli/src/public/cli/commands/memberships-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts index faeee8cba5..66e048dc4e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/memberships-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts @@ -40,10 +40,10 @@ const fieldSchema: FieldSchema = { adminGrantsTableName: 'string', ownerGrantsTableId: 'uuid', ownerGrantsTableName: 'string', - membershipType: 'int', + scope: 'string', + prefix: 'string', entityTableId: 'uuid', entityTableOwnerId: 'uuid', - prefix: 'string', getOrgFn: 'string', actorMaskCheck: 'string', actorPermCheck: 'string', @@ -51,6 +51,8 @@ const fieldSchema: FieldSchema = { entityIdsByPerm: 'string', entityIdsFunction: 'string', memberProfilesTableId: 'uuid', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nmemberships-module \n\nCommands:\n list List membershipsModule records\n find-first Find first matching membershipsModule record\n get Get a membershipsModule by ID\n create Create a new membershipsModule\n update Update an existing membershipsModule\n delete Delete a membershipsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -127,10 +129,10 @@ async function handleList(argv: Partial>, _prompter: Inq adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, entityTableOwnerId: true, - prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, @@ -138,6 +140,8 @@ async function handleList(argv: Partial>, _prompter: Inq entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -182,10 +186,10 @@ async function handleFindFirst(argv: Partial>, _prompter adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, entityTableOwnerId: true, - prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, @@ -193,6 +197,8 @@ async function handleFindFirst(argv: Partial>, _prompter entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -249,10 +255,10 @@ async function handleGet(argv: Partial>, prompter: Inqui adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, entityTableOwnerId: true, - prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, @@ -260,6 +266,8 @@ async function handleGet(argv: Partial>, prompter: Inqui entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -437,28 +445,29 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, }, { type: 'text', - name: 'entityTableId', - message: 'entityTableId', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, { type: 'text', - name: 'entityTableOwnerId', - message: 'entityTableOwnerId', + name: 'entityTableId', + message: 'entityTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'entityTableOwnerId', + message: 'entityTableOwnerId', required: false, skipPrompt: true, }, @@ -511,6 +520,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -544,10 +567,10 @@ async function handleCreate(argv: Partial>, prompter: In adminGrantsTableName: cleanedData.adminGrantsTableName, ownerGrantsTableId: cleanedData.ownerGrantsTableId, ownerGrantsTableName: cleanedData.ownerGrantsTableName, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, entityTableOwnerId: cleanedData.entityTableOwnerId, - prefix: cleanedData.prefix, getOrgFn: cleanedData.getOrgFn, actorMaskCheck: cleanedData.actorMaskCheck, actorPermCheck: cleanedData.actorPermCheck, @@ -555,6 +578,8 @@ async function handleCreate(argv: Partial>, prompter: In entityIdsByPerm: cleanedData.entityIdsByPerm, entityIdsFunction: cleanedData.entityIdsFunction, memberProfilesTableId: cleanedData.memberProfilesTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -581,10 +606,10 @@ async function handleCreate(argv: Partial>, prompter: In adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, entityTableOwnerId: true, - prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, @@ -592,6 +617,8 @@ async function handleCreate(argv: Partial>, prompter: In entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -775,28 +802,29 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', required: false, + skipPrompt: true, }, { type: 'text', - name: 'entityTableId', - message: 'entityTableId', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, { type: 'text', - name: 'entityTableOwnerId', - message: 'entityTableOwnerId', + name: 'entityTableId', + message: 'entityTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'entityTableOwnerId', + message: 'entityTableOwnerId', required: false, skipPrompt: true, }, @@ -849,6 +877,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as MembershipsModulePatch; @@ -882,10 +924,10 @@ async function handleUpdate(argv: Partial>, prompter: In adminGrantsTableName: cleanedData.adminGrantsTableName, ownerGrantsTableId: cleanedData.ownerGrantsTableId, ownerGrantsTableName: cleanedData.ownerGrantsTableName, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, entityTableOwnerId: cleanedData.entityTableOwnerId, - prefix: cleanedData.prefix, getOrgFn: cleanedData.getOrgFn, actorMaskCheck: cleanedData.actorMaskCheck, actorPermCheck: cleanedData.actorPermCheck, @@ -893,6 +935,8 @@ async function handleUpdate(argv: Partial>, prompter: In entityIdsByPerm: cleanedData.entityIdsByPerm, entityIdsFunction: cleanedData.entityIdsFunction, memberProfilesTableId: cleanedData.memberProfilesTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -919,10 +963,10 @@ async function handleUpdate(argv: Partial>, prompter: In adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, entityTableOwnerId: true, - prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, @@ -930,6 +974,8 @@ async function handleUpdate(argv: Partial>, prompter: In entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/merkle-store-module.ts b/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts similarity index 97% rename from sdk/constructive-cli/src/public/cli/commands/merkle-store-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts index 1d50d5568d..62990e66b9 100644 --- a/sdk/constructive-cli/src/public/cli/commands/merkle-store-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts @@ -29,7 +29,7 @@ const fieldSchema: FieldSchema = { prefix: 'string', apiName: 'string', privateApiName: 'string', - scopeField: 'string', + databaseOwned: 'boolean', createdAt: 'string', }; const usage = @@ -96,7 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq prefix: true, apiName: true, privateApiName: true, - scopeField: true, + databaseOwned: true, createdAt: true, }; const findManyArgs = parseFindManyArgs< @@ -131,7 +131,7 @@ async function handleFindFirst(argv: Partial>, _prompter prefix: true, apiName: true, privateApiName: true, - scopeField: true, + databaseOwned: true, createdAt: true, }; const findFirstArgs = parseFindFirstArgs< @@ -178,7 +178,7 @@ async function handleGet(argv: Partial>, prompter: Inqui prefix: true, apiName: true, privateApiName: true, - scopeField: true, + databaseOwned: true, createdAt: true, }, }) @@ -279,9 +279,9 @@ async function handleCreate(argv: Partial>, prompter: In skipPrompt: true, }, { - type: 'text', - name: 'scopeField', - message: 'scopeField', + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, @@ -307,7 +307,7 @@ async function handleCreate(argv: Partial>, prompter: In prefix: cleanedData.prefix, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - scopeField: cleanedData.scopeField, + databaseOwned: cleanedData.databaseOwned, }, select: { id: true, @@ -323,7 +323,7 @@ async function handleCreate(argv: Partial>, prompter: In prefix: true, apiName: true, privateApiName: true, - scopeField: true, + databaseOwned: true, createdAt: true, }, }) @@ -430,9 +430,9 @@ async function handleUpdate(argv: Partial>, prompter: In skipPrompt: true, }, { - type: 'text', - name: 'scopeField', - message: 'scopeField', + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, @@ -458,7 +458,7 @@ async function handleUpdate(argv: Partial>, prompter: In prefix: cleanedData.prefix, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - scopeField: cleanedData.scopeField, + databaseOwned: cleanedData.databaseOwned, }, select: { id: true, @@ -474,7 +474,7 @@ async function handleUpdate(argv: Partial>, prompter: In prefix: true, apiName: true, privateApiName: true, - scopeField: true, + databaseOwned: true, createdAt: true, }, }) diff --git a/sdk/constructive-cli/src/public/cli/commands/namespace-module.ts b/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/namespace-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts index f8b72a3f00..c3158e8742 100644 --- a/sdk/constructive-cli/src/public/cli/commands/namespace-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts @@ -28,8 +28,9 @@ const fieldSchema: FieldSchema = { namespaceEventsTableName: 'string', apiName: 'string', privateApiName: 'string', - membershipType: 'int', - key: 'string', + scope: 'string', + databaseOwned: 'boolean', + prefix: 'string', entityTableId: 'uuid', policies: 'json', provisions: 'json', @@ -97,8 +98,9 @@ async function handleList(argv: Partial>, _prompter: Inq namespaceEventsTableName: true, apiName: true, privateApiName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, provisions: true, @@ -134,8 +136,9 @@ async function handleFindFirst(argv: Partial>, _prompter namespaceEventsTableName: true, apiName: true, privateApiName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, provisions: true, @@ -183,8 +186,9 @@ async function handleGet(argv: Partial>, prompter: Inqui namespaceEventsTableName: true, apiName: true, privateApiName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, provisions: true, @@ -281,15 +285,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -335,8 +346,9 @@ async function handleCreate(argv: Partial>, prompter: In namespaceEventsTableName: cleanedData.namespaceEventsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - membershipType: cleanedData.membershipType, - key: cleanedData.key, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, @@ -354,8 +366,9 @@ async function handleCreate(argv: Partial>, prompter: In namespaceEventsTableName: true, apiName: true, privateApiName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, provisions: true, @@ -458,15 +471,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -512,8 +532,9 @@ async function handleUpdate(argv: Partial>, prompter: In namespaceEventsTableName: cleanedData.namespaceEventsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, - membershipType: cleanedData.membershipType, - key: cleanedData.key, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, @@ -531,8 +552,9 @@ async function handleUpdate(argv: Partial>, prompter: In namespaceEventsTableName: true, apiName: true, privateApiName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, entityTableId: true, policies: true, provisions: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/notifications-module.ts b/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts similarity index 94% rename from sdk/constructive-cli/src/public/cli/commands/notifications-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts index 8f48e08cae..a6fa80dba3 100644 --- a/sdk/constructive-cli/src/public/cli/commands/notifications-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts @@ -33,6 +33,8 @@ const fieldSchema: FieldSchema = { hasSettingsExtension: 'boolean', hasDigestMetadata: 'boolean', hasSubscriptions: 'boolean', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nnotifications-module \n\nCommands:\n list List notificationsModule records\n find-first Find first matching notificationsModule record\n get Get a notificationsModule by ID\n create Create a new notificationsModule\n update Update an existing notificationsModule\n delete Delete a notificationsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 +104,8 @@ async function handleList(argv: Partial>, _prompter: Inq hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -143,6 +147,8 @@ async function handleFindFirst(argv: Partial>, _prompter hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -196,6 +202,8 @@ async function handleGet(argv: Partial>, prompter: Inqui hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -322,6 +330,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -348,6 +370,8 @@ async function handleCreate(argv: Partial>, prompter: In hasSettingsExtension: cleanedData.hasSettingsExtension, hasDigestMetadata: cleanedData.hasDigestMetadata, hasSubscriptions: cleanedData.hasSubscriptions, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -367,6 +391,8 @@ async function handleCreate(argv: Partial>, prompter: In hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -499,6 +525,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as NotificationsModulePatch; @@ -525,6 +565,8 @@ async function handleUpdate(argv: Partial>, prompter: In hasSettingsExtension: cleanedData.hasSettingsExtension, hasDigestMetadata: cleanedData.hasDigestMetadata, hasSubscriptions: cleanedData.hasSubscriptions, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -544,6 +586,8 @@ async function handleUpdate(argv: Partial>, prompter: In hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/permissions-module.ts b/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts similarity index 91% rename from sdk/constructive-cli/src/public/cli/commands/permissions-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts index d0ad6b1b75..c0111cfde5 100644 --- a/sdk/constructive-cli/src/public/cli/commands/permissions-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts @@ -25,14 +25,16 @@ const fieldSchema: FieldSchema = { defaultTableId: 'uuid', defaultTableName: 'string', bitlen: 'int', - membershipType: 'int', + scope: 'string', + prefix: 'string', entityTableId: 'uuid', actorTableId: 'uuid', - prefix: 'string', getPaddedMask: 'string', getMask: 'string', getByMask: 'string', getMaskByName: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\npermissions-module \n\nCommands:\n list List permissionsModule records\n find-first Find first matching permissionsModule record\n get Get a permissionsModule by ID\n create Create a new permissionsModule\n update Update an existing permissionsModule\n delete Delete a permissionsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -94,14 +96,16 @@ async function handleList(argv: Partial>, _prompter: Inq defaultTableId: true, defaultTableName: true, bitlen: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, - prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -131,14 +135,16 @@ async function handleFindFirst(argv: Partial>, _prompter defaultTableId: true, defaultTableName: true, bitlen: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, - prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -180,14 +186,16 @@ async function handleGet(argv: Partial>, prompter: Inqui defaultTableId: true, defaultTableName: true, bitlen: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, - prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -260,28 +268,29 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, }, { type: 'text', - name: 'entityTableId', - message: 'entityTableId', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, { type: 'text', - name: 'actorTableId', - message: 'actorTableId', + name: 'entityTableId', + message: 'entityTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'actorTableId', + message: 'actorTableId', required: false, skipPrompt: true, }, @@ -313,6 +322,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -331,14 +354,16 @@ async function handleCreate(argv: Partial>, prompter: In defaultTableId: cleanedData.defaultTableId, defaultTableName: cleanedData.defaultTableName, bitlen: cleanedData.bitlen, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, - prefix: cleanedData.prefix, getPaddedMask: cleanedData.getPaddedMask, getMask: cleanedData.getMask, getByMask: cleanedData.getByMask, getMaskByName: cleanedData.getMaskByName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -350,14 +375,16 @@ async function handleCreate(argv: Partial>, prompter: In defaultTableId: true, defaultTableName: true, bitlen: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, - prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -436,28 +463,29 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', required: false, + skipPrompt: true, }, { type: 'text', - name: 'entityTableId', - message: 'entityTableId', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, { type: 'text', - name: 'actorTableId', - message: 'actorTableId', + name: 'entityTableId', + message: 'entityTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'actorTableId', + message: 'actorTableId', required: false, skipPrompt: true, }, @@ -489,6 +517,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PermissionsModulePatch; @@ -507,14 +549,16 @@ async function handleUpdate(argv: Partial>, prompter: In defaultTableId: cleanedData.defaultTableId, defaultTableName: cleanedData.defaultTableName, bitlen: cleanedData.bitlen, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, - prefix: cleanedData.prefix, getPaddedMask: cleanedData.getPaddedMask, getMask: cleanedData.getMask, getByMask: cleanedData.getByMask, getMaskByName: cleanedData.getMaskByName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -526,14 +570,16 @@ async function handleUpdate(argv: Partial>, prompter: In defaultTableId: true, defaultTableName: true, bitlen: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, - prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/phone-numbers-module.ts b/sdk/constructive-cli/src/modules/cli/commands/phone-numbers-module.ts similarity index 91% rename from sdk/constructive-cli/src/public/cli/commands/phone-numbers-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/phone-numbers-module.ts index dd922e7f98..801fb95a9d 100644 --- a/sdk/constructive-cli/src/public/cli/commands/phone-numbers-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/phone-numbers-module.ts @@ -23,6 +23,8 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', ownerTableId: 'uuid', tableName: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nphone-numbers-module \n\nCommands:\n list List phoneNumbersModule records\n find-first Find first matching phoneNumbersModule record\n get Get a phoneNumbersModule by ID\n create Create a new phoneNumbersModule\n update Update an existing phoneNumbersModule\n delete Delete a phoneNumbersModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -82,6 +84,8 @@ async function handleList(argv: Partial>, _prompter: Inq tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -113,6 +117,8 @@ async function handleFindFirst(argv: Partial>, _prompter tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -156,6 +162,8 @@ async function handleGet(argv: Partial>, prompter: Inqui tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -211,6 +219,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'tableName', required: true, }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -227,6 +249,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -236,6 +260,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -297,6 +323,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'tableName', required: false, }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PhoneNumbersModulePatch; @@ -313,6 +353,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -322,6 +364,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/plans-module.ts b/sdk/constructive-cli/src/modules/cli/commands/plans-module.ts similarity index 79% rename from sdk/constructive-cli/src/public/cli/commands/plans-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/plans-module.ts index 542c801635..cd2a589d3f 100644 --- a/sdk/constructive-cli/src/public/cli/commands/plans-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/plans-module.ts @@ -26,9 +26,15 @@ const fieldSchema: FieldSchema = { planLimitsTableName: 'string', planPricingTableId: 'uuid', planOverridesTableId: 'uuid', + planMeterLimitsTableId: 'uuid', + planCapsTableId: 'uuid', applyPlanFunction: 'string', applyPlanAggregateFunction: 'string', + applyBillingPlanFunction: 'string', + applyPlanCapsFunction: 'string', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nplans-module \n\nCommands:\n list List plansModule records\n find-first Find first matching plansModule record\n get Get a plansModule by ID\n create Create a new plansModule\n update Update an existing plansModule\n delete Delete a plansModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -91,9 +97,15 @@ async function handleList(argv: Partial>, _prompter: Inq planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, + planMeterLimitsTableId: true, + planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, + applyBillingPlanFunction: true, + applyPlanCapsFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -124,9 +136,15 @@ async function handleFindFirst(argv: Partial>, _prompter planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, + planMeterLimitsTableId: true, + planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, + applyBillingPlanFunction: true, + applyPlanCapsFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -169,9 +187,15 @@ async function handleGet(argv: Partial>, prompter: Inqui 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(); @@ -249,6 +273,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'planMeterLimitsTableId', + message: 'planMeterLimitsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planCapsTableId', + message: 'planCapsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'applyPlanFunction', @@ -263,6 +301,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'applyBillingPlanFunction', + message: 'applyBillingPlanFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'applyPlanCapsFunction', + message: 'applyPlanCapsFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -270,6 +322,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -289,9 +355,15 @@ async function handleCreate(argv: Partial>, prompter: In planLimitsTableName: cleanedData.planLimitsTableName, planPricingTableId: cleanedData.planPricingTableId, planOverridesTableId: cleanedData.planOverridesTableId, + planMeterLimitsTableId: cleanedData.planMeterLimitsTableId, + planCapsTableId: cleanedData.planCapsTableId, applyPlanFunction: cleanedData.applyPlanFunction, applyPlanAggregateFunction: cleanedData.applyPlanAggregateFunction, + applyBillingPlanFunction: cleanedData.applyBillingPlanFunction, + applyPlanCapsFunction: cleanedData.applyPlanCapsFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -304,9 +376,15 @@ async function handleCreate(argv: Partial>, prompter: In 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(); @@ -390,6 +468,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'planMeterLimitsTableId', + message: 'planMeterLimitsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planCapsTableId', + message: 'planCapsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'applyPlanFunction', @@ -404,6 +496,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'applyBillingPlanFunction', + message: 'applyBillingPlanFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'applyPlanCapsFunction', + message: 'applyPlanCapsFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -411,6 +517,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlansModulePatch; @@ -430,9 +550,15 @@ async function handleUpdate(argv: Partial>, prompter: In planLimitsTableName: cleanedData.planLimitsTableName, planPricingTableId: cleanedData.planPricingTableId, planOverridesTableId: cleanedData.planOverridesTableId, + planMeterLimitsTableId: cleanedData.planMeterLimitsTableId, + planCapsTableId: cleanedData.planCapsTableId, applyPlanFunction: cleanedData.applyPlanFunction, applyPlanAggregateFunction: cleanedData.applyPlanAggregateFunction, + applyBillingPlanFunction: cleanedData.applyBillingPlanFunction, + applyPlanCapsFunction: cleanedData.applyPlanCapsFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -445,9 +571,15 @@ async function handleUpdate(argv: Partial>, prompter: In 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(); diff --git a/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/profiles-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts index f132c0bc2a..2136e087ba 100644 --- a/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts @@ -30,12 +30,14 @@ const fieldSchema: FieldSchema = { profileDefinitionGrantsTableName: 'string', profileTemplatesTableId: 'uuid', profileTemplatesTableName: 'string', - membershipType: 'int', + scope: 'string', + prefix: 'string', entityTableId: 'uuid', actorTableId: 'uuid', permissionsTableId: 'uuid', membershipsTableId: 'uuid', - prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nprofiles-module \n\nCommands:\n list List profilesModule records\n find-first Find first matching profilesModule record\n get Get a profilesModule by ID\n create Create a new profilesModule\n update Update an existing profilesModule\n delete Delete a profilesModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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,12 +104,14 @@ async function handleList(argv: Partial>, _prompter: Inq profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, - prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -142,12 +146,14 @@ async function handleFindFirst(argv: Partial>, _prompter profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, - prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -194,12 +200,14 @@ async function handleGet(argv: Partial>, prompter: Inqui profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, - prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -307,9 +315,17 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, }, { type: 'text', @@ -341,8 +357,15 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', required: false, skipPrompt: true, }, @@ -369,12 +392,14 @@ async function handleCreate(argv: Partial>, prompter: In profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, profileTemplatesTableId: cleanedData.profileTemplatesTableId, profileTemplatesTableName: cleanedData.profileTemplatesTableName, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, permissionsTableId: cleanedData.permissionsTableId, membershipsTableId: cleanedData.membershipsTableId, - prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -391,12 +416,14 @@ async function handleCreate(argv: Partial>, prompter: In profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, - prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -510,9 +537,17 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', required: false, + skipPrompt: true, }, { type: 'text', @@ -544,8 +579,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'prefix', - message: 'prefix', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', required: false, skipPrompt: true, }, @@ -572,12 +614,14 @@ async function handleUpdate(argv: Partial>, prompter: In profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, profileTemplatesTableId: cleanedData.profileTemplatesTableId, profileTemplatesTableName: cleanedData.profileTemplatesTableName, - membershipType: cleanedData.membershipType, + scope: cleanedData.scope, + prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, permissionsTableId: cleanedData.permissionsTableId, membershipsTableId: cleanedData.membershipsTableId, - prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -594,12 +638,14 @@ async function handleUpdate(argv: Partial>, prompter: In profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, - membershipType: true, + scope: true, + prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, - prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-bucket.ts new file mode 100644 index 0000000000..ecd2e539d5 --- /dev/null +++ b/sdk/constructive-cli/src/modules/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/public/cli/commands/provision-check-constraint.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-check-constraint.ts rename to sdk/constructive-cli/src/modules/cli/commands/provision-check-constraint.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-full-text-search.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-full-text-search.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-full-text-search.ts rename to sdk/constructive-cli/src/modules/cli/commands/provision-full-text-search.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-index.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-index.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-index.ts rename to sdk/constructive-cli/src/modules/cli/commands/provision-index.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-relation.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-relation.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-relation.ts rename to sdk/constructive-cli/src/modules/cli/commands/provision-relation.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-spatial-relation.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-spatial-relation.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-spatial-relation.ts rename to sdk/constructive-cli/src/modules/cli/commands/provision-spatial-relation.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-table.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-table.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-table.ts rename to sdk/constructive-cli/src/modules/cli/commands/provision-table.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-unique-constraint.ts b/sdk/constructive-cli/src/modules/cli/commands/provision-unique-constraint.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/provision-unique-constraint.ts rename to sdk/constructive-cli/src/modules/cli/commands/provision-unique-constraint.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/rate-limit-meters-module.ts b/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/rate-limit-meters-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts index 2385f3461f..83b249154e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/rate-limit-meters-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { rateWindowLimitsTableName: 'string', checkRateLimitFunction: 'string', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nrate-limit-meters-module \n\nCommands:\n list List rateLimitMetersModule records\n find-first Find first matching rateLimitMetersModule record\n get Get a rateLimitMetersModule by ID\n create Create a new rateLimitMetersModule\n update Update an existing rateLimitMetersModule\n delete Delete a rateLimitMetersModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -92,6 +94,8 @@ async function handleList(argv: Partial>, _prompter: Inq rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -128,6 +132,8 @@ async function handleFindFirst(argv: Partial>, _prompter rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -176,6 +182,8 @@ async function handleGet(argv: Partial>, prompter: Inqui rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -267,6 +275,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -288,6 +310,8 @@ async function handleCreate(argv: Partial>, prompter: In rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName, checkRateLimitFunction: cleanedData.checkRateLimitFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -302,6 +326,8 @@ async function handleCreate(argv: Partial>, prompter: In rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -399,6 +425,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as RateLimitMetersModulePatch; @@ -420,6 +460,8 @@ async function handleUpdate(argv: Partial>, prompter: In rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName, checkRateLimitFunction: cleanedData.checkRateLimitFunction, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -434,6 +476,8 @@ async function handleUpdate(argv: Partial>, prompter: In rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/rate-limits-module.ts b/sdk/constructive-cli/src/modules/cli/commands/rate-limits-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/rate-limits-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/rate-limits-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/realtime-module.ts b/sdk/constructive-cli/src/modules/cli/commands/realtime-module.ts similarity index 92% rename from sdk/constructive-cli/src/public/cli/commands/realtime-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/realtime-module.ts index c22d6b9ecc..7b1c4c51a1 100644 --- a/sdk/constructive-cli/src/public/cli/commands/realtime-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/realtime-module.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { premake: 'int', interval: 'string', notifyChannel: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nrealtime-module \n\nCommands:\n list List realtimeModule records\n find-first Find first matching realtimeModule record\n get Get a realtimeModule by ID\n create Create a new realtimeModule\n update Update an existing realtimeModule\n delete Delete a realtimeModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -92,6 +94,8 @@ async function handleList(argv: Partial>, _prompter: Inq premake: true, interval: true, notifyChannel: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -124,6 +128,8 @@ async function handleFindFirst(argv: Partial>, _prompter premake: true, interval: true, notifyChannel: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -168,6 +174,8 @@ async function handleGet(argv: Partial>, prompter: Inqui premake: true, interval: true, notifyChannel: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -259,6 +267,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -280,6 +302,8 @@ async function handleCreate(argv: Partial>, prompter: In premake: cleanedData.premake, interval: cleanedData.interval, notifyChannel: cleanedData.notifyChannel, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -294,6 +318,8 @@ async function handleCreate(argv: Partial>, prompter: In premake: true, interval: true, notifyChannel: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -391,6 +417,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as RealtimeModulePatch; @@ -412,6 +452,8 @@ async function handleUpdate(argv: Partial>, prompter: In premake: cleanedData.premake, interval: cleanedData.interval, notifyChannel: cleanedData.notifyChannel, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -426,6 +468,8 @@ async function handleUpdate(argv: Partial>, prompter: In premake: true, interval: true, notifyChannel: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/relation-provision.ts b/sdk/constructive-cli/src/modules/cli/commands/relation-provision.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/relation-provision.ts rename to sdk/constructive-cli/src/modules/cli/commands/relation-provision.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/resolve-blueprint-field.ts b/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-field.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/resolve-blueprint-field.ts rename to sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-field.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/resolve-blueprint-table.ts b/sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-table.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/resolve-blueprint-table.ts rename to sdk/constructive-cli/src/modules/cli/commands/resolve-blueprint-table.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/rls-module.ts b/sdk/constructive-cli/src/modules/cli/commands/rls-module.ts similarity index 92% rename from sdk/constructive-cli/src/public/cli/commands/rls-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/rls-module.ts index d0dc6a98b2..59623c48c2 100644 --- a/sdk/constructive-cli/src/public/cli/commands/rls-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/rls-module.ts @@ -27,6 +27,8 @@ const fieldSchema: FieldSchema = { authenticateStrict: 'string', currentRole: 'string', currentRoleId: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nrls-module \n\nCommands:\n list List rlsModule records\n find-first Find first matching rlsModule record\n get Get a rlsModule by ID\n create Create a new rlsModule\n update Update an existing rlsModule\n delete Delete a rlsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -90,6 +92,8 @@ async function handleList(argv: Partial>, _prompter: Inq authenticateStrict: true, currentRole: true, currentRoleId: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -121,6 +125,8 @@ async function handleFindFirst(argv: Partial>, _prompter authenticateStrict: true, currentRole: true, currentRoleId: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -164,6 +170,8 @@ async function handleGet(argv: Partial>, prompter: Inqui authenticateStrict: true, currentRole: true, currentRoleId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -248,6 +256,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateRlsModuleInput['rlsModule']; @@ -265,6 +287,8 @@ async function handleCreate(argv: Partial>, prompter: In authenticateStrict: cleanedData.authenticateStrict, currentRole: cleanedData.currentRole, currentRoleId: cleanedData.currentRoleId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -278,6 +302,8 @@ async function handleCreate(argv: Partial>, prompter: In authenticateStrict: true, currentRole: true, currentRoleId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -368,6 +394,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as RlsModulePatch; @@ -388,6 +428,8 @@ async function handleUpdate(argv: Partial>, prompter: In authenticateStrict: cleanedData.authenticateStrict, currentRole: cleanedData.currentRole, currentRoleId: cleanedData.currentRoleId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -401,6 +443,8 @@ async function handleUpdate(argv: Partial>, prompter: In authenticateStrict: true, currentRole: true, currentRoleId: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/secure-table-provision.ts b/sdk/constructive-cli/src/modules/cli/commands/secure-table-provision.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/secure-table-provision.ts rename to sdk/constructive-cli/src/modules/cli/commands/secure-table-provision.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/session-secrets-module.ts b/sdk/constructive-cli/src/modules/cli/commands/session-secrets-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/session-secrets-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/session-secrets-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/sessions-module.ts b/sdk/constructive-cli/src/modules/cli/commands/sessions-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/sessions-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/sessions-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/storage-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/storage-log-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts index 59efe8934d..4cd5196cc6 100644 --- a/sdk/constructive-cli/src/public/cli/commands/storage-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts @@ -31,6 +31,8 @@ const fieldSchema: FieldSchema = { actorFkTableId: 'uuid', entityFkTableId: 'uuid', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nstorage-log-module \n\nCommands:\n list List storageLogModule records\n find-first Find first matching storageLogModule record\n get Get a storageLogModule by ID\n create Create a new storageLogModule\n update Update an existing storageLogModule\n delete Delete a storageLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -98,6 +100,8 @@ async function handleList(argv: Partial>, _prompter: Inq actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -133,6 +137,8 @@ async function handleFindFirst(argv: Partial>, _prompter actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -180,6 +186,8 @@ async function handleGet(argv: Partial>, prompter: Inqui actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -292,6 +300,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -316,6 +338,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -333,6 +357,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -451,6 +477,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as StorageLogModulePatch; @@ -475,6 +515,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -492,6 +534,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts similarity index 92% rename from sdk/constructive-cli/src/public/cli/commands/storage-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/storage-module.ts index a6b99e94e0..59b90496d9 100644 --- a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -24,8 +24,9 @@ const fieldSchema: FieldSchema = { filesTableId: 'uuid', bucketsTableName: 'string', filesTableName: 'string', - membershipType: 'int', - key: 'string', + scope: 'string', + databaseOwned: 'boolean', + prefix: 'string', policies: 'json', provisions: 'json', entityTableId: 'uuid', @@ -50,6 +51,8 @@ const fieldSchema: FieldSchema = { hasConfirmUpload: 'boolean', confirmUploadDelay: 'string', fileEventsTableId: 'uuid', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nstorage-module \n\nCommands:\n list List storageModule records\n find-first Find first matching storageModule record\n get Get a storageModule by ID\n create Create a new storageModule\n update Update an existing storageModule\n delete Delete a storageModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -110,8 +113,9 @@ async function handleList(argv: Partial>, _prompter: Inq filesTableId: true, bucketsTableName: true, filesTableName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, policies: true, provisions: true, entityTableId: true, @@ -136,6 +140,8 @@ async function handleList(argv: Partial>, _prompter: Inq hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -164,8 +170,9 @@ async function handleFindFirst(argv: Partial>, _prompter filesTableId: true, bucketsTableName: true, filesTableName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, policies: true, provisions: true, entityTableId: true, @@ -190,6 +197,8 @@ async function handleFindFirst(argv: Partial>, _prompter hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -230,8 +239,9 @@ async function handleGet(argv: Partial>, prompter: Inqui filesTableId: true, bucketsTableName: true, filesTableName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, policies: true, provisions: true, entityTableId: true, @@ -256,6 +266,8 @@ async function handleGet(argv: Partial>, prompter: Inqui hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -321,15 +333,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -501,6 +520,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -518,8 +551,9 @@ async function handleCreate(argv: Partial>, prompter: In filesTableId: cleanedData.filesTableId, bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, - membershipType: cleanedData.membershipType, - key: cleanedData.key, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, policies: cleanedData.policies, provisions: cleanedData.provisions, entityTableId: cleanedData.entityTableId, @@ -544,6 +578,8 @@ async function handleCreate(argv: Partial>, prompter: In hasConfirmUpload: cleanedData.hasConfirmUpload, confirmUploadDelay: cleanedData.confirmUploadDelay, fileEventsTableId: cleanedData.fileEventsTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -554,8 +590,9 @@ async function handleCreate(argv: Partial>, prompter: In filesTableId: true, bucketsTableName: true, filesTableName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, policies: true, provisions: true, entityTableId: true, @@ -580,6 +617,8 @@ async function handleCreate(argv: Partial>, prompter: In hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -651,15 +690,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'membershipType', - message: 'membershipType', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'databaseOwned', + message: 'databaseOwned', required: false, skipPrompt: true, }, { type: 'text', - name: 'key', - message: 'key', + name: 'prefix', + message: 'prefix', required: false, skipPrompt: true, }, @@ -831,6 +877,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as StorageModulePatch; @@ -848,8 +908,9 @@ async function handleUpdate(argv: Partial>, prompter: In filesTableId: cleanedData.filesTableId, bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, - membershipType: cleanedData.membershipType, - key: cleanedData.key, + scope: cleanedData.scope, + databaseOwned: cleanedData.databaseOwned, + prefix: cleanedData.prefix, policies: cleanedData.policies, provisions: cleanedData.provisions, entityTableId: cleanedData.entityTableId, @@ -874,6 +935,8 @@ async function handleUpdate(argv: Partial>, prompter: In hasConfirmUpload: cleanedData.hasConfirmUpload, confirmUploadDelay: cleanedData.confirmUploadDelay, fileEventsTableId: cleanedData.fileEventsTableId, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -884,8 +947,9 @@ async function handleUpdate(argv: Partial>, prompter: In filesTableId: true, bucketsTableName: true, filesTableName: true, - membershipType: true, - key: true, + scope: true, + databaseOwned: true, + prefix: true, policies: true, provisions: true, entityTableId: true, @@ -910,6 +974,8 @@ async function handleUpdate(argv: Partial>, prompter: In hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/transfer-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts similarity index 93% rename from sdk/constructive-cli/src/public/cli/commands/transfer-log-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts index bf8c4b1e5d..4215f169ba 100644 --- a/sdk/constructive-cli/src/public/cli/commands/transfer-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts @@ -31,6 +31,8 @@ const fieldSchema: FieldSchema = { actorFkTableId: 'uuid', entityFkTableId: 'uuid', prefix: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\ntransfer-log-module \n\nCommands:\n list List transferLogModule records\n find-first Find first matching transferLogModule record\n get Get a transferLogModule by ID\n create Create a new transferLogModule\n update Update an existing transferLogModule\n delete Delete a transferLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -98,6 +100,8 @@ async function handleList(argv: Partial>, _prompter: Inq actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -133,6 +137,8 @@ async function handleFindFirst(argv: Partial>, _prompter actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -180,6 +186,8 @@ async function handleGet(argv: Partial>, prompter: Inqui actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -292,6 +300,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -316,6 +338,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -333,6 +357,8 @@ async function handleCreate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -451,6 +477,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as TransferLogModulePatch; @@ -475,6 +515,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: cleanedData.actorFkTableId, entityFkTableId: cleanedData.entityFkTableId, prefix: cleanedData.prefix, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -492,6 +534,8 @@ async function handleUpdate(argv: Partial>, prompter: In actorFkTableId: true, entityFkTableId: true, prefix: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/user-auth-module.ts b/sdk/constructive-cli/src/modules/cli/commands/user-auth-module.ts similarity index 95% rename from sdk/constructive-cli/src/public/cli/commands/user-auth-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/user-auth-module.ts index 15734bbc8d..16da8db957 100644 --- a/sdk/constructive-cli/src/public/cli/commands/user-auth-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/user-auth-module.ts @@ -42,6 +42,8 @@ const fieldSchema: FieldSchema = { signInCrossOriginFunction: 'string', requestCrossOriginTokenFunction: 'string', extendTokenExpires: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nuser-auth-module \n\nCommands:\n list List userAuthModule records\n find-first Find first matching userAuthModule record\n get Get a userAuthModule by ID\n create Create a new userAuthModule\n update Update an existing userAuthModule\n delete Delete a userAuthModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -120,6 +122,8 @@ async function handleList(argv: Partial>, _prompter: Inq signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -166,6 +170,8 @@ async function handleFindFirst(argv: Partial>, _prompter signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -224,6 +230,8 @@ async function handleGet(argv: Partial>, prompter: Inqui signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -413,6 +421,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -448,6 +470,8 @@ async function handleCreate(argv: Partial>, prompter: In signInCrossOriginFunction: cleanedData.signInCrossOriginFunction, requestCrossOriginTokenFunction: cleanedData.requestCrossOriginTokenFunction, extendTokenExpires: cleanedData.extendTokenExpires, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -476,6 +500,8 @@ async function handleCreate(argv: Partial>, prompter: In signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -671,6 +697,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as UserAuthModulePatch; @@ -706,6 +746,8 @@ async function handleUpdate(argv: Partial>, prompter: In signInCrossOriginFunction: cleanedData.signInCrossOriginFunction, requestCrossOriginTokenFunction: cleanedData.requestCrossOriginTokenFunction, extendTokenExpires: cleanedData.extendTokenExpires, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -734,6 +776,8 @@ async function handleUpdate(argv: Partial>, prompter: In signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, + apiName: true, + privateApiName: true, }, }) .execute(); 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 new file mode 100644 index 0000000000..2391c27675 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/user-credentials-module.ts @@ -0,0 +1,369 @@ +/** + * CLI commands for UserCredentialsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateUserCredentialsModuleInput, + UserCredentialsModulePatch, + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + tableId: 'uuid', + tableName: 'string', + apiName: 'string', + privateApiName: 'string', +}; +const usage = + '\nuser-credentials-module \n\nCommands:\n list List userCredentialsModule records\n find-first Find first matching userCredentialsModule record\n get Get a userCredentialsModule by ID\n create Create a new userCredentialsModule\n update Update an existing userCredentialsModule\n delete Delete a userCredentialsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + > & { + select: UserCredentialsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userCredentialsModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + > & { + select: UserCredentialsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userCredentialsModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.userCredentialsModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + 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: '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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateUserCredentialsModuleInput['userCredentialsModule']; + const client = getClient(); + const result = await client.userCredentialsModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async 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: '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, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as UserCredentialsModulePatch; + const client = getClient(); + const result = await client.userCredentialsModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.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.userCredentialsModule + .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/user-settings-module.ts b/sdk/constructive-cli/src/modules/cli/commands/user-settings-module.ts new file mode 100644 index 0000000000..24ded7765b --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/user-settings-module.ts @@ -0,0 +1,369 @@ +/** + * CLI commands for UserSettingsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateUserSettingsModuleInput, + UserSettingsModulePatch, + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + tableId: 'uuid', + ownerTableId: 'uuid', + tableName: 'string', + apiName: 'string', +}; +const usage = + '\nuser-settings-module \n\nCommands:\n list List userSettingsModule records\n find-first Find first matching userSettingsModule record\n get Get a userSettingsModule by ID\n create Create a new userSettingsModule\n update Update an existing userSettingsModule\n delete Delete a userSettingsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + tableId: true, + ownerTableId: true, + tableName: true, + apiName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + > & { + select: UserSettingsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSettingsModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + tableId: true, + ownerTableId: true, + tableName: true, + apiName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + > & { + select: UserSettingsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.userSettingsModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.userSettingsModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + ownerTableId: true, + tableName: true, + apiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + 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: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerTableId', + message: 'ownerTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateUserSettingsModuleInput['userSettingsModule']; + const client = getClient(); + const result = await client.userSettingsModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + ownerTableId: cleanedData.ownerTableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + ownerTableId: true, + tableName: true, + apiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async 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: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerTableId', + message: 'ownerTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as UserSettingsModulePatch; + const client = getClient(); + const result = await client.userSettingsModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + ownerTableId: cleanedData.ownerTableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + tableId: true, + ownerTableId: true, + tableName: true, + apiName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.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.userSettingsModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/user-state-module.ts b/sdk/constructive-cli/src/modules/cli/commands/user-state-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/user-state-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/user-state-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/users-module.ts b/sdk/constructive-cli/src/modules/cli/commands/users-module.ts similarity index 90% rename from sdk/constructive-cli/src/public/cli/commands/users-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/users-module.ts index 7c6d4cfffa..69b9903841 100644 --- a/sdk/constructive-cli/src/public/cli/commands/users-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/users-module.ts @@ -23,6 +23,8 @@ const fieldSchema: FieldSchema = { tableName: 'string', typeTableId: 'uuid', typeTableName: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nusers-module \n\nCommands:\n list List usersModule records\n find-first Find first matching usersModule record\n get Get a usersModule by ID\n create Create a new usersModule\n update Update an existing usersModule\n delete Delete a usersModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -82,6 +84,8 @@ async function handleList(argv: Partial>, _prompter: Inq tableName: true, typeTableId: true, typeTableName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -109,6 +113,8 @@ async function handleFindFirst(argv: Partial>, _prompter tableName: true, typeTableId: true, typeTableName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -148,6 +154,8 @@ async function handleGet(argv: Partial>, prompter: Inqui tableName: true, typeTableId: true, typeTableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -204,6 +212,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -220,6 +242,8 @@ async function handleCreate(argv: Partial>, prompter: In tableName: cleanedData.tableName, typeTableId: cleanedData.typeTableId, typeTableName: cleanedData.typeTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -229,6 +253,8 @@ async function handleCreate(argv: Partial>, prompter: In tableName: true, typeTableId: true, typeTableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -291,6 +317,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as UsersModulePatch; @@ -307,6 +347,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableName: cleanedData.tableName, typeTableId: cleanedData.typeTableId, typeTableName: cleanedData.typeTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -316,6 +358,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableName: true, typeTableId: true, typeTableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/webauthn-auth-module.ts b/sdk/constructive-cli/src/modules/cli/commands/webauthn-auth-module.ts similarity index 100% rename from sdk/constructive-cli/src/public/cli/commands/webauthn-auth-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/webauthn-auth-module.ts diff --git a/sdk/constructive-cli/src/public/cli/commands/webauthn-credentials-module.ts b/sdk/constructive-cli/src/modules/cli/commands/webauthn-credentials-module.ts similarity index 91% rename from sdk/constructive-cli/src/public/cli/commands/webauthn-credentials-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/webauthn-credentials-module.ts index bcc7905b11..b662764153 100644 --- a/sdk/constructive-cli/src/public/cli/commands/webauthn-credentials-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/webauthn-credentials-module.ts @@ -23,6 +23,8 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', ownerTableId: 'uuid', tableName: 'string', + apiName: 'string', + privateApiName: 'string', }; const usage = '\nwebauthn-credentials-module \n\nCommands:\n list List webauthnCredentialsModule records\n find-first Find first matching webauthnCredentialsModule record\n get Get a webauthnCredentialsModule by ID\n create Create a new webauthnCredentialsModule\n update Update an existing webauthnCredentialsModule\n delete Delete a webauthnCredentialsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -82,6 +84,8 @@ async function handleList(argv: Partial>, _prompter: Inq tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -113,6 +117,8 @@ async function handleFindFirst(argv: Partial>, _prompter tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -156,6 +162,8 @@ async function handleGet(argv: Partial>, prompter: Inqui tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -212,6 +220,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -228,6 +250,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -237,6 +261,8 @@ async function handleCreate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); @@ -299,6 +325,20 @@ 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', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as WebauthnCredentialsModulePatch; @@ -315,6 +355,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: cleanedData.tableId, ownerTableId: cleanedData.ownerTableId, tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, }, select: { id: true, @@ -324,6 +366,8 @@ async function handleUpdate(argv: Partial>, prompter: In tableId: true, ownerTableId: true, tableName: true, + apiName: true, + privateApiName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/executor.ts b/sdk/constructive-cli/src/modules/cli/executor.ts new file mode 100644 index 0000000000..50d150bce8 --- /dev/null +++ b/sdk/constructive-cli/src/modules/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/modules/cli/index.ts b/sdk/constructive-cli/src/modules/cli/index.ts new file mode 100644 index 0000000000..9ca839a9ee --- /dev/null +++ b/sdk/constructive-cli/src/modules/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/modules/cli/utils.ts b/sdk/constructive-cli/src/modules/cli/utils.ts new file mode 100644 index 0000000000..78a7defb6f --- /dev/null +++ b/sdk/constructive-cli/src/modules/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/modules/index.ts b/sdk/constructive-cli/src/modules/index.ts new file mode 100644 index 0000000000..df67cba476 --- /dev/null +++ b/sdk/constructive-cli/src/modules/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/modules/orm/README.md b/sdk/constructive-cli/src/modules/orm/README.md new file mode 100644 index 0000000000..ee91d16d18 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/README.md @@ -0,0 +1,2763 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `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 | +| `identityProvidersModule` | 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 | +| `cryptoAddressesModule` | findMany, findOne, create, update, delete | +| `denormalizedTableField` | findMany, findOne, create, update, delete | +| `rlsModule` | findMany, findOne, create, update, delete | +| `blueprint` | findMany, findOne, create, update, delete | +| `blueprintTemplate` | findMany, findOne, create, update, delete | +| `blueprintConstruction` | findMany, findOne, create, update, delete | +| `cryptoAuthModule` | findMany, findOne, create, update, delete | +| `rateLimitMetersModule` | findMany, findOne, create, update, delete | +| `sessionsModule` | findMany, findOne, create, update, delete | +| `merkleStoreModule` | findMany, findOne, create, update, delete | +| `graphModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | +| `configSecretsModule` | findMany, findOne, create, update, delete | +| `invitesModule` | findMany, findOne, create, update, delete | +| `databaseProvisionModule` | findMany, findOne, create, update, delete | +| `realtimeModule` | findMany, findOne, create, update, delete | +| `webauthnAuthModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | +| `computeLogModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | +| `storageLogModule` | findMany, findOne, create, update, delete | +| `transferLogModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | +| `notificationsModule` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | +| `hierarchyModule` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | +| `billingProviderModule` | findMany, findOne, create, update, delete | +| `profilesModule` | findMany, findOne, create, update, delete | +| `permissionsModule` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | +| `functionModule` | findMany, findOne, create, update, delete | +| `userAuthModule` | findMany, findOne, create, update, delete | +| `agentModule` | findMany, findOne, create, update, delete | +| `limitsModule` | findMany, findOne, create, update, delete | +| `membershipsModule` | findMany, findOne, create, update, delete | +| `storageModule` | findMany, findOne, create, update, delete | +| `eventsModule` | findMany, findOne, create, update, delete | +| `entityTypeProvision` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.defaultIdsModule` + +CRUD operations for DefaultIdsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all defaultIdsModule records +const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); + +// Create +const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipTypesModule` + +CRUD operations for MembershipTypesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all membershipTypesModule records +const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `sessionsTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all sessionSecretsModule records +const items = await db.sessionSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); + +// Get one by id +const item = await db.sessionSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); + +// Create +const created = await db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | Yes | + +**Operations:** + +```typescript +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); + +// Get one by id +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); + +// Create +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.i18NModule` + +CRUD operations for I18NModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `settingsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all i18NModule records +const items = await db.i18NModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.i18NModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.i18NModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.i18NModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userCredentialsModule` + +CRUD operations for UserCredentialsModule 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 userCredentialsModule records +const items = await db.userCredentialsModule.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.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.userCredentialsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userSettingsModule` + +CRUD operations for UserSettingsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | 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(); + +// 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(); + +// Create +const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.configSecretsUserModule` + +CRUD operations for ConfigSecretsUserModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | 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(); + +// 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(); + +// Create +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', 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.identityProvidersModule` + +CRUD operations for IdentityProvidersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, 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.connectedAccountsModule` + +CRUD operations for ConnectedAccountsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all connectedAccountsModule records +const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailsModule` + +CRUD operations for EmailsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all emailsModule records +const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.phoneNumbersModule` + +CRUD operations for PhoneNumbersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all phoneNumbersModule records +const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitsModule` + +CRUD operations for RateLimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `rateLimitSettingsTableId` | UUID | Yes | +| `ipRateLimitsTableId` | UUID | Yes | +| `rateLimitsTableId` | UUID | Yes | +| `rateLimitSettingsTable` | String | Yes | +| `ipRateLimitsTable` | String | Yes | +| `rateLimitsTable` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitsModule records +const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Get one by id +const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Create +const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.usersModule` + +CRUD operations for UsersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `typeTableId` | UUID | Yes | +| `typeTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all usersModule records +const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.webauthnCredentialsModule` + +CRUD operations for WebauthnCredentialsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all webauthnCredentialsModule records +const items = await db.webauthnCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.webauthnCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAddressesModule` + +CRUD operations for CryptoAddressesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `cryptoNetwork` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAddressesModule records +const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.denormalizedTableField` + +CRUD operations for DenormalizedTableField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `setIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `refIds` | UUID | Yes | +| `useUpdates` | Boolean | Yes | +| `updateDefaults` | Boolean | Yes | +| `funcName` | String | Yes | +| `funcOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all denormalizedTableField records +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Get one by id +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Create +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +``` + +### `db.rlsModule` + +CRUD operations for RlsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rlsModule records +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprint` + +CRUD operations for Blueprint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `definition` | JSON | Yes | +| `templateId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprint records +const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintTemplate` + +CRUD operations for BlueprintTemplate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `version` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `ownerId` | UUID | Yes | +| `visibility` | String | Yes | +| `categories` | String | Yes | +| `tags` | String | Yes | +| `definition` | JSON | Yes | +| `definitionSchemaVersion` | String | Yes | +| `source` | String | Yes | +| `complexity` | String | Yes | +| `copyCount` | Int | Yes | +| `forkCount` | Int | Yes | +| `forkedFromId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprintTemplate records +const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintConstruction` + +CRUD operations for BlueprintConstruction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `blueprintId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `status` | String | Yes | +| `errorDetails` | String | Yes | +| `tableMap` | JSON | Yes | +| `constructedDefinition` | JSON | Yes | +| `constructedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprintConstruction records +const items = await db.blueprintConstruction.findMany({ select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprintConstruction.findOne({ id: '', select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprintConstruction.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAuthModule` + +CRUD operations for CryptoAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `addressesTableId` | UUID | Yes | +| `userField` | String | Yes | +| `cryptoNetwork` | String | Yes | +| `signInRequestChallenge` | String | Yes | +| `signInRecordFailure` | String | Yes | +| `signUpWithKey` | String | Yes | +| `signInWithChallenge` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAuthModule records +const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); + +// Get one by id +const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); + +// Create +const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitMetersModule` + +CRUD operations for RateLimitMetersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `rateLimitStateTableId` | UUID | Yes | +| `rateLimitStateTableName` | String | Yes | +| `rateLimitOverridesTableId` | UUID | Yes | +| `rateLimitOverridesTableName` | String | Yes | +| `rateWindowLimitsTableId` | UUID | Yes | +| `rateWindowLimitsTableName` | String | Yes | +| `checkRateLimitFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitMetersModule records +const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.sessionsModule` + +CRUD operations for SessionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `authSettingsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `sessionsDefaultExpiration` | Interval | Yes | +| `sessionsTable` | String | Yes | +| `sessionCredentialsTable` | String | Yes | +| `authSettingsTable` | String | Yes | + +**Operations:** + +```typescript +// List all sessionsModule records +const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Get one by id +const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Create +const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.merkleStoreModule` + +CRUD operations for MerkleStoreModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `objectTableId` | UUID | Yes | +| `storeTableId` | UUID | Yes | +| `commitTableId` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `databaseOwned` | Boolean | 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, databaseOwned: 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, databaseOwned: true, createdAt: true } }).execute(); + +// Create +const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', databaseOwned: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.graphModule` + +CRUD operations for GraphModule 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 | +| `executionsTableId` | UUID | Yes | +| `outputsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `createdAt` | 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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: 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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); + +// Create +const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', databaseOwned: '', entityTableId: '', policies: '', provisions: '' }, 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.secureTableProvision` + +CRUD operations for SecureTableProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `nodes` | JSON | Yes | +| `useRls` | Boolean | Yes | +| `fields` | JSON | Yes | +| `grants` | JSON | Yes | +| `policies` | JSON | Yes | +| `outFields` | UUID | Yes | + +**Operations:** + +```typescript +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); + +// Get one by id +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); + +// Create +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.configSecretsModule` + +CRUD operations for ConfigSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | 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, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); + +// Get one by id +const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); + +// Create +const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.invitesModule` + +CRUD operations for InvitesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseProvisionModule` + +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 | +| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseProvisionModule records +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Get one by id +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Create +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.realtimeModule` + +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.webauthnAuthModule` + +CRUD operations for WebauthnAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `credentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionSecretsTableId` | UUID | Yes | +| `authSettingsTableId` | UUID | Yes | +| `rpId` | String | Yes | +| `rpName` | String | Yes | +| `originAllowlist` | String | Yes | +| `attestationType` | String | Yes | +| `requireUserVerification` | Boolean | Yes | +| `residentKey` | String | Yes | +| `challengeExpiry` | Interval | Yes | + +**Operations:** + +```typescript +// List all webauthnAuthModule records +const items = await db.webauthnAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); + +// Get one by id +const item = await db.webauthnAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); + +// Create +const created = await db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceModule` + +CRUD operations for NamespaceModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `namespacesTableId` | UUID | Yes | +| `namespaceEventsTableId` | UUID | Yes | +| `namespacesTableName` | String | Yes | +| `namespaceEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.computeLogModule` + +CRUD operations for ComputeLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.inferenceLogModule` + +CRUD operations for InferenceLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `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, 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.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.storageLogModule` + +CRUD operations for StorageLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, 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, 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.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', 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(); + +// Delete +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.transferLogModule` + +CRUD operations for TransferLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, 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, 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.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', 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(); + +// Delete +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbUsageModule` + +CRUD operations for DbUsageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `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, 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, 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', 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.notificationsModule` + +CRUD operations for NotificationsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | 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 | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.plansModule` + +CRUD operations for PlansModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 | + +**Operations:** + +```typescript +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.hierarchyModule` + +CRUD operations for HierarchyModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `chartEdgesTableId` | UUID | Yes | +| `chartEdgesTableName` | String | Yes | +| `hierarchySprtTableId` | UUID | Yes | +| `hierarchySprtTableName` | String | Yes | +| `chartEdgeGrantsTableId` | UUID | Yes | +| `chartEdgeGrantsTableName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `privateSchemaName` | String | Yes | +| `sprtTableName` | String | Yes | +| `rebuildHierarchyFunction` | String | Yes | +| `getSubordinatesFunction` | String | Yes | +| `getManagersFunction` | String | Yes | +| `isManagerOfFunction` | String | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```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, 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, 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: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.billingModule` + +CRUD operations for BillingModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `meterDefaultsTableId` | UUID | Yes | +| `meterDefaultsTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.billingProviderModule` + +CRUD operations for BillingProviderModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `provider` | String | Yes | +| `productsTableId` | UUID | Yes | +| `pricesTableId` | UUID | Yes | +| `subscriptionsTableId` | UUID | Yes | +| `billingCustomersTableId` | UUID | Yes | +| `billingCustomersTableName` | String | Yes | +| `billingProductsTableId` | UUID | Yes | +| `billingProductsTableName` | String | Yes | +| `billingPricesTableId` | UUID | Yes | +| `billingPricesTableName` | String | Yes | +| `billingSubscriptionsTableId` | UUID | Yes | +| `billingSubscriptionsTableName` | String | Yes | +| `billingWebhookEventsTableId` | UUID | Yes | +| `billingWebhookEventsTableName` | String | Yes | +| `processBillingEventFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all billingProviderModule records +const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.profilesModule` + +CRUD operations for ProfilesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `profilePermissionsTableId` | UUID | Yes | +| `profilePermissionsTableName` | String | Yes | +| `profileGrantsTableId` | UUID | Yes | +| `profileGrantsTableName` | String | Yes | +| `profileDefinitionGrantsTableId` | UUID | Yes | +| `profileDefinitionGrantsTableName` | String | Yes | +| `profileTemplatesTableId` | UUID | Yes | +| `profileTemplatesTableName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `membershipsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all profilesModule records +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', 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(); + +// Delete +const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.permissionsModule` + +CRUD operations for PermissionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.relationProvision` + +CRUD operations for RelationProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `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 | +| `policies` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | 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(); + +// 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(); + +// 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(); + +// Update +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionModule` + +CRUD operations for FunctionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `definitionsTableId` | UUID | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `secretDefinitionsTableId` | UUID | Yes | +| `requirementsTableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `configRequirementsTableId` | UUID | Yes | +| `definitionsTableName` | String | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | +| `secretDefinitionsTableName` | String | Yes | +| `requirementsTableName` | String | Yes | +| `configRequirementsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userAuthModule` + +CRUD operations for UserAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `encryptedTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `auditsTableId` | UUID | Yes | +| `auditsTableName` | String | Yes | +| `signInFunction` | String | Yes | +| `signUpFunction` | String | Yes | +| `signOutFunction` | String | Yes | +| `setPasswordFunction` | String | Yes | +| `resetPasswordFunction` | String | Yes | +| `forgotPasswordFunction` | String | Yes | +| `sendVerificationEmailFunction` | String | Yes | +| `verifyEmailFunction` | String | Yes | +| `verifyPasswordFunction` | String | Yes | +| `checkPasswordFunction` | String | Yes | +| `sendAccountDeletionEmailFunction` | String | Yes | +| `deleteAccountFunction` | String | Yes | +| `signInCrossOriginFunction` | String | Yes | +| `requestCrossOriginTokenFunction` | String | Yes | +| `extendTokenExpires` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all userAuthModule records +const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.userAuthModule.create({ data: { 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: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentModule` + +CRUD operations for AgentModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `threadTableId` | UUID | Yes | +| `messageTableId` | UUID | Yes | +| `taskTableId` | UUID | Yes | +| `promptsTableId` | UUID | Yes | +| `knowledgeTableId` | UUID | Yes | +| `planTableId` | UUID | Yes | +| `skillTableId` | UUID | Yes | +| `threadTableName` | String | Yes | +| `messageTableName` | String | Yes | +| `taskTableName` | String | Yes | +| `promptsTableName` | String | Yes | +| `knowledgeTableName` | String | Yes | +| `planTableName` | String | Yes | +| `skillTableName` | String | Yes | +| `hasKnowledge` | Boolean | Yes | +| `hasPlans` | Boolean | Yes | +| `hasSkills` | Boolean | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `knowledgeConfig` | JSON | Yes | +| `skillsConfig` | JSON | Yes | +| `knowledgePolicies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all agentModule records +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }).execute(); + +// Create +const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', planTableId: '', skillTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', planTableName: '', skillTableName: '', hasKnowledge: '', hasPlans: '', hasSkills: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', knowledgeConfig: '', skillsConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.limitsModule` + +CRUD operations for LimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `limitIncrementFunction` | String | Yes | +| `limitDecrementFunction` | String | Yes | +| `limitIncrementTrigger` | String | Yes | +| `limitDecrementTrigger` | String | Yes | +| `limitUpdateTrigger` | String | Yes | +| `limitCheckFunction` | String | Yes | +| `limitCreditsTableId` | UUID | Yes | +| `eventsTableId` | UUID | Yes | +| `creditCodesTableId` | UUID | Yes | +| `creditCodeItemsTableId` | UUID | Yes | +| `creditRedemptionsTableId` | UUID | Yes | +| `aggregateTableId` | UUID | Yes | +| `limitCapsTableId` | UUID | Yes | +| `limitCapsDefaultsTableId` | UUID | Yes | +| `capCheckTrigger` | String | Yes | +| `resolveCapFunction` | String | Yes | +| `limitWarningsTableId` | UUID | Yes | +| `limitWarningStateTableId` | UUID | Yes | +| `limitCheckSoftFunction` | String | Yes | +| `limitAggregateCheckSoftFunction` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all limitsModule records +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', 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(); + +// Delete +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 | +| `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 | +| `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, 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, 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', 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.storageModule` + +CRUD operations for StorageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `bucketsTableId` | UUID | Yes | +| `filesTableId` | UUID | Yes | +| `bucketsTableName` | String | Yes | +| `filesTableName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `entityTableId` | UUID | Yes | +| `endpoint` | String | Yes | +| `publicUrlPrefix` | String | Yes | +| `provider` | String | Yes | +| `allowedOrigins` | String | Yes | +| `restrictReads` | Boolean | Yes | +| `hasPathShares` | Boolean | Yes | +| `pathSharesTableId` | UUID | Yes | +| `uploadUrlExpirySeconds` | Int | Yes | +| `downloadUrlExpirySeconds` | Int | Yes | +| `defaultMaxFileSize` | BigInt | Yes | +| `maxFilenameLength` | Int | Yes | +| `cacheTtlSeconds` | Int | Yes | +| `maxBulkFiles` | Int | Yes | +| `maxBulkTotalSize` | BigInt | Yes | +| `hasVersioning` | Boolean | Yes | +| `hasContentHash` | Boolean | Yes | +| `hasCustomKeys` | Boolean | Yes | +| `hasAuditLog` | Boolean | Yes | +| `hasConfirmUpload` | Boolean | Yes | +| `confirmUploadDelay` | Interval | Yes | +| `fileEventsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all storageModule records +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, 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, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', databaseOwned: '', 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: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.eventsModule` + +CRUD operations for EventsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `eventsTableId` | UUID | Yes | +| `eventsTableName` | String | Yes | +| `eventAggregatesTableId` | UUID | Yes | +| `eventAggregatesTableName` | String | Yes | +| `eventTypesTableId` | UUID | Yes | +| `eventTypesTableName` | String | Yes | +| `levelsTableId` | UUID | Yes | +| `levelsTableName` | String | Yes | +| `levelRequirementsTableId` | UUID | Yes | +| `levelRequirementsTableName` | String | Yes | +| `levelGrantsTableId` | UUID | Yes | +| `levelGrantsTableName` | String | Yes | +| `achievementRewardsTableId` | UUID | Yes | +| `achievementRewardsTableName` | String | Yes | +| `recordEvent` | String | Yes | +| `removeEvent` | String | Yes | +| `tgEvent` | String | Yes | +| `tgEventToggle` | String | Yes | +| `tgEventToggleBool` | String | Yes | +| `tgEventBool` | String | Yes | +| `upsertAggregate` | String | Yes | +| `tgUpdateAggregates` | String | Yes | +| `pruneEvents` | String | Yes | +| `stepsRequired` | String | Yes | +| `levelAchieved` | String | Yes | +| `tgCheckAchievements` | String | Yes | +| `grantAchievement` | String | Yes | +| `tgAchievementReward` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all eventsModule records +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: 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, 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', databaseOwned: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.entityTypeProvision` + +CRUD operations for EntityTypeProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `prefix` | String | Yes | +| `description` | String | Yes | +| `parentEntity` | String | Yes | +| `tableName` | String | Yes | +| `isVisible` | Boolean | Yes | +| `hasLimits` | Boolean | Yes | +| `hasProfiles` | Boolean | Yes | +| `hasLevels` | Boolean | Yes | +| `hasInvites` | Boolean | Yes | +| `hasInviteAchievements` | Boolean | Yes | +| `storage` | JSON | Yes | +| `namespaces` | JSON | Yes | +| `functions` | JSON | Yes | +| `graphs` | JSON | Yes | +| `agents` | JSON | Yes | +| `skipEntityPolicies` | Boolean | Yes | +| `tableProvision` | JSON | Yes | +| `outMembershipType` | Int | Yes | +| `outEntityTableId` | UUID | Yes | +| `outEntityTableName` | String | Yes | +| `outInstalledModules` | String | Yes | +| `outStorageModuleId` | UUID | Yes | +| `outBucketsTableId` | UUID | Yes | +| `outFilesTableId` | UUID | Yes | +| `outPathSharesTableId` | UUID | Yes | +| `outInvitesModuleId` | UUID | Yes | +| `outNamespaceModuleId` | UUID | Yes | +| `outNamespacesTableId` | UUID | Yes | +| `outNamespaceEventsTableId` | UUID | Yes | +| `outFunctionModuleId` | UUID | Yes | +| `outDefinitionsTableId` | UUID | Yes | +| `outInvocationsTableId` | UUID | Yes | +| `outExecutionLogsTableId` | UUID | Yes | +| `outSecretDefinitionsTableId` | UUID | Yes | +| `outRequirementsTableId` | UUID | Yes | +| `outConfigRequirementsTableId` | UUID | Yes | +| `outGraphModuleId` | UUID | Yes | +| `outGraphsTableId` | UUID | Yes | +| `outAgentModuleId` | UUID | Yes | + +**Operations:** + +```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.resolveBlueprintField` + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableId` | UUID | + | `fieldName` | String | + +```typescript +const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); +``` + +### `db.query.resolveBlueprintTable` + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableName` | String | + | `schemaName` | String | + | `tableMap` | JSON | + | `defaultSchemaId` | UUID | + +```typescript +const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); +``` + +### `db.mutation.constructBlueprint` + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConstructBlueprintInput (required) | + +```typescript +const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); +``` + +### `db.mutation.provisionFullTextSearch` + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionFullTextSearchInput (required) | + +```typescript +const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionIndex` + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionIndexInput (required) | + +```typescript +const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionCheckConstraint` + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionCheckConstraintInput (required) | + +```typescript +const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionUniqueConstraint` + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionUniqueConstraintInput (required) | + +```typescript +const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.copyTemplateToBlueprint` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + +```typescript +const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); +``` + +### `db.mutation.provisionSpatialRelation` + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSpatialRelationInput (required) | + +```typescript +const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); +``` + +### `db.mutation.provisionTable` + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionTableInput (required) | + +```typescript +const result = await db.mutation.provisionTable({ input: '' }).execute(); +``` + +### `db.mutation.provisionRelation` + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionRelationInput (required) | + +```typescript +const result = await db.mutation.provisionRelation({ input: '' }).execute(); +``` + +### `db.mutation.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/public/orm/client.ts b/sdk/constructive-cli/src/modules/orm/client.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/client.ts rename to sdk/constructive-cli/src/modules/orm/client.ts diff --git a/sdk/constructive-cli/src/modules/orm/index.ts b/sdk/constructive-cli/src/modules/orm/index.ts new file mode 100644 index 0000000000..a7029f3b07 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/index.ts @@ -0,0 +1,158 @@ +/** + * 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 { 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 { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +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 { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; +import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; +import { RlsModuleModel } from './models/rlsModule'; +import { BlueprintModel } from './models/blueprint'; +import { BlueprintTemplateModel } from './models/blueprintTemplate'; +import { BlueprintConstructionModel } from './models/blueprintConstruction'; +import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; +import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; +import { SessionsModuleModel } from './models/sessionsModule'; +import { MerkleStoreModuleModel } from './models/merkleStoreModule'; +import { GraphModuleModel } from './models/graphModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; +import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { InvitesModuleModel } from './models/invitesModule'; +import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; +import { RealtimeModuleModel } from './models/realtimeModule'; +import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; +import { ComputeLogModuleModel } from './models/computeLogModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; +import { StorageLogModuleModel } from './models/storageLogModule'; +import { TransferLogModuleModel } from './models/transferLogModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; +import { NotificationsModuleModel } from './models/notificationsModule'; +import { PlansModuleModel } from './models/plansModule'; +import { HierarchyModuleModel } from './models/hierarchyModule'; +import { BillingModuleModel } from './models/billingModule'; +import { BillingProviderModuleModel } from './models/billingProviderModule'; +import { ProfilesModuleModel } from './models/profilesModule'; +import { PermissionsModuleModel } from './models/permissionsModule'; +import { RelationProvisionModel } from './models/relationProvision'; +import { FunctionModuleModel } from './models/functionModule'; +import { UserAuthModuleModel } from './models/userAuthModule'; +import { AgentModuleModel } from './models/agentModule'; +import { LimitsModuleModel } from './models/limitsModule'; +import { MembershipsModuleModel } from './models/membershipsModule'; +import { StorageModuleModel } from './models/storageModule'; +import { EventsModuleModel } from './models/eventsModule'; +import { EntityTypeProvisionModel } from './models/entityTypeProvision'; +import { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @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 { + 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), + identityProvidersModule: new IdentityProvidersModuleModel(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), + cryptoAddressesModule: new CryptoAddressesModuleModel(client), + denormalizedTableField: new DenormalizedTableFieldModel(client), + rlsModule: new RlsModuleModel(client), + blueprint: new BlueprintModel(client), + blueprintTemplate: new BlueprintTemplateModel(client), + blueprintConstruction: new BlueprintConstructionModel(client), + cryptoAuthModule: new CryptoAuthModuleModel(client), + rateLimitMetersModule: new RateLimitMetersModuleModel(client), + sessionsModule: new SessionsModuleModel(client), + merkleStoreModule: new MerkleStoreModuleModel(client), + graphModule: new GraphModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), + configSecretsModule: new ConfigSecretsModuleModel(client), + invitesModule: new InvitesModuleModel(client), + databaseProvisionModule: new DatabaseProvisionModuleModel(client), + realtimeModule: new RealtimeModuleModel(client), + webauthnAuthModule: new WebauthnAuthModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), + computeLogModule: new ComputeLogModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), + storageLogModule: new StorageLogModuleModel(client), + transferLogModule: new TransferLogModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), + notificationsModule: new NotificationsModuleModel(client), + plansModule: new PlansModuleModel(client), + hierarchyModule: new HierarchyModuleModel(client), + billingModule: new BillingModuleModel(client), + billingProviderModule: new BillingProviderModuleModel(client), + profilesModule: new ProfilesModuleModel(client), + permissionsModule: new PermissionsModuleModel(client), + relationProvision: new RelationProvisionModel(client), + functionModule: new FunctionModuleModel(client), + userAuthModule: new UserAuthModuleModel(client), + agentModule: new AgentModuleModel(client), + limitsModule: new LimitsModuleModel(client), + membershipsModule: new MembershipsModuleModel(client), + storageModule: new StorageModuleModel(client), + eventsModule: new EventsModuleModel(client), + entityTypeProvision: new EntityTypeProvisionModel(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 new file mode 100644 index 0000000000..a2b2f9680f --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -0,0 +1,13842 @@ +/** + * 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 DefaultIdsModule { + id: string; + databaseId?: string | null; +} +export interface MembershipTypesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + 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; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + /** 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; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface I18NModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + settingsTableId?: string | null; + 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 { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UserSettingsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; +} +export interface ConfigSecretsUserModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + configDefinitionsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. */ +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; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ConnectedAccountsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EmailsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface PhoneNumbersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface RateLimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +export interface UsersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** 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. */ +export interface WebauthnCredentialsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface CryptoAddressesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DenormalizedTableField { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface RlsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ +export interface Blueprint { + /** Unique identifier for this blueprint. */ + id: string; + /** The user who owns this blueprint. */ + ownerId?: string | null; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId?: string | null; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string | null; + /** Human-readable display name for the blueprint. */ + displayName?: string | null; + /** Optional description of the blueprint. */ + description?: string | null; + /** 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?: Record | null; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string | null; + /** 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 | null; + /** 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?: Record | null; + /** Timestamp when this blueprint was created. */ + createdAt?: string | null; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string | null; +} +/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ +export interface BlueprintTemplate { + /** Unique identifier for this template. */ + id: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string | null; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string | null; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string | null; + /** Optional description of what the template provisions. */ + description?: string | null; + /** The user who created or published this template. */ + ownerId?: string | null; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string | null; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[] | null; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[] | null; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: Record | null; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string | null; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string | null; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string | null; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number | null; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number | null; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string | null; + /** 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?: string | null; + /** 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?: Record | null; + /** Timestamp when this template was created. */ + createdAt?: string | null; + /** Timestamp when this template was last modified. */ + updatedAt?: string | null; +} +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ +export interface BlueprintConstruction { + /** Unique identifier for this construction attempt. */ + id: string; + /** The blueprint that was constructed. */ + blueprintId?: string | null; + /** The database the blueprint was constructed into. */ + databaseId?: string | null; + /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ + schemaId?: string | null; + /** 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 | null; + /** Error message from a failed construction attempt. NULL unless status is failed. */ + errorDetails?: string | null; + /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + tableMap?: Record | null; + /** 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?: Record | null; + /** Timestamp when construction successfully completed. NULL until constructed. */ + constructedAt?: string | null; + /** Timestamp when this construction attempt was created. */ + createdAt?: string | null; + /** Timestamp when this construction attempt was last modified. */ + updatedAt?: string | null; +} +export interface CryptoAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface SessionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: string | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface MerkleStoreModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + createdAt?: string | null; +} +export interface GraphModule { + id: string; + databaseId?: string | null; + publicSchemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + scope?: string | null; + prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; + executionsTableId?: string | null; + outputsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + createdAt?: string | null; +} +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database this provision belongs to. Required. */ + databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string | null; + /** 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 | null; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: Record | null; + /** 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 | null; + /** 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?: Record[] | null; + /** 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?: Record | null; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: Record | null; + /** 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; +} +/** + * 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. + */ +export interface ConfigSecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface InvitesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: 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 | 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; +} +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; +} +export interface WebauthnAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + authSettingsTableId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpiry?: string | null; +} +export interface NamespaceModule { + id: string; + 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; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface ComputeLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface StorageLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface TransferLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface NotificationsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 HierarchyModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + createdAt?: string | null; +} +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface BillingProviderModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ProfilesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 PermissionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; +} +/** + * 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. */ + databaseId?: string | null; + /** + * 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 | null; + /** + * 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?: string | null; + /** + * 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?: string | null; + /** + * 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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?: string | null; + /** 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 | null; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string | null; + /** 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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?: Record | null; + /** 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?: Record | null; + /** + * 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?: Record | null; + /** 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?: string | null; + /** 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?: string | null; + /** 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?: string | null; + /** 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 FunctionModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + secretDefinitionsTableId?: string | null; + requirementsTableId?: string | null; + configDefinitionsTableId?: string | null; + configRequirementsTableId?: string | null; + definitionsTableName?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + secretDefinitionsTableName?: string | null; + requirementsTableName?: string | null; + configRequirementsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UserAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInCrossOriginFunction?: string | null; + requestCrossOriginTokenFunction?: string | null; + extendTokenExpires?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface AgentModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + threadTableId?: string | null; + messageTableId?: string | null; + taskTableId?: string | null; + promptsTableId?: string | null; + knowledgeTableId?: string | null; + planTableId?: string | null; + skillTableId?: string | null; + threadTableName?: string | null; + messageTableName?: string | null; + taskTableName?: string | null; + promptsTableName?: string | null; + knowledgeTableName?: string | null; + planTableName?: string | null; + skillTableName?: string | null; + hasKnowledge?: boolean | null; + hasPlans?: boolean | null; + hasSkills?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + knowledgeConfig?: Record | null; + skillsConfig?: Record | null; + knowledgePolicies?: Record | null; + provisions?: Record | null; +} +export interface LimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + limitCreditsTableId?: string | null; + eventsTableId?: string | null; + creditCodesTableId?: string | null; + creditCodeItemsTableId?: string | null; + creditRedemptionsTableId?: string | null; + aggregateTableId?: string | null; + limitCapsTableId?: string | null; + limitCapsDefaultsTableId?: string | null; + capCheckTrigger?: string | null; + resolveCapFunction?: string | null; + limitWarningsTableId?: string | null; + limitWarningStateTableId?: string | null; + limitCheckSoftFunction?: string | null; + limitAggregateCheckSoftFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface MembershipsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + apiName?: string | null; + privateApiName?: string | null; +} +export interface StorageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; + fileEventsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EventsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: 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). + * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + * Set table_provision to a single jsonb object (using the same shape as provision_table() / + * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + * as an escape hatch to apply zero policies. + */ +export interface EntityTypeProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database to provision this entity type in. Required. */ + databaseId?: string | null; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name?: string | null; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix?: string | null; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string | null; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string | null; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string | null; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean | null; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean | null; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean | null; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean | null; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean | null; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean | null; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: Record | null; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: Record | null; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: Record | null; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: Record | null; + agents?: Record | null; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean | null; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: Record | null; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number | null; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string | null; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string | null; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[] | null; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string | null; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string | null; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string | null; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string | null; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string | null; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outRequirementsTableId?: string | null; + outConfigRequirementsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: 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 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 IdentityProvidersModuleRelations {} +export interface ConnectedAccountsModuleRelations {} +export interface EmailsModuleRelations {} +export interface PhoneNumbersModuleRelations {} +export interface RateLimitsModuleRelations {} +export interface UsersModuleRelations {} +export interface WebauthnCredentialsModuleRelations {} +export interface CryptoAddressesModuleRelations {} +export interface DenormalizedTableFieldRelations {} +export interface RlsModuleRelations {} +export interface BlueprintRelations { + template?: BlueprintTemplate | null; + blueprintConstructions?: ConnectionResult; +} +export interface BlueprintTemplateRelations { + forkedFrom?: BlueprintTemplate | null; + blueprintTemplatesByForkedFromId?: ConnectionResult; + blueprintsByTemplateId?: ConnectionResult; +} +export interface BlueprintConstructionRelations { + blueprint?: Blueprint | null; +} +export interface CryptoAuthModuleRelations {} +export interface RateLimitMetersModuleRelations {} +export interface SessionsModuleRelations {} +export interface MerkleStoreModuleRelations { + graphModules?: ConnectionResult; +} +export interface GraphModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} +export interface SecureTableProvisionRelations {} +export interface ConfigSecretsModuleRelations {} +export interface InvitesModuleRelations {} +export interface DatabaseProvisionModuleRelations {} +export interface RealtimeModuleRelations {} +export interface WebauthnAuthModuleRelations {} +export interface NamespaceModuleRelations {} +export interface ComputeLogModuleRelations {} +export interface InferenceLogModuleRelations {} +export interface StorageLogModuleRelations {} +export interface TransferLogModuleRelations {} +export interface DbUsageModuleRelations {} +export interface NotificationsModuleRelations {} +export interface PlansModuleRelations {} +export interface HierarchyModuleRelations {} +export interface BillingModuleRelations {} +export interface BillingProviderModuleRelations {} +export interface ProfilesModuleRelations {} +export interface PermissionsModuleRelations {} +export interface RelationProvisionRelations {} +export interface FunctionModuleRelations {} +export interface UserAuthModuleRelations {} +export interface AgentModuleRelations {} +export interface LimitsModuleRelations {} +export interface MembershipsModuleRelations {} +export interface StorageModuleRelations {} +export interface EventsModuleRelations {} +export interface EntityTypeProvisionRelations {} +// ============ 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 UserCredentialsModuleWithRelations = UserCredentialsModule & + UserCredentialsModuleRelations; +export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; +export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & + ConnectedAccountsModuleRelations; +export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; +export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; +export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; +export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; +export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & + WebauthnCredentialsModuleRelations; +export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & + CryptoAddressesModuleRelations; +export type DenormalizedTableFieldWithRelations = DenormalizedTableField & + DenormalizedTableFieldRelations; +export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type BlueprintWithRelations = Blueprint & BlueprintRelations; +export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; +export type BlueprintConstructionWithRelations = BlueprintConstruction & + BlueprintConstructionRelations; +export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; +export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & + RateLimitMetersModuleRelations; +export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; +export type SecureTableProvisionWithRelations = SecureTableProvision & + SecureTableProvisionRelations; +export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & + DatabaseProvisionModuleRelations; +export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; +export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; +export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; +export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; +export type BillingProviderModuleWithRelations = BillingProviderModule & + BillingProviderModuleRelations; +export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; +export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; +export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; +export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; +export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; +export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; +export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; +// ============ Entity Select Types ============ +export type DefaultIdsModuleSelect = { + id?: boolean; + databaseId?: boolean; +}; +export type MembershipTypesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; +export type UserStateModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; +export type SessionSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + 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; + schemaId?: boolean; + userDevicesTableId?: boolean; + deviceSettingsTableId?: boolean; + userDevicesTable?: boolean; + deviceSettingsTable?: boolean; +}; +export type I18NModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + settingsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type UserCredentialsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type UserSettingsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; +}; +export type ConfigSecretsUserModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + configDefinitionsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type IdentityProvidersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type ConnectedAccountsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EmailsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PhoneNumbersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type RateLimitsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + rateLimitSettingsTableId?: boolean; + ipRateLimitsTableId?: boolean; + rateLimitsTableId?: boolean; + rateLimitSettingsTable?: boolean; + ipRateLimitsTable?: boolean; + rateLimitsTable?: boolean; +}; +export type UsersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + typeTableId?: boolean; + typeTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type WebauthnCredentialsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type CryptoAddressesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + cryptoNetwork?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DenormalizedTableFieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + setIds?: boolean; + refTableId?: boolean; + refFieldId?: boolean; + refIds?: boolean; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: boolean; + funcOrder?: boolean; +}; +export type RlsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + sessionCredentialsTableId?: boolean; + sessionsTableId?: boolean; + usersTableId?: boolean; + authenticate?: boolean; + authenticateStrict?: boolean; + currentRole?: boolean; + currentRoleId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type BlueprintSelect = { + id?: boolean; + ownerId?: boolean; + databaseId?: boolean; + name?: boolean; + displayName?: boolean; + description?: boolean; + definition?: boolean; + templateId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + template?: { + select: BlueprintTemplateSelect; + }; + blueprintConstructions?: { + select: BlueprintConstructionSelect; + first?: number; + filter?: BlueprintConstructionFilter; + orderBy?: BlueprintConstructionOrderBy[]; + }; +}; +export type BlueprintTemplateSelect = { + id?: boolean; + name?: boolean; + version?: boolean; + displayName?: boolean; + description?: boolean; + ownerId?: boolean; + visibility?: boolean; + categories?: boolean; + tags?: boolean; + definition?: boolean; + definitionSchemaVersion?: boolean; + source?: boolean; + complexity?: boolean; + copyCount?: boolean; + forkCount?: boolean; + forkedFromId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + forkedFrom?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplatesByForkedFromId?: { + select: BlueprintTemplateSelect; + first?: number; + filter?: BlueprintTemplateFilter; + orderBy?: BlueprintTemplateOrderBy[]; + }; + blueprintsByTemplateId?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; + }; +}; +export type BlueprintConstructionSelect = { + id?: boolean; + blueprintId?: boolean; + databaseId?: boolean; + schemaId?: boolean; + status?: boolean; + errorDetails?: boolean; + tableMap?: boolean; + constructedDefinition?: boolean; + constructedAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + blueprint?: { + select: BlueprintSelect; + }; +}; +export type CryptoAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + addressesTableId?: boolean; + userField?: boolean; + cryptoNetwork?: boolean; + signInRequestChallenge?: boolean; + signInRecordFailure?: boolean; + signUpWithKey?: boolean; + signInWithChallenge?: boolean; +}; +export type RateLimitMetersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + rateLimitStateTableId?: boolean; + rateLimitStateTableName?: boolean; + rateLimitOverridesTableId?: boolean; + rateLimitOverridesTableName?: boolean; + rateWindowLimitsTableId?: boolean; + rateWindowLimitsTableName?: boolean; + checkRateLimitFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type SessionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + authSettingsTableId?: boolean; + usersTableId?: boolean; + sessionsDefaultExpiration?: boolean; + sessionsTable?: boolean; + sessionCredentialsTable?: boolean; + authSettingsTable?: boolean; +}; +export type MerkleStoreModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + objectTableId?: boolean; + storeTableId?: boolean; + commitTableId?: boolean; + refTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; + databaseOwned?: boolean; + createdAt?: boolean; + graphModules?: { + select: GraphModuleSelect; + first?: number; + filter?: GraphModuleFilter; + orderBy?: GraphModuleOrderBy[]; + }; +}; +export type GraphModuleSelect = { + id?: boolean; + databaseId?: boolean; + publicSchemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + scope?: boolean; + prefix?: boolean; + merkleStoreModuleId?: boolean; + graphsTableId?: boolean; + executionsTableId?: boolean; + outputsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; + databaseOwned?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + createdAt?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; +}; +export type SecureTableProvisionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + nodes?: boolean; + useRls?: boolean; + fields?: boolean; + grants?: boolean; + policies?: boolean; + outFields?: boolean; +}; +export type ConfigSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + configDefinitionsTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + hasConfig?: boolean; +}; +export type InvitesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DatabaseProvisionModuleSelect = { + 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; +}; +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 WebauthnAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + usersTableId?: boolean; + credentialsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + sessionSecretsTableId?: boolean; + authSettingsTableId?: boolean; + rpId?: boolean; + rpName?: boolean; + originAllowlist?: boolean; + attestationType?: boolean; + requireUserVerification?: boolean; + residentKey?: boolean; + challengeExpiry?: boolean; +}; +export type NamespaceModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + namespacesTableId?: boolean; + namespaceEventsTableId?: boolean; + namespacesTableName?: boolean; + namespaceEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type ComputeLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type StorageLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type TransferLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type NotificationsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + notificationsTableId?: boolean; + readStateTableId?: boolean; + preferencesTableId?: boolean; + channelsTableId?: boolean; + deliveryLogTableId?: boolean; + ownerTableId?: boolean; + userSettingsTableId?: boolean; + organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PlansModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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; +}; +export type HierarchyModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + chartEdgesTableId?: boolean; + chartEdgesTableName?: boolean; + hierarchySprtTableId?: boolean; + hierarchySprtTableName?: boolean; + chartEdgeGrantsTableId?: boolean; + chartEdgeGrantsTableName?: boolean; + entityTableId?: boolean; + usersTableId?: boolean; + scope?: boolean; + prefix?: boolean; + privateSchemaName?: boolean; + sprtTableName?: boolean; + rebuildHierarchyFunction?: boolean; + getSubordinatesFunction?: boolean; + getManagersFunction?: boolean; + isManagerOfFunction?: boolean; + createdAt?: boolean; +}; +export type BillingModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + meterDefaultsTableId?: boolean; + meterDefaultsTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type BillingProviderModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + provider?: boolean; + productsTableId?: boolean; + pricesTableId?: boolean; + subscriptionsTableId?: boolean; + billingCustomersTableId?: boolean; + billingCustomersTableName?: boolean; + billingProductsTableId?: boolean; + billingProductsTableName?: boolean; + billingPricesTableId?: boolean; + billingPricesTableName?: boolean; + billingSubscriptionsTableId?: boolean; + billingSubscriptionsTableName?: boolean; + billingWebhookEventsTableId?: boolean; + billingWebhookEventsTableName?: boolean; + processBillingEventFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type ProfilesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + profilePermissionsTableId?: boolean; + profilePermissionsTableName?: boolean; + profileGrantsTableId?: boolean; + profileGrantsTableName?: boolean; + profileDefinitionGrantsTableId?: boolean; + profileDefinitionGrantsTableName?: boolean; + profileTemplatesTableId?: boolean; + profileTemplatesTableName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + permissionsTableId?: boolean; + membershipsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PermissionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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 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 FunctionModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + definitionsTableId?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + secretDefinitionsTableId?: boolean; + requirementsTableId?: boolean; + configDefinitionsTableId?: boolean; + configRequirementsTableId?: boolean; + definitionsTableName?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; + secretDefinitionsTableName?: boolean; + requirementsTableName?: boolean; + configRequirementsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type UserAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + encryptedTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + auditsTableId?: boolean; + auditsTableName?: boolean; + signInFunction?: boolean; + signUpFunction?: boolean; + signOutFunction?: boolean; + setPasswordFunction?: boolean; + resetPasswordFunction?: boolean; + forgotPasswordFunction?: boolean; + sendVerificationEmailFunction?: boolean; + verifyEmailFunction?: boolean; + verifyPasswordFunction?: boolean; + checkPasswordFunction?: boolean; + sendAccountDeletionEmailFunction?: boolean; + deleteAccountFunction?: boolean; + signInCrossOriginFunction?: boolean; + requestCrossOriginTokenFunction?: boolean; + extendTokenExpires?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type AgentModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + threadTableId?: boolean; + messageTableId?: boolean; + taskTableId?: boolean; + promptsTableId?: boolean; + knowledgeTableId?: boolean; + planTableId?: boolean; + skillTableId?: boolean; + threadTableName?: boolean; + messageTableName?: boolean; + taskTableName?: boolean; + promptsTableName?: boolean; + knowledgeTableName?: boolean; + planTableName?: boolean; + skillTableName?: boolean; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + knowledgeConfig?: boolean; + skillsConfig?: boolean; + knowledgePolicies?: boolean; + provisions?: boolean; +}; +export type LimitsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + limitIncrementFunction?: boolean; + limitDecrementFunction?: boolean; + limitIncrementTrigger?: boolean; + limitDecrementTrigger?: boolean; + limitUpdateTrigger?: boolean; + limitCheckFunction?: boolean; + limitCreditsTableId?: boolean; + eventsTableId?: boolean; + creditCodesTableId?: boolean; + creditCodeItemsTableId?: boolean; + creditRedemptionsTableId?: boolean; + aggregateTableId?: boolean; + limitCapsTableId?: boolean; + limitCapsDefaultsTableId?: boolean; + capCheckTrigger?: boolean; + resolveCapFunction?: boolean; + limitWarningsTableId?: boolean; + limitWarningStateTableId?: boolean; + limitCheckSoftFunction?: boolean; + limitAggregateCheckSoftFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type MembershipsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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; + apiName?: boolean; + privateApiName?: boolean; +}; +export type StorageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + bucketsTableId?: boolean; + filesTableId?: boolean; + bucketsTableName?: boolean; + filesTableName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + policies?: boolean; + provisions?: boolean; + entityTableId?: boolean; + endpoint?: boolean; + publicUrlPrefix?: boolean; + provider?: boolean; + allowedOrigins?: boolean; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: boolean; + uploadUrlExpirySeconds?: boolean; + downloadUrlExpirySeconds?: boolean; + defaultMaxFileSize?: boolean; + maxFilenameLength?: boolean; + cacheTtlSeconds?: boolean; + maxBulkFiles?: boolean; + maxBulkTotalSize?: boolean; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: boolean; + fileEventsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EventsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + eventsTableId?: boolean; + eventsTableName?: boolean; + eventAggregatesTableId?: boolean; + eventAggregatesTableName?: boolean; + eventTypesTableId?: boolean; + eventTypesTableName?: boolean; + levelsTableId?: boolean; + levelsTableName?: boolean; + levelRequirementsTableId?: boolean; + levelRequirementsTableName?: boolean; + levelGrantsTableId?: boolean; + levelGrantsTableName?: boolean; + achievementRewardsTableId?: boolean; + achievementRewardsTableName?: boolean; + recordEvent?: boolean; + removeEvent?: boolean; + tgEvent?: boolean; + tgEventToggle?: boolean; + tgEventToggleBool?: boolean; + tgEventBool?: boolean; + upsertAggregate?: boolean; + tgUpdateAggregates?: boolean; + pruneEvents?: boolean; + stepsRequired?: boolean; + levelAchieved?: boolean; + tgCheckAchievements?: boolean; + grantAchievement?: boolean; + tgAchievementReward?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EntityTypeProvisionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + prefix?: boolean; + description?: boolean; + parentEntity?: boolean; + tableName?: boolean; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: boolean; + namespaces?: boolean; + functions?: boolean; + graphs?: boolean; + agents?: boolean; + skipEntityPolicies?: boolean; + tableProvision?: boolean; + outMembershipType?: boolean; + outEntityTableId?: boolean; + outEntityTableName?: boolean; + outInstalledModules?: boolean; + outStorageModuleId?: boolean; + outBucketsTableId?: boolean; + outFilesTableId?: boolean; + outPathSharesTableId?: boolean; + outInvitesModuleId?: boolean; + outNamespaceModuleId?: boolean; + outNamespacesTableId?: boolean; + outNamespaceEventsTableId?: boolean; + outFunctionModuleId?: boolean; + outDefinitionsTableId?: boolean; + outInvocationsTableId?: boolean; + outExecutionLogsTableId?: boolean; + outSecretDefinitionsTableId?: boolean; + outRequirementsTableId?: boolean; + outConfigRequirementsTableId?: boolean; + outGraphModuleId?: boolean; + outGraphsTableId?: boolean; + outAgentModuleId?: boolean; +}; +// ============ Table Filter Types ============ +export interface DefaultIdsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DefaultIdsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultIdsModuleFilter[]; + /** Negates the expression. */ + not?: DefaultIdsModuleFilter; +} +export interface MembershipTypesModuleFilter { + /** 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?: MembershipTypesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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; + /** 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; +} +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 { + /** 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 `userDevicesTableId` field. */ + userDevicesTableId?: UUIDFilter; + /** Filter by the object’s `deviceSettingsTableId` field. */ + deviceSettingsTableId?: UUIDFilter; + /** Filter by the object’s `userDevicesTable` field. */ + userDevicesTable?: StringFilter; + /** Filter by the object’s `deviceSettingsTable` field. */ + deviceSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DevicesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DevicesModuleFilter[]; + /** Negates the expression. */ + not?: DevicesModuleFilter; +} +export interface I18NModuleFilter { + /** 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 `settingsTableId` field. */ + settingsTableId?: 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?: I18NModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: I18NModuleFilter[]; + /** Negates the expression. */ + not?: I18NModuleFilter; +} +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 `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?: UserCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserCredentialsModuleFilter[]; + /** Negates the expression. */ + not?: UserCredentialsModuleFilter; +} +export interface UserSettingsModuleFilter { + /** 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 `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[]; + /** Checks for any expressions in this list. */ + or?: UserSettingsModuleFilter[]; + /** Negates the expression. */ + not?: UserSettingsModuleFilter; +} +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 `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[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} +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 `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?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} +export interface ConnectedAccountsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConnectedAccountsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConnectedAccountsModuleFilter[]; + /** Negates the expression. */ + not?: ConnectedAccountsModuleFilter; +} +export interface EmailsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EmailsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailsModuleFilter[]; + /** Negates the expression. */ + not?: EmailsModuleFilter; +} +export interface PhoneNumbersModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PhoneNumbersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PhoneNumbersModuleFilter[]; + /** Negates the expression. */ + not?: PhoneNumbersModuleFilter; +} +export interface RateLimitsModuleFilter { + /** 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 `rateLimitSettingsTableId` field. */ + rateLimitSettingsTableId?: UUIDFilter; + /** Filter by the object’s `ipRateLimitsTableId` field. */ + ipRateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitsTableId` field. */ + rateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitSettingsTable` field. */ + rateLimitSettingsTable?: StringFilter; + /** Filter by the object’s `ipRateLimitsTable` field. */ + ipRateLimitsTable?: StringFilter; + /** Filter by the object’s `rateLimitsTable` field. */ + rateLimitsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitsModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitsModuleFilter; +} +export interface UsersModuleFilter { + /** 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 `typeTableId` field. */ + typeTableId?: UUIDFilter; + /** Filter by the object’s `typeTableName` field. */ + typeTableName?: 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?: UsersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UsersModuleFilter[]; + /** Negates the expression. */ + not?: UsersModuleFilter; +} +export interface WebauthnCredentialsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnCredentialsModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnCredentialsModuleFilter; +} +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; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAddressesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressesModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAddressesModuleFilter; +} +export interface DenormalizedTableFieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `setIds` field. */ + setIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `refIds` field. */ + refIds?: UUIDListFilter; + /** Filter by the object’s `useUpdates` field. */ + useUpdates?: BooleanFilter; + /** Filter by the object’s `updateDefaults` field. */ + updateDefaults?: BooleanFilter; + /** Filter by the object’s `funcName` field. */ + funcName?: StringFilter; + /** Filter by the object’s `funcOrder` field. */ + funcOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: DenormalizedTableFieldFilter[]; + /** Checks for any expressions in this list. */ + or?: DenormalizedTableFieldFilter[]; + /** Negates the expression. */ + not?: DenormalizedTableFieldFilter; +} +export interface 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[]; + /** Negates the expression. */ + not?: RlsModuleFilter; +} +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; + /** Filter by the object’s `blueprintConstructions` relation. */ + blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; + /** `blueprintConstructions` exist. */ + blueprintConstructionsExist?: boolean; +} +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +export interface CryptoAuthModuleFilter { + /** 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 `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `addressesTableId` field. */ + addressesTableId?: UUIDFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `signInRequestChallenge` field. */ + signInRequestChallenge?: StringFilter; + /** Filter by the object’s `signInRecordFailure` field. */ + signInRecordFailure?: StringFilter; + /** Filter by the object’s `signUpWithKey` field. */ + signUpWithKey?: StringFilter; + /** Filter by the object’s `signInWithChallenge` field. */ + signInWithChallenge?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAuthModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAuthModuleFilter; +} +export interface RateLimitMetersModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; +} +export interface SessionsModuleFilter { + /** 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 `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsDefaultExpiration` field. */ + sessionsDefaultExpiration?: IntervalFilter; + /** Filter by the object’s `sessionsTable` field. */ + sessionsTable?: StringFilter; + /** Filter by the object’s `sessionCredentialsTable` field. */ + sessionCredentialsTable?: StringFilter; + /** Filter by the object’s `authSettingsTable` field. */ + authSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SessionsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SessionsModuleFilter[]; + /** Negates the expression. */ + not?: SessionsModuleFilter; +} +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 `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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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; +} +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 `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 `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: GraphModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: GraphModuleFilter[]; + /** Negates the expression. */ + not?: GraphModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} +export interface SecureTableProvisionFilter { + /** 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 `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; + /** Checks for all expressions in this list. */ + and?: SecureTableProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: SecureTableProvisionFilter[]; + /** Negates the expression. */ + not?: SecureTableProvisionFilter; +} +export interface ConfigSecretsModuleFilter { + /** 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 `configDefinitionsTableId` field. */ + configDefinitionsTableId?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `hasConfig` field. */ + hasConfig?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `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?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +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 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; +} +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[]; + /** Checks for any expressions in this list. */ + or?: WebauthnAuthModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnAuthModuleFilter; +} +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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +export interface ComputeLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; +} +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; +} +export interface StorageLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; +} +export interface TransferLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; +} +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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 NotificationsModuleFilter { + /** 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 `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 `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 `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; +} +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 `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; +} +export interface HierarchyModuleFilter { + /** 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 `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 `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; +} +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: 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?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; +} +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; +} +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 `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 `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `profilePermissionsTableId` field. */ + profilePermissionsTableId?: UUIDFilter; + /** Filter by the object’s `profilePermissionsTableName` field. */ + profilePermissionsTableName?: StringFilter; + /** Filter by the object’s `profileGrantsTableId` field. */ + profileGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileGrantsTableName` field. */ + profileGrantsTableName?: StringFilter; + /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ + profileDefinitionGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ + profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: 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 `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: 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?: ProfilesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ProfilesModuleFilter[]; + /** Negates the expression. */ + not?: ProfilesModuleFilter; +} +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 `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 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 FunctionModuleFilter { + /** 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 `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `requirementsTableId` field. */ + requirementsTableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `configRequirementsTableId` field. */ + configRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `requirementsTableName` field. */ + requirementsTableName?: StringFilter; + /** Filter by the object’s `configRequirementsTableName` field. */ + configRequirementsTableName?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface UserAuthModuleFilter { + /** 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 `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `encryptedTableId` field. */ + encryptedTableId?: 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 `auditsTableName` field. */ + auditsTableName?: StringFilter; + /** Filter by the object’s `signInFunction` field. */ + signInFunction?: StringFilter; + /** Filter by the object’s `signUpFunction` field. */ + signUpFunction?: StringFilter; + /** Filter by the object’s `signOutFunction` field. */ + signOutFunction?: StringFilter; + /** Filter by the object’s `setPasswordFunction` field. */ + setPasswordFunction?: StringFilter; + /** Filter by the object’s `resetPasswordFunction` field. */ + resetPasswordFunction?: StringFilter; + /** Filter by the object’s `forgotPasswordFunction` field. */ + forgotPasswordFunction?: StringFilter; + /** Filter by the object’s `sendVerificationEmailFunction` field. */ + sendVerificationEmailFunction?: StringFilter; + /** Filter by the object’s `verifyEmailFunction` field. */ + verifyEmailFunction?: StringFilter; + /** Filter by the object’s `verifyPasswordFunction` field. */ + verifyPasswordFunction?: StringFilter; + /** Filter by the object’s `checkPasswordFunction` field. */ + checkPasswordFunction?: StringFilter; + /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ + sendAccountDeletionEmailFunction?: StringFilter; + /** Filter by the object’s `deleteAccountFunction` field. */ + deleteAccountFunction?: StringFilter; + /** Filter by the object’s `signInCrossOriginFunction` field. */ + signInCrossOriginFunction?: StringFilter; + /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ + requestCrossOriginTokenFunction?: StringFilter; + /** Filter by the object’s `extendTokenExpires` field. */ + extendTokenExpires?: 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?: UserAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserAuthModuleFilter[]; + /** Negates the expression. */ + not?: UserAuthModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `knowledgeTableId` field. */ + knowledgeTableId?: UUIDFilter; + /** Filter by the object’s `planTableId` field. */ + planTableId?: UUIDFilter; + /** Filter by the object’s `skillTableId` field. */ + skillTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `promptsTableName` field. */ + promptsTableName?: StringFilter; + /** Filter by the object’s `knowledgeTableName` field. */ + knowledgeTableName?: StringFilter; + /** Filter by the object’s `planTableName` field. */ + planTableName?: StringFilter; + /** Filter by the object’s `skillTableName` field. */ + skillTableName?: StringFilter; + /** Filter by the object’s `hasKnowledge` field. */ + hasKnowledge?: BooleanFilter; + /** Filter by the object’s `hasPlans` field. */ + hasPlans?: BooleanFilter; + /** Filter by the object’s `hasSkills` field. */ + hasSkills?: BooleanFilter; + /** 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `knowledgeConfig` field. */ + knowledgeConfig?: JSONFilter; + /** Filter by the object’s `skillsConfig` field. */ + skillsConfig?: JSONFilter; + /** Filter by the object’s `knowledgePolicies` field. */ + knowledgePolicies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentModuleFilter[]; + /** Negates the expression. */ + not?: AgentModuleFilter; +} +export interface LimitsModuleFilter { + /** 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 `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 `limitIncrementFunction` field. */ + limitIncrementFunction?: StringFilter; + /** Filter by the object’s `limitDecrementFunction` field. */ + limitDecrementFunction?: StringFilter; + /** Filter by the object’s `limitIncrementTrigger` field. */ + limitIncrementTrigger?: StringFilter; + /** Filter by the object’s `limitDecrementTrigger` field. */ + limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitUpdateTrigger` field. */ + limitUpdateTrigger?: StringFilter; + /** Filter by the object’s `limitCheckFunction` field. */ + limitCheckFunction?: StringFilter; + /** Filter by the object’s `limitCreditsTableId` field. */ + limitCreditsTableId?: UUIDFilter; + /** Filter by the object’s `eventsTableId` field. */ + eventsTableId?: UUIDFilter; + /** Filter by the object’s `creditCodesTableId` field. */ + creditCodesTableId?: UUIDFilter; + /** Filter by the object’s `creditCodeItemsTableId` field. */ + creditCodeItemsTableId?: UUIDFilter; + /** Filter by the object’s `creditRedemptionsTableId` field. */ + creditRedemptionsTableId?: UUIDFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsTableId` field. */ + limitCapsTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsDefaultsTableId` field. */ + limitCapsDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `capCheckTrigger` field. */ + capCheckTrigger?: 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; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: LimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 `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 `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 StorageModuleFilter { + /** 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 `bucketsTableId` field. */ + bucketsTableId?: UUIDFilter; + /** Filter by the object’s `filesTableId` field. */ + filesTableId?: UUIDFilter; + /** Filter by the object’s `bucketsTableName` field. */ + bucketsTableName?: StringFilter; + /** Filter by the object’s `filesTableName` field. */ + filesTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `endpoint` field. */ + endpoint?: StringFilter; + /** Filter by the object’s `publicUrlPrefix` field. */ + publicUrlPrefix?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; + /** Filter by the object’s `hasPathShares` field. */ + hasPathShares?: BooleanFilter; + /** Filter by the object’s `pathSharesTableId` field. */ + pathSharesTableId?: UUIDFilter; + /** Filter by the object’s `uploadUrlExpirySeconds` field. */ + uploadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `downloadUrlExpirySeconds` field. */ + downloadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `defaultMaxFileSize` field. */ + defaultMaxFileSize?: BigIntFilter; + /** Filter by the object’s `maxFilenameLength` field. */ + maxFilenameLength?: IntFilter; + /** Filter by the object’s `cacheTtlSeconds` field. */ + cacheTtlSeconds?: IntFilter; + /** Filter by the object’s `maxBulkFiles` field. */ + maxBulkFiles?: IntFilter; + /** Filter by the object’s `maxBulkTotalSize` field. */ + maxBulkTotalSize?: BigIntFilter; + /** Filter by the object’s `hasVersioning` field. */ + hasVersioning?: BooleanFilter; + /** Filter by the object’s `hasContentHash` field. */ + hasContentHash?: BooleanFilter; + /** Filter by the object’s `hasCustomKeys` field. */ + hasCustomKeys?: BooleanFilter; + /** Filter by the object’s `hasAuditLog` field. */ + hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; + /** Filter by the object’s `fileEventsTableId` field. */ + fileEventsTableId?: 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?: StorageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageModuleFilter[]; + /** Negates the expression. */ + not?: StorageModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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; + /** Filter by the object’s `removeEvent` field. */ + removeEvent?: StringFilter; + /** Filter by the object’s `tgEvent` field. */ + tgEvent?: StringFilter; + /** Filter by the object’s `tgEventToggle` field. */ + tgEventToggle?: StringFilter; + /** Filter by the object’s `tgEventToggleBool` field. */ + tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgEventBool` field. */ + tgEventBool?: StringFilter; + /** Filter by the object’s `upsertAggregate` field. */ + 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. */ + levelAchieved?: StringFilter; + /** Filter by the object’s `tgCheckAchievements` field. */ + tgCheckAchievements?: StringFilter; + /** Filter by the object’s `grantAchievement` field. */ + grantAchievement?: StringFilter; + /** Filter by the object’s `tgAchievementReward` field. */ + tgAchievementReward?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EventsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EventsModuleFilter[]; + /** Negates the expression. */ + not?: EventsModuleFilter; +} +export interface EntityTypeProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + 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 `outRequirementsTableId` field. */ + outRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outConfigRequirementsTableId` field. */ + outConfigRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} +// ============ OrderBy Types ============ +export type DefaultIdsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type MembershipTypesModuleOrderBy = + | '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 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' + | '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'; +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' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +export type I18NModuleOrderBy = + | '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' + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type UserCredentialsModuleOrderBy = + | '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 UserSettingsModuleOrderBy = + | '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' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC'; +export type ConfigSecretsUserModuleOrderBy = + | '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' + | '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 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' + | '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 ConnectedAccountsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 EmailsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 PhoneNumbersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 RateLimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' + | 'IP_RATE_LIMITS_TABLE_ID_ASC' + | 'IP_RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMITS_TABLE_ID_ASC' + | 'RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_DESC' + | 'IP_RATE_LIMITS_TABLE_ASC' + | 'IP_RATE_LIMITS_TABLE_DESC' + | 'RATE_LIMITS_TABLE_ASC' + | 'RATE_LIMITS_TABLE_DESC'; +export type UsersModuleOrderBy = + | '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' + | 'TYPE_TABLE_ID_ASC' + | 'TYPE_TABLE_ID_DESC' + | 'TYPE_TABLE_NAME_ASC' + | 'TYPE_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type WebauthnCredentialsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 CryptoAddressesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type DenormalizedTableFieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'SET_IDS_ASC' + | 'SET_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'REF_IDS_ASC' + | 'REF_IDS_DESC' + | 'USE_UPDATES_ASC' + | 'USE_UPDATES_DESC' + | 'UPDATE_DEFAULTS_ASC' + | 'UPDATE_DEFAULTS_DESC' + | 'FUNC_NAME_ASC' + | 'FUNC_NAME_DESC' + | 'FUNC_ORDER_ASC' + | 'FUNC_ORDER_DESC'; +export type RlsModuleOrderBy = + | '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' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'AUTHENTICATE_ASC' + | 'AUTHENTICATE_DESC' + | 'AUTHENTICATE_STRICT_ASC' + | 'AUTHENTICATE_STRICT_DESC' + | 'CURRENT_ROLE_ASC' + | 'CURRENT_ROLE_DESC' + | 'CURRENT_ROLE_ID_ASC' + | 'CURRENT_ROLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type BlueprintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type BlueprintTemplateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'CATEGORIES_ASC' + | 'CATEGORIES_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DEFINITION_SCHEMA_VERSION_ASC' + | 'DEFINITION_SCHEMA_VERSION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'COMPLEXITY_ASC' + | 'COMPLEXITY_DESC' + | 'COPY_COUNT_ASC' + | 'COPY_COUNT_DESC' + | 'FORK_COUNT_ASC' + | 'FORK_COUNT_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type BlueprintConstructionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'BLUEPRINT_ID_ASC' + | 'BLUEPRINT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_DETAILS_ASC' + | 'ERROR_DETAILS_DESC' + | 'TABLE_MAP_ASC' + | 'TABLE_MAP_DESC' + | 'CONSTRUCTED_DEFINITION_ASC' + | 'CONSTRUCTED_DEFINITION_DESC' + | 'CONSTRUCTED_AT_ASC' + | 'CONSTRUCTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAuthModuleOrderBy = + | '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' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'ADDRESSES_TABLE_ID_ASC' + | 'ADDRESSES_TABLE_ID_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_DESC' + | 'SIGN_IN_RECORD_FAILURE_ASC' + | 'SIGN_IN_RECORD_FAILURE_DESC' + | 'SIGN_UP_WITH_KEY_ASC' + | 'SIGN_UP_WITH_KEY_DESC' + | 'SIGN_IN_WITH_CHALLENGE_ASC' + | 'SIGN_IN_WITH_CHALLENGE_DESC'; +export type RateLimitMetersModuleOrderBy = + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type SessionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUTH_SETTINGS_TABLE_ID_ASC' + | 'AUTH_SETTINGS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_DEFAULT_EXPIRATION_ASC' + | 'SESSIONS_DEFAULT_EXPIRATION_DESC' + | 'SESSIONS_TABLE_ASC' + | 'SESSIONS_TABLE_DESC' + | 'SESSION_CREDENTIALS_TABLE_ASC' + | 'SESSION_CREDENTIALS_TABLE_DESC' + | 'AUTH_SETTINGS_TABLE_ASC' + | 'AUTH_SETTINGS_TABLE_DESC'; +export type MerkleStoreModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +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' + | 'EXECUTIONS_TABLE_ID_ASC' + | 'EXECUTIONS_TABLE_ID_DESC' + | 'OUTPUTS_TABLE_ID_ASC' + | 'OUTPUTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type SecureTableProvisionOrderBy = + | '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' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +export type ConfigSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | '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'; +export type InvitesModuleOrderBy = + | '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' + | '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'; +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'; +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 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'; +export type NamespaceModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type StorageLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | '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' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type NotificationsModuleOrderBy = + | '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' + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type PlansModuleOrderBy = + | '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' + | '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'; +export type HierarchyModuleOrderBy = + | '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' + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type BillingModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | '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' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +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'; +export type ProfilesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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'; +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' + | '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 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 FunctionModuleOrderBy = + | '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' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'REQUIREMENTS_TABLE_ID_ASC' + | 'REQUIREMENTS_TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'REQUIREMENTS_TABLE_NAME_ASC' + | 'REQUIREMENTS_TABLE_NAME_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +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'; +export type AgentModuleOrderBy = + | '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' + | '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' + | 'KNOWLEDGE_TABLE_ID_ASC' + | 'KNOWLEDGE_TABLE_ID_DESC' + | 'PLAN_TABLE_ID_ASC' + | 'PLAN_TABLE_ID_DESC' + | 'SKILL_TABLE_ID_ASC' + | 'SKILL_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' + | 'KNOWLEDGE_TABLE_NAME_ASC' + | 'KNOWLEDGE_TABLE_NAME_DESC' + | 'PLAN_TABLE_NAME_ASC' + | 'PLAN_TABLE_NAME_DESC' + | 'SKILL_TABLE_NAME_ASC' + | 'SKILL_TABLE_NAME_DESC' + | 'HAS_KNOWLEDGE_ASC' + | 'HAS_KNOWLEDGE_DESC' + | 'HAS_PLANS_ASC' + | 'HAS_PLANS_DESC' + | 'HAS_SKILLS_ASC' + | 'HAS_SKILLS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'KNOWLEDGE_CONFIG_ASC' + | 'KNOWLEDGE_CONFIG_DESC' + | 'SKILLS_CONFIG_ASC' + | 'SKILLS_CONFIG_DESC' + | 'KNOWLEDGE_POLICIES_ASC' + | 'KNOWLEDGE_POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type LimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type StorageModuleOrderBy = + | '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' + | 'BUCKETS_TABLE_ID_ASC' + | 'BUCKETS_TABLE_ID_DESC' + | 'FILES_TABLE_ID_ASC' + | 'FILES_TABLE_ID_DESC' + | 'BUCKETS_TABLE_NAME_ASC' + | 'BUCKETS_TABLE_NAME_DESC' + | 'FILES_TABLE_NAME_ASC' + | 'FILES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENDPOINT_ASC' + | 'ENDPOINT_DESC' + | 'PUBLIC_URL_PREFIX_ASC' + | 'PUBLIC_URL_PREFIX_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' + | 'HAS_PATH_SHARES_ASC' + | 'HAS_PATH_SHARES_DESC' + | 'PATH_SHARES_TABLE_ID_ASC' + | 'PATH_SHARES_TABLE_ID_DESC' + | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' + | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DEFAULT_MAX_FILE_SIZE_ASC' + | 'DEFAULT_MAX_FILE_SIZE_DESC' + | 'MAX_FILENAME_LENGTH_ASC' + | 'MAX_FILENAME_LENGTH_DESC' + | 'CACHE_TTL_SECONDS_ASC' + | 'CACHE_TTL_SECONDS_DESC' + | 'MAX_BULK_FILES_ASC' + | 'MAX_BULK_FILES_DESC' + | 'MAX_BULK_TOTAL_SIZE_ASC' + | 'MAX_BULK_TOTAL_SIZE_DESC' + | 'HAS_VERSIONING_ASC' + | 'HAS_VERSIONING_DESC' + | 'HAS_CONTENT_HASH_ASC' + | 'HAS_CONTENT_HASH_DESC' + | 'HAS_CUSTOM_KEYS_ASC' + | 'HAS_CUSTOM_KEYS_DESC' + | 'HAS_AUDIT_LOG_ASC' + | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' + | 'FILE_EVENTS_TABLE_ID_ASC' + | 'FILE_EVENTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type EventsModuleOrderBy = + | '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' + | 'EVENTS_TABLE_ID_ASC' + | 'EVENTS_TABLE_ID_DESC' + | 'EVENTS_TABLE_NAME_ASC' + | 'EVENTS_TABLE_NAME_DESC' + | 'EVENT_AGGREGATES_TABLE_ID_ASC' + | 'EVENT_AGGREGATES_TABLE_ID_DESC' + | 'EVENT_AGGREGATES_TABLE_NAME_ASC' + | 'EVENT_AGGREGATES_TABLE_NAME_DESC' + | 'EVENT_TYPES_TABLE_ID_ASC' + | 'EVENT_TYPES_TABLE_ID_DESC' + | 'EVENT_TYPES_TABLE_NAME_ASC' + | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'LEVELS_TABLE_ID_ASC' + | 'LEVELS_TABLE_ID_DESC' + | 'LEVELS_TABLE_NAME_ASC' + | 'LEVELS_TABLE_NAME_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' + | 'LEVEL_GRANTS_TABLE_ID_ASC' + | 'LEVEL_GRANTS_TABLE_ID_DESC' + | 'LEVEL_GRANTS_TABLE_NAME_ASC' + | 'LEVEL_GRANTS_TABLE_NAME_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' + | 'RECORD_EVENT_ASC' + | 'RECORD_EVENT_DESC' + | 'REMOVE_EVENT_ASC' + | 'REMOVE_EVENT_DESC' + | 'TG_EVENT_ASC' + | 'TG_EVENT_DESC' + | 'TG_EVENT_TOGGLE_ASC' + | 'TG_EVENT_TOGGLE_DESC' + | 'TG_EVENT_TOGGLE_BOOL_ASC' + | 'TG_EVENT_TOGGLE_BOOL_DESC' + | 'TG_EVENT_BOOL_ASC' + | 'TG_EVENT_BOOL_DESC' + | 'UPSERT_AGGREGATE_ASC' + | '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' + | 'LEVEL_ACHIEVED_DESC' + | 'TG_CHECK_ACHIEVEMENTS_ASC' + | 'TG_CHECK_ACHIEVEMENTS_DESC' + | 'GRANT_ACHIEVEMENT_ASC' + | 'GRANT_ACHIEVEMENT_DESC' + | 'TG_ACHIEVEMENT_REWARD_ASC' + | 'TG_ACHIEVEMENT_REWARD_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_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'; +export type EntityTypeProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | '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_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateDefaultIdsModuleInput { + clientMutationId?: string; + defaultIdsModule: { + databaseId: string; + }; +} +export interface DefaultIdsModulePatch { + databaseId?: string | null; +} +export interface UpdateDefaultIdsModuleInput { + clientMutationId?: string; + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; +} +export interface DeleteDefaultIdsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + membershipTypesModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface MembershipTypesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; +} +export interface DeleteMembershipTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface 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 { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + sessionsTableId?: string | null; +} +export interface UpdateSessionSecretsModuleInput { + clientMutationId?: string; + id: string; + sessionSecretsModulePatch: SessionSecretsModulePatch; +} +export interface DeleteSessionSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateI18NModuleInput { + clientMutationId?: string; + i18NModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface I18NModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + settingsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateI18NModuleInput { + clientMutationId?: string; + id: string; + i18NModulePatch: I18NModulePatch; +} +export interface DeleteI18NModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserCredentialsModuleInput { + clientMutationId?: string; + userCredentialsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface UserCredentialsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUserCredentialsModuleInput { + clientMutationId?: string; + id: string; + userCredentialsModulePatch: UserCredentialsModulePatch; +} +export interface DeleteUserCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserSettingsModuleInput { + clientMutationId?: string; + userSettingsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + }; +} +export interface UserSettingsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; +} +export interface UpdateUserSettingsModuleInput { + clientMutationId?: string; + id: string; + userSettingsModulePatch: UserSettingsModulePatch; +} +export interface DeleteUserSettingsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConfigSecretsUserModuleInput { + clientMutationId?: string; + configSecretsUserModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsUserModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + configDefinitionsTableId?: 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 CreateIdentityProvidersModuleInput { + clientMutationId?: string; + identityProvidersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountsModuleInput { + clientMutationId?: string; + connectedAccountsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConnectedAccountsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; +} +export interface DeleteConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailsModuleInput { + clientMutationId?: string; + emailsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface EmailsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateEmailsModuleInput { + clientMutationId?: string; + id: string; + emailsModulePatch: EmailsModulePatch; +} +export interface DeleteEmailsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePhoneNumbersModuleInput { + clientMutationId?: string; + phoneNumbersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface PhoneNumbersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdatePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; +} +export interface DeletePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRateLimitsModuleInput { + clientMutationId?: string; + rateLimitsModule: { + databaseId: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; + }; +} +export interface RateLimitsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +export interface UpdateRateLimitsModuleInput { + clientMutationId?: string; + id: string; + rateLimitsModulePatch: RateLimitsModulePatch; +} +export interface DeleteRateLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUsersModuleInput { + clientMutationId?: string; + usersModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface UsersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUsersModuleInput { + clientMutationId?: string; + id: string; + usersModulePatch: UsersModulePatch; +} +export interface DeleteUsersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnCredentialsModuleInput { + clientMutationId?: string; + webauthnCredentialsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface WebauthnCredentialsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; + webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; +} +export interface DeleteWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAddressesModuleInput { + clientMutationId?: string; + cryptoAddressesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface CryptoAddressesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; +} +export interface DeleteCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDenormalizedTableFieldInput { + clientMutationId?: string; + denormalizedTableField: { + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; + }; +} +export interface DenormalizedTableFieldPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface UpdateDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; +} +export interface DeleteDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RlsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRlsModuleInput { + clientMutationId?: string; + id: string; + rlsModulePatch: RlsModulePatch; +} +export interface DeleteRlsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintInput { + clientMutationId?: string; + blueprint: { + ownerId: string; + databaseId: string; + name: string; + displayName: string; + description?: string; + definition: Record; + templateId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintPatch { + ownerId?: string | null; + databaseId?: string | null; + name?: string | null; + displayName?: string | null; + description?: string | null; + definition?: Record | null; + templateId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintInput { + clientMutationId?: string; + id: string; + blueprintPatch: BlueprintPatch; +} +export interface DeleteBlueprintInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + blueprintTemplate: { + name: string; + version?: string; + displayName: string; + description?: string; + ownerId: string; + visibility?: string; + categories?: string[]; + tags?: string[]; + definition: Record; + definitionSchemaVersion?: string; + source?: string; + complexity?: string; + copyCount?: number; + forkCount?: number; + forkedFromId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintTemplatePatch { + name?: string | null; + version?: string | null; + displayName?: string | null; + description?: string | null; + ownerId?: string | null; + visibility?: string | null; + categories?: string[] | null; + tags?: string[] | null; + definition?: Record | null; + definitionSchemaVersion?: string | null; + source?: string | null; + complexity?: string | null; + copyCount?: number | null; + forkCount?: number | null; + forkedFromId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintTemplateInput { + clientMutationId?: string; + id: string; + blueprintTemplatePatch: BlueprintTemplatePatch; +} +export interface DeleteBlueprintTemplateInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintConstructionInput { + clientMutationId?: string; + blueprintConstruction: { + blueprintId: string; + databaseId: string; + schemaId?: string; + status?: string; + errorDetails?: string; + tableMap?: Record; + constructedDefinition?: Record; + constructedAt?: string; + }; +} +export interface BlueprintConstructionPatch { + blueprintId?: string | null; + databaseId?: string | null; + schemaId?: string | null; + status?: string | null; + errorDetails?: string | null; + tableMap?: Record | null; + constructedDefinition?: Record | null; + constructedAt?: string | null; +} +export interface UpdateBlueprintConstructionInput { + clientMutationId?: string; + id: string; + blueprintConstructionPatch: BlueprintConstructionPatch; +} +export interface DeleteBlueprintConstructionInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAuthModuleInput { + clientMutationId?: string; + cryptoAuthModule: { + 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; + }; +} +export interface CryptoAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface UpdateCryptoAuthModuleInput { + clientMutationId?: string; + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; +} +export interface DeleteCryptoAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRateLimitMetersModuleInput { + clientMutationId?: string; + rateLimitMetersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RateLimitMetersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; + rateLimitMetersModulePatch: RateLimitMetersModulePatch; +} +export interface DeleteRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSessionsModuleInput { + clientMutationId?: string; + sessionsModule: { + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; + }; +} +export interface SessionsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: IntervalInput | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface UpdateSessionsModuleInput { + clientMutationId?: string; + id: string; + sessionsModulePatch: SessionsModulePatch; +} +export interface DeleteSessionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMerkleStoreModuleInput { + clientMutationId?: string; + merkleStoreModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + }; +} +export interface MerkleStoreModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; +} +export interface UpdateMerkleStoreModuleInput { + clientMutationId?: string; + id: string; + merkleStoreModulePatch: MerkleStoreModulePatch; +} +export interface DeleteMerkleStoreModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateGraphModuleInput { + clientMutationId?: string; + graphModule: { + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface GraphModulePatch { + databaseId?: string | null; + publicSchemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + scope?: string | null; + prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; + executionsTableId?: string | null; + outputsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateGraphModuleInput { + clientMutationId?: string; + id: string; + graphModulePatch: GraphModulePatch; +} +export interface DeleteGraphModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodes?: Record; + useRls?: boolean; + fields?: Record[]; + grants?: Record; + policies?: Record; + outFields?: string[]; + }; +} +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 CreateConfigSecretsModuleInput { + clientMutationId?: string; + configSecretsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + hasConfig?: boolean; + }; +} +export interface ConfigSecretsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface UpdateConfigSecretsModuleInput { + clientMutationId?: string; + id: string; + configSecretsModulePatch: ConfigSecretsModulePatch; +} +export interface DeleteConfigSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + invitesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface InvitesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + invitesModulePatch: InvitesModulePatch; +} +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseProvisionModuleInput { + 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; + }; +} +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; + databaseId?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; +} +export interface DeleteDatabaseProvisionModuleInput { + 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; + 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 UpdateRealtimeModuleInput { + clientMutationId?: string; + id: string; + realtimeModulePatch: RealtimeModulePatch; +} +export interface DeleteRealtimeModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnAuthModuleInput { + clientMutationId?: string; + webauthnAuthModule: { + 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; + }; +} +export interface WebauthnAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + authSettingsTableId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpiry?: IntervalInput | null; +} +export interface UpdateWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; + webauthnAuthModulePatch: WebauthnAuthModulePatch; +} +export interface DeleteWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceModuleInput { + clientMutationId?: string; + namespaceModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface NamespaceModulePatch { + 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; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateNamespaceModuleInput { + clientMutationId?: string; + id: string; + namespaceModulePatch: NamespaceModulePatch; +} +export interface DeleteNamespaceModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + computeLogModulePatch: ComputeLogModulePatch; +} +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + storageLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface StorageLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + storageLogModulePatch: StorageLogModulePatch; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + dbUsageModulePatch: DbUsageModulePatch; +} +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNotificationsModuleInput { + clientMutationId?: string; + notificationsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: string; + privateApiName?: string; + }; +} +export interface NotificationsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateNotificationsModuleInput { + clientMutationId?: string; + id: string; + notificationsModulePatch: NotificationsModulePatch; +} +export interface DeleteNotificationsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlansModuleInput { + clientMutationId?: string; + plansModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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 PlansModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 UpdatePlansModuleInput { + clientMutationId?: string; + id: string; + plansModulePatch: PlansModulePatch; +} +export interface DeletePlansModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateHierarchyModuleInput { + clientMutationId?: string; + hierarchyModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + }; +} +export interface HierarchyModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + hierarchyModulePatch: HierarchyModulePatch; +} +export interface DeleteHierarchyModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingModuleInput { + clientMutationId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + billingModulePatch: BillingModulePatch; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingProviderModuleInput { + clientMutationId?: string; + billingProviderModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingProviderModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingProviderModuleInput { + clientMutationId?: string; + id: string; + billingProviderModulePatch: BillingProviderModulePatch; +} +export interface DeleteBillingProviderModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateProfilesModuleInput { + clientMutationId?: string; + profilesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ProfilesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + profilesModulePatch: ProfilesModulePatch; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + 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 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 CreateFunctionModuleInput { + clientMutationId?: string; + functionModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + secretDefinitionsTableId?: string; + requirementsTableId?: string; + configDefinitionsTableId?: string; + configRequirementsTableId?: string; + definitionsTableName?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + secretDefinitionsTableName?: string; + requirementsTableName?: string; + configRequirementsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface FunctionModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + secretDefinitionsTableId?: string | null; + requirementsTableId?: string | null; + configDefinitionsTableId?: string | null; + configRequirementsTableId?: string | null; + definitionsTableName?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + secretDefinitionsTableName?: string | null; + requirementsTableName?: string | null; + configRequirementsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateFunctionModuleInput { + clientMutationId?: string; + id: string; + functionModulePatch: FunctionModulePatch; +} +export interface DeleteFunctionModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserAuthModuleInput { + clientMutationId?: string; + userAuthModule: { + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + 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; + }; +} +export interface UserAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInCrossOriginFunction?: string | null; + requestCrossOriginTokenFunction?: string | null; + extendTokenExpires?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + userAuthModulePatch: UserAuthModulePatch; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentModuleInput { + clientMutationId?: string; + agentModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + knowledgeTableId?: string; + planTableId?: string; + skillTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + knowledgeTableName?: string; + planTableName?: string; + skillTableName?: string; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + knowledgeConfig?: Record; + skillsConfig?: Record; + knowledgePolicies?: Record; + provisions?: Record; + }; +} +export interface AgentModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + threadTableId?: string | null; + messageTableId?: string | null; + taskTableId?: string | null; + promptsTableId?: string | null; + knowledgeTableId?: string | null; + planTableId?: string | null; + skillTableId?: string | null; + threadTableName?: string | null; + messageTableName?: string | null; + taskTableName?: string | null; + promptsTableName?: string | null; + knowledgeTableName?: string | null; + planTableName?: string | null; + skillTableName?: string | null; + hasKnowledge?: boolean | null; + hasPlans?: boolean | null; + hasSkills?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + knowledgeConfig?: Record | null; + skillsConfig?: Record | null; + knowledgePolicies?: Record | null; + provisions?: Record | null; +} +export interface UpdateAgentModuleInput { + clientMutationId?: string; + id: string; + agentModulePatch: AgentModulePatch; +} +export interface DeleteAgentModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateLimitsModuleInput { + clientMutationId?: string; + limitsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface LimitsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + limitCreditsTableId?: string | null; + eventsTableId?: string | null; + creditCodesTableId?: string | null; + creditCodeItemsTableId?: string | null; + creditRedemptionsTableId?: string | null; + aggregateTableId?: string | null; + limitCapsTableId?: string | null; + limitCapsDefaultsTableId?: string | null; + capCheckTrigger?: string | null; + resolveCapFunction?: string | null; + limitWarningsTableId?: string | null; + limitWarningStateTableId?: string | null; + limitCheckSoftFunction?: string | null; + limitAggregateCheckSoftFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateLimitsModuleInput { + clientMutationId?: string; + id: string; + limitsModulePatch: LimitsModulePatch; +} +export interface DeleteLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + membershipsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + apiName?: string; + privateApiName?: string; + }; +} +export interface MembershipsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + membershipsModulePatch: MembershipsModulePatch; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageModuleInput { + clientMutationId?: string; + storageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + policies?: Record; + provisions?: Record; + 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; + apiName?: string; + privateApiName?: string; + }; +} +export interface StorageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: IntervalInput | null; + fileEventsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateStorageModuleInput { + clientMutationId?: string; + id: string; + storageModulePatch: StorageModulePatch; +} +export interface DeleteStorageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEventsModuleInput { + clientMutationId?: string; + eventsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface EventsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateEventsModuleInput { + clientMutationId?: string; + id: string; + eventsModulePatch: EventsModulePatch; +} +export interface DeleteEventsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEntityTypeProvisionInput { + clientMutationId?: string; + entityTypeProvision: { + databaseId: string; + name: string; + prefix: string; + description?: string; + parentEntity?: string; + tableName?: string; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: Record; + namespaces?: Record; + functions?: Record; + graphs?: Record; + agents?: Record; + skipEntityPolicies?: boolean; + tableProvision?: Record; + outMembershipType?: number; + outEntityTableId?: string; + outEntityTableName?: string; + outInstalledModules?: string[]; + outStorageModuleId?: string; + outBucketsTableId?: string; + outFilesTableId?: string; + outPathSharesTableId?: string; + outInvitesModuleId?: string; + outNamespaceModuleId?: string; + outNamespacesTableId?: string; + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outRequirementsTableId?: string; + outConfigRequirementsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; + }; +} +export interface EntityTypeProvisionPatch { + databaseId?: string | null; + name?: string | null; + prefix?: string | null; + description?: string | null; + parentEntity?: string | null; + tableName?: string | null; + isVisible?: boolean | null; + hasLimits?: boolean | null; + hasProfiles?: boolean | null; + hasLevels?: boolean | null; + hasInvites?: boolean | null; + hasInviteAchievements?: boolean | null; + storage?: Record | null; + namespaces?: Record | null; + functions?: Record | null; + graphs?: Record | null; + agents?: Record | null; + skipEntityPolicies?: boolean | null; + tableProvision?: Record | null; + outMembershipType?: number | null; + outEntityTableId?: string | null; + outEntityTableName?: string | null; + outInstalledModules?: string[] | null; + outStorageModuleId?: string | null; + outBucketsTableId?: string | null; + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + outInvitesModuleId?: string | null; + outNamespaceModuleId?: string | null; + outNamespacesTableId?: string | null; + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outRequirementsTableId?: string | null; + outConfigRequirementsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: string | null; +} +export interface UpdateEntityTypeProvisionInput { + clientMutationId?: string; + id: string; + entityTypeProvisionPatch: EntityTypeProvisionPatch; +} +export interface DeleteEntityTypeProvisionInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Blueprint: { + blueprintConstructions: 'BlueprintConstruction', + }, + BlueprintTemplate: { + blueprintTemplatesByForkedFromId: 'BlueprintTemplate', + blueprintsByTemplateId: 'Blueprint', + }, + MerkleStoreModule: { + graphModules: 'GraphModule', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ConstructBlueprintInput { + clientMutationId?: string; + blueprintId?: string; + schemaId?: string; +} +export interface ProvisionFullTextSearchInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionIndexInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionCheckConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionUniqueConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} +export interface ProvisionSpatialRelationInput { + clientMutationId?: string; + pDatabaseId?: string; + pSourceTableId?: string; + pSourceFieldId?: string; + pTargetTableId?: string; + pTargetFieldId?: string; + pName?: string; + pOperator?: string; + pParamName?: string; +} +export interface ProvisionTableInput { + clientMutationId?: string; + databaseId?: string; + schemaId?: string; + tableName?: string; + tableId?: string; + nodes?: Record; + fields?: Record; + policies?: Record; + grants?: Record; + useRls?: boolean; + indexes?: Record; + fullTextSearches?: Record; + uniqueConstraints?: Record; + description?: string; +} +export interface ProvisionRelationInput { + clientMutationId?: string; + databaseId?: string; + relationType?: string; + sourceTableId?: string; + targetTableId?: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + createIndex?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; +} +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintToManyBlueprintConstructionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintConstructionFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintConstructionFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintConstructionFilter; +} +/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintTemplateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintTemplateFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintTemplateFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintTemplateFilter; +} +/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintFilter; +} +/** 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; +} +/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +export interface 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 filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ +export interface JSONListFilter { + /** 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[]; + /** 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 list of values. */ + contains?: Record[]; + /** Contained by the specified list of values. */ + containedBy?: Record[]; + /** Overlaps the specified list of values. */ + overlaps?: Record[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: Record; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: Record; + /** Any array item is less than the specified value. */ + anyLessThan?: Record; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: Record; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: Record; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: Record; +} +/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; + /** Filter by the object’s `blueprintConstructions` relation. */ + blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; + /** `blueprintConstructions` exist. */ + blueprintConstructionsExist?: boolean; +} +/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: GraphModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: GraphModuleFilter[]; + /** Negates the expression. */ + not?: GraphModuleFilter; + /** 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). */ + 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface ConstructBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ConstructBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionFullTextSearchPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionIndexPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionIndexPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionCheckConstraintPayload { + clientMutationId?: string | null; +} +export type ProvisionCheckConstraintPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ProvisionUniqueConstraintPayload { + clientMutationId?: string | null; +} +export type ProvisionUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; +}; +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyTemplateToBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionSpatialRelationPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionTablePayload { + clientMutationId?: string | null; + result?: ProvisionTableRecord[] | null; +} +export type ProvisionTablePayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ProvisionTableRecordSelect; + }; +}; +export interface ProvisionRelationPayload { + clientMutationId?: string | null; + result?: ProvisionRelationRecord[] | null; +} +export type ProvisionRelationPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ProvisionRelationRecordSelect; + }; +}; +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 CreateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was created by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type CreateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was updated by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type UpdateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was deleted by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type DeleteDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was created by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type CreateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was updated by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type UpdateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was deleted by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type DeleteMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was created by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type CreateUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +export interface UpdateUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was updated by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type UpdateUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +export interface DeleteUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was deleted by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type DeleteUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +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 CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface 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 CreateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was created by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type CreateUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +export interface UpdateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was updated by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type UpdateUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +export interface DeleteUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was deleted by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type DeleteUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +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 CreateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type CreateConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type UpdateConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type DeleteConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type CreateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type UpdateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type DeleteIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type CreateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type UpdateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type DeleteConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type CreateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type UpdateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type DeleteEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type CreatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type UpdatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type DeletePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface CreateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type CreateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface 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 UpdateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type UpdateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface DeleteUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type DeleteUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface CreateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was created by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type CreateWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was updated by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type UpdateWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type DeleteWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface CreateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type CreateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type UpdateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type DeleteCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type CreateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type UpdateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type DeleteDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type CreateRlsModulePayloadSelect = { + clientMutationId?: boolean; + 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; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type UpdateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type DeleteBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface CreateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type CreateBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface UpdateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type UpdateBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface DeleteBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type DeleteBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface CreateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was created by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type CreateBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface UpdateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was updated by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type UpdateBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface DeleteBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was deleted by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type DeleteBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type CreateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type UpdateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type DeleteCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +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 CreateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type CreateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type UpdateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type DeleteSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface CreateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was created by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type CreateMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +export interface UpdateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was updated by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type UpdateMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +export interface DeleteMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was deleted by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type DeleteMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +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 DeleteGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type CreateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type UpdateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type DeleteSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface CreateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type CreateConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type UpdateConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type DeleteConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type CreateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type UpdateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type DeleteDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +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 { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type CreateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type UpdateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type DeleteWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +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 CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type CreateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type UpdateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type DeleteComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type CreateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type UpdateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type DeleteStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type CreateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type UpdateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type DeleteTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type UpdateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type DeleteDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface CreateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type CreateNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +export interface UpdateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type UpdateNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +export interface DeleteNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type DeleteNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +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 CreateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was created by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type CreateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was updated by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type UpdateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was deleted by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type DeleteHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface CreateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type CreateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type UpdateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface DeleteBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type DeleteBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface CreateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type CreateBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface UpdateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type UpdateBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface DeleteBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type DeleteBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type CreateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was updated by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type UpdateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was deleted by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type DeleteProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +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 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 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 CreateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was created by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type CreateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + 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 CreateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was created by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type CreateAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface UpdateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was updated by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type UpdateAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface DeleteAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was deleted by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type DeleteAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type CreateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was updated by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type UpdateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was deleted by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type DeleteLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + 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 CreateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was created by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type CreateStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface UpdateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was updated by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type UpdateStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface DeleteStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was deleted by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type DeleteStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface CreateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was created by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type CreateEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface UpdateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was updated by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type UpdateEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface DeleteEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was deleted by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type DeleteEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type CreateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type UpdateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type DeleteEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface ProvisionTableRecord { + outTableId?: string | null; + outFields?: string[] | null; +} +export type ProvisionTableRecordSelect = { + outTableId?: boolean; + outFields?: boolean; +}; +export interface ProvisionRelationRecord { + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export type ProvisionRelationRecordSelect = { + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; +/** A `DefaultIdsModule` edge in the connection. */ +export interface DefaultIdsModuleEdge { + cursor?: string | null; + /** The `DefaultIdsModule` at the end of the edge. */ + node?: DefaultIdsModule | null; +} +export type DefaultIdsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultIdsModuleSelect; + }; +}; +/** A `MembershipTypesModule` edge in the connection. */ +export interface MembershipTypesModuleEdge { + cursor?: string | null; + /** The `MembershipTypesModule` at the end of the edge. */ + node?: MembershipTypesModule | null; +} +export type MembershipTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `SessionSecretsModule` at the end of the edge. */ + node?: SessionSecretsModule | null; +} +export type SessionSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; +} +export type DevicesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DevicesModuleSelect; + }; +}; +/** A `I18NModule` edge in the connection. */ +export interface I18NModuleEdge { + cursor?: string | null; + /** The `I18NModule` at the end of the edge. */ + node?: I18NModule | null; +} +export type I18NModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `UserSettingsModule` at the end of the edge. */ + node?: UserSettingsModule | null; +} +export type UserSettingsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsModuleSelect; + }; +}; +/** 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 `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 `ConnectedAccountsModule` edge in the connection. */ +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + /** The `ConnectedAccountsModule` at the end of the edge. */ + node?: ConnectedAccountsModule | null; +} +export type ConnectedAccountsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountsModuleSelect; + }; +}; +/** A `EmailsModule` edge in the connection. */ +export interface EmailsModuleEdge { + cursor?: string | null; + /** The `EmailsModule` at the end of the edge. */ + node?: EmailsModule | null; +} +export type EmailsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailsModuleSelect; + }; +}; +/** A `PhoneNumbersModule` edge in the connection. */ +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + /** The `PhoneNumbersModule` at the end of the edge. */ + node?: PhoneNumbersModule | null; +} +export type PhoneNumbersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumbersModuleSelect; + }; +}; +/** A `RateLimitsModule` edge in the connection. */ +export interface RateLimitsModuleEdge { + cursor?: string | null; + /** The `RateLimitsModule` at the end of the edge. */ + node?: RateLimitsModule | null; +} +export type RateLimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitsModuleSelect; + }; +}; +/** A `UsersModule` edge in the connection. */ +export interface UsersModuleEdge { + cursor?: string | null; + /** The `UsersModule` at the end of the edge. */ + node?: UsersModule | null; +} +export type UsersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UsersModuleSelect; + }; +}; +/** A `WebauthnCredentialsModule` edge in the connection. */ +export interface WebauthnCredentialsModuleEdge { + cursor?: string | null; + /** The `WebauthnCredentialsModule` at the end of the edge. */ + node?: WebauthnCredentialsModule | null; +} +export type WebauthnCredentialsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnCredentialsModuleSelect; + }; +}; +/** A `CryptoAddressesModule` edge in the connection. */ +export interface CryptoAddressesModuleEdge { + cursor?: string | null; + /** The `CryptoAddressesModule` at the end of the edge. */ + node?: CryptoAddressesModule | null; +} +export type CryptoAddressesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressesModuleSelect; + }; +}; +/** A `DenormalizedTableField` edge in the connection. */ +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + /** The `DenormalizedTableField` at the end of the edge. */ + node?: DenormalizedTableField | null; +} +export type DenormalizedTableFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DenormalizedTableFieldSelect; + }; +}; +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { + cursor?: string | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; +} +export type RlsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsModuleSelect; + }; +}; +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} +export type BlueprintEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintSelect; + }; +}; +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { + cursor?: string | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; +} +export type BlueprintTemplateEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintTemplateSelect; + }; +}; +/** A `BlueprintConstruction` edge in the connection. */ +export interface BlueprintConstructionEdge { + cursor?: string | null; + /** The `BlueprintConstruction` at the end of the edge. */ + node?: BlueprintConstruction | null; +} +export type BlueprintConstructionEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintConstructionSelect; + }; +}; +/** A `CryptoAuthModule` edge in the connection. */ +export interface CryptoAuthModuleEdge { + cursor?: string | null; + /** The `CryptoAuthModule` at the end of the edge. */ + node?: CryptoAuthModule | null; +} +export type CryptoAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAuthModuleSelect; + }; +}; +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; +} +export type RateLimitMetersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitMetersModuleSelect; + }; +}; +/** A `SessionsModule` edge in the connection. */ +export interface SessionsModuleEdge { + cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ + node?: SessionsModule | null; +} +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +/** 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 `GraphModule` edge in the connection. */ +export interface GraphModuleEdge { + cursor?: string | null; + /** The `GraphModule` at the end of the edge. */ + node?: GraphModule | null; +} +export type GraphModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: GraphModuleSelect; + }; +}; +/** 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 `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | null; +} +export type ConfigSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsModuleSelect; + }; +}; +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; +} +export type DatabaseProvisionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseProvisionModuleSelect; + }; +}; +/** 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: RealtimeModuleSelect; + }; +}; +/** A `WebauthnAuthModule` edge in the connection. */ +export interface WebauthnAuthModuleEdge { + cursor?: string | null; + /** The `WebauthnAuthModule` at the end of the edge. */ + node?: WebauthnAuthModule | null; +} +export type WebauthnAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnAuthModuleSelect; + }; +}; +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { + cursor?: string | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; +} +export type NamespaceModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceModuleSelect; + }; +}; +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +export type ComputeLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ComputeLogModuleSelect; + }; +}; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +export type StorageLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageLogModuleSelect; + }; +}; +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; +} +export type TransferLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TransferLogModuleSelect; + }; +}; +/** A `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 `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { + cursor?: string | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; +} +export type NotificationsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NotificationsModuleSelect; + }; +}; +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; +} +export type PlansModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlansModuleSelect; + }; +}; +/** A `HierarchyModule` edge in the connection. */ +export interface HierarchyModuleEdge { + cursor?: string | null; + /** The `HierarchyModule` at the end of the edge. */ + node?: HierarchyModule | null; +} +export type HierarchyModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: HierarchyModuleSelect; + }; +}; +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { + cursor?: string | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; +} +export type BillingModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: BillingModuleSelect; + }; +}; +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { + cursor?: string | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; +} +export type BillingProviderModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: BillingProviderModuleSelect; + }; +}; +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { + cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; +} +export type ProfilesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ProfilesModuleSelect; + }; +}; +/** 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 `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 `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +export type FunctionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionModuleSelect; + }; +}; +/** A `UserAuthModule` edge in the connection. */ +export interface UserAuthModuleEdge { + cursor?: string | null; + /** The `UserAuthModule` at the end of the edge. */ + node?: UserAuthModule | null; +} +export type UserAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserAuthModuleSelect; + }; +}; +/** A `AgentModule` edge in the connection. */ +export interface AgentModuleEdge { + cursor?: string | null; + /** The `AgentModule` at the end of the edge. */ + node?: AgentModule | null; +} +export type AgentModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentModuleSelect; + }; +}; +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { + cursor?: string | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; +} +export type LimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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 `StorageModule` edge in the connection. */ +export interface StorageModuleEdge { + cursor?: string | null; + /** The `StorageModule` at the end of the edge. */ + node?: StorageModule | null; +} +export type StorageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageModuleSelect; + }; +}; +/** A `EventsModule` edge in the connection. */ +export interface EventsModuleEdge { + cursor?: string | null; + /** The `EventsModule` at the end of the edge. */ + node?: EventsModule | null; +} +export type EventsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EventsModuleSelect; + }; +}; +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | null; +} +export type EntityTypeProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: EntityTypeProvisionSelect; + }; +}; diff --git a/sdk/constructive-cli/src/public/orm/models/agentModule.ts b/sdk/constructive-cli/src/modules/orm/models/agentModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/agentModule.ts rename to sdk/constructive-cli/src/modules/orm/models/agentModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/billingModule.ts b/sdk/constructive-cli/src/modules/orm/models/billingModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/billingModule.ts rename to sdk/constructive-cli/src/modules/orm/models/billingModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/billingProviderModule.ts b/sdk/constructive-cli/src/modules/orm/models/billingProviderModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/billingProviderModule.ts rename to sdk/constructive-cli/src/modules/orm/models/billingProviderModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/blueprint.ts b/sdk/constructive-cli/src/modules/orm/models/blueprint.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/blueprint.ts rename to sdk/constructive-cli/src/modules/orm/models/blueprint.ts diff --git a/sdk/constructive-cli/src/public/orm/models/blueprintConstruction.ts b/sdk/constructive-cli/src/modules/orm/models/blueprintConstruction.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/blueprintConstruction.ts rename to sdk/constructive-cli/src/modules/orm/models/blueprintConstruction.ts diff --git a/sdk/constructive-cli/src/public/orm/models/blueprintTemplate.ts b/sdk/constructive-cli/src/modules/orm/models/blueprintTemplate.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/blueprintTemplate.ts rename to sdk/constructive-cli/src/modules/orm/models/blueprintTemplate.ts diff --git a/sdk/constructive-cli/src/public/orm/models/computeLogModule.ts b/sdk/constructive-cli/src/modules/orm/models/computeLogModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/computeLogModule.ts rename to sdk/constructive-cli/src/modules/orm/models/computeLogModule.ts diff --git a/sdk/constructive-cli/src/modules/orm/models/configSecretsModule.ts b/sdk/constructive-cli/src/modules/orm/models/configSecretsModule.ts new file mode 100644 index 0000000000..5d482c9ccf --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/configSecretsModule.ts @@ -0,0 +1,244 @@ +/** + * ConfigSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsModule, + ConfigSecretsModuleWithRelations, + ConfigSecretsModuleSelect, + ConfigSecretsModuleFilter, + ConfigSecretsModuleOrderBy, + CreateConfigSecretsModuleInput, + UpdateConfigSecretsModuleInput, + ConfigSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModule', + document, + variables, + transform: (data: { + configSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModule', + document, + variables, + transform: (data: { + configSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsModule', + 'createConfigSecretsModule', + 'configSecretsModule', + args.select, + args.data, + 'CreateConfigSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'createConfigSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsModule', + 'updateConfigSecretsModule', + 'configSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsModuleInput', + 'id', + 'configSecretsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'updateConfigSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsModule', + 'deleteConfigSecretsModule', + 'configSecretsModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'deleteConfigSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-cli/src/modules/orm/models/configSecretsOrgModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts rename to sdk/constructive-cli/src/modules/orm/models/configSecretsOrgModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-cli/src/modules/orm/models/configSecretsUserModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts rename to sdk/constructive-cli/src/modules/orm/models/configSecretsUserModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/connectedAccountsModule.ts b/sdk/constructive-cli/src/modules/orm/models/connectedAccountsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/connectedAccountsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/connectedAccountsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/cryptoAddressesModule.ts b/sdk/constructive-cli/src/modules/orm/models/cryptoAddressesModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/cryptoAddressesModule.ts rename to sdk/constructive-cli/src/modules/orm/models/cryptoAddressesModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/cryptoAuthModule.ts b/sdk/constructive-cli/src/modules/orm/models/cryptoAuthModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/cryptoAuthModule.ts rename to sdk/constructive-cli/src/modules/orm/models/cryptoAuthModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/databaseProvisionModule.ts b/sdk/constructive-cli/src/modules/orm/models/databaseProvisionModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/databaseProvisionModule.ts rename to sdk/constructive-cli/src/modules/orm/models/databaseProvisionModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/dbUsageModule.ts b/sdk/constructive-cli/src/modules/orm/models/dbUsageModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/dbUsageModule.ts rename to sdk/constructive-cli/src/modules/orm/models/dbUsageModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/defaultIdsModule.ts b/sdk/constructive-cli/src/modules/orm/models/defaultIdsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/defaultIdsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/defaultIdsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/denormalizedTableField.ts b/sdk/constructive-cli/src/modules/orm/models/denormalizedTableField.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/denormalizedTableField.ts rename to sdk/constructive-cli/src/modules/orm/models/denormalizedTableField.ts diff --git a/sdk/constructive-cli/src/public/orm/models/devicesModule.ts b/sdk/constructive-cli/src/modules/orm/models/devicesModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/devicesModule.ts rename to sdk/constructive-cli/src/modules/orm/models/devicesModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/emailsModule.ts b/sdk/constructive-cli/src/modules/orm/models/emailsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/emailsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/emailsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/entityTypeProvision.ts b/sdk/constructive-cli/src/modules/orm/models/entityTypeProvision.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/entityTypeProvision.ts rename to sdk/constructive-cli/src/modules/orm/models/entityTypeProvision.ts diff --git a/sdk/constructive-cli/src/public/orm/models/eventsModule.ts b/sdk/constructive-cli/src/modules/orm/models/eventsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/eventsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/eventsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/functionModule.ts b/sdk/constructive-cli/src/modules/orm/models/functionModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/functionModule.ts rename to sdk/constructive-cli/src/modules/orm/models/functionModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/graphModule.ts b/sdk/constructive-cli/src/modules/orm/models/graphModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/graphModule.ts rename to sdk/constructive-cli/src/modules/orm/models/graphModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/hierarchyModule.ts b/sdk/constructive-cli/src/modules/orm/models/hierarchyModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/hierarchyModule.ts rename to sdk/constructive-cli/src/modules/orm/models/hierarchyModule.ts diff --git a/sdk/constructive-cli/src/modules/orm/models/i18NModule.ts b/sdk/constructive-cli/src/modules/orm/models/i18NModule.ts new file mode 100644 index 0000000000..a1162a5f5f --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/i18NModule.ts @@ -0,0 +1,244 @@ +/** + * I18NModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + I18NModule, + I18NModuleWithRelations, + I18NModuleSelect, + I18NModuleFilter, + I18NModuleOrderBy, + CreateI18NModuleInput, + UpdateI18NModuleInput, + I18NModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class I18NModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18nModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18nModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18NModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18NModule', + document, + variables, + transform: (data: { + i18nModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + i18NModule: data.i18nModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18NModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18NModule', + document, + variables, + transform: (data: { + i18nModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + i18NModule: data.i18nModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'I18NModule', + 'createI18NModule', + 'i18NModule', + args.select, + args.data, + 'CreateI18NModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'createI18NModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + I18NModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'I18NModule', + 'updateI18NModule', + 'i18NModule', + args.select, + args.where.id, + args.data, + 'UpdateI18NModuleInput', + 'id', + 'i18NModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'updateI18NModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'I18NModule', + 'deleteI18NModule', + 'i18NModule', + { + id: args.where.id, + }, + 'DeleteI18NModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'deleteI18NModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/identityProvidersModule.ts b/sdk/constructive-cli/src/modules/orm/models/identityProvidersModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/identityProvidersModule.ts rename to sdk/constructive-cli/src/modules/orm/models/identityProvidersModule.ts diff --git a/sdk/constructive-cli/src/modules/orm/models/index.ts b/sdk/constructive-cli/src/modules/orm/models/index.ts new file mode 100644 index 0000000000..2e379a9cce --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/index.ts @@ -0,0 +1,61 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +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 { IdentityProvidersModuleModel } from './identityProvidersModule'; +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 { CryptoAddressesModuleModel } from './cryptoAddressesModule'; +export { DenormalizedTableFieldModel } from './denormalizedTableField'; +export { RlsModuleModel } from './rlsModule'; +export { BlueprintModel } from './blueprint'; +export { BlueprintTemplateModel } from './blueprintTemplate'; +export { BlueprintConstructionModel } from './blueprintConstruction'; +export { CryptoAuthModuleModel } from './cryptoAuthModule'; +export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; +export { SessionsModuleModel } from './sessionsModule'; +export { MerkleStoreModuleModel } from './merkleStoreModule'; +export { GraphModuleModel } from './graphModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; +export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { InvitesModuleModel } from './invitesModule'; +export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; +export { RealtimeModuleModel } from './realtimeModule'; +export { WebauthnAuthModuleModel } from './webauthnAuthModule'; +export { NamespaceModuleModel } from './namespaceModule'; +export { ComputeLogModuleModel } from './computeLogModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; +export { StorageLogModuleModel } from './storageLogModule'; +export { TransferLogModuleModel } from './transferLogModule'; +export { DbUsageModuleModel } from './dbUsageModule'; +export { NotificationsModuleModel } from './notificationsModule'; +export { PlansModuleModel } from './plansModule'; +export { HierarchyModuleModel } from './hierarchyModule'; +export { BillingModuleModel } from './billingModule'; +export { BillingProviderModuleModel } from './billingProviderModule'; +export { ProfilesModuleModel } from './profilesModule'; +export { PermissionsModuleModel } from './permissionsModule'; +export { RelationProvisionModel } from './relationProvision'; +export { FunctionModuleModel } from './functionModule'; +export { UserAuthModuleModel } from './userAuthModule'; +export { AgentModuleModel } from './agentModule'; +export { LimitsModuleModel } from './limitsModule'; +export { MembershipsModuleModel } from './membershipsModule'; +export { StorageModuleModel } from './storageModule'; +export { EventsModuleModel } from './eventsModule'; +export { EntityTypeProvisionModel } from './entityTypeProvision'; diff --git a/sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-cli/src/modules/orm/models/inferenceLogModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts rename to sdk/constructive-cli/src/modules/orm/models/inferenceLogModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/invitesModule.ts b/sdk/constructive-cli/src/modules/orm/models/invitesModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/invitesModule.ts rename to sdk/constructive-cli/src/modules/orm/models/invitesModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/limitsModule.ts b/sdk/constructive-cli/src/modules/orm/models/limitsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/limitsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/limitsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/membershipTypesModule.ts b/sdk/constructive-cli/src/modules/orm/models/membershipTypesModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/membershipTypesModule.ts rename to sdk/constructive-cli/src/modules/orm/models/membershipTypesModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/membershipsModule.ts b/sdk/constructive-cli/src/modules/orm/models/membershipsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/membershipsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/membershipsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/merkleStoreModule.ts b/sdk/constructive-cli/src/modules/orm/models/merkleStoreModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/merkleStoreModule.ts rename to sdk/constructive-cli/src/modules/orm/models/merkleStoreModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/namespaceModule.ts b/sdk/constructive-cli/src/modules/orm/models/namespaceModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/namespaceModule.ts rename to sdk/constructive-cli/src/modules/orm/models/namespaceModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/notificationsModule.ts b/sdk/constructive-cli/src/modules/orm/models/notificationsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/notificationsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/notificationsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/permissionsModule.ts b/sdk/constructive-cli/src/modules/orm/models/permissionsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/permissionsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/permissionsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/phoneNumbersModule.ts b/sdk/constructive-cli/src/modules/orm/models/phoneNumbersModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/phoneNumbersModule.ts rename to sdk/constructive-cli/src/modules/orm/models/phoneNumbersModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/plansModule.ts b/sdk/constructive-cli/src/modules/orm/models/plansModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/plansModule.ts rename to sdk/constructive-cli/src/modules/orm/models/plansModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/profilesModule.ts b/sdk/constructive-cli/src/modules/orm/models/profilesModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/profilesModule.ts rename to sdk/constructive-cli/src/modules/orm/models/profilesModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/rateLimitMetersModule.ts b/sdk/constructive-cli/src/modules/orm/models/rateLimitMetersModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/rateLimitMetersModule.ts rename to sdk/constructive-cli/src/modules/orm/models/rateLimitMetersModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/rateLimitsModule.ts b/sdk/constructive-cli/src/modules/orm/models/rateLimitsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/rateLimitsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/rateLimitsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/realtimeModule.ts b/sdk/constructive-cli/src/modules/orm/models/realtimeModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/realtimeModule.ts rename to sdk/constructive-cli/src/modules/orm/models/realtimeModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/relationProvision.ts b/sdk/constructive-cli/src/modules/orm/models/relationProvision.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/relationProvision.ts rename to sdk/constructive-cli/src/modules/orm/models/relationProvision.ts diff --git a/sdk/constructive-cli/src/public/orm/models/rlsModule.ts b/sdk/constructive-cli/src/modules/orm/models/rlsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/rlsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/rlsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/secureTableProvision.ts b/sdk/constructive-cli/src/modules/orm/models/secureTableProvision.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/secureTableProvision.ts rename to sdk/constructive-cli/src/modules/orm/models/secureTableProvision.ts diff --git a/sdk/constructive-cli/src/public/orm/models/sessionSecretsModule.ts b/sdk/constructive-cli/src/modules/orm/models/sessionSecretsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/sessionSecretsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/sessionSecretsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/sessionsModule.ts b/sdk/constructive-cli/src/modules/orm/models/sessionsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/sessionsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/sessionsModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/storageLogModule.ts b/sdk/constructive-cli/src/modules/orm/models/storageLogModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/storageLogModule.ts rename to sdk/constructive-cli/src/modules/orm/models/storageLogModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/storageModule.ts b/sdk/constructive-cli/src/modules/orm/models/storageModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/storageModule.ts rename to sdk/constructive-cli/src/modules/orm/models/storageModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/transferLogModule.ts b/sdk/constructive-cli/src/modules/orm/models/transferLogModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/transferLogModule.ts rename to sdk/constructive-cli/src/modules/orm/models/transferLogModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/userAuthModule.ts b/sdk/constructive-cli/src/modules/orm/models/userAuthModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/userAuthModule.ts rename to sdk/constructive-cli/src/modules/orm/models/userAuthModule.ts diff --git a/sdk/constructive-cli/src/modules/orm/models/userCredentialsModule.ts b/sdk/constructive-cli/src/modules/orm/models/userCredentialsModule.ts new file mode 100644 index 0000000000..90ada31d7a --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/userCredentialsModule.ts @@ -0,0 +1,246 @@ +/** + * UserCredentialsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + UserCredentialsModule, + UserCredentialsModuleWithRelations, + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy, + CreateUserCredentialsModuleInput, + UpdateUserCredentialsModuleInput, + UserCredentialsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserCredentialsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModule', + document, + variables, + transform: (data: { + userCredentialsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userCredentialsModule: data.userCredentialsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModule', + document, + variables, + transform: (data: { + userCredentialsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userCredentialsModule: data.userCredentialsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserCredentialsModule', + 'createUserCredentialsModule', + 'userCredentialsModule', + args.select, + args.data, + 'CreateUserCredentialsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'createUserCredentialsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserCredentialsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserCredentialsModule', + 'updateUserCredentialsModule', + 'userCredentialsModule', + args.select, + args.where.id, + args.data, + 'UpdateUserCredentialsModuleInput', + 'id', + 'userCredentialsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'updateUserCredentialsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserCredentialsModule', + 'deleteUserCredentialsModule', + 'userCredentialsModule', + { + id: args.where.id, + }, + 'DeleteUserCredentialsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'deleteUserCredentialsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/userSettingsModule.ts b/sdk/constructive-cli/src/modules/orm/models/userSettingsModule.ts new file mode 100644 index 0000000000..5a905d30b4 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/userSettingsModule.ts @@ -0,0 +1,244 @@ +/** + * UserSettingsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + UserSettingsModule, + UserSettingsModuleWithRelations, + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy, + CreateUserSettingsModuleInput, + UpdateUserSettingsModuleInput, + UserSettingsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModule', + document, + variables, + transform: (data: { + userSettingsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsModule: data.userSettingsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModule', + document, + variables, + transform: (data: { + userSettingsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsModule: data.userSettingsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsModule', + 'createUserSettingsModule', + 'userSettingsModule', + args.select, + args.data, + 'CreateUserSettingsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'createUserSettingsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsModule', + 'updateUserSettingsModule', + 'userSettingsModule', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsModuleInput', + 'id', + 'userSettingsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'updateUserSettingsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsModule', + 'deleteUserSettingsModule', + 'userSettingsModule', + { + id: args.where.id, + }, + 'DeleteUserSettingsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'deleteUserSettingsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/userStateModule.ts b/sdk/constructive-cli/src/modules/orm/models/userStateModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/userStateModule.ts rename to sdk/constructive-cli/src/modules/orm/models/userStateModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/usersModule.ts b/sdk/constructive-cli/src/modules/orm/models/usersModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/usersModule.ts rename to sdk/constructive-cli/src/modules/orm/models/usersModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/webauthnAuthModule.ts b/sdk/constructive-cli/src/modules/orm/models/webauthnAuthModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/webauthnAuthModule.ts rename to sdk/constructive-cli/src/modules/orm/models/webauthnAuthModule.ts diff --git a/sdk/constructive-cli/src/public/orm/models/webauthnCredentialsModule.ts b/sdk/constructive-cli/src/modules/orm/models/webauthnCredentialsModule.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/webauthnCredentialsModule.ts rename to sdk/constructive-cli/src/modules/orm/models/webauthnCredentialsModule.ts diff --git a/sdk/constructive-cli/src/modules/orm/mutation/index.ts b/sdk/constructive-cli/src/modules/orm/mutation/index.ts new file mode 100644 index 0000000000..0882daa1dd --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/mutation/index.ts @@ -0,0 +1,408 @@ +/** + * 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 { + ConstructBlueprintInput, + ProvisionFullTextSearchInput, + ProvisionIndexInput, + ProvisionCheckConstraintInput, + ProvisionUniqueConstraintInput, + CopyTemplateToBlueprintInput, + ProvisionSpatialRelationInput, + ProvisionTableInput, + ProvisionRelationInput, + ProvisionBucketInput, + ConstructBlueprintPayload, + ProvisionFullTextSearchPayload, + ProvisionIndexPayload, + ProvisionCheckConstraintPayload, + ProvisionUniqueConstraintPayload, + CopyTemplateToBlueprintPayload, + ProvisionSpatialRelationPayload, + ProvisionTablePayload, + ProvisionRelationPayload, + ProvisionBucketPayload, + ConstructBlueprintPayloadSelect, + ProvisionFullTextSearchPayloadSelect, + ProvisionIndexPayloadSelect, + ProvisionCheckConstraintPayloadSelect, + ProvisionUniqueConstraintPayloadSelect, + CopyTemplateToBlueprintPayloadSelect, + ProvisionSpatialRelationPayloadSelect, + ProvisionTablePayloadSelect, + ProvisionRelationPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for constructBlueprint + * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + */ +export interface ConstructBlueprintVariables { + input: ConstructBlueprintInput; +} +/** + * Variables for provisionFullTextSearch + * Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + */ +export interface ProvisionFullTextSearchVariables { + input: ProvisionFullTextSearchInput; +} +/** + * Variables for provisionIndex + * Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + */ +export interface ProvisionIndexVariables { + input: ProvisionIndexInput; +} +/** + * Variables for provisionCheckConstraint + * Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + */ +export interface ProvisionCheckConstraintVariables { + input: ProvisionCheckConstraintInput; +} +/** + * Variables for provisionUniqueConstraint + * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + */ +export interface ProvisionUniqueConstraintVariables { + input: ProvisionUniqueConstraintInput; +} +/** + * Variables for copyTemplateToBlueprint + * 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. + */ +export interface CopyTemplateToBlueprintVariables { + input: CopyTemplateToBlueprintInput; +} +/** + * Variables for provisionSpatialRelation + * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + */ +export interface ProvisionSpatialRelationVariables { + input: ProvisionSpatialRelationInput; +} +/** + * Variables for provisionTable + * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + */ +export interface ProvisionTableVariables { + input: ProvisionTableInput; +} +/** + * Variables for provisionRelation + * Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + */ +export interface ProvisionRelationVariables { + input: ProvisionRelationInput; +} +/** + * Variables for 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 { + constructBlueprint: ( + args: ConstructBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + constructBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConstructBlueprint', + fieldName: 'constructBlueprint', + ...buildCustomDocument( + 'mutation', + 'ConstructBlueprint', + 'constructBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'ConstructBlueprintInput!', + }, + ], + connectionFieldsMap, + 'ConstructBlueprintPayload' + ), + }), + provisionFullTextSearch: ( + args: ProvisionFullTextSearchVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionFullTextSearch: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionFullTextSearch', + fieldName: 'provisionFullTextSearch', + ...buildCustomDocument( + 'mutation', + 'ProvisionFullTextSearch', + 'provisionFullTextSearch', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionFullTextSearchInput!', + }, + ], + connectionFieldsMap, + 'ProvisionFullTextSearchPayload' + ), + }), + provisionIndex: ( + args: ProvisionIndexVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionIndex: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionIndex', + fieldName: 'provisionIndex', + ...buildCustomDocument( + 'mutation', + 'ProvisionIndex', + 'provisionIndex', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionIndexInput!', + }, + ], + connectionFieldsMap, + 'ProvisionIndexPayload' + ), + }), + provisionCheckConstraint: ( + args: ProvisionCheckConstraintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionCheckConstraint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionCheckConstraint', + fieldName: 'provisionCheckConstraint', + ...buildCustomDocument( + 'mutation', + 'ProvisionCheckConstraint', + 'provisionCheckConstraint', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionCheckConstraintInput!', + }, + ], + connectionFieldsMap, + 'ProvisionCheckConstraintPayload' + ), + }), + provisionUniqueConstraint: ( + args: ProvisionUniqueConstraintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionUniqueConstraint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionUniqueConstraint', + fieldName: 'provisionUniqueConstraint', + ...buildCustomDocument( + 'mutation', + 'ProvisionUniqueConstraint', + 'provisionUniqueConstraint', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionUniqueConstraintInput!', + }, + ], + connectionFieldsMap, + 'ProvisionUniqueConstraintPayload' + ), + }), + copyTemplateToBlueprint: ( + args: CopyTemplateToBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + copyTemplateToBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CopyTemplateToBlueprint', + fieldName: 'copyTemplateToBlueprint', + ...buildCustomDocument( + 'mutation', + 'CopyTemplateToBlueprint', + 'copyTemplateToBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'CopyTemplateToBlueprintInput!', + }, + ], + connectionFieldsMap, + 'CopyTemplateToBlueprintPayload' + ), + }), + provisionSpatialRelation: ( + args: ProvisionSpatialRelationVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionSpatialRelation: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionSpatialRelation', + fieldName: 'provisionSpatialRelation', + ...buildCustomDocument( + 'mutation', + 'ProvisionSpatialRelation', + 'provisionSpatialRelation', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionSpatialRelationInput!', + }, + ], + connectionFieldsMap, + 'ProvisionSpatialRelationPayload' + ), + }), + provisionTable: ( + args: ProvisionTableVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionTable: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', + ...buildCustomDocument( + 'mutation', + 'ProvisionTable', + 'provisionTable', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionTableInput!', + }, + ], + connectionFieldsMap, + 'ProvisionTablePayload' + ), + }), + provisionRelation: ( + args: ProvisionRelationVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionRelation: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionRelation', + fieldName: 'provisionRelation', + ...buildCustomDocument( + 'mutation', + 'ProvisionRelation', + 'provisionRelation', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionRelationInput!', + }, + ], + connectionFieldsMap, + 'ProvisionRelationPayload' + ), + }), + 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/public/orm/query-builder.ts b/sdk/constructive-cli/src/modules/orm/query-builder.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/query-builder.ts rename to sdk/constructive-cli/src/modules/orm/query-builder.ts diff --git a/sdk/constructive-cli/src/modules/orm/query/index.ts b/sdk/constructive-cli/src/modules/orm/query/index.ts new file mode 100644 index 0000000000..391bf65929 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/query/index.ts @@ -0,0 +1,115 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for resolveBlueprintField + * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + */ +export interface ResolveBlueprintFieldVariables { + databaseId?: string; + tableId?: string; + fieldName?: string; +} +/** + * Variables for resolveBlueprintTable + * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + */ +export interface ResolveBlueprintTableVariables { + databaseId?: string; + tableName?: string; + schemaName?: string; + tableMap?: unknown; + defaultSchemaId?: string; +} +export function createQueryOperations(client: OrmClient) { + return { + resolveBlueprintField: ( + args: ResolveBlueprintFieldVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveBlueprintField: string | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveBlueprintField', + fieldName: 'resolveBlueprintField', + ...buildCustomDocument( + 'query', + 'ResolveBlueprintField', + 'resolveBlueprintField', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'tableId', + type: 'UUID', + }, + { + name: 'fieldName', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + resolveBlueprintTable: ( + args: ResolveBlueprintTableVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveBlueprintTable: string | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveBlueprintTable', + fieldName: 'resolveBlueprintTable', + ...buildCustomDocument( + 'query', + 'ResolveBlueprintTable', + 'resolveBlueprintTable', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'tableName', + type: 'String', + }, + { + name: 'schemaName', + type: 'String', + }, + { + name: 'tableMap', + type: 'JSON', + }, + { + name: 'defaultSchemaId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/public/orm/realtime.ts b/sdk/constructive-cli/src/modules/orm/realtime.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/realtime.ts rename to sdk/constructive-cli/src/modules/orm/realtime.ts diff --git a/sdk/constructive-sdk/src/public/orm/select-types.ts b/sdk/constructive-cli/src/modules/orm/select-types.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/select-types.ts rename to sdk/constructive-cli/src/modules/orm/select-types.ts diff --git a/sdk/constructive-sdk/src/public/orm/types.ts b/sdk/constructive-cli/src/modules/orm/types.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/types.ts rename to sdk/constructive-cli/src/modules/orm/types.ts diff --git a/sdk/constructive-cli/src/objects/README.md b/sdk/constructive-cli/src/objects/README.md index 4fe46a62e2..12fb58cf20 100644 --- a/sdk/constructive-cli/src/objects/README.md +++ b/sdk/constructive-cli/src/objects/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 5 -- **Custom queries:** 4 -- **Custom mutations:** 9 +- **Custom queries:** 0 +- **Custom mutations:** 4 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index 8ae072103b..a48760eaee 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -27,22 +27,13 @@ csdk auth set-token | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | | `get-all-record` | getAllRecord CRUD operations | -| `object` | object CRUD operations | | `ref` | ref CRUD operations | | `store` | store CRUD operations | +| `object` | object CRUD operations | | `commit` | commit CRUD operations | -| `rev-parse` | revParse | -| `get-all-objects-from-root` | Reads and enables pagination through a set of `Object`. | -| `get-path-objects-from-root` | Reads and enables pagination through a set of `Object`. | -| `get-object-at-path` | getObjectAtPath | -| `freeze-objects` | freezeObjects | | `init-empty-repo` | initEmptyRepo | -| `remove-node-at-path` | removeNodeAtPath | | `set-data-at-path` | setDataAtPath | -| `set-props-and-commit` | setPropsAndCommit | | `insert-node-at-path` | insertNodeAtPath | -| `update-node-at-path` | updateNodeAtPath | -| `set-and-commit` | setAndCommit | | `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, @@ -111,35 +102,6 @@ CRUD operations for GetAllRecord records. **Required create fields:** `path`, `data` -### `object` - -CRUD operations for Object records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all object records | -| `find-first` | Find first matching object record | -| `get` | Get a object by id | -| `create` | Create a new object | -| `update` | Update an existing object | -| `delete` | Delete a object | - -**Fields:** - -| Field | Type | -|-------|------| -| `hashUuid` | UUID | -| `id` | UUID | -| `databaseId` | UUID | -| `kids` | UUID | -| `ktree` | String | -| `data` | JSON | -| `frzn` | Boolean | -| `createdAt` | Datetime | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` - ### `ref` CRUD operations for Ref records. @@ -192,6 +154,33 @@ CRUD operations for Store records. **Required create fields:** `name`, `databaseId` **Optional create fields (backend defaults):** `hash` +### `object` + +CRUD operations for Object records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all object records | +| `find-first` | Find first matching object record | +| `get` | Get a object by id | +| `create` | Create a new object | +| `update` | Update an existing object | +| `delete` | Delete a object | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `data` | JSON | +| `createdAt` | Datetime | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `kids`, `ktree`, `data` + ### `commit` CRUD operations for Commit records. @@ -224,77 +213,6 @@ CRUD operations for Commit records. ## Custom Operations -### `rev-parse` - -revParse - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--dbId` | UUID | - | `--storeId` | UUID | - | `--refname` | String | - -### `get-all-objects-from-root` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | - | `--first` | Int | - | `--offset` | Int | - | `--after` | Cursor | - -### `get-path-objects-from-root` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | - | `--path` | String | - | `--first` | Int | - | `--offset` | Int | - | `--after` | Cursor | - -### `get-object-at-path` - -getObjectAtPath - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--dbId` | UUID | - | `--storeId` | UUID | - | `--path` | String | - | `--refname` | String | - -### `freeze-objects` - -freezeObjects - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.id` | UUID | - ### `init-empty-repo` initEmptyRepo @@ -305,23 +223,9 @@ initEmptyRepo | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | -### `remove-node-at-path` - -removeNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | - | `--input.root` | UUID | - | `--input.path` | String | - ### `set-data-at-path` setDataAtPath @@ -332,27 +236,11 @@ setDataAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | -### `set-props-and-commit` - -setPropsAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | - | `--input.storeId` | UUID | - | `--input.refname` | String | - | `--input.path` | String | - | `--input.data` | JSON | - ### `insert-node-at-path` insertNodeAtPath @@ -363,48 +251,13 @@ insertNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | | `--input.kids` | UUID | | `--input.ktree` | String | -### `update-node-at-path` - -updateNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | - | `--input.root` | UUID | - | `--input.path` | String | - | `--input.data` | JSON | - | `--input.kids` | UUID | - | `--input.ktree` | String | - -### `set-and-commit` - -setAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | - | `--input.storeId` | UUID | - | `--input.refname` | String | - | `--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. diff --git a/sdk/constructive-cli/src/objects/cli/commands.ts b/sdk/constructive-cli/src/objects/cli/commands.ts index f2b4440f93..94c9dce454 100644 --- a/sdk/constructive-cli/src/objects/cli/commands.ts +++ b/sdk/constructive-cli/src/objects/cli/commands.ts @@ -7,22 +7,13 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; import getAllRecordCmd from './commands/get-all-record'; -import objectCmd from './commands/object'; import refCmd from './commands/ref'; import storeCmd from './commands/store'; +import objectCmd from './commands/object'; import commitCmd from './commands/commit'; -import revParseCmd from './commands/rev-parse'; -import getAllObjectsFromRootCmd from './commands/get-all-objects-from-root'; -import getPathObjectsFromRootCmd from './commands/get-path-objects-from-root'; -import getObjectAtPathCmd from './commands/get-object-at-path'; -import freezeObjectsCmd from './commands/freeze-objects'; import initEmptyRepoCmd from './commands/init-empty-repo'; -import removeNodeAtPathCmd from './commands/remove-node-at-path'; import setDataAtPathCmd from './commands/set-data-at-path'; -import setPropsAndCommitCmd from './commands/set-props-and-commit'; import insertNodeAtPathCmd from './commands/insert-node-at-path'; -import updateNodeAtPathCmd from './commands/update-node-at-path'; -import setAndCommitCmd from './commands/set-and-commit'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -35,26 +26,17 @@ const createCommandMap: () => Record< context: contextCmd, auth: authCmd, 'get-all-record': getAllRecordCmd, - object: objectCmd, ref: refCmd, store: storeCmd, + object: objectCmd, commit: commitCmd, - 'rev-parse': revParseCmd, - 'get-all-objects-from-root': getAllObjectsFromRootCmd, - 'get-path-objects-from-root': getPathObjectsFromRootCmd, - 'get-object-at-path': getObjectAtPathCmd, - 'freeze-objects': freezeObjectsCmd, 'init-empty-repo': initEmptyRepoCmd, - 'remove-node-at-path': removeNodeAtPathCmd, 'set-data-at-path': setDataAtPathCmd, - 'set-props-and-commit': setPropsAndCommitCmd, 'insert-node-at-path': insertNodeAtPathCmd, - 'update-node-at-path': updateNodeAtPathCmd, - 'set-and-commit': setAndCommitCmd, '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 object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n commit commit CRUD operations\n rev-parse revParse\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\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 get-all-record getAllRecord CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n object object CRUD operations\n commit commit CRUD operations\n init-empty-repo initEmptyRepo\n set-data-at-path setDataAtPath\n insert-node-at-path insertNodeAtPath\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/objects/cli/commands/freeze-objects.ts b/sdk/constructive-cli/src/objects/cli/commands/freeze-objects.ts deleted file mode 100644 index df4a63f472..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/freeze-objects.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation freezeObjects - * @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 { FreezeObjectsVariables } from '../../orm/mutation'; -import type { FreezeObjectsPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('freeze-objects - freezeObjects\n\nUsage: freeze-objects [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 - .freezeObjects( - parsedAnswers as unknown as FreezeObjectsVariables, - { - select: selectFields, - } as unknown as { - select: FreezeObjectsPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: freezeObjects'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts b/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts deleted file mode 100644 index 6c2bef23be..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * CLI command for query getAllObjectsFromRoot - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { GetAllObjectsFromRootVariables } from '../../orm/query'; -import type { ObjectConnectionSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'get-all-objects-from-root - Reads and enables pagination through a set of `Object`.\n\nUsage: get-all-objects-from-root [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - }, - { - type: 'text', - name: 'id', - message: 'id', - }, - { - type: 'text', - name: 'first', - message: 'Only read the first `n` values of the set.', - }, - { - type: 'text', - name: 'offset', - message: - 'Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.', - }, - { - type: 'text', - name: 'after', - message: 'Read all values in the set after (below) this cursor.', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .getAllObjectsFromRoot( - answers as unknown as GetAllObjectsFromRootVariables, - { - select: selectFields, - } as unknown as { - select: ObjectConnectionSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: getAllObjectsFromRoot'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts b/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts deleted file mode 100644 index 336a7e8d57..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * CLI command for query getObjectAtPath - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { GetObjectAtPathVariables } from '../../orm/query'; -import type { ObjectSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('get-object-at-path - getObjectAtPath\n\nUsage: get-object-at-path [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'dbId', - message: 'dbId', - }, - { - type: 'text', - name: 'storeId', - message: 'storeId', - }, - { - type: 'text', - name: 'path', - message: 'path', - }, - { - type: 'text', - name: 'refname', - message: 'refname', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .getObjectAtPath( - answers as unknown as GetObjectAtPathVariables, - { - select: selectFields, - } as unknown as { - select: ObjectSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: getObjectAtPath'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts b/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts deleted file mode 100644 index 3985235808..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * CLI command for query getPathObjectsFromRoot - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { GetPathObjectsFromRootVariables } from '../../orm/query'; -import type { ObjectConnectionSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'get-path-objects-from-root - Reads and enables pagination through a set of `Object`.\n\nUsage: get-path-objects-from-root [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - }, - { - type: 'text', - name: 'id', - message: 'id', - }, - { - type: 'text', - name: 'path', - message: 'path', - }, - { - type: 'text', - name: 'first', - message: 'Only read the first `n` values of the set.', - }, - { - type: 'text', - name: 'offset', - message: - 'Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.', - }, - { - type: 'text', - name: 'after', - message: 'Read all values in the set after (below) this cursor.', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .getPathObjectsFromRoot( - answers as unknown as GetPathObjectsFromRootVariables, - { - select: selectFields, - } as unknown as { - select: ObjectConnectionSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: getPathObjectsFromRoot'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/object.ts b/sdk/constructive-cli/src/objects/cli/commands/object.ts index d99526a4ed..36952ce433 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/object.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/object.ts @@ -16,13 +16,11 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - hashUuid: 'uuid', id: 'uuid', databaseId: 'uuid', kids: 'uuid', ktree: 'string', data: 'json', - frzn: 'boolean', createdAt: 'string', }; const usage = @@ -81,7 +79,6 @@ async function handleList(argv: Partial>, _prompter: Inq kids: true, ktree: true, data: true, - frzn: true, createdAt: true, }; const findManyArgs = parseFindManyArgs< @@ -108,7 +105,6 @@ async function handleFindFirst(argv: Partial>, _prompter kids: true, ktree: true, data: true, - frzn: true, createdAt: true, }; const findFirstArgs = parseFindFirstArgs< @@ -147,7 +143,6 @@ async function handleGet(argv: Partial>, prompter: Inqui kids: true, ktree: true, data: true, - frzn: true, createdAt: true, }, }) @@ -191,13 +186,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'frzn', - message: 'frzn', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateObjectInput['object']; @@ -209,7 +197,6 @@ async function handleCreate(argv: Partial>, prompter: In kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, - frzn: cleanedData.frzn, }, select: { id: true, @@ -217,7 +204,6 @@ async function handleCreate(argv: Partial>, prompter: In kids: true, ktree: true, data: true, - frzn: true, createdAt: true, }, }) @@ -267,13 +253,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'frzn', - message: 'frzn', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ObjectPatch; @@ -288,7 +267,6 @@ async function handleUpdate(argv: Partial>, prompter: In kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, - frzn: cleanedData.frzn, }, select: { id: true, @@ -296,7 +274,6 @@ async function handleUpdate(argv: Partial>, prompter: In kids: true, ktree: true, data: true, - frzn: true, createdAt: true, }, }) diff --git a/sdk/constructive-cli/src/objects/cli/commands/remove-node-at-path.ts b/sdk/constructive-cli/src/objects/cli/commands/remove-node-at-path.ts deleted file mode 100644 index 67054b62bf..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/remove-node-at-path.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation removeNodeAtPath - * @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 { RemoveNodeAtPathVariables } from '../../orm/mutation'; -import type { RemoveNodeAtPathPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'remove-node-at-path - removeNodeAtPath\n\nUsage: remove-node-at-path [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .removeNodeAtPath( - parsedAnswers as unknown as RemoveNodeAtPathVariables, - { - select: selectFields, - } as unknown as { - select: RemoveNodeAtPathPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: removeNodeAtPath'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts b/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts deleted file mode 100644 index 302b869622..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * CLI command for query revParse - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { RevParseVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('rev-parse - revParse\n\nUsage: rev-parse [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'dbId', - message: 'dbId', - }, - { - type: 'text', - name: 'storeId', - message: 'storeId', - }, - { - type: 'text', - name: 'refname', - message: 'refname', - }, - ]); - const client = getClient(); - const result = await client.query.revParse(answers as unknown as RevParseVariables).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: revParse'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts b/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts deleted file mode 100644 index cb702ff301..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/set-and-commit.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation setAndCommit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { SetAndCommitVariables } from '../../orm/mutation'; -import type { SetAndCommitPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('set-and-commit - setAndCommit\n\nUsage: set-and-commit [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .setAndCommit( - parsedAnswers as unknown as SetAndCommitVariables, - { - select: selectFields, - } as unknown as { - select: SetAndCommitPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: setAndCommit'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/set-props-and-commit.ts b/sdk/constructive-cli/src/objects/cli/commands/set-props-and-commit.ts deleted file mode 100644 index 27b26a1614..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/set-props-and-commit.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation setPropsAndCommit - * @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 { SetPropsAndCommitVariables } from '../../orm/mutation'; -import type { SetPropsAndCommitPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'set-props-and-commit - setPropsAndCommit\n\nUsage: set-props-and-commit [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .setPropsAndCommit( - parsedAnswers as unknown as SetPropsAndCommitVariables, - { - select: selectFields, - } as unknown as { - select: SetPropsAndCommitPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: setPropsAndCommit'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/cli/commands/update-node-at-path.ts b/sdk/constructive-cli/src/objects/cli/commands/update-node-at-path.ts deleted file mode 100644 index e16aa67f58..0000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/update-node-at-path.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation updateNodeAtPath - * @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 { UpdateNodeAtPathVariables } from '../../orm/mutation'; -import type { UpdateNodeAtPathPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'update-node-at-path - updateNodeAtPath\n\nUsage: update-node-at-path [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .updateNodeAtPath( - parsedAnswers as unknown as UpdateNodeAtPathVariables, - { - select: selectFields, - } as unknown as { - select: UpdateNodeAtPathPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: updateNodeAtPath'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 94b8dc0860..a2c6eee79f 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `getAllRecord` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | ## Table Operations @@ -59,45 +59,42 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.ref` -CRUD operations for Object records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | +| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.store` -CRUD operations for Ref records. +CRUD operations for Store records. **Fields:** @@ -106,59 +103,60 @@ CRUD operations for Ref records. | `id` | UUID | No | | `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.object` -CRUD operations for Store records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -200,95 +198,6 @@ const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ## Custom Operations -### `db.query.revParse` - -revParse - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `refname` | String | - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` - -### `db.query.getAllObjectsFromRoot` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.getPathObjectsFromRoot` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.getObjectAtPath` - -getObjectAtPath - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` - -### `db.mutation.freezeObjects` - -freezeObjects - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | FreezeObjectsInput (required) | - -```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); -``` - ### `db.mutation.initEmptyRepo` initEmptyRepo @@ -301,22 +210,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); -``` - -### `db.mutation.removeNodeAtPath` - -removeNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RemoveNodeAtPathInput (required) | - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,22 +225,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); -``` - -### `db.mutation.setPropsAndCommit` - -setPropsAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPropsAndCommitInput (required) | - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -364,36 +243,6 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` -### `db.mutation.updateNodeAtPath` - -updateNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | UpdateNodeAtPathInput (required) | - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` - -### `db.mutation.setAndCommit` - -setAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetAndCommitInput (required) | - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/objects/orm/index.ts b/sdk/constructive-cli/src/objects/orm/index.ts index f06a6d3b7a..4288141eaa 100644 --- a/sdk/constructive-cli/src/objects/orm/index.ts +++ b/sdk/constructive-cli/src/objects/orm/index.ts @@ -6,18 +6,16 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { GetAllRecordModel } from './models/getAllRecord'; -import { ObjectModel } from './models/object'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; +import { ObjectModel } from './models/object'; import { CommitModel } from './models/commit'; -import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -46,11 +44,10 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { getAllRecord: new GetAllRecordModel(client), - object: new ObjectModel(client), ref: new RefModel(client), store: new StoreModel(client), + object: new ObjectModel(client), commit: new CommitModel(client), - query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index 8fcc221ef8..c68287aede 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -235,55 +235,66 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} -/** A ref is a data structure for pointing to a commit. */ +/** Branch heads — mutable pointers into the commit chain */ export interface Ref { - /** The primary unique identifier for the ref. */ + /** Unique ref identifier */ id: string; - /** The name of the ref or branch */ + /** Ref name (e.g. HEAD, main) */ 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; } -/** A store represents an isolated object repository within a database. */ +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ export interface Store { - /** The primary unique identifier for the store. */ + /** Unique store identifier */ id: string; - /** The name of the store (e.g., metaschema, migrations). */ + /** Human-readable store name */ name?: string | null; - /** The database this store belongs to. */ + /** Database scope for multi-tenant isolation */ databaseId?: string | null; - /** The current head tree_id for this store. */ + /** 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 Object { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Database scope for multi-tenant isolation */ + databaseId?: 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; } -/** A commit records changes to the repository. */ +/** Commit history — each commit snapshots a tree root for a store */ export interface Commit { - /** The primary unique identifier for the commit. */ + /** Unique commit identifier */ id: string; - /** The commit message */ + /** Optional commit message */ message?: string | null; - /** The repository identifier */ + /** Database scope for multi-tenant isolation */ databaseId?: string | null; + /** Store this commit belongs to */ storeId?: string | null; - /** Parent commits */ + /** Parent commit IDs (supports merge commits) */ parentIds?: string[] | null; - /** The author of the commit */ + /** User who authored the changes */ authorId?: string | null; - /** The committer of the commit */ + /** User who committed (may differ from author) */ committerId?: string | null; - /** The root of the tree */ + /** Root object ID of the tree snapshot at this commit */ treeId?: string | null; + /** Commit timestamp */ date?: string | null; } // ============ Relation Helper Types ============ @@ -300,31 +311,21 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface GetAllRecordRelations {} -export interface ObjectRelations {} export interface RefRelations {} export interface StoreRelations {} +export interface ObjectRelations {} export interface CommitRelations {} // ============ Entity Types With Relations ============ export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type CommitWithRelations = Commit & CommitRelations; // ============ Entity Select Types ============ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type RefSelect = { id?: boolean; name?: boolean; @@ -339,6 +340,14 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; +export type ObjectSelect = { + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -358,28 +367,6 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface RefFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -416,6 +403,26 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -451,24 +458,6 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type RefOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -497,6 +486,22 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -540,32 +545,6 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -612,6 +591,30 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface ObjectPatch { + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -647,65 +650,27 @@ export interface DeleteCommitInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } -export interface RemoveNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; -} export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } -export interface SetPropsAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: Record; -} export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; kids?: string[]; ktree?: string[]; } -export interface UpdateNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; -} -export interface SetAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -715,46 +680,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface FreezeObjectsPayload { - clientMutationId?: string | null; -} -export type FreezeObjectsPayloadSelect = { - clientMutationId?: boolean; -}; export interface InitEmptyRepoPayload { clientMutationId?: string | null; } export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; -export interface RemoveNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RemoveNodeAtPathPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -763,14 +695,6 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SetPropsAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SetPropsAndCommitPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -779,22 +703,6 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface UpdateNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type UpdateNodeAtPathPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SetAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SetAndCommitPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -817,51 +725,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -952,6 +815,51 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -997,35 +905,6 @@ export type DeleteCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; -} -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; -}; -/** 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; -} -export type PageInfoSelect = { - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; - endCursor?: boolean; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -1050,6 +929,18 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/objects/orm/models/index.ts b/sdk/constructive-cli/src/objects/orm/models/index.ts index c842d83414..92a768974c 100644 --- a/sdk/constructive-cli/src/objects/orm/models/index.ts +++ b/sdk/constructive-cli/src/objects/orm/models/index.ts @@ -4,7 +4,7 @@ * DO NOT EDIT - changes will be overwritten */ export { GetAllRecordModel } from './getAllRecord'; -export { ObjectModel } from './object'; export { RefModel } from './ref'; export { StoreModel } from './store'; +export { ObjectModel } from './object'; export { CommitModel } from './commit'; diff --git a/sdk/constructive-cli/src/objects/orm/mutation/index.ts b/sdk/constructive-cli/src/objects/orm/mutation/index.ts index 97d4456b48..60faf5871a 100644 --- a/sdk/constructive-cli/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/objects/orm/mutation/index.ts @@ -7,59 +7,29 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - FreezeObjectsInput, InitEmptyRepoInput, - RemoveNodeAtPathInput, SetDataAtPathInput, - SetPropsAndCommitInput, InsertNodeAtPathInput, - UpdateNodeAtPathInput, - SetAndCommitInput, ProvisionBucketInput, - FreezeObjectsPayload, InitEmptyRepoPayload, - RemoveNodeAtPathPayload, SetDataAtPathPayload, - SetPropsAndCommitPayload, InsertNodeAtPathPayload, - UpdateNodeAtPathPayload, - SetAndCommitPayload, ProvisionBucketPayload, - FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, - RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, - SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, - UpdateNodeAtPathPayloadSelect, - SetAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface FreezeObjectsVariables { - input: FreezeObjectsInput; -} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } -export interface RemoveNodeAtPathVariables { - input: RemoveNodeAtPathInput; -} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } -export interface SetPropsAndCommitVariables { - input: SetPropsAndCommitInput; -} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } -export interface UpdateNodeAtPathVariables { - input: UpdateNodeAtPathInput; -} -export interface SetAndCommitVariables { - input: SetAndCommitInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -72,35 +42,6 @@ export interface ProvisionBucketVariables { } export function createMutationOperations(client: OrmClient) { return { - freezeObjects: ( - args: FreezeObjectsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - freezeObjects: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'FreezeObjects', - fieldName: 'freezeObjects', - ...buildCustomDocument( - 'mutation', - 'FreezeObjects', - 'freezeObjects', - options.select, - args, - [ - { - name: 'input', - type: 'FreezeObjectsInput!', - }, - ], - connectionFieldsMap, - 'FreezeObjectsPayload' - ), - }), initEmptyRepo: ( args: InitEmptyRepoVariables, options: { @@ -130,35 +71,6 @@ export function createMutationOperations(client: OrmClient) { 'InitEmptyRepoPayload' ), }), - removeNodeAtPath: ( - args: RemoveNodeAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - removeNodeAtPath: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RemoveNodeAtPath', - fieldName: 'removeNodeAtPath', - ...buildCustomDocument( - 'mutation', - 'RemoveNodeAtPath', - 'removeNodeAtPath', - options.select, - args, - [ - { - name: 'input', - type: 'RemoveNodeAtPathInput!', - }, - ], - connectionFieldsMap, - 'RemoveNodeAtPathPayload' - ), - }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -188,35 +100,6 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), - setPropsAndCommit: ( - args: SetPropsAndCommitVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setPropsAndCommit: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetPropsAndCommit', - fieldName: 'setPropsAndCommit', - ...buildCustomDocument( - 'mutation', - 'SetPropsAndCommit', - 'setPropsAndCommit', - options.select, - args, - [ - { - name: 'input', - type: 'SetPropsAndCommitInput!', - }, - ], - connectionFieldsMap, - 'SetPropsAndCommitPayload' - ), - }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { @@ -246,64 +129,6 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), - updateNodeAtPath: ( - args: UpdateNodeAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - updateNodeAtPath: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'UpdateNodeAtPath', - fieldName: 'updateNodeAtPath', - ...buildCustomDocument( - 'mutation', - 'UpdateNodeAtPath', - 'updateNodeAtPath', - options.select, - args, - [ - { - name: 'input', - type: 'UpdateNodeAtPathInput!', - }, - ], - connectionFieldsMap, - 'UpdateNodeAtPathPayload' - ), - }), - setAndCommit: ( - args: SetAndCommitVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setAndCommit: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetAndCommit', - fieldName: 'setAndCommit', - ...buildCustomDocument( - 'mutation', - 'SetAndCommit', - 'setAndCommit', - options.select, - args, - [ - { - name: 'input', - type: 'SetAndCommitInput!', - }, - ], - connectionFieldsMap, - 'SetAndCommitPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-cli/src/objects/orm/query/index.ts b/sdk/constructive-cli/src/objects/orm/query/index.ts deleted file mode 100644 index ce1f8680dc..0000000000 --- a/sdk/constructive-cli/src/objects/orm/query/index.ts +++ /dev/null @@ -1,224 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface RevParseVariables { - dbId?: string; - storeId?: string; - refname?: string; -} -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - revParse: ( - args: RevParseVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - revParse: string | null; - }>({ - client, - operation: 'query', - operationName: 'RevParse', - fieldName: 'revParse', - ...buildCustomDocument( - 'query', - 'RevParse', - 'revParse', - options?.select, - args, - [ - { - name: 'dbId', - type: 'UUID', - }, - { - name: 'storeId', - type: 'UUID', - }, - { - name: 'refname', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; - }>({ - client, - operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', - ...buildCustomDocument( - 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; - }>({ - client, - operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', - ...buildCustomDocument( - 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', - ...buildCustomDocument( - 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, - args, - [ - { - name: 'dbId', - type: 'UUID', - }, - { - name: 'storeId', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', - }, - { - name: 'refname', - type: 'String', - }, - ], - connectionFieldsMap, - 'Object' - ), - }), - }; -} diff --git a/sdk/constructive-cli/src/public/README.md b/sdk/constructive-cli/src/public/README.md deleted file mode 100644 index 9d4a5ac765..0000000000 --- a/sdk/constructive-cli/src/public/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# Generated GraphQL SDK - -

- -

- - - -## Overview - -- **Tables:** 150 -- **Custom queries:** 17 -- **Custom mutations:** 41 - -**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/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md deleted file mode 100644 index 007aa9a5df..0000000000 --- a/sdk/constructive-cli/src/public/cli/README.md +++ /dev/null @@ -1,5953 +0,0 @@ -# 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) | -| `org-get-managers-record` | orgGetManagersRecord CRUD operations | -| `org-get-subordinates-record` | orgGetSubordinatesRecord CRUD operations | -| `app-permission` | appPermission CRUD operations | -| `org-permission` | orgPermission CRUD operations | -| `database` | database CRUD operations | -| `schema` | schema CRUD operations | -| `table` | table CRUD operations | -| `check-constraint` | checkConstraint CRUD operations | -| `field` | field CRUD operations | -| `spatial-relation` | spatialRelation CRUD operations | -| `foreign-key-constraint` | foreignKeyConstraint CRUD operations | -| `full-text-search` | fullTextSearch CRUD operations | -| `index` | index CRUD operations | -| `policy` | policy CRUD operations | -| `primary-key-constraint` | primaryKeyConstraint CRUD operations | -| `table-grant` | tableGrant CRUD operations | -| `trigger` | trigger CRUD operations | -| `unique-constraint` | uniqueConstraint CRUD operations | -| `view` | view CRUD operations | -| `view-table` | viewTable CRUD operations | -| `view-grant` | viewGrant CRUD operations | -| `view-rule` | viewRule CRUD operations | -| `embedding-chunk` | embeddingChunk CRUD operations | -| `secure-table-provision` | secureTableProvision CRUD operations | -| `relation-provision` | relationProvision CRUD operations | -| `session-secrets-module` | sessionSecretsModule CRUD operations | -| `identity-providers-module` | identityProvidersModule CRUD operations | -| `realtime-module` | realtimeModule CRUD operations | -| `config-secrets-org-module` | configSecretsOrgModule CRUD operations | -| `schema-grant` | schemaGrant CRUD operations | -| `default-privilege` | defaultPrivilege CRUD operations | -| `enum` | enum CRUD operations | -| `function` | function CRUD operations | -| `api-schema` | apiSchema CRUD operations | -| `api-module` | apiModule CRUD operations | -| `domain` | domain CRUD operations | -| `site-metadatum` | siteMetadatum CRUD operations | -| `site-module` | siteModule CRUD operations | -| `site-theme` | siteTheme CRUD operations | -| `cors-setting` | corsSetting CRUD operations | -| `merkle-store-module` | merkleStoreModule CRUD operations | -| `graph-module` | graphModule CRUD operations | -| `trigger-function` | triggerFunction CRUD operations | -| `partition` | partition CRUD operations | -| `database-transfer` | databaseTransfer CRUD operations | -| `api` | api CRUD operations | -| `site` | site CRUD operations | -| `app` | app CRUD operations | -| `api-setting` | apiSetting CRUD operations | -| `connected-accounts-module` | connectedAccountsModule CRUD operations | -| `crypto-addresses-module` | cryptoAddressesModule CRUD operations | -| `crypto-auth-module` | cryptoAuthModule CRUD operations | -| `default-ids-module` | defaultIdsModule CRUD operations | -| `denormalized-table-field` | denormalizedTableField CRUD operations | -| `emails-module` | emailsModule CRUD operations | -| `config-secrets-user-module` | configSecretsUserModule CRUD operations | -| `invites-module` | invitesModule CRUD operations | -| `events-module` | eventsModule CRUD operations | -| `limits-module` | limitsModule CRUD operations | -| `membership-types-module` | membershipTypesModule CRUD operations | -| `memberships-module` | membershipsModule CRUD operations | -| `permissions-module` | permissionsModule CRUD operations | -| `phone-numbers-module` | phoneNumbersModule CRUD operations | -| `profiles-module` | profilesModule CRUD operations | -| `user-state-module` | userStateModule CRUD operations | -| `sessions-module` | sessionsModule CRUD operations | -| `user-auth-module` | userAuthModule CRUD operations | -| `users-module` | usersModule CRUD operations | -| `blueprint` | blueprint CRUD operations | -| `blueprint-template` | blueprintTemplate CRUD operations | -| `blueprint-construction` | blueprintConstruction CRUD operations | -| `storage-module` | storageModule CRUD operations | -| `entity-type-provision` | entityTypeProvision CRUD operations | -| `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | -| `webauthn-auth-module` | webauthnAuthModule CRUD operations | -| `notifications-module` | notificationsModule CRUD operations | -| `inference-log-module` | inferenceLogModule CRUD operations | -| `compute-log-module` | computeLogModule CRUD operations | -| `transfer-log-module` | transferLogModule CRUD operations | -| `storage-log-module` | storageLogModule CRUD operations | -| `db-usage-module` | dbUsageModule CRUD operations | -| `agent-module` | agentModule CRUD operations | -| `namespace-module` | namespaceModule CRUD operations | -| `function-module` | functionModule CRUD operations | -| `database-provision-module` | databaseProvisionModule CRUD operations | -| `app-admin-grant` | appAdminGrant CRUD operations | -| `app-owner-grant` | appOwnerGrant CRUD operations | -| `app-grant` | appGrant CRUD operations | -| `org-membership` | orgMembership CRUD operations | -| `org-member` | orgMember CRUD operations | -| `org-admin-grant` | orgAdminGrant CRUD operations | -| `org-owner-grant` | orgOwnerGrant CRUD operations | -| `org-member-profile` | orgMemberProfile CRUD operations | -| `org-grant` | orgGrant CRUD operations | -| `org-chart-edge` | orgChartEdge CRUD operations | -| `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | -| `org-permission-default` | orgPermissionDefault CRUD operations | -| `app-limit` | appLimit CRUD operations | -| `app-limit-credit` | appLimitCredit CRUD operations | -| `app-limit-credit-code-item` | appLimitCreditCodeItem CRUD operations | -| `app-limit-credit-redemption` | appLimitCreditRedemption CRUD operations | -| `org-limit` | orgLimit CRUD operations | -| `org-limit-credit` | orgLimitCredit CRUD operations | -| `org-limit-aggregate` | orgLimitAggregate CRUD operations | -| `org-limit-warning` | orgLimitWarning CRUD operations | -| `email` | email CRUD operations | -| `phone-number` | phoneNumber CRUD operations | -| `crypto-address` | cryptoAddress CRUD operations | -| `webauthn-credential` | webauthnCredential CRUD operations | -| `app-invite` | appInvite CRUD operations | -| `app-claimed-invite` | appClaimedInvite CRUD operations | -| `org-invite` | orgInvite CRUD operations | -| `org-claimed-invite` | orgClaimedInvite CRUD operations | -| `audit-log-auth` | auditLogAuth CRUD operations | -| `identity-provider` | identityProvider CRUD operations | -| `app-permission-default` | appPermissionDefault CRUD operations | -| `role-type` | roleType CRUD operations | -| `migrate-file` | migrateFile CRUD operations | -| `devices-module` | devicesModule CRUD operations | -| `app-membership-default` | appMembershipDefault CRUD operations | -| `org-membership-default` | orgMembershipDefault CRUD operations | -| `node-type-registry` | nodeTypeRegistry CRUD operations | -| `app-limit-caps-default` | appLimitCapsDefault CRUD operations | -| `org-limit-caps-default` | orgLimitCapsDefault CRUD operations | -| `app-limit-cap` | appLimitCap CRUD operations | -| `org-limit-cap` | orgLimitCap CRUD operations | -| `user-connected-account` | userConnectedAccount CRUD operations | -| `app-limit-default` | appLimitDefault CRUD operations | -| `org-limit-default` | orgLimitDefault CRUD operations | -| `app-limit-credit-code` | appLimitCreditCode CRUD operations | -| `app-limit-warning` | appLimitWarning CRUD operations | -| `pubkey-setting` | pubkeySetting CRUD operations | -| `rate-limits-module` | rateLimitsModule CRUD operations | -| `membership-type` | membershipType CRUD operations | -| `rls-setting` | rlsSetting CRUD operations | -| `rls-module` | rlsModule CRUD operations | -| `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | -| `plans-module` | plansModule CRUD operations | -| `sql-action` | sqlAction CRUD operations | -| `database-setting` | databaseSetting CRUD operations | -| `org-membership-setting` | orgMembershipSetting CRUD operations | -| `app-limit-event` | appLimitEvent CRUD operations | -| `org-limit-event` | orgLimitEvent CRUD operations | -| `app-membership` | appMembership CRUD operations | -| `user` | user CRUD operations | -| `ast-migration` | astMigration CRUD operations | -| `webauthn-setting` | webauthnSetting CRUD operations | -| `billing-module` | billingModule CRUD operations | -| `billing-provider-module` | billingProviderModule CRUD operations | -| `hierarchy-module` | hierarchyModule CRUD operations | -| `current-user-id` | currentUserId | -| `current-user-agent` | currentUserAgent | -| `current-ip-address` | currentIpAddress | -| `require-step-up` | requireStepUp | -| `app-permissions-get-padded-mask` | appPermissionsGetPaddedMask | -| `org-permissions-get-padded-mask` | orgPermissionsGetPaddedMask | -| `apply-registry-defaults` | applyRegistryDefaults | -| `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. | -| `org-is-manager-of` | orgIsManagerOf | -| `app-permissions-get-mask` | appPermissionsGetMask | -| `org-permissions-get-mask` | orgPermissionsGetMask | -| `app-permissions-get-mask-by-names` | appPermissionsGetMaskByNames | -| `org-permissions-get-mask-by-names` | orgPermissionsGetMaskByNames | -| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | -| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | -| `current-user` | currentUser | -| `send-account-deletion-email` | sendAccountDeletionEmail | -| `sign-out` | signOut | -| `accept-database-transfer` | acceptDatabaseTransfer | -| `cancel-database-transfer` | cancelDatabaseTransfer | -| `reject-database-transfer` | rejectDatabaseTransfer | -| `disconnect-account` | disconnectAccount | -| `revoke-api-key` | revokeApiKey | -| `revoke-session` | revokeSession | -| `verify-password` | verifyPassword | -| `verify-totp` | verifyTotp | -| `submit-app-invite-code` | submitAppInviteCode | -| `submit-org-invite-code` | submitOrgInviteCode | -| `check-password` | checkPassword | -| `confirm-delete-account` | confirmDeleteAccount | -| `set-password` | setPassword | -| `verify-email` | verifyEmail | -| `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | -| `provision-new-user` | provisionNewUser | -| `reset-password` | resetPassword | -| `provision-check-constraint` | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | -| `provision-unique-constraint` | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | -| `provision-full-text-search` | Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. | -| `provision-index` | Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. | -| `copy-template-to-blueprint` | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | -| `provision-spatial-relation` | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | -| `sign-in-cross-origin` | signInCrossOrigin | -| `bootstrap-user` | bootstrapUser | -| `sign-up` | signUp | -| `sign-in` | signIn | -| `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). | -| `set-field-order` | setFieldOrder | -| `apply-rls` | applyRls | -| `provision-database-with-user` | provisionDatabaseWithUser | -| `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) - -Returns the database_id UUID of the newly created database. - -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 - | -| `extend-token-expires` | extendTokenExpires | -| `create-api-key` | createApiKey | -| `request-cross-origin-token` | requestCrossOriginToken | -| `provision-table` | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | -| `send-verification-email` | sendVerificationEmail | -| `forgot-password` | forgotPassword | -| `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -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 - -### `org-get-managers-record` - -CRUD operations for OrgGetManagersRecord records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgGetManagersRecord records | -| `find-first` | Find first matching orgGetManagersRecord record | -| `get` | Get a orgGetManagersRecord by id | -| `create` | Create a new orgGetManagersRecord | -| `update` | Update an existing orgGetManagersRecord | -| `delete` | Delete a orgGetManagersRecord | - -**Fields:** - -| Field | Type | -|-------|------| -| `userId` | UUID | -| `depth` | Int | - -**Required create fields:** `userId`, `depth` - -### `org-get-subordinates-record` - -CRUD operations for OrgGetSubordinatesRecord records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgGetSubordinatesRecord records | -| `find-first` | Find first matching orgGetSubordinatesRecord record | -| `get` | Get a orgGetSubordinatesRecord by id | -| `create` | Create a new orgGetSubordinatesRecord | -| `update` | Update an existing orgGetSubordinatesRecord | -| `delete` | Delete a orgGetSubordinatesRecord | - -**Fields:** - -| Field | Type | -|-------|------| -| `userId` | UUID | -| `depth` | Int | - -**Required create fields:** `userId`, `depth` - -### `app-permission` - -CRUD operations for AppPermission records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appPermission records | -| `find-first` | Find first matching appPermission record | -| `get` | Get a appPermission by id | -| `create` | Create a new appPermission | -| `update` | Update an existing appPermission | -| `delete` | Delete a appPermission | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `bitnum` | Int | -| `bitstr` | BitString | -| `description` | String | - -**Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` - -### `org-permission` - -CRUD operations for OrgPermission records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermission records | -| `find-first` | Find first matching orgPermission record | -| `get` | Get a orgPermission by id | -| `create` | Create a new orgPermission | -| `update` | Update an existing orgPermission | -| `delete` | Delete a orgPermission | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `bitnum` | Int | -| `bitstr` | BitString | -| `description` | String | - -**Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` - -### `database` - -CRUD operations for Database records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all database records | -| `find-first` | Find first matching database record | -| `get` | Get a database by id | -| `create` | Create a new database | -| `update` | Update an existing database | -| `delete` | Delete a database | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `schemaHash` | String | -| `name` | String | -| `label` | String | -| `hash` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `ownerId`, `schemaHash`, `name`, `label`, `hash` - -### `schema` - -CRUD operations for Schema records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all schema records | -| `find-first` | Find first matching schema record | -| `get` | Get a schema by id | -| `create` | Create a new schema | -| `update` | Update an existing schema | -| `delete` | Delete a schema | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `name` | String | -| `schemaName` | String | -| `label` | String | -| `description` | String | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `isPublic` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `databaseId`, `name`, `schemaName` -**Optional create fields (backend defaults):** `label`, `description`, `smartTags`, `category`, `module`, `scope`, `tags`, `isPublic` - -### `table` - -CRUD operations for Table records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all table records | -| `find-first` | Find first matching table record | -| `get` | Get a table by id | -| `create` | Create a new table | -| `update` | Update an existing table | -| `delete` | Delete a table | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `name` | String | -| `label` | String | -| `description` | String | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `useRls` | Boolean | -| `timestamps` | Boolean | -| `peoplestamps` | Boolean | -| `pluralName` | String | -| `singularName` | String | -| `tags` | String | -| `partitioned` | Boolean | -| `partitionStrategy` | String | -| `partitionKeyNames` | String | -| `partitionKeyTypes` | String | -| `inheritsId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `schemaId`, `name` -**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `category`, `module`, `scope`, `useRls`, `timestamps`, `peoplestamps`, `pluralName`, `singularName`, `tags`, `partitioned`, `partitionStrategy`, `partitionKeyNames`, `partitionKeyTypes`, `inheritsId` - -### `check-constraint` - -CRUD operations for CheckConstraint records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all checkConstraint records | -| `find-first` | Find first matching checkConstraint record | -| `get` | Get a checkConstraint by id | -| `create` | Create a new checkConstraint | -| `update` | Update an existing checkConstraint | -| `delete` | Delete a checkConstraint | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `type` | String | -| `fieldIds` | UUID | -| `expr` | JSON | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `fieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `expr`, `smartTags`, `category`, `module`, `scope`, `tags` - -### `field` - -CRUD operations for Field records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all field records | -| `find-first` | Find first matching field record | -| `get` | Get a field by id | -| `create` | Create a new field | -| `update` | Update an existing field | -| `delete` | Delete a field | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `label` | String | -| `description` | String | -| `smartTags` | JSON | -| `isRequired` | Boolean | -| `apiRequired` | Boolean | -| `defaultValue` | JSON | -| `type` | JSON | -| `fieldOrder` | Int | -| `regexp` | String | -| `chk` | JSON | -| `chkExpr` | JSON | -| `min` | Float | -| `max` | Float | -| `tags` | String | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `createdAt` | Datetime | -| `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`, `module`, `scope` - -### `spatial-relation` - -CRUD operations for SpatialRelation records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all spatialRelation records | -| `find-first` | Find first matching spatialRelation record | -| `get` | Get a spatialRelation by id | -| `create` | Create a new spatialRelation | -| `update` | Update an existing spatialRelation | -| `delete` | Delete a spatialRelation | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `fieldId` | UUID | -| `refTableId` | UUID | -| `refFieldId` | UUID | -| `name` | String | -| `operator` | String | -| `paramName` | String | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `fieldId`, `refTableId`, `refFieldId`, `name`, `operator` -**Optional create fields (backend defaults):** `databaseId`, `paramName`, `category`, `module`, `scope`, `tags` - -### `foreign-key-constraint` - -CRUD operations for ForeignKeyConstraint records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all foreignKeyConstraint records | -| `find-first` | Find first matching foreignKeyConstraint record | -| `get` | Get a foreignKeyConstraint by id | -| `create` | Create a new foreignKeyConstraint | -| `update` | Update an existing foreignKeyConstraint | -| `delete` | Delete a foreignKeyConstraint | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `description` | String | -| `smartTags` | JSON | -| `type` | String | -| `fieldIds` | UUID | -| `refTableId` | UUID | -| `refFieldIds` | UUID | -| `deleteAction` | String | -| `updateAction` | String | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `fieldIds`, `refTableId`, `refFieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `deleteAction`, `updateAction`, `category`, `module`, `scope`, `tags` - -### `full-text-search` - -CRUD operations for FullTextSearch records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all fullTextSearch records | -| `find-first` | Find first matching fullTextSearch record | -| `get` | Get a fullTextSearch by id | -| `create` | Create a new fullTextSearch | -| `update` | Update an existing fullTextSearch | -| `delete` | Delete a fullTextSearch | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `fieldId` | UUID | -| `fieldIds` | UUID | -| `weights` | String | -| `langs` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `fieldId`, `fieldIds`, `weights`, `langs` -**Optional create fields (backend defaults):** `databaseId` - -### `index` - -CRUD operations for Index records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all index records | -| `find-first` | Find first matching index record | -| `get` | Get a index by id | -| `create` | Create a new index | -| `update` | Update an existing index | -| `delete` | Delete a index | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `fieldIds` | UUID | -| `includeFieldIds` | UUID | -| `accessMethod` | String | -| `indexParams` | JSON | -| `whereClause` | JSON | -| `isUnique` | Boolean | -| `options` | JSON | -| `opClasses` | String | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `databaseId`, `tableId` -**Optional create fields (backend defaults):** `name`, `fieldIds`, `includeFieldIds`, `accessMethod`, `indexParams`, `whereClause`, `isUnique`, `options`, `opClasses`, `smartTags`, `category`, `module`, `scope`, `tags` - -### `policy` - -CRUD operations for Policy records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all policy records | -| `find-first` | Find first matching policy record | -| `get` | Get a policy by id | -| `create` | Create a new policy | -| `update` | Update an existing policy | -| `delete` | Delete a policy | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `granteeName` | String | -| `privilege` | String | -| `permissive` | Boolean | -| `disabled` | Boolean | -| `policyType` | String | -| `data` | JSON | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId` -**Optional create fields (backend defaults):** `databaseId`, `name`, `granteeName`, `privilege`, `permissive`, `disabled`, `policyType`, `data`, `smartTags`, `category`, `module`, `scope`, `tags` - -### `primary-key-constraint` - -CRUD operations for PrimaryKeyConstraint records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all primaryKeyConstraint records | -| `find-first` | Find first matching primaryKeyConstraint record | -| `get` | Get a primaryKeyConstraint by id | -| `create` | Create a new primaryKeyConstraint | -| `update` | Update an existing primaryKeyConstraint | -| `delete` | Delete a primaryKeyConstraint | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `type` | String | -| `fieldIds` | UUID | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `fieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `smartTags`, `category`, `module`, `scope`, `tags` - -### `table-grant` - -CRUD operations for TableGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all tableGrant records | -| `find-first` | Find first matching tableGrant record | -| `get` | Get a tableGrant by id | -| `create` | Create a new tableGrant | -| `update` | Update an existing tableGrant | -| `delete` | Delete a tableGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `privilege` | String | -| `granteeName` | String | -| `fieldIds` | UUID | -| `isGrant` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `privilege`, `granteeName` -**Optional create fields (backend defaults):** `databaseId`, `fieldIds`, `isGrant` - -### `trigger` - -CRUD operations for Trigger records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all trigger records | -| `find-first` | Find first matching trigger record | -| `get` | Get a trigger by id | -| `create` | Create a new trigger | -| `update` | Update an existing trigger | -| `delete` | Delete a trigger | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `event` | String | -| `functionName` | String | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `name` -**Optional create fields (backend defaults):** `databaseId`, `event`, `functionName`, `smartTags`, `category`, `module`, `scope`, `tags` - -### `unique-constraint` - -CRUD operations for UniqueConstraint records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all uniqueConstraint records | -| `find-first` | Find first matching uniqueConstraint record | -| `get` | Get a uniqueConstraint by id | -| `create` | Create a new uniqueConstraint | -| `update` | Update an existing uniqueConstraint | -| `delete` | Delete a uniqueConstraint | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `name` | String | -| `description` | String | -| `smartTags` | JSON | -| `type` | String | -| `fieldIds` | UUID | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId`, `fieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `category`, `module`, `scope`, `tags` - -### `view` - -CRUD operations for View records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all view records | -| `find-first` | Find first matching view record | -| `get` | Get a view by id | -| `create` | Create a new view | -| `update` | Update an existing view | -| `delete` | Delete a view | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `name` | String | -| `tableId` | UUID | -| `viewType` | String | -| `data` | JSON | -| `filterType` | String | -| `filterData` | JSON | -| `securityInvoker` | Boolean | -| `isReadOnly` | Boolean | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | - -**Required create fields:** `schemaId`, `name`, `viewType` -**Optional create fields (backend defaults):** `databaseId`, `tableId`, `data`, `filterType`, `filterData`, `securityInvoker`, `isReadOnly`, `smartTags`, `category`, `module`, `scope`, `tags` - -### `view-table` - -CRUD operations for ViewTable records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all viewTable records | -| `find-first` | Find first matching viewTable record | -| `get` | Get a viewTable by id | -| `create` | Create a new viewTable | -| `update` | Update an existing viewTable | -| `delete` | Delete a viewTable | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `viewId` | UUID | -| `tableId` | UUID | -| `joinOrder` | Int | - -**Required create fields:** `viewId`, `tableId` -**Optional create fields (backend defaults):** `joinOrder` - -### `view-grant` - -CRUD operations for ViewGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all viewGrant records | -| `find-first` | Find first matching viewGrant record | -| `get` | Get a viewGrant by id | -| `create` | Create a new viewGrant | -| `update` | Update an existing viewGrant | -| `delete` | Delete a viewGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `viewId` | UUID | -| `granteeName` | String | -| `privilege` | String | -| `withGrantOption` | Boolean | -| `isGrant` | Boolean | - -**Required create fields:** `viewId`, `granteeName`, `privilege` -**Optional create fields (backend defaults):** `databaseId`, `withGrantOption`, `isGrant` - -### `view-rule` - -CRUD operations for ViewRule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all viewRule records | -| `find-first` | Find first matching viewRule record | -| `get` | Get a viewRule by id | -| `create` | Create a new viewRule | -| `update` | Update an existing viewRule | -| `delete` | Delete a viewRule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `viewId` | UUID | -| `name` | String | -| `event` | String | -| `action` | String | - -**Required create fields:** `viewId`, `name`, `event` -**Optional create fields (backend defaults):** `databaseId`, `action` - -### `embedding-chunk` - -CRUD operations for EmbeddingChunk records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all embeddingChunk records | -| `find-first` | Find first matching embeddingChunk record | -| `get` | Get a embeddingChunk by id | -| `create` | Create a new embeddingChunk | -| `update` | Update an existing embeddingChunk | -| `delete` | Delete a embeddingChunk | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `embeddingFieldId` | UUID | -| `chunksTableId` | UUID | -| `chunksTableName` | String | -| `contentFieldName` | String | -| `dimensions` | Int | -| `metric` | String | -| `chunkSize` | Int | -| `chunkOverlap` | Int | -| `chunkStrategy` | String | -| `metadataFields` | JSON | -| `searchIndexes` | JSON | -| `enqueueChunkingJob` | Boolean | -| `chunkingTaskName` | String | -| `embeddingModel` | String | -| `embeddingProvider` | String | -| `parentFkFieldId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `tableId` -**Optional create fields (backend defaults):** `databaseId`, `embeddingFieldId`, `chunksTableId`, `chunksTableName`, `contentFieldName`, `dimensions`, `metric`, `chunkSize`, `chunkOverlap`, `chunkStrategy`, `metadataFields`, `searchIndexes`, `enqueueChunkingJob`, `chunkingTaskName`, `embeddingModel`, `embeddingProvider`, `parentFkFieldId` - -### `secure-table-provision` - -CRUD operations for SecureTableProvision records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all secureTableProvision records | -| `find-first` | Find first matching secureTableProvision record | -| `get` | Get a secureTableProvision by id | -| `create` | Create a new secureTableProvision | -| `update` | Update an existing secureTableProvision | -| `delete` | Delete a secureTableProvision | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `nodes` | JSON | -| `useRls` | Boolean | -| `fields` | JSON | -| `grants` | JSON | -| `policies` | JSON | -| `outFields` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `nodes`, `useRls`, `fields`, `grants`, `policies`, `outFields` - -### `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` - -### `session-secrets-module` - -CRUD operations for SessionSecretsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all sessionSecretsModule records | -| `find-first` | Find first matching sessionSecretsModule record | -| `get` | Get a sessionSecretsModule by id | -| `create` | Create a new sessionSecretsModule | -| `update` | Update an existing sessionSecretsModule | -| `delete` | Delete a sessionSecretsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `sessionsTableId` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `sessionsTableId` - -### `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 | -| `tableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName` - -### `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 | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `subscriptionsSchemaId`, `changeLogTableId`, `listenerNodeTableId`, `sourceRegistryTableId`, `retentionHours`, `premake`, `interval`, `notifyChannel` - -### `config-secrets-org-module` - -CRUD operations for ConfigSecretsOrgModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all configSecretsOrgModule records | -| `find-first` | Find first matching configSecretsOrgModule record | -| `get` | Get a configSecretsOrgModule by id | -| `create` | Create a new configSecretsOrgModule | -| `update` | Update an existing configSecretsOrgModule | -| `delete` | Delete a configSecretsOrgModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` - -### `schema-grant` - -CRUD operations for SchemaGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all schemaGrant records | -| `find-first` | Find first matching schemaGrant record | -| `get` | Get a schemaGrant by id | -| `create` | Create a new schemaGrant | -| `update` | Update an existing schemaGrant | -| `delete` | Delete a schemaGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `granteeName` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `schemaId`, `granteeName` -**Optional create fields (backend defaults):** `databaseId` - -### `default-privilege` - -CRUD operations for DefaultPrivilege records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all defaultPrivilege records | -| `find-first` | Find first matching defaultPrivilege record | -| `get` | Get a defaultPrivilege by id | -| `create` | Create a new defaultPrivilege | -| `update` | Update an existing defaultPrivilege | -| `delete` | Delete a defaultPrivilege | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `objectType` | String | -| `privilege` | String | -| `granteeName` | String | -| `isGrant` | Boolean | - -**Required create fields:** `schemaId`, `objectType`, `privilege`, `granteeName` -**Optional create fields (backend defaults):** `databaseId`, `isGrant` - -### `enum` - -CRUD operations for Enum records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all enum records | -| `find-first` | Find first matching enum record | -| `get` | Get a enum by id | -| `create` | Create a new enum | -| `update` | Update an existing enum | -| `delete` | Delete a enum | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `name` | String | -| `label` | String | -| `description` | String | -| `values` | String | -| `smartTags` | JSON | -| `category` | ObjectCategory | -| `module` | String | -| `scope` | Int | -| `tags` | String | - -**Required create fields:** `databaseId`, `schemaId`, `name` -**Optional create fields (backend defaults):** `label`, `description`, `values`, `smartTags`, `category`, `module`, `scope`, `tags` - -### `function` - -CRUD operations for Function records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all function records | -| `find-first` | Find first matching function record | -| `get` | Get a function by id | -| `create` | Create a new function | -| `update` | Update an existing function | -| `delete` | Delete a function | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `name` | String | - -**Required create fields:** `databaseId`, `schemaId`, `name` - -### `api-schema` - -CRUD operations for ApiSchema records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all apiSchema records | -| `find-first` | Find first matching apiSchema record | -| `get` | Get a apiSchema by id | -| `create` | Create a new apiSchema | -| `update` | Update an existing apiSchema | -| `delete` | Delete a apiSchema | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `apiId` | UUID | - -**Required create fields:** `databaseId`, `schemaId`, `apiId` - -### `api-module` - -CRUD operations for ApiModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all apiModule records | -| `find-first` | Find first matching apiModule record | -| `get` | Get a apiModule by id | -| `create` | Create a new apiModule | -| `update` | Update an existing apiModule | -| `delete` | Delete a apiModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `apiId` | UUID | -| `name` | String | -| `data` | JSON | - -**Required create fields:** `databaseId`, `apiId`, `name`, `data` - -### `domain` - -CRUD operations for Domain records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all domain records | -| `find-first` | Find first matching domain record | -| `get` | Get a domain by id | -| `create` | Create a new domain | -| `update` | Update an existing domain | -| `delete` | Delete a domain | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `apiId` | UUID | -| `siteId` | UUID | -| `subdomain` | Hostname | -| `domain` | Hostname | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiId`, `siteId`, `subdomain`, `domain` - -### `site-metadatum` - -CRUD operations for SiteMetadatum records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all siteMetadatum records | -| `find-first` | Find first matching siteMetadatum record | -| `get` | Get a siteMetadatum by id | -| `create` | Create a new siteMetadatum | -| `update` | Update an existing siteMetadatum | -| `delete` | Delete a siteMetadatum | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `siteId` | UUID | -| `title` | String | -| `description` | String | -| `ogImage` | Image | - -**Required create fields:** `databaseId`, `siteId` -**Optional create fields (backend defaults):** `title`, `description`, `ogImage` - -### `site-module` - -CRUD operations for SiteModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all siteModule records | -| `find-first` | Find first matching siteModule record | -| `get` | Get a siteModule by id | -| `create` | Create a new siteModule | -| `update` | Update an existing siteModule | -| `delete` | Delete a siteModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `siteId` | UUID | -| `name` | String | -| `data` | JSON | - -**Required create fields:** `databaseId`, `siteId`, `name`, `data` - -### `site-theme` - -CRUD operations for SiteTheme records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all siteTheme records | -| `find-first` | Find first matching siteTheme record | -| `get` | Get a siteTheme by id | -| `create` | Create a new siteTheme | -| `update` | Update an existing siteTheme | -| `delete` | Delete a siteTheme | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `siteId` | UUID | -| `theme` | JSON | - -**Required create fields:** `databaseId`, `siteId`, `theme` - -### `cors-setting` - -CRUD operations for CorsSetting records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all corsSetting records | -| `find-first` | Find first matching corsSetting record | -| `get` | Get a corsSetting by id | -| `create` | Create a new corsSetting | -| `update` | Update an existing corsSetting | -| `delete` | Delete a corsSetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `apiId` | UUID | -| `allowedOrigins` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `apiId`, `allowedOrigins` - -### `merkle-store-module` - -CRUD operations for MerkleStoreModule 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 | - -**Fields:** - -| Field | Type | -|-------|------| -| `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 | -| `scopeField` | String | -| `createdAt` | Datetime | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `objectTableId`, `storeTableId`, `commitTableId`, `refTableId`, `prefix`, `apiName`, `privateApiName`, `scopeField` - -### `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 | -| `publicSchemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `prefix` | String | -| `merkleStoreModuleId` | UUID | -| `graphsTableId` | UUID | -| `executionsTableId` | UUID | -| `outputsTableId` | UUID | -| `apiName` | String | -| `privateApiName` | String | -| `scopeField` | String | -| `membershipType` | Int | -| `entityTableId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | -| `createdAt` | Datetime | - -**Required create fields:** `databaseId`, `merkleStoreModuleId` -**Optional create fields (backend defaults):** `publicSchemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `prefix`, `graphsTableId`, `executionsTableId`, `outputsTableId`, `apiName`, `privateApiName`, `scopeField`, `membershipType`, `entityTableId`, `policies`, `provisions` - -### `trigger-function` - -CRUD operations for TriggerFunction records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all triggerFunction records | -| `find-first` | Find first matching triggerFunction record | -| `get` | Get a triggerFunction by id | -| `create` | Create a new triggerFunction | -| `update` | Update an existing triggerFunction | -| `delete` | Delete a triggerFunction | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `name` | String | -| `code` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `code` - -### `partition` - -CRUD operations for Partition records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all partition records | -| `find-first` | Find first matching partition record | -| `get` | Get a partition by id | -| `create` | Create a new partition | -| `update` | Update an existing partition | -| `delete` | Delete a partition | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `strategy` | String | -| `partitionKeyId` | UUID | -| `interval` | String | -| `retention` | String | -| `retentionKeepTable` | Boolean | -| `premake` | Int | -| `namingPattern` | String | -| `isParented` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `databaseId`, `tableId`, `strategy`, `partitionKeyId` -**Optional create fields (backend defaults):** `interval`, `retention`, `retentionKeepTable`, `premake`, `namingPattern`, `isParented` - -### `database-transfer` - -CRUD operations for DatabaseTransfer records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all databaseTransfer records | -| `find-first` | Find first matching databaseTransfer record | -| `get` | Get a databaseTransfer by id | -| `create` | Create a new databaseTransfer | -| `update` | Update an existing databaseTransfer | -| `delete` | Delete a databaseTransfer | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `targetOwnerId` | UUID | -| `sourceApproved` | Boolean | -| `targetApproved` | Boolean | -| `sourceApprovedAt` | Datetime | -| `targetApprovedAt` | Datetime | -| `status` | String | -| `initiatedBy` | UUID | -| `notes` | String | -| `expiresAt` | Datetime | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `completedAt` | Datetime | - -**Required create fields:** `databaseId`, `targetOwnerId`, `initiatedBy` -**Optional create fields (backend defaults):** `sourceApproved`, `targetApproved`, `sourceApprovedAt`, `targetApprovedAt`, `status`, `notes`, `expiresAt`, `completedAt` - -### `api` - -CRUD operations for Api records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all api records | -| `find-first` | Find first matching api record | -| `get` | Get a api by id | -| `create` | Create a new api | -| `update` | Update an existing api | -| `delete` | Delete a api | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `name` | String | -| `dbname` | String | -| `roleName` | String | -| `anonRole` | String | -| `isPublic` | Boolean | - -**Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `dbname`, `roleName`, `anonRole`, `isPublic` - -### `site` - -CRUD operations for Site records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all site records | -| `find-first` | Find first matching site record | -| `get` | Get a site by id | -| `create` | Create a new site | -| `update` | Update an existing site | -| `delete` | Delete a site | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `title` | String | -| `description` | String | -| `ogImage` | Image | -| `favicon` | Attachment | -| `appleTouchIcon` | Image | -| `logo` | Image | -| `dbname` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `title`, `description`, `ogImage`, `favicon`, `appleTouchIcon`, `logo`, `dbname` - -### `app` - -CRUD operations for App records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all app records | -| `find-first` | Find first matching app record | -| `get` | Get a app by id | -| `create` | Create a new app | -| `update` | Update an existing app | -| `delete` | Delete a app | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `siteId` | UUID | -| `name` | String | -| `appImage` | Image | -| `appStoreLink` | Url | -| `appStoreId` | String | -| `appIdPrefix` | String | -| `playStoreLink` | Url | - -**Required create fields:** `databaseId`, `siteId` -**Optional create fields (backend defaults):** `name`, `appImage`, `appStoreLink`, `appStoreId`, `appIdPrefix`, `playStoreLink` - -### `api-setting` - -CRUD operations for ApiSetting records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all apiSetting records | -| `find-first` | Find first matching apiSetting record | -| `get` | Get a apiSetting by id | -| `create` | Create a new apiSetting | -| `update` | Update an existing apiSetting | -| `delete` | Delete a apiSetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `apiId` | UUID | -| `enableAggregates` | Boolean | -| `enablePostgis` | Boolean | -| `enableSearch` | Boolean | -| `enableDirectUploads` | Boolean | -| `enablePresignedUploads` | Boolean | -| `enableManyToMany` | Boolean | -| `enableConnectionFilter` | Boolean | -| `enableLtree` | Boolean | -| `enableLlm` | Boolean | -| `enableRealtime` | Boolean | -| `enableBulk` | Boolean | -| `options` | JSON | - -**Required create fields:** `databaseId`, `apiId` -**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `options` - -### `connected-accounts-module` - -CRUD operations for ConnectedAccountsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all connectedAccountsModule records | -| `find-first` | Find first matching connectedAccountsModule record | -| `get` | Get a connectedAccountsModule by id | -| `create` | Create a new connectedAccountsModule | -| `update` | Update an existing connectedAccountsModule | -| `delete` | Delete a connectedAccountsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableId` | UUID | -| `ownerTableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId`, `tableName` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` - -### `crypto-addresses-module` - -CRUD operations for CryptoAddressesModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all cryptoAddressesModule records | -| `find-first` | Find first matching cryptoAddressesModule record | -| `get` | Get a cryptoAddressesModule by id | -| `create` | Create a new cryptoAddressesModule | -| `update` | Update an existing cryptoAddressesModule | -| `delete` | Delete a cryptoAddressesModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableId` | UUID | -| `ownerTableId` | UUID | -| `tableName` | String | -| `cryptoNetwork` | String | - -**Required create fields:** `databaseId`, `tableName` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `cryptoNetwork` - -### `crypto-auth-module` - -CRUD operations for CryptoAuthModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all cryptoAuthModule records | -| `find-first` | Find first matching cryptoAuthModule record | -| `get` | Get a cryptoAuthModule by id | -| `create` | Create a new cryptoAuthModule | -| `update` | Update an existing cryptoAuthModule | -| `delete` | Delete a cryptoAuthModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `usersTableId` | UUID | -| `secretsTableId` | UUID | -| `sessionsTableId` | UUID | -| `sessionCredentialsTableId` | UUID | -| `addressesTableId` | UUID | -| `userField` | String | -| `cryptoNetwork` | String | -| `signInRequestChallenge` | String | -| `signInRecordFailure` | String | -| `signUpWithKey` | String | -| `signInWithChallenge` | String | - -**Required create fields:** `databaseId`, `userField` -**Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `secretsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `addressesTableId`, `cryptoNetwork`, `signInRequestChallenge`, `signInRecordFailure`, `signUpWithKey`, `signInWithChallenge` - -### `default-ids-module` - -CRUD operations for DefaultIdsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all defaultIdsModule records | -| `find-first` | Find first matching defaultIdsModule record | -| `get` | Get a defaultIdsModule by id | -| `create` | Create a new defaultIdsModule | -| `update` | Update an existing defaultIdsModule | -| `delete` | Delete a defaultIdsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | - -**Required create fields:** `databaseId` - -### `denormalized-table-field` - -CRUD operations for DenormalizedTableField records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all denormalizedTableField records | -| `find-first` | Find first matching denormalizedTableField record | -| `get` | Get a denormalizedTableField by id | -| `create` | Create a new denormalizedTableField | -| `update` | Update an existing denormalizedTableField | -| `delete` | Delete a denormalizedTableField | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `tableId` | UUID | -| `fieldId` | UUID | -| `setIds` | UUID | -| `refTableId` | UUID | -| `refFieldId` | UUID | -| `refIds` | UUID | -| `useUpdates` | Boolean | -| `updateDefaults` | Boolean | -| `funcName` | String | -| `funcOrder` | Int | - -**Required create fields:** `databaseId`, `tableId`, `fieldId`, `refTableId`, `refFieldId` -**Optional create fields (backend defaults):** `setIds`, `refIds`, `useUpdates`, `updateDefaults`, `funcName`, `funcOrder` - -### `emails-module` - -CRUD operations for EmailsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all emailsModule records | -| `find-first` | Find first matching emailsModule record | -| `get` | Get a emailsModule by id | -| `create` | Create a new emailsModule | -| `update` | Update an existing emailsModule | -| `delete` | Delete a emailsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableId` | UUID | -| `ownerTableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId`, `tableName` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` - -### `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 | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `configDefinitionsTableId` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `configDefinitionsTableId` - -### `invites-module` - -CRUD operations for InvitesModule 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 | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `emailsTableId` | UUID | -| `usersTableId` | UUID | -| `invitesTableId` | UUID | -| `claimedInvitesTableId` | UUID | -| `invitesTableName` | String | -| `claimedInvitesTableName` | String | -| `submitInviteCodeFunction` | String | -| `prefix` | String | -| `membershipType` | Int | -| `entityTableId` | UUID | - -**Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `emailsTableId`, `usersTableId`, `invitesTableId`, `claimedInvitesTableId`, `invitesTableName`, `claimedInvitesTableName`, `submitInviteCodeFunction`, `prefix`, `entityTableId` - -### `events-module` - -CRUD operations for EventsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all eventsModule records | -| `find-first` | Find first matching eventsModule record | -| `get` | Get a eventsModule by id | -| `create` | Create a new eventsModule | -| `update` | Update an existing eventsModule | -| `delete` | Delete a eventsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `eventsTableId` | UUID | -| `eventsTableName` | String | -| `eventAggregatesTableId` | UUID | -| `eventAggregatesTableName` | String | -| `eventTypesTableId` | UUID | -| `eventTypesTableName` | String | -| `levelsTableId` | UUID | -| `levelsTableName` | String | -| `levelRequirementsTableId` | UUID | -| `levelRequirementsTableName` | String | -| `levelGrantsTableId` | UUID | -| `levelGrantsTableName` | String | -| `achievementRewardsTableId` | UUID | -| `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` | Int | -| `prefix` | String | -| `membershipType` | Int | -| `entityTableId` | UUID | -| `actorTableId` | UUID | - -**Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `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`, `prefix`, `entityTableId`, `actorTableId` - -### `limits-module` - -CRUD operations for LimitsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all limitsModule records | -| `find-first` | Find first matching limitsModule record | -| `get` | Get a limitsModule by id | -| `create` | Create a new limitsModule | -| `update` | Update an existing limitsModule | -| `delete` | Delete a limitsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `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 | -| `prefix` | String | -| `membershipType` | Int | -| `entityTableId` | UUID | -| `actorTableId` | UUID | - -**Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `limitCreditsTableId`, `eventsTableId`, `creditCodesTableId`, `creditCodeItemsTableId`, `creditRedemptionsTableId`, `aggregateTableId`, `limitCapsTableId`, `limitCapsDefaultsTableId`, `capCheckTrigger`, `resolveCapFunction`, `limitWarningsTableId`, `limitWarningStateTableId`, `limitCheckSoftFunction`, `limitAggregateCheckSoftFunction`, `prefix`, `entityTableId`, `actorTableId` - -### `membership-types-module` - -CRUD operations for MembershipTypesModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all membershipTypesModule records | -| `find-first` | Find first matching membershipTypesModule record | -| `get` | Get a membershipTypesModule by id | -| `create` | Create a new membershipTypesModule | -| `update` | Update an existing membershipTypesModule | -| `delete` | Delete a membershipTypesModule | - -**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` - -### `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 | -| `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 | -| `membershipType` | Int | -| `entityTableId` | UUID | -| `entityTableOwnerId` | UUID | -| `prefix` | String | -| `getOrgFn` | String | -| `actorMaskCheck` | String | -| `actorPermCheck` | String | -| `entityIdsByMask` | String | -| `entityIdsByPerm` | String | -| `entityIdsFunction` | String | -| `memberProfilesTableId` | UUID | - -**Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `membershipsTableId`, `membershipsTableName`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `membershipSettingsTableId`, `membershipSettingsTableName`, `grantsTableId`, `grantsTableName`, `actorTableId`, `limitsTableId`, `defaultLimitsTableId`, `permissionsTableId`, `defaultPermissionsTableId`, `sprtTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `entityTableId`, `entityTableOwnerId`, `prefix`, `getOrgFn`, `actorMaskCheck`, `actorPermCheck`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction`, `memberProfilesTableId` - -### `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 | -| `tableId` | UUID | -| `tableName` | String | -| `defaultTableId` | UUID | -| `defaultTableName` | String | -| `bitlen` | Int | -| `membershipType` | Int | -| `entityTableId` | UUID | -| `actorTableId` | UUID | -| `prefix` | String | -| `getPaddedMask` | String | -| `getMask` | String | -| `getByMask` | String | -| `getMaskByName` | String | - -**Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `bitlen`, `entityTableId`, `actorTableId`, `prefix`, `getPaddedMask`, `getMask`, `getByMask`, `getMaskByName` - -### `phone-numbers-module` - -CRUD operations for PhoneNumbersModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all phoneNumbersModule records | -| `find-first` | Find first matching phoneNumbersModule record | -| `get` | Get a phoneNumbersModule by id | -| `create` | Create a new phoneNumbersModule | -| `update` | Update an existing phoneNumbersModule | -| `delete` | Delete a phoneNumbersModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableId` | UUID | -| `ownerTableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId`, `tableName` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` - -### `profiles-module` - -CRUD operations for ProfilesModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all profilesModule records | -| `find-first` | Find first matching profilesModule record | -| `get` | Get a profilesModule by id | -| `create` | Create a new profilesModule | -| `update` | Update an existing profilesModule | -| `delete` | Delete a profilesModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `profilePermissionsTableId` | UUID | -| `profilePermissionsTableName` | String | -| `profileGrantsTableId` | UUID | -| `profileGrantsTableName` | String | -| `profileDefinitionGrantsTableId` | UUID | -| `profileDefinitionGrantsTableName` | String | -| `profileTemplatesTableId` | UUID | -| `profileTemplatesTableName` | String | -| `membershipType` | Int | -| `entityTableId` | UUID | -| `actorTableId` | UUID | -| `permissionsTableId` | UUID | -| `membershipsTableId` | UUID | -| `prefix` | String | - -**Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `prefix` - -### `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` - -### `sessions-module` - -CRUD operations for SessionsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all sessionsModule records | -| `find-first` | Find first matching sessionsModule record | -| `get` | Get a sessionsModule by id | -| `create` | Create a new sessionsModule | -| `update` | Update an existing sessionsModule | -| `delete` | Delete a sessionsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `sessionsTableId` | UUID | -| `sessionCredentialsTableId` | UUID | -| `authSettingsTableId` | UUID | -| `usersTableId` | UUID | -| `sessionsDefaultExpiration` | Interval | -| `sessionsTable` | String | -| `sessionCredentialsTable` | String | -| `authSettingsTable` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `sessionsTableId`, `sessionCredentialsTableId`, `authSettingsTableId`, `usersTableId`, `sessionsDefaultExpiration`, `sessionsTable`, `sessionCredentialsTable`, `authSettingsTable` - -### `user-auth-module` - -CRUD operations for UserAuthModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all userAuthModule records | -| `find-first` | Find first matching userAuthModule record | -| `get` | Get a userAuthModule by id | -| `create` | Create a new userAuthModule | -| `update` | Update an existing userAuthModule | -| `delete` | Delete a userAuthModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `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 | - -**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` - -### `users-module` - -CRUD operations for UsersModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all usersModule records | -| `find-first` | Find first matching usersModule record | -| `get` | Get a usersModule by id | -| `create` | Create a new usersModule | -| `update` | Update an existing usersModule | -| `delete` | Delete a usersModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `typeTableId` | UUID | -| `typeTableName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `typeTableId`, `typeTableName` - -### `blueprint` - -CRUD operations for Blueprint records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all blueprint records | -| `find-first` | Find first matching blueprint record | -| `get` | Get a blueprint by id | -| `create` | Create a new blueprint | -| `update` | Update an existing blueprint | -| `delete` | Delete a blueprint | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `databaseId` | UUID | -| `name` | String | -| `displayName` | String | -| `description` | String | -| `definition` | JSON | -| `templateId` | UUID | -| `definitionHash` | UUID | -| `tableHashes` | JSON | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `ownerId`, `databaseId`, `name`, `displayName`, `definition` -**Optional create fields (backend defaults):** `description`, `templateId`, `definitionHash`, `tableHashes` - -### `blueprint-template` - -CRUD operations for BlueprintTemplate records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all blueprintTemplate records | -| `find-first` | Find first matching blueprintTemplate record | -| `get` | Get a blueprintTemplate by id | -| `create` | Create a new blueprintTemplate | -| `update` | Update an existing blueprintTemplate | -| `delete` | Delete a blueprintTemplate | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `version` | String | -| `displayName` | String | -| `description` | String | -| `ownerId` | UUID | -| `visibility` | String | -| `categories` | String | -| `tags` | String | -| `definition` | JSON | -| `definitionSchemaVersion` | String | -| `source` | String | -| `complexity` | String | -| `copyCount` | Int | -| `forkCount` | Int | -| `forkedFromId` | UUID | -| `definitionHash` | UUID | -| `tableHashes` | JSON | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `name`, `displayName`, `ownerId`, `definition` -**Optional create fields (backend defaults):** `version`, `description`, `visibility`, `categories`, `tags`, `definitionSchemaVersion`, `source`, `complexity`, `copyCount`, `forkCount`, `forkedFromId`, `definitionHash`, `tableHashes` - -### `blueprint-construction` - -CRUD operations for BlueprintConstruction records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all blueprintConstruction records | -| `find-first` | Find first matching blueprintConstruction record | -| `get` | Get a blueprintConstruction by id | -| `create` | Create a new blueprintConstruction | -| `update` | Update an existing blueprintConstruction | -| `delete` | Delete a blueprintConstruction | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `blueprintId` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `status` | String | -| `errorDetails` | String | -| `tableMap` | JSON | -| `constructedDefinition` | JSON | -| `constructedAt` | Datetime | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `blueprintId`, `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `status`, `errorDetails`, `tableMap`, `constructedDefinition`, `constructedAt` - -### `storage-module` - -CRUD operations for StorageModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all storageModule records | -| `find-first` | Find first matching storageModule record | -| `get` | Get a storageModule by id | -| `create` | Create a new storageModule | -| `update` | Update an existing storageModule | -| `delete` | Delete a storageModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `bucketsTableId` | UUID | -| `filesTableId` | UUID | -| `bucketsTableName` | String | -| `filesTableName` | String | -| `membershipType` | Int | -| `key` | String | -| `policies` | JSON | -| `provisions` | JSON | -| `entityTableId` | UUID | -| `endpoint` | String | -| `publicUrlPrefix` | String | -| `provider` | String | -| `allowedOrigins` | String | -| `restrictReads` | Boolean | -| `hasPathShares` | Boolean | -| `pathSharesTableId` | UUID | -| `uploadUrlExpirySeconds` | Int | -| `downloadUrlExpirySeconds` | Int | -| `defaultMaxFileSize` | BigInt | -| `maxFilenameLength` | Int | -| `cacheTtlSeconds` | Int | -| `maxBulkFiles` | Int | -| `maxBulkTotalSize` | BigInt | -| `hasVersioning` | Boolean | -| `hasContentHash` | Boolean | -| `hasCustomKeys` | Boolean | -| `hasAuditLog` | Boolean | -| `hasConfirmUpload` | Boolean | -| `confirmUploadDelay` | Interval | -| `fileEventsTableId` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `key`, `policies`, `provisions`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId` - -### `entity-type-provision` - -CRUD operations for EntityTypeProvision records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all entityTypeProvision records | -| `find-first` | Find first matching entityTypeProvision record | -| `get` | Get a entityTypeProvision by id | -| `create` | Create a new entityTypeProvision | -| `update` | Update an existing entityTypeProvision | -| `delete` | Delete a entityTypeProvision | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `name` | String | -| `prefix` | String | -| `description` | String | -| `parentEntity` | String | -| `tableName` | String | -| `isVisible` | Boolean | -| `hasLimits` | Boolean | -| `hasProfiles` | Boolean | -| `hasLevels` | Boolean | -| `hasInvites` | Boolean | -| `hasInviteAchievements` | Boolean | -| `storage` | JSON | -| `namespaces` | JSON | -| `functions` | JSON | -| `graphs` | JSON | -| `agents` | JSON | -| `skipEntityPolicies` | Boolean | -| `tableProvision` | JSON | -| `outMembershipType` | Int | -| `outEntityTableId` | UUID | -| `outEntityTableName` | String | -| `outInstalledModules` | String | -| `outStorageModuleId` | UUID | -| `outBucketsTableId` | UUID | -| `outFilesTableId` | UUID | -| `outPathSharesTableId` | UUID | -| `outInvitesModuleId` | UUID | -| `outNamespaceModuleId` | UUID | -| `outNamespacesTableId` | UUID | -| `outNamespaceEventsTableId` | UUID | -| `outFunctionModuleId` | UUID | -| `outDefinitionsTableId` | UUID | -| `outInvocationsTableId` | UUID | -| `outExecutionLogsTableId` | UUID | -| `outSecretDefinitionsTableId` | UUID | -| `outRequirementsTableId` | UUID | -| `outConfigRequirementsTableId` | 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`, `outRequirementsTableId`, `outConfigRequirementsTableId`, `outGraphModuleId`, `outGraphsTableId`, `outAgentModuleId` - -### `webauthn-credentials-module` - -CRUD operations for WebauthnCredentialsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all webauthnCredentialsModule records | -| `find-first` | Find first matching webauthnCredentialsModule record | -| `get` | Get a webauthnCredentialsModule by id | -| `create` | Create a new webauthnCredentialsModule | -| `update` | Update an existing webauthnCredentialsModule | -| `delete` | Delete a webauthnCredentialsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableId` | UUID | -| `ownerTableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `tableName` - -### `webauthn-auth-module` - -CRUD operations for WebauthnAuthModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all webauthnAuthModule records | -| `find-first` | Find first matching webauthnAuthModule record | -| `get` | Get a webauthnAuthModule by id | -| `create` | Create a new webauthnAuthModule | -| `update` | Update an existing webauthnAuthModule | -| `delete` | Delete a webauthnAuthModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `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 | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `credentialsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `sessionSecretsTableId`, `authSettingsTableId`, `rpId`, `rpName`, `originAllowlist`, `attestationType`, `requireUserVerification`, `residentKey`, `challengeExpiry` - -### `notifications-module` - -CRUD operations for NotificationsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all notificationsModule records | -| `find-first` | Find first matching notificationsModule record | -| `get` | Get a notificationsModule by id | -| `create` | Create a new notificationsModule | -| `update` | Update an existing notificationsModule | -| `delete` | Delete a notificationsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `notificationsTableId` | UUID | -| `readStateTableId` | UUID | -| `preferencesTableId` | UUID | -| `channelsTableId` | UUID | -| `deliveryLogTableId` | UUID | -| `ownerTableId` | UUID | -| `userSettingsTableId` | UUID | -| `organizationSettingsTableId` | UUID | -| `hasChannels` | Boolean | -| `hasPreferences` | Boolean | -| `hasSettingsExtension` | Boolean | -| `hasDigestMetadata` | Boolean | -| `hasSubscriptions` | Boolean | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions` - -### `inference-log-module` - -CRUD operations for InferenceLogModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all inferenceLogModule records | -| `find-first` | Find first matching inferenceLogModule record | -| `get` | Get a inferenceLogModule by id | -| `create` | Create a new inferenceLogModule | -| `update` | Update an existing inferenceLogModule | -| `delete` | Delete a inferenceLogModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `inferenceLogTableId` | UUID | -| `inferenceLogTableName` | String | -| `usageDailyTableId` | UUID | -| `usageDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | -| `scope` | String | -| `actorFkTableId` | UUID | -| `entityFkTableId` | UUID | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` - -### `compute-log-module` - -CRUD operations for ComputeLogModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all computeLogModule records | -| `find-first` | Find first matching computeLogModule record | -| `get` | Get a computeLogModule by id | -| `create` | Create a new computeLogModule | -| `update` | Update an existing computeLogModule | -| `delete` | Delete a computeLogModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `computeLogTableId` | UUID | -| `computeLogTableName` | String | -| `usageDailyTableId` | UUID | -| `usageDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | -| `scope` | String | -| `actorFkTableId` | UUID | -| `entityFkTableId` | UUID | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `computeLogTableId`, `computeLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` - -### `transfer-log-module` - -CRUD operations for TransferLogModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all transferLogModule records | -| `find-first` | Find first matching transferLogModule record | -| `get` | Get a transferLogModule by id | -| `create` | Create a new transferLogModule | -| `update` | Update an existing transferLogModule | -| `delete` | Delete a transferLogModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `transferLogTableId` | UUID | -| `transferLogTableName` | String | -| `usageDailyTableId` | UUID | -| `usageDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | -| `scope` | String | -| `actorFkTableId` | UUID | -| `entityFkTableId` | UUID | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `transferLogTableId`, `transferLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` - -### `storage-log-module` - -CRUD operations for StorageLogModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all storageLogModule records | -| `find-first` | Find first matching storageLogModule record | -| `get` | Get a storageLogModule by id | -| `create` | Create a new storageLogModule | -| `update` | Update an existing storageLogModule | -| `delete` | Delete a storageLogModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `storageLogTableId` | UUID | -| `storageLogTableName` | String | -| `usageDailyTableId` | UUID | -| `usageDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | -| `scope` | String | -| `actorFkTableId` | UUID | -| `entityFkTableId` | UUID | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `storageLogTableId`, `storageLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` - -### `db-usage-module` - -CRUD operations for DbUsageModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all dbUsageModule records | -| `find-first` | Find first matching dbUsageModule record | -| `get` | Get a dbUsageModule by id | -| `create` | Create a new dbUsageModule | -| `update` | Update an existing dbUsageModule | -| `delete` | Delete a dbUsageModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableStatsLogTableId` | UUID | -| `tableStatsLogTableName` | String | -| `tableStatsDailyTableId` | UUID | -| `tableStatsDailyTableName` | String | -| `queryStatsLogTableId` | UUID | -| `queryStatsLogTableName` | String | -| `queryStatsDailyTableId` | UUID | -| `queryStatsDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | -| `scope` | String | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsDailyTableId`, `tableStatsDailyTableName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsDailyTableId`, `queryStatsDailyTableName`, `interval`, `retention`, `premake`, `scope`, `prefix` - -### `agent-module` - -CRUD operations for AgentModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all agentModule records | -| `find-first` | Find first matching agentModule record | -| `get` | Get a agentModule by id | -| `create` | Create a new agentModule | -| `update` | Update an existing agentModule | -| `delete` | Delete a agentModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `threadTableId` | UUID | -| `messageTableId` | UUID | -| `taskTableId` | UUID | -| `promptsTableId` | UUID | -| `knowledgeTableId` | UUID | -| `threadTableName` | String | -| `messageTableName` | String | -| `taskTableName` | String | -| `promptsTableName` | String | -| `knowledgeTableName` | String | -| `hasKnowledge` | Boolean | -| `apiName` | String | -| `membershipType` | Int | -| `key` | String | -| `entityTableId` | UUID | -| `policies` | JSON | -| `knowledgeConfig` | JSON | -| `knowledgePolicies` | JSON | -| `provisions` | JSON | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `threadTableId`, `messageTableId`, `taskTableId`, `promptsTableId`, `knowledgeTableId`, `threadTableName`, `messageTableName`, `taskTableName`, `promptsTableName`, `knowledgeTableName`, `hasKnowledge`, `apiName`, `membershipType`, `key`, `entityTableId`, `policies`, `knowledgeConfig`, `knowledgePolicies`, `provisions` - -### `namespace-module` - -CRUD operations for NamespaceModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all namespaceModule records | -| `find-first` | Find first matching namespaceModule record | -| `get` | Get a namespaceModule by id | -| `create` | Create a new namespaceModule | -| `update` | Update an existing namespaceModule | -| `delete` | Delete a namespaceModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `namespacesTableId` | UUID | -| `namespaceEventsTableId` | UUID | -| `namespacesTableName` | String | -| `namespaceEventsTableName` | String | -| `apiName` | String | -| `privateApiName` | String | -| `membershipType` | Int | -| `key` | String | -| `entityTableId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `namespacesTableId`, `namespaceEventsTableId`, `namespacesTableName`, `namespaceEventsTableName`, `apiName`, `privateApiName`, `membershipType`, `key`, `entityTableId`, `policies`, `provisions` - -### `function-module` - -CRUD operations for FunctionModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all functionModule records | -| `find-first` | Find first matching functionModule record | -| `get` | Get a functionModule by id | -| `create` | Create a new functionModule | -| `update` | Update an existing functionModule | -| `delete` | Delete a functionModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `definitionsTableId` | UUID | -| `invocationsTableId` | UUID | -| `executionLogsTableId` | UUID | -| `secretDefinitionsTableId` | UUID | -| `requirementsTableId` | UUID | -| `configDefinitionsTableId` | UUID | -| `configRequirementsTableId` | UUID | -| `definitionsTableName` | String | -| `invocationsTableName` | String | -| `executionLogsTableName` | String | -| `secretDefinitionsTableName` | String | -| `requirementsTableName` | String | -| `configRequirementsTableName` | String | -| `apiName` | String | -| `privateApiName` | String | -| `membershipType` | Int | -| `prefix` | String | -| `key` | String | -| `entityTableId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `definitionsTableId`, `invocationsTableId`, `executionLogsTableId`, `secretDefinitionsTableId`, `requirementsTableId`, `configDefinitionsTableId`, `configRequirementsTableId`, `definitionsTableName`, `invocationsTableName`, `executionLogsTableName`, `secretDefinitionsTableName`, `requirementsTableName`, `configRequirementsTableName`, `apiName`, `privateApiName`, `membershipType`, `prefix`, `key`, `entityTableId`, `policies`, `provisions` - -### `database-provision-module` - -CRUD operations for DatabaseProvisionModule 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 | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseName` | String | -| `ownerId` | UUID | -| `subdomain` | String | -| `domain` | String | -| `modules` | String | -| `options` | JSON | -| `bootstrapUser` | Boolean | -| `status` | String | -| `errorMessage` | String | -| `databaseId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `completedAt` | Datetime | - -**Required create fields:** `databaseName`, `ownerId`, `domain` -**Optional create fields (backend defaults):** `subdomain`, `modules`, `options`, `bootstrapUser`, `status`, `errorMessage`, `databaseId`, `completedAt` - -### `app-admin-grant` - -CRUD operations for AppAdminGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appAdminGrant records | -| `find-first` | Find first matching appAdminGrant record | -| `get` | Get a appAdminGrant by id | -| `create` | Create a new appAdminGrant | -| `update` | Update an existing appAdminGrant | -| `delete` | Delete a appAdminGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` - -### `app-owner-grant` - -CRUD operations for AppOwnerGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appOwnerGrant records | -| `find-first` | Find first matching appOwnerGrant record | -| `get` | Get a appOwnerGrant by id | -| `create` | Create a new appOwnerGrant | -| `update` | Update an existing appOwnerGrant | -| `delete` | Delete a appOwnerGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` - -### `app-grant` - -CRUD operations for AppGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appGrant records | -| `find-first` | Find first matching appGrant record | -| `get` | Get a appGrant by id | -| `create` | Create a new appGrant | -| `update` | Update an existing appGrant | -| `delete` | Delete a appGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `permissions` | BitString | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` - -### `org-membership` - -CRUD operations for OrgMembership records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMembership records | -| `find-first` | Find first matching orgMembership record | -| `get` | Get a orgMembership by id | -| `create` | Create a new orgMembership | -| `update` | Update an existing orgMembership | -| `delete` | Delete a orgMembership | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isActive` | Boolean | -| `isExternal` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `entityId` | UUID | -| `isReadOnly` | Boolean | -| `profileId` | UUID | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isActive`, `isExternal`, `isOwner`, `isAdmin`, `permissions`, `granted`, `isReadOnly`, `profileId` - -### `org-member` - -CRUD operations for OrgMember records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMember records | -| `find-first` | Find first matching orgMember record | -| `get` | Get a orgMember by id | -| `create` | Create a new orgMember | -| `update` | Update an existing orgMember | -| `delete` | Delete a orgMember | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `isAdmin` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isAdmin` - -### `org-admin-grant` - -CRUD operations for OrgAdminGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgAdminGrant records | -| `find-first` | Find first matching orgAdminGrant record | -| `get` | Get a orgAdminGrant by id | -| `create` | Create a new orgAdminGrant | -| `update` | Update an existing orgAdminGrant | -| `delete` | Delete a orgAdminGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` - -### `org-owner-grant` - -CRUD operations for OrgOwnerGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgOwnerGrant records | -| `find-first` | Find first matching orgOwnerGrant record | -| `get` | Get a orgOwnerGrant by id | -| `create` | Create a new orgOwnerGrant | -| `update` | Update an existing orgOwnerGrant | -| `delete` | Delete a orgOwnerGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` - -### `org-member-profile` - -CRUD operations for OrgMemberProfile records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMemberProfile records | -| `find-first` | Find first matching orgMemberProfile record | -| `get` | Get a orgMemberProfile by id | -| `create` | Create a new orgMemberProfile | -| `update` | Update an existing orgMemberProfile | -| `delete` | Delete a orgMemberProfile | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `membershipId` | UUID | -| `entityId` | UUID | -| `actorId` | UUID | -| `displayName` | String | -| `email` | String | -| `title` | String | -| `bio` | String | -| `profilePicture` | Image | - -**Required create fields:** `membershipId`, `entityId`, `actorId` -**Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` - -### `org-grant` - -CRUD operations for OrgGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgGrant records | -| `find-first` | Find first matching orgGrant record | -| `get` | Get a orgGrant by id | -| `create` | Create a new orgGrant | -| `update` | Update an existing orgGrant | -| `delete` | Delete a orgGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `permissions` | BitString | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` - -### `org-chart-edge` - -CRUD operations for OrgChartEdge records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgChartEdge records | -| `find-first` | Find first matching orgChartEdge record | -| `get` | Get a orgChartEdge by id | -| `create` | Create a new orgChartEdge | -| `update` | Update an existing orgChartEdge | -| `delete` | Delete a orgChartEdge | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `entityId` | UUID | -| `childId` | UUID | -| `parentId` | UUID | -| `positionTitle` | String | -| `positionLevel` | Int | - -**Required create fields:** `entityId`, `childId` -**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` - -### `org-chart-edge-grant` - -CRUD operations for OrgChartEdgeGrant records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgChartEdgeGrant records | -| `find-first` | Find first matching orgChartEdgeGrant record | -| `get` | Get a orgChartEdgeGrant by id | -| `create` | Create a new orgChartEdgeGrant | -| `update` | Update an existing orgChartEdgeGrant | -| `delete` | Delete a orgChartEdgeGrant | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `entityId` | UUID | -| `childId` | UUID | -| `parentId` | UUID | -| `grantorId` | UUID | -| `isGrant` | Boolean | -| `positionTitle` | String | -| `positionLevel` | Int | -| `createdAt` | Datetime | - -**Required create fields:** `entityId`, `childId` -**Optional create fields (backend defaults):** `parentId`, `grantorId`, `isGrant`, `positionTitle`, `positionLevel` - -### `org-permission-default` - -CRUD operations for OrgPermissionDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefault records | -| `find-first` | Find first matching orgPermissionDefault record | -| `get` | Get a orgPermissionDefault by id | -| `create` | Create a new orgPermissionDefault | -| `update` | Update an existing orgPermissionDefault | -| `delete` | Delete a orgPermissionDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `permissions` | BitString | -| `entityId` | UUID | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `permissions` - -### `app-limit` - -CRUD operations for AppLimit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimit records | -| `find-first` | Find first matching appLimit record | -| `get` | Get a appLimit by id | -| `create` | Create a new appLimit | -| `update` | Update an existing appLimit | -| `delete` | Delete a appLimit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `num` | BigInt | -| `max` | BigInt | -| `softMax` | BigInt | -| `windowStart` | Datetime | -| `windowDuration` | Interval | -| `planMax` | BigInt | -| `purchasedCredits` | BigInt | -| `periodCredits` | BigInt | -| `organizationId` | UUID | -| `entityType` | String | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `organizationId`, `entityType` - -### `app-limit-credit` - -CRUD operations for AppLimitCredit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCredit records | -| `find-first` | Find first matching appLimitCredit record | -| `get` | Get a appLimitCredit by id | -| `create` | Create a new appLimitCredit | -| `update` | Update an existing appLimitCredit | -| `delete` | Delete a appLimitCredit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `defaultLimitId` | UUID | -| `actorId` | UUID | -| `amount` | BigInt | -| `creditType` | String | -| `reason` | String | - -**Required create fields:** `defaultLimitId`, `amount` -**Optional create fields (backend defaults):** `actorId`, `creditType`, `reason` - -### `app-limit-credit-code-item` - -CRUD operations for AppLimitCreditCodeItem records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCreditCodeItem records | -| `find-first` | Find first matching appLimitCreditCodeItem record | -| `get` | Get a appLimitCreditCodeItem by id | -| `create` | Create a new appLimitCreditCodeItem | -| `update` | Update an existing appLimitCreditCodeItem | -| `delete` | Delete a appLimitCreditCodeItem | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `creditCodeId` | UUID | -| `defaultLimitId` | UUID | -| `amount` | BigInt | -| `creditType` | String | - -**Required create fields:** `creditCodeId`, `defaultLimitId`, `amount` -**Optional create fields (backend defaults):** `creditType` - -### `app-limit-credit-redemption` - -CRUD operations for AppLimitCreditRedemption records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCreditRedemption records | -| `find-first` | Find first matching appLimitCreditRedemption record | -| `get` | Get a appLimitCreditRedemption by id | -| `create` | Create a new appLimitCreditRedemption | -| `update` | Update an existing appLimitCreditRedemption | -| `delete` | Delete a appLimitCreditRedemption | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `creditCodeId` | UUID | -| `entityId` | UUID | - -**Required create fields:** `creditCodeId`, `entityId` - -### `org-limit` - -CRUD operations for OrgLimit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimit records | -| `find-first` | Find first matching orgLimit record | -| `get` | Get a orgLimit by id | -| `create` | Create a new orgLimit | -| `update` | Update an existing orgLimit | -| `delete` | Delete a orgLimit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `num` | BigInt | -| `max` | BigInt | -| `softMax` | BigInt | -| `windowStart` | Datetime | -| `windowDuration` | Interval | -| `planMax` | BigInt | -| `purchasedCredits` | BigInt | -| `periodCredits` | BigInt | -| `entityId` | UUID | -| `organizationId` | UUID | -| `entityType` | String | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `organizationId`, `entityType` - -### `org-limit-credit` - -CRUD operations for OrgLimitCredit records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitCredit records | -| `find-first` | Find first matching orgLimitCredit record | -| `get` | Get a orgLimitCredit by id | -| `create` | Create a new orgLimitCredit | -| `update` | Update an existing orgLimitCredit | -| `delete` | Delete a orgLimitCredit | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `defaultLimitId` | UUID | -| `actorId` | UUID | -| `entityId` | UUID | -| `amount` | BigInt | -| `creditType` | String | -| `reason` | String | - -**Required create fields:** `defaultLimitId`, `amount` -**Optional create fields (backend defaults):** `actorId`, `entityId`, `creditType`, `reason` - -### `org-limit-aggregate` - -CRUD operations for OrgLimitAggregate records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitAggregate records | -| `find-first` | Find first matching orgLimitAggregate record | -| `get` | Get a orgLimitAggregate by id | -| `create` | Create a new orgLimitAggregate | -| `update` | Update an existing orgLimitAggregate | -| `delete` | Delete a orgLimitAggregate | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `entityId` | UUID | -| `num` | BigInt | -| `max` | BigInt | -| `softMax` | BigInt | -| `windowStart` | Datetime | -| `windowDuration` | Interval | -| `planMax` | BigInt | -| `purchasedCredits` | BigInt | -| `periodCredits` | BigInt | -| `reserved` | BigInt | -| `organizationId` | UUID | -| `entityType` | String | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `reserved`, `organizationId`, `entityType` - -### `org-limit-warning` - -CRUD operations for OrgLimitWarning records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitWarning records | -| `find-first` | Find first matching orgLimitWarning record | -| `get` | Get a orgLimitWarning by id | -| `create` | Create a new orgLimitWarning | -| `update` | Update an existing orgLimitWarning | -| `delete` | Delete a orgLimitWarning | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `warningType` | String | -| `thresholdValue` | BigInt | -| `taskIdentifier` | String | -| `entityId` | UUID | - -**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` -**Optional create fields (backend defaults):** `entityId` - -### `email` - -CRUD operations for Email records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all email records | -| `find-first` | Find first matching email record | -| `get` | Get a email by id | -| `create` | Create a new email | -| `update` | Update an existing email | -| `delete` | Delete a email | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `email` | Email | -| `isVerified` | Boolean | -| `isPrimary` | Boolean | -| `name` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `email` -**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary`, `name` - -### `phone-number` - -CRUD operations for PhoneNumber records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all phoneNumber records | -| `find-first` | Find first matching phoneNumber record | -| `get` | Get a phoneNumber by id | -| `create` | Create a new phoneNumber | -| `update` | Update an existing phoneNumber | -| `delete` | Delete a phoneNumber | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `cc` | String | -| `number` | String | -| `isVerified` | Boolean | -| `isPrimary` | Boolean | -| `name` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `cc`, `number` -**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary`, `name` - -### `crypto-address` - -CRUD operations for CryptoAddress records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all cryptoAddress records | -| `find-first` | Find first matching cryptoAddress record | -| `get` | Get a cryptoAddress by id | -| `create` | Create a new cryptoAddress | -| `update` | Update an existing cryptoAddress | -| `delete` | Delete a cryptoAddress | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `address` | String | -| `isVerified` | Boolean | -| `isPrimary` | Boolean | -| `name` | String | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `address` -**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary`, `name` - -### `webauthn-credential` - -CRUD operations for WebauthnCredential records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all webauthnCredential records | -| `find-first` | Find first matching webauthnCredential record | -| `get` | Get a webauthnCredential by id | -| `create` | Create a new webauthnCredential | -| `update` | Update an existing webauthnCredential | -| `delete` | Delete a webauthnCredential | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `credentialId` | String | -| `publicKey` | Base64EncodedBinary | -| `signCount` | BigInt | -| `webauthnUserId` | String | -| `transports` | String | -| `credentialDeviceType` | String | -| `backupEligible` | Boolean | -| `backupState` | Boolean | -| `name` | String | -| `lastUsedAt` | Datetime | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `credentialId`, `publicKey`, `webauthnUserId`, `credentialDeviceType` -**Optional create fields (backend defaults):** `ownerId`, `signCount`, `transports`, `backupEligible`, `backupState`, `name`, `lastUsedAt` - -### `app-invite` - -CRUD operations for AppInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appInvite records | -| `find-first` | Find first matching appInvite record | -| `get` | Get a appInvite by id | -| `create` | Create a new appInvite | -| `update` | Update an existing appInvite | -| `delete` | Delete a appInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `email` | Email | -| `senderId` | UUID | -| `inviteToken` | String | -| `inviteValid` | Boolean | -| `inviteLimit` | Int | -| `inviteCount` | Int | -| `multiple` | Boolean | -| `data` | JSON | -| `profileId` | UUID | -| `expiresAt` | Datetime | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` - -### `app-claimed-invite` - -CRUD operations for AppClaimedInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appClaimedInvite records | -| `find-first` | Find first matching appClaimedInvite record | -| `get` | Get a appClaimedInvite by id | -| `create` | Create a new appClaimedInvite | -| `update` | Update an existing appClaimedInvite | -| `delete` | Delete a appClaimedInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `data` | JSON | -| `senderId` | UUID | -| `receiverId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` - -### `org-invite` - -CRUD operations for OrgInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgInvite records | -| `find-first` | Find first matching orgInvite record | -| `get` | Get a orgInvite by id | -| `create` | Create a new orgInvite | -| `update` | Update an existing orgInvite | -| `delete` | Delete a orgInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `email` | Email | -| `senderId` | UUID | -| `receiverId` | UUID | -| `inviteToken` | String | -| `inviteValid` | Boolean | -| `inviteLimit` | Int | -| `inviteCount` | Int | -| `multiple` | Boolean | -| `data` | JSON | -| `profileId` | UUID | -| `isReadOnly` | Boolean | -| `expiresAt` | Datetime | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `entityId` | UUID | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `isReadOnly`, `expiresAt` - -### `org-claimed-invite` - -CRUD operations for OrgClaimedInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgClaimedInvite records | -| `find-first` | Find first matching orgClaimedInvite record | -| `get` | Get a orgClaimedInvite by id | -| `create` | Create a new orgClaimedInvite | -| `update` | Update an existing orgClaimedInvite | -| `delete` | Delete a orgClaimedInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `data` | JSON | -| `senderId` | UUID | -| `receiverId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `entityId` | UUID | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` - -### `audit-log-auth` - -CRUD operations for AuditLogAuth records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all auditLogAuth records | -| `find-first` | Find first matching auditLogAuth record | -| `get` | Get a auditLogAuth by id | -| `create` | Create a new auditLogAuth | -| `update` | Update an existing auditLogAuth | -| `delete` | Delete a auditLogAuth | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `id` | UUID | -| `event` | String | -| `actorId` | UUID | -| `origin` | Origin | -| `userAgent` | String | -| `ipAddress` | InternetAddress | -| `success` | Boolean | - -**Required create fields:** `event`, `success` -**Optional create fields (backend defaults):** `actorId`, `origin`, `userAgent`, `ipAddress` - -### `identity-provider` - -CRUD operations for IdentityProvider records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all identityProvider records | -| `find-first` | Find first matching identityProvider record | -| `get` | Get a identityProvider by id | -| `create` | Create a new identityProvider | -| `update` | Update an existing identityProvider | -| `delete` | Delete a identityProvider | - -**Fields:** - -| Field | Type | -|-------|------| -| `slug` | String | -| `kind` | String | -| `displayName` | String | -| `enabled` | Boolean | -| `isBuiltIn` | Boolean | - -**Optional create fields (backend defaults):** `slug`, `kind`, `displayName`, `enabled`, `isBuiltIn` - -### `app-permission-default` - -CRUD operations for AppPermissionDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appPermissionDefault records | -| `find-first` | Find first matching appPermissionDefault record | -| `get` | Get a appPermissionDefault by id | -| `create` | Create a new appPermissionDefault | -| `update` | Update an existing appPermissionDefault | -| `delete` | Delete a appPermissionDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `permissions` | BitString | - -**Optional create fields (backend defaults):** `permissions` - -### `role-type` - -CRUD operations for RoleType records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all roleType records | -| `find-first` | Find first matching roleType record | -| `get` | Get a roleType by id | -| `create` | Create a new roleType | -| `update` | Update an existing roleType | -| `delete` | Delete a roleType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | - -**Required create fields:** `name` - -### `migrate-file` - -CRUD operations for MigrateFile records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all migrateFile records | -| `find-first` | Find first matching migrateFile record | -| `get` | Get a migrateFile by id | -| `create` | Create a new migrateFile | -| `update` | Update an existing migrateFile | -| `delete` | Delete a migrateFile | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `upload` | Upload | - -**Optional create fields (backend defaults):** `databaseId`, `upload` - -### `devices-module` - -CRUD operations for DevicesModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all devicesModule records | -| `find-first` | Find first matching devicesModule record | -| `get` | Get a devicesModule by id | -| `create` | Create a new devicesModule | -| `update` | Update an existing devicesModule | -| `delete` | Delete a devicesModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `userDevicesTableId` | UUID | -| `deviceSettingsTableId` | UUID | -| `userDevicesTable` | String | -| `deviceSettingsTable` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` - -### `app-membership-default` - -CRUD operations for AppMembershipDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appMembershipDefault records | -| `find-first` | Find first matching appMembershipDefault record | -| `get` | Get a appMembershipDefault by id | -| `create` | Create a new appMembershipDefault | -| `update` | Update an existing appMembershipDefault | -| `delete` | Delete a appMembershipDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isVerified` | Boolean | - -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` - -### `org-membership-default` - -CRUD operations for OrgMembershipDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMembershipDefault records | -| `find-first` | Find first matching orgMembershipDefault record | -| `get` | Get a orgMembershipDefault by id | -| `create` | Create a new orgMembershipDefault | -| `update` | Update an existing orgMembershipDefault | -| `delete` | Delete a orgMembershipDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `entityId` | UUID | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` - -### `node-type-registry` - -CRUD operations for NodeTypeRegistry records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all nodeTypeRegistry records | -| `find-first` | Find first matching nodeTypeRegistry record | -| `get` | Get a nodeTypeRegistry by name | -| `create` | Create a new nodeTypeRegistry | -| `update` | Update an existing nodeTypeRegistry | -| `delete` | Delete a nodeTypeRegistry | - -**Fields:** - -| Field | Type | -|-------|------| -| `name` | String | -| `slug` | String | -| `category` | String | -| `displayName` | String | -| `description` | String | -| `parameterSchema` | JSON | -| `tags` | String | - -**Required create fields:** `slug`, `category` -**Optional create fields (backend defaults):** `displayName`, `description`, `parameterSchema`, `tags` - -### `app-limit-caps-default` - -CRUD operations for AppLimitCapsDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCapsDefault records | -| `find-first` | Find first matching appLimitCapsDefault record | -| `get` | Get a appLimitCapsDefault by id | -| `create` | Create a new appLimitCapsDefault | -| `update` | Update an existing appLimitCapsDefault | -| `delete` | Delete a appLimitCapsDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `max` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max` - -### `org-limit-caps-default` - -CRUD operations for OrgLimitCapsDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitCapsDefault records | -| `find-first` | Find first matching orgLimitCapsDefault record | -| `get` | Get a orgLimitCapsDefault by id | -| `create` | Create a new orgLimitCapsDefault | -| `update` | Update an existing orgLimitCapsDefault | -| `delete` | Delete a orgLimitCapsDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `max` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max` - -### `app-limit-cap` - -CRUD operations for AppLimitCap records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCap records | -| `find-first` | Find first matching appLimitCap record | -| `get` | Get a appLimitCap by id | -| `create` | Create a new appLimitCap | -| `update` | Update an existing appLimitCap | -| `delete` | Delete a appLimitCap | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `entityId` | UUID | -| `max` | BigInt | - -**Required create fields:** `name`, `entityId` -**Optional create fields (backend defaults):** `max` - -### `org-limit-cap` - -CRUD operations for OrgLimitCap records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitCap records | -| `find-first` | Find first matching orgLimitCap record | -| `get` | Get a orgLimitCap by id | -| `create` | Create a new orgLimitCap | -| `update` | Update an existing orgLimitCap | -| `delete` | Delete a orgLimitCap | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `entityId` | UUID | -| `max` | BigInt | - -**Required create fields:** `name`, `entityId` -**Optional create fields (backend defaults):** `max` - -### `user-connected-account` - -CRUD operations for UserConnectedAccount records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all userConnectedAccount records | -| `find-first` | Find first matching userConnectedAccount record | -| `get` | Get a userConnectedAccount by id | -| `create` | Create a new userConnectedAccount | -| `update` | Update an existing userConnectedAccount | -| `delete` | Delete a userConnectedAccount | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `service` | String | -| `identifier` | String | -| `details` | JSON | -| `isVerified` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `ownerId`, `service`, `identifier`, `details`, `isVerified` - -### `app-limit-default` - -CRUD operations for AppLimitDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitDefault records | -| `find-first` | Find first matching appLimitDefault record | -| `get` | Get a appLimitDefault by id | -| `create` | Create a new appLimitDefault | -| `update` | Update an existing appLimitDefault | -| `delete` | Delete a appLimitDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `max` | BigInt | -| `softMax` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max`, `softMax` - -### `org-limit-default` - -CRUD operations for OrgLimitDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitDefault records | -| `find-first` | Find first matching orgLimitDefault record | -| `get` | Get a orgLimitDefault by id | -| `create` | Create a new orgLimitDefault | -| `update` | Update an existing orgLimitDefault | -| `delete` | Delete a orgLimitDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `max` | BigInt | -| `softMax` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max`, `softMax` - -### `app-limit-credit-code` - -CRUD operations for AppLimitCreditCode records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitCreditCode records | -| `find-first` | Find first matching appLimitCreditCode record | -| `get` | Get a appLimitCreditCode by id | -| `create` | Create a new appLimitCreditCode | -| `update` | Update an existing appLimitCreditCode | -| `delete` | Delete a appLimitCreditCode | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `code` | String | -| `maxRedemptions` | Int | -| `currentRedemptions` | Int | -| `expiresAt` | Datetime | - -**Required create fields:** `code` -**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` - -### `app-limit-warning` - -CRUD operations for AppLimitWarning records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitWarning records | -| `find-first` | Find first matching appLimitWarning record | -| `get` | Get a appLimitWarning by id | -| `create` | Create a new appLimitWarning | -| `update` | Update an existing appLimitWarning | -| `delete` | Delete a appLimitWarning | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `warningType` | String | -| `thresholdValue` | BigInt | -| `taskIdentifier` | String | - -**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` - -### `pubkey-setting` - -CRUD operations for PubkeySetting records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all pubkeySetting records | -| `find-first` | Find first matching pubkeySetting record | -| `get` | Get a pubkeySetting by id | -| `create` | Create a new pubkeySetting | -| `update` | Update an existing pubkeySetting | -| `delete` | Delete a pubkeySetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `cryptoNetwork` | String | -| `userField` | String | -| `signUpWithKeyFunctionId` | UUID | -| `signInRequestChallengeFunctionId` | UUID | -| `signInRecordFailureFunctionId` | UUID | -| `signInWithChallengeFunctionId` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `cryptoNetwork`, `userField`, `signUpWithKeyFunctionId`, `signInRequestChallengeFunctionId`, `signInRecordFailureFunctionId`, `signInWithChallengeFunctionId` - -### `rate-limits-module` - -CRUD operations for RateLimitsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all rateLimitsModule records | -| `find-first` | Find first matching rateLimitsModule record | -| `get` | Get a rateLimitsModule by id | -| `create` | Create a new rateLimitsModule | -| `update` | Update an existing rateLimitsModule | -| `delete` | Delete a rateLimitsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `rateLimitSettingsTableId` | UUID | -| `ipRateLimitsTableId` | UUID | -| `rateLimitsTableId` | UUID | -| `rateLimitSettingsTable` | String | -| `ipRateLimitsTable` | String | -| `rateLimitsTable` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `rateLimitSettingsTableId`, `ipRateLimitsTableId`, `rateLimitsTableId`, `rateLimitSettingsTable`, `ipRateLimitsTable`, `rateLimitsTable` - -### `membership-type` - -CRUD operations for MembershipType records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | -| `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | - -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` - -### `rls-setting` - -CRUD operations for RlsSetting records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all rlsSetting records | -| `find-first` | Find first matching rlsSetting record | -| `get` | Get a rlsSetting by id | -| `create` | Create a new rlsSetting | -| `update` | Update an existing rlsSetting | -| `delete` | Delete a rlsSetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `authenticateSchemaId` | UUID | -| `roleSchemaId` | UUID | -| `authenticateFunctionId` | UUID | -| `authenticateStrictFunctionId` | UUID | -| `currentRoleFunctionId` | UUID | -| `currentRoleIdFunctionId` | UUID | -| `currentUserAgentFunctionId` | UUID | -| `currentIpAddressFunctionId` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `authenticateSchemaId`, `roleSchemaId`, `authenticateFunctionId`, `authenticateStrictFunctionId`, `currentRoleFunctionId`, `currentRoleIdFunctionId`, `currentUserAgentFunctionId`, `currentIpAddressFunctionId` - -### `rls-module` - -CRUD operations for RlsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all rlsModule records | -| `find-first` | Find first matching rlsModule record | -| `get` | Get a rlsModule by id | -| `create` | Create a new rlsModule | -| `update` | Update an existing rlsModule | -| `delete` | Delete a rlsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `sessionCredentialsTableId` | UUID | -| `sessionsTableId` | UUID | -| `usersTableId` | UUID | -| `authenticate` | String | -| `authenticateStrict` | String | -| `currentRole` | String | -| `currentRoleId` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `usersTableId`, `authenticate`, `authenticateStrict`, `currentRole`, `currentRoleId` - -### `rate-limit-meters-module` - -CRUD operations for RateLimitMetersModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all rateLimitMetersModule records | -| `find-first` | Find first matching rateLimitMetersModule record | -| `get` | Get a rateLimitMetersModule by id | -| `create` | Create a new rateLimitMetersModule | -| `update` | Update an existing rateLimitMetersModule | -| `delete` | Delete a rateLimitMetersModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `rateLimitStateTableId` | UUID | -| `rateLimitStateTableName` | String | -| `rateLimitOverridesTableId` | UUID | -| `rateLimitOverridesTableName` | String | -| `rateWindowLimitsTableId` | UUID | -| `rateWindowLimitsTableName` | String | -| `checkRateLimitFunction` | String | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `rateLimitStateTableId`, `rateLimitStateTableName`, `rateLimitOverridesTableId`, `rateLimitOverridesTableName`, `rateWindowLimitsTableId`, `rateWindowLimitsTableName`, `checkRateLimitFunction`, `prefix` - -### `plans-module` - -CRUD operations for PlansModule 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 | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `plansTableId` | UUID | -| `plansTableName` | String | -| `planLimitsTableId` | UUID | -| `planLimitsTableName` | String | -| `planPricingTableId` | UUID | -| `planOverridesTableId` | UUID | -| `applyPlanFunction` | String | -| `applyPlanAggregateFunction` | String | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `plansTableId`, `plansTableName`, `planLimitsTableId`, `planLimitsTableName`, `planPricingTableId`, `planOverridesTableId`, `applyPlanFunction`, `applyPlanAggregateFunction`, `prefix` - -### `sql-action` - -CRUD operations for SqlAction records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all sqlAction records | -| `find-first` | Find first matching sqlAction record | -| `get` | Get a sqlAction by id | -| `create` | Create a new sqlAction | -| `update` | Update an existing sqlAction | -| `delete` | Delete a sqlAction | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | -| `databaseId` | UUID | -| `deploy` | String | -| `deps` | String | -| `payload` | JSON | -| `content` | String | -| `revert` | String | -| `verify` | String | -| `createdAt` | Datetime | -| `action` | String | -| `actionId` | UUID | -| `actorId` | UUID | - -**Optional create fields (backend defaults):** `name`, `databaseId`, `deploy`, `deps`, `payload`, `content`, `revert`, `verify`, `action`, `actionId`, `actorId` - -### `database-setting` - -CRUD operations for DatabaseSetting records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all databaseSetting records | -| `find-first` | Find first matching databaseSetting record | -| `get` | Get a databaseSetting by id | -| `create` | Create a new databaseSetting | -| `update` | Update an existing databaseSetting | -| `delete` | Delete a databaseSetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `enableAggregates` | Boolean | -| `enablePostgis` | Boolean | -| `enableSearch` | Boolean | -| `enableDirectUploads` | Boolean | -| `enablePresignedUploads` | Boolean | -| `enableManyToMany` | Boolean | -| `enableConnectionFilter` | Boolean | -| `enableLtree` | Boolean | -| `enableLlm` | Boolean | -| `enableRealtime` | Boolean | -| `enableBulk` | Boolean | -| `options` | JSON | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `options` - -### `org-membership-setting` - -CRUD operations for OrgMembershipSetting records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMembershipSetting records | -| `find-first` | Find first matching orgMembershipSetting record | -| `get` | Get a orgMembershipSetting by id | -| `create` | Create a new orgMembershipSetting | -| `update` | Update an existing orgMembershipSetting | -| `delete` | Delete a orgMembershipSetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `entityId` | UUID | -| `deleteMemberCascadeChildren` | Boolean | -| `createChildCascadeOwners` | Boolean | -| `createChildCascadeAdmins` | Boolean | -| `createChildCascadeMembers` | Boolean | -| `allowExternalMembers` | Boolean | -| `inviteProfileAssignmentMode` | String | -| `populateMemberEmail` | Boolean | -| `limitAllocationMode` | String | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` - -### `app-limit-event` - -CRUD operations for AppLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitEvent records | -| `find-first` | Find first matching appLimitEvent record | -| `get` | Get a appLimitEvent by id | -| `create` | Create a new appLimitEvent | -| `update` | Update an existing appLimitEvent | -| `delete` | Delete a appLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `organizationId` | UUID | -| `entityType` | String | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `organizationId`, `entityType`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - -### `org-limit-event` - -CRUD operations for OrgLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitEvent records | -| `find-first` | Find first matching orgLimitEvent record | -| `get` | Get a orgLimitEvent by id | -| `create` | Create a new orgLimitEvent | -| `update` | Update an existing orgLimitEvent | -| `delete` | Delete a orgLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `organizationId` | UUID | -| `entityType` | String | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `organizationId`, `entityType`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - -### `app-membership` - -CRUD operations for AppMembership records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appMembership records | -| `find-first` | Find first matching appMembership record | -| `get` | Get a appMembership by id | -| `create` | Create a new appMembership | -| `update` | Update an existing appMembership | -| `delete` | Delete a appMembership | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isVerified` | Boolean | -| `isActive` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `profileId` | UUID | - -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` - -### `user` - -CRUD operations for User records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all user records | -| `find-first` | Find first matching user record | -| `search ` | Search user records | -| `get` | Get a user by id | -| `create` | Create a new user | -| `update` | Update an existing user | -| `delete` | Delete a user | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `username` | String | -| `displayName` | String | -| `profilePicture` | Image | -| `searchTsv` | FullText | -| `type` | Int | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `searchTsvRank` | Float | -| `displayNameTrgmSimilarity` | Float | -| `searchScore` | Float | - -**Optional create fields (backend defaults):** `username`, `displayName`, `profilePicture`, `type` -> **Unified Search API fields:** `searchTsv`, `displayNameTrgmSimilarity`, `searchScore` -> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. - -**Search Examples:** - -*Full-text search via tsvector (`searchTsv`):* -```bash -csdk user list --where.searchTsv "search query" --select title,tsvRank -``` - -*Fuzzy search via trigram similarity (`trgmDisplayName`):* -```bash -csdk user list --where.trgmDisplayName.value "approximate query" --where.trgmDisplayName.threshold 0.3 --select title,displayNameTrgmSimilarity -``` - -*Composite search (unifiedSearch dispatches to all text adapters):* -```bash -csdk user list --where.unifiedSearch "search query" --select title,tsvRank,displayNameTrgmSimilarity,searchScore -``` - -*Search with pagination and field projection:* -```bash -csdk user list --where.unifiedSearch "query" --limit 10 --select id,title,searchScore -csdk user search "query" --limit 10 --select id,title,searchScore -``` - - -### `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. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all webauthnSetting records | -| `find-first` | Find first matching webauthnSetting record | -| `get` | Get a webauthnSetting by id | -| `create` | Create a new webauthnSetting | -| `update` | Update an existing webauthnSetting | -| `delete` | Delete a webauthnSetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `credentialsSchemaId` | UUID | -| `sessionsSchemaId` | UUID | -| `sessionSecretsSchemaId` | UUID | -| `credentialsTableId` | UUID | -| `sessionsTableId` | UUID | -| `sessionCredentialsTableId` | UUID | -| `sessionSecretsTableId` | UUID | -| `userFieldId` | UUID | -| `rpId` | String | -| `rpName` | String | -| `originAllowlist` | String | -| `attestationType` | String | -| `requireUserVerification` | Boolean | -| `residentKey` | String | -| `challengeExpirySeconds` | BigInt | - -**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` - -### `billing-module` - -CRUD operations for BillingModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all billingModule records | -| `find-first` | Find first matching billingModule record | -| `get` | Get a billingModule by id | -| `create` | Create a new billingModule | -| `update` | Update an existing billingModule | -| `delete` | Delete a billingModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `metersTableId` | UUID | -| `metersTableName` | String | -| `planSubscriptionsTableId` | UUID | -| `planSubscriptionsTableName` | String | -| `ledgerTableId` | UUID | -| `ledgerTableName` | String | -| `balancesTableId` | UUID | -| `balancesTableName` | String | -| `meterCreditsTableId` | UUID | -| `meterCreditsTableName` | String | -| `meterSourcesTableId` | UUID | -| `meterSourcesTableName` | String | -| `recordUsageFunction` | String | -| `prefix` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `recordUsageFunction`, `prefix` - -### `billing-provider-module` - -CRUD operations for BillingProviderModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all billingProviderModule records | -| `find-first` | Find first matching billingProviderModule record | -| `get` | Get a billingProviderModule by id | -| `create` | Create a new billingProviderModule | -| `update` | Update an existing billingProviderModule | -| `delete` | Delete a billingProviderModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `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 | - -**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` - -### `hierarchy-module` - -CRUD operations for HierarchyModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all hierarchyModule records | -| `find-first` | Find first matching hierarchyModule record | -| `get` | Get a hierarchyModule by id | -| `create` | Create a new hierarchyModule | -| `update` | Update an existing hierarchyModule | -| `delete` | Delete a hierarchyModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `chartEdgesTableId` | UUID | -| `chartEdgesTableName` | String | -| `hierarchySprtTableId` | UUID | -| `hierarchySprtTableName` | String | -| `chartEdgeGrantsTableId` | UUID | -| `chartEdgeGrantsTableName` | String | -| `entityTableId` | UUID | -| `usersTableId` | UUID | -| `prefix` | String | -| `privateSchemaName` | String | -| `sprtTableName` | String | -| `rebuildHierarchyFunction` | String | -| `getSubordinatesFunction` | String | -| `getManagersFunction` | String | -| `isManagerOfFunction` | String | -| `createdAt` | Datetime | - -**Required create fields:** `databaseId`, `entityTableId`, `usersTableId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `chartEdgesTableId`, `chartEdgesTableName`, `hierarchySprtTableId`, `hierarchySprtTableName`, `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `prefix`, `privateSchemaName`, `sprtTableName`, `rebuildHierarchyFunction`, `getSubordinatesFunction`, `getManagersFunction`, `isManagerOfFunction` - -## Custom Operations - -### `current-user-id` - -currentUserId - -- **Type:** query -- **Arguments:** none - -### `current-user-agent` - -currentUserAgent - -- **Type:** query -- **Arguments:** none - -### `current-ip-address` - -currentIpAddress - -- **Type:** query -- **Arguments:** none - -### `require-step-up` - -requireStepUp - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--stepUpType` | String | - -### `app-permissions-get-padded-mask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - -### `org-permissions-get-padded-mask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - -### `apply-registry-defaults` - -applyRegistryDefaults - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--nodeType` | String | - | `--data` | JSON | - -### `resolve-blueprint-field` - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--databaseId` | UUID | - | `--tableId` | UUID | - | `--fieldName` | String | - -### `resolve-blueprint-table` - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--databaseId` | UUID | - | `--tableName` | String | - | `--schemaName` | String | - | `--tableMap` | JSON | - | `--defaultSchemaId` | UUID | - -### `org-is-manager-of` - -orgIsManagerOf - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--pEntityId` | UUID | - | `--pManagerId` | UUID | - | `--pUserId` | UUID | - | `--pMaxDepth` | Int | - -### `app-permissions-get-mask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--ids` | UUID | - -### `org-permissions-get-mask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--ids` | UUID | - -### `app-permissions-get-mask-by-names` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--names` | String | - -### `org-permissions-get-mask-by-names` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--names` | String | - -### `app-permissions-get-by-mask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - | `--first` | Int | - | `--offset` | Int | - | `--after` | Cursor | - -### `org-permissions-get-by-mask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--mask` | BitString | - | `--first` | Int | - | `--offset` | Int | - | `--after` | Cursor | - -### `current-user` - -currentUser - -- **Type:** query -- **Arguments:** none - -### `send-account-deletion-email` - -sendAccountDeletionEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - -### `sign-out` - -signOut - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - -### `accept-database-transfer` - -acceptDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.transferId` | UUID | - -### `cancel-database-transfer` - -cancelDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.transferId` | UUID | - -### `reject-database-transfer` - -rejectDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.transferId` | UUID | - -### `disconnect-account` - -disconnectAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.accountId` | UUID (required) | - -### `revoke-api-key` - -revokeApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.keyId` | UUID (required) | - -### `revoke-session` - -revokeSession - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.sessionId` | UUID (required) | - -### `verify-password` - -verifyPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.password` | String (required) | - -### `verify-totp` - -verifyTotp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.totpValue` | String (required) | - -### `submit-app-invite-code` - -submitAppInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.token` | String | - -### `submit-org-invite-code` - -submitOrgInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.token` | String | - -### `check-password` - -checkPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.password` | String | - -### `confirm-delete-account` - -confirmDeleteAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.userId` | UUID | - | `--input.token` | String | - -### `set-password` - -setPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.currentPassword` | String | - | `--input.newPassword` | String | - -### `verify-email` - -verifyEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.emailId` | UUID | - | `--input.token` | String | - -### `construct-blueprint` - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.blueprintId` | UUID | - | `--input.schemaId` | UUID | - -### `provision-new-user` - -provisionNewUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - -### `reset-password` - -resetPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.roleId` | UUID | - | `--input.resetToken` | String | - | `--input.newPassword` | String | - -### `provision-check-constraint` - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.tableId` | UUID | - | `--input.definition` | JSON | - -### `provision-unique-constraint` - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.tableId` | UUID | - | `--input.definition` | JSON | - -### `provision-full-text-search` - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.tableId` | UUID | - | `--input.definition` | JSON | - -### `provision-index` - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.tableId` | UUID | - | `--input.definition` | JSON | - -### `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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.templateId` | UUID | - | `--input.databaseId` | UUID | - | `--input.ownerId` | UUID | - | `--input.nameOverride` | String | - | `--input.displayNameOverride` | String | - -### `provision-spatial-relation` - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.pDatabaseId` | UUID | - | `--input.pSourceTableId` | UUID | - | `--input.pSourceFieldId` | UUID | - | `--input.pTargetTableId` | UUID | - | `--input.pTargetFieldId` | UUID | - | `--input.pName` | String | - | `--input.pOperator` | String | - | `--input.pParamName` | String | - -### `sign-in-cross-origin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.token` | String | - | `--input.credentialKind` | String | - -### `bootstrap-user` - -bootstrapUser - -- **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 | - -### `sign-up` - -signUp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.rememberMe` | Boolean | - | `--input.credentialKind` | String | - | `--input.csrfToken` | String | - | `--input.deviceToken` | String | - -### `sign-in` - -signIn - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.rememberMe` | Boolean | - | `--input.credentialKind` | String | - | `--input.csrfToken` | String | - | `--input.deviceToken` | String | - -### `provision-relation` - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.relationType` | String | - | `--input.sourceTableId` | UUID | - | `--input.targetTableId` | UUID | - | `--input.fieldName` | String | - | `--input.deleteAction` | String | - | `--input.isRequired` | Boolean | - | `--input.apiRequired` | Boolean | - | `--input.createIndex` | Boolean | - | `--input.junctionTableId` | UUID | - | `--input.junctionTableName` | String | - | `--input.junctionSchemaId` | UUID | - | `--input.sourceFieldName` | String | - | `--input.targetFieldName` | String | - | `--input.useCompositeKey` | Boolean | - | `--input.exposeInApi` | Boolean | - | `--input.nodes` | JSON | - | `--input.grants` | JSON | - | `--input.policies` | JSON | - -### `set-field-order` - -setFieldOrder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.fieldIds` | UUID | - -### `apply-rls` - -applyRls - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.tableId` | UUID | - | `--input.grants` | JSON | - | `--input.policyType` | String | - | `--input.vars` | JSON | - | `--input.fieldIds` | UUID | - | `--input.permissive` | Boolean | - | `--input.name` | String | - -### `provision-database-with-user` - -provisionDatabaseWithUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.pDatabaseName` | String | - | `--input.pDomain` | String | - | `--input.pSubdomain` | String | - | `--input.pModules` | String | - | `--input.pOptions` | JSON | - -### `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) - -Returns the database_id UUID of the newly created database. - -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 - - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseName` | String | - | `--input.ownerId` | UUID | - | `--input.includeInvites` | Boolean | - | `--input.includeGroups` | Boolean | - | `--input.includeLevels` | Boolean | - | `--input.bitlen` | Int | - | `--input.tokensExpiration` | IntervalInput | - -### `extend-token-expires` - -extendTokenExpires - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.amount` | IntervalInput | - -### `create-api-key` - -createApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.keyName` | String | - | `--input.accessLevel` | String | - | `--input.mfaLevel` | String | - | `--input.expiresIn` | IntervalInput | - -### `request-cross-origin-token` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.origin` | Origin | - | `--input.rememberMe` | Boolean | - -### `provision-table` - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.schemaId` | UUID | - | `--input.tableName` | String | - | `--input.tableId` | UUID | - | `--input.nodes` | JSON | - | `--input.fields` | JSON | - | `--input.policies` | JSON | - | `--input.grants` | JSON | - | `--input.useRls` | Boolean | - | `--input.indexes` | JSON | - | `--input.fullTextSearches` | JSON | - | `--input.uniqueConstraints` | JSON | - | `--input.description` | String | - -### `send-verification-email` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - -### `forgot-password` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - -### `provision-bucket` - -Provision an S3 bucket for a logical bucket in the database. -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/public/cli/commands.ts b/sdk/constructive-cli/src/public/cli/commands.ts deleted file mode 100644 index e6c5465274..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands.ts +++ /dev/null @@ -1,469 +0,0 @@ -/** - * 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 orgGetManagersRecordCmd from './commands/org-get-managers-record'; -import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record'; -import appPermissionCmd from './commands/app-permission'; -import orgPermissionCmd from './commands/org-permission'; -import databaseCmd from './commands/database'; -import schemaCmd from './commands/schema'; -import tableCmd from './commands/table'; -import checkConstraintCmd from './commands/check-constraint'; -import fieldCmd from './commands/field'; -import spatialRelationCmd from './commands/spatial-relation'; -import foreignKeyConstraintCmd from './commands/foreign-key-constraint'; -import fullTextSearchCmd from './commands/full-text-search'; -import indexCmd from './commands/index'; -import policyCmd from './commands/policy'; -import primaryKeyConstraintCmd from './commands/primary-key-constraint'; -import tableGrantCmd from './commands/table-grant'; -import triggerCmd from './commands/trigger'; -import uniqueConstraintCmd from './commands/unique-constraint'; -import viewCmd from './commands/view'; -import viewTableCmd from './commands/view-table'; -import viewGrantCmd from './commands/view-grant'; -import viewRuleCmd from './commands/view-rule'; -import embeddingChunkCmd from './commands/embedding-chunk'; -import secureTableProvisionCmd from './commands/secure-table-provision'; -import relationProvisionCmd from './commands/relation-provision'; -import sessionSecretsModuleCmd from './commands/session-secrets-module'; -import identityProvidersModuleCmd from './commands/identity-providers-module'; -import realtimeModuleCmd from './commands/realtime-module'; -import configSecretsOrgModuleCmd from './commands/config-secrets-org-module'; -import schemaGrantCmd from './commands/schema-grant'; -import defaultPrivilegeCmd from './commands/default-privilege'; -import enumCmd from './commands/enum'; -import functionCmd from './commands/function'; -import apiSchemaCmd from './commands/api-schema'; -import apiModuleCmd from './commands/api-module'; -import domainCmd from './commands/domain'; -import siteMetadatumCmd from './commands/site-metadatum'; -import siteModuleCmd from './commands/site-module'; -import siteThemeCmd from './commands/site-theme'; -import corsSettingCmd from './commands/cors-setting'; -import merkleStoreModuleCmd from './commands/merkle-store-module'; -import graphModuleCmd from './commands/graph-module'; -import triggerFunctionCmd from './commands/trigger-function'; -import partitionCmd from './commands/partition'; -import databaseTransferCmd from './commands/database-transfer'; -import apiCmd from './commands/api'; -import siteCmd from './commands/site'; -import appCmd from './commands/app'; -import apiSettingCmd from './commands/api-setting'; -import connectedAccountsModuleCmd from './commands/connected-accounts-module'; -import cryptoAddressesModuleCmd from './commands/crypto-addresses-module'; -import cryptoAuthModuleCmd from './commands/crypto-auth-module'; -import defaultIdsModuleCmd from './commands/default-ids-module'; -import denormalizedTableFieldCmd from './commands/denormalized-table-field'; -import emailsModuleCmd from './commands/emails-module'; -import configSecretsUserModuleCmd from './commands/config-secrets-user-module'; -import invitesModuleCmd from './commands/invites-module'; -import eventsModuleCmd from './commands/events-module'; -import limitsModuleCmd from './commands/limits-module'; -import membershipTypesModuleCmd from './commands/membership-types-module'; -import membershipsModuleCmd from './commands/memberships-module'; -import permissionsModuleCmd from './commands/permissions-module'; -import phoneNumbersModuleCmd from './commands/phone-numbers-module'; -import profilesModuleCmd from './commands/profiles-module'; -import userStateModuleCmd from './commands/user-state-module'; -import sessionsModuleCmd from './commands/sessions-module'; -import userAuthModuleCmd from './commands/user-auth-module'; -import usersModuleCmd from './commands/users-module'; -import blueprintCmd from './commands/blueprint'; -import blueprintTemplateCmd from './commands/blueprint-template'; -import blueprintConstructionCmd from './commands/blueprint-construction'; -import storageModuleCmd from './commands/storage-module'; -import entityTypeProvisionCmd from './commands/entity-type-provision'; -import webauthnCredentialsModuleCmd from './commands/webauthn-credentials-module'; -import webauthnAuthModuleCmd from './commands/webauthn-auth-module'; -import notificationsModuleCmd from './commands/notifications-module'; -import inferenceLogModuleCmd from './commands/inference-log-module'; -import computeLogModuleCmd from './commands/compute-log-module'; -import transferLogModuleCmd from './commands/transfer-log-module'; -import storageLogModuleCmd from './commands/storage-log-module'; -import dbUsageModuleCmd from './commands/db-usage-module'; -import agentModuleCmd from './commands/agent-module'; -import namespaceModuleCmd from './commands/namespace-module'; -import functionModuleCmd from './commands/function-module'; -import databaseProvisionModuleCmd from './commands/database-provision-module'; -import appAdminGrantCmd from './commands/app-admin-grant'; -import appOwnerGrantCmd from './commands/app-owner-grant'; -import appGrantCmd from './commands/app-grant'; -import orgMembershipCmd from './commands/org-membership'; -import orgMemberCmd from './commands/org-member'; -import orgAdminGrantCmd from './commands/org-admin-grant'; -import orgOwnerGrantCmd from './commands/org-owner-grant'; -import orgMemberProfileCmd from './commands/org-member-profile'; -import orgGrantCmd from './commands/org-grant'; -import orgChartEdgeCmd from './commands/org-chart-edge'; -import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; -import orgPermissionDefaultCmd from './commands/org-permission-default'; -import appLimitCmd from './commands/app-limit'; -import appLimitCreditCmd from './commands/app-limit-credit'; -import appLimitCreditCodeItemCmd from './commands/app-limit-credit-code-item'; -import appLimitCreditRedemptionCmd from './commands/app-limit-credit-redemption'; -import orgLimitCmd from './commands/org-limit'; -import orgLimitCreditCmd from './commands/org-limit-credit'; -import orgLimitAggregateCmd from './commands/org-limit-aggregate'; -import orgLimitWarningCmd from './commands/org-limit-warning'; -import emailCmd from './commands/email'; -import phoneNumberCmd from './commands/phone-number'; -import cryptoAddressCmd from './commands/crypto-address'; -import webauthnCredentialCmd from './commands/webauthn-credential'; -import appInviteCmd from './commands/app-invite'; -import appClaimedInviteCmd from './commands/app-claimed-invite'; -import orgInviteCmd from './commands/org-invite'; -import orgClaimedInviteCmd from './commands/org-claimed-invite'; -import auditLogAuthCmd from './commands/audit-log-auth'; -import identityProviderCmd from './commands/identity-provider'; -import appPermissionDefaultCmd from './commands/app-permission-default'; -import roleTypeCmd from './commands/role-type'; -import migrateFileCmd from './commands/migrate-file'; -import devicesModuleCmd from './commands/devices-module'; -import appMembershipDefaultCmd from './commands/app-membership-default'; -import orgMembershipDefaultCmd from './commands/org-membership-default'; -import nodeTypeRegistryCmd from './commands/node-type-registry'; -import appLimitCapsDefaultCmd from './commands/app-limit-caps-default'; -import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default'; -import appLimitCapCmd from './commands/app-limit-cap'; -import orgLimitCapCmd from './commands/org-limit-cap'; -import userConnectedAccountCmd from './commands/user-connected-account'; -import appLimitDefaultCmd from './commands/app-limit-default'; -import orgLimitDefaultCmd from './commands/org-limit-default'; -import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; -import appLimitWarningCmd from './commands/app-limit-warning'; -import pubkeySettingCmd from './commands/pubkey-setting'; -import rateLimitsModuleCmd from './commands/rate-limits-module'; -import membershipTypeCmd from './commands/membership-type'; -import rlsSettingCmd from './commands/rls-setting'; -import rlsModuleCmd from './commands/rls-module'; -import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; -import plansModuleCmd from './commands/plans-module'; -import sqlActionCmd from './commands/sql-action'; -import databaseSettingCmd from './commands/database-setting'; -import orgMembershipSettingCmd from './commands/org-membership-setting'; -import appLimitEventCmd from './commands/app-limit-event'; -import orgLimitEventCmd from './commands/org-limit-event'; -import appMembershipCmd from './commands/app-membership'; -import userCmd from './commands/user'; -import astMigrationCmd from './commands/ast-migration'; -import webauthnSettingCmd from './commands/webauthn-setting'; -import billingModuleCmd from './commands/billing-module'; -import billingProviderModuleCmd from './commands/billing-provider-module'; -import hierarchyModuleCmd from './commands/hierarchy-module'; -import currentUserIdCmd from './commands/current-user-id'; -import currentUserAgentCmd from './commands/current-user-agent'; -import currentIpAddressCmd from './commands/current-ip-address'; -import requireStepUpCmd from './commands/require-step-up'; -import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask'; -import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask'; -import applyRegistryDefaultsCmd from './commands/apply-registry-defaults'; -import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field'; -import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; -import orgIsManagerOfCmd from './commands/org-is-manager-of'; -import appPermissionsGetMaskCmd from './commands/app-permissions-get-mask'; -import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask'; -import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names'; -import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names'; -import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; -import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; -import currentUserCmd from './commands/current-user'; -import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email'; -import signOutCmd from './commands/sign-out'; -import acceptDatabaseTransferCmd from './commands/accept-database-transfer'; -import cancelDatabaseTransferCmd from './commands/cancel-database-transfer'; -import rejectDatabaseTransferCmd from './commands/reject-database-transfer'; -import disconnectAccountCmd from './commands/disconnect-account'; -import revokeApiKeyCmd from './commands/revoke-api-key'; -import revokeSessionCmd from './commands/revoke-session'; -import verifyPasswordCmd from './commands/verify-password'; -import verifyTotpCmd from './commands/verify-totp'; -import submitAppInviteCodeCmd from './commands/submit-app-invite-code'; -import submitOrgInviteCodeCmd from './commands/submit-org-invite-code'; -import checkPasswordCmd from './commands/check-password'; -import confirmDeleteAccountCmd from './commands/confirm-delete-account'; -import setPasswordCmd from './commands/set-password'; -import verifyEmailCmd from './commands/verify-email'; -import constructBlueprintCmd from './commands/construct-blueprint'; -import provisionNewUserCmd from './commands/provision-new-user'; -import resetPasswordCmd from './commands/reset-password'; -import provisionCheckConstraintCmd from './commands/provision-check-constraint'; -import provisionUniqueConstraintCmd from './commands/provision-unique-constraint'; -import provisionFullTextSearchCmd from './commands/provision-full-text-search'; -import provisionIndexCmd from './commands/provision-index'; -import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint'; -import provisionSpatialRelationCmd from './commands/provision-spatial-relation'; -import signInCrossOriginCmd from './commands/sign-in-cross-origin'; -import bootstrapUserCmd from './commands/bootstrap-user'; -import signUpCmd from './commands/sign-up'; -import signInCmd from './commands/sign-in'; -import provisionRelationCmd from './commands/provision-relation'; -import setFieldOrderCmd from './commands/set-field-order'; -import applyRlsCmd from './commands/apply-rls'; -import provisionDatabaseWithUserCmd from './commands/provision-database-with-user'; -import createUserDatabaseCmd from './commands/create-user-database'; -import extendTokenExpiresCmd from './commands/extend-token-expires'; -import createApiKeyCmd from './commands/create-api-key'; -import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; -import provisionTableCmd from './commands/provision-table'; -import sendVerificationEmailCmd from './commands/send-verification-email'; -import forgotPasswordCmd from './commands/forgot-password'; -import provisionBucketCmd from './commands/provision-bucket'; -const createCommandMap: () => Record< - string, - ( - argv: Partial>, - prompter: Inquirerer, - options: CLIOptions - ) => Promise -> = () => ({ - context: contextCmd, - auth: authCmd, - 'org-get-managers-record': orgGetManagersRecordCmd, - 'org-get-subordinates-record': orgGetSubordinatesRecordCmd, - 'app-permission': appPermissionCmd, - 'org-permission': orgPermissionCmd, - database: databaseCmd, - schema: schemaCmd, - table: tableCmd, - 'check-constraint': checkConstraintCmd, - field: fieldCmd, - 'spatial-relation': spatialRelationCmd, - 'foreign-key-constraint': foreignKeyConstraintCmd, - 'full-text-search': fullTextSearchCmd, - index: indexCmd, - policy: policyCmd, - 'primary-key-constraint': primaryKeyConstraintCmd, - 'table-grant': tableGrantCmd, - trigger: triggerCmd, - 'unique-constraint': uniqueConstraintCmd, - view: viewCmd, - 'view-table': viewTableCmd, - 'view-grant': viewGrantCmd, - 'view-rule': viewRuleCmd, - 'embedding-chunk': embeddingChunkCmd, - 'secure-table-provision': secureTableProvisionCmd, - 'relation-provision': relationProvisionCmd, - 'session-secrets-module': sessionSecretsModuleCmd, - 'identity-providers-module': identityProvidersModuleCmd, - 'realtime-module': realtimeModuleCmd, - 'config-secrets-org-module': configSecretsOrgModuleCmd, - 'schema-grant': schemaGrantCmd, - 'default-privilege': defaultPrivilegeCmd, - enum: enumCmd, - function: functionCmd, - 'api-schema': apiSchemaCmd, - 'api-module': apiModuleCmd, - domain: domainCmd, - 'site-metadatum': siteMetadatumCmd, - 'site-module': siteModuleCmd, - 'site-theme': siteThemeCmd, - 'cors-setting': corsSettingCmd, - 'merkle-store-module': merkleStoreModuleCmd, - 'graph-module': graphModuleCmd, - 'trigger-function': triggerFunctionCmd, - partition: partitionCmd, - 'database-transfer': databaseTransferCmd, - api: apiCmd, - site: siteCmd, - app: appCmd, - 'api-setting': apiSettingCmd, - 'connected-accounts-module': connectedAccountsModuleCmd, - 'crypto-addresses-module': cryptoAddressesModuleCmd, - 'crypto-auth-module': cryptoAuthModuleCmd, - 'default-ids-module': defaultIdsModuleCmd, - 'denormalized-table-field': denormalizedTableFieldCmd, - 'emails-module': emailsModuleCmd, - 'config-secrets-user-module': configSecretsUserModuleCmd, - 'invites-module': invitesModuleCmd, - 'events-module': eventsModuleCmd, - 'limits-module': limitsModuleCmd, - 'membership-types-module': membershipTypesModuleCmd, - 'memberships-module': membershipsModuleCmd, - 'permissions-module': permissionsModuleCmd, - 'phone-numbers-module': phoneNumbersModuleCmd, - 'profiles-module': profilesModuleCmd, - 'user-state-module': userStateModuleCmd, - 'sessions-module': sessionsModuleCmd, - 'user-auth-module': userAuthModuleCmd, - 'users-module': usersModuleCmd, - blueprint: blueprintCmd, - 'blueprint-template': blueprintTemplateCmd, - 'blueprint-construction': blueprintConstructionCmd, - 'storage-module': storageModuleCmd, - 'entity-type-provision': entityTypeProvisionCmd, - 'webauthn-credentials-module': webauthnCredentialsModuleCmd, - 'webauthn-auth-module': webauthnAuthModuleCmd, - 'notifications-module': notificationsModuleCmd, - 'inference-log-module': inferenceLogModuleCmd, - 'compute-log-module': computeLogModuleCmd, - 'transfer-log-module': transferLogModuleCmd, - 'storage-log-module': storageLogModuleCmd, - 'db-usage-module': dbUsageModuleCmd, - 'agent-module': agentModuleCmd, - 'namespace-module': namespaceModuleCmd, - 'function-module': functionModuleCmd, - 'database-provision-module': databaseProvisionModuleCmd, - 'app-admin-grant': appAdminGrantCmd, - 'app-owner-grant': appOwnerGrantCmd, - 'app-grant': appGrantCmd, - 'org-membership': orgMembershipCmd, - 'org-member': orgMemberCmd, - 'org-admin-grant': orgAdminGrantCmd, - 'org-owner-grant': orgOwnerGrantCmd, - 'org-member-profile': orgMemberProfileCmd, - 'org-grant': orgGrantCmd, - 'org-chart-edge': orgChartEdgeCmd, - 'org-chart-edge-grant': orgChartEdgeGrantCmd, - 'org-permission-default': orgPermissionDefaultCmd, - 'app-limit': appLimitCmd, - 'app-limit-credit': appLimitCreditCmd, - 'app-limit-credit-code-item': appLimitCreditCodeItemCmd, - 'app-limit-credit-redemption': appLimitCreditRedemptionCmd, - 'org-limit': orgLimitCmd, - 'org-limit-credit': orgLimitCreditCmd, - 'org-limit-aggregate': orgLimitAggregateCmd, - 'org-limit-warning': orgLimitWarningCmd, - email: emailCmd, - 'phone-number': phoneNumberCmd, - 'crypto-address': cryptoAddressCmd, - 'webauthn-credential': webauthnCredentialCmd, - 'app-invite': appInviteCmd, - 'app-claimed-invite': appClaimedInviteCmd, - 'org-invite': orgInviteCmd, - 'org-claimed-invite': orgClaimedInviteCmd, - 'audit-log-auth': auditLogAuthCmd, - 'identity-provider': identityProviderCmd, - 'app-permission-default': appPermissionDefaultCmd, - 'role-type': roleTypeCmd, - 'migrate-file': migrateFileCmd, - 'devices-module': devicesModuleCmd, - 'app-membership-default': appMembershipDefaultCmd, - 'org-membership-default': orgMembershipDefaultCmd, - 'node-type-registry': nodeTypeRegistryCmd, - 'app-limit-caps-default': appLimitCapsDefaultCmd, - 'org-limit-caps-default': orgLimitCapsDefaultCmd, - 'app-limit-cap': appLimitCapCmd, - 'org-limit-cap': orgLimitCapCmd, - 'user-connected-account': userConnectedAccountCmd, - 'app-limit-default': appLimitDefaultCmd, - 'org-limit-default': orgLimitDefaultCmd, - 'app-limit-credit-code': appLimitCreditCodeCmd, - 'app-limit-warning': appLimitWarningCmd, - 'pubkey-setting': pubkeySettingCmd, - 'rate-limits-module': rateLimitsModuleCmd, - 'membership-type': membershipTypeCmd, - 'rls-setting': rlsSettingCmd, - 'rls-module': rlsModuleCmd, - 'rate-limit-meters-module': rateLimitMetersModuleCmd, - 'plans-module': plansModuleCmd, - 'sql-action': sqlActionCmd, - 'database-setting': databaseSettingCmd, - 'org-membership-setting': orgMembershipSettingCmd, - 'app-limit-event': appLimitEventCmd, - 'org-limit-event': orgLimitEventCmd, - 'app-membership': appMembershipCmd, - user: userCmd, - 'ast-migration': astMigrationCmd, - 'webauthn-setting': webauthnSettingCmd, - 'billing-module': billingModuleCmd, - 'billing-provider-module': billingProviderModuleCmd, - 'hierarchy-module': hierarchyModuleCmd, - 'current-user-id': currentUserIdCmd, - 'current-user-agent': currentUserAgentCmd, - 'current-ip-address': currentIpAddressCmd, - 'require-step-up': requireStepUpCmd, - 'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd, - 'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd, - 'apply-registry-defaults': applyRegistryDefaultsCmd, - 'resolve-blueprint-field': resolveBlueprintFieldCmd, - 'resolve-blueprint-table': resolveBlueprintTableCmd, - 'org-is-manager-of': orgIsManagerOfCmd, - 'app-permissions-get-mask': appPermissionsGetMaskCmd, - 'org-permissions-get-mask': orgPermissionsGetMaskCmd, - 'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd, - 'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd, - 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, - 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, - 'current-user': currentUserCmd, - 'send-account-deletion-email': sendAccountDeletionEmailCmd, - 'sign-out': signOutCmd, - 'accept-database-transfer': acceptDatabaseTransferCmd, - 'cancel-database-transfer': cancelDatabaseTransferCmd, - 'reject-database-transfer': rejectDatabaseTransferCmd, - 'disconnect-account': disconnectAccountCmd, - 'revoke-api-key': revokeApiKeyCmd, - 'revoke-session': revokeSessionCmd, - 'verify-password': verifyPasswordCmd, - 'verify-totp': verifyTotpCmd, - 'submit-app-invite-code': submitAppInviteCodeCmd, - 'submit-org-invite-code': submitOrgInviteCodeCmd, - 'check-password': checkPasswordCmd, - 'confirm-delete-account': confirmDeleteAccountCmd, - 'set-password': setPasswordCmd, - 'verify-email': verifyEmailCmd, - 'construct-blueprint': constructBlueprintCmd, - 'provision-new-user': provisionNewUserCmd, - 'reset-password': resetPasswordCmd, - 'provision-check-constraint': provisionCheckConstraintCmd, - 'provision-unique-constraint': provisionUniqueConstraintCmd, - 'provision-full-text-search': provisionFullTextSearchCmd, - 'provision-index': provisionIndexCmd, - 'copy-template-to-blueprint': copyTemplateToBlueprintCmd, - 'provision-spatial-relation': provisionSpatialRelationCmd, - 'sign-in-cross-origin': signInCrossOriginCmd, - 'bootstrap-user': bootstrapUserCmd, - 'sign-up': signUpCmd, - 'sign-in': signInCmd, - 'provision-relation': provisionRelationCmd, - 'set-field-order': setFieldOrderCmd, - 'apply-rls': applyRlsCmd, - 'provision-database-with-user': provisionDatabaseWithUserCmd, - 'create-user-database': createUserDatabaseCmd, - 'extend-token-expires': extendTokenExpiresCmd, - 'create-api-key': createApiKeyCmd, - 'request-cross-origin-token': requestCrossOriginTokenCmd, - 'provision-table': provisionTableCmd, - 'send-verification-email': sendVerificationEmailCmd, - 'forgot-password': forgotPasswordCmd, - 'provision-bucket': provisionBucketCmd, -}); -const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule 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 connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n agent-module agentModule CRUD operations\n namespace-module namespaceModule CRUD operations\n function-module functionModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n membership-type membershipType CRUD operations\n rls-setting rlsSetting CRUD operations\n rls-module rlsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n app-membership appMembership CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n apply-registry-defaults applyRegistryDefaults\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 org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n 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-new-user provisionNewUser\n reset-password resetPassword\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n sign-in-cross-origin signInCrossOrigin\n bootstrap-user bootstrapUser\n sign-up signUp\n sign-in signIn\n 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 set-field-order setFieldOrder\n apply-rls applyRls\n provision-database-with-user provisionDatabaseWithUser\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; -export const commands = async ( - argv: Partial>, - prompter: Inquirerer, - 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/public/cli/commands/app-admin-grant.ts b/sdk/constructive-cli/src/public/cli/commands/app-admin-grant.ts deleted file mode 100644 index 3003d188c6..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-admin-grant.ts +++ /dev/null @@ -1,307 +0,0 @@ -/** - * CLI commands for AppAdminGrant - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppAdminGrantInput, - AppAdminGrantPatch, - AppAdminGrantSelect, - AppAdminGrantFilter, - AppAdminGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - isGrant: 'boolean', - actorId: 'uuid', - grantorId: 'uuid', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\napp-admin-grant \n\nCommands:\n list List appAdminGrant records\n find-first Find first matching appAdminGrant record\n get Get a appAdminGrant by ID\n create Create a new appAdminGrant\n update Update an existing appAdminGrant\n delete Delete a appAdminGrant\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isGrant: true, - actorId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppAdminGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appAdminGrant.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isGrant: true, - actorId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppAdminGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appAdminGrant.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appAdminGrant - .findOne({ - id: answers.id as string, - select: { - id: true, - isGrant: true, - actorId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppAdminGrantInput['appAdminGrant']; - const client = getClient(); - const result = await client.appAdminGrant - .create({ - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppAdminGrantPatch; - const client = getClient(); - const result = await client.appAdminGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - grantorId: 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.appAdminGrant - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-claimed-invite.ts b/sdk/constructive-cli/src/public/cli/commands/app-claimed-invite.ts deleted file mode 100644 index 8aa351cfd6..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-claimed-invite.ts +++ /dev/null @@ -1,309 +0,0 @@ -/** - * CLI commands for AppClaimedInvite - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppClaimedInviteInput, - AppClaimedInvitePatch, - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - data: 'json', - senderId: 'uuid', - receiverId: 'uuid', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\napp-claimed-invite \n\nCommands:\n list List appClaimedInvite records\n find-first Find first matching appClaimedInvite record\n get Get a appClaimedInvite by ID\n create Create a new appClaimedInvite\n update Update an existing appClaimedInvite\n delete Delete a appClaimedInvite\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - data: true, - senderId: true, - receiverId: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppClaimedInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appClaimedInvite.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - data: true, - senderId: true, - receiverId: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppClaimedInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appClaimedInvite.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appClaimedInvite - .findOne({ - id: answers.id as string, - select: { - id: true, - data: true, - senderId: true, - receiverId: 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: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'receiverId', - message: 'receiverId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppClaimedInviteInput['appClaimedInvite']; - const client = getClient(); - const result = await client.appClaimedInvite - .create({ - data: { - data: cleanedData.data, - senderId: cleanedData.senderId, - receiverId: cleanedData.receiverId, - }, - select: { - id: true, - data: true, - senderId: true, - receiverId: 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: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'receiverId', - message: 'receiverId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppClaimedInvitePatch; - const client = getClient(); - const result = await client.appClaimedInvite - .update({ - where: { - id: answers.id as string, - }, - data: { - data: cleanedData.data, - senderId: cleanedData.senderId, - receiverId: cleanedData.receiverId, - }, - select: { - id: true, - data: true, - senderId: true, - receiverId: 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.appClaimedInvite - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-grant.ts b/sdk/constructive-cli/src/public/cli/commands/app-grant.ts deleted file mode 100644 index ea2461614a..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-grant.ts +++ /dev/null @@ -1,326 +0,0 @@ -/** - * CLI commands for AppGrant - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppGrantInput, - AppGrantPatch, - AppGrantSelect, - AppGrantFilter, - AppGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - permissions: 'string', - isGrant: 'boolean', - actorId: 'uuid', - grantorId: 'uuid', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\napp-grant \n\nCommands:\n list List appGrant records\n find-first Find first matching appGrant record\n get Get a appGrant by ID\n create Create a new appGrant\n update Update an existing appGrant\n delete Delete a appGrant\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - isGrant: true, - actorId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appGrant.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - isGrant: true, - actorId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appGrant.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appGrant - .findOne({ - id: answers.id as string, - select: { - id: true, - permissions: true, - isGrant: true, - actorId: true, - grantorId: 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: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateAppGrantInput['appGrant']; - const client = getClient(); - const result = await client.appGrant - .create({ - data: { - permissions: cleanedData.permissions, - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - permissions: true, - isGrant: true, - actorId: true, - grantorId: 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: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppGrantPatch; - const client = getClient(); - const result = await client.appGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - permissions: cleanedData.permissions, - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - permissions: true, - isGrant: true, - actorId: true, - grantorId: 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.appGrant - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-invite.ts b/sdk/constructive-cli/src/public/cli/commands/app-invite.ts deleted file mode 100644 index 46ada6b221..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-invite.ts +++ /dev/null @@ -1,460 +0,0 @@ -/** - * CLI commands for AppInvite - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppInviteInput, - AppInvitePatch, - AppInviteSelect, - AppInviteFilter, - AppInviteOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - email: 'string', - senderId: 'uuid', - inviteToken: 'string', - inviteValid: 'boolean', - inviteLimit: 'int', - inviteCount: 'int', - multiple: 'boolean', - data: 'json', - profileId: 'uuid', - expiresAt: 'string', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\napp-invite \n\nCommands:\n list List appInvite records\n find-first Find first matching appInvite record\n get Get a appInvite by ID\n create Create a new appInvite\n update Update an existing appInvite\n delete Delete a appInvite\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - email: true, - senderId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appInvite.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - email: true, - senderId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appInvite.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appInvite - .findOne({ - id: answers.id as string, - select: { - id: true, - email: true, - senderId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'email', - message: 'email', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteToken', - message: 'inviteToken', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'inviteValid', - message: 'inviteValid', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteLimit', - message: 'inviteLimit', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteCount', - message: 'inviteCount', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'multiple', - message: 'multiple', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - 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 CreateAppInviteInput['appInvite']; - const client = getClient(); - const result = await client.appInvite - .create({ - data: { - email: cleanedData.email, - senderId: cleanedData.senderId, - inviteToken: cleanedData.inviteToken, - inviteValid: cleanedData.inviteValid, - inviteLimit: cleanedData.inviteLimit, - inviteCount: cleanedData.inviteCount, - multiple: cleanedData.multiple, - data: cleanedData.data, - profileId: cleanedData.profileId, - expiresAt: cleanedData.expiresAt, - }, - select: { - id: true, - email: true, - senderId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'email', - message: 'email', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteToken', - message: 'inviteToken', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'inviteValid', - message: 'inviteValid', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteLimit', - message: 'inviteLimit', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteCount', - message: 'inviteCount', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'multiple', - message: 'multiple', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - 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 AppInvitePatch; - const client = getClient(); - const result = await client.appInvite - .update({ - where: { - id: answers.id as string, - }, - data: { - email: cleanedData.email, - senderId: cleanedData.senderId, - inviteToken: cleanedData.inviteToken, - inviteValid: cleanedData.inviteValid, - inviteLimit: cleanedData.inviteLimit, - inviteCount: cleanedData.inviteCount, - multiple: cleanedData.multiple, - data: cleanedData.data, - profileId: cleanedData.profileId, - expiresAt: cleanedData.expiresAt, - }, - select: { - id: true, - email: true, - senderId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appInvite - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-cap.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-cap.ts deleted file mode 100644 index 52566d4a4e..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-cap.ts +++ /dev/null @@ -1,293 +0,0 @@ -/** - * CLI commands for AppLimitCap - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitCapInput, - AppLimitCapPatch, - AppLimitCapSelect, - AppLimitCapFilter, - AppLimitCapOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - entityId: 'uuid', - max: 'int', -}; -const usage = - '\napp-limit-cap \n\nCommands:\n list List appLimitCap records\n find-first Find first matching appLimitCap record\n get Get a appLimitCap by ID\n create Create a new appLimitCap\n update Update an existing appLimitCap\n delete Delete a appLimitCap\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - entityId: true, - max: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppLimitCapSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCap.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - entityId: true, - max: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppLimitCapSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCap.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitCap - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - entityId: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitCapInput['appLimitCap']; - const client = getClient(); - const result = await client.appLimitCap - .create({ - data: { - name: cleanedData.name, - entityId: cleanedData.entityId, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - entityId: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitCapPatch; - const client = getClient(); - const result = await client.appLimitCap - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - entityId: cleanedData.entityId, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - entityId: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitCap - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-caps-default.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-caps-default.ts deleted file mode 100644 index 1209474a9a..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-caps-default.ts +++ /dev/null @@ -1,281 +0,0 @@ -/** - * CLI commands for AppLimitCapsDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitCapsDefaultInput, - AppLimitCapsDefaultPatch, - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - max: 'int', -}; -const usage = - '\napp-limit-caps-default \n\nCommands:\n list List appLimitCapsDefault records\n find-first Find first matching appLimitCapsDefault record\n get Get a appLimitCapsDefault by ID\n create Create a new appLimitCapsDefault\n update Update an existing appLimitCapsDefault\n delete Delete a appLimitCapsDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - max: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - > & { - select: AppLimitCapsDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCapsDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - max: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - > & { - select: AppLimitCapsDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCapsDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitCapsDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitCapsDefaultInput['appLimitCapsDefault']; - const client = getClient(); - const result = await client.appLimitCapsDefault - .create({ - data: { - name: cleanedData.name, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitCapsDefaultPatch; - const client = getClient(); - const result = await client.appLimitCapsDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitCapsDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-code-item.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-code-item.ts deleted file mode 100644 index c5bce39435..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-code-item.ts +++ /dev/null @@ -1,321 +0,0 @@ -/** - * CLI commands for AppLimitCreditCodeItem - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitCreditCodeItemInput, - AppLimitCreditCodeItemPatch, - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - creditCodeId: 'uuid', - defaultLimitId: 'uuid', - amount: 'int', - creditType: 'string', -}; -const usage = - '\napp-limit-credit-code-item \n\nCommands:\n list List appLimitCreditCodeItem records\n find-first Find first matching appLimitCreditCodeItem record\n get Get a appLimitCreditCodeItem by ID\n create Create a new appLimitCreditCodeItem\n update Update an existing appLimitCreditCodeItem\n delete Delete a appLimitCreditCodeItem\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - creditCodeId: true, - defaultLimitId: true, - amount: true, - creditType: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - > & { - select: AppLimitCreditCodeItemSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditCodeItem.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - creditCodeId: true, - defaultLimitId: true, - amount: true, - creditType: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - > & { - select: AppLimitCreditCodeItemSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditCodeItem.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitCreditCodeItem - .findOne({ - id: answers.id as string, - select: { - id: true, - creditCodeId: true, - defaultLimitId: true, - amount: true, - creditType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'creditCodeId', - message: 'creditCodeId', - required: true, - }, - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: true, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: true, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitCreditCodeItemInput['appLimitCreditCodeItem']; - const client = getClient(); - const result = await client.appLimitCreditCodeItem - .create({ - data: { - creditCodeId: cleanedData.creditCodeId, - defaultLimitId: cleanedData.defaultLimitId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - }, - select: { - id: true, - creditCodeId: true, - defaultLimitId: true, - amount: true, - creditType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'creditCodeId', - message: 'creditCodeId', - required: false, - }, - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: false, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: false, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitCreditCodeItemPatch; - const client = getClient(); - const result = await client.appLimitCreditCodeItem - .update({ - where: { - id: answers.id as string, - }, - data: { - creditCodeId: cleanedData.creditCodeId, - defaultLimitId: cleanedData.defaultLimitId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - }, - select: { - id: true, - creditCodeId: true, - defaultLimitId: true, - amount: true, - creditType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitCreditCodeItem - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-code.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-code.ts deleted file mode 100644 index 87414110a5..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-code.ts +++ /dev/null @@ -1,325 +0,0 @@ -/** - * CLI commands for AppLimitCreditCode - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitCreditCodeInput, - AppLimitCreditCodePatch, - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - code: 'string', - maxRedemptions: 'int', - currentRedemptions: 'int', - expiresAt: 'string', -}; -const usage = - '\napp-limit-credit-code \n\nCommands:\n list List appLimitCreditCode records\n find-first Find first matching appLimitCreditCode record\n get Get a appLimitCreditCode by ID\n create Create a new appLimitCreditCode\n update Update an existing appLimitCreditCode\n delete Delete a appLimitCreditCode\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - code: true, - maxRedemptions: true, - currentRedemptions: true, - expiresAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - > & { - select: AppLimitCreditCodeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditCode.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - code: true, - maxRedemptions: true, - currentRedemptions: true, - expiresAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - > & { - select: AppLimitCreditCodeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditCode.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitCreditCode - .findOne({ - id: answers.id as string, - select: { - id: true, - code: true, - maxRedemptions: true, - currentRedemptions: true, - expiresAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'code', - message: 'code', - required: true, - }, - { - type: 'text', - name: 'maxRedemptions', - message: 'maxRedemptions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'currentRedemptions', - message: 'currentRedemptions', - 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 CreateAppLimitCreditCodeInput['appLimitCreditCode']; - const client = getClient(); - const result = await client.appLimitCreditCode - .create({ - data: { - code: cleanedData.code, - maxRedemptions: cleanedData.maxRedemptions, - currentRedemptions: cleanedData.currentRedemptions, - expiresAt: cleanedData.expiresAt, - }, - select: { - id: true, - code: true, - maxRedemptions: true, - currentRedemptions: true, - expiresAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'code', - message: 'code', - required: false, - }, - { - type: 'text', - name: 'maxRedemptions', - message: 'maxRedemptions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'currentRedemptions', - message: 'currentRedemptions', - 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 AppLimitCreditCodePatch; - const client = getClient(); - const result = await client.appLimitCreditCode - .update({ - where: { - id: answers.id as string, - }, - data: { - code: cleanedData.code, - maxRedemptions: cleanedData.maxRedemptions, - currentRedemptions: cleanedData.currentRedemptions, - expiresAt: cleanedData.expiresAt, - }, - select: { - id: true, - code: true, - maxRedemptions: true, - currentRedemptions: true, - expiresAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitCreditCode - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-redemption.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-redemption.ts deleted file mode 100644 index c2d2be8b89..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit-redemption.ts +++ /dev/null @@ -1,279 +0,0 @@ -/** - * CLI commands for AppLimitCreditRedemption - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitCreditRedemptionInput, - AppLimitCreditRedemptionPatch, - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - creditCodeId: 'uuid', - entityId: 'uuid', -}; -const usage = - '\napp-limit-credit-redemption \n\nCommands:\n list List appLimitCreditRedemption records\n find-first Find first matching appLimitCreditRedemption record\n get Get a appLimitCreditRedemption by ID\n create Create a new appLimitCreditRedemption\n update Update an existing appLimitCreditRedemption\n delete Delete a appLimitCreditRedemption\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - creditCodeId: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - > & { - select: AppLimitCreditRedemptionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditRedemption.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - creditCodeId: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - > & { - select: AppLimitCreditRedemptionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCreditRedemption.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitCreditRedemption - .findOne({ - id: answers.id as string, - select: { - id: true, - creditCodeId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'creditCodeId', - message: 'creditCodeId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitCreditRedemptionInput['appLimitCreditRedemption']; - const client = getClient(); - const result = await client.appLimitCreditRedemption - .create({ - data: { - creditCodeId: cleanedData.creditCodeId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - creditCodeId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'creditCodeId', - message: 'creditCodeId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitCreditRedemptionPatch; - const client = getClient(); - const result = await client.appLimitCreditRedemption - .update({ - where: { - id: answers.id as string, - }, - data: { - creditCodeId: cleanedData.creditCodeId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - creditCodeId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitCreditRedemption - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-credit.ts deleted file mode 100644 index 5a3c3e0a93..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-credit.ts +++ /dev/null @@ -1,337 +0,0 @@ -/** - * CLI commands for AppLimitCredit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitCreditInput, - AppLimitCreditPatch, - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - defaultLimitId: 'uuid', - actorId: 'uuid', - amount: 'int', - creditType: 'string', - reason: 'string', -}; -const usage = - '\napp-limit-credit \n\nCommands:\n list List appLimitCredit records\n find-first Find first matching appLimitCredit record\n get Get a appLimitCredit by ID\n create Create a new appLimitCredit\n update Update an existing appLimitCredit\n delete Delete a appLimitCredit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - defaultLimitId: true, - actorId: true, - amount: true, - creditType: true, - reason: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppLimitCreditSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCredit.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - defaultLimitId: true, - actorId: true, - amount: true, - creditType: true, - reason: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppLimitCreditSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitCredit.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitCredit - .findOne({ - id: answers.id as string, - select: { - id: true, - defaultLimitId: true, - actorId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: true, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitCreditInput['appLimitCredit']; - const client = getClient(); - const result = await client.appLimitCredit - .create({ - data: { - defaultLimitId: cleanedData.defaultLimitId, - actorId: cleanedData.actorId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - reason: cleanedData.reason, - }, - select: { - id: true, - defaultLimitId: true, - actorId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: false, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: false, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitCreditPatch; - const client = getClient(); - const result = await client.appLimitCredit - .update({ - where: { - id: answers.id as string, - }, - data: { - defaultLimitId: cleanedData.defaultLimitId, - actorId: cleanedData.actorId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - reason: cleanedData.reason, - }, - select: { - id: true, - defaultLimitId: true, - actorId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.appLimitCredit - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-default.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-default.ts deleted file mode 100644 index 55e697e1bd..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-default.ts +++ /dev/null @@ -1,295 +0,0 @@ -/** - * CLI commands for AppLimitDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitDefaultInput, - AppLimitDefaultPatch, - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - max: 'int', - softMax: 'int', -}; -const usage = - '\napp-limit-default \n\nCommands:\n list List appLimitDefault records\n find-first Find first matching appLimitDefault record\n get Get a appLimitDefault by ID\n create Create a new appLimitDefault\n update Update an existing appLimitDefault\n delete Delete a appLimitDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - max: true, - softMax: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppLimitDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - max: true, - softMax: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppLimitDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - max: true, - softMax: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitDefaultInput['appLimitDefault']; - const client = getClient(); - const result = await client.appLimitDefault - .create({ - data: { - name: cleanedData.name, - max: cleanedData.max, - softMax: cleanedData.softMax, - }, - select: { - id: true, - name: true, - max: true, - softMax: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitDefaultPatch; - const client = getClient(); - const result = await client.appLimitDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - max: cleanedData.max, - softMax: cleanedData.softMax, - }, - select: { - id: true, - name: true, - max: true, - softMax: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts deleted file mode 100644 index e3ea205fbe..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts +++ /dev/null @@ -1,479 +0,0 @@ -/** - * CLI commands for AppLimitEvent - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitEventInput, - AppLimitEventPatch, - AppLimitEventSelect, - AppLimitEventFilter, - AppLimitEventOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - createdAt: 'string', - id: 'uuid', - name: 'string', - actorId: 'uuid', - entityId: 'uuid', - organizationId: 'uuid', - entityType: 'string', - eventType: 'string', - delta: 'int', - numBefore: 'int', - numAfter: 'int', - maxAtEvent: 'int', - reason: 'string', -}; -const usage = - '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n get Get a appLimitEvent by ID\n create Create a new appLimitEvent\n update Update an existing appLimitEvent\n delete Delete a appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppLimitEventSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitEvent.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppLimitEventSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitEvent.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitEvent - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - id: true, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'eventType', - message: 'eventType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'delta', - message: 'delta', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numBefore', - message: 'numBefore', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numAfter', - message: 'numAfter', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'maxAtEvent', - message: 'maxAtEvent', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitEventInput['appLimitEvent']; - const client = getClient(); - const result = await client.appLimitEvent - .create({ - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - eventType: cleanedData.eventType, - delta: cleanedData.delta, - numBefore: cleanedData.numBefore, - numAfter: cleanedData.numAfter, - maxAtEvent: cleanedData.maxAtEvent, - reason: cleanedData.reason, - }, - select: { - createdAt: true, - id: true, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'eventType', - message: 'eventType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'delta', - message: 'delta', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numBefore', - message: 'numBefore', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numAfter', - message: 'numAfter', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'maxAtEvent', - message: 'maxAtEvent', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitEventPatch; - const client = getClient(); - const result = await client.appLimitEvent - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - eventType: cleanedData.eventType, - delta: cleanedData.delta, - numBefore: cleanedData.numBefore, - numAfter: cleanedData.numAfter, - maxAtEvent: cleanedData.maxAtEvent, - reason: cleanedData.reason, - }, - select: { - createdAt: true, - id: true, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.appLimitEvent - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-warning.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-warning.ts deleted file mode 100644 index e3e257159b..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-warning.ts +++ /dev/null @@ -1,311 +0,0 @@ -/** - * CLI commands for AppLimitWarning - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitWarningInput, - AppLimitWarningPatch, - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - warningType: 'string', - thresholdValue: 'int', - taskIdentifier: 'string', -}; -const usage = - '\napp-limit-warning \n\nCommands:\n list List appLimitWarning records\n find-first Find first matching appLimitWarning record\n get Get a appLimitWarning by ID\n create Create a new appLimitWarning\n update Update an existing appLimitWarning\n delete Delete a appLimitWarning\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppLimitWarningSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitWarning.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppLimitWarningSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimitWarning.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimitWarning - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'warningType', - message: 'warningType', - required: true, - }, - { - type: 'text', - name: 'thresholdValue', - message: 'thresholdValue', - required: true, - }, - { - type: 'text', - name: 'taskIdentifier', - message: 'taskIdentifier', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppLimitWarningInput['appLimitWarning']; - const client = getClient(); - const result = await client.appLimitWarning - .create({ - data: { - name: cleanedData.name, - warningType: cleanedData.warningType, - thresholdValue: cleanedData.thresholdValue, - taskIdentifier: cleanedData.taskIdentifier, - }, - select: { - id: true, - name: true, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'warningType', - message: 'warningType', - required: false, - }, - { - type: 'text', - name: 'thresholdValue', - message: 'thresholdValue', - required: false, - }, - { - type: 'text', - name: 'taskIdentifier', - message: 'taskIdentifier', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitWarningPatch; - const client = getClient(); - const result = await client.appLimitWarning - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - warningType: cleanedData.warningType, - thresholdValue: cleanedData.thresholdValue, - taskIdentifier: cleanedData.taskIdentifier, - }, - select: { - id: true, - name: true, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimitWarning - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit.ts deleted file mode 100644 index 1188cc5852..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit.ts +++ /dev/null @@ -1,490 +0,0 @@ -/** - * CLI commands for AppLimit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppLimitInput, - AppLimitPatch, - AppLimitSelect, - AppLimitFilter, - AppLimitOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - actorId: 'uuid', - num: 'int', - max: 'int', - softMax: 'int', - windowStart: 'string', - windowDuration: 'string', - planMax: 'int', - purchasedCredits: 'int', - periodCredits: 'int', - organizationId: 'uuid', - entityType: 'string', -}; -const usage = - '\napp-limit \n\nCommands:\n list List appLimit records\n find-first Find first matching appLimit record\n get Get a appLimit by ID\n create Create a new appLimit\n update Update an existing appLimit\n delete Delete a appLimit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - organizationId: true, - entityType: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppLimitSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimit.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - organizationId: true, - entityType: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppLimitSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appLimit.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appLimit - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'num', - message: 'num', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowStart', - message: 'windowStart', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowDuration', - message: 'windowDuration', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'planMax', - message: 'planMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'purchasedCredits', - message: 'purchasedCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'periodCredits', - message: 'periodCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateAppLimitInput['appLimit']; - const client = getClient(); - const result = await client.appLimit - .create({ - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - num: cleanedData.num, - max: cleanedData.max, - softMax: cleanedData.softMax, - windowStart: cleanedData.windowStart, - windowDuration: cleanedData.windowDuration, - planMax: cleanedData.planMax, - purchasedCredits: cleanedData.purchasedCredits, - periodCredits: cleanedData.periodCredits, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - }, - select: { - id: true, - name: true, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'num', - message: 'num', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowStart', - message: 'windowStart', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowDuration', - message: 'windowDuration', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'planMax', - message: 'planMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'purchasedCredits', - message: 'purchasedCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'periodCredits', - message: 'periodCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitPatch; - const client = getClient(); - const result = await client.appLimit - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - num: cleanedData.num, - max: cleanedData.max, - softMax: cleanedData.softMax, - windowStart: cleanedData.windowStart, - windowDuration: cleanedData.windowDuration, - planMax: cleanedData.planMax, - purchasedCredits: cleanedData.purchasedCredits, - periodCredits: cleanedData.periodCredits, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - }, - select: { - id: true, - name: true, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appLimit - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-membership-default.ts b/sdk/constructive-cli/src/public/cli/commands/app-membership-default.ts deleted file mode 100644 index 0d15b7564e..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-membership-default.ts +++ /dev/null @@ -1,339 +0,0 @@ -/** - * CLI commands for AppMembershipDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppMembershipDefaultInput, - AppMembershipDefaultPatch, - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy, -} 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', - isApproved: 'boolean', - isVerified: 'boolean', -}; -const usage = - '\napp-membership-default \n\nCommands:\n list List appMembershipDefault records\n find-first Find first matching appMembershipDefault record\n get Get a appMembershipDefault by ID\n create Create a new appMembershipDefault\n update Update an existing appMembershipDefault\n delete Delete a appMembershipDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isApproved: true, - isVerified: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - > & { - select: AppMembershipDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appMembershipDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isApproved: true, - isVerified: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - > & { - select: AppMembershipDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appMembershipDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appMembershipDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isVerified: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppMembershipDefaultInput['appMembershipDefault']; - const client = getClient(); - const result = await client.appMembershipDefault - .create({ - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - isVerified: cleanedData.isVerified, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isVerified: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppMembershipDefaultPatch; - const client = getClient(); - const result = await client.appMembershipDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - isVerified: cleanedData.isVerified, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isVerified: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appMembershipDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-membership.ts b/sdk/constructive-cli/src/public/cli/commands/app-membership.ts deleted file mode 100644 index 0d4a7fac20..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-membership.ts +++ /dev/null @@ -1,527 +0,0 @@ -/** - * CLI commands for AppMembership - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppMembershipInput, - AppMembershipPatch, - AppMembershipSelect, - AppMembershipFilter, - AppMembershipOrderBy, -} 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', - isApproved: 'boolean', - isBanned: 'boolean', - isDisabled: 'boolean', - isVerified: 'boolean', - isActive: 'boolean', - isOwner: 'boolean', - isAdmin: 'boolean', - permissions: 'string', - granted: 'string', - actorId: 'uuid', - profileId: 'uuid', -}; -const usage = - '\napp-membership \n\nCommands:\n list List appMembership records\n find-first Find first matching appMembership record\n get Get a appMembership by ID\n create Create a new appMembership\n update Update an existing appMembership\n delete Delete a appMembership\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isApproved: true, - isBanned: true, - isDisabled: true, - isVerified: true, - isActive: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - profileId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppMembershipSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appMembership.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isApproved: true, - isBanned: true, - isDisabled: true, - isVerified: true, - isActive: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - profileId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppMembershipSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appMembership.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appMembership - .findOne({ - id: answers.id as string, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isBanned: true, - isDisabled: true, - isVerified: true, - isActive: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - profileId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isBanned', - message: 'isBanned', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isDisabled', - message: 'isDisabled', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isOwner', - message: 'isOwner', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isAdmin', - message: 'isAdmin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'granted', - message: 'granted', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppMembershipInput['appMembership']; - const client = getClient(); - const result = await client.appMembership - .create({ - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - isBanned: cleanedData.isBanned, - isDisabled: cleanedData.isDisabled, - isVerified: cleanedData.isVerified, - isActive: cleanedData.isActive, - isOwner: cleanedData.isOwner, - isAdmin: cleanedData.isAdmin, - permissions: cleanedData.permissions, - granted: cleanedData.granted, - actorId: cleanedData.actorId, - profileId: cleanedData.profileId, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isBanned: true, - isDisabled: true, - isVerified: true, - isActive: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - profileId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isBanned', - message: 'isBanned', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isDisabled', - message: 'isDisabled', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isOwner', - message: 'isOwner', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isAdmin', - message: 'isAdmin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'granted', - message: 'granted', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppMembershipPatch; - const client = getClient(); - const result = await client.appMembership - .update({ - where: { - id: answers.id as string, - }, - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - isBanned: cleanedData.isBanned, - isDisabled: cleanedData.isDisabled, - isVerified: cleanedData.isVerified, - isActive: cleanedData.isActive, - isOwner: cleanedData.isOwner, - isAdmin: cleanedData.isAdmin, - permissions: cleanedData.permissions, - granted: cleanedData.granted, - actorId: cleanedData.actorId, - profileId: cleanedData.profileId, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isBanned: true, - isDisabled: true, - isVerified: true, - isActive: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - profileId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.appMembership - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-owner-grant.ts b/sdk/constructive-cli/src/public/cli/commands/app-owner-grant.ts deleted file mode 100644 index 991b3093e2..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-owner-grant.ts +++ /dev/null @@ -1,307 +0,0 @@ -/** - * CLI commands for AppOwnerGrant - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppOwnerGrantInput, - AppOwnerGrantPatch, - AppOwnerGrantSelect, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - isGrant: 'boolean', - actorId: 'uuid', - grantorId: 'uuid', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\napp-owner-grant \n\nCommands:\n list List appOwnerGrant records\n find-first Find first matching appOwnerGrant record\n get Get a appOwnerGrant by ID\n create Create a new appOwnerGrant\n update Update an existing appOwnerGrant\n delete Delete a appOwnerGrant\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isGrant: true, - actorId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppOwnerGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appOwnerGrant.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isGrant: true, - actorId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppOwnerGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appOwnerGrant.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.appOwnerGrant - .findOne({ - id: answers.id as string, - select: { - id: true, - isGrant: true, - actorId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppOwnerGrantInput['appOwnerGrant']; - const client = getClient(); - const result = await client.appOwnerGrant - .create({ - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppOwnerGrantPatch; - const client = getClient(); - const result = await client.appOwnerGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - grantorId: 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.appOwnerGrant - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-permission-default.ts b/sdk/constructive-cli/src/public/cli/commands/app-permission-default.ts deleted file mode 100644 index 3a03ac6c82..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-permission-default.ts +++ /dev/null @@ -1,261 +0,0 @@ -/** - * CLI commands for AppPermissionDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppPermissionDefaultInput, - AppPermissionDefaultPatch, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - permissions: 'string', -}; -const usage = - '\napp-permission-default \n\nCommands:\n list List appPermissionDefault records\n find-first Find first matching appPermissionDefault record\n get Get a appPermissionDefault by ID\n create Create a new appPermissionDefault\n update Update an existing appPermissionDefault\n delete Delete a appPermissionDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - > & { - select: AppPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - > & { - select: AppPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermissionDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.appPermissionDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - permissions: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppPermissionDefaultInput['appPermissionDefault']; - const client = getClient(); - const result = await client.appPermissionDefault - .create({ - data: { - permissions: cleanedData.permissions, - }, - select: { - id: true, - permissions: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionDefaultPatch; - const client = getClient(); - const result = await client.appPermissionDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - permissions: cleanedData.permissions, - }, - select: { - id: true, - permissions: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.appPermissionDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-permission.ts b/sdk/constructive-cli/src/public/cli/commands/app-permission.ts deleted file mode 100644 index 1eed933306..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-permission.ts +++ /dev/null @@ -1,319 +0,0 @@ -/** - * CLI commands for AppPermission - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAppPermissionInput, - AppPermissionPatch, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - bitnum: 'int', - bitstr: 'string', - description: 'string', -}; -const usage = - '\napp-permission \n\nCommands:\n list List appPermission records\n find-first Find first matching appPermission record\n get Get a appPermission by ID\n create Create a new appPermission\n update Update an existing appPermission\n delete Delete a appPermission\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AppPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermission.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AppPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.appPermission.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.appPermission - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppPermissionInput['appPermission']; - const client = getClient(); - const result = await client.appPermission - .create({ - data: { - name: cleanedData.name, - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - }, - select: { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionPatch; - const client = getClient(); - const result = await client.appPermission - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - }, - select: { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.appPermission - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-by-mask.ts b/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-by-mask.ts deleted file mode 100644 index b467acc7f4..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-by-mask.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * CLI command for query appPermissionsGetByMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { AppPermissionsGetByMaskVariables } from '../../orm/query'; -import type { AppPermissionConnectionSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-by-mask - Reads and enables pagination through a set of `AppPermission`.\n\nUsage: app-permissions-get-by-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'mask', - message: 'mask', - }, - { - type: 'text', - name: 'first', - message: 'Only read the first `n` values of the set.', - }, - { - type: 'text', - name: 'offset', - message: - 'Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.', - }, - { - type: 'text', - name: 'after', - message: 'Read all values in the set after (below) this cursor.', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .appPermissionsGetByMask( - answers as unknown as AppPermissionsGetByMaskVariables, - { - select: selectFields, - } as unknown as { - select: AppPermissionConnectionSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetByMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-mask-by-names.ts b/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-mask-by-names.ts deleted file mode 100644 index 2b9494ddda..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-mask-by-names.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query appPermissionsGetMaskByNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-mask-by-names - appPermissionsGetMaskByNames\n\nUsage: app-permissions-get-mask-by-names [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'names', - message: 'names', - }, - ]); - const client = getClient(); - const result = await client.query - .appPermissionsGetMaskByNames(answers as unknown as AppPermissionsGetMaskByNamesVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetMaskByNames'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-mask.ts b/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-mask.ts deleted file mode 100644 index f40cf36074..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query appPermissionsGetMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { AppPermissionsGetMaskVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-mask - appPermissionsGetMask\n\nUsage: app-permissions-get-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'ids', - message: 'ids', - }, - ]); - const client = getClient(); - const result = await client.query - .appPermissionsGetMask(answers as unknown as AppPermissionsGetMaskVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-padded-mask.ts b/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-padded-mask.ts deleted file mode 100644 index afa2fbc4c7..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/app-permissions-get-padded-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query appPermissionsGetPaddedMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'app-permissions-get-padded-mask - appPermissionsGetPaddedMask\n\nUsage: app-permissions-get-padded-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'mask', - message: 'mask', - }, - ]); - const client = getClient(); - const result = await client.query - .appPermissionsGetPaddedMask(answers as unknown as AppPermissionsGetPaddedMaskVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appPermissionsGetPaddedMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/audit-log-auth.ts b/sdk/constructive-cli/src/public/cli/commands/audit-log-auth.ts deleted file mode 100644 index cfe2d760ed..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/audit-log-auth.ts +++ /dev/null @@ -1,365 +0,0 @@ -/** - * CLI commands for AuditLogAuth - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAuditLogAuthInput, - AuditLogAuthPatch, - AuditLogAuthSelect, - AuditLogAuthFilter, - AuditLogAuthOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - createdAt: 'string', - id: 'uuid', - event: 'string', - actorId: 'uuid', - origin: 'string', - userAgent: 'string', - ipAddress: 'string', - success: 'boolean', -}; -const usage = - '\naudit-log-auth \n\nCommands:\n list List auditLogAuth records\n find-first Find first matching auditLogAuth record\n get Get a auditLogAuth by ID\n create Create a new auditLogAuth\n update Update an existing auditLogAuth\n delete Delete a auditLogAuth\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - event: true, - actorId: true, - origin: true, - userAgent: true, - ipAddress: true, - success: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AuditLogAuthSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.auditLogAuth.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - event: true, - actorId: true, - origin: true, - userAgent: true, - ipAddress: true, - success: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AuditLogAuthSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.auditLogAuth.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.auditLogAuth - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - id: true, - event: true, - actorId: true, - origin: true, - userAgent: true, - ipAddress: true, - success: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'event', - message: 'event', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'origin', - message: 'origin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'userAgent', - message: 'userAgent', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'ipAddress', - message: 'ipAddress', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'success', - message: 'success', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAuditLogAuthInput['auditLogAuth']; - const client = getClient(); - const result = await client.auditLogAuth - .create({ - data: { - event: cleanedData.event, - actorId: cleanedData.actorId, - origin: cleanedData.origin, - userAgent: cleanedData.userAgent, - ipAddress: cleanedData.ipAddress, - success: cleanedData.success, - }, - select: { - createdAt: true, - id: true, - event: true, - actorId: true, - origin: true, - userAgent: true, - ipAddress: true, - success: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'event', - message: 'event', - required: false, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'origin', - message: 'origin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'userAgent', - message: 'userAgent', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'ipAddress', - message: 'ipAddress', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'success', - message: 'success', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AuditLogAuthPatch; - const client = getClient(); - const result = await client.auditLogAuth - .update({ - where: { - id: answers.id as string, - }, - data: { - event: cleanedData.event, - actorId: cleanedData.actorId, - origin: cleanedData.origin, - userAgent: cleanedData.userAgent, - ipAddress: cleanedData.ipAddress, - success: cleanedData.success, - }, - select: { - createdAt: true, - id: true, - event: true, - actorId: true, - origin: true, - userAgent: true, - ipAddress: true, - success: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.auditLogAuth - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/check-password.ts b/sdk/constructive-cli/src/public/cli/commands/check-password.ts deleted file mode 100644 index 8411d3605c..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/check-password.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation checkPassword - * @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 { CheckPasswordVariables } from '../../orm/mutation'; -import type { CheckPasswordPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('check-password - checkPassword\n\nUsage: check-password [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 - .checkPassword( - parsedAnswers as unknown as CheckPasswordVariables, - { - select: selectFields, - } as unknown as { - select: CheckPasswordPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: checkPassword'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/confirm-delete-account.ts b/sdk/constructive-cli/src/public/cli/commands/confirm-delete-account.ts deleted file mode 100644 index 7b01478d4e..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/confirm-delete-account.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation confirmDeleteAccount - * @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 { ConfirmDeleteAccountVariables } from '../../orm/mutation'; -import type { ConfirmDeleteAccountPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'confirm-delete-account - confirmDeleteAccount\n\nUsage: confirm-delete-account [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 - .confirmDeleteAccount( - parsedAnswers as unknown as ConfirmDeleteAccountVariables, - { - select: selectFields, - } as unknown as { - select: ConfirmDeleteAccountPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: confirmDeleteAccount'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/create-api-key.ts b/sdk/constructive-cli/src/public/cli/commands/create-api-key.ts deleted file mode 100644 index 672db1229b..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/create-api-key.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation createApiKey - * @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 { CreateApiKeyVariables } from '../../orm/mutation'; -import type { CreateApiKeyPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('create-api-key - createApiKey\n\nUsage: create-api-key [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 - .createApiKey( - parsedAnswers as unknown as CreateApiKeyVariables, - { - select: selectFields, - } as unknown as { - select: CreateApiKeyPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: createApiKey'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/crypto-address.ts b/sdk/constructive-cli/src/public/cli/commands/crypto-address.ts deleted file mode 100644 index 7702adb84c..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/crypto-address.ts +++ /dev/null @@ -1,351 +0,0 @@ -/** - * CLI commands for CryptoAddress - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateCryptoAddressInput, - CryptoAddressPatch, - CryptoAddressSelect, - CryptoAddressFilter, - CryptoAddressOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - ownerId: 'uuid', - address: 'string', - isVerified: 'boolean', - isPrimary: 'boolean', - name: 'string', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\ncrypto-address \n\nCommands:\n list List cryptoAddress records\n find-first Find first matching cryptoAddress record\n get Get a cryptoAddress by ID\n create Create a new cryptoAddress\n update Update an existing cryptoAddress\n delete Delete a cryptoAddress\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - ownerId: true, - address: true, - isVerified: true, - isPrimary: true, - name: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: CryptoAddressSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.cryptoAddress.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - ownerId: true, - address: true, - isVerified: true, - isPrimary: true, - name: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: CryptoAddressSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.cryptoAddress.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.cryptoAddress - .findOne({ - id: answers.id as string, - select: { - id: true, - ownerId: true, - address: true, - isVerified: true, - isPrimary: true, - name: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'address', - message: 'address', - required: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPrimary', - message: 'isPrimary', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateCryptoAddressInput['cryptoAddress']; - const client = getClient(); - const result = await client.cryptoAddress - .create({ - data: { - ownerId: cleanedData.ownerId, - address: cleanedData.address, - isVerified: cleanedData.isVerified, - isPrimary: cleanedData.isPrimary, - name: cleanedData.name, - }, - select: { - id: true, - ownerId: true, - address: true, - isVerified: true, - isPrimary: true, - name: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'address', - message: 'address', - required: false, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPrimary', - message: 'isPrimary', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CryptoAddressPatch; - const client = getClient(); - const result = await client.cryptoAddress - .update({ - where: { - id: answers.id as string, - }, - data: { - ownerId: cleanedData.ownerId, - address: cleanedData.address, - isVerified: cleanedData.isVerified, - isPrimary: cleanedData.isPrimary, - name: cleanedData.name, - }, - select: { - id: true, - ownerId: true, - address: true, - isVerified: true, - isPrimary: true, - name: 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.cryptoAddress - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/current-ip-address.ts b/sdk/constructive-cli/src/public/cli/commands/current-ip-address.ts deleted file mode 100644 index e2dd3037d9..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/current-ip-address.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * CLI command for query currentIpAddress - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('current-ip-address - currentIpAddress\n\nUsage: current-ip-address [OPTIONS]\n'); - process.exit(0); - } - const client = getClient(); - const result = await client.query.currentIpAddress().execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: currentIpAddress'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/current-user-agent.ts b/sdk/constructive-cli/src/public/cli/commands/current-user-agent.ts deleted file mode 100644 index 9191321fbd..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/current-user-agent.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * CLI command for query currentUserAgent - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('current-user-agent - currentUserAgent\n\nUsage: current-user-agent [OPTIONS]\n'); - process.exit(0); - } - const client = getClient(); - const result = await client.query.currentUserAgent().execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: currentUserAgent'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/current-user-id.ts b/sdk/constructive-cli/src/public/cli/commands/current-user-id.ts deleted file mode 100644 index 0ade5d19e9..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/current-user-id.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * CLI command for query currentUserId - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('current-user-id - currentUserId\n\nUsage: current-user-id [OPTIONS]\n'); - process.exit(0); - } - const client = getClient(); - const result = await client.query.currentUserId().execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: currentUserId'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/current-user.ts b/sdk/constructive-cli/src/public/cli/commands/current-user.ts deleted file mode 100644 index 14c69246b0..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/current-user.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * CLI command for query currentUser - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { UserSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('current-user - currentUser\n\nUsage: current-user [OPTIONS]\n'); - process.exit(0); - } - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .currentUser({ - select: selectFields, - } as unknown as { - select: UserSelect; - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: currentUser'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/disconnect-account.ts b/sdk/constructive-cli/src/public/cli/commands/disconnect-account.ts deleted file mode 100644 index cf78a9609c..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/disconnect-account.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation disconnectAccount - * @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 { DisconnectAccountVariables } from '../../orm/mutation'; -import type { DisconnectAccountPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'disconnect-account - disconnectAccount\n\nUsage: disconnect-account [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 - .disconnectAccount( - parsedAnswers as unknown as DisconnectAccountVariables, - { - select: selectFields, - } as unknown as { - select: DisconnectAccountPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: disconnectAccount'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/email.ts b/sdk/constructive-cli/src/public/cli/commands/email.ts deleted file mode 100644 index fb0e10048b..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/email.ts +++ /dev/null @@ -1,348 +0,0 @@ -/** - * CLI commands for Email - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateEmailInput, - EmailPatch, - EmailSelect, - EmailFilter, - EmailOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - ownerId: 'uuid', - email: 'string', - isVerified: 'boolean', - isPrimary: 'boolean', - name: 'string', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\nemail \n\nCommands:\n list List email records\n find-first Find first matching email record\n get Get a email by ID\n create Create a new email\n update Update an existing email\n delete Delete a email\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - ownerId: true, - email: true, - isVerified: true, - isPrimary: true, - name: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: EmailSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.email.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - ownerId: true, - email: true, - isVerified: true, - isPrimary: true, - name: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: EmailSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.email.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.email - .findOne({ - id: answers.id as string, - select: { - id: true, - ownerId: true, - email: true, - isVerified: true, - isPrimary: true, - name: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'email', - message: 'email', - required: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPrimary', - message: 'isPrimary', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateEmailInput['email']; - const client = getClient(); - const result = await client.email - .create({ - data: { - ownerId: cleanedData.ownerId, - email: cleanedData.email, - isVerified: cleanedData.isVerified, - isPrimary: cleanedData.isPrimary, - name: cleanedData.name, - }, - select: { - id: true, - ownerId: true, - email: true, - isVerified: true, - isPrimary: true, - name: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'email', - message: 'email', - required: false, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPrimary', - message: 'isPrimary', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as EmailPatch; - const client = getClient(); - const result = await client.email - .update({ - where: { - id: answers.id as string, - }, - data: { - ownerId: cleanedData.ownerId, - email: cleanedData.email, - isVerified: cleanedData.isVerified, - isPrimary: cleanedData.isPrimary, - name: cleanedData.name, - }, - select: { - id: true, - ownerId: true, - email: true, - isVerified: true, - isPrimary: true, - name: 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.email - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/extend-token-expires.ts b/sdk/constructive-cli/src/public/cli/commands/extend-token-expires.ts deleted file mode 100644 index b6580b9df0..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/extend-token-expires.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation extendTokenExpires - * @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 { ExtendTokenExpiresVariables } from '../../orm/mutation'; -import type { ExtendTokenExpiresPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'extend-token-expires - extendTokenExpires\n\nUsage: extend-token-expires [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 - .extendTokenExpires( - parsedAnswers as unknown as ExtendTokenExpiresVariables, - { - select: selectFields, - } as unknown as { - select: ExtendTokenExpiresPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: extendTokenExpires'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/forgot-password.ts b/sdk/constructive-cli/src/public/cli/commands/forgot-password.ts deleted file mode 100644 index 2163c66d84..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/forgot-password.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation forgotPassword - * @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 { ForgotPasswordVariables } from '../../orm/mutation'; -import type { ForgotPasswordPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('forgot-password - forgotPassword\n\nUsage: forgot-password [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 - .forgotPassword( - parsedAnswers as unknown as ForgotPasswordVariables, - { - select: selectFields, - } as unknown as { - select: ForgotPasswordPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: forgotPassword'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/identity-provider.ts b/sdk/constructive-cli/src/public/cli/commands/identity-provider.ts deleted file mode 100644 index 01bb037dec..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/identity-provider.ts +++ /dev/null @@ -1,188 +0,0 @@ -/** - * CLI commands for IdentityProvider - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateIdentityProviderInput, - IdentityProviderPatch, - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - slug: 'string', - kind: 'string', - displayName: 'string', - enabled: 'boolean', - isBuiltIn: 'boolean', -}; -const usage = - '\nidentity-provider \n\nCommands:\n list List identityProvider records\n find-first Find first matching identityProvider record\n create Create a new identityProvider\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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 = { - slug: true, - kind: true, - displayName: true, - enabled: true, - isBuiltIn: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: IdentityProviderSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.identityProvider.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - slug: true, - kind: true, - displayName: true, - enabled: true, - isBuiltIn: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: IdentityProviderSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.identityProvider.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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: 'slug', - message: 'slug', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'displayName', - message: 'displayName', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'enabled', - message: 'enabled', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isBuiltIn', - message: 'isBuiltIn', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateIdentityProviderInput['identityProvider']; - const client = getClient(); - const result = await client.identityProvider - .create({ - data: { - slug: cleanedData.slug, - kind: cleanedData.kind, - displayName: cleanedData.displayName, - enabled: cleanedData.enabled, - isBuiltIn: cleanedData.isBuiltIn, - }, - select: { - slug: true, - kind: true, - displayName: true, - enabled: true, - isBuiltIn: true, - }, - }) - .execute(); - console.log(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/public/cli/commands/membership-type.ts b/sdk/constructive-cli/src/public/cli/commands/membership-type.ts deleted file mode 100644 index ab07b93cd3..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/membership-type.ts +++ /dev/null @@ -1,335 +0,0 @@ -/** - * CLI commands for MembershipType - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateMembershipTypeInput, - MembershipTypePatch, - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'int', - name: 'string', - description: 'string', - prefix: 'string', - parentMembershipType: 'int', - hasUsersTableEntry: 'boolean', -}; -const usage = - '\nmembership-type \n\nCommands:\n list List membershipType records\n find-first Find first matching membershipType record\n get Get a membershipType by ID\n create Create a new membershipType\n update Update an existing membershipType\n delete Delete a membershipType\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - description: true, - prefix: true, - parentMembershipType: true, - hasUsersTableEntry: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: MembershipTypeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.membershipType.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - description: true, - prefix: true, - parentMembershipType: true, - hasUsersTableEntry: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: MembershipTypeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.membershipType.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.membershipType - .findOne({ - id: answers.id as number, - select: { - id: true, - name: true, - description: true, - prefix: true, - parentMembershipType: true, - hasUsersTableEntry: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'description', - message: 'description', - required: true, - }, - { - type: 'text', - name: 'prefix', - message: 'prefix', - required: true, - }, - { - type: 'text', - name: 'parentMembershipType', - message: 'parentMembershipType', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'hasUsersTableEntry', - message: 'hasUsersTableEntry', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateMembershipTypeInput['membershipType']; - const client = getClient(); - const result = await client.membershipType - .create({ - data: { - name: cleanedData.name, - description: cleanedData.description, - prefix: cleanedData.prefix, - parentMembershipType: cleanedData.parentMembershipType, - hasUsersTableEntry: cleanedData.hasUsersTableEntry, - }, - select: { - id: true, - name: true, - description: true, - prefix: true, - parentMembershipType: true, - hasUsersTableEntry: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'description', - message: 'description', - required: false, - }, - { - type: 'text', - name: 'prefix', - message: 'prefix', - required: false, - }, - { - type: 'text', - name: 'parentMembershipType', - message: 'parentMembershipType', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'hasUsersTableEntry', - message: 'hasUsersTableEntry', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as MembershipTypePatch; - const client = getClient(); - const result = await client.membershipType - .update({ - where: { - id: answers.id as number, - }, - data: { - name: cleanedData.name, - description: cleanedData.description, - prefix: cleanedData.prefix, - parentMembershipType: cleanedData.parentMembershipType, - hasUsersTableEntry: cleanedData.hasUsersTableEntry, - }, - select: { - id: true, - name: true, - description: true, - prefix: true, - parentMembershipType: true, - hasUsersTableEntry: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.membershipType - .delete({ - where: { - id: answers.id as number, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-admin-grant.ts b/sdk/constructive-cli/src/public/cli/commands/org-admin-grant.ts deleted file mode 100644 index 8f04cd1b16..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-admin-grant.ts +++ /dev/null @@ -1,327 +0,0 @@ -/** - * CLI commands for OrgAdminGrant - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgAdminGrantInput, - OrgAdminGrantPatch, - OrgAdminGrantSelect, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - isGrant: 'boolean', - actorId: 'uuid', - entityId: 'uuid', - grantorId: 'uuid', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\norg-admin-grant \n\nCommands:\n list List orgAdminGrant records\n find-first Find first matching orgAdminGrant record\n get Get a orgAdminGrant by ID\n create Create a new orgAdminGrant\n update Update an existing orgAdminGrant\n delete Delete a orgAdminGrant\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isGrant: true, - actorId: true, - entityId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgAdminGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgAdminGrant.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isGrant: true, - actorId: true, - entityId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgAdminGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgAdminGrant.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgAdminGrant - .findOne({ - id: answers.id as string, - select: { - id: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgAdminGrantInput['orgAdminGrant']; - const client = getClient(); - const result = await client.orgAdminGrant - .create({ - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgAdminGrantPatch; - const client = getClient(); - const result = await client.orgAdminGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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.orgAdminGrant - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge-grant.ts b/sdk/constructive-cli/src/public/cli/commands/org-chart-edge-grant.ts deleted file mode 100644 index c55ac90750..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge-grant.ts +++ /dev/null @@ -1,387 +0,0 @@ -/** - * CLI commands for OrgChartEdgeGrant - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgChartEdgeGrantInput, - OrgChartEdgeGrantPatch, - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - entityId: 'uuid', - childId: 'uuid', - parentId: 'uuid', - grantorId: 'uuid', - isGrant: 'boolean', - positionTitle: 'string', - positionLevel: 'int', - createdAt: 'string', -}; -const usage = - '\norg-chart-edge-grant \n\nCommands:\n list List orgChartEdgeGrant records\n find-first Find first matching orgChartEdgeGrant record\n get Get a orgChartEdgeGrant by ID\n create Create a new orgChartEdgeGrant\n update Update an existing orgChartEdgeGrant\n delete Delete a orgChartEdgeGrant\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - entityId: true, - childId: true, - parentId: true, - grantorId: true, - isGrant: true, - positionTitle: true, - positionLevel: true, - createdAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgChartEdgeGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgChartEdgeGrant.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - entityId: true, - childId: true, - parentId: true, - grantorId: true, - isGrant: true, - positionTitle: true, - positionLevel: true, - createdAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgChartEdgeGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgChartEdgeGrant.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgChartEdgeGrant - .findOne({ - id: answers.id as string, - select: { - id: true, - entityId: true, - childId: true, - parentId: true, - grantorId: true, - isGrant: true, - positionTitle: true, - positionLevel: 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'childId', - message: 'childId', - required: true, - }, - { - type: 'text', - name: 'parentId', - message: 'parentId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionTitle', - message: 'positionTitle', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionLevel', - message: 'positionLevel', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']; - const client = getClient(); - const result = await client.orgChartEdgeGrant - .create({ - data: { - entityId: cleanedData.entityId, - childId: cleanedData.childId, - parentId: cleanedData.parentId, - grantorId: cleanedData.grantorId, - isGrant: cleanedData.isGrant, - positionTitle: cleanedData.positionTitle, - positionLevel: cleanedData.positionLevel, - }, - select: { - id: true, - entityId: true, - childId: true, - parentId: true, - grantorId: true, - isGrant: true, - positionTitle: true, - positionLevel: 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: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'childId', - message: 'childId', - required: false, - }, - { - type: 'text', - name: 'parentId', - message: 'parentId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionTitle', - message: 'positionTitle', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionLevel', - message: 'positionLevel', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgChartEdgeGrantPatch; - const client = getClient(); - const result = await client.orgChartEdgeGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - entityId: cleanedData.entityId, - childId: cleanedData.childId, - parentId: cleanedData.parentId, - grantorId: cleanedData.grantorId, - isGrant: cleanedData.isGrant, - positionTitle: cleanedData.positionTitle, - positionLevel: cleanedData.positionLevel, - }, - select: { - id: true, - entityId: true, - childId: true, - parentId: true, - grantorId: true, - isGrant: true, - positionTitle: true, - positionLevel: 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.orgChartEdgeGrant - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge.ts b/sdk/constructive-cli/src/public/cli/commands/org-chart-edge.ts deleted file mode 100644 index 8650e6152d..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge.ts +++ /dev/null @@ -1,349 +0,0 @@ -/** - * CLI commands for OrgChartEdge - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgChartEdgeInput, - OrgChartEdgePatch, - OrgChartEdgeSelect, - OrgChartEdgeFilter, - OrgChartEdgeOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - createdAt: 'string', - updatedAt: 'string', - entityId: 'uuid', - childId: 'uuid', - parentId: 'uuid', - positionTitle: 'string', - positionLevel: 'int', -}; -const usage = - '\norg-chart-edge \n\nCommands:\n list List orgChartEdge records\n find-first Find first matching orgChartEdge record\n get Get a orgChartEdge by ID\n create Create a new orgChartEdge\n update Update an existing orgChartEdge\n delete Delete a orgChartEdge\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - entityId: true, - childId: true, - parentId: true, - positionTitle: true, - positionLevel: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgChartEdgeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgChartEdge.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - entityId: true, - childId: true, - parentId: true, - positionTitle: true, - positionLevel: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgChartEdgeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgChartEdge.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgChartEdge - .findOne({ - id: answers.id as string, - select: { - id: true, - createdAt: true, - updatedAt: true, - entityId: true, - childId: true, - parentId: true, - positionTitle: true, - positionLevel: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'childId', - message: 'childId', - required: true, - }, - { - type: 'text', - name: 'parentId', - message: 'parentId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionTitle', - message: 'positionTitle', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionLevel', - message: 'positionLevel', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgChartEdgeInput['orgChartEdge']; - const client = getClient(); - const result = await client.orgChartEdge - .create({ - data: { - entityId: cleanedData.entityId, - childId: cleanedData.childId, - parentId: cleanedData.parentId, - positionTitle: cleanedData.positionTitle, - positionLevel: cleanedData.positionLevel, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - entityId: true, - childId: true, - parentId: true, - positionTitle: true, - positionLevel: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'childId', - message: 'childId', - required: false, - }, - { - type: 'text', - name: 'parentId', - message: 'parentId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionTitle', - message: 'positionTitle', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'positionLevel', - message: 'positionLevel', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgChartEdgePatch; - const client = getClient(); - const result = await client.orgChartEdge - .update({ - where: { - id: answers.id as string, - }, - data: { - entityId: cleanedData.entityId, - childId: cleanedData.childId, - parentId: cleanedData.parentId, - positionTitle: cleanedData.positionTitle, - positionLevel: cleanedData.positionLevel, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - entityId: true, - childId: true, - parentId: true, - positionTitle: true, - positionLevel: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgChartEdge - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-claimed-invite.ts b/sdk/constructive-cli/src/public/cli/commands/org-claimed-invite.ts deleted file mode 100644 index 6d08811389..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-claimed-invite.ts +++ /dev/null @@ -1,329 +0,0 @@ -/** - * CLI commands for OrgClaimedInvite - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgClaimedInviteInput, - OrgClaimedInvitePatch, - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - data: 'json', - senderId: 'uuid', - receiverId: 'uuid', - createdAt: 'string', - updatedAt: 'string', - entityId: 'uuid', -}; -const usage = - '\norg-claimed-invite \n\nCommands:\n list List orgClaimedInvite records\n find-first Find first matching orgClaimedInvite record\n get Get a orgClaimedInvite by ID\n create Create a new orgClaimedInvite\n update Update an existing orgClaimedInvite\n delete Delete a orgClaimedInvite\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - data: true, - senderId: true, - receiverId: true, - createdAt: true, - updatedAt: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgClaimedInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgClaimedInvite.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - data: true, - senderId: true, - receiverId: true, - createdAt: true, - updatedAt: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgClaimedInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgClaimedInvite.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgClaimedInvite - .findOne({ - id: answers.id as string, - select: { - id: true, - data: true, - senderId: true, - receiverId: true, - createdAt: true, - updatedAt: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'receiverId', - message: 'receiverId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgClaimedInviteInput['orgClaimedInvite']; - const client = getClient(); - const result = await client.orgClaimedInvite - .create({ - data: { - data: cleanedData.data, - senderId: cleanedData.senderId, - receiverId: cleanedData.receiverId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - data: true, - senderId: true, - receiverId: true, - createdAt: true, - updatedAt: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'receiverId', - message: 'receiverId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgClaimedInvitePatch; - const client = getClient(); - const result = await client.orgClaimedInvite - .update({ - where: { - id: answers.id as string, - }, - data: { - data: cleanedData.data, - senderId: cleanedData.senderId, - receiverId: cleanedData.receiverId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - data: true, - senderId: true, - receiverId: true, - createdAt: true, - updatedAt: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgClaimedInvite - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-get-managers-record.ts b/sdk/constructive-cli/src/public/cli/commands/org-get-managers-record.ts deleted file mode 100644 index 380f3aedc1..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-get-managers-record.ts +++ /dev/null @@ -1,158 +0,0 @@ -/** - * CLI commands for OrgGetManagersRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgGetManagersRecordInput, - OrgGetManagersRecordPatch, - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - userId: 'uuid', - depth: 'int', -}; -const usage = - '\norg-get-managers-record \n\nCommands:\n list List orgGetManagersRecord records\n find-first Find first matching orgGetManagersRecord record\n create Create a new orgGetManagersRecord\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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 = { - userId: true, - depth: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - > & { - select: OrgGetManagersRecordSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgGetManagersRecord.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - userId: true, - depth: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - > & { - select: OrgGetManagersRecordSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgGetManagersRecord.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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: 'userId', - message: 'userId', - required: true, - }, - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgGetManagersRecordInput['orgGetManagersRecord']; - const client = getClient(); - const result = await client.orgGetManagersRecord - .create({ - data: { - userId: cleanedData.userId, - depth: cleanedData.depth, - }, - select: { - userId: true, - depth: true, - }, - }) - .execute(); - console.log(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/public/cli/commands/org-get-subordinates-record.ts b/sdk/constructive-cli/src/public/cli/commands/org-get-subordinates-record.ts deleted file mode 100644 index 0fe97c399e..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-get-subordinates-record.ts +++ /dev/null @@ -1,158 +0,0 @@ -/** - * CLI commands for OrgGetSubordinatesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgGetSubordinatesRecordInput, - OrgGetSubordinatesRecordPatch, - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - userId: 'uuid', - depth: 'int', -}; -const usage = - '\norg-get-subordinates-record \n\nCommands:\n list List orgGetSubordinatesRecord records\n find-first Find first matching orgGetSubordinatesRecord record\n create Create a new orgGetSubordinatesRecord\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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 = { - userId: true, - depth: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - > & { - select: OrgGetSubordinatesRecordSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgGetSubordinatesRecord.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - userId: true, - depth: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - > & { - select: OrgGetSubordinatesRecordSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgGetSubordinatesRecord.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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: 'userId', - message: 'userId', - required: true, - }, - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']; - const client = getClient(); - const result = await client.orgGetSubordinatesRecord - .create({ - data: { - userId: cleanedData.userId, - depth: cleanedData.depth, - }, - select: { - userId: true, - depth: true, - }, - }) - .execute(); - console.log(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/public/cli/commands/org-grant.ts b/sdk/constructive-cli/src/public/cli/commands/org-grant.ts deleted file mode 100644 index 2c0b87d49f..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-grant.ts +++ /dev/null @@ -1,346 +0,0 @@ -/** - * CLI commands for OrgGrant - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgGrantInput, - OrgGrantPatch, - OrgGrantSelect, - OrgGrantFilter, - OrgGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - permissions: 'string', - isGrant: 'boolean', - actorId: 'uuid', - entityId: 'uuid', - grantorId: 'uuid', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\norg-grant \n\nCommands:\n list List orgGrant records\n find-first Find first matching orgGrant record\n get Get a orgGrant by ID\n create Create a new orgGrant\n update Update an existing orgGrant\n delete Delete a orgGrant\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgGrant.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgGrant.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgGrant - .findOne({ - id: answers.id as string, - select: { - id: true, - permissions: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateOrgGrantInput['orgGrant']; - const client = getClient(); - const result = await client.orgGrant - .create({ - data: { - permissions: cleanedData.permissions, - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - permissions: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgGrantPatch; - const client = getClient(); - const result = await client.orgGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - permissions: cleanedData.permissions, - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - permissions: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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.orgGrant - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-invite.ts b/sdk/constructive-cli/src/public/cli/commands/org-invite.ts deleted file mode 100644 index 5c124a8802..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-invite.ts +++ /dev/null @@ -1,524 +0,0 @@ -/** - * CLI commands for OrgInvite - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgInviteInput, - OrgInvitePatch, - OrgInviteSelect, - OrgInviteFilter, - OrgInviteOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - email: 'string', - senderId: 'uuid', - receiverId: 'uuid', - inviteToken: 'string', - inviteValid: 'boolean', - inviteLimit: 'int', - inviteCount: 'int', - multiple: 'boolean', - data: 'json', - profileId: 'uuid', - isReadOnly: 'boolean', - expiresAt: 'string', - createdAt: 'string', - updatedAt: 'string', - entityId: 'uuid', -}; -const usage = - '\norg-invite \n\nCommands:\n list List orgInvite records\n find-first Find first matching orgInvite record\n get Get a orgInvite by ID\n create Create a new orgInvite\n update Update an existing orgInvite\n delete Delete a orgInvite\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - email: true, - senderId: true, - receiverId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - isReadOnly: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgInvite.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - email: true, - senderId: true, - receiverId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - isReadOnly: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgInviteSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgInvite.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgInvite - .findOne({ - id: answers.id as string, - select: { - id: true, - email: true, - senderId: true, - receiverId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - isReadOnly: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'email', - message: 'email', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'receiverId', - message: 'receiverId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteToken', - message: 'inviteToken', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'inviteValid', - message: 'inviteValid', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteLimit', - message: 'inviteLimit', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteCount', - message: 'inviteCount', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'multiple', - message: 'multiple', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateOrgInviteInput['orgInvite']; - const client = getClient(); - const result = await client.orgInvite - .create({ - data: { - email: cleanedData.email, - senderId: cleanedData.senderId, - receiverId: cleanedData.receiverId, - inviteToken: cleanedData.inviteToken, - inviteValid: cleanedData.inviteValid, - inviteLimit: cleanedData.inviteLimit, - inviteCount: cleanedData.inviteCount, - multiple: cleanedData.multiple, - data: cleanedData.data, - profileId: cleanedData.profileId, - isReadOnly: cleanedData.isReadOnly, - expiresAt: cleanedData.expiresAt, - entityId: cleanedData.entityId, - }, - select: { - id: true, - email: true, - senderId: true, - receiverId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - isReadOnly: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'email', - message: 'email', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'receiverId', - message: 'receiverId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteToken', - message: 'inviteToken', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'inviteValid', - message: 'inviteValid', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteLimit', - message: 'inviteLimit', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteCount', - message: 'inviteCount', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'multiple', - message: 'multiple', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'data', - message: 'data', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgInvitePatch; - const client = getClient(); - const result = await client.orgInvite - .update({ - where: { - id: answers.id as string, - }, - data: { - email: cleanedData.email, - senderId: cleanedData.senderId, - receiverId: cleanedData.receiverId, - inviteToken: cleanedData.inviteToken, - inviteValid: cleanedData.inviteValid, - inviteLimit: cleanedData.inviteLimit, - inviteCount: cleanedData.inviteCount, - multiple: cleanedData.multiple, - data: cleanedData.data, - profileId: cleanedData.profileId, - isReadOnly: cleanedData.isReadOnly, - expiresAt: cleanedData.expiresAt, - entityId: cleanedData.entityId, - }, - select: { - id: true, - email: true, - senderId: true, - receiverId: true, - inviteToken: true, - inviteValid: true, - inviteLimit: true, - inviteCount: true, - multiple: true, - data: true, - profileId: true, - isReadOnly: true, - expiresAt: true, - createdAt: true, - updatedAt: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgInvite - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-is-manager-of.ts b/sdk/constructive-cli/src/public/cli/commands/org-is-manager-of.ts deleted file mode 100644 index 83684fede4..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-is-manager-of.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for query orgIsManagerOf - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { OrgIsManagerOfVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('org-is-manager-of - orgIsManagerOf\n\nUsage: org-is-manager-of [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'pEntityId', - message: 'pEntityId', - }, - { - type: 'text', - name: 'pManagerId', - message: 'pManagerId', - }, - { - type: 'text', - name: 'pUserId', - message: 'pUserId', - }, - { - type: 'text', - name: 'pMaxDepth', - message: 'pMaxDepth (number)', - }, - ]); - const client = getClient(); - const result = await client.query - .orgIsManagerOf(answers as unknown as OrgIsManagerOfVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgIsManagerOf'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-aggregate.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-aggregate.ts deleted file mode 100644 index 111ba1db72..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-aggregate.ts +++ /dev/null @@ -1,515 +0,0 @@ -/** - * CLI commands for OrgLimitAggregate - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitAggregateInput, - OrgLimitAggregatePatch, - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - entityId: 'uuid', - num: 'int', - max: 'int', - softMax: 'int', - windowStart: 'string', - windowDuration: 'string', - planMax: 'int', - purchasedCredits: 'int', - periodCredits: 'int', - reserved: 'int', - organizationId: 'uuid', - entityType: 'string', -}; -const usage = - '\norg-limit-aggregate \n\nCommands:\n list List orgLimitAggregate records\n find-first Find first matching orgLimitAggregate record\n get Get a orgLimitAggregate by ID\n create Create a new orgLimitAggregate\n update Update an existing orgLimitAggregate\n delete Delete a orgLimitAggregate\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - entityId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - reserved: true, - organizationId: true, - entityType: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitAggregateSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitAggregate.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - entityId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - reserved: true, - organizationId: true, - entityType: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitAggregateSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitAggregate.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitAggregate - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - entityId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - reserved: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'num', - message: 'num', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowStart', - message: 'windowStart', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowDuration', - message: 'windowDuration', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'planMax', - message: 'planMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'purchasedCredits', - message: 'purchasedCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'periodCredits', - message: 'periodCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reserved', - message: 'reserved', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitAggregateInput['orgLimitAggregate']; - const client = getClient(); - const result = await client.orgLimitAggregate - .create({ - data: { - name: cleanedData.name, - entityId: cleanedData.entityId, - num: cleanedData.num, - max: cleanedData.max, - softMax: cleanedData.softMax, - windowStart: cleanedData.windowStart, - windowDuration: cleanedData.windowDuration, - planMax: cleanedData.planMax, - purchasedCredits: cleanedData.purchasedCredits, - periodCredits: cleanedData.periodCredits, - reserved: cleanedData.reserved, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - }, - select: { - id: true, - name: true, - entityId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - reserved: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'num', - message: 'num', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowStart', - message: 'windowStart', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowDuration', - message: 'windowDuration', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'planMax', - message: 'planMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'purchasedCredits', - message: 'purchasedCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'periodCredits', - message: 'periodCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reserved', - message: 'reserved', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitAggregatePatch; - const client = getClient(); - const result = await client.orgLimitAggregate - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - entityId: cleanedData.entityId, - num: cleanedData.num, - max: cleanedData.max, - softMax: cleanedData.softMax, - windowStart: cleanedData.windowStart, - windowDuration: cleanedData.windowDuration, - planMax: cleanedData.planMax, - purchasedCredits: cleanedData.purchasedCredits, - periodCredits: cleanedData.periodCredits, - reserved: cleanedData.reserved, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - }, - select: { - id: true, - name: true, - entityId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - reserved: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgLimitAggregate - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-cap.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-cap.ts deleted file mode 100644 index 5392723bac..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-cap.ts +++ /dev/null @@ -1,293 +0,0 @@ -/** - * CLI commands for OrgLimitCap - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitCapInput, - OrgLimitCapPatch, - OrgLimitCapSelect, - OrgLimitCapFilter, - OrgLimitCapOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - entityId: 'uuid', - max: 'int', -}; -const usage = - '\norg-limit-cap \n\nCommands:\n list List orgLimitCap records\n find-first Find first matching orgLimitCap record\n get Get a orgLimitCap by ID\n create Create a new orgLimitCap\n update Update an existing orgLimitCap\n delete Delete a orgLimitCap\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - entityId: true, - max: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitCapSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCap.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - entityId: true, - max: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitCapSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCap.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitCap - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - entityId: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitCapInput['orgLimitCap']; - const client = getClient(); - const result = await client.orgLimitCap - .create({ - data: { - name: cleanedData.name, - entityId: cleanedData.entityId, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - entityId: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitCapPatch; - const client = getClient(); - const result = await client.orgLimitCap - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - entityId: cleanedData.entityId, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - entityId: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgLimitCap - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-caps-default.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-caps-default.ts deleted file mode 100644 index c6f18c5203..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-caps-default.ts +++ /dev/null @@ -1,281 +0,0 @@ -/** - * CLI commands for OrgLimitCapsDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitCapsDefaultInput, - OrgLimitCapsDefaultPatch, - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - max: 'int', -}; -const usage = - '\norg-limit-caps-default \n\nCommands:\n list List orgLimitCapsDefault records\n find-first Find first matching orgLimitCapsDefault record\n get Get a orgLimitCapsDefault by ID\n create Create a new orgLimitCapsDefault\n update Update an existing orgLimitCapsDefault\n delete Delete a orgLimitCapsDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - max: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - > & { - select: OrgLimitCapsDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCapsDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - max: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - > & { - select: OrgLimitCapsDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCapsDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitCapsDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitCapsDefaultInput['orgLimitCapsDefault']; - const client = getClient(); - const result = await client.orgLimitCapsDefault - .create({ - data: { - name: cleanedData.name, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitCapsDefaultPatch; - const client = getClient(); - const result = await client.orgLimitCapsDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - max: cleanedData.max, - }, - select: { - id: true, - name: true, - max: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgLimitCapsDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-credit.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-credit.ts deleted file mode 100644 index 62d3fe2e44..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-credit.ts +++ /dev/null @@ -1,359 +0,0 @@ -/** - * CLI commands for OrgLimitCredit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitCreditInput, - OrgLimitCreditPatch, - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - defaultLimitId: 'uuid', - actorId: 'uuid', - entityId: 'uuid', - amount: 'int', - creditType: 'string', - reason: 'string', -}; -const usage = - '\norg-limit-credit \n\nCommands:\n list List orgLimitCredit records\n find-first Find first matching orgLimitCredit record\n get Get a orgLimitCredit by ID\n create Create a new orgLimitCredit\n update Update an existing orgLimitCredit\n delete Delete a orgLimitCredit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitCreditSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCredit.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitCreditSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitCredit.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitCredit - .findOne({ - id: answers.id as string, - select: { - id: true, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: true, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitCreditInput['orgLimitCredit']; - const client = getClient(); - const result = await client.orgLimitCredit - .create({ - data: { - defaultLimitId: cleanedData.defaultLimitId, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - reason: cleanedData.reason, - }, - select: { - id: true, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'defaultLimitId', - message: 'defaultLimitId', - required: false, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'amount', - message: 'amount', - required: false, - }, - { - type: 'text', - name: 'creditType', - message: 'creditType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitCreditPatch; - const client = getClient(); - const result = await client.orgLimitCredit - .update({ - where: { - id: answers.id as string, - }, - data: { - defaultLimitId: cleanedData.defaultLimitId, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - amount: cleanedData.amount, - creditType: cleanedData.creditType, - reason: cleanedData.reason, - }, - select: { - id: true, - defaultLimitId: true, - actorId: true, - entityId: true, - amount: true, - creditType: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.orgLimitCredit - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-default.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-default.ts deleted file mode 100644 index 65383bec0b..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-default.ts +++ /dev/null @@ -1,295 +0,0 @@ -/** - * CLI commands for OrgLimitDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitDefaultInput, - OrgLimitDefaultPatch, - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - max: 'int', - softMax: 'int', -}; -const usage = - '\norg-limit-default \n\nCommands:\n list List orgLimitDefault records\n find-first Find first matching orgLimitDefault record\n get Get a orgLimitDefault by ID\n create Create a new orgLimitDefault\n update Update an existing orgLimitDefault\n delete Delete a orgLimitDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - max: true, - softMax: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - max: true, - softMax: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - max: true, - softMax: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitDefaultInput['orgLimitDefault']; - const client = getClient(); - const result = await client.orgLimitDefault - .create({ - data: { - name: cleanedData.name, - max: cleanedData.max, - softMax: cleanedData.softMax, - }, - select: { - id: true, - name: true, - max: true, - softMax: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitDefaultPatch; - const client = getClient(); - const result = await client.orgLimitDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - max: cleanedData.max, - softMax: cleanedData.softMax, - }, - select: { - id: true, - name: true, - max: true, - softMax: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgLimitDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts deleted file mode 100644 index 134eda43f4..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts +++ /dev/null @@ -1,479 +0,0 @@ -/** - * CLI commands for OrgLimitEvent - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitEventInput, - OrgLimitEventPatch, - OrgLimitEventSelect, - OrgLimitEventFilter, - OrgLimitEventOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - createdAt: 'string', - id: 'uuid', - name: 'string', - actorId: 'uuid', - entityId: 'uuid', - organizationId: 'uuid', - entityType: 'string', - eventType: 'string', - delta: 'int', - numBefore: 'int', - numAfter: 'int', - maxAtEvent: 'int', - reason: 'string', -}; -const usage = - '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n get Get a orgLimitEvent by ID\n create Create a new orgLimitEvent\n update Update an existing orgLimitEvent\n delete Delete a orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitEventSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitEvent.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitEventSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitEvent.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitEvent - .findOne({ - id: answers.id as string, - select: { - createdAt: true, - id: true, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'eventType', - message: 'eventType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'delta', - message: 'delta', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numBefore', - message: 'numBefore', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numAfter', - message: 'numAfter', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'maxAtEvent', - message: 'maxAtEvent', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitEventInput['orgLimitEvent']; - const client = getClient(); - const result = await client.orgLimitEvent - .create({ - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - eventType: cleanedData.eventType, - delta: cleanedData.delta, - numBefore: cleanedData.numBefore, - numAfter: cleanedData.numAfter, - maxAtEvent: cleanedData.maxAtEvent, - reason: cleanedData.reason, - }, - select: { - createdAt: true, - id: true, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'eventType', - message: 'eventType', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'delta', - message: 'delta', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numBefore', - message: 'numBefore', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'numAfter', - message: 'numAfter', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'maxAtEvent', - message: 'maxAtEvent', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'reason', - message: 'reason', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitEventPatch; - const client = getClient(); - const result = await client.orgLimitEvent - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - eventType: cleanedData.eventType, - delta: cleanedData.delta, - numBefore: cleanedData.numBefore, - numAfter: cleanedData.numAfter, - maxAtEvent: cleanedData.maxAtEvent, - reason: cleanedData.reason, - }, - select: { - createdAt: true, - id: true, - name: true, - actorId: true, - entityId: true, - organizationId: true, - entityType: true, - eventType: true, - delta: true, - numBefore: true, - numAfter: true, - maxAtEvent: true, - reason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.orgLimitEvent - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-warning.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-warning.ts deleted file mode 100644 index fb172071e8..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-warning.ts +++ /dev/null @@ -1,333 +0,0 @@ -/** - * CLI commands for OrgLimitWarning - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitWarningInput, - OrgLimitWarningPatch, - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - warningType: 'string', - thresholdValue: 'int', - taskIdentifier: 'string', - entityId: 'uuid', -}; -const usage = - '\norg-limit-warning \n\nCommands:\n list List orgLimitWarning records\n find-first Find first matching orgLimitWarning record\n get Get a orgLimitWarning by ID\n create Create a new orgLimitWarning\n update Update an existing orgLimitWarning\n delete Delete a orgLimitWarning\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitWarningSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitWarning.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitWarningSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimitWarning.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimitWarning - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'warningType', - message: 'warningType', - required: true, - }, - { - type: 'text', - name: 'thresholdValue', - message: 'thresholdValue', - required: true, - }, - { - type: 'text', - name: 'taskIdentifier', - message: 'taskIdentifier', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgLimitWarningInput['orgLimitWarning']; - const client = getClient(); - const result = await client.orgLimitWarning - .create({ - data: { - name: cleanedData.name, - warningType: cleanedData.warningType, - thresholdValue: cleanedData.thresholdValue, - taskIdentifier: cleanedData.taskIdentifier, - entityId: cleanedData.entityId, - }, - select: { - id: true, - name: true, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'warningType', - message: 'warningType', - required: false, - }, - { - type: 'text', - name: 'thresholdValue', - message: 'thresholdValue', - required: false, - }, - { - type: 'text', - name: 'taskIdentifier', - message: 'taskIdentifier', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitWarningPatch; - const client = getClient(); - const result = await client.orgLimitWarning - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - warningType: cleanedData.warningType, - thresholdValue: cleanedData.thresholdValue, - taskIdentifier: cleanedData.taskIdentifier, - entityId: cleanedData.entityId, - }, - select: { - id: true, - name: true, - warningType: true, - thresholdValue: true, - taskIdentifier: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgLimitWarning - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit.ts deleted file mode 100644 index 1ee31a55ee..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit.ts +++ /dev/null @@ -1,510 +0,0 @@ -/** - * CLI commands for OrgLimit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgLimitInput, - OrgLimitPatch, - OrgLimitSelect, - OrgLimitFilter, - OrgLimitOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - actorId: 'uuid', - num: 'int', - max: 'int', - softMax: 'int', - windowStart: 'string', - windowDuration: 'string', - planMax: 'int', - purchasedCredits: 'int', - periodCredits: 'int', - entityId: 'uuid', - organizationId: 'uuid', - entityType: 'string', -}; -const usage = - '\norg-limit \n\nCommands:\n list List orgLimit records\n find-first Find first matching orgLimit record\n get Get a orgLimit by ID\n create Create a new orgLimit\n update Update an existing orgLimit\n delete Delete a orgLimit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - entityId: true, - organizationId: true, - entityType: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgLimitSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimit.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - entityId: true, - organizationId: true, - entityType: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgLimitSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgLimit.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgLimit - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - entityId: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'num', - message: 'num', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowStart', - message: 'windowStart', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowDuration', - message: 'windowDuration', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'planMax', - message: 'planMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'purchasedCredits', - message: 'purchasedCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'periodCredits', - message: 'periodCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateOrgLimitInput['orgLimit']; - const client = getClient(); - const result = await client.orgLimit - .create({ - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - num: cleanedData.num, - max: cleanedData.max, - softMax: cleanedData.softMax, - windowStart: cleanedData.windowStart, - windowDuration: cleanedData.windowDuration, - planMax: cleanedData.planMax, - purchasedCredits: cleanedData.purchasedCredits, - periodCredits: cleanedData.periodCredits, - entityId: cleanedData.entityId, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - }, - select: { - id: true, - name: true, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - entityId: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'num', - message: 'num', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'max', - message: 'max', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'softMax', - message: 'softMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowStart', - message: 'windowStart', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'windowDuration', - message: 'windowDuration', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'planMax', - message: 'planMax', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'purchasedCredits', - message: 'purchasedCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'periodCredits', - message: 'periodCredits', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'organizationId', - message: 'organizationId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityType', - message: 'entityType', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitPatch; - const client = getClient(); - const result = await client.orgLimit - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - actorId: cleanedData.actorId, - num: cleanedData.num, - max: cleanedData.max, - softMax: cleanedData.softMax, - windowStart: cleanedData.windowStart, - windowDuration: cleanedData.windowDuration, - planMax: cleanedData.planMax, - purchasedCredits: cleanedData.purchasedCredits, - periodCredits: cleanedData.periodCredits, - entityId: cleanedData.entityId, - organizationId: cleanedData.organizationId, - entityType: cleanedData.entityType, - }, - select: { - id: true, - name: true, - actorId: true, - num: true, - max: true, - softMax: true, - windowStart: true, - windowDuration: true, - planMax: true, - purchasedCredits: true, - periodCredits: true, - entityId: true, - organizationId: true, - entityType: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgLimit - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-member-profile.ts b/sdk/constructive-cli/src/public/cli/commands/org-member-profile.ts deleted file mode 100644 index 87d0c9ab01..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-member-profile.ts +++ /dev/null @@ -1,413 +0,0 @@ -/** - * CLI commands for OrgMemberProfile - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgMemberProfileInput, - OrgMemberProfilePatch, - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - createdAt: 'string', - updatedAt: 'string', - membershipId: 'uuid', - entityId: 'uuid', - actorId: 'uuid', - displayName: 'string', - email: 'string', - title: 'string', - bio: 'string', - profilePicture: 'string', -}; -const usage = - '\norg-member-profile \n\nCommands:\n list List orgMemberProfile records\n find-first Find first matching orgMemberProfile record\n get Get a orgMemberProfile by ID\n create Create a new orgMemberProfile\n update Update an existing orgMemberProfile\n delete Delete a orgMemberProfile\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - membershipId: true, - entityId: true, - actorId: true, - displayName: true, - email: true, - title: true, - bio: true, - profilePicture: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgMemberProfileSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMemberProfile.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - membershipId: true, - entityId: true, - actorId: true, - displayName: true, - email: true, - title: true, - bio: true, - profilePicture: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgMemberProfileSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMemberProfile.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgMemberProfile - .findOne({ - id: answers.id as string, - select: { - id: true, - createdAt: true, - updatedAt: true, - membershipId: true, - entityId: true, - actorId: true, - displayName: true, - email: true, - title: true, - bio: true, - profilePicture: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'membershipId', - message: 'membershipId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'displayName', - message: 'displayName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'email', - message: 'email', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'title', - message: 'title', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bio', - message: 'bio', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profilePicture', - message: 'profilePicture', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgMemberProfileInput['orgMemberProfile']; - const client = getClient(); - const result = await client.orgMemberProfile - .create({ - data: { - membershipId: cleanedData.membershipId, - entityId: cleanedData.entityId, - actorId: cleanedData.actorId, - displayName: cleanedData.displayName, - email: cleanedData.email, - title: cleanedData.title, - bio: cleanedData.bio, - profilePicture: cleanedData.profilePicture, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - membershipId: true, - entityId: true, - actorId: true, - displayName: true, - email: true, - title: true, - bio: true, - profilePicture: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'membershipId', - message: 'membershipId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'displayName', - message: 'displayName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'email', - message: 'email', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'title', - message: 'title', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bio', - message: 'bio', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profilePicture', - message: 'profilePicture', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgMemberProfilePatch; - const client = getClient(); - const result = await client.orgMemberProfile - .update({ - where: { - id: answers.id as string, - }, - data: { - membershipId: cleanedData.membershipId, - entityId: cleanedData.entityId, - actorId: cleanedData.actorId, - displayName: cleanedData.displayName, - email: cleanedData.email, - title: cleanedData.title, - bio: cleanedData.bio, - profilePicture: cleanedData.profilePicture, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - membershipId: true, - entityId: true, - actorId: true, - displayName: true, - email: true, - title: true, - bio: true, - profilePicture: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgMemberProfile - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-member.ts b/sdk/constructive-cli/src/public/cli/commands/org-member.ts deleted file mode 100644 index 5c4a95fb78..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-member.ts +++ /dev/null @@ -1,290 +0,0 @@ -/** - * CLI commands for OrgMember - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgMemberInput, - OrgMemberPatch, - OrgMemberSelect, - OrgMemberFilter, - OrgMemberOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - isAdmin: 'boolean', - actorId: 'uuid', - entityId: 'uuid', -}; -const usage = - '\norg-member \n\nCommands:\n list List orgMember records\n find-first Find first matching orgMember record\n get Get a orgMember by ID\n create Create a new orgMember\n update Update an existing orgMember\n delete Delete a orgMember\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isAdmin: true, - actorId: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgMemberSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMember.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isAdmin: true, - actorId: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgMemberSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMember.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgMember - .findOne({ - id: answers.id as string, - select: { - id: true, - isAdmin: true, - actorId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'boolean', - name: 'isAdmin', - message: 'isAdmin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateOrgMemberInput['orgMember']; - const client = getClient(); - const result = await client.orgMember - .create({ - data: { - isAdmin: cleanedData.isAdmin, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - isAdmin: true, - actorId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'boolean', - name: 'isAdmin', - message: 'isAdmin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgMemberPatch; - const client = getClient(); - const result = await client.orgMember - .update({ - where: { - id: answers.id as string, - }, - data: { - isAdmin: cleanedData.isAdmin, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - }, - select: { - id: true, - isAdmin: true, - actorId: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgMember - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-membership-default.ts b/sdk/constructive-cli/src/public/cli/commands/org-membership-default.ts deleted file mode 100644 index c2283c61d9..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-membership-default.ts +++ /dev/null @@ -1,337 +0,0 @@ -/** - * CLI commands for OrgMembershipDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgMembershipDefaultInput, - OrgMembershipDefaultPatch, - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy, -} 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', - isApproved: 'boolean', - entityId: 'uuid', -}; -const usage = - '\norg-membership-default \n\nCommands:\n list List orgMembershipDefault records\n find-first Find first matching orgMembershipDefault record\n get Get a orgMembershipDefault by ID\n create Create a new orgMembershipDefault\n update Update an existing orgMembershipDefault\n delete Delete a orgMembershipDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isApproved: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - > & { - select: OrgMembershipDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMembershipDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isApproved: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - > & { - select: OrgMembershipDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMembershipDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgMembershipDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgMembershipDefaultInput['orgMembershipDefault']; - const client = getClient(); - const result = await client.orgMembershipDefault - .create({ - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - entityId: cleanedData.entityId, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgMembershipDefaultPatch; - const client = getClient(); - const result = await client.orgMembershipDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - entityId: cleanedData.entityId, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgMembershipDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-membership-setting.ts b/sdk/constructive-cli/src/public/cli/commands/org-membership-setting.ts deleted file mode 100644 index ec4100c9cd..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-membership-setting.ts +++ /dev/null @@ -1,491 +0,0 @@ -/** - * CLI commands for OrgMembershipSetting - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgMembershipSettingInput, - OrgMembershipSettingPatch, - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy, -} 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', - entityId: 'uuid', - deleteMemberCascadeChildren: 'boolean', - createChildCascadeOwners: 'boolean', - createChildCascadeAdmins: 'boolean', - createChildCascadeMembers: 'boolean', - allowExternalMembers: 'boolean', - inviteProfileAssignmentMode: 'string', - populateMemberEmail: 'boolean', - limitAllocationMode: 'string', -}; -const usage = - '\norg-membership-setting \n\nCommands:\n list List orgMembershipSetting records\n find-first Find first matching orgMembershipSetting record\n get Get a orgMembershipSetting by ID\n create Create a new orgMembershipSetting\n update Update an existing orgMembershipSetting\n delete Delete a orgMembershipSetting\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - entityId: true, - deleteMemberCascadeChildren: true, - createChildCascadeOwners: true, - createChildCascadeAdmins: true, - createChildCascadeMembers: true, - allowExternalMembers: true, - inviteProfileAssignmentMode: true, - populateMemberEmail: true, - limitAllocationMode: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - > & { - select: OrgMembershipSettingSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMembershipSetting.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - entityId: true, - deleteMemberCascadeChildren: true, - createChildCascadeOwners: true, - createChildCascadeAdmins: true, - createChildCascadeMembers: true, - allowExternalMembers: true, - inviteProfileAssignmentMode: true, - populateMemberEmail: true, - limitAllocationMode: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - > & { - select: OrgMembershipSettingSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMembershipSetting.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgMembershipSetting - .findOne({ - id: answers.id as string, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - entityId: true, - deleteMemberCascadeChildren: true, - createChildCascadeOwners: true, - createChildCascadeAdmins: true, - createChildCascadeMembers: true, - allowExternalMembers: true, - inviteProfileAssignmentMode: true, - populateMemberEmail: true, - limitAllocationMode: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'boolean', - name: 'deleteMemberCascadeChildren', - message: 'deleteMemberCascadeChildren', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'createChildCascadeOwners', - message: 'createChildCascadeOwners', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'createChildCascadeAdmins', - message: 'createChildCascadeAdmins', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'createChildCascadeMembers', - message: 'createChildCascadeMembers', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'allowExternalMembers', - message: 'allowExternalMembers', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteProfileAssignmentMode', - message: 'inviteProfileAssignmentMode', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'populateMemberEmail', - message: 'populateMemberEmail', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'limitAllocationMode', - message: 'limitAllocationMode', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgMembershipSettingInput['orgMembershipSetting']; - const client = getClient(); - const result = await client.orgMembershipSetting - .create({ - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - entityId: cleanedData.entityId, - deleteMemberCascadeChildren: cleanedData.deleteMemberCascadeChildren, - createChildCascadeOwners: cleanedData.createChildCascadeOwners, - createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, - createChildCascadeMembers: cleanedData.createChildCascadeMembers, - allowExternalMembers: cleanedData.allowExternalMembers, - inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, - populateMemberEmail: cleanedData.populateMemberEmail, - limitAllocationMode: cleanedData.limitAllocationMode, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - entityId: true, - deleteMemberCascadeChildren: true, - createChildCascadeOwners: true, - createChildCascadeAdmins: true, - createChildCascadeMembers: true, - allowExternalMembers: true, - inviteProfileAssignmentMode: true, - populateMemberEmail: true, - limitAllocationMode: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'boolean', - name: 'deleteMemberCascadeChildren', - message: 'deleteMemberCascadeChildren', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'createChildCascadeOwners', - message: 'createChildCascadeOwners', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'createChildCascadeAdmins', - message: 'createChildCascadeAdmins', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'createChildCascadeMembers', - message: 'createChildCascadeMembers', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'allowExternalMembers', - message: 'allowExternalMembers', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'inviteProfileAssignmentMode', - message: 'inviteProfileAssignmentMode', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'populateMemberEmail', - message: 'populateMemberEmail', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'limitAllocationMode', - message: 'limitAllocationMode', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgMembershipSettingPatch; - const client = getClient(); - const result = await client.orgMembershipSetting - .update({ - where: { - id: answers.id as string, - }, - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - entityId: cleanedData.entityId, - deleteMemberCascadeChildren: cleanedData.deleteMemberCascadeChildren, - createChildCascadeOwners: cleanedData.createChildCascadeOwners, - createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, - createChildCascadeMembers: cleanedData.createChildCascadeMembers, - allowExternalMembers: cleanedData.allowExternalMembers, - inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, - populateMemberEmail: cleanedData.populateMemberEmail, - limitAllocationMode: cleanedData.limitAllocationMode, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - entityId: true, - deleteMemberCascadeChildren: true, - createChildCascadeOwners: true, - createChildCascadeAdmins: true, - createChildCascadeMembers: true, - allowExternalMembers: true, - inviteProfileAssignmentMode: true, - populateMemberEmail: true, - limitAllocationMode: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgMembershipSetting - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-membership.ts b/sdk/constructive-cli/src/public/cli/commands/org-membership.ts deleted file mode 100644 index 9ff6c3724a..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-membership.ts +++ /dev/null @@ -1,569 +0,0 @@ -/** - * CLI commands for OrgMembership - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgMembershipInput, - OrgMembershipPatch, - OrgMembershipSelect, - OrgMembershipFilter, - OrgMembershipOrderBy, -} 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', - isApproved: 'boolean', - isBanned: 'boolean', - isDisabled: 'boolean', - isActive: 'boolean', - isExternal: 'boolean', - isOwner: 'boolean', - isAdmin: 'boolean', - permissions: 'string', - granted: 'string', - actorId: 'uuid', - entityId: 'uuid', - isReadOnly: 'boolean', - profileId: 'uuid', -}; -const usage = - '\norg-membership \n\nCommands:\n list List orgMembership records\n find-first Find first matching orgMembership record\n get Get a orgMembership by ID\n create Create a new orgMembership\n update Update an existing orgMembership\n delete Delete a orgMembership\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isApproved: true, - isBanned: true, - isDisabled: true, - isActive: true, - isExternal: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - entityId: true, - isReadOnly: true, - profileId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgMembershipSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMembership.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isApproved: true, - isBanned: true, - isDisabled: true, - isActive: true, - isExternal: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - entityId: true, - isReadOnly: true, - profileId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgMembershipSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgMembership.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgMembership - .findOne({ - id: answers.id as string, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isBanned: true, - isDisabled: true, - isActive: true, - isExternal: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - entityId: true, - isReadOnly: true, - profileId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isBanned', - message: 'isBanned', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isDisabled', - message: 'isDisabled', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isExternal', - message: 'isExternal', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isOwner', - message: 'isOwner', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isAdmin', - message: 'isAdmin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'granted', - message: 'granted', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgMembershipInput['orgMembership']; - const client = getClient(); - const result = await client.orgMembership - .create({ - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - isBanned: cleanedData.isBanned, - isDisabled: cleanedData.isDisabled, - isActive: cleanedData.isActive, - isExternal: cleanedData.isExternal, - isOwner: cleanedData.isOwner, - isAdmin: cleanedData.isAdmin, - permissions: cleanedData.permissions, - granted: cleanedData.granted, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - isReadOnly: cleanedData.isReadOnly, - profileId: cleanedData.profileId, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isBanned: true, - isDisabled: true, - isActive: true, - isExternal: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - entityId: true, - isReadOnly: true, - profileId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async 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: 'boolean', - name: 'isApproved', - message: 'isApproved', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isBanned', - message: 'isBanned', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isDisabled', - message: 'isDisabled', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isExternal', - message: 'isExternal', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isOwner', - message: 'isOwner', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isAdmin', - message: 'isAdmin', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'granted', - message: 'granted', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profileId', - message: 'profileId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgMembershipPatch; - const client = getClient(); - const result = await client.orgMembership - .update({ - where: { - id: answers.id as string, - }, - data: { - createdBy: cleanedData.createdBy, - updatedBy: cleanedData.updatedBy, - isApproved: cleanedData.isApproved, - isBanned: cleanedData.isBanned, - isDisabled: cleanedData.isDisabled, - isActive: cleanedData.isActive, - isExternal: cleanedData.isExternal, - isOwner: cleanedData.isOwner, - isAdmin: cleanedData.isAdmin, - permissions: cleanedData.permissions, - granted: cleanedData.granted, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - isReadOnly: cleanedData.isReadOnly, - profileId: cleanedData.profileId, - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - createdBy: true, - updatedBy: true, - isApproved: true, - isBanned: true, - isDisabled: true, - isActive: true, - isExternal: true, - isOwner: true, - isAdmin: true, - permissions: true, - granted: true, - actorId: true, - entityId: true, - isReadOnly: true, - profileId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.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.orgMembership - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-owner-grant.ts b/sdk/constructive-cli/src/public/cli/commands/org-owner-grant.ts deleted file mode 100644 index 2d7d763e39..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-owner-grant.ts +++ /dev/null @@ -1,327 +0,0 @@ -/** - * CLI commands for OrgOwnerGrant - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgOwnerGrantInput, - OrgOwnerGrantPatch, - OrgOwnerGrantSelect, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - isGrant: 'boolean', - actorId: 'uuid', - entityId: 'uuid', - grantorId: 'uuid', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\norg-owner-grant \n\nCommands:\n list List orgOwnerGrant records\n find-first Find first matching orgOwnerGrant record\n get Get a orgOwnerGrant by ID\n create Create a new orgOwnerGrant\n update Update an existing orgOwnerGrant\n delete Delete a orgOwnerGrant\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - isGrant: true, - actorId: true, - entityId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgOwnerGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgOwnerGrant.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - isGrant: true, - actorId: true, - entityId: true, - grantorId: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgOwnerGrantSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgOwnerGrant.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.orgOwnerGrant - .findOne({ - id: answers.id as string, - select: { - id: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgOwnerGrantInput['orgOwnerGrant']; - const client = getClient(); - const result = await client.orgOwnerGrant - .create({ - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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: 'boolean', - name: 'isGrant', - message: 'isGrant', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'grantorId', - message: 'grantorId', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgOwnerGrantPatch; - const client = getClient(); - const result = await client.orgOwnerGrant - .update({ - where: { - id: answers.id as string, - }, - data: { - isGrant: cleanedData.isGrant, - actorId: cleanedData.actorId, - entityId: cleanedData.entityId, - grantorId: cleanedData.grantorId, - }, - select: { - id: true, - isGrant: true, - actorId: true, - entityId: true, - grantorId: 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.orgOwnerGrant - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-permission-default.ts b/sdk/constructive-cli/src/public/cli/commands/org-permission-default.ts deleted file mode 100644 index dbb2fb7b4f..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-permission-default.ts +++ /dev/null @@ -1,281 +0,0 @@ -/** - * CLI commands for OrgPermissionDefault - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - permissions: 'string', - entityId: 'uuid', -}; -const usage = - '\norg-permission-default \n\nCommands:\n list List orgPermissionDefault records\n find-first Find first matching orgPermissionDefault record\n get Get a orgPermissionDefault by ID\n create Create a new orgPermissionDefault\n update Update an existing orgPermissionDefault\n delete Delete a orgPermissionDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - entityId: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - > & { - select: OrgPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefault.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - permissions: true, - entityId: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - > & { - select: OrgPermissionDefaultSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermissionDefault.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.orgPermissionDefault - .findOne({ - id: answers.id as string, - select: { - id: true, - permissions: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgPermissionDefaultInput['orgPermissionDefault']; - const client = getClient(); - const result = await client.orgPermissionDefault - .create({ - data: { - permissions: cleanedData.permissions, - entityId: cleanedData.entityId, - }, - select: { - id: true, - permissions: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'permissions', - message: 'permissions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultPatch; - const client = getClient(); - const result = await client.orgPermissionDefault - .update({ - where: { - id: answers.id as string, - }, - data: { - permissions: cleanedData.permissions, - entityId: cleanedData.entityId, - }, - select: { - id: true, - permissions: true, - entityId: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.orgPermissionDefault - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-permission.ts b/sdk/constructive-cli/src/public/cli/commands/org-permission.ts deleted file mode 100644 index b48ebea78a..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-permission.ts +++ /dev/null @@ -1,319 +0,0 @@ -/** - * CLI commands for OrgPermission - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateOrgPermissionInput, - OrgPermissionPatch, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - name: 'string', - bitnum: 'int', - bitstr: 'string', - description: 'string', -}; -const usage = - '\norg-permission \n\nCommands:\n list List orgPermission records\n find-first Find first matching orgPermission record\n get Get a orgPermission by ID\n create Create a new orgPermission\n update Update an existing orgPermission\n delete Delete a orgPermission\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: OrgPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermission.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to list records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: OrgPermissionSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.orgPermission.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.orgPermission - .findOne({ - id: answers.id as string, - select: { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - 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: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgPermissionInput['orgPermission']; - const client = getClient(); - const result = await client.orgPermission - .create({ - data: { - name: cleanedData.name, - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - }, - select: { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitnum', - message: 'bitnum', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'bitstr', - message: 'bitstr', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionPatch; - const client = getClient(); - const result = await client.orgPermission - .update({ - where: { - id: answers.id as string, - }, - data: { - name: cleanedData.name, - bitnum: cleanedData.bitnum, - bitstr: cleanedData.bitstr, - description: cleanedData.description, - }, - select: { - id: true, - name: true, - bitnum: true, - bitstr: true, - description: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.orgPermission - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-by-mask.ts b/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-by-mask.ts deleted file mode 100644 index 4fce871b9a..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-by-mask.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * CLI command for query orgPermissionsGetByMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { buildSelectFromPaths } from '../utils'; -import type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; -import type { OrgPermissionConnectionSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-by-mask - Reads and enables pagination through a set of `OrgPermission`.\n\nUsage: org-permissions-get-by-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'mask', - message: 'mask', - }, - { - type: 'text', - name: 'first', - message: 'Only read the first `n` values of the set.', - }, - { - type: 'text', - name: 'offset', - message: - 'Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.', - }, - { - type: 'text', - name: 'after', - message: 'Read all values in the set after (below) this cursor.', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .orgPermissionsGetByMask( - answers as unknown as OrgPermissionsGetByMaskVariables, - { - select: selectFields, - } as unknown as { - select: OrgPermissionConnectionSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetByMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-mask-by-names.ts b/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-mask-by-names.ts deleted file mode 100644 index 643b680962..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-mask-by-names.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query orgPermissionsGetMaskByNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-mask-by-names - orgPermissionsGetMaskByNames\n\nUsage: org-permissions-get-mask-by-names [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'names', - message: 'names', - }, - ]); - const client = getClient(); - const result = await client.query - .orgPermissionsGetMaskByNames(answers as unknown as OrgPermissionsGetMaskByNamesVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetMaskByNames'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-mask.ts b/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-mask.ts deleted file mode 100644 index 7045bd2006..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query orgPermissionsGetMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { OrgPermissionsGetMaskVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-mask - orgPermissionsGetMask\n\nUsage: org-permissions-get-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'ids', - message: 'ids', - }, - ]); - const client = getClient(); - const result = await client.query - .orgPermissionsGetMask(answers as unknown as OrgPermissionsGetMaskVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-padded-mask.ts b/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-padded-mask.ts deleted file mode 100644 index 1963857d28..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/org-permissions-get-padded-mask.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * CLI command for query orgPermissionsGetPaddedMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'org-permissions-get-padded-mask - orgPermissionsGetPaddedMask\n\nUsage: org-permissions-get-padded-mask [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'mask', - message: 'mask', - }, - ]); - const client = getClient(); - const result = await client.query - .orgPermissionsGetPaddedMask(answers as unknown as OrgPermissionsGetPaddedMaskVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: orgPermissionsGetPaddedMask'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/phone-number.ts b/sdk/constructive-cli/src/public/cli/commands/phone-number.ts deleted file mode 100644 index 26c1459cef..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/phone-number.ts +++ /dev/null @@ -1,371 +0,0 @@ -/** - * CLI commands for PhoneNumber - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreatePhoneNumberInput, - PhoneNumberPatch, - PhoneNumberSelect, - PhoneNumberFilter, - PhoneNumberOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - ownerId: 'uuid', - cc: 'string', - number: 'string', - isVerified: 'boolean', - isPrimary: 'boolean', - name: 'string', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\nphone-number \n\nCommands:\n list List phoneNumber records\n find-first Find first matching phoneNumber record\n get Get a phoneNumber by ID\n create Create a new phoneNumber\n update Update an existing phoneNumber\n delete Delete a phoneNumber\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - ownerId: true, - cc: true, - number: true, - isVerified: true, - isPrimary: true, - name: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: PhoneNumberSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.phoneNumber.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - ownerId: true, - cc: true, - number: true, - isVerified: true, - isPrimary: true, - name: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: PhoneNumberSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.phoneNumber.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.phoneNumber - .findOne({ - id: answers.id as string, - select: { - id: true, - ownerId: true, - cc: true, - number: true, - isVerified: true, - isPrimary: true, - name: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'cc', - message: 'cc', - required: true, - }, - { - type: 'text', - name: 'number', - message: 'number', - required: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPrimary', - message: 'isPrimary', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePhoneNumberInput['phoneNumber']; - const client = getClient(); - const result = await client.phoneNumber - .create({ - data: { - ownerId: cleanedData.ownerId, - cc: cleanedData.cc, - number: cleanedData.number, - isVerified: cleanedData.isVerified, - isPrimary: cleanedData.isPrimary, - name: cleanedData.name, - }, - select: { - id: true, - ownerId: true, - cc: true, - number: true, - isVerified: true, - isPrimary: true, - name: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'cc', - message: 'cc', - required: false, - }, - { - type: 'text', - name: 'number', - message: 'number', - required: false, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isPrimary', - message: 'isPrimary', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PhoneNumberPatch; - const client = getClient(); - const result = await client.phoneNumber - .update({ - where: { - id: answers.id as string, - }, - data: { - ownerId: cleanedData.ownerId, - cc: cleanedData.cc, - number: cleanedData.number, - isVerified: cleanedData.isVerified, - isPrimary: cleanedData.isPrimary, - name: cleanedData.name, - }, - select: { - id: true, - ownerId: true, - cc: true, - number: true, - isVerified: true, - isPrimary: true, - name: 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.phoneNumber - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/provision-new-user.ts b/sdk/constructive-cli/src/public/cli/commands/provision-new-user.ts deleted file mode 100644 index 862bbf9198..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/provision-new-user.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation provisionNewUser - * @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 { ProvisionNewUserVariables } from '../../orm/mutation'; -import type { ProvisionNewUserPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('provision-new-user - provisionNewUser\n\nUsage: provision-new-user [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 - .provisionNewUser( - parsedAnswers as unknown as ProvisionNewUserVariables, - { - select: selectFields, - } as unknown as { - select: ProvisionNewUserPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: provisionNewUser'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/request-cross-origin-token.ts b/sdk/constructive-cli/src/public/cli/commands/request-cross-origin-token.ts deleted file mode 100644 index 344a44b85b..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/request-cross-origin-token.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation requestCrossOriginToken - * @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 { RequestCrossOriginTokenVariables } from '../../orm/mutation'; -import type { RequestCrossOriginTokenPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'request-cross-origin-token - requestCrossOriginToken\n\nUsage: request-cross-origin-token [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .requestCrossOriginToken( - parsedAnswers as unknown as RequestCrossOriginTokenVariables, - { - select: selectFields, - } as unknown as { - select: RequestCrossOriginTokenPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: requestCrossOriginToken'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/require-step-up.ts b/sdk/constructive-cli/src/public/cli/commands/require-step-up.ts deleted file mode 100644 index 9720978f45..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/require-step-up.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * CLI command for query requireStepUp - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { RequireStepUpVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('require-step-up - requireStepUp\n\nUsage: require-step-up [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'stepUpType', - message: 'stepUpType', - }, - ]); - const client = getClient(); - const result = await client.query - .requireStepUp(answers as unknown as RequireStepUpVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: requireStepUp'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/reset-password.ts b/sdk/constructive-cli/src/public/cli/commands/reset-password.ts deleted file mode 100644 index dc1d30eae8..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/reset-password.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation resetPassword - * @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 { ResetPasswordVariables } from '../../orm/mutation'; -import type { ResetPasswordPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('reset-password - resetPassword\n\nUsage: reset-password [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 - .resetPassword( - parsedAnswers as unknown as ResetPasswordVariables, - { - select: selectFields, - } as unknown as { - select: ResetPasswordPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resetPassword'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/revoke-api-key.ts b/sdk/constructive-cli/src/public/cli/commands/revoke-api-key.ts deleted file mode 100644 index 0f159c4013..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/revoke-api-key.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation revokeApiKey - * @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 { RevokeApiKeyVariables } from '../../orm/mutation'; -import type { RevokeApiKeyPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('revoke-api-key - revokeApiKey\n\nUsage: revoke-api-key [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 - .revokeApiKey( - parsedAnswers as unknown as RevokeApiKeyVariables, - { - select: selectFields, - } as unknown as { - select: RevokeApiKeyPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: revokeApiKey'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/revoke-session.ts b/sdk/constructive-cli/src/public/cli/commands/revoke-session.ts deleted file mode 100644 index 8b3bc5036f..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/revoke-session.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation revokeSession - * @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 { RevokeSessionVariables } from '../../orm/mutation'; -import type { RevokeSessionPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('revoke-session - revokeSession\n\nUsage: revoke-session [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 - .revokeSession( - parsedAnswers as unknown as RevokeSessionVariables, - { - select: selectFields, - } as unknown as { - select: RevokeSessionPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: revokeSession'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/role-type.ts b/sdk/constructive-cli/src/public/cli/commands/role-type.ts deleted file mode 100644 index 565ef8219c..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/role-type.ts +++ /dev/null @@ -1,248 +0,0 @@ -/** - * CLI commands for RoleType - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateRoleTypeInput, - RoleTypePatch, - RoleTypeSelect, - RoleTypeFilter, - RoleTypeOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'int', - name: 'string', -}; -const usage = - '\nrole-type \n\nCommands:\n list List roleType records\n find-first Find first matching roleType record\n get Get a roleType by ID\n create Create a new roleType\n update Update an existing roleType\n delete Delete a roleType\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: RoleTypeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.roleType.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: RoleTypeSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.roleType.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.roleType - .findOne({ - id: answers.id as number, - select: { - id: true, - name: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Record not found.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateRoleTypeInput['roleType']; - const client = getClient(); - const result = await client.roleType - .create({ - data: { - name: cleanedData.name, - }, - select: { - id: true, - name: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleUpdate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as RoleTypePatch; - const client = getClient(); - const result = await client.roleType - .update({ - where: { - id: answers.id as number, - }, - data: { - name: cleanedData.name, - }, - select: { - id: true, - name: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to update record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleDelete(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const client = getClient(); - const result = await client.roleType - .delete({ - where: { - id: answers.id as number, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/send-account-deletion-email.ts b/sdk/constructive-cli/src/public/cli/commands/send-account-deletion-email.ts deleted file mode 100644 index d985198b3e..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/send-account-deletion-email.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation sendAccountDeletionEmail - * @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 { SendAccountDeletionEmailVariables } from '../../orm/mutation'; -import type { SendAccountDeletionEmailPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'send-account-deletion-email - sendAccountDeletionEmail\n\nUsage: send-account-deletion-email [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 - .sendAccountDeletionEmail( - parsedAnswers as unknown as SendAccountDeletionEmailVariables, - { - select: selectFields, - } as unknown as { - select: SendAccountDeletionEmailPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: sendAccountDeletionEmail'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/send-verification-email.ts b/sdk/constructive-cli/src/public/cli/commands/send-verification-email.ts deleted file mode 100644 index 5748397d96..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/send-verification-email.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation sendVerificationEmail - * @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 { SendVerificationEmailVariables } from '../../orm/mutation'; -import type { SendVerificationEmailPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'send-verification-email - sendVerificationEmail\n\nUsage: send-verification-email [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 - .sendVerificationEmail( - parsedAnswers as unknown as SendVerificationEmailVariables, - { - select: selectFields, - } as unknown as { - select: SendVerificationEmailPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: sendVerificationEmail'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/set-password.ts b/sdk/constructive-cli/src/public/cli/commands/set-password.ts deleted file mode 100644 index 318c96d559..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/set-password.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation setPassword - * @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 { SetPasswordVariables } from '../../orm/mutation'; -import type { SetPasswordPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('set-password - setPassword\n\nUsage: set-password [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 - .setPassword( - parsedAnswers as unknown as SetPasswordVariables, - { - select: selectFields, - } as unknown as { - select: SetPasswordPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: setPassword'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/sign-in-cross-origin.ts b/sdk/constructive-cli/src/public/cli/commands/sign-in-cross-origin.ts deleted file mode 100644 index 33c90f1f46..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/sign-in-cross-origin.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation signInCrossOrigin - * @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 { SignInCrossOriginVariables } from '../../orm/mutation'; -import type { SignInCrossOriginPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'sign-in-cross-origin - signInCrossOrigin\n\nUsage: sign-in-cross-origin [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 - .signInCrossOrigin( - parsedAnswers as unknown as SignInCrossOriginVariables, - { - select: selectFields, - } as unknown as { - select: SignInCrossOriginPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: signInCrossOrigin'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/sign-in.ts b/sdk/constructive-cli/src/public/cli/commands/sign-in.ts deleted file mode 100644 index 2713837b87..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/sign-in.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation signIn - * @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 { SignInVariables } from '../../orm/mutation'; -import type { SignInPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('sign-in - signIn\n\nUsage: sign-in [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 - .signIn( - parsedAnswers as unknown as SignInVariables, - { - select: selectFields, - } as unknown as { - select: SignInPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: signIn'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/sign-out.ts b/sdk/constructive-cli/src/public/cli/commands/sign-out.ts deleted file mode 100644 index 5964dc1285..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/sign-out.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation signOut - * @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 { SignOutVariables } from '../../orm/mutation'; -import type { SignOutPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('sign-out - signOut\n\nUsage: sign-out [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 - .signOut( - parsedAnswers as unknown as SignOutVariables, - { - select: selectFields, - } as unknown as { - select: SignOutPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: signOut'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/sign-up.ts b/sdk/constructive-cli/src/public/cli/commands/sign-up.ts deleted file mode 100644 index 7c3939b78b..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/sign-up.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation signUp - * @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 { SignUpVariables } from '../../orm/mutation'; -import type { SignUpPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('sign-up - signUp\n\nUsage: sign-up [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 - .signUp( - parsedAnswers as unknown as SignUpVariables, - { - select: selectFields, - } as unknown as { - select: SignUpPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: signUp'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/submit-app-invite-code.ts b/sdk/constructive-cli/src/public/cli/commands/submit-app-invite-code.ts deleted file mode 100644 index 0a28b6a1c4..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/submit-app-invite-code.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation submitAppInviteCode - * @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 { SubmitAppInviteCodeVariables } from '../../orm/mutation'; -import type { SubmitAppInviteCodePayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'submit-app-invite-code - submitAppInviteCode\n\nUsage: submit-app-invite-code [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 - .submitAppInviteCode( - parsedAnswers as unknown as SubmitAppInviteCodeVariables, - { - select: selectFields, - } as unknown as { - select: SubmitAppInviteCodePayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: submitAppInviteCode'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/submit-org-invite-code.ts b/sdk/constructive-cli/src/public/cli/commands/submit-org-invite-code.ts deleted file mode 100644 index 57f7a5768d..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/submit-org-invite-code.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation submitOrgInviteCode - * @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 { SubmitOrgInviteCodeVariables } from '../../orm/mutation'; -import type { SubmitOrgInviteCodePayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'submit-org-invite-code - submitOrgInviteCode\n\nUsage: submit-org-invite-code [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 - .submitOrgInviteCode( - parsedAnswers as unknown as SubmitOrgInviteCodeVariables, - { - select: selectFields, - } as unknown as { - select: SubmitOrgInviteCodePayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: submitOrgInviteCode'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/user-connected-account.ts b/sdk/constructive-cli/src/public/cli/commands/user-connected-account.ts deleted file mode 100644 index a73861ea4a..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/user-connected-account.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * CLI commands for UserConnectedAccount - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateUserConnectedAccountInput, - UserConnectedAccountPatch, - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - ownerId: 'uuid', - service: 'string', - identifier: 'string', - details: 'json', - isVerified: 'boolean', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\nuser-connected-account \n\nCommands:\n list List userConnectedAccount records\n find-first Find first matching userConnectedAccount record\n create Create a new userConnectedAccount\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - ownerId: true, - service: true, - identifier: true, - details: true, - isVerified: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - > & { - select: UserConnectedAccountSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.userConnectedAccount.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - ownerId: true, - service: true, - identifier: true, - details: true, - isVerified: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - > & { - select: UserConnectedAccountSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.userConnectedAccount.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'service', - message: 'service', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'identifier', - message: 'identifier', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'details', - message: 'details', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateUserConnectedAccountInput['userConnectedAccount']; - const client = getClient(); - const result = await client.userConnectedAccount - .create({ - data: { - ownerId: cleanedData.ownerId, - service: cleanedData.service, - identifier: cleanedData.identifier, - details: cleanedData.details, - isVerified: cleanedData.isVerified, - }, - select: { - id: true, - ownerId: true, - service: true, - identifier: true, - details: true, - isVerified: 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); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/user.ts b/sdk/constructive-cli/src/public/cli/commands/user.ts deleted file mode 100644 index afbb1aba95..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/user.ts +++ /dev/null @@ -1,375 +0,0 @@ -/** - * CLI commands for User - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateUserInput, - UserPatch, - UserSelect, - UserFilter, - UserOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - username: 'string', - displayName: 'string', - profilePicture: 'string', - searchTsv: 'string', - type: 'int', - createdAt: 'string', - updatedAt: 'string', - searchTsvRank: 'float', - displayNameTrgmSimilarity: 'float', - searchScore: 'float', -}; -const usage = - '\nuser \n\nCommands:\n list List user records\n find-first Find first matching user record\n search Search user records\n get Get a user by ID\n create Create a new user\n update Update an existing user\n delete Delete a user\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nSearch Options:\n Search query string (required)\n --limit Max number of records to return\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --orderBy Comma-separated list of ordering values\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(argv); - if (!subcommand) { - const answer = await prompter.prompt(argv, [ - { - type: 'autocomplete', - name: 'subcommand', - message: 'What do you want to do?', - options: ['list', 'find-first', 'search', 'get', 'create', 'update', 'delete'], - }, - ]); - return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); - } - return handleTableSubcommand(subcommand, newArgv, prompter); -}; -async function handleTableSubcommand( - subcommand: string, - argv: Partial>, - prompter: Inquirerer -) { - switch (subcommand) { - case 'list': - return handleList(argv, prompter); - case 'find-first': - return handleFindFirst(argv, prompter); - case 'search': - return handleSearch(argv, prompter); - case 'get': - return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); - case 'update': - return handleUpdate(argv, prompter); - case 'delete': - return handleDelete(argv, prompter); - default: - console.log(usage); - process.exit(1); - } -} -async function handleList(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - id: true, - username: true, - displayName: true, - profilePicture: true, - type: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: UserSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.user.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - username: true, - displayName: true, - profilePicture: true, - type: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: UserSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.user.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleSearch(argv: Partial>, _prompter: Inquirerer) { - try { - const query = Array.isArray(argv._) && argv._.length > 0 ? String(argv._[0]) : undefined; - if (!query) { - console.error('Error: search requires a argument'); - process.exit(1); - } - const searchWhere = { - searchTsv: { - query, - }, - trgmDisplayName: { - value: query, - threshold: 0.3, - }, - }; - const defaultSelect = { - id: true, - username: true, - displayName: true, - profilePicture: true, - type: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: UserSelect; - } - >(argv, defaultSelect, searchWhere); - const client = getClient(); - const result = await client.user.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to search records.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} -async function handleGet(argv: Partial>, prompter: Inquirerer) { - try { - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'id', - message: 'id', - required: true, - }, - ]); - const client = getClient(); - const result = await client.user - .findOne({ - id: answers.id as string, - select: { - id: true, - username: true, - displayName: true, - profilePicture: true, - type: 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: 'username', - message: 'username', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'displayName', - message: 'displayName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profilePicture', - message: 'profilePicture', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'type', - message: 'type', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateUserInput['user']; - const client = getClient(); - const result = await client.user - .create({ - data: { - username: cleanedData.username, - displayName: cleanedData.displayName, - profilePicture: cleanedData.profilePicture, - type: cleanedData.type, - }, - select: { - id: true, - username: true, - displayName: true, - profilePicture: true, - type: 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: 'username', - message: 'username', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'displayName', - message: 'displayName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'profilePicture', - message: 'profilePicture', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'type', - message: 'type', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as UserPatch; - const client = getClient(); - const result = await client.user - .update({ - where: { - id: answers.id as string, - }, - data: { - username: cleanedData.username, - displayName: cleanedData.displayName, - profilePicture: cleanedData.profilePicture, - type: cleanedData.type, - }, - select: { - id: true, - username: true, - displayName: true, - profilePicture: true, - type: 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.user - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/cli/commands/verify-email.ts b/sdk/constructive-cli/src/public/cli/commands/verify-email.ts deleted file mode 100644 index dbc4bfabe4..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/verify-email.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation verifyEmail - * @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 { VerifyEmailVariables } from '../../orm/mutation'; -import type { VerifyEmailPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('verify-email - verifyEmail\n\nUsage: verify-email [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 - .verifyEmail( - parsedAnswers as unknown as VerifyEmailVariables, - { - select: selectFields, - } as unknown as { - select: VerifyEmailPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: verifyEmail'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/verify-password.ts b/sdk/constructive-cli/src/public/cli/commands/verify-password.ts deleted file mode 100644 index c1e24455ce..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/verify-password.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation verifyPassword - * @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 { VerifyPasswordVariables } from '../../orm/mutation'; -import type { VerifyPasswordPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('verify-password - verifyPassword\n\nUsage: verify-password [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 - .verifyPassword( - parsedAnswers as unknown as VerifyPasswordVariables, - { - select: selectFields, - } as unknown as { - select: VerifyPasswordPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: verifyPassword'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/verify-totp.ts b/sdk/constructive-cli/src/public/cli/commands/verify-totp.ts deleted file mode 100644 index 499b2a3852..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/verify-totp.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * CLI command for mutation verifyTotp - * @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 { VerifyTotpVariables } from '../../orm/mutation'; -import type { VerifyTotpPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('verify-totp - verifyTotp\n\nUsage: verify-totp [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .verifyTotp( - parsedAnswers as unknown as VerifyTotpVariables, - { - select: selectFields, - } as unknown as { - select: VerifyTotpPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: verifyTotp'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/webauthn-credential.ts b/sdk/constructive-cli/src/public/cli/commands/webauthn-credential.ts deleted file mode 100644 index db01a43f33..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/webauthn-credential.ts +++ /dev/null @@ -1,485 +0,0 @@ -/** - * CLI commands for WebauthnCredential - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateWebauthnCredentialInput, - WebauthnCredentialPatch, - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - id: 'uuid', - ownerId: 'uuid', - credentialId: 'string', - publicKey: 'string', - signCount: 'int', - webauthnUserId: 'string', - transports: 'string', - credentialDeviceType: 'string', - backupEligible: 'boolean', - backupState: 'boolean', - name: 'string', - lastUsedAt: 'string', - createdAt: 'string', - updatedAt: 'string', -}; -const usage = - '\nwebauthn-credential \n\nCommands:\n list List webauthnCredential records\n find-first Find first matching webauthnCredential record\n get Get a webauthnCredential by ID\n create Create a new webauthnCredential\n update Update an existing webauthnCredential\n delete Delete a webauthnCredential\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - if (argv.help || argv.h) { - console.log(usage); - process.exit(0); - } - const { first: subcommand, newArgv } = extractFirst(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, - ownerId: true, - credentialId: true, - publicKey: true, - signCount: true, - webauthnUserId: true, - transports: true, - credentialDeviceType: true, - backupEligible: true, - backupState: true, - name: true, - lastUsedAt: true, - createdAt: true, - updatedAt: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - > & { - select: WebauthnCredentialSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.webauthnCredential.findMany(findManyArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed 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, - ownerId: true, - credentialId: true, - publicKey: true, - signCount: true, - webauthnUserId: true, - transports: true, - credentialDeviceType: true, - backupEligible: true, - backupState: true, - name: true, - lastUsedAt: true, - createdAt: true, - updatedAt: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - > & { - select: WebauthnCredentialSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.webauthnCredential.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(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.webauthnCredential - .findOne({ - id: answers.id as string, - select: { - id: true, - ownerId: true, - credentialId: true, - publicKey: true, - signCount: true, - webauthnUserId: true, - transports: true, - credentialDeviceType: true, - backupEligible: true, - backupState: true, - name: true, - lastUsedAt: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'credentialId', - message: 'credentialId', - required: true, - }, - { - type: 'text', - name: 'publicKey', - message: 'publicKey', - required: true, - }, - { - type: 'text', - name: 'signCount', - message: 'signCount', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'webauthnUserId', - message: 'webauthnUserId', - required: true, - }, - { - type: 'text', - name: 'transports', - message: 'transports', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'credentialDeviceType', - message: 'credentialDeviceType', - required: true, - }, - { - type: 'boolean', - name: 'backupEligible', - message: 'backupEligible', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'backupState', - message: 'backupState', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'lastUsedAt', - message: 'lastUsedAt', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateWebauthnCredentialInput['webauthnCredential']; - const client = getClient(); - const result = await client.webauthnCredential - .create({ - data: { - ownerId: cleanedData.ownerId, - credentialId: cleanedData.credentialId, - publicKey: cleanedData.publicKey, - signCount: cleanedData.signCount, - webauthnUserId: cleanedData.webauthnUserId, - transports: cleanedData.transports, - credentialDeviceType: cleanedData.credentialDeviceType, - backupEligible: cleanedData.backupEligible, - backupState: cleanedData.backupState, - name: cleanedData.name, - lastUsedAt: cleanedData.lastUsedAt, - }, - select: { - id: true, - ownerId: true, - credentialId: true, - publicKey: true, - signCount: true, - webauthnUserId: true, - transports: true, - credentialDeviceType: true, - backupEligible: true, - backupState: true, - name: true, - lastUsedAt: 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: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'credentialId', - message: 'credentialId', - required: false, - }, - { - type: 'text', - name: 'publicKey', - message: 'publicKey', - required: false, - }, - { - type: 'text', - name: 'signCount', - message: 'signCount', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'webauthnUserId', - message: 'webauthnUserId', - required: false, - }, - { - type: 'text', - name: 'transports', - message: 'transports', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'credentialDeviceType', - message: 'credentialDeviceType', - required: false, - }, - { - type: 'boolean', - name: 'backupEligible', - message: 'backupEligible', - required: false, - skipPrompt: true, - }, - { - type: 'boolean', - name: 'backupState', - message: 'backupState', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'lastUsedAt', - message: 'lastUsedAt', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as WebauthnCredentialPatch; - const client = getClient(); - const result = await client.webauthnCredential - .update({ - where: { - id: answers.id as string, - }, - data: { - ownerId: cleanedData.ownerId, - credentialId: cleanedData.credentialId, - publicKey: cleanedData.publicKey, - signCount: cleanedData.signCount, - webauthnUserId: cleanedData.webauthnUserId, - transports: cleanedData.transports, - credentialDeviceType: cleanedData.credentialDeviceType, - backupEligible: cleanedData.backupEligible, - backupState: cleanedData.backupState, - name: cleanedData.name, - lastUsedAt: cleanedData.lastUsedAt, - }, - select: { - id: true, - ownerId: true, - credentialId: true, - publicKey: true, - signCount: true, - webauthnUserId: true, - transports: true, - credentialDeviceType: true, - backupEligible: true, - backupState: true, - name: true, - lastUsedAt: 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.webauthnCredential - .delete({ - where: { - id: answers.id as string, - }, - select: { - id: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to delete record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md deleted file mode 100644 index 172c56f870..0000000000 --- a/sdk/constructive-cli/src/public/orm/README.md +++ /dev/null @@ -1,6965 +0,0 @@ -# ORM Client - -

- -

- - - -## Setup - -```typescript -import { createClient } from './orm'; - -const db = createClient({ - endpoint: 'https://api.example.com/graphql', - headers: { Authorization: 'Bearer ' }, -}); -``` - -## Models - -| Model | Operations | -|-------|------------| -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | -| `appPermission` | findMany, findOne, create, update, delete | -| `orgPermission` | findMany, findOne, create, update, delete | -| `database` | findMany, findOne, create, update, delete | -| `schema` | findMany, findOne, create, update, delete | -| `table` | findMany, findOne, create, update, delete | -| `checkConstraint` | findMany, findOne, create, update, delete | -| `field` | findMany, findOne, create, update, delete | -| `spatialRelation` | findMany, findOne, create, update, delete | -| `foreignKeyConstraint` | findMany, findOne, create, update, delete | -| `fullTextSearch` | findMany, findOne, create, update, delete | -| `index` | findMany, findOne, create, update, delete | -| `policy` | findMany, findOne, create, update, delete | -| `primaryKeyConstraint` | findMany, findOne, create, update, delete | -| `tableGrant` | findMany, findOne, create, update, delete | -| `trigger` | findMany, findOne, create, update, delete | -| `uniqueConstraint` | findMany, findOne, create, update, delete | -| `view` | findMany, findOne, create, update, delete | -| `viewTable` | findMany, findOne, create, update, delete | -| `viewGrant` | findMany, findOne, create, update, delete | -| `viewRule` | findMany, findOne, create, update, delete | -| `embeddingChunk` | findMany, findOne, create, update, delete | -| `secureTableProvision` | findMany, findOne, create, update, delete | -| `relationProvision` | findMany, findOne, create, update, delete | -| `sessionSecretsModule` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | -| `realtimeModule` | findMany, findOne, create, update, delete | -| `configSecretsOrgModule` | findMany, findOne, create, update, delete | -| `schemaGrant` | findMany, findOne, create, update, delete | -| `defaultPrivilege` | findMany, findOne, create, update, delete | -| `enum` | findMany, findOne, create, update, delete | -| `function` | findMany, findOne, create, update, delete | -| `apiSchema` | findMany, findOne, create, update, delete | -| `apiModule` | findMany, findOne, create, update, delete | -| `domain` | findMany, findOne, create, update, delete | -| `siteMetadatum` | findMany, findOne, create, update, delete | -| `siteModule` | findMany, findOne, create, update, delete | -| `siteTheme` | findMany, findOne, create, update, delete | -| `corsSetting` | findMany, findOne, create, update, delete | -| `merkleStoreModule` | findMany, findOne, create, update, delete | -| `graphModule` | findMany, findOne, create, update, delete | -| `triggerFunction` | findMany, findOne, create, update, delete | -| `partition` | findMany, findOne, create, update, delete | -| `databaseTransfer` | findMany, findOne, create, update, delete | -| `api` | findMany, findOne, create, update, delete | -| `site` | findMany, findOne, create, update, delete | -| `app` | findMany, findOne, create, update, delete | -| `apiSetting` | findMany, findOne, create, update, delete | -| `connectedAccountsModule` | findMany, findOne, create, update, delete | -| `cryptoAddressesModule` | findMany, findOne, create, update, delete | -| `cryptoAuthModule` | findMany, findOne, create, update, delete | -| `defaultIdsModule` | findMany, findOne, create, update, delete | -| `denormalizedTableField` | findMany, findOne, create, update, delete | -| `emailsModule` | findMany, findOne, create, update, delete | -| `configSecretsUserModule` | findMany, findOne, create, update, delete | -| `invitesModule` | findMany, findOne, create, update, delete | -| `eventsModule` | findMany, findOne, create, update, delete | -| `limitsModule` | findMany, findOne, create, update, delete | -| `membershipTypesModule` | findMany, findOne, create, update, delete | -| `membershipsModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | -| `phoneNumbersModule` | findMany, findOne, create, update, delete | -| `profilesModule` | findMany, findOne, create, update, delete | -| `userStateModule` | findMany, findOne, create, update, delete | -| `sessionsModule` | findMany, findOne, create, update, delete | -| `userAuthModule` | findMany, findOne, create, update, delete | -| `usersModule` | findMany, findOne, create, update, delete | -| `blueprint` | findMany, findOne, create, update, delete | -| `blueprintTemplate` | findMany, findOne, create, update, delete | -| `blueprintConstruction` | findMany, findOne, create, update, delete | -| `storageModule` | findMany, findOne, create, update, delete | -| `entityTypeProvision` | findMany, findOne, create, update, delete | -| `webauthnCredentialsModule` | findMany, findOne, create, update, delete | -| `webauthnAuthModule` | findMany, findOne, create, update, delete | -| `notificationsModule` | findMany, findOne, create, update, delete | -| `inferenceLogModule` | findMany, findOne, create, update, delete | -| `computeLogModule` | findMany, findOne, create, update, delete | -| `transferLogModule` | findMany, findOne, create, update, delete | -| `storageLogModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | -| `agentModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | -| `functionModule` | findMany, findOne, create, update, delete | -| `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `appAdminGrant` | findMany, findOne, create, update, delete | -| `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appGrant` | findMany, findOne, create, update, delete | -| `orgMembership` | findMany, findOne, create, update, delete | -| `orgMember` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgMemberProfile` | findMany, findOne, create, update, delete | -| `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appLimitCredit` | findMany, findOne, create, update, delete | -| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | -| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | -| `orgLimitCredit` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | -| `phoneNumber` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `webauthnCredential` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | -| `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgInvite` | findMany, findOne, create, update, delete | -| `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `auditLogAuth` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `nodeTypeRegistry` | findMany, findOne, create, update, delete | -| `appLimitCapsDefault` | findMany, findOne, create, update, delete | -| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | -| `pubkeySetting` | findMany, findOne, create, update, delete | -| `rateLimitsModule` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `rlsSetting` | findMany, findOne, create, update, delete | -| `rlsModule` | findMany, findOne, create, update, delete | -| `rateLimitMetersModule` | findMany, findOne, create, update, delete | -| `plansModule` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | -| `databaseSetting` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | -| `billingProviderModule` | findMany, findOne, create, update, delete | -| `hierarchyModule` | findMany, findOne, create, update, delete | - -## Table Operations - -### `db.orgGetManagersRecord` - -CRUD operations for OrgGetManagersRecord records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | - -**Operations:** - -```typescript -// List all orgGetManagersRecord records -const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); - -// Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); - -// Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgGetSubordinatesRecord` - -CRUD operations for OrgGetSubordinatesRecord records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | - -**Operations:** - -```typescript -// List all orgGetSubordinatesRecord records -const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); - -// Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); - -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermission` - -CRUD operations for AppPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | - -**Operations:** - -```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermission` - -CRUD operations for OrgPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | - -**Operations:** - -```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.database` - -CRUD operations for Database records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `schemaHash` | String | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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(); - -// 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(); - -// Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.database.delete({ where: { id: '' } }).execute(); -``` - -### `db.schema` - -CRUD operations for Schema records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `schemaName` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `isPublic` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.schema.delete({ where: { id: '' } }).execute(); -``` - -### `db.table` - -CRUD operations for Table records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `useRls` | Boolean | Yes | -| `timestamps` | Boolean | Yes | -| `peoplestamps` | Boolean | Yes | -| `pluralName` | String | Yes | -| `singularName` | String | Yes | -| `tags` | String | Yes | -| `partitioned` | Boolean | Yes | -| `partitionStrategy` | String | Yes | -| `partitionKeyNames` | String | Yes | -| `partitionKeyTypes` | String | Yes | -| `inheritsId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.table.delete({ where: { id: '' } }).execute(); -``` - -### `db.checkConstraint` - -CRUD operations for CheckConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `expr` | JSON | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.field` - -CRUD operations for Field records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `isRequired` | Boolean | Yes | -| `apiRequired` | Boolean | Yes | -| `defaultValue` | JSON | Yes | -| `type` | JSON | Yes | -| `fieldOrder` | Int | Yes | -| `regexp` | String | Yes | -| `chk` | JSON | Yes | -| `chkExpr` | JSON | Yes | -| `min` | Float | Yes | -| `max` | Float | Yes | -| `tags` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.field.delete({ where: { id: '' } }).execute(); -``` - -### `db.spatialRelation` - -CRUD operations for SpatialRelation records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `name` | String | Yes | -| `operator` | String | Yes | -| `paramName` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all spatialRelation records -const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); -``` - -### `db.foreignKeyConstraint` - -CRUD operations for ForeignKeyConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldIds` | UUID | Yes | -| `deleteAction` | String | Yes | -| `updateAction` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.fullTextSearch` - -CRUD operations for FullTextSearch records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `fieldIds` | UUID | Yes | -| `weights` | String | Yes | -| `langs` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all fullTextSearch records -const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); -``` - -### `db.index` - -CRUD operations for Index records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `fieldIds` | UUID | Yes | -| `includeFieldIds` | UUID | Yes | -| `accessMethod` | String | Yes | -| `indexParams` | JSON | Yes | -| `whereClause` | JSON | Yes | -| `isUnique` | Boolean | Yes | -| `options` | JSON | Yes | -| `opClasses` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.index.delete({ where: { id: '' } }).execute(); -``` - -### `db.policy` - -CRUD operations for Policy records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `granteeName` | String | Yes | -| `privilege` | String | Yes | -| `permissive` | Boolean | Yes | -| `disabled` | Boolean | Yes | -| `policyType` | String | Yes | -| `data` | JSON | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.policy.delete({ where: { id: '' } }).execute(); -``` - -### `db.primaryKeyConstraint` - -CRUD operations for PrimaryKeyConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.tableGrant` - -CRUD operations for TableGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `privilege` | String | Yes | -| `granteeName` | String | Yes | -| `fieldIds` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.trigger` - -CRUD operations for Trigger records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `event` | String | Yes | -| `functionName` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); -``` - -### `db.uniqueConstraint` - -CRUD operations for UniqueConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.view` - -CRUD operations for View records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `tableId` | UUID | Yes | -| `viewType` | String | Yes | -| `data` | JSON | Yes | -| `filterType` | String | Yes | -| `filterData` | JSON | Yes | -| `securityInvoker` | Boolean | Yes | -| `isReadOnly` | Boolean | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.view.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewTable` - -CRUD operations for ViewTable records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `viewId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `joinOrder` | Int | Yes | - -**Operations:** - -```typescript -// List all viewTable records -const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); - -// Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); - -// Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewGrant` - -CRUD operations for ViewGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `viewId` | UUID | Yes | -| `granteeName` | String | Yes | -| `privilege` | String | Yes | -| `withGrantOption` | Boolean | Yes | -| `isGrant` | Boolean | Yes | - -**Operations:** - -```typescript -// List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); - -// Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); - -// Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewRule` - -CRUD operations for ViewRule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `viewId` | UUID | Yes | -| `name` | String | Yes | -| `event` | String | Yes | -| `action` | String | Yes | - -**Operations:** - -```typescript -// List all viewRule records -const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); - -// Get one by id -const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); - -// Create -const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); -``` - -### `db.embeddingChunk` - -CRUD operations for EmbeddingChunk records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `embeddingFieldId` | UUID | Yes | -| `chunksTableId` | UUID | Yes | -| `chunksTableName` | String | Yes | -| `contentFieldName` | String | Yes | -| `dimensions` | Int | Yes | -| `metric` | String | Yes | -| `chunkSize` | Int | Yes | -| `chunkOverlap` | Int | Yes | -| `chunkStrategy` | String | Yes | -| `metadataFields` | JSON | Yes | -| `searchIndexes` | JSON | Yes | -| `enqueueChunkingJob` | Boolean | Yes | -| `chunkingTaskName` | String | Yes | -| `embeddingModel` | String | Yes | -| `embeddingProvider` | String | Yes | -| `parentFkFieldId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all embeddingChunk records -const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); -``` - -### `db.secureTableProvision` - -CRUD operations for SecureTableProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `nodes` | JSON | Yes | -| `useRls` | Boolean | Yes | -| `fields` | JSON | Yes | -| `grants` | JSON | Yes | -| `policies` | JSON | Yes | -| `outFields` | UUID | Yes | - -**Operations:** - -```typescript -// List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.relationProvision` - -CRUD operations for RelationProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `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 | -| `policies` | JSON | Yes | -| `outFieldId` | UUID | Yes | -| `outJunctionTableId` | UUID | Yes | -| `outSourceFieldId` | UUID | Yes | -| `outTargetFieldId` | UUID | 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(); - -// 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(); - -// 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(); - -// Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.sessionSecretsModule` - -CRUD operations for SessionSecretsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `sessionsTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all sessionSecretsModule records -const items = await db.sessionSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); - -// Get one by id -const item = await db.sessionSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); - -// Create -const created = await db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sessionSecretsModule.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 | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '' }, 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.realtimeModule` - -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 | - -**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 } }).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 } }).execute(); - -// Create -const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }, 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.configSecretsOrgModule` - -CRUD operations for ConfigSecretsOrgModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all configSecretsOrgModule records -const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.schemaGrant` - -CRUD operations for SchemaGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `granteeName` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all schemaGrant records -const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.defaultPrivilege` - -CRUD operations for DefaultPrivilege records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `objectType` | String | Yes | -| `privilege` | String | Yes | -| `granteeName` | String | Yes | -| `isGrant` | Boolean | Yes | - -**Operations:** - -```typescript -// List all defaultPrivilege records -const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); - -// Get one by id -const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); - -// Create -const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); -``` - -### `db.enum` - -CRUD operations for Enum records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `values` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all enum records -const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Get one by id -const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Create -const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.enum.delete({ where: { id: '' } }).execute(); -``` - -### `db.function` - -CRUD operations for Function records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all function records -const items = await db.function.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); - -// Get one by id -const item = await db.function.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); - -// Create -const created = await db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.function.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiSchema` - -CRUD operations for ApiSchema records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `apiId` | UUID | Yes | - -**Operations:** - -```typescript -// List all apiSchema records -const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); - -// Get one by id -const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); - -// Create -const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiModule` - -CRUD operations for ApiModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `name` | String | Yes | -| `data` | JSON | Yes | - -**Operations:** - -```typescript -// List all apiModule records -const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); - -// Get one by id -const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); - -// Create -const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.domain` - -CRUD operations for Domain records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `subdomain` | ConstructiveInternalTypeHostname | Yes | -| `domain` | ConstructiveInternalTypeHostname | Yes | - -**Operations:** - -```typescript -// List all domain records -const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); - -// Get one by id -const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); - -// Create -const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.domain.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteMetadatum` - -CRUD operations for SiteMetadatum records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `title` | String | Yes | -| `description` | String | Yes | -| `ogImage` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); - -// Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); - -// Create -const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteModule` - -CRUD operations for SiteModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `name` | String | Yes | -| `data` | JSON | Yes | - -**Operations:** - -```typescript -// List all siteModule records -const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); - -// Get one by id -const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); - -// Create -const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteTheme` - -CRUD operations for SiteTheme records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `theme` | JSON | Yes | - -**Operations:** - -```typescript -// List all siteTheme records -const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); - -// Get one by id -const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); - -// Create -const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); -``` - -### `db.corsSetting` - -CRUD operations for CorsSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `allowedOrigins` | String | Yes | - -**Operations:** - -```typescript -// List all corsSetting records -const items = await db.corsSetting.findMany({ select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); - -// Get one by id -const item = await db.corsSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); - -// Create -const created = await db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.corsSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.merkleStoreModule` - -CRUD operations for MerkleStoreModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `objectTableId` | UUID | Yes | -| `storeTableId` | UUID | Yes | -| `commitTableId` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scopeField` | String | 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, scopeField: 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, scopeField: true, createdAt: true } }).execute(); - -// Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scopeField: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.graphModule` - -CRUD operations for GraphModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `publicSchemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `prefix` | String | Yes | -| `merkleStoreModuleId` | UUID | Yes | -| `graphsTableId` | UUID | Yes | -| `executionsTableId` | UUID | Yes | -| `outputsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scopeField` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `createdAt` | 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, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: 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, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); - -// Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', scopeField: '', membershipType: '', entityTableId: '', policies: '', provisions: '' }, 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.triggerFunction` - -CRUD operations for TriggerFunction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `code` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all triggerFunction records -const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); -``` - -### `db.partition` - -CRUD operations for Partition records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `strategy` | String | Yes | -| `partitionKeyId` | UUID | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `retentionKeepTable` | Boolean | Yes | -| `premake` | Int | Yes | -| `namingPattern` | String | Yes | -| `isParented` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.partition.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseTransfer` - -CRUD operations for DatabaseTransfer records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `targetOwnerId` | UUID | Yes | -| `sourceApproved` | Boolean | Yes | -| `targetApproved` | Boolean | Yes | -| `sourceApprovedAt` | Datetime | Yes | -| `targetApprovedAt` | Datetime | Yes | -| `status` | String | Yes | -| `initiatedBy` | UUID | Yes | -| `notes` | String | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all databaseTransfer records -const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Get one by id -const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Create -const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); -``` - -### `db.api` - -CRUD operations for Api records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `dbname` | String | Yes | -| `roleName` | String | Yes | -| `anonRole` | String | Yes | -| `isPublic` | Boolean | Yes | - -**Operations:** - -```typescript -// List all api records -const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); - -// Get one by id -const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); - -// Create -const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.api.delete({ where: { id: '' } }).execute(); -``` - -### `db.site` - -CRUD operations for Site records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `title` | String | Yes | -| `description` | String | Yes | -| `ogImage` | ConstructiveInternalTypeImage | Yes | -| `favicon` | ConstructiveInternalTypeAttachment | Yes | -| `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `dbname` | String | Yes | - -**Operations:** - -```typescript -// List all site records -const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); - -// Get one by id -const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); - -// Create -const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.site.delete({ where: { id: '' } }).execute(); -``` - -### `db.app` - -CRUD operations for App records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `name` | String | Yes | -| `appImage` | ConstructiveInternalTypeImage | Yes | -| `appStoreLink` | ConstructiveInternalTypeUrl | Yes | -| `appStoreId` | String | Yes | -| `appIdPrefix` | String | Yes | -| `playStoreLink` | ConstructiveInternalTypeUrl | Yes | - -**Operations:** - -```typescript -// List all app records -const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); - -// Get one by id -const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); - -// Create -const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiSetting` - -CRUD operations for ApiSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `enableBulk` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all apiSetting records -const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Create -const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.connectedAccountsModule` - -CRUD operations for ConnectedAccountsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all connectedAccountsModule records -const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAddressesModule` - -CRUD operations for CryptoAddressesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | -| `cryptoNetwork` | String | Yes | - -**Operations:** - -```typescript -// List all cryptoAddressesModule records -const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); - -// Create -const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAuthModule` - -CRUD operations for CryptoAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `secretsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `addressesTableId` | UUID | Yes | -| `userField` | String | Yes | -| `cryptoNetwork` | String | Yes | -| `signInRequestChallenge` | String | Yes | -| `signInRecordFailure` | String | Yes | -| `signUpWithKey` | String | Yes | -| `signInWithChallenge` | String | Yes | - -**Operations:** - -```typescript -// List all cryptoAuthModule records -const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); - -// Get one by id -const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); - -// Create -const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.defaultIdsModule` - -CRUD operations for DefaultIdsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | - -**Operations:** - -```typescript -// List all defaultIdsModule records -const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); - -// Get one by id -const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); - -// Create -const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.denormalizedTableField` - -CRUD operations for DenormalizedTableField records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `setIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `refIds` | UUID | Yes | -| `useUpdates` | Boolean | Yes | -| `updateDefaults` | Boolean | Yes | -| `funcName` | String | Yes | -| `funcOrder` | Int | Yes | - -**Operations:** - -```typescript -// List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); - -// Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); - -// Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); -``` - -### `db.emailsModule` - -CRUD operations for EmailsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all emailsModule records -const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.configSecretsUserModule` - -CRUD operations for ConfigSecretsUserModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `configDefinitionsTableId` | UUID | 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 } }).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 } }).execute(); - -// Create -const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '' }, 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.invitesModule` - -CRUD operations for InvitesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); - -// Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); - -// Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.eventsModule` - -CRUD operations for EventsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | -| `eventsTableName` | String | Yes | -| `eventAggregatesTableId` | UUID | Yes | -| `eventAggregatesTableName` | String | Yes | -| `eventTypesTableId` | UUID | Yes | -| `eventTypesTableName` | String | Yes | -| `levelsTableId` | UUID | Yes | -| `levelsTableName` | String | Yes | -| `levelRequirementsTableId` | UUID | Yes | -| `levelRequirementsTableName` | String | Yes | -| `levelGrantsTableId` | UUID | Yes | -| `levelGrantsTableName` | String | Yes | -| `achievementRewardsTableId` | UUID | Yes | -| `achievementRewardsTableName` | String | Yes | -| `recordEvent` | String | Yes | -| `removeEvent` | String | Yes | -| `tgEvent` | String | Yes | -| `tgEventToggle` | String | Yes | -| `tgEventToggleBool` | String | Yes | -| `tgEventBool` | String | Yes | -| `upsertAggregate` | String | Yes | -| `tgUpdateAggregates` | String | Yes | -| `pruneEvents` | String | Yes | -| `stepsRequired` | String | Yes | -| `levelAchieved` | String | Yes | -| `tgCheckAchievements` | String | Yes | -| `grantAchievement` | String | Yes | -| `tgAchievementReward` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.limitsModule` - -CRUD operations for LimitsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `limitIncrementFunction` | String | Yes | -| `limitDecrementFunction` | String | Yes | -| `limitIncrementTrigger` | String | Yes | -| `limitDecrementTrigger` | String | Yes | -| `limitUpdateTrigger` | String | Yes | -| `limitCheckFunction` | String | Yes | -| `limitCreditsTableId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | -| `creditCodesTableId` | UUID | Yes | -| `creditCodeItemsTableId` | UUID | Yes | -| `creditRedemptionsTableId` | UUID | Yes | -| `aggregateTableId` | UUID | Yes | -| `limitCapsTableId` | UUID | Yes | -| `limitCapsDefaultsTableId` | UUID | Yes | -| `capCheckTrigger` | String | Yes | -| `resolveCapFunction` | String | Yes | -| `limitWarningsTableId` | UUID | Yes | -| `limitWarningStateTableId` | UUID | Yes | -| `limitCheckSoftFunction` | String | Yes | -| `limitAggregateCheckSoftFunction` | String | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipTypesModule` - -CRUD operations for MembershipTypesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all membershipTypesModule records -const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipTypesModule.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 | -| `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 | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `entityTableOwnerId` | UUID | Yes | -| `prefix` | String | Yes | -| `getOrgFn` | String | Yes | -| `actorMaskCheck` | String | Yes | -| `actorPermCheck` | String | Yes | -| `entityIdsByMask` | String | Yes | -| `entityIdsByPerm` | String | Yes | -| `entityIdsFunction` | String | Yes | -| `memberProfilesTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }).execute(); - -// Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }).execute(); - -// Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '' }, 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.permissionsModule` - -CRUD operations for PermissionsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | - -**Operations:** - -```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); - -// Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); - -// Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.phoneNumbersModule` - -CRUD operations for PhoneNumbersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all phoneNumbersModule records -const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.profilesModule` - -CRUD operations for ProfilesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `profilePermissionsTableId` | UUID | Yes | -| `profilePermissionsTableName` | String | Yes | -| `profileGrantsTableId` | UUID | Yes | -| `profileGrantsTableName` | String | Yes | -| `profileDefinitionGrantsTableId` | UUID | Yes | -| `profileDefinitionGrantsTableName` | String | Yes | -| `profileTemplatesTableId` | UUID | Yes | -| `profileTemplatesTableName` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | -| `membershipsTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.profilesModule.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.sessionsModule` - -CRUD operations for SessionsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `authSettingsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `sessionsDefaultExpiration` | Interval | Yes | -| `sessionsTable` | String | Yes | -| `sessionCredentialsTable` | String | Yes | -| `authSettingsTable` | String | Yes | - -**Operations:** - -```typescript -// List all sessionsModule records -const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); - -// Get one by id -const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); - -// Create -const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.userAuthModule` - -CRUD operations for UserAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `secretsTableId` | UUID | Yes | -| `encryptedTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `auditsTableId` | UUID | Yes | -| `auditsTableName` | String | Yes | -| `signInFunction` | String | Yes | -| `signUpFunction` | String | Yes | -| `signOutFunction` | String | Yes | -| `setPasswordFunction` | String | Yes | -| `resetPasswordFunction` | String | Yes | -| `forgotPasswordFunction` | String | Yes | -| `sendVerificationEmailFunction` | String | Yes | -| `verifyEmailFunction` | String | Yes | -| `verifyPasswordFunction` | String | Yes | -| `checkPasswordFunction` | String | Yes | -| `sendAccountDeletionEmailFunction` | String | Yes | -| `deleteAccountFunction` | String | Yes | -| `signInCrossOriginFunction` | String | Yes | -| `requestCrossOriginTokenFunction` | String | Yes | -| `extendTokenExpires` | String | Yes | - -**Operations:** - -```typescript -// List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }).execute(); - -// Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }).execute(); - -// Create -const created = await db.userAuthModule.create({ data: { 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: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.usersModule` - -CRUD operations for UsersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `typeTableId` | UUID | Yes | -| `typeTableName` | String | Yes | - -**Operations:** - -```typescript -// List all usersModule records -const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); - -// Get one by id -const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); - -// Create -const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprint` - -CRUD operations for Blueprint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `definition` | JSON | Yes | -| `templateId` | UUID | Yes | -| `definitionHash` | UUID | Yes | -| `tableHashes` | JSON | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprint records -const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprintTemplate` - -CRUD operations for BlueprintTemplate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `version` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `ownerId` | UUID | Yes | -| `visibility` | String | Yes | -| `categories` | String | Yes | -| `tags` | String | Yes | -| `definition` | JSON | Yes | -| `definitionSchemaVersion` | String | Yes | -| `source` | String | Yes | -| `complexity` | String | Yes | -| `copyCount` | Int | Yes | -| `forkCount` | Int | Yes | -| `forkedFromId` | UUID | Yes | -| `definitionHash` | UUID | Yes | -| `tableHashes` | JSON | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprintTemplate records -const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprintConstruction` - -CRUD operations for BlueprintConstruction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `blueprintId` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `status` | String | Yes | -| `errorDetails` | String | Yes | -| `tableMap` | JSON | Yes | -| `constructedDefinition` | JSON | Yes | -| `constructedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprintConstruction.delete({ where: { id: '' } }).execute(); -``` - -### `db.storageModule` - -CRUD operations for StorageModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `bucketsTableId` | UUID | Yes | -| `filesTableId` | UUID | Yes | -| `bucketsTableName` | String | Yes | -| `filesTableName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `entityTableId` | UUID | Yes | -| `endpoint` | String | Yes | -| `publicUrlPrefix` | String | Yes | -| `provider` | String | Yes | -| `allowedOrigins` | String | Yes | -| `restrictReads` | Boolean | Yes | -| `hasPathShares` | Boolean | Yes | -| `pathSharesTableId` | UUID | Yes | -| `uploadUrlExpirySeconds` | Int | Yes | -| `downloadUrlExpirySeconds` | Int | Yes | -| `defaultMaxFileSize` | BigInt | Yes | -| `maxFilenameLength` | Int | Yes | -| `cacheTtlSeconds` | Int | Yes | -| `maxBulkFiles` | Int | Yes | -| `maxBulkTotalSize` | BigInt | Yes | -| `hasVersioning` | Boolean | Yes | -| `hasContentHash` | Boolean | Yes | -| `hasCustomKeys` | Boolean | Yes | -| `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | -| `confirmUploadDelay` | Interval | Yes | -| `fileEventsTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }).execute(); - -// Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }).execute(); - -// Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', key: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.entityTypeProvision` - -CRUD operations for EntityTypeProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `prefix` | String | Yes | -| `description` | String | Yes | -| `parentEntity` | String | Yes | -| `tableName` | String | Yes | -| `isVisible` | Boolean | Yes | -| `hasLimits` | Boolean | Yes | -| `hasProfiles` | Boolean | Yes | -| `hasLevels` | Boolean | Yes | -| `hasInvites` | Boolean | Yes | -| `hasInviteAchievements` | Boolean | Yes | -| `storage` | JSON | Yes | -| `namespaces` | JSON | Yes | -| `functions` | JSON | Yes | -| `graphs` | JSON | Yes | -| `agents` | JSON | Yes | -| `skipEntityPolicies` | Boolean | Yes | -| `tableProvision` | JSON | Yes | -| `outMembershipType` | Int | Yes | -| `outEntityTableId` | UUID | Yes | -| `outEntityTableName` | String | Yes | -| `outInstalledModules` | String | Yes | -| `outStorageModuleId` | UUID | Yes | -| `outBucketsTableId` | UUID | Yes | -| `outFilesTableId` | UUID | Yes | -| `outPathSharesTableId` | UUID | Yes | -| `outInvitesModuleId` | UUID | Yes | -| `outNamespaceModuleId` | UUID | Yes | -| `outNamespacesTableId` | UUID | Yes | -| `outNamespaceEventsTableId` | UUID | Yes | -| `outFunctionModuleId` | UUID | Yes | -| `outDefinitionsTableId` | UUID | Yes | -| `outInvocationsTableId` | UUID | Yes | -| `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | -| `outRequirementsTableId` | UUID | Yes | -| `outConfigRequirementsTableId` | UUID | Yes | -| `outGraphModuleId` | UUID | Yes | -| `outGraphsTableId` | UUID | Yes | -| `outAgentModuleId` | UUID | Yes | - -**Operations:** - -```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnCredentialsModule` - -CRUD operations for WebauthnCredentialsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all webauthnCredentialsModule records -const items = await db.webauthnCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.webauthnCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnAuthModule` - -CRUD operations for WebauthnAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `credentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionSecretsTableId` | UUID | Yes | -| `authSettingsTableId` | UUID | Yes | -| `rpId` | String | Yes | -| `rpName` | String | Yes | -| `originAllowlist` | String | Yes | -| `attestationType` | String | Yes | -| `requireUserVerification` | Boolean | Yes | -| `residentKey` | String | Yes | -| `challengeExpiry` | Interval | Yes | - -**Operations:** - -```typescript -// List all webauthnAuthModule records -const items = await db.webauthnAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); - -// Get one by id -const item = await db.webauthnAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); - -// Create -const created = await db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.notificationsModule` - -CRUD operations for NotificationsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | 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 | - -**Operations:** - -```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); - -// Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); - -// Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.inferenceLogModule` - -CRUD operations for InferenceLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `inferenceLogTableId` | UUID | Yes | -| `inferenceLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.computeLogModule` - -CRUD operations for ComputeLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.transferLogModule` - -CRUD operations for TransferLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `transferLogTableId` | UUID | Yes | -| `transferLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.storageLogModule` - -CRUD operations for StorageLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `storageLogTableId` | UUID | Yes | -| `storageLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.dbUsageModule` - -CRUD operations for DbUsageModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); - -// Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.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. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `threadTableId` | UUID | Yes | -| `messageTableId` | UUID | Yes | -| `taskTableId` | UUID | Yes | -| `promptsTableId` | UUID | Yes | -| `knowledgeTableId` | UUID | Yes | -| `threadTableName` | String | Yes | -| `messageTableName` | String | Yes | -| `taskTableName` | String | Yes | -| `promptsTableName` | String | Yes | -| `knowledgeTableName` | String | Yes | -| `hasKnowledge` | Boolean | Yes | -| `apiName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `knowledgeConfig` | JSON | Yes | -| `knowledgePolicies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```typescript -// List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }).execute(); - -// Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }).execute(); - -// Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', hasKnowledge: '', apiName: '', membershipType: '', key: '', entityTableId: '', policies: '', knowledgeConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.agentModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.namespaceModule` - -CRUD operations for NamespaceModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `namespacesTableId` | UUID | Yes | -| `namespaceEventsTableId` | UUID | Yes | -| `namespacesTableName` | String | Yes | -| `namespaceEventsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: 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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', membershipType: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.functionModule` - -CRUD operations for FunctionModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `definitionsTableId` | UUID | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | -| `requirementsTableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `configRequirementsTableId` | UUID | Yes | -| `definitionsTableName` | String | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | -| `requirementsTableName` | String | Yes | -| `configRequirementsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `membershipType` | Int | Yes | -| `prefix` | String | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', membershipType: '', prefix: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseProvisionModule` - -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` | String | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | -| `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.appAdminGrant` - -CRUD operations for AppAdminGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appOwnerGrant` - -CRUD operations for AppOwnerGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appGrant` - -CRUD operations for AppGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMember` - -CRUD operations for OrgMember records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMember records -const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgAdminGrant` - -CRUD operations for OrgAdminGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgOwnerGrant` - -CRUD operations for OrgOwnerGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgGrant` - -CRUD operations for OrgGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgGrant records -const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdge` - -CRUD operations for OrgChartEdge records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | - -**Operations:** - -```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdgeGrant` - -CRUD operations for OrgChartEdgeGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefault` - -CRUD operations for OrgPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); - -// Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimit` - -CRUD operations for AppLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCredit` - -CRUD operations for AppLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCredit records -const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCodeItem` - -CRUD operations for AppLimitCreditCodeItem records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `defaultLimitId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCodeItem records -const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Create -const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditRedemption` - -CRUD operations for AppLimitCreditRedemption records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditRedemption records -const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Create -const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimit` - -CRUD operations for OrgLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitWarning` - -CRUD operations for OrgLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); -``` - -### `db.phoneNumber` - -CRUD operations for PhoneNumber records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAddress` - -CRUD operations for CryptoAddress records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnCredential` - -CRUD operations for WebauthnCredential records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `credentialId` | String | Yes | -| `publicKey` | Base64EncodedBinary | Yes | -| `signCount` | BigInt | Yes | -| `webauthnUserId` | String | Yes | -| `transports` | String | Yes | -| `credentialDeviceType` | String | Yes | -| `backupEligible` | Boolean | Yes | -| `backupState` | Boolean | Yes | -| `name` | String | Yes | -| `lastUsedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all webauthnCredential records -const items = await db.webauthnCredential.findMany({ select: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.webauthnCredential.findOne({ id: '', select: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.webauthnCredential.create({ data: { ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnCredential.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnCredential.delete({ where: { id: '' } }).execute(); -``` - -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgInvite` - -CRUD operations for OrgInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgClaimedInvite` - -CRUD operations for OrgClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.auditLogAuth` - -CRUD operations for AuditLogAuth records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | - -**Operations:** - -```typescript -// List all auditLogAuth records -const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); - -// Get one by id -const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); - -// Create -const created = await db.auditLogAuth.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); -``` - -### `db.identityProvider` - -CRUD operations for IdentityProvider records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | - -**Operations:** - -```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); - -// Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); - -// Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermissionDefault` - -CRUD operations for AppPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); - -// Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.roleType` - -CRUD operations for RoleType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); - -// Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); - -// Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); -``` - -### `db.migrateFile` - -CRUD operations for MigrateFile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | - -**Operations:** - -```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); - -// Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); - -// Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); -``` - -### `db.devicesModule` - -CRUD operations for DevicesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | - -**Operations:** - -```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); - -// Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); - -// Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembershipDefault` - -CRUD operations for AppMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | - -**Operations:** - -```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); - -// Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); - -// Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipDefault` - -CRUD operations for OrgMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.nodeTypeRegistry` - -CRUD operations for NodeTypeRegistry records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); - -// Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); - -// Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); - -// Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); - -// Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); -``` - -### `db.appLimitCapsDefault` - -CRUD operations for AppLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitCapsDefault records -const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCapsDefault` - -CRUD operations for OrgLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCap` - -CRUD operations for AppLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.userConnectedAccount` - -CRUD operations for UserConnectedAccount records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCode` - -CRUD operations for AppLimitCreditCode records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitWarning` - -CRUD operations for AppLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.pubkeySetting` - -CRUD operations for PubkeySetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `cryptoNetwork` | String | Yes | -| `userField` | String | Yes | -| `signUpWithKeyFunctionId` | UUID | Yes | -| `signInRequestChallengeFunctionId` | UUID | Yes | -| `signInRecordFailureFunctionId` | UUID | Yes | -| `signInWithChallengeFunctionId` | UUID | Yes | - -**Operations:** - -```typescript -// List all pubkeySetting records -const items = await db.pubkeySetting.findMany({ select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); - -// Get one by id -const item = await db.pubkeySetting.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); - -// Create -const created = await db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.rateLimitsModule` - -CRUD operations for RateLimitsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `rateLimitSettingsTableId` | UUID | Yes | -| `ipRateLimitsTableId` | UUID | Yes | -| `rateLimitsTableId` | UUID | Yes | -| `rateLimitSettingsTable` | String | Yes | -| `ipRateLimitsTable` | String | Yes | -| `rateLimitsTable` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitsModule records -const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); - -// Get one by id -const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); - -// Create -const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsSetting` - -CRUD operations for RlsSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `authenticateSchemaId` | UUID | Yes | -| `roleSchemaId` | UUID | Yes | -| `authenticateFunctionId` | UUID | Yes | -| `authenticateStrictFunctionId` | UUID | Yes | -| `currentRoleFunctionId` | UUID | Yes | -| `currentRoleIdFunctionId` | UUID | Yes | -| `currentUserAgentFunctionId` | UUID | Yes | -| `currentIpAddressFunctionId` | UUID | Yes | - -**Operations:** - -```typescript -// List all rlsSetting records -const items = await db.rlsSetting.findMany({ select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); - -// Get one by id -const item = await db.rlsSetting.findOne({ id: '', select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); - -// Create -const created = await db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsModule` - -CRUD operations for RlsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | - -**Operations:** - -```typescript -// List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); - -// Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); - -// Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.rateLimitMetersModule` - -CRUD operations for RateLimitMetersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `rateLimitStateTableId` | UUID | Yes | -| `rateLimitStateTableName` | String | Yes | -| `rateLimitOverridesTableId` | UUID | Yes | -| `rateLimitOverridesTableName` | String | Yes | -| `rateWindowLimitsTableId` | UUID | Yes | -| `rateWindowLimitsTableName` | String | Yes | -| `checkRateLimitFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.plansModule` - -CRUD operations for PlansModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all plansModule records -const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.sqlAction` - -CRUD operations for SqlAction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `deploy` | String | Yes | -| `deps` | String | Yes | -| `payload` | JSON | Yes | -| `content` | String | Yes | -| `revert` | String | Yes | -| `verify` | String | Yes | -| `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | - -**Operations:** - -```typescript -// List all sqlAction records -const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Get one by id -const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Create -const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseSetting` - -CRUD operations for DatabaseSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `enableBulk` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Create -const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipSetting` - -CRUD operations for OrgMembershipSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | - -**Operations:** - -```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); - -// Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` - -CRUD operations for OrgLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.user` - -CRUD operations for User records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `username` | String | Yes | -| `displayName` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchTsv` | FullText | Yes | -| `type` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `searchTsvRank` | Float | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all user records -const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); - -// Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); -``` - -> **Unified Search API fields:** `searchTsv` -> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. - -### `db.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. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `credentialsSchemaId` | UUID | Yes | -| `sessionsSchemaId` | UUID | Yes | -| `sessionSecretsSchemaId` | UUID | Yes | -| `credentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionSecretsTableId` | UUID | Yes | -| `userFieldId` | UUID | Yes | -| `rpId` | String | Yes | -| `rpName` | String | Yes | -| `originAllowlist` | String | Yes | -| `attestationType` | String | Yes | -| `requireUserVerification` | Boolean | Yes | -| `residentKey` | String | Yes | -| `challengeExpirySeconds` | BigInt | Yes | - -**Operations:** - -```typescript -// List all webauthnSetting records -const items = await db.webauthnSetting.findMany({ select: { 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 } }).execute(); - -// Get one by id -const item = await db.webauthnSetting.findOne({ id: '', select: { 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 } }).execute(); - -// Create -const created = await db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.billingModule` - -CRUD operations for BillingModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `metersTableId` | UUID | Yes | -| `metersTableName` | String | Yes | -| `planSubscriptionsTableId` | UUID | Yes | -| `planSubscriptionsTableName` | String | Yes | -| `ledgerTableId` | UUID | Yes | -| `ledgerTableName` | String | Yes | -| `balancesTableId` | UUID | Yes | -| `balancesTableName` | String | Yes | -| `meterCreditsTableId` | UUID | Yes | -| `meterCreditsTableName` | String | Yes | -| `meterSourcesTableId` | UUID | Yes | -| `meterSourcesTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.billingProviderModule` - -CRUD operations for BillingProviderModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `provider` | String | Yes | -| `productsTableId` | UUID | Yes | -| `pricesTableId` | UUID | Yes | -| `subscriptionsTableId` | UUID | Yes | -| `billingCustomersTableId` | UUID | Yes | -| `billingCustomersTableName` | String | Yes | -| `billingProductsTableId` | UUID | Yes | -| `billingProductsTableName` | String | Yes | -| `billingPricesTableId` | UUID | Yes | -| `billingPricesTableName` | String | Yes | -| `billingSubscriptionsTableId` | UUID | Yes | -| `billingSubscriptionsTableName` | String | Yes | -| `billingWebhookEventsTableId` | UUID | Yes | -| `billingWebhookEventsTableName` | String | Yes | -| `processBillingEventFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.hierarchyModule` - -CRUD operations for HierarchyModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `chartEdgesTableId` | UUID | Yes | -| `chartEdgesTableName` | String | Yes | -| `hierarchySprtTableId` | UUID | Yes | -| `hierarchySprtTableName` | String | Yes | -| `chartEdgeGrantsTableId` | UUID | Yes | -| `chartEdgeGrantsTableName` | String | Yes | -| `entityTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `privateSchemaName` | String | Yes | -| `sprtTableName` | String | Yes | -| `rebuildHierarchyFunction` | String | Yes | -| `getSubordinatesFunction` | String | Yes | -| `getManagersFunction` | String | Yes | -| `isManagerOfFunction` | String | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: 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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); - -// Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); -``` - -## Custom Operations - -### `db.query.currentUserId` - -currentUserId - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUserId().execute(); -``` - -### `db.query.currentUserAgent` - -currentUserAgent - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` - -### `db.query.currentIpAddress` - -currentIpAddress - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` - -### `db.query.requireStepUp` - -requireStepUp - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `stepUpType` | String | - -```typescript -const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); -``` - -### `db.query.appPermissionsGetPaddedMask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.orgPermissionsGetPaddedMask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.applyRegistryDefaults` - -applyRegistryDefaults - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `nodeType` | String | - | `data` | JSON | - -```typescript -const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); -``` - -### `db.query.resolveBlueprintField` - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableId` | UUID | - | `fieldName` | String | - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); -``` - -### `db.query.resolveBlueprintTable` - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableName` | String | - | `schemaName` | String | - | `tableMap` | JSON | - | `defaultSchemaId` | UUID | - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); -``` - -### `db.query.orgIsManagerOf` - -orgIsManagerOf - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `pEntityId` | UUID | - | `pManagerId` | UUID | - | `pUserId` | UUID | - | `pMaxDepth` | Int | - -```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); -``` - -### `db.query.appPermissionsGetMask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.appPermissionsGetMaskByNames` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMaskByNames` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appPermissionsGetByMask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.orgPermissionsGetByMask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.currentUser` - -currentUser - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUser().execute(); -``` - -### `db.mutation.sendAccountDeletionEmail` - -sendAccountDeletionEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` - -### `db.mutation.signOut` - -signOut - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignOutInput (required) | - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` - -### `db.mutation.acceptDatabaseTransfer` - -acceptDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AcceptDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.cancelDatabaseTransfer` - -cancelDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CancelDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.rejectDatabaseTransfer` - -rejectDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RejectDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.disconnectAccount` - -disconnectAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | DisconnectAccountInput (required) | - -```typescript -const result = await db.mutation.disconnectAccount({ input: { accountId: '' } }).execute(); -``` - -### `db.mutation.revokeApiKey` - -revokeApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeApiKeyInput (required) | - -```typescript -const result = await db.mutation.revokeApiKey({ input: { keyId: '' } }).execute(); -``` - -### `db.mutation.revokeSession` - -revokeSession - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeSessionInput (required) | - -```typescript -const result = await db.mutation.revokeSession({ input: { sessionId: '' } }).execute(); -``` - -### `db.mutation.verifyPassword` - -verifyPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyPasswordInput (required) | - -```typescript -const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); -``` - -### `db.mutation.verifyTotp` - -verifyTotp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyTotpInput (required) | - -```typescript -const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); -``` - -### `db.mutation.submitAppInviteCode` - -submitAppInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitAppInviteCodeInput (required) | - -```typescript -const result = await db.mutation.submitAppInviteCode({ input: { token: '' } }).execute(); -``` - -### `db.mutation.submitOrgInviteCode` - -submitOrgInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); -``` - -### `db.mutation.checkPassword` - -checkPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CheckPasswordInput (required) | - -```typescript -const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); -``` - -### `db.mutation.confirmDeleteAccount` - -confirmDeleteAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmDeleteAccountInput (required) | - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); -``` - -### `db.mutation.setPassword` - -setPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPasswordInput (required) | - -```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); -``` - -### `db.mutation.verifyEmail` - -verifyEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyEmailInput (required) | - -```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); -``` - -### `db.mutation.constructBlueprint` - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConstructBlueprintInput (required) | - -```typescript -const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); -``` - -### `db.mutation.provisionNewUser` - -provisionNewUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionNewUserInput (required) | - -```typescript -const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); -``` - -### `db.mutation.resetPassword` - -resetPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ResetPasswordInput (required) | - -```typescript -const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); -``` - -### `db.mutation.provisionCheckConstraint` - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionUniqueConstraint` - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionFullTextSearch` - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionIndex` - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.copyTemplateToBlueprint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CopyTemplateToBlueprintInput (required) | - -```typescript -const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); -``` - -### `db.mutation.provisionSpatialRelation` - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` - -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - -### `db.mutation.bootstrapUser` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` - -### `db.mutation.signUp` - -signUp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignUpInput (required) | - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` - -### `db.mutation.signIn` - -signIn - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInInput (required) | - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` - -### `db.mutation.provisionRelation` - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` - -### `db.mutation.setFieldOrder` - -setFieldOrder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetFieldOrderInput (required) | - -```typescript -const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); -``` - -### `db.mutation.applyRls` - -applyRls - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ApplyRlsInput (required) | - -```typescript -const result = await db.mutation.applyRls({ input: '' }).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.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) - -Returns the database_id UUID of the newly created database. - -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 - - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateUserDatabaseInput (required) | - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` - -### `db.mutation.extendTokenExpires` - -extendTokenExpires - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ExtendTokenExpiresInput (required) | - -```typescript -const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); -``` - -### `db.mutation.createApiKey` - -createApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateApiKeyInput (required) | - -```typescript -const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); -``` - -### `db.mutation.requestCrossOriginToken` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - -```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` - -### `db.mutation.provisionTable` - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionTableInput (required) | - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` - -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.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/public/orm/index.ts b/sdk/constructive-cli/src/public/orm/index.ts deleted file mode 100644 index f490598d41..0000000000 --- a/sdk/constructive-cli/src/public/orm/index.ts +++ /dev/null @@ -1,346 +0,0 @@ -/** - * 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 { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; -import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; -import { AppPermissionModel } from './models/appPermission'; -import { OrgPermissionModel } from './models/orgPermission'; -import { DatabaseModel } from './models/database'; -import { SchemaModel } from './models/schema'; -import { TableModel } from './models/table'; -import { CheckConstraintModel } from './models/checkConstraint'; -import { FieldModel } from './models/field'; -import { SpatialRelationModel } from './models/spatialRelation'; -import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; -import { FullTextSearchModel } from './models/fullTextSearch'; -import { IndexModel } from './models/index'; -import { PolicyModel } from './models/policy'; -import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; -import { TableGrantModel } from './models/tableGrant'; -import { TriggerModel } from './models/trigger'; -import { UniqueConstraintModel } from './models/uniqueConstraint'; -import { ViewModel } from './models/view'; -import { ViewTableModel } from './models/viewTable'; -import { ViewGrantModel } from './models/viewGrant'; -import { ViewRuleModel } from './models/viewRule'; -import { EmbeddingChunkModel } from './models/embeddingChunk'; -import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { RelationProvisionModel } from './models/relationProvision'; -import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; -import { RealtimeModuleModel } from './models/realtimeModule'; -import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; -import { SchemaGrantModel } from './models/schemaGrant'; -import { DefaultPrivilegeModel } from './models/defaultPrivilege'; -import { EnumModel } from './models/enum'; -import { FunctionModel } from './models/function'; -import { ApiSchemaModel } from './models/apiSchema'; -import { ApiModuleModel } from './models/apiModule'; -import { DomainModel } from './models/domain'; -import { SiteMetadatumModel } from './models/siteMetadatum'; -import { SiteModuleModel } from './models/siteModule'; -import { SiteThemeModel } from './models/siteTheme'; -import { CorsSettingModel } from './models/corsSetting'; -import { MerkleStoreModuleModel } from './models/merkleStoreModule'; -import { GraphModuleModel } from './models/graphModule'; -import { TriggerFunctionModel } from './models/triggerFunction'; -import { PartitionModel } from './models/partition'; -import { DatabaseTransferModel } from './models/databaseTransfer'; -import { ApiModel } from './models/api'; -import { SiteModel } from './models/site'; -import { AppModel } from './models/app'; -import { ApiSettingModel } from './models/apiSetting'; -import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; -import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; -import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; -import { DefaultIdsModuleModel } from './models/defaultIdsModule'; -import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; -import { EmailsModuleModel } from './models/emailsModule'; -import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; -import { InvitesModuleModel } from './models/invitesModule'; -import { EventsModuleModel } from './models/eventsModule'; -import { LimitsModuleModel } from './models/limitsModule'; -import { MembershipTypesModuleModel } from './models/membershipTypesModule'; -import { MembershipsModuleModel } from './models/membershipsModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; -import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; -import { ProfilesModuleModel } from './models/profilesModule'; -import { UserStateModuleModel } from './models/userStateModule'; -import { SessionsModuleModel } from './models/sessionsModule'; -import { UserAuthModuleModel } from './models/userAuthModule'; -import { UsersModuleModel } from './models/usersModule'; -import { BlueprintModel } from './models/blueprint'; -import { BlueprintTemplateModel } from './models/blueprintTemplate'; -import { BlueprintConstructionModel } from './models/blueprintConstruction'; -import { StorageModuleModel } from './models/storageModule'; -import { EntityTypeProvisionModel } from './models/entityTypeProvision'; -import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; -import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; -import { NotificationsModuleModel } from './models/notificationsModule'; -import { InferenceLogModuleModel } from './models/inferenceLogModule'; -import { ComputeLogModuleModel } from './models/computeLogModule'; -import { TransferLogModuleModel } from './models/transferLogModule'; -import { StorageLogModuleModel } from './models/storageLogModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; -import { AgentModuleModel } from './models/agentModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; -import { FunctionModuleModel } from './models/functionModule'; -import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { AppAdminGrantModel } from './models/appAdminGrant'; -import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppGrantModel } from './models/appGrant'; -import { OrgMembershipModel } from './models/orgMembership'; -import { OrgMemberModel } from './models/orgMember'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { AppLimitModel } from './models/appLimit'; -import { AppLimitCreditModel } from './models/appLimitCredit'; -import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; -import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; -import { OrgLimitModel } from './models/orgLimit'; -import { OrgLimitCreditModel } from './models/orgLimitCredit'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; -import { EmailModel } from './models/email'; -import { PhoneNumberModel } from './models/phoneNumber'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { WebauthnCredentialModel } from './models/webauthnCredential'; -import { AppInviteModel } from './models/appInvite'; -import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgInviteModel } from './models/orgInvite'; -import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AuditLogAuthModel } from './models/auditLogAuth'; -import { IdentityProviderModel } from './models/identityProvider'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { RoleTypeModel } from './models/roleType'; -import { MigrateFileModel } from './models/migrateFile'; -import { DevicesModuleModel } from './models/devicesModule'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; -import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; -import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { UserConnectedAccountModel } from './models/userConnectedAccount'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { AppLimitWarningModel } from './models/appLimitWarning'; -import { PubkeySettingModel } from './models/pubkeySetting'; -import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { MembershipTypeModel } from './models/membershipType'; -import { RlsSettingModel } from './models/rlsSetting'; -import { RlsModuleModel } from './models/rlsModule'; -import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; -import { PlansModuleModel } from './models/plansModule'; -import { SqlActionModel } from './models/sqlAction'; -import { DatabaseSettingModel } from './models/databaseSetting'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; -import { AppMembershipModel } from './models/appMembership'; -import { UserModel } from './models/user'; -import { AstMigrationModel } from './models/astMigration'; -import { WebauthnSettingModel } from './models/webauthnSetting'; -import { BillingModuleModel } from './models/billingModule'; -import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { HierarchyModuleModel } from './models/hierarchyModule'; -import { createQueryOperations } from './query'; -import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; -export * from './models'; -export { createQueryOperations } from './query'; -export { createMutationOperations } from './mutation'; -/** - * Create an ORM client instance - * - * @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 { - orgGetManagersRecord: new OrgGetManagersRecordModel(client), - orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), - appPermission: new AppPermissionModel(client), - orgPermission: new OrgPermissionModel(client), - database: new DatabaseModel(client), - schema: new SchemaModel(client), - table: new TableModel(client), - checkConstraint: new CheckConstraintModel(client), - field: new FieldModel(client), - spatialRelation: new SpatialRelationModel(client), - foreignKeyConstraint: new ForeignKeyConstraintModel(client), - fullTextSearch: new FullTextSearchModel(client), - index: new IndexModel(client), - policy: new PolicyModel(client), - primaryKeyConstraint: new PrimaryKeyConstraintModel(client), - tableGrant: new TableGrantModel(client), - trigger: new TriggerModel(client), - uniqueConstraint: new UniqueConstraintModel(client), - view: new ViewModel(client), - viewTable: new ViewTableModel(client), - viewGrant: new ViewGrantModel(client), - viewRule: new ViewRuleModel(client), - embeddingChunk: new EmbeddingChunkModel(client), - secureTableProvision: new SecureTableProvisionModel(client), - relationProvision: new RelationProvisionModel(client), - sessionSecretsModule: new SessionSecretsModuleModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), - realtimeModule: new RealtimeModuleModel(client), - configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), - schemaGrant: new SchemaGrantModel(client), - defaultPrivilege: new DefaultPrivilegeModel(client), - enum: new EnumModel(client), - function: new FunctionModel(client), - apiSchema: new ApiSchemaModel(client), - apiModule: new ApiModuleModel(client), - domain: new DomainModel(client), - siteMetadatum: new SiteMetadatumModel(client), - siteModule: new SiteModuleModel(client), - siteTheme: new SiteThemeModel(client), - corsSetting: new CorsSettingModel(client), - merkleStoreModule: new MerkleStoreModuleModel(client), - graphModule: new GraphModuleModel(client), - triggerFunction: new TriggerFunctionModel(client), - partition: new PartitionModel(client), - databaseTransfer: new DatabaseTransferModel(client), - api: new ApiModel(client), - site: new SiteModel(client), - app: new AppModel(client), - apiSetting: new ApiSettingModel(client), - connectedAccountsModule: new ConnectedAccountsModuleModel(client), - cryptoAddressesModule: new CryptoAddressesModuleModel(client), - cryptoAuthModule: new CryptoAuthModuleModel(client), - defaultIdsModule: new DefaultIdsModuleModel(client), - denormalizedTableField: new DenormalizedTableFieldModel(client), - emailsModule: new EmailsModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), - invitesModule: new InvitesModuleModel(client), - eventsModule: new EventsModuleModel(client), - limitsModule: new LimitsModuleModel(client), - membershipTypesModule: new MembershipTypesModuleModel(client), - membershipsModule: new MembershipsModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), - phoneNumbersModule: new PhoneNumbersModuleModel(client), - profilesModule: new ProfilesModuleModel(client), - userStateModule: new UserStateModuleModel(client), - sessionsModule: new SessionsModuleModel(client), - userAuthModule: new UserAuthModuleModel(client), - usersModule: new UsersModuleModel(client), - blueprint: new BlueprintModel(client), - blueprintTemplate: new BlueprintTemplateModel(client), - blueprintConstruction: new BlueprintConstructionModel(client), - storageModule: new StorageModuleModel(client), - entityTypeProvision: new EntityTypeProvisionModel(client), - webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), - webauthnAuthModule: new WebauthnAuthModuleModel(client), - notificationsModule: new NotificationsModuleModel(client), - inferenceLogModule: new InferenceLogModuleModel(client), - computeLogModule: new ComputeLogModuleModel(client), - transferLogModule: new TransferLogModuleModel(client), - storageLogModule: new StorageLogModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), - agentModule: new AgentModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), - functionModule: new FunctionModuleModel(client), - databaseProvisionModule: new DatabaseProvisionModuleModel(client), - appAdminGrant: new AppAdminGrantModel(client), - appOwnerGrant: new AppOwnerGrantModel(client), - appGrant: new AppGrantModel(client), - orgMembership: new OrgMembershipModel(client), - orgMember: new OrgMemberModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - orgMemberProfile: new OrgMemberProfileModel(client), - orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - appLimit: new AppLimitModel(client), - appLimitCredit: new AppLimitCreditModel(client), - appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), - appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), - orgLimit: new OrgLimitModel(client), - orgLimitCredit: new OrgLimitCreditModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), - email: new EmailModel(client), - phoneNumber: new PhoneNumberModel(client), - cryptoAddress: new CryptoAddressModel(client), - webauthnCredential: new WebauthnCredentialModel(client), - appInvite: new AppInviteModel(client), - appClaimedInvite: new AppClaimedInviteModel(client), - orgInvite: new OrgInviteModel(client), - orgClaimedInvite: new OrgClaimedInviteModel(client), - auditLogAuth: new AuditLogAuthModel(client), - identityProvider: new IdentityProviderModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), - roleType: new RoleTypeModel(client), - migrateFile: new MigrateFileModel(client), - devicesModule: new DevicesModuleModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), - nodeTypeRegistry: new NodeTypeRegistryModel(client), - appLimitCapsDefault: new AppLimitCapsDefaultModel(client), - orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - userConnectedAccount: new UserConnectedAccountModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - appLimitWarning: new AppLimitWarningModel(client), - pubkeySetting: new PubkeySettingModel(client), - rateLimitsModule: new RateLimitsModuleModel(client), - membershipType: new MembershipTypeModel(client), - rlsSetting: new RlsSettingModel(client), - rlsModule: new RlsModuleModel(client), - rateLimitMetersModule: new RateLimitMetersModuleModel(client), - plansModule: new PlansModuleModel(client), - sqlAction: new SqlActionModel(client), - databaseSetting: new DatabaseSettingModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), - appMembership: new AppMembershipModel(client), - user: new UserModel(client), - astMigration: new AstMigrationModel(client), - webauthnSetting: new WebauthnSettingModel(client), - billingModule: new BillingModuleModel(client), - billingProviderModule: new BillingProviderModuleModel(client), - hierarchyModule: new HierarchyModuleModel(client), - query: createQueryOperations(client), - mutation: createMutationOperations(client), - }; -} diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts deleted file mode 100644 index 0e9064f57b..0000000000 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ /dev/null @@ -1,42733 +0,0 @@ -/** - * GraphQL types for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -// ============ Scalar Filter Types ============ -export interface StringFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; - includes?: string; - notIncludes?: string; - includesInsensitive?: string; - notIncludesInsensitive?: string; - startsWith?: string; - notStartsWith?: string; - startsWithInsensitive?: string; - notStartsWithInsensitive?: string; - endsWith?: string; - notEndsWith?: string; - endsWithInsensitive?: string; - notEndsWithInsensitive?: string; - like?: string; - notLike?: string; - likeInsensitive?: string; - notLikeInsensitive?: string; -} -export interface IntFilter { - isNull?: boolean; - equalTo?: number; - notEqualTo?: number; - distinctFrom?: number; - notDistinctFrom?: number; - in?: number[]; - notIn?: number[]; - lessThan?: number; - lessThanOrEqualTo?: number; - greaterThan?: number; - greaterThanOrEqualTo?: number; -} -export interface FloatFilter { - isNull?: boolean; - equalTo?: number; - notEqualTo?: number; - distinctFrom?: number; - notDistinctFrom?: number; - in?: number[]; - notIn?: number[]; - lessThan?: number; - lessThanOrEqualTo?: number; - greaterThan?: number; - greaterThanOrEqualTo?: number; -} -export interface BooleanFilter { - isNull?: boolean; - equalTo?: boolean; - notEqualTo?: boolean; -} -export interface UUIDFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; -} -export interface DatetimeFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface DateFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface JSONFilter { - isNull?: boolean; - equalTo?: Record; - notEqualTo?: Record; - distinctFrom?: Record; - notDistinctFrom?: Record; - contains?: Record; - containedBy?: Record; - containsKey?: string; - containsAllKeys?: string[]; - containsAnyKeys?: string[]; -} -export interface BigIntFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface BigFloatFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface BitStringFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; -} -export interface InternetAddressFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; - contains?: string; - containsOrEqualTo?: string; - containedBy?: string; - containedByOrEqualTo?: string; - containsOrContainedBy?: string; -} -export interface FullTextFilter { - matches?: string; -} -export interface VectorFilter { - isNull?: boolean; - equalTo?: number[]; - notEqualTo?: number[]; - distinctFrom?: number[]; - notDistinctFrom?: number[]; -} -export interface StringListFilter { - isNull?: boolean; - equalTo?: string[]; - notEqualTo?: string[]; - distinctFrom?: string[]; - notDistinctFrom?: string[]; - lessThan?: string[]; - lessThanOrEqualTo?: string[]; - greaterThan?: string[]; - greaterThanOrEqualTo?: string[]; - contains?: string[]; - containedBy?: string[]; - overlaps?: string[]; - anyEqualTo?: string; - anyNotEqualTo?: string; - anyLessThan?: string; - anyLessThanOrEqualTo?: string; - anyGreaterThan?: string; - anyGreaterThanOrEqualTo?: string; -} -export interface IntListFilter { - isNull?: boolean; - equalTo?: number[]; - notEqualTo?: number[]; - distinctFrom?: number[]; - notDistinctFrom?: number[]; - lessThan?: number[]; - lessThanOrEqualTo?: number[]; - greaterThan?: number[]; - greaterThanOrEqualTo?: number[]; - contains?: number[]; - containedBy?: number[]; - overlaps?: number[]; - anyEqualTo?: number; - anyNotEqualTo?: number; - anyLessThan?: number; - anyLessThanOrEqualTo?: number; - anyGreaterThan?: number; - anyGreaterThanOrEqualTo?: number; -} -export interface UUIDListFilter { - isNull?: boolean; - equalTo?: string[]; - notEqualTo?: string[]; - distinctFrom?: string[]; - notDistinctFrom?: string[]; - lessThan?: string[]; - lessThanOrEqualTo?: string[]; - greaterThan?: string[]; - greaterThanOrEqualTo?: string[]; - contains?: string[]; - containedBy?: string[]; - overlaps?: string[]; - anyEqualTo?: string; - anyNotEqualTo?: string; - anyLessThan?: string; - anyLessThanOrEqualTo?: string; - anyGreaterThan?: string; - anyGreaterThanOrEqualTo?: string; -} -// ============ Enum Types ============ -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; -// ============ Custom Scalar Types ============ -export type Base64EncodedBinary = unknown; -export type ConstructiveInternalTypeAttachment = unknown; -export type ConstructiveInternalTypeEmail = unknown; -export type ConstructiveInternalTypeHostname = unknown; -export type ConstructiveInternalTypeImage = unknown; -export type ConstructiveInternalTypeOrigin = unknown; -export type ConstructiveInternalTypeUpload = unknown; -export type ConstructiveInternalTypeUrl = unknown; -// ============ Entity Types ============ -export interface OrgGetManagersRecord { - userId?: string | null; - depth?: number | null; -} -export interface OrgGetSubordinatesRecord { - userId?: string | null; - depth?: number | null; -} -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppPermission { - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; -} -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgPermission { - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; -} -export interface Database { - id: string; - ownerId?: string | null; - schemaHash?: string | null; - name?: string | null; - label?: string | null; - hash?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Schema { - id: string; - databaseId?: string | null; - name?: string | null; - schemaName?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - isPublic?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Table { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - useRls?: boolean | null; - timestamps?: boolean | null; - peoplestamps?: boolean | null; - pluralName?: string | null; - singularName?: string | null; - tags?: string[] | null; - partitioned?: boolean | null; - partitionStrategy?: string | null; - partitionKeyNames?: string[] | null; - partitionKeyTypes?: string[] | null; - inheritsId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface CheckConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - expr?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Field { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - defaultValue?: Record | null; - type?: Record | null; - fieldOrder?: number | null; - regexp?: string | null; - chk?: Record | null; - chkExpr?: Record | null; - min?: number | null; - max?: number | null; - tags?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface SpatialRelation { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - refTableId?: string | null; - refFieldId?: string | null; - name?: string | null; - operator?: string | null; - paramName?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface ForeignKeyConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - refTableId?: string | null; - refFieldIds?: string[] | null; - deleteAction?: string | null; - updateAction?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface FullTextSearch { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - fieldIds?: string[] | null; - weights?: string[] | null; - langs?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Index { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - fieldIds?: string[] | null; - includeFieldIds?: string[] | null; - accessMethod?: string | null; - indexParams?: Record | null; - whereClause?: Record | null; - isUnique?: boolean | null; - options?: Record | null; - opClasses?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Policy { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - granteeName?: string | null; - privilege?: string | null; - permissive?: boolean | null; - disabled?: boolean | null; - policyType?: string | null; - data?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface PrimaryKeyConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface TableGrant { - id: string; - databaseId?: string | null; - tableId?: string | null; - privilege?: string | null; - granteeName?: string | null; - fieldIds?: string[] | null; - isGrant?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Trigger { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - event?: string | null; - functionName?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface UniqueConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface View { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - tableId?: string | null; - viewType?: string | null; - data?: Record | null; - filterType?: string | null; - filterData?: Record | null; - securityInvoker?: boolean | null; - isReadOnly?: boolean | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -/** Junction table linking views to their joined tables for referential integrity */ -export interface ViewTable { - id: string; - viewId?: string | null; - tableId?: string | null; - joinOrder?: number | null; -} -export interface ViewGrant { - id: string; - databaseId?: string | null; - viewId?: string | null; - granteeName?: string | null; - privilege?: string | null; - withGrantOption?: boolean | null; - isGrant?: boolean | null; -} -/** DO INSTEAD rules for views (e.g., read-only enforcement) */ -export interface ViewRule { - id: string; - databaseId?: string | null; - viewId?: string | null; - name?: string | null; - /** INSERT, UPDATE, or DELETE */ - event?: string | null; - /** NOTHING (for read-only) or custom action */ - action?: string | null; -} -export interface EmbeddingChunk { - id: string; - databaseId?: string | null; - tableId?: string | null; - embeddingFieldId?: string | null; - chunksTableId?: string | null; - chunksTableName?: string | null; - contentFieldName?: string | null; - dimensions?: number | null; - metric?: string | null; - chunkSize?: number | null; - chunkOverlap?: number | null; - chunkStrategy?: string | null; - metadataFields?: Record | null; - searchIndexes?: Record | null; - enqueueChunkingJob?: boolean | null; - chunkingTaskName?: string | null; - embeddingModel?: string | null; - embeddingProvider?: string | null; - parentFkFieldId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ -export interface SecureTableProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database this provision belongs to. Required. */ - databaseId?: string | null; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string | null; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string | null; - /** 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 | null; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: Record | null; - /** 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 | null; - /** 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?: Record[] | null; - /** 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?: Record | null; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: Record | null; - /** 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; -} -/** - * 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. */ - databaseId?: string | null; - /** - * 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 | null; - /** - * 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?: string | null; - /** - * 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?: string | null; - /** - * 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 | null; - /** 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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?: string | null; - /** 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 | null; - /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ - junctionSchemaId?: string | null; - /** 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 | null; - /** 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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?: Record | null; - /** 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?: Record | null; - /** - * 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?: Record | null; - /** 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?: string | null; - /** 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?: string | null; - /** 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?: string | null; - /** 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; -} -/** 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; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - /** 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 identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. */ -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; - tableId?: string | null; - tableName?: 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; -} -/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ -export interface ConfigSecretsOrgModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface SchemaGrant { - id: string; - databaseId?: string | null; - schemaId?: string | null; - granteeName?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface DefaultPrivilege { - id: string; - databaseId?: string | null; - schemaId?: string | null; - objectType?: string | null; - privilege?: string | null; - granteeName?: string | null; - isGrant?: boolean | null; -} -export interface Enum { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - values?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface Function { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; -} -/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ -export interface ApiSchema { - /** Unique identifier for this API-schema mapping */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Metaschema schema being exposed through the API */ - schemaId?: string | null; - /** API that exposes this schema */ - apiId?: string | null; -} -/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ -export interface ApiModule { - /** Unique identifier for this API module record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** API this module configuration belongs to */ - apiId?: string | null; - /** Module name (e.g. auth, uploads, webhooks) */ - name?: string | null; - /** JSON configuration data for this module */ - data?: Record | null; -} -/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ -export interface Domain { - /** Unique identifier for this domain record */ - id: string; - /** Reference to the metaschema database this domain belongs to */ - databaseId?: string | null; - /** API endpoint this domain routes to (mutually exclusive with site_id) */ - apiId?: string | null; - /** Site this domain routes to (mutually exclusive with api_id) */ - siteId?: string | null; - /** Subdomain portion of the hostname */ - subdomain?: ConstructiveInternalTypeHostname | null; - /** Root domain of the hostname */ - domain?: ConstructiveInternalTypeHostname | null; -} -/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ -export interface SiteMetadatum { - /** Unique identifier for this metadata record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this metadata belongs to */ - siteId?: string | null; - /** Page title for SEO (max 120 characters) */ - title?: string | null; - /** Meta description for SEO and social sharing (max 120 characters) */ - description?: string | null; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage | null; -} -/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ -export interface SiteModule { - /** Unique identifier for this site module record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this module configuration belongs to */ - siteId?: string | null; - /** Module name (e.g. user_auth_module, analytics) */ - name?: string | null; - /** JSON configuration data for this module */ - data?: Record | null; -} -/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ -export interface SiteTheme { - /** Unique identifier for this theme record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this theme belongs to */ - siteId?: string | null; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme?: Record | null; -} -/** Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries */ -export interface CorsSetting { - /** Unique identifier for this CORS settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Optional API for per-API override; NULL means database-wide default */ - apiId?: string | null; - /** Array of allowed CORS origins (e.g. https://example.com) */ - allowedOrigins?: string[] | null; -} -export interface MerkleStoreModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - createdAt?: string | null; -} -export interface GraphModule { - id: string; - databaseId?: string | null; - publicSchemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - prefix?: string | null; - merkleStoreModuleId?: string | null; - graphsTableId?: string | null; - executionsTableId?: string | null; - outputsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - createdAt?: string | null; -} -export interface TriggerFunction { - id: string; - databaseId?: string | null; - name?: string | null; - code?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Partition { - id: string; - databaseId?: string | null; - tableId?: string | null; - strategy?: string | null; - partitionKeyId?: string | null; - interval?: string | null; - retention?: string | null; - retentionKeepTable?: boolean | null; - premake?: number | null; - namingPattern?: string | null; - isParented?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface DatabaseTransfer { - id: string; - databaseId?: string | null; - targetOwnerId?: string | null; - sourceApproved?: boolean | null; - targetApproved?: boolean | null; - sourceApprovedAt?: string | null; - targetApprovedAt?: string | null; - status?: string | null; - initiatedBy?: string | null; - notes?: string | null; - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - completedAt?: string | null; -} -/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ -export interface Api { - /** Unique identifier for this API */ - id: string; - /** Reference to the metaschema database this API serves */ - databaseId?: string | null; - /** Unique name for this API within its database */ - name?: string | null; - /** PostgreSQL database name to connect to */ - dbname?: string | null; - /** PostgreSQL role used for authenticated requests */ - roleName?: string | null; - /** PostgreSQL role used for anonymous/unauthenticated requests */ - anonRole?: string | null; - /** Whether this API is publicly accessible without authentication */ - isPublic?: boolean | null; -} -/** Top-level site configuration: branding assets, title, and description for a deployed application */ -export interface Site { - /** Unique identifier for this site */ - id: string; - /** Reference to the metaschema database this site belongs to */ - databaseId?: string | null; - /** Display title for the site (max 120 characters) */ - title?: string | null; - /** Short description of the site (max 120 characters) */ - description?: string | null; - /** Open Graph image used for social media link previews */ - ogImage?: ConstructiveInternalTypeImage | null; - /** Browser favicon attachment */ - favicon?: ConstructiveInternalTypeAttachment | null; - /** Apple touch icon for iOS home screen bookmarks */ - appleTouchIcon?: ConstructiveInternalTypeImage | null; - /** Primary logo image for the site */ - logo?: ConstructiveInternalTypeImage | null; - /** PostgreSQL database name this site connects to */ - dbname?: string | null; -} -/** Mobile and native app configuration linked to a site, including store links and identifiers */ -export interface App { - /** Unique identifier for this app */ - id: string; - /** Reference to the metaschema database this app belongs to */ - databaseId?: string | null; - /** Site this app is associated with (one app per site) */ - siteId?: string | null; - /** Display name of the app */ - name?: string | null; - /** App icon or promotional image */ - appImage?: ConstructiveInternalTypeImage | null; - /** URL to the Apple App Store listing */ - appStoreLink?: ConstructiveInternalTypeUrl | null; - /** Apple App Store application identifier */ - appStoreId?: string | null; - /** Apple App ID prefix (Team ID) for universal links and associated domains */ - appIdPrefix?: string | null; - /** URL to the Google Play Store listing */ - playStoreLink?: ConstructiveInternalTypeUrl | null; -} -/** Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default */ -export interface ApiSetting { - /** Unique identifier for this API settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** API these settings override for */ - apiId?: string | null; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ - enableAggregates?: boolean | null; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ - enablePostgis?: boolean | null; - /** Override: enable unified search (NULL = inherit from database_settings) */ - enableSearch?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ - enablePresignedUploads?: boolean | null; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ - enableManyToMany?: boolean | null; - /** Override: enable connection filter (NULL = inherit from database_settings) */ - enableConnectionFilter?: boolean | null; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ - enableLtree?: boolean | null; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ - enableLlm?: boolean | null; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ - enableRealtime?: boolean | null; - /** Override: enable bulk mutations (NULL = inherit from database_settings) */ - enableBulk?: boolean | null; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ - options?: Record | null; -} -export interface ConnectedAccountsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface CryptoAddressesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; - cryptoNetwork?: string | null; -} -export interface CryptoAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - addressesTableId?: string | null; - userField?: string | null; - cryptoNetwork?: string | null; - signInRequestChallenge?: string | null; - signInRecordFailure?: string | null; - signUpWithKey?: string | null; - signInWithChallenge?: string | null; -} -export interface DefaultIdsModule { - id: string; - databaseId?: string | null; -} -export interface DenormalizedTableField { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} -export interface EmailsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface ConfigSecretsUserModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - configDefinitionsTableId?: string | null; -} -export interface InvitesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; -} -export interface EventsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface LimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - limitIncrementFunction?: string | null; - limitDecrementFunction?: string | null; - limitIncrementTrigger?: string | null; - limitDecrementTrigger?: string | null; - limitUpdateTrigger?: string | null; - limitCheckFunction?: string | null; - limitCreditsTableId?: string | null; - eventsTableId?: string | null; - creditCodesTableId?: string | null; - creditCodeItemsTableId?: string | null; - creditRedemptionsTableId?: string | null; - aggregateTableId?: string | null; - limitCapsTableId?: string | null; - limitCapsDefaultsTableId?: string | null; - capCheckTrigger?: string | null; - resolveCapFunction?: string | null; - limitWarningsTableId?: string | null; - limitWarningStateTableId?: string | null; - limitCheckSoftFunction?: string | null; - limitAggregateCheckSoftFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface MembershipTypesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface MembershipsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - prefix?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; -} -export interface PermissionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - prefix?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; -} -export interface PhoneNumbersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface ProfilesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - prefix?: string | null; -} -export interface UserStateModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface SessionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - authSettingsTableId?: string | null; - usersTableId?: string | null; - sessionsDefaultExpiration?: string | null; - sessionsTable?: string | null; - sessionCredentialsTable?: string | null; - authSettingsTable?: string | null; -} -export interface UserAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - encryptedTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - auditsTableName?: string | null; - signInFunction?: string | null; - signUpFunction?: string | null; - signOutFunction?: string | null; - setPasswordFunction?: string | null; - resetPasswordFunction?: string | null; - forgotPasswordFunction?: string | null; - sendVerificationEmailFunction?: string | null; - verifyEmailFunction?: string | null; - verifyPasswordFunction?: string | null; - checkPasswordFunction?: string | null; - sendAccountDeletionEmailFunction?: string | null; - deleteAccountFunction?: string | null; - signInCrossOriginFunction?: string | null; - requestCrossOriginTokenFunction?: string | null; - extendTokenExpires?: string | null; -} -export interface UsersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - typeTableId?: string | null; - typeTableName?: string | null; -} -/** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ -export interface Blueprint { - /** Unique identifier for this blueprint. */ - id: string; - /** The user who owns this blueprint. */ - ownerId?: string | null; - /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ - databaseId?: string | null; - /** Machine-readable name for the blueprint. Must be unique per database. */ - name?: string | null; - /** Human-readable display name for the blueprint. */ - displayName?: string | null; - /** Optional description of the blueprint. */ - description?: string | null; - /** 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?: Record | null; - /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ - templateId?: string | null; - /** 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 | null; - /** 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?: Record | null; - /** Timestamp when this blueprint was created. */ - createdAt?: string | null; - /** Timestamp when this blueprint was last modified. */ - updatedAt?: string | null; -} -/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ -export interface BlueprintTemplate { - /** Unique identifier for this template. */ - id: string; - /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ - name?: string | null; - /** Semantic version string. Defaults to 1.0.0. */ - version?: string | null; - /** Human-readable display name for the template (e.g. E-Commerce Basic). */ - displayName?: string | null; - /** Optional description of what the template provisions. */ - description?: string | null; - /** The user who created or published this template. */ - ownerId?: string | null; - /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ - visibility?: string | null; - /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ - categories?: string[] | null; - /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ - tags?: string[] | null; - /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ - definition?: Record | null; - /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ - definitionSchemaVersion?: string | null; - /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ - source?: string | null; - /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ - complexity?: string | null; - /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ - copyCount?: number | null; - /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ - forkCount?: number | null; - /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ - forkedFromId?: string | null; - /** 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?: string | null; - /** 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?: Record | null; - /** Timestamp when this template was created. */ - createdAt?: string | null; - /** Timestamp when this template was last modified. */ - updatedAt?: string | null; -} -/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ -export interface BlueprintConstruction { - /** Unique identifier for this construction attempt. */ - id: string; - /** The blueprint that was constructed. */ - blueprintId?: string | null; - /** The database the blueprint was constructed into. */ - databaseId?: string | null; - /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ - schemaId?: string | null; - /** 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 | null; - /** Error message from a failed construction attempt. NULL unless status is failed. */ - errorDetails?: string | null; - /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ - tableMap?: Record | null; - /** 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?: Record | null; - /** Timestamp when construction successfully completed. NULL until constructed. */ - constructedAt?: string | null; - /** Timestamp when this construction attempt was created. */ - createdAt?: string | null; - /** Timestamp when this construction attempt was last modified. */ - updatedAt?: string | null; -} -export interface StorageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - membershipType?: number | null; - key?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: string | null; - fileEventsTableId?: 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). - * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - * Set table_provision to a single jsonb object (using the same shape as provision_table() / - * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - * as an escape hatch to apply zero policies. - */ -export interface EntityTypeProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database to provision this entity type in. Required. */ - databaseId?: string | null; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name?: string | null; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ - prefix?: string | null; - /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ - description?: string | null; - /** - * Prefix of the parent entity type. The trigger resolves this to a membership_type integer - * by looking up memberships_module WHERE prefix = parent_entity. - * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - * (e.g. 'data_room' for a team_channel nested under data_room). - * The parent type must already be provisioned before this INSERT. - */ - parentEntity?: string | null; - /** - * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - * (e.g. prefix 'data_room' produces table 'data_rooms'). - * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - */ - tableName?: string | null; - /** - * Whether members of the parent entity can see child entities. Defaults to true. - * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - * When false: only direct members of the entity itself can see it (private entity mode). - * Controls whether the parent_member SELECT policy is created on the entity table. - * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - * skip_entity_policies=true, since no default policies are being applied in those cases. - */ - isVisible?: boolean | null; - /** - * Whether to apply limits_module security for this type. Defaults to false. - * The limits_module table structure is always created (memberships_module requires it), - * but when false, no RLS policies are applied to the limits tables. - * Set to true if this entity type needs configurable resource limits per membership. - */ - hasLimits?: boolean | null; - /** - * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. - */ - hasProfiles?: boolean | null; - /** - * Whether to provision events_module for this type. Defaults to false. - * Levels provide gamification/achievement tracking for members. - * When true, creates level steps, achievements, and level tables with security. - */ - hasLevels?: boolean | null; - /** - * Whether to provision invites_module for this type. Defaults to false. - * When true, the trigger inserts a row into invites_module which in turn - * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - * repeated INSERTs safe. - */ - hasInvites?: boolean | null; - /** - * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - * When true, the trigger calls event_tracker() on the claimed_invites table with - * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - * crediting the SENDER (inviter) when someone claims their invite code. - * Developers can then define achievements in the blueprint achievements[] section - * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - */ - hasInviteAchievements?: boolean | null; - /** - * Optional JSON array of storage module definitions. Presence triggers provisioning - * (same inference model as namespaces, functions, agents). - * Each element provisions a separate storage module with its own tables - * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - * NULL = do not provision storage. '[{}]' = provision one default storage module. - * Each array element recognizes (all optional): - * - key (text) module discriminator, max 16 chars, lowercase snake_case. - * Defaults to 'default' (omitted from table names). - * Non-default keys become infixes: {prefix}_{key}_buckets. - * (storage_key accepted for backward compat) - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this module - * - allowed_origins (text[]) default CORS origins for all buckets in this module - * - restrict_reads (boolean) require read_files permission for SELECT on files - * - has_path_shares (boolean) enable virtual filesystem + path share policies - * - has_versioning (boolean) enable file version chains - * - has_content_hash (boolean) enable content hash for dedup - * - has_custom_keys (boolean) allow client-provided S3 keys - * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow - * - confirm_upload_delay (interval) delay before first confirmation attempt - * - buckets (jsonb[]) array of initial bucket definitions to seed. - * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - * Each value: { nodes, fields, grants, use_rls, policies }. - * Example (single module, backward compat): - * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - * Example (multi-module): - * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - */ - storage?: Record | null; - /** - * Optional JSON array of namespace module definitions. Presence triggers provisioning. - * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. - * Example: namespaces := '[{}]'::jsonb - */ - namespaces?: Record | null; - /** - * Optional JSON array of function module definitions. Presence triggers provisioning. - * NULL = do not provision functions. '[{}]' = provision one default function module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. - * Example: functions := '[{}]'::jsonb - */ - functions?: Record | null; - /** - * Optional JSON array of graph module definitions. Presence triggers provisioning. - * NULL = do not provision graphs. '[{}]' = provision one default graph module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. - * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned - * separately with the merkle store dependency resolved. - * Example: graphs := '[{}]'::jsonb - */ - graphs?: Record | null; - agents?: Record | null; - /** - * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - * Use this only when you want the entity table provisioned with zero policies (e.g. because you - * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - * false and either accepting the five defaults (table_provision=NULL) or overriding them via - * table_provision. - * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself - * - DELETE: owner of the entity can delete it - */ - skipEntityPolicies?: boolean | null; - /** - * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - * entries, so an entity table is configured the same way an ordinary blueprint table is. - * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - * table_provision.policies[] (is_visible becomes a no-op on this path). - * Recognized keys (all optional): - * - use_rls (boolean, default true) - * - nodes (jsonb array of {"$type","data"} Data* module entries) - * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - * - grants (jsonb array of grant objects; each with roles[] and privileges[]) - * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - * against the newly created entity table. - * Example — override with two SELECT policies: - * table_provision := jsonb_build_object( - * 'policies', jsonb_build_array( - * jsonb_build_object( - * '$type', 'AuthzEntityMembership', - * 'privileges', jsonb_build_array('select'), - * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - * 'name', 'self_member' - * ), - * jsonb_build_object( - * '$type', 'AuthzDirectOwner', - * 'privileges', jsonb_build_array('select', 'update'), - * 'data', jsonb_build_object('owner_field', 'owner_id') - * ) - * ) - * ) - */ - tableProvision?: Record | null; - /** - * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - * This is the ID used in entity_types, memberships_module, and all module tables. - */ - outMembershipType?: number | null; - /** - * Output: the UUID of the created entity table. Populated by the trigger. - * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - */ - outEntityTableId?: string | null; - /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ - outEntityTableName?: string | null; - /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - * Populated by the trigger. Useful for verifying which modules were provisioned. - */ - outInstalledModules?: string[] | null; - /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ - outStorageModuleId?: string | null; - /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ - outBucketsTableId?: string | null; - /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - /** - * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - * (i.e. the invites_module row was created in a previous run). - */ - outInvitesModuleId?: string | null; - /** - * Output: the UUID of the namespace_module row created (or found) for this entity type. - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceModuleId?: string | null; - /** - * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespacesTableId?: string | null; - /** - * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -/** 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. */ -export interface WebauthnCredentialsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface WebauthnAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - authSettingsTableId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpiry?: string | null; -} -export interface NotificationsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; -} -export interface InferenceLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface ComputeLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface TransferLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface StorageLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface DbUsageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; -} -export interface AgentModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - threadTableId?: string | null; - messageTableId?: string | null; - taskTableId?: string | null; - promptsTableId?: string | null; - knowledgeTableId?: string | null; - threadTableName?: string | null; - messageTableName?: string | null; - taskTableName?: string | null; - promptsTableName?: string | null; - knowledgeTableName?: string | null; - hasKnowledge?: boolean | null; - apiName?: string | null; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - knowledgeConfig?: Record | null; - knowledgePolicies?: Record | null; - provisions?: Record | null; -} -export interface NamespaceModule { - id: string; - 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; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface FunctionModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - membershipType?: number | null; - prefix?: string | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | 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 | 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; - /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ - modules?: string[] | null; - /** Additional configuration options for provisioning */ - options?: Record | null; - /** 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; -} -/** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { - id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of individual permission grants and revocations for members via bitmask */ -export interface AppGrant { - id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} -/** Simplified view of active members in an entity, used for listing who belongs to an org or group */ -export interface OrgMember { - id: string; - /** Whether this member has admin privileges */ - isAdmin?: boolean | null; - /** References the user who is a member */ - actorId?: string | null; - /** References the entity (org or group) this member belongs to */ - entityId?: string | null; -} -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { - id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { - id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ -export interface OrgChartEdgeGrant { - id: string; - /** Organization this grant applies to */ - entityId?: string | null; - /** User ID of the subordinate being placed in the hierarchy */ - childId?: string | null; - /** User ID of the manager being assigned; NULL for top-level positions */ - parentId?: string | null; - /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ - grantorId?: string | null; - /** TRUE to add/update the edge, FALSE to remove it */ - isGrant?: boolean | null; - /** Job title or role name being assigned in this grant */ - positionTitle?: string | null; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number | null; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface AppLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Items within a credit code — each row grants credits for a specific limit definition */ -export interface AppLimitCreditCodeItem { - id: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string | null; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string | null; - /** Number of credits this item grants per redemption */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; -} -/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ -export interface AppLimitCreditRedemption { - id: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string | null; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - entityId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface OrgLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ -export interface OrgLimitAggregate { - id: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string | null; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string | null; - /** Current aggregate usage count for this entity and limit */ - num?: string | null; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; -} -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** User phone numbers with country code, verification, and primary-number management */ -export interface PhoneNumber { - id: string; - ownerId?: string | null; - /** Country calling code (e.g. +1, +44) */ - cc?: string | null; - /** The phone number without country code */ - number?: string | null; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean | null; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean | null; - /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ -export interface CryptoAddress { - id: string; - ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean | null; - /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. */ -export interface WebauthnCredential { - id: string; - ownerId?: string | null; - /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ - credentialId?: string | null; - /** COSE-encoded public key bytes from the authenticator attestation. */ - publicKey?: Base64EncodedBinary | null; - /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ - signCount?: string | null; - /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ - webauthnUserId?: string | null; - /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ - transports?: string[] | null; - /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ - credentialDeviceType?: string | null; - /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ - backupEligible?: boolean | null; - /** Current backup state; updated on each successful sign-in assertion. */ - backupState?: boolean | null; - /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ - name?: string | null; - /** Timestamp of the most recent successful sign-in assertion using this credential. */ - lastUsedAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface AppClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface OrgInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - entityId?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface OrgClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - entityId?: string | null; -} -/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLogAuth { - createdAt?: string | null; - /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ - id: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string | null; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string | null; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin | null; - /** Browser or client user-agent string from the request */ - userAgent?: string | null; - /** IP address of the client that initiated the auth event */ - ipAddress?: string | null; - /** Whether the authentication attempt succeeded */ - success?: boolean | null; -} -export interface IdentityProvider { - slug?: string | null; - kind?: string | null; - displayName?: string | null; - enabled?: boolean | null; - isBuiltIn?: boolean | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -export interface RoleType { - id: number; - name?: string | null; -} -export interface MigrateFile { - id: string; - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface DevicesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} -export interface NodeTypeRegistry { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} -/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ -export interface PubkeySetting { - /** Unique identifier for this pubkey settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string | null; - /** Field name used to identify the user in crypto auth functions */ - userField?: string | null; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string | null; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string | null; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string | null; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string | null; -} -export interface RateLimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; -} -/** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ -export interface RlsSetting { - /** Unique identifier for this RLS settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ - authenticateSchemaId?: string | null; - /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ - roleSchemaId?: string | null; - /** Reference to the authenticate function (FK to metaschema_public.function) */ - authenticateFunctionId?: string | null; - /** Reference to the strict authenticate function (FK to metaschema_public.function) */ - authenticateStrictFunctionId?: string | null; - /** Reference to the current_role function (FK to metaschema_public.function) */ - currentRoleFunctionId?: string | null; - /** Reference to the current_role_id function (FK to metaschema_public.function) */ - currentRoleIdFunctionId?: string | null; - /** Reference to the current_user_agent function (FK to metaschema_public.function) */ - currentUserAgentFunctionId?: string | null; - /** Reference to the current_ip_address function (FK to metaschema_public.function) */ - currentIpAddressFunctionId?: string | null; -} -export interface RlsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface PlansModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface SqlAction { - id: number; - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ -export interface DatabaseSetting { - /** Unique identifier for this settings record */ - id: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string | null; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean | null; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean | null; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean | null; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean | null; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean | null; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean | null; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean | null; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean | null; - /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ - enableBulk?: boolean | null; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: Record | null; -} -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ - entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - searchTsvRank?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -/** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ -export interface WebauthnSetting { - /** Unique identifier for this WebAuthn settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ - credentialsSchemaId?: string | null; - /** Schema of the sessions table (FK to metaschema_public.schema) */ - sessionsSchemaId?: string | null; - /** Schema of the session_secrets table (FK to metaschema_public.schema) */ - sessionSecretsSchemaId?: string | null; - /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ - credentialsTableId?: string | null; - /** Reference to the sessions table (FK to metaschema_public.table) */ - sessionsTableId?: string | null; - /** Reference to the session_credentials table (FK to metaschema_public.table) */ - sessionCredentialsTableId?: string | null; - /** Reference to the session_secrets table (FK to metaschema_public.table) */ - sessionSecretsTableId?: string | null; - /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ - userFieldId?: string | null; - /** WebAuthn Relying Party ID (typically the domain name) */ - rpId?: string | null; - /** WebAuthn Relying Party display name */ - rpName?: string | null; - /** Allowed origins for WebAuthn registration and authentication */ - originAllowlist?: string[] | null; - /** Attestation conveyance preference (none, indirect, direct, enterprise) */ - attestationType?: string | null; - /** Whether to require user verification (biometric/PIN) during auth */ - requireUserVerification?: boolean | null; - /** Resident key requirement (discouraged, preferred, required) */ - residentKey?: string | null; - /** Challenge TTL in seconds (default 300 = 5 minutes) */ - challengeExpirySeconds?: string | null; -} -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface BillingProviderModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; -} -export interface HierarchyModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; - createdAt?: 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 OrgGetManagersRecordRelations {} -export interface OrgGetSubordinatesRecordRelations {} -export interface AppPermissionRelations {} -export interface OrgPermissionRelations {} -export interface DatabaseRelations { - owner?: User | null; - databaseSetting?: DatabaseSetting | null; - rlsSetting?: RlsSetting | null; - pubkeySetting?: PubkeySetting | null; - webauthnSetting?: WebauthnSetting | null; - rlsModule?: RlsModule | null; - hierarchyModule?: HierarchyModule | null; - rateLimitsModule?: RateLimitsModule | null; - devicesModule?: DevicesModule | null; - plansModule?: PlansModule | null; - billingModule?: BillingModule | null; - billingProviderModule?: BillingProviderModule | null; - rateLimitMetersModule?: RateLimitMetersModule | null; - schemas?: ConnectionResult; - tables?: ConnectionResult
; - checkConstraints?: ConnectionResult; - fields?: ConnectionResult; - foreignKeyConstraints?: ConnectionResult; - fullTextSearches?: ConnectionResult; - indices?: ConnectionResult; - policies?: ConnectionResult; - primaryKeyConstraints?: ConnectionResult; - schemaGrants?: ConnectionResult; - tableGrants?: ConnectionResult; - triggerFunctions?: ConnectionResult; - triggers?: ConnectionResult; - uniqueConstraints?: ConnectionResult; - views?: ConnectionResult; - viewGrants?: ConnectionResult; - viewRules?: ConnectionResult; - defaultPrivileges?: ConnectionResult; - enums?: ConnectionResult; - embeddingChunks?: ConnectionResult; - spatialRelations?: ConnectionResult; - functions?: ConnectionResult; - partitions?: ConnectionResult; - databaseTransfers?: ConnectionResult; - apis?: ConnectionResult; - apiModules?: ConnectionResult; - apiSchemas?: ConnectionResult; - sites?: ConnectionResult; - apps?: ConnectionResult; - domains?: ConnectionResult; - siteMetadata?: ConnectionResult; - siteModules?: ConnectionResult; - siteThemes?: ConnectionResult; - apiSettings?: ConnectionResult; - corsSettings?: ConnectionResult; - connectedAccountsModules?: ConnectionResult; - cryptoAddressesModules?: ConnectionResult; - cryptoAuthModules?: ConnectionResult; - defaultIdsModules?: ConnectionResult; - denormalizedTableFields?: ConnectionResult; - emailsModules?: ConnectionResult; - configSecretsUserModules?: ConnectionResult; - invitesModules?: ConnectionResult; - eventsModules?: ConnectionResult; - limitsModules?: ConnectionResult; - membershipTypesModules?: ConnectionResult; - membershipsModules?: ConnectionResult; - permissionsModules?: ConnectionResult; - phoneNumbersModules?: ConnectionResult; - profilesModules?: ConnectionResult; - userStateModules?: ConnectionResult; - sessionsModules?: ConnectionResult; - userAuthModules?: ConnectionResult; - usersModules?: ConnectionResult; - secureTableProvisions?: ConnectionResult; - relationProvisions?: ConnectionResult; - blueprints?: ConnectionResult; - blueprintConstructions?: ConnectionResult; - storageModules?: ConnectionResult; - entityTypeProvisions?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - webauthnCredentialsModules?: ConnectionResult; - webauthnAuthModules?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - notificationsModules?: ConnectionResult; - realtimeModules?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; - inferenceLogModules?: ConnectionResult; - computeLogModules?: ConnectionResult; - transferLogModules?: ConnectionResult; - storageLogModules?: ConnectionResult; - dbUsageModules?: ConnectionResult; - agentModules?: ConnectionResult; - merkleStoreModules?: ConnectionResult; - graphModules?: ConnectionResult; - namespaceModules?: ConnectionResult; - functionModules?: ConnectionResult; - databaseProvisionModules?: ConnectionResult; -} -export interface SchemaRelations { - database?: Database | null; - tables?: ConnectionResult
; - schemaGrants?: ConnectionResult; - views?: ConnectionResult; - defaultPrivileges?: ConnectionResult; - enums?: ConnectionResult; - functions?: ConnectionResult; - apiSchemas?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - identityProvidersModulesByPrivateSchemaId?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - realtimeModulesByPrivateSchemaId?: ConnectionResult; - realtimeModules?: ConnectionResult; - realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; - merkleStoreModulesByPrivateSchemaId?: ConnectionResult; -} -export interface TableRelations { - database?: Database | null; - schema?: Schema | null; - inherits?: Table | null; - partition?: Partition | null; - checkConstraints?: ConnectionResult; - fields?: ConnectionResult; - foreignKeyConstraints?: ConnectionResult; - fullTextSearches?: ConnectionResult; - indices?: ConnectionResult; - policies?: ConnectionResult; - primaryKeyConstraints?: ConnectionResult; - tableGrants?: ConnectionResult; - triggers?: ConnectionResult; - uniqueConstraints?: ConnectionResult; - views?: ConnectionResult; - viewTables?: ConnectionResult; - embeddingChunksByChunksTableId?: ConnectionResult; - embeddingChunks?: ConnectionResult; - spatialRelationsByRefTableId?: ConnectionResult; - spatialRelations?: ConnectionResult; - secureTableProvisions?: ConnectionResult; - relationProvisionsBySourceTableId?: ConnectionResult; - relationProvisionsByTargetTableId?: ConnectionResult; - sessionSecretsModulesBySessionsTableId?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - realtimeModulesByChangeLogTableId?: ConnectionResult; - realtimeModulesByListenerNodeTableId?: ConnectionResult; - realtimeModulesBySourceRegistryTableId?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; -} -export interface CheckConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface FieldRelations { - database?: Database | null; - table?: Table | null; - spatialRelations?: ConnectionResult; - spatialRelationsByRefFieldId?: ConnectionResult; -} -export interface SpatialRelationRelations { - database?: Database | null; - field?: Field | null; - refField?: Field | null; - refTable?: Table | null; - table?: Table | null; -} -export interface ForeignKeyConstraintRelations { - database?: Database | null; - refTable?: Table | null; - table?: Table | null; -} -export interface FullTextSearchRelations { - database?: Database | null; - table?: Table | null; -} -export interface IndexRelations { - database?: Database | null; - table?: Table | null; -} -export interface PolicyRelations { - database?: Database | null; - table?: Table | null; -} -export interface PrimaryKeyConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface TableGrantRelations { - database?: Database | null; - table?: Table | null; -} -export interface TriggerRelations { - database?: Database | null; - table?: Table | null; -} -export interface UniqueConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface ViewRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; - viewTables?: ConnectionResult; - viewGrants?: ConnectionResult; - viewRules?: ConnectionResult; -} -export interface ViewTableRelations { - table?: Table | null; - view?: View | null; -} -export interface ViewGrantRelations { - database?: Database | null; - view?: View | null; -} -export interface ViewRuleRelations { - database?: Database | null; - view?: View | null; -} -export interface EmbeddingChunkRelations { - chunksTable?: Table | null; - database?: Database | null; - embeddingField?: Field | null; - parentFkField?: Field | null; - table?: Table | null; -} -export interface SecureTableProvisionRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface RelationProvisionRelations { - database?: Database | null; - sourceTable?: Table | null; - targetTable?: Table | null; -} -export interface SessionSecretsModuleRelations { - database?: Database | null; - schema?: Schema | null; - sessionsTable?: Table | null; - table?: Table | null; -} -export interface IdentityProvidersModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface RealtimeModuleRelations { - changeLogTable?: Table | null; - database?: Database | null; - listenerNodeTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sourceRegistryTable?: Table | null; - subscriptionsSchema?: Schema | null; -} -export interface ConfigSecretsOrgModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface SchemaGrantRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface DefaultPrivilegeRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface EnumRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface FunctionRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface ApiSchemaRelations { - api?: Api | null; - database?: Database | null; - schema?: Schema | null; -} -export interface ApiModuleRelations { - api?: Api | null; - database?: Database | null; -} -export interface DomainRelations { - api?: Api | null; - database?: Database | null; - site?: Site | null; -} -export interface SiteMetadatumRelations { - database?: Database | null; - site?: Site | null; -} -export interface SiteModuleRelations { - database?: Database | null; - site?: Site | null; -} -export interface SiteThemeRelations { - database?: Database | null; - site?: Site | null; -} -export interface CorsSettingRelations { - api?: Api | null; - database?: Database | null; -} -export interface MerkleStoreModuleRelations { - commitTable?: Table | null; - database?: Database | null; - objectTable?: Table | null; - privateSchema?: Schema | null; - refTable?: Table | null; - schema?: Schema | null; - storeTable?: Table | null; - graphModules?: ConnectionResult; -} -export interface GraphModuleRelations { - database?: Database | null; - executionsTable?: Table | null; - entityTable?: Table | null; - graphsTable?: Table | null; - merkleStoreModule?: MerkleStoreModule | null; - outputsTable?: Table | null; - privateSchema?: Schema | null; - publicSchema?: Schema | null; -} -export interface TriggerFunctionRelations { - database?: Database | null; -} -export interface PartitionRelations { - database?: Database | null; - partitionKey?: Field | null; - table?: Table | null; -} -export interface DatabaseTransferRelations { - database?: Database | null; -} -export interface ApiRelations { - database?: Database | null; - apiSetting?: ApiSetting | null; - apiModules?: ConnectionResult; - apiSchemas?: ConnectionResult; - domains?: ConnectionResult; - corsSettings?: ConnectionResult; -} -export interface SiteRelations { - database?: Database | null; - app?: App | null; - domains?: ConnectionResult; - siteMetadata?: ConnectionResult; - siteModules?: ConnectionResult; - siteThemes?: ConnectionResult; -} -export interface AppRelations { - site?: Site | null; - database?: Database | null; -} -export interface ApiSettingRelations { - api?: Api | null; - database?: Database | null; -} -export interface ConnectedAccountsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface CryptoAddressesModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface CryptoAuthModuleRelations { - database?: Database | null; - schema?: Schema | null; - secretsTable?: Table | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface DefaultIdsModuleRelations { - database?: Database | null; -} -export interface DenormalizedTableFieldRelations { - database?: Database | null; - field?: Field | null; - refField?: Field | null; - refTable?: Table | null; - table?: Table | null; -} -export interface EmailsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface ConfigSecretsUserModuleRelations { - configDefinitionsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface InvitesModuleRelations { - claimedInvitesTable?: Table | null; - database?: Database | null; - emailsTable?: Table | null; - entityTable?: Table | null; - invitesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usersTable?: Table | null; -} -export interface EventsModuleRelations { - achievementRewardsTable?: Table | null; - actorTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - eventAggregatesTable?: Table | null; - eventTypesTable?: Table | null; - eventsTable?: Table | null; - levelGrantsTable?: Table | null; - levelRequirementsTable?: Table | null; - levelsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface LimitsModuleRelations { - actorTable?: Table | null; - aggregateTable?: Table | null; - creditCodeItemsTable?: Table | null; - creditCodesTable?: Table | null; - creditRedemptionsTable?: Table | null; - database?: Database | null; - defaultTable?: Table | null; - entityTable?: Table | null; - eventsTable?: Table | null; - limitCapsDefaultsTable?: Table | null; - limitCapsTable?: Table | null; - limitCreditsTable?: Table | null; - limitWarningStateTable?: Table | null; - limitWarningsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface MembershipTypesModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface MembershipsModuleRelations { - actorTable?: Table | null; - database?: Database | null; - defaultLimitsTable?: Table | null; - defaultPermissionsTable?: Table | null; - entityTable?: Table | null; - entityTableOwner?: Field | null; - grantsTable?: Table | null; - limitsTable?: Table | null; - membersTable?: Table | null; - membershipDefaultsTable?: Table | null; - membershipSettingsTable?: Table | null; - membershipsTable?: Table | null; - permissionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sprtTable?: Table | null; -} -export interface PermissionsModuleRelations { - actorTable?: Table | null; - database?: Database | null; - defaultTable?: Table | null; - entityTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface PhoneNumbersModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface ProfilesModuleRelations { - actorTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - membershipsTable?: Table | null; - permissionsTable?: Table | null; - privateSchema?: Schema | null; - profileDefinitionGrantsTable?: Table | null; - profileGrantsTable?: Table | null; - profilePermissionsTable?: Table | null; - profileTemplatesTable?: Table | null; - schema?: Schema | null; - table?: Table | null; -} -export interface UserStateModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface SessionsModuleRelations { - authSettingsTableByAuthSettingsTableId?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTableBySessionCredentialsTableId?: Table | null; - sessionsTableBySessionsTableId?: Table | null; - usersTable?: Table | null; -} -export interface UserAuthModuleRelations { - database?: Database | null; - emailsTable?: Table | null; - encryptedTable?: Table | null; - schema?: Schema | null; - secretsTable?: Table | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface UsersModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; - typeTable?: Table | null; -} -export interface BlueprintRelations { - database?: Database | null; - template?: BlueprintTemplate | null; - blueprintConstructions?: ConnectionResult; -} -export interface BlueprintTemplateRelations { - forkedFrom?: BlueprintTemplate | null; - blueprintTemplatesByForkedFromId?: ConnectionResult; - blueprintsByTemplateId?: ConnectionResult; -} -export interface BlueprintConstructionRelations { - blueprint?: Blueprint | null; - database?: Database | null; -} -export interface StorageModuleRelations { - bucketsTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - fileEventsTable?: Table | null; - filesTable?: Table | null; - pathSharesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface EntityTypeProvisionRelations { - database?: Database | null; -} -export interface WebauthnCredentialsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface WebauthnAuthModuleRelations { - authSettingsTable?: Table | null; - credentialsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionSecretsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface NotificationsModuleRelations { - channelsTableByChannelsTableId?: Table | null; - database?: Database | null; - deliveryLogTableByDeliveryLogTableId?: Table | null; - notificationsTableByNotificationsTableId?: Table | null; - organizationSettingsTableByOrganizationSettingsTableId?: Table | null; - ownerTable?: Table | null; - preferencesTableByPreferencesTableId?: Table | null; - privateSchema?: Schema | null; - readStateTableByReadStateTableId?: Table | null; - schema?: Schema | null; - userSettingsTableByUserSettingsTableId?: Table | null; -} -export interface InferenceLogModuleRelations { - database?: Database | null; - inferenceLogTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usageDailyTable?: Table | null; -} -export interface ComputeLogModuleRelations { - computeLogTable?: Table | null; - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usageDailyTable?: Table | null; -} -export interface TransferLogModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - transferLogTable?: Table | null; - usageDailyTable?: Table | null; -} -export interface StorageLogModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - storageLogTable?: Table | null; - usageDailyTable?: Table | null; -} -export interface DbUsageModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - queryStatsDailyTable?: Table | null; - queryStatsLogTable?: Table | null; - schema?: Schema | null; - tableStatsDailyTable?: Table | null; - tableStatsLogTable?: Table | null; -} -export interface AgentModuleRelations { - database?: Database | null; - entityTable?: Table | null; - knowledgeTable?: Table | null; - messageTable?: Table | null; - privateSchema?: Schema | null; - promptsTable?: Table | null; - schema?: Schema | null; - taskTable?: Table | null; - threadTable?: Table | null; -} -export interface NamespaceModuleRelations { - database?: Database | null; - entityTable?: Table | null; - namespaceEventsTable?: Table | null; - namespacesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface FunctionModuleRelations { - configDefinitionsTable?: Table | null; - configRequirementsTable?: Table | null; - database?: Database | null; - definitionsTable?: Table | null; - entityTable?: Table | null; - executionLogsTable?: Table | null; - invocationsTable?: Table | null; - privateSchema?: Schema | null; - requirementsTable?: Table | null; - schema?: Schema | null; - secretDefinitionsTable?: Table | null; -} -export interface DatabaseProvisionModuleRelations { - database?: Database | null; -} -export interface AppAdminGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface AppOwnerGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface AppGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface OrgMembershipRelations { - actor?: User | null; - entity?: User | null; - orgMemberProfileByMembershipId?: OrgMemberProfile | null; -} -export interface OrgMemberRelations { - actor?: User | null; - entity?: User | null; -} -export interface OrgAdminGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgOwnerGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgMemberProfileRelations { - actor?: User | null; - entity?: User | null; - membership?: OrgMembership | null; -} -export interface OrgGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgChartEdgeRelations { - child?: User | null; - entity?: User | null; - parent?: User | null; -} -export interface OrgChartEdgeGrantRelations { - child?: User | null; - entity?: User | null; - grantor?: User | null; - parent?: User | null; -} -export interface OrgPermissionDefaultRelations { - entity?: User | null; -} -export interface AppLimitRelations { - actor?: User | null; -} -export interface AppLimitCreditRelations { - actor?: User | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditCodeItemRelations { - creditCode?: AppLimitCreditCode | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditRedemptionRelations { - creditCode?: AppLimitCreditCode | null; -} -export interface OrgLimitRelations { - actor?: User | null; - entity?: User | null; -} -export interface OrgLimitCreditRelations { - actor?: User | null; - defaultLimit?: OrgLimitDefault | null; - entity?: User | null; -} -export interface OrgLimitAggregateRelations { - entity?: User | null; -} -export interface OrgLimitWarningRelations { - entity?: User | null; -} -export interface EmailRelations { - owner?: User | null; -} -export interface PhoneNumberRelations { - owner?: User | null; -} -export interface CryptoAddressRelations { - owner?: User | null; -} -export interface WebauthnCredentialRelations { - owner?: User | null; -} -export interface AppInviteRelations { - sender?: User | null; -} -export interface AppClaimedInviteRelations { - receiver?: User | null; - sender?: User | null; -} -export interface OrgInviteRelations { - entity?: User | null; - receiver?: User | null; - sender?: User | null; -} -export interface OrgClaimedInviteRelations { - entity?: User | null; - receiver?: User | null; - sender?: User | null; -} -export interface AuditLogAuthRelations { - actor?: User | null; -} -export interface IdentityProviderRelations {} -export interface AppPermissionDefaultRelations {} -export interface RoleTypeRelations {} -export interface MigrateFileRelations {} -export interface DevicesModuleRelations { - database?: Database | null; - deviceSettingsTableByDeviceSettingsTableId?: Table | null; - schema?: Schema | null; - userDevicesTableByUserDevicesTableId?: Table | null; -} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} -export interface NodeTypeRegistryRelations {} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface UserConnectedAccountRelations {} -export interface AppLimitDefaultRelations { - appLimitCreditsByDefaultLimitId?: ConnectionResult; - appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitDefaultRelations { - orgLimitCreditsByDefaultLimitId?: ConnectionResult; -} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitWarningRelations {} -export interface PubkeySettingRelations { - database?: Database | null; - schema?: Schema | null; - signInRecordFailureFunction?: Function | null; - signInRequestChallengeFunction?: Function | null; - signInWithChallengeFunction?: Function | null; - signUpWithKeyFunction?: Function | null; -} -export interface RateLimitsModuleRelations { - database?: Database | null; - ipRateLimitsTableByIpRateLimitsTableId?: Table | null; - rateLimitSettingsTableByRateLimitSettingsTableId?: Table | null; - rateLimitsTableByRateLimitsTableId?: Table | null; - schema?: Schema | null; -} -export interface MembershipTypeRelations {} -export interface RlsSettingRelations { - authenticateFunction?: Function | null; - authenticateSchema?: Schema | null; - authenticateStrictFunction?: Function | null; - currentIpAddressFunction?: Function | null; - currentRoleFunction?: Function | null; - currentRoleIdFunction?: Function | null; - currentUserAgentFunction?: Function | null; - database?: Database | null; - roleSchema?: Schema | null; -} -export interface RlsModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface RateLimitMetersModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - rateLimitOverridesTableByRateLimitOverridesTableId?: Table | null; - rateLimitStateTableByRateLimitStateTableId?: Table | null; - rateWindowLimitsTableByRateWindowLimitsTableId?: Table | null; - schema?: Schema | null; -} -export interface PlansModuleRelations { - database?: Database | null; - planLimitsTable?: Table | null; - planOverridesTable?: Table | null; - planPricingTable?: Table | null; - plansTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface SqlActionRelations {} -export interface DatabaseSettingRelations { - database?: Database | null; -} -export interface OrgMembershipSettingRelations { - entity?: User | null; -} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} -export interface AppMembershipRelations { - actor?: User | null; -} -export interface UserRelations { - roleType?: RoleType | null; - appMembershipByActorId?: AppMembership | null; - orgMembershipDefaultByEntityId?: OrgMembershipDefault | null; - orgMembershipSettingByEntityId?: OrgMembershipSetting | null; - ownedDatabases?: ConnectionResult; - appAdminGrantsByActorId?: ConnectionResult; - appAdminGrantsByGrantorId?: ConnectionResult; - appOwnerGrantsByActorId?: ConnectionResult; - appOwnerGrantsByGrantorId?: ConnectionResult; - appGrantsByActorId?: ConnectionResult; - appGrantsByGrantorId?: ConnectionResult; - orgMembershipsByActorId?: ConnectionResult; - orgMembershipsByEntityId?: ConnectionResult; - orgMembersByActorId?: ConnectionResult; - orgMembersByEntityId?: ConnectionResult; - orgAdminGrantsByActorId?: ConnectionResult; - orgAdminGrantsByEntityId?: ConnectionResult; - orgAdminGrantsByGrantorId?: ConnectionResult; - orgOwnerGrantsByActorId?: ConnectionResult; - orgOwnerGrantsByEntityId?: ConnectionResult; - orgOwnerGrantsByGrantorId?: ConnectionResult; - orgMemberProfilesByActorId?: ConnectionResult; - orgMemberProfilesByEntityId?: ConnectionResult; - orgGrantsByActorId?: ConnectionResult; - orgGrantsByEntityId?: ConnectionResult; - orgGrantsByGrantorId?: ConnectionResult; - parentOrgChartEdges?: ConnectionResult; - orgChartEdgesByEntityId?: ConnectionResult; - childOrgChartEdges?: ConnectionResult; - parentOrgChartEdgeGrants?: ConnectionResult; - orgChartEdgeGrantsByEntityId?: ConnectionResult; - orgChartEdgeGrantsByGrantorId?: ConnectionResult; - childOrgChartEdgeGrants?: ConnectionResult; - orgPermissionDefaultsByEntityId?: ConnectionResult; - appLimitsByActorId?: ConnectionResult; - appLimitCreditsByActorId?: ConnectionResult; - orgLimitsByActorId?: ConnectionResult; - orgLimitsByEntityId?: ConnectionResult; - orgLimitCreditsByActorId?: ConnectionResult; - orgLimitCreditsByEntityId?: ConnectionResult; - orgLimitAggregatesByEntityId?: ConnectionResult; - orgLimitWarningsByEntityId?: ConnectionResult; - ownedEmails?: ConnectionResult; - ownedPhoneNumbers?: ConnectionResult; - ownedCryptoAddresses?: ConnectionResult; - ownedWebauthnCredentials?: ConnectionResult; - appInvitesBySenderId?: ConnectionResult; - appClaimedInvitesByReceiverId?: ConnectionResult; - appClaimedInvitesBySenderId?: ConnectionResult; - orgInvitesByEntityId?: ConnectionResult; - orgInvitesByReceiverId?: ConnectionResult; - orgInvitesBySenderId?: ConnectionResult; - orgClaimedInvitesByEntityId?: ConnectionResult; - orgClaimedInvitesByReceiverId?: ConnectionResult; - orgClaimedInvitesBySenderId?: ConnectionResult; - auditLogAuthsByActorId?: ConnectionResult; -} -export interface AstMigrationRelations {} -export interface WebauthnSettingRelations { - credentialsSchema?: Schema | null; - credentialsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionSecretsSchema?: Schema | null; - sessionSecretsTable?: Table | null; - sessionsSchema?: Schema | null; - sessionsTable?: Table | null; - userField?: Field | null; -} -export interface BillingModuleRelations { - balancesTable?: Table | null; - database?: Database | null; - ledgerTable?: Table | null; - meterCreditsTable?: Table | null; - meterSourcesTable?: Table | null; - metersTable?: Table | null; - planSubscriptionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface BillingProviderModuleRelations { - billingCustomersTable?: Table | null; - billingPricesTable?: Table | null; - billingProductsTable?: Table | null; - billingSubscriptionsTable?: Table | null; - billingWebhookEventsTable?: Table | null; - database?: Database | null; - pricesTable?: Table | null; - privateSchema?: Schema | null; - productsTable?: Table | null; - schema?: Schema | null; - subscriptionsTable?: Table | null; -} -export interface HierarchyModuleRelations { - chartEdgeGrantsTable?: Table | null; - chartEdgesTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - hierarchySprtTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usersTable?: Table | null; -} -// ============ Entity Types With Relations ============ -export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & - OrgGetManagersRecordRelations; -export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & - OrgGetSubordinatesRecordRelations; -export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; -export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type DatabaseWithRelations = Database & DatabaseRelations; -export type SchemaWithRelations = Schema & SchemaRelations; -export type TableWithRelations = Table & TableRelations; -export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; -export type FieldWithRelations = Field & FieldRelations; -export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; -export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & - ForeignKeyConstraintRelations; -export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; -export type IndexWithRelations = Index & IndexRelations; -export type PolicyWithRelations = Policy & PolicyRelations; -export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & - PrimaryKeyConstraintRelations; -export type TableGrantWithRelations = TableGrant & TableGrantRelations; -export type TriggerWithRelations = Trigger & TriggerRelations; -export type UniqueConstraintWithRelations = UniqueConstraint & UniqueConstraintRelations; -export type ViewWithRelations = View & ViewRelations; -export type ViewTableWithRelations = ViewTable & ViewTableRelations; -export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; -export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; -export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; -export type SecureTableProvisionWithRelations = SecureTableProvision & - SecureTableProvisionRelations; -export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; -export type SessionSecretsModuleWithRelations = SessionSecretsModule & - SessionSecretsModuleRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; -export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; -export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & - ConfigSecretsOrgModuleRelations; -export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; -export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; -export type EnumWithRelations = Enum & EnumRelations; -export type FunctionWithRelations = Function & FunctionRelations; -export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; -export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; -export type DomainWithRelations = Domain & DomainRelations; -export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; -export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; -export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; -export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; -export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; -export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; -export type PartitionWithRelations = Partition & PartitionRelations; -export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; -export type ApiWithRelations = Api & ApiRelations; -export type SiteWithRelations = Site & SiteRelations; -export type AppWithRelations = App & AppRelations; -export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & - ConnectedAccountsModuleRelations; -export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & - CryptoAddressesModuleRelations; -export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; -export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; -export type DenormalizedTableFieldWithRelations = DenormalizedTableField & - DenormalizedTableFieldRelations; -export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; -export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; -export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; -export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; -export type MembershipTypesModuleWithRelations = MembershipTypesModule & - MembershipTypesModuleRelations; -export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; -export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; -export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; -export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; -export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; -export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; -export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; -export type BlueprintWithRelations = Blueprint & BlueprintRelations; -export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; -export type BlueprintConstructionWithRelations = BlueprintConstruction & - BlueprintConstructionRelations; -export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; -export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; -export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & - WebauthnCredentialsModuleRelations; -export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; -export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; -export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; -export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; -export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; -export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; -export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & - DatabaseProvisionModuleRelations; -export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; -export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; -export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & - AppLimitCreditCodeItemRelations; -export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & - AppLimitCreditRedemptionRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; -export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; -export type EmailWithRelations = Email & EmailRelations; -export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; -export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; -export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; -export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; -export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; -export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type UserConnectedAccountWithRelations = UserConnectedAccount & - UserConnectedAccountRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; -export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; -export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & - RateLimitMetersModuleRelations; -export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; -export type SqlActionWithRelations = SqlAction & SqlActionRelations; -export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type OrgMembershipSettingWithRelations = OrgMembershipSetting & - OrgMembershipSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type UserWithRelations = User & UserRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type BillingProviderModuleWithRelations = BillingProviderModule & - BillingProviderModuleRelations; -export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -// ============ Entity Select Types ============ -export type OrgGetManagersRecordSelect = { - userId?: boolean; - depth?: boolean; -}; -export type OrgGetSubordinatesRecordSelect = { - userId?: boolean; - depth?: boolean; -}; -export type AppPermissionSelect = { - id?: boolean; - name?: boolean; - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; -}; -export type OrgPermissionSelect = { - id?: boolean; - name?: boolean; - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; -}; -export type DatabaseSelect = { - id?: boolean; - ownerId?: boolean; - schemaHash?: boolean; - name?: boolean; - label?: boolean; - hash?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - rlsSetting?: { - select: RlsSettingSelect; - }; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - rlsModule?: { - select: RlsModuleSelect; - }; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - devicesModule?: { - select: DevicesModuleSelect; - }; - plansModule?: { - select: PlansModuleSelect; - }; - billingModule?: { - select: BillingModuleSelect; - }; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - schemas?: { - select: SchemaSelect; - first?: number; - filter?: SchemaFilter; - orderBy?: SchemaOrderBy[]; - }; - tables?: { - select: TableSelect; - first?: number; - filter?: TableFilter; - orderBy?: TableOrderBy[]; - }; - checkConstraints?: { - select: CheckConstraintSelect; - first?: number; - filter?: CheckConstraintFilter; - orderBy?: CheckConstraintOrderBy[]; - }; - fields?: { - select: FieldSelect; - first?: number; - filter?: FieldFilter; - orderBy?: FieldOrderBy[]; - }; - foreignKeyConstraints?: { - select: ForeignKeyConstraintSelect; - first?: number; - filter?: ForeignKeyConstraintFilter; - orderBy?: ForeignKeyConstraintOrderBy[]; - }; - fullTextSearches?: { - select: FullTextSearchSelect; - first?: number; - filter?: FullTextSearchFilter; - orderBy?: FullTextSearchOrderBy[]; - }; - indices?: { - select: IndexSelect; - first?: number; - filter?: IndexFilter; - orderBy?: IndexOrderBy[]; - }; - policies?: { - select: PolicySelect; - first?: number; - filter?: PolicyFilter; - orderBy?: PolicyOrderBy[]; - }; - primaryKeyConstraints?: { - select: PrimaryKeyConstraintSelect; - first?: number; - filter?: PrimaryKeyConstraintFilter; - orderBy?: PrimaryKeyConstraintOrderBy[]; - }; - schemaGrants?: { - select: SchemaGrantSelect; - first?: number; - filter?: SchemaGrantFilter; - orderBy?: SchemaGrantOrderBy[]; - }; - tableGrants?: { - select: TableGrantSelect; - first?: number; - filter?: TableGrantFilter; - orderBy?: TableGrantOrderBy[]; - }; - triggerFunctions?: { - select: TriggerFunctionSelect; - first?: number; - filter?: TriggerFunctionFilter; - orderBy?: TriggerFunctionOrderBy[]; - }; - triggers?: { - select: TriggerSelect; - first?: number; - filter?: TriggerFilter; - orderBy?: TriggerOrderBy[]; - }; - uniqueConstraints?: { - select: UniqueConstraintSelect; - first?: number; - filter?: UniqueConstraintFilter; - orderBy?: UniqueConstraintOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - viewGrants?: { - select: ViewGrantSelect; - first?: number; - filter?: ViewGrantFilter; - orderBy?: ViewGrantOrderBy[]; - }; - viewRules?: { - select: ViewRuleSelect; - first?: number; - filter?: ViewRuleFilter; - orderBy?: ViewRuleOrderBy[]; - }; - defaultPrivileges?: { - select: DefaultPrivilegeSelect; - first?: number; - filter?: DefaultPrivilegeFilter; - orderBy?: DefaultPrivilegeOrderBy[]; - }; - enums?: { - select: EnumSelect; - first?: number; - filter?: EnumFilter; - orderBy?: EnumOrderBy[]; - }; - embeddingChunks?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - functions?: { - select: FunctionSelect; - first?: number; - filter?: FunctionFilter; - orderBy?: FunctionOrderBy[]; - }; - partitions?: { - select: PartitionSelect; - first?: number; - filter?: PartitionFilter; - orderBy?: PartitionOrderBy[]; - }; - databaseTransfers?: { - select: DatabaseTransferSelect; - first?: number; - filter?: DatabaseTransferFilter; - orderBy?: DatabaseTransferOrderBy[]; - }; - apis?: { - select: ApiSelect; - first?: number; - filter?: ApiFilter; - orderBy?: ApiOrderBy[]; - }; - apiModules?: { - select: ApiModuleSelect; - first?: number; - filter?: ApiModuleFilter; - orderBy?: ApiModuleOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - sites?: { - select: SiteSelect; - first?: number; - filter?: SiteFilter; - orderBy?: SiteOrderBy[]; - }; - apps?: { - select: AppSelect; - first?: number; - filter?: AppFilter; - orderBy?: AppOrderBy[]; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - siteMetadata?: { - select: SiteMetadatumSelect; - first?: number; - filter?: SiteMetadatumFilter; - orderBy?: SiteMetadatumOrderBy[]; - }; - siteModules?: { - select: SiteModuleSelect; - first?: number; - filter?: SiteModuleFilter; - orderBy?: SiteModuleOrderBy[]; - }; - siteThemes?: { - select: SiteThemeSelect; - first?: number; - filter?: SiteThemeFilter; - orderBy?: SiteThemeOrderBy[]; - }; - apiSettings?: { - select: ApiSettingSelect; - first?: number; - filter?: ApiSettingFilter; - orderBy?: ApiSettingOrderBy[]; - }; - corsSettings?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; - }; - connectedAccountsModules?: { - select: ConnectedAccountsModuleSelect; - first?: number; - filter?: ConnectedAccountsModuleFilter; - orderBy?: ConnectedAccountsModuleOrderBy[]; - }; - cryptoAddressesModules?: { - select: CryptoAddressesModuleSelect; - first?: number; - filter?: CryptoAddressesModuleFilter; - orderBy?: CryptoAddressesModuleOrderBy[]; - }; - cryptoAuthModules?: { - select: CryptoAuthModuleSelect; - first?: number; - filter?: CryptoAuthModuleFilter; - orderBy?: CryptoAuthModuleOrderBy[]; - }; - defaultIdsModules?: { - select: DefaultIdsModuleSelect; - first?: number; - filter?: DefaultIdsModuleFilter; - orderBy?: DefaultIdsModuleOrderBy[]; - }; - denormalizedTableFields?: { - select: DenormalizedTableFieldSelect; - first?: number; - filter?: DenormalizedTableFieldFilter; - orderBy?: DenormalizedTableFieldOrderBy[]; - }; - emailsModules?: { - select: EmailsModuleSelect; - first?: number; - filter?: EmailsModuleFilter; - orderBy?: EmailsModuleOrderBy[]; - }; - configSecretsUserModules?: { - select: ConfigSecretsUserModuleSelect; - first?: number; - filter?: ConfigSecretsUserModuleFilter; - orderBy?: ConfigSecretsUserModuleOrderBy[]; - }; - invitesModules?: { - select: InvitesModuleSelect; - first?: number; - filter?: InvitesModuleFilter; - orderBy?: InvitesModuleOrderBy[]; - }; - eventsModules?: { - select: EventsModuleSelect; - first?: number; - filter?: EventsModuleFilter; - orderBy?: EventsModuleOrderBy[]; - }; - limitsModules?: { - select: LimitsModuleSelect; - first?: number; - filter?: LimitsModuleFilter; - orderBy?: LimitsModuleOrderBy[]; - }; - membershipTypesModules?: { - select: MembershipTypesModuleSelect; - first?: number; - filter?: MembershipTypesModuleFilter; - orderBy?: MembershipTypesModuleOrderBy[]; - }; - membershipsModules?: { - select: MembershipsModuleSelect; - first?: number; - filter?: MembershipsModuleFilter; - orderBy?: MembershipsModuleOrderBy[]; - }; - permissionsModules?: { - select: PermissionsModuleSelect; - first?: number; - filter?: PermissionsModuleFilter; - orderBy?: PermissionsModuleOrderBy[]; - }; - phoneNumbersModules?: { - select: PhoneNumbersModuleSelect; - first?: number; - filter?: PhoneNumbersModuleFilter; - orderBy?: PhoneNumbersModuleOrderBy[]; - }; - profilesModules?: { - select: ProfilesModuleSelect; - first?: number; - filter?: ProfilesModuleFilter; - orderBy?: ProfilesModuleOrderBy[]; - }; - userStateModules?: { - select: UserStateModuleSelect; - first?: number; - filter?: UserStateModuleFilter; - orderBy?: UserStateModuleOrderBy[]; - }; - sessionsModules?: { - select: SessionsModuleSelect; - first?: number; - filter?: SessionsModuleFilter; - orderBy?: SessionsModuleOrderBy[]; - }; - userAuthModules?: { - select: UserAuthModuleSelect; - first?: number; - filter?: UserAuthModuleFilter; - orderBy?: UserAuthModuleOrderBy[]; - }; - usersModules?: { - select: UsersModuleSelect; - first?: number; - filter?: UsersModuleFilter; - orderBy?: UsersModuleOrderBy[]; - }; - secureTableProvisions?: { - select: SecureTableProvisionSelect; - first?: number; - filter?: SecureTableProvisionFilter; - orderBy?: SecureTableProvisionOrderBy[]; - }; - relationProvisions?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - blueprints?: { - select: BlueprintSelect; - first?: number; - filter?: BlueprintFilter; - orderBy?: BlueprintOrderBy[]; - }; - blueprintConstructions?: { - select: BlueprintConstructionSelect; - first?: number; - filter?: BlueprintConstructionFilter; - orderBy?: BlueprintConstructionOrderBy[]; - }; - storageModules?: { - select: StorageModuleSelect; - first?: number; - filter?: StorageModuleFilter; - orderBy?: StorageModuleOrderBy[]; - }; - entityTypeProvisions?: { - select: EntityTypeProvisionSelect; - first?: number; - filter?: EntityTypeProvisionFilter; - orderBy?: EntityTypeProvisionOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - webauthnCredentialsModules?: { - select: WebauthnCredentialsModuleSelect; - first?: number; - filter?: WebauthnCredentialsModuleFilter; - orderBy?: WebauthnCredentialsModuleOrderBy[]; - }; - webauthnAuthModules?: { - select: WebauthnAuthModuleSelect; - first?: number; - filter?: WebauthnAuthModuleFilter; - orderBy?: WebauthnAuthModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - notificationsModules?: { - select: NotificationsModuleSelect; - first?: number; - filter?: NotificationsModuleFilter; - orderBy?: NotificationsModuleOrderBy[]; - }; - realtimeModules?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; - inferenceLogModules?: { - select: InferenceLogModuleSelect; - first?: number; - filter?: InferenceLogModuleFilter; - orderBy?: InferenceLogModuleOrderBy[]; - }; - computeLogModules?: { - select: ComputeLogModuleSelect; - first?: number; - filter?: ComputeLogModuleFilter; - orderBy?: ComputeLogModuleOrderBy[]; - }; - transferLogModules?: { - select: TransferLogModuleSelect; - first?: number; - filter?: TransferLogModuleFilter; - orderBy?: TransferLogModuleOrderBy[]; - }; - storageLogModules?: { - select: StorageLogModuleSelect; - first?: number; - filter?: StorageLogModuleFilter; - orderBy?: StorageLogModuleOrderBy[]; - }; - dbUsageModules?: { - select: DbUsageModuleSelect; - first?: number; - filter?: DbUsageModuleFilter; - orderBy?: DbUsageModuleOrderBy[]; - }; - agentModules?: { - select: AgentModuleSelect; - first?: number; - filter?: AgentModuleFilter; - orderBy?: AgentModuleOrderBy[]; - }; - merkleStoreModules?: { - select: MerkleStoreModuleSelect; - first?: number; - filter?: MerkleStoreModuleFilter; - orderBy?: MerkleStoreModuleOrderBy[]; - }; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; - }; - namespaceModules?: { - select: NamespaceModuleSelect; - first?: number; - filter?: NamespaceModuleFilter; - orderBy?: NamespaceModuleOrderBy[]; - }; - functionModules?: { - select: FunctionModuleSelect; - first?: number; - filter?: FunctionModuleFilter; - orderBy?: FunctionModuleOrderBy[]; - }; - databaseProvisionModules?: { - select: DatabaseProvisionModuleSelect; - first?: number; - filter?: DatabaseProvisionModuleFilter; - orderBy?: DatabaseProvisionModuleOrderBy[]; - }; -}; -export type SchemaSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - schemaName?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - isPublic?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - tables?: { - select: TableSelect; - first?: number; - filter?: TableFilter; - orderBy?: TableOrderBy[]; - }; - schemaGrants?: { - select: SchemaGrantSelect; - first?: number; - filter?: SchemaGrantFilter; - orderBy?: SchemaGrantOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - defaultPrivileges?: { - select: DefaultPrivilegeSelect; - first?: number; - filter?: DefaultPrivilegeFilter; - orderBy?: DefaultPrivilegeOrderBy[]; - }; - enums?: { - select: EnumSelect; - first?: number; - filter?: EnumFilter; - orderBy?: EnumOrderBy[]; - }; - functions?: { - select: FunctionSelect; - first?: number; - filter?: FunctionFilter; - orderBy?: FunctionOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - identityProvidersModulesByPrivateSchemaId?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - realtimeModulesByPrivateSchemaId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModules?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesBySubscriptionsSchemaId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; - merkleStoreModulesByPrivateSchemaId?: { - select: MerkleStoreModuleSelect; - first?: number; - filter?: MerkleStoreModuleFilter; - orderBy?: MerkleStoreModuleOrderBy[]; - }; -}; -export type TableSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: boolean; - singularName?: boolean; - tags?: boolean; - partitioned?: boolean; - partitionStrategy?: boolean; - partitionKeyNames?: boolean; - partitionKeyTypes?: boolean; - inheritsId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - inherits?: { - select: TableSelect; - }; - partition?: { - select: PartitionSelect; - }; - checkConstraints?: { - select: CheckConstraintSelect; - first?: number; - filter?: CheckConstraintFilter; - orderBy?: CheckConstraintOrderBy[]; - }; - fields?: { - select: FieldSelect; - first?: number; - filter?: FieldFilter; - orderBy?: FieldOrderBy[]; - }; - foreignKeyConstraints?: { - select: ForeignKeyConstraintSelect; - first?: number; - filter?: ForeignKeyConstraintFilter; - orderBy?: ForeignKeyConstraintOrderBy[]; - }; - fullTextSearches?: { - select: FullTextSearchSelect; - first?: number; - filter?: FullTextSearchFilter; - orderBy?: FullTextSearchOrderBy[]; - }; - indices?: { - select: IndexSelect; - first?: number; - filter?: IndexFilter; - orderBy?: IndexOrderBy[]; - }; - policies?: { - select: PolicySelect; - first?: number; - filter?: PolicyFilter; - orderBy?: PolicyOrderBy[]; - }; - primaryKeyConstraints?: { - select: PrimaryKeyConstraintSelect; - first?: number; - filter?: PrimaryKeyConstraintFilter; - orderBy?: PrimaryKeyConstraintOrderBy[]; - }; - tableGrants?: { - select: TableGrantSelect; - first?: number; - filter?: TableGrantFilter; - orderBy?: TableGrantOrderBy[]; - }; - triggers?: { - select: TriggerSelect; - first?: number; - filter?: TriggerFilter; - orderBy?: TriggerOrderBy[]; - }; - uniqueConstraints?: { - select: UniqueConstraintSelect; - first?: number; - filter?: UniqueConstraintFilter; - orderBy?: UniqueConstraintOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - viewTables?: { - select: ViewTableSelect; - first?: number; - filter?: ViewTableFilter; - orderBy?: ViewTableOrderBy[]; - }; - embeddingChunksByChunksTableId?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - embeddingChunks?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - spatialRelationsByRefTableId?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - secureTableProvisions?: { - select: SecureTableProvisionSelect; - first?: number; - filter?: SecureTableProvisionFilter; - orderBy?: SecureTableProvisionOrderBy[]; - }; - relationProvisionsBySourceTableId?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - relationProvisionsByTargetTableId?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - sessionSecretsModulesBySessionsTableId?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - realtimeModulesByChangeLogTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesByListenerNodeTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesBySourceRegistryTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; -}; -export type CheckConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - type?: boolean; - fieldIds?: boolean; - expr?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type FieldSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: boolean; - type?: boolean; - fieldOrder?: boolean; - regexp?: boolean; - chk?: boolean; - chkExpr?: boolean; - min?: boolean; - max?: boolean; - tags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - spatialRelationsByRefFieldId?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; -}; -export type SpatialRelationSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - refTableId?: boolean; - refFieldId?: boolean; - name?: boolean; - operator?: boolean; - paramName?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - field?: { - select: FieldSelect; - }; - refField?: { - select: FieldSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ForeignKeyConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - description?: boolean; - smartTags?: boolean; - type?: boolean; - fieldIds?: boolean; - refTableId?: boolean; - refFieldIds?: boolean; - deleteAction?: boolean; - updateAction?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type FullTextSearchSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - fieldIds?: boolean; - weights?: boolean; - langs?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type IndexSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - fieldIds?: boolean; - includeFieldIds?: boolean; - accessMethod?: boolean; - indexParams?: boolean; - whereClause?: boolean; - isUnique?: boolean; - options?: boolean; - opClasses?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PolicySelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - granteeName?: boolean; - privilege?: boolean; - permissive?: boolean; - disabled?: boolean; - policyType?: boolean; - data?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PrimaryKeyConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - type?: boolean; - fieldIds?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type TableGrantSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - privilege?: boolean; - granteeName?: boolean; - fieldIds?: boolean; - isGrant?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type TriggerSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - event?: boolean; - functionName?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type UniqueConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - description?: boolean; - smartTags?: boolean; - type?: boolean; - fieldIds?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ViewSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - tableId?: boolean; - viewType?: boolean; - data?: boolean; - filterType?: boolean; - filterData?: boolean; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; - viewTables?: { - select: ViewTableSelect; - first?: number; - filter?: ViewTableFilter; - orderBy?: ViewTableOrderBy[]; - }; - viewGrants?: { - select: ViewGrantSelect; - first?: number; - filter?: ViewGrantFilter; - orderBy?: ViewGrantOrderBy[]; - }; - viewRules?: { - select: ViewRuleSelect; - first?: number; - filter?: ViewRuleFilter; - orderBy?: ViewRuleOrderBy[]; - }; -}; -export type ViewTableSelect = { - id?: boolean; - viewId?: boolean; - tableId?: boolean; - joinOrder?: boolean; - table?: { - select: TableSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type ViewGrantSelect = { - id?: boolean; - databaseId?: boolean; - viewId?: boolean; - granteeName?: boolean; - privilege?: boolean; - withGrantOption?: boolean; - isGrant?: boolean; - database?: { - select: DatabaseSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type ViewRuleSelect = { - id?: boolean; - databaseId?: boolean; - viewId?: boolean; - name?: boolean; - event?: boolean; - action?: boolean; - database?: { - select: DatabaseSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type EmbeddingChunkSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - embeddingFieldId?: boolean; - chunksTableId?: boolean; - chunksTableName?: boolean; - contentFieldName?: boolean; - dimensions?: boolean; - metric?: boolean; - chunkSize?: boolean; - chunkOverlap?: boolean; - chunkStrategy?: boolean; - metadataFields?: boolean; - searchIndexes?: boolean; - enqueueChunkingJob?: boolean; - chunkingTaskName?: boolean; - embeddingModel?: boolean; - embeddingProvider?: boolean; - parentFkFieldId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - chunksTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - embeddingField?: { - select: FieldSelect; - }; - parentFkField?: { - select: FieldSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SecureTableProvisionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - nodes?: boolean; - useRls?: boolean; - fields?: boolean; - grants?: boolean; - policies?: boolean; - outFields?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -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; - database?: { - select: DatabaseSelect; - }; - sourceTable?: { - select: TableSelect; - }; - targetTable?: { - select: TableSelect; - }; -}; -export type SessionSecretsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - sessionsTableId?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -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; - changeLogTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - listenerNodeTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sourceRegistryTable?: { - select: TableSelect; - }; - subscriptionsSchema?: { - select: SchemaSelect; - }; -}; -export type ConfigSecretsOrgModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SchemaGrantSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - granteeName?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type DefaultPrivilegeSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - objectType?: boolean; - privilege?: boolean; - granteeName?: boolean; - isGrant?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type EnumSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - values?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type FunctionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type ApiSchemaSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - apiId?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type ApiModuleSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - name?: boolean; - data?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type DomainSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - siteId?: boolean; - subdomain?: boolean; - domain?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteMetadatumSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - title?: boolean; - description?: boolean; - ogImage?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteModuleSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - name?: boolean; - data?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteThemeSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - theme?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type CorsSettingSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - allowedOrigins?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type MerkleStoreModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - objectTableId?: boolean; - storeTableId?: boolean; - commitTableId?: boolean; - refTableId?: boolean; - prefix?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scopeField?: boolean; - createdAt?: boolean; - commitTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - objectTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - refTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - storeTable?: { - select: TableSelect; - }; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; - }; -}; -export type GraphModuleSelect = { - id?: boolean; - databaseId?: boolean; - publicSchemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - prefix?: boolean; - merkleStoreModuleId?: boolean; - graphsTableId?: boolean; - executionsTableId?: boolean; - outputsTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scopeField?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - createdAt?: boolean; - database?: { - select: DatabaseSelect; - }; - executionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - graphsTable?: { - select: TableSelect; - }; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - outputsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - publicSchema?: { - select: SchemaSelect; - }; -}; -export type TriggerFunctionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - code?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type PartitionSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - strategy?: boolean; - partitionKeyId?: boolean; - interval?: boolean; - retention?: boolean; - retentionKeepTable?: boolean; - premake?: boolean; - namingPattern?: boolean; - isParented?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - partitionKey?: { - select: FieldSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type DatabaseTransferSelect = { - id?: boolean; - databaseId?: boolean; - targetOwnerId?: boolean; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: boolean; - targetApprovedAt?: boolean; - status?: boolean; - initiatedBy?: boolean; - notes?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - completedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type ApiSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - dbname?: boolean; - roleName?: boolean; - anonRole?: boolean; - isPublic?: boolean; - database?: { - select: DatabaseSelect; - }; - apiSetting?: { - select: ApiSettingSelect; - }; - apiModules?: { - select: ApiModuleSelect; - first?: number; - filter?: ApiModuleFilter; - orderBy?: ApiModuleOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - corsSettings?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; - }; -}; -export type SiteSelect = { - id?: boolean; - databaseId?: boolean; - title?: boolean; - description?: boolean; - ogImage?: boolean; - favicon?: boolean; - appleTouchIcon?: boolean; - logo?: boolean; - dbname?: boolean; - database?: { - select: DatabaseSelect; - }; - app?: { - select: AppSelect; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - siteMetadata?: { - select: SiteMetadatumSelect; - first?: number; - filter?: SiteMetadatumFilter; - orderBy?: SiteMetadatumOrderBy[]; - }; - siteModules?: { - select: SiteModuleSelect; - first?: number; - filter?: SiteModuleFilter; - orderBy?: SiteModuleOrderBy[]; - }; - siteThemes?: { - select: SiteThemeSelect; - first?: number; - filter?: SiteThemeFilter; - orderBy?: SiteThemeOrderBy[]; - }; -}; -export type AppSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - name?: boolean; - appImage?: boolean; - appStoreLink?: boolean; - appStoreId?: boolean; - appIdPrefix?: boolean; - playStoreLink?: boolean; - site?: { - select: SiteSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type ApiSettingSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type ConnectedAccountsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type CryptoAddressesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - cryptoNetwork?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type CryptoAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - usersTableId?: boolean; - secretsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - addressesTableId?: boolean; - userField?: boolean; - cryptoNetwork?: boolean; - signInRequestChallenge?: boolean; - signInRecordFailure?: boolean; - signUpWithKey?: boolean; - signInWithChallenge?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretsTable?: { - select: TableSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type DefaultIdsModuleSelect = { - id?: boolean; - databaseId?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type DenormalizedTableFieldSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - setIds?: boolean; - refTableId?: boolean; - refFieldId?: boolean; - refIds?: boolean; - useUpdates?: boolean; - updateDefaults?: boolean; - funcName?: boolean; - funcOrder?: boolean; - database?: { - select: DatabaseSelect; - }; - field?: { - select: FieldSelect; - }; - refField?: { - select: FieldSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type EmailsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ConfigSecretsUserModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - configDefinitionsTableId?: boolean; - configDefinitionsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type InvitesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - claimedInvitesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - emailsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - invitesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type EventsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - eventsTableId?: boolean; - eventsTableName?: boolean; - eventAggregatesTableId?: boolean; - eventAggregatesTableName?: boolean; - eventTypesTableId?: boolean; - eventTypesTableName?: boolean; - levelsTableId?: boolean; - levelsTableName?: boolean; - levelRequirementsTableId?: boolean; - levelRequirementsTableName?: boolean; - levelGrantsTableId?: boolean; - levelGrantsTableName?: boolean; - achievementRewardsTableId?: boolean; - achievementRewardsTableName?: boolean; - recordEvent?: boolean; - removeEvent?: boolean; - tgEvent?: boolean; - tgEventToggle?: boolean; - tgEventToggleBool?: boolean; - tgEventBool?: boolean; - upsertAggregate?: boolean; - tgUpdateAggregates?: boolean; - pruneEvents?: boolean; - stepsRequired?: boolean; - levelAchieved?: boolean; - tgCheckAchievements?: boolean; - grantAchievement?: boolean; - tgAchievementReward?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - achievementRewardsTable?: { - select: TableSelect; - }; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - eventAggregatesTable?: { - select: TableSelect; - }; - eventTypesTable?: { - select: TableSelect; - }; - eventsTable?: { - select: TableSelect; - }; - levelGrantsTable?: { - select: TableSelect; - }; - levelRequirementsTable?: { - select: TableSelect; - }; - levelsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type LimitsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - limitIncrementFunction?: boolean; - limitDecrementFunction?: boolean; - limitIncrementTrigger?: boolean; - limitDecrementTrigger?: boolean; - limitUpdateTrigger?: boolean; - limitCheckFunction?: boolean; - limitCreditsTableId?: boolean; - eventsTableId?: boolean; - creditCodesTableId?: boolean; - creditCodeItemsTableId?: boolean; - creditRedemptionsTableId?: boolean; - aggregateTableId?: boolean; - limitCapsTableId?: boolean; - limitCapsDefaultsTableId?: boolean; - capCheckTrigger?: boolean; - resolveCapFunction?: boolean; - limitWarningsTableId?: boolean; - limitWarningStateTableId?: boolean; - limitCheckSoftFunction?: boolean; - limitAggregateCheckSoftFunction?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - actorTable?: { - select: TableSelect; - }; - aggregateTable?: { - select: TableSelect; - }; - creditCodeItemsTable?: { - select: TableSelect; - }; - creditCodesTable?: { - select: TableSelect; - }; - creditRedemptionsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - eventsTable?: { - select: TableSelect; - }; - limitCapsDefaultsTable?: { - select: TableSelect; - }; - limitCapsTable?: { - select: TableSelect; - }; - limitCreditsTable?: { - select: TableSelect; - }; - limitWarningStateTable?: { - select: TableSelect; - }; - limitWarningsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type MembershipTypesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type MembershipsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: 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; - membershipType?: boolean; - entityTableId?: boolean; - entityTableOwnerId?: boolean; - prefix?: boolean; - getOrgFn?: boolean; - actorMaskCheck?: boolean; - actorPermCheck?: boolean; - entityIdsByMask?: boolean; - entityIdsByPerm?: boolean; - entityIdsFunction?: boolean; - memberProfilesTableId?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultLimitsTable?: { - select: TableSelect; - }; - defaultPermissionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - entityTableOwner?: { - select: FieldSelect; - }; - grantsTable?: { - select: TableSelect; - }; - limitsTable?: { - select: TableSelect; - }; - membersTable?: { - select: TableSelect; - }; - membershipDefaultsTable?: { - select: TableSelect; - }; - membershipSettingsTable?: { - select: TableSelect; - }; - membershipsTable?: { - select: TableSelect; - }; - permissionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sprtTable?: { - select: TableSelect; - }; -}; -export type PermissionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - prefix?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PhoneNumbersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ProfilesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - profilePermissionsTableId?: boolean; - profilePermissionsTableName?: boolean; - profileGrantsTableId?: boolean; - profileGrantsTableName?: boolean; - profileDefinitionGrantsTableId?: boolean; - profileDefinitionGrantsTableName?: boolean; - profileTemplatesTableId?: boolean; - profileTemplatesTableName?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - permissionsTableId?: boolean; - membershipsTableId?: boolean; - prefix?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - membershipsTable?: { - select: TableSelect; - }; - permissionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - profileDefinitionGrantsTable?: { - select: TableSelect; - }; - profileGrantsTable?: { - select: TableSelect; - }; - profilePermissionsTable?: { - select: TableSelect; - }; - profileTemplatesTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type UserStateModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SessionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - authSettingsTableId?: boolean; - usersTableId?: boolean; - sessionsDefaultExpiration?: boolean; - sessionsTable?: boolean; - sessionCredentialsTable?: boolean; - authSettingsTable?: boolean; - authSettingsTableByAuthSettingsTableId?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTableBySessionCredentialsTableId?: { - select: TableSelect; - }; - sessionsTableBySessionsTableId?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type UserAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - secretsTableId?: boolean; - encryptedTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - auditsTableId?: boolean; - auditsTableName?: boolean; - signInFunction?: boolean; - signUpFunction?: boolean; - signOutFunction?: boolean; - setPasswordFunction?: boolean; - resetPasswordFunction?: boolean; - forgotPasswordFunction?: boolean; - sendVerificationEmailFunction?: boolean; - verifyEmailFunction?: boolean; - verifyPasswordFunction?: boolean; - checkPasswordFunction?: boolean; - sendAccountDeletionEmailFunction?: boolean; - deleteAccountFunction?: boolean; - signInCrossOriginFunction?: boolean; - requestCrossOriginTokenFunction?: boolean; - extendTokenExpires?: boolean; - database?: { - select: DatabaseSelect; - }; - emailsTable?: { - select: TableSelect; - }; - encryptedTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretsTable?: { - select: TableSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type UsersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - typeTableId?: boolean; - typeTableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; - typeTable?: { - select: TableSelect; - }; -}; -export type BlueprintSelect = { - id?: boolean; - ownerId?: boolean; - databaseId?: boolean; - name?: boolean; - displayName?: boolean; - description?: boolean; - definition?: boolean; - templateId?: boolean; - definitionHash?: boolean; - tableHashes?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - template?: { - select: BlueprintTemplateSelect; - }; - blueprintConstructions?: { - select: BlueprintConstructionSelect; - first?: number; - filter?: BlueprintConstructionFilter; - orderBy?: BlueprintConstructionOrderBy[]; - }; -}; -export type BlueprintTemplateSelect = { - id?: boolean; - name?: boolean; - version?: boolean; - displayName?: boolean; - description?: boolean; - ownerId?: boolean; - visibility?: boolean; - categories?: boolean; - tags?: boolean; - definition?: boolean; - definitionSchemaVersion?: boolean; - source?: boolean; - complexity?: boolean; - copyCount?: boolean; - forkCount?: boolean; - forkedFromId?: boolean; - definitionHash?: boolean; - tableHashes?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - forkedFrom?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplatesByForkedFromId?: { - select: BlueprintTemplateSelect; - first?: number; - filter?: BlueprintTemplateFilter; - orderBy?: BlueprintTemplateOrderBy[]; - }; - blueprintsByTemplateId?: { - select: BlueprintSelect; - first?: number; - filter?: BlueprintFilter; - orderBy?: BlueprintOrderBy[]; - }; -}; -export type BlueprintConstructionSelect = { - id?: boolean; - blueprintId?: boolean; - databaseId?: boolean; - schemaId?: boolean; - status?: boolean; - errorDetails?: boolean; - tableMap?: boolean; - constructedDefinition?: boolean; - constructedAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type StorageModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - bucketsTableId?: boolean; - filesTableId?: boolean; - bucketsTableName?: boolean; - filesTableName?: boolean; - membershipType?: boolean; - key?: boolean; - policies?: boolean; - provisions?: boolean; - entityTableId?: boolean; - endpoint?: boolean; - publicUrlPrefix?: boolean; - provider?: boolean; - allowedOrigins?: boolean; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: boolean; - uploadUrlExpirySeconds?: boolean; - downloadUrlExpirySeconds?: boolean; - defaultMaxFileSize?: boolean; - maxFilenameLength?: boolean; - cacheTtlSeconds?: boolean; - maxBulkFiles?: boolean; - maxBulkTotalSize?: boolean; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: boolean; - fileEventsTableId?: boolean; - bucketsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - fileEventsTable?: { - select: TableSelect; - }; - filesTable?: { - select: TableSelect; - }; - pathSharesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type EntityTypeProvisionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - prefix?: boolean; - description?: boolean; - parentEntity?: boolean; - tableName?: boolean; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: boolean; - namespaces?: boolean; - functions?: boolean; - graphs?: boolean; - agents?: boolean; - skipEntityPolicies?: boolean; - tableProvision?: boolean; - outMembershipType?: boolean; - outEntityTableId?: boolean; - outEntityTableName?: boolean; - outInstalledModules?: boolean; - outStorageModuleId?: boolean; - outBucketsTableId?: boolean; - outFilesTableId?: boolean; - outPathSharesTableId?: boolean; - outInvitesModuleId?: boolean; - outNamespaceModuleId?: boolean; - outNamespacesTableId?: boolean; - outNamespaceEventsTableId?: boolean; - outFunctionModuleId?: boolean; - outDefinitionsTableId?: boolean; - outInvocationsTableId?: boolean; - outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; - outRequirementsTableId?: boolean; - outConfigRequirementsTableId?: boolean; - outGraphModuleId?: boolean; - outGraphsTableId?: boolean; - outAgentModuleId?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type WebauthnCredentialsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type WebauthnAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - usersTableId?: boolean; - credentialsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - sessionSecretsTableId?: boolean; - authSettingsTableId?: boolean; - rpId?: boolean; - rpName?: boolean; - originAllowlist?: boolean; - attestationType?: boolean; - requireUserVerification?: boolean; - residentKey?: boolean; - challengeExpiry?: boolean; - authSettingsTable?: { - select: TableSelect; - }; - credentialsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionSecretsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type NotificationsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - notificationsTableId?: boolean; - readStateTableId?: boolean; - preferencesTableId?: boolean; - channelsTableId?: boolean; - deliveryLogTableId?: boolean; - ownerTableId?: boolean; - userSettingsTableId?: boolean; - organizationSettingsTableId?: boolean; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; - channelsTableByChannelsTableId?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - deliveryLogTableByDeliveryLogTableId?: { - select: TableSelect; - }; - notificationsTableByNotificationsTableId?: { - select: TableSelect; - }; - organizationSettingsTableByOrganizationSettingsTableId?: { - select: TableSelect; - }; - ownerTable?: { - select: TableSelect; - }; - preferencesTableByPreferencesTableId?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - readStateTableByReadStateTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - userSettingsTableByUserSettingsTableId?: { - select: TableSelect; - }; -}; -export type InferenceLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - inferenceLogTableId?: boolean; - inferenceLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - inferenceLogTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type ComputeLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - computeLogTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type TransferLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - transferLogTableId?: boolean; - transferLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - transferLogTable?: { - select: TableSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type StorageLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - storageLogTableId?: boolean; - storageLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - storageLogTable?: { - select: TableSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type DbUsageModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - queryStatsDailyTable?: { - select: TableSelect; - }; - queryStatsLogTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - tableStatsDailyTable?: { - select: TableSelect; - }; - tableStatsLogTable?: { - select: TableSelect; - }; -}; -export type AgentModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - threadTableId?: boolean; - messageTableId?: boolean; - taskTableId?: boolean; - promptsTableId?: boolean; - knowledgeTableId?: boolean; - threadTableName?: boolean; - messageTableName?: boolean; - taskTableName?: boolean; - promptsTableName?: boolean; - knowledgeTableName?: boolean; - hasKnowledge?: boolean; - apiName?: boolean; - membershipType?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - knowledgeConfig?: boolean; - knowledgePolicies?: boolean; - provisions?: boolean; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - knowledgeTable?: { - select: TableSelect; - }; - messageTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - promptsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - taskTable?: { - select: TableSelect; - }; - threadTable?: { - select: TableSelect; - }; -}; -export type NamespaceModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - namespacesTableId?: boolean; - namespaceEventsTableId?: boolean; - namespacesTableName?: boolean; - namespaceEventsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - membershipType?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - namespaceEventsTable?: { - select: TableSelect; - }; - namespacesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type FunctionModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - definitionsTableId?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - secretDefinitionsTableId?: boolean; - requirementsTableId?: boolean; - configDefinitionsTableId?: boolean; - configRequirementsTableId?: boolean; - definitionsTableName?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - secretDefinitionsTableName?: boolean; - requirementsTableName?: boolean; - configRequirementsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - membershipType?: boolean; - prefix?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - configDefinitionsTable?: { - select: TableSelect; - }; - configRequirementsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - definitionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - executionLogsTable?: { - select: TableSelect; - }; - invocationsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - requirementsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretDefinitionsTable?: { - select: TableSelect; - }; -}; -export type DatabaseProvisionModuleSelect = { - 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; - database?: { - select: DatabaseSelect; - }; -}; -export type AppAdminGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type AppOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type AppGrantSelect = { - id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; -export type OrgMemberSelect = { - id?: boolean; - isAdmin?: boolean; - actorId?: boolean; - entityId?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgAdminGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgMemberProfileSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; - email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type OrgGrantSelect = { - id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgChartEdgeSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; - child?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - parent?: { - select: UserSelect; - }; -}; -export type OrgChartEdgeGrantSelect = { - id?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - grantorId?: boolean; - isGrant?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; - createdAt?: boolean; - child?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; - parent?: { - select: UserSelect; - }; -}; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - organizationId?: boolean; - entityType?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type AppLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - actor?: { - select: UserSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditCodeItemSelect = { - id?: boolean; - creditCodeId?: boolean; - defaultLimitId?: boolean; - amount?: boolean; - creditType?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditRedemptionSelect = { - id?: boolean; - creditCodeId?: boolean; - entityId?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; -}; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - entityId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - actor?: { - select: UserSelect; - }; - defaultLimit?: { - select: OrgLimitDefaultSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitAggregateSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - reserved?: boolean; - organizationId?: boolean; - entityType?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type PhoneNumberSelect = { - id?: boolean; - ownerId?: boolean; - cc?: boolean; - number?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type CryptoAddressSelect = { - id?: boolean; - ownerId?: boolean; - address?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type WebauthnCredentialSelect = { - id?: boolean; - ownerId?: boolean; - credentialId?: boolean; - publicKey?: boolean; - signCount?: boolean; - webauthnUserId?: boolean; - transports?: boolean; - credentialDeviceType?: boolean; - backupEligible?: boolean; - backupState?: boolean; - name?: boolean; - lastUsedAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - sender?: { - select: UserSelect; - }; -}; -export type AppClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type OrgInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - receiverId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - isReadOnly?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type OrgClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type AuditLogAuthSelect = { - createdAt?: boolean; - id?: boolean; - event?: boolean; - actorId?: boolean; - origin?: boolean; - userAgent?: boolean; - ipAddress?: boolean; - success?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type IdentityProviderSelect = { - slug?: boolean; - kind?: boolean; - displayName?: boolean; - enabled?: boolean; - isBuiltIn?: boolean; -}; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; -}; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; -export type MigrateFileSelect = { - id?: boolean; - databaseId?: boolean; - upload?: boolean; -}; -export type DevicesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - userDevicesTableId?: boolean; - deviceSettingsTableId?: boolean; - userDevicesTable?: boolean; - deviceSettingsTable?: boolean; - database?: { - select: DatabaseSelect; - }; - deviceSettingsTableByDeviceSettingsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - userDevicesTableByUserDevicesTableId?: { - select: TableSelect; - }; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type NodeTypeRegistrySelect = { - name?: boolean; - slug?: boolean; - category?: boolean; - displayName?: boolean; - description?: boolean; - parameterSchema?: boolean; - tags?: boolean; -}; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type UserConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - appLimitCreditsByDefaultLimitId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - appLimitCreditCodeItemsByDefaultLimitId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - orgLimitCreditsByDefaultLimitId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; -}; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; -export type PubkeySettingSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - cryptoNetwork?: boolean; - userField?: boolean; - signUpWithKeyFunctionId?: boolean; - signInRequestChallengeFunctionId?: boolean; - signInRecordFailureFunctionId?: boolean; - signInWithChallengeFunctionId?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - signInRecordFailureFunction?: { - select: FunctionSelect; - }; - signInRequestChallengeFunction?: { - select: FunctionSelect; - }; - signInWithChallengeFunction?: { - select: FunctionSelect; - }; - signUpWithKeyFunction?: { - select: FunctionSelect; - }; -}; -export type RateLimitsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - rateLimitSettingsTableId?: boolean; - ipRateLimitsTableId?: boolean; - rateLimitsTableId?: boolean; - rateLimitSettingsTable?: boolean; - ipRateLimitsTable?: boolean; - rateLimitsTable?: boolean; - database?: { - select: DatabaseSelect; - }; - ipRateLimitsTableByIpRateLimitsTableId?: { - select: TableSelect; - }; - rateLimitSettingsTableByRateLimitSettingsTableId?: { - select: TableSelect; - }; - rateLimitsTableByRateLimitsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; -}; -export type RlsSettingSelect = { - id?: boolean; - databaseId?: boolean; - authenticateSchemaId?: boolean; - roleSchemaId?: boolean; - authenticateFunctionId?: boolean; - authenticateStrictFunctionId?: boolean; - currentRoleFunctionId?: boolean; - currentRoleIdFunctionId?: boolean; - currentUserAgentFunctionId?: boolean; - currentIpAddressFunctionId?: boolean; - authenticateFunction?: { - select: FunctionSelect; - }; - authenticateSchema?: { - select: SchemaSelect; - }; - authenticateStrictFunction?: { - select: FunctionSelect; - }; - currentIpAddressFunction?: { - select: FunctionSelect; - }; - currentRoleFunction?: { - select: FunctionSelect; - }; - currentRoleIdFunction?: { - select: FunctionSelect; - }; - currentUserAgentFunction?: { - select: FunctionSelect; - }; - database?: { - select: DatabaseSelect; - }; - roleSchema?: { - select: SchemaSelect; - }; -}; -export type RlsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - sessionCredentialsTableId?: boolean; - sessionsTableId?: boolean; - usersTableId?: boolean; - authenticate?: boolean; - authenticateStrict?: boolean; - currentRole?: boolean; - currentRoleId?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type RateLimitMetersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - rateLimitStateTableId?: boolean; - rateLimitStateTableName?: boolean; - rateLimitOverridesTableId?: boolean; - rateLimitOverridesTableName?: boolean; - rateWindowLimitsTableId?: boolean; - rateWindowLimitsTableName?: boolean; - checkRateLimitFunction?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - rateLimitOverridesTableByRateLimitOverridesTableId?: { - select: TableSelect; - }; - rateLimitStateTableByRateLimitStateTableId?: { - select: TableSelect; - }; - rateWindowLimitsTableByRateWindowLimitsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type PlansModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - planLimitsTable?: { - select: TableSelect; - }; - planOverridesTable?: { - select: TableSelect; - }; - planPricingTable?: { - select: TableSelect; - }; - plansTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type SqlActionSelect = { - id?: boolean; - name?: boolean; - databaseId?: boolean; - deploy?: boolean; - deps?: boolean; - payload?: boolean; - content?: boolean; - revert?: boolean; - verify?: boolean; - createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; -}; -export type DatabaseSettingSelect = { - id?: boolean; - databaseId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type OrgMembershipSettingSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type AppLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type UserSelect = { - id?: boolean; - username?: boolean; - displayName?: boolean; - profilePicture?: boolean; - searchTsv?: boolean; - type?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - searchTsvRank?: boolean; - displayNameTrgmSimilarity?: boolean; - searchScore?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - appMembershipByActorId?: { - select: AppMembershipSelect; - }; - orgMembershipDefaultByEntityId?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipSettingByEntityId?: { - select: OrgMembershipSettingSelect; - }; - ownedDatabases?: { - select: DatabaseSelect; - first?: number; - filter?: DatabaseFilter; - orderBy?: DatabaseOrderBy[]; - }; - appAdminGrantsByActorId?: { - select: AppAdminGrantSelect; - first?: number; - filter?: AppAdminGrantFilter; - orderBy?: AppAdminGrantOrderBy[]; - }; - appAdminGrantsByGrantorId?: { - select: AppAdminGrantSelect; - first?: number; - filter?: AppAdminGrantFilter; - orderBy?: AppAdminGrantOrderBy[]; - }; - appOwnerGrantsByActorId?: { - select: AppOwnerGrantSelect; - first?: number; - filter?: AppOwnerGrantFilter; - orderBy?: AppOwnerGrantOrderBy[]; - }; - appOwnerGrantsByGrantorId?: { - select: AppOwnerGrantSelect; - first?: number; - filter?: AppOwnerGrantFilter; - orderBy?: AppOwnerGrantOrderBy[]; - }; - appGrantsByActorId?: { - select: AppGrantSelect; - first?: number; - filter?: AppGrantFilter; - orderBy?: AppGrantOrderBy[]; - }; - appGrantsByGrantorId?: { - select: AppGrantSelect; - first?: number; - filter?: AppGrantFilter; - orderBy?: AppGrantOrderBy[]; - }; - orgMembershipsByActorId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgMembershipsByEntityId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgMembersByActorId?: { - select: OrgMemberSelect; - first?: number; - filter?: OrgMemberFilter; - orderBy?: OrgMemberOrderBy[]; - }; - orgMembersByEntityId?: { - select: OrgMemberSelect; - first?: number; - filter?: OrgMemberFilter; - orderBy?: OrgMemberOrderBy[]; - }; - orgAdminGrantsByActorId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgAdminGrantsByEntityId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgAdminGrantsByGrantorId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgOwnerGrantsByActorId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgOwnerGrantsByEntityId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgOwnerGrantsByGrantorId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgMemberProfilesByActorId?: { - select: OrgMemberProfileSelect; - first?: number; - filter?: OrgMemberProfileFilter; - orderBy?: OrgMemberProfileOrderBy[]; - }; - orgMemberProfilesByEntityId?: { - select: OrgMemberProfileSelect; - first?: number; - filter?: OrgMemberProfileFilter; - orderBy?: OrgMemberProfileOrderBy[]; - }; - orgGrantsByActorId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - orgGrantsByEntityId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - orgGrantsByGrantorId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - parentOrgChartEdges?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - orgChartEdgesByEntityId?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - childOrgChartEdges?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - parentOrgChartEdgeGrants?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgChartEdgeGrantsByEntityId?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgChartEdgeGrantsByGrantorId?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - childOrgChartEdgeGrants?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgPermissionDefaultsByEntityId?: { - select: OrgPermissionDefaultSelect; - first?: number; - filter?: OrgPermissionDefaultFilter; - orderBy?: OrgPermissionDefaultOrderBy[]; - }; - appLimitsByActorId?: { - select: AppLimitSelect; - first?: number; - filter?: AppLimitFilter; - orderBy?: AppLimitOrderBy[]; - }; - appLimitCreditsByActorId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - orgLimitsByActorId?: { - select: OrgLimitSelect; - first?: number; - filter?: OrgLimitFilter; - orderBy?: OrgLimitOrderBy[]; - }; - orgLimitsByEntityId?: { - select: OrgLimitSelect; - first?: number; - filter?: OrgLimitFilter; - orderBy?: OrgLimitOrderBy[]; - }; - orgLimitCreditsByActorId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; - orgLimitCreditsByEntityId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; - orgLimitAggregatesByEntityId?: { - select: OrgLimitAggregateSelect; - first?: number; - filter?: OrgLimitAggregateFilter; - orderBy?: OrgLimitAggregateOrderBy[]; - }; - orgLimitWarningsByEntityId?: { - select: OrgLimitWarningSelect; - first?: number; - filter?: OrgLimitWarningFilter; - orderBy?: OrgLimitWarningOrderBy[]; - }; - ownedEmails?: { - select: EmailSelect; - first?: number; - filter?: EmailFilter; - orderBy?: EmailOrderBy[]; - }; - ownedPhoneNumbers?: { - select: PhoneNumberSelect; - first?: number; - filter?: PhoneNumberFilter; - orderBy?: PhoneNumberOrderBy[]; - }; - ownedCryptoAddresses?: { - select: CryptoAddressSelect; - first?: number; - filter?: CryptoAddressFilter; - orderBy?: CryptoAddressOrderBy[]; - }; - ownedWebauthnCredentials?: { - select: WebauthnCredentialSelect; - first?: number; - filter?: WebauthnCredentialFilter; - orderBy?: WebauthnCredentialOrderBy[]; - }; - appInvitesBySenderId?: { - select: AppInviteSelect; - first?: number; - filter?: AppInviteFilter; - orderBy?: AppInviteOrderBy[]; - }; - appClaimedInvitesByReceiverId?: { - select: AppClaimedInviteSelect; - first?: number; - filter?: AppClaimedInviteFilter; - orderBy?: AppClaimedInviteOrderBy[]; - }; - appClaimedInvitesBySenderId?: { - select: AppClaimedInviteSelect; - first?: number; - filter?: AppClaimedInviteFilter; - orderBy?: AppClaimedInviteOrderBy[]; - }; - orgInvitesByEntityId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgInvitesByReceiverId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgInvitesBySenderId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgClaimedInvitesByEntityId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - orgClaimedInvitesByReceiverId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - orgClaimedInvitesBySenderId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - auditLogAuthsByActorId?: { - select: AuditLogAuthSelect; - first?: number; - filter?: AuditLogAuthFilter; - orderBy?: AuditLogAuthOrderBy[]; - }; -}; -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; - schemaId?: boolean; - credentialsSchemaId?: boolean; - sessionsSchemaId?: boolean; - sessionSecretsSchemaId?: boolean; - credentialsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - sessionSecretsTableId?: boolean; - userFieldId?: boolean; - rpId?: boolean; - rpName?: boolean; - originAllowlist?: boolean; - attestationType?: boolean; - requireUserVerification?: boolean; - residentKey?: boolean; - challengeExpirySeconds?: boolean; - credentialsSchema?: { - select: SchemaSelect; - }; - credentialsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionSecretsSchema?: { - select: SchemaSelect; - }; - sessionSecretsTable?: { - select: TableSelect; - }; - sessionsSchema?: { - select: SchemaSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - userField?: { - select: FieldSelect; - }; -}; -export type BillingModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - meterCreditsTableId?: boolean; - meterCreditsTableName?: boolean; - meterSourcesTableId?: boolean; - meterSourcesTableName?: boolean; - recordUsageFunction?: boolean; - prefix?: boolean; - balancesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - ledgerTable?: { - select: TableSelect; - }; - meterCreditsTable?: { - select: TableSelect; - }; - meterSourcesTable?: { - select: TableSelect; - }; - metersTable?: { - select: TableSelect; - }; - planSubscriptionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type BillingProviderModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - provider?: boolean; - productsTableId?: boolean; - pricesTableId?: boolean; - subscriptionsTableId?: boolean; - billingCustomersTableId?: boolean; - billingCustomersTableName?: boolean; - billingProductsTableId?: boolean; - billingProductsTableName?: boolean; - billingPricesTableId?: boolean; - billingPricesTableName?: boolean; - billingSubscriptionsTableId?: boolean; - billingSubscriptionsTableName?: boolean; - billingWebhookEventsTableId?: boolean; - billingWebhookEventsTableName?: boolean; - processBillingEventFunction?: boolean; - prefix?: boolean; - billingCustomersTable?: { - select: TableSelect; - }; - billingPricesTable?: { - select: TableSelect; - }; - billingProductsTable?: { - select: TableSelect; - }; - billingSubscriptionsTable?: { - select: TableSelect; - }; - billingWebhookEventsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - pricesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - productsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - subscriptionsTable?: { - select: TableSelect; - }; -}; -export type HierarchyModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - chartEdgesTableId?: boolean; - chartEdgesTableName?: boolean; - hierarchySprtTableId?: boolean; - hierarchySprtTableName?: boolean; - chartEdgeGrantsTableId?: boolean; - chartEdgeGrantsTableName?: boolean; - entityTableId?: boolean; - usersTableId?: boolean; - prefix?: boolean; - privateSchemaName?: boolean; - sprtTableName?: boolean; - rebuildHierarchyFunction?: boolean; - getSubordinatesFunction?: boolean; - getManagersFunction?: boolean; - isManagerOfFunction?: boolean; - createdAt?: boolean; - chartEdgeGrantsTable?: { - select: TableSelect; - }; - chartEdgesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - hierarchySprtTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -// ============ Table Filter Types ============ -export interface OrgGetManagersRecordFilter { - userId?: UUIDFilter; - depth?: IntFilter; - and?: OrgGetManagersRecordFilter[]; - or?: OrgGetManagersRecordFilter[]; - not?: OrgGetManagersRecordFilter; -} -export interface OrgGetSubordinatesRecordFilter { - userId?: UUIDFilter; - depth?: IntFilter; - and?: OrgGetSubordinatesRecordFilter[]; - or?: OrgGetSubordinatesRecordFilter[]; - not?: OrgGetSubordinatesRecordFilter; -} -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} -export interface DatabaseFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `schemaHash` field. */ - schemaHash?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** 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?: DatabaseFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseFilter[]; - /** Negates the expression. */ - not?: DatabaseFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** Filter by the object’s `schemas` relation. */ - schemas?: DatabaseToManySchemaFilter; - /** `schemas` exist. */ - schemasExist?: boolean; - /** Filter by the object’s `tables` relation. */ - tables?: DatabaseToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: DatabaseToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: DatabaseToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: DatabaseToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggerFunctions` relation. */ - triggerFunctions?: DatabaseToManyTriggerFunctionFilter; - /** `triggerFunctions` exist. */ - triggerFunctionsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: DatabaseToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: DatabaseToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: DatabaseToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: DatabaseToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: DatabaseToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `partitions` relation. */ - partitions?: DatabaseToManyPartitionFilter; - /** `partitions` exist. */ - partitionsExist?: boolean; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `apis` relation. */ - apis?: DatabaseToManyApiFilter; - /** `apis` exist. */ - apisExist?: boolean; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: DatabaseToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: DatabaseToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sites` relation. */ - sites?: DatabaseToManySiteFilter; - /** `sites` exist. */ - sitesExist?: boolean; - /** Filter by the object’s `apps` relation. */ - apps?: DatabaseToManyAppFilter; - /** `apps` exist. */ - appsExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: DatabaseToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: DatabaseToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: DatabaseToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: DatabaseToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `databaseSetting` relation. */ - databaseSetting?: DatabaseSettingFilter; - /** A related `databaseSetting` exists. */ - databaseSettingExists?: boolean; - /** Filter by the object’s `apiSettings` relation. */ - apiSettings?: DatabaseToManyApiSettingFilter; - /** `apiSettings` exist. */ - apiSettingsExist?: boolean; - /** Filter by the object’s `rlsSetting` relation. */ - rlsSetting?: RlsSettingFilter; - /** A related `rlsSetting` exists. */ - rlsSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: DatabaseToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; - /** Filter by the object’s `pubkeySetting` relation. */ - pubkeySetting?: PubkeySettingFilter; - /** A related `pubkeySetting` exists. */ - pubkeySettingExists?: boolean; - /** Filter by the object’s `webauthnSetting` relation. */ - webauthnSetting?: WebauthnSettingFilter; - /** A related `webauthnSetting` exists. */ - webauthnSettingExists?: boolean; - /** Filter by the object’s `connectedAccountsModules` relation. */ - connectedAccountsModules?: DatabaseToManyConnectedAccountsModuleFilter; - /** `connectedAccountsModules` exist. */ - connectedAccountsModulesExist?: boolean; - /** Filter by the object’s `cryptoAddressesModules` relation. */ - cryptoAddressesModules?: DatabaseToManyCryptoAddressesModuleFilter; - /** `cryptoAddressesModules` exist. */ - cryptoAddressesModulesExist?: boolean; - /** Filter by the object’s `cryptoAuthModules` relation. */ - cryptoAuthModules?: DatabaseToManyCryptoAuthModuleFilter; - /** `cryptoAuthModules` exist. */ - cryptoAuthModulesExist?: boolean; - /** Filter by the object’s `defaultIdsModules` relation. */ - defaultIdsModules?: DatabaseToManyDefaultIdsModuleFilter; - /** `defaultIdsModules` exist. */ - defaultIdsModulesExist?: boolean; - /** Filter by the object’s `denormalizedTableFields` relation. */ - denormalizedTableFields?: DatabaseToManyDenormalizedTableFieldFilter; - /** `denormalizedTableFields` exist. */ - denormalizedTableFieldsExist?: boolean; - /** Filter by the object’s `emailsModules` relation. */ - emailsModules?: DatabaseToManyEmailsModuleFilter; - /** `emailsModules` exist. */ - emailsModulesExist?: boolean; - /** Filter by the object’s `configSecretsUserModules` relation. */ - configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; - /** `configSecretsUserModules` exist. */ - configSecretsUserModulesExist?: boolean; - /** Filter by the object’s `invitesModules` relation. */ - invitesModules?: DatabaseToManyInvitesModuleFilter; - /** `invitesModules` exist. */ - invitesModulesExist?: boolean; - /** Filter by the object’s `eventsModules` relation. */ - eventsModules?: DatabaseToManyEventsModuleFilter; - /** `eventsModules` exist. */ - eventsModulesExist?: boolean; - /** Filter by the object’s `limitsModules` relation. */ - limitsModules?: DatabaseToManyLimitsModuleFilter; - /** `limitsModules` exist. */ - limitsModulesExist?: boolean; - /** Filter by the object’s `membershipTypesModules` relation. */ - membershipTypesModules?: DatabaseToManyMembershipTypesModuleFilter; - /** `membershipTypesModules` exist. */ - membershipTypesModulesExist?: boolean; - /** Filter by the object’s `membershipsModules` relation. */ - membershipsModules?: DatabaseToManyMembershipsModuleFilter; - /** `membershipsModules` exist. */ - membershipsModulesExist?: boolean; - /** Filter by the object’s `permissionsModules` relation. */ - permissionsModules?: DatabaseToManyPermissionsModuleFilter; - /** `permissionsModules` exist. */ - permissionsModulesExist?: boolean; - /** Filter by the object’s `phoneNumbersModules` relation. */ - phoneNumbersModules?: DatabaseToManyPhoneNumbersModuleFilter; - /** `phoneNumbersModules` exist. */ - phoneNumbersModulesExist?: boolean; - /** Filter by the object’s `profilesModules` relation. */ - profilesModules?: DatabaseToManyProfilesModuleFilter; - /** `profilesModules` exist. */ - profilesModulesExist?: boolean; - /** Filter by the object’s `rlsModule` relation. */ - rlsModule?: RlsModuleFilter; - /** A related `rlsModule` exists. */ - rlsModuleExists?: boolean; - /** Filter by the object’s `userStateModules` relation. */ - userStateModules?: DatabaseToManyUserStateModuleFilter; - /** `userStateModules` exist. */ - userStateModulesExist?: boolean; - /** Filter by the object’s `sessionsModules` relation. */ - sessionsModules?: DatabaseToManySessionsModuleFilter; - /** `sessionsModules` exist. */ - sessionsModulesExist?: boolean; - /** Filter by the object’s `userAuthModules` relation. */ - userAuthModules?: DatabaseToManyUserAuthModuleFilter; - /** `userAuthModules` exist. */ - userAuthModulesExist?: boolean; - /** Filter by the object’s `usersModules` relation. */ - usersModules?: DatabaseToManyUsersModuleFilter; - /** `usersModules` exist. */ - usersModulesExist?: boolean; - /** Filter by the object’s `hierarchyModule` relation. */ - hierarchyModule?: HierarchyModuleFilter; - /** A related `hierarchyModule` exists. */ - hierarchyModuleExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: DatabaseToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisions` relation. */ - relationProvisions?: DatabaseToManyRelationProvisionFilter; - /** `relationProvisions` exist. */ - relationProvisionsExist?: boolean; - /** Filter by the object’s `blueprints` relation. */ - blueprints?: DatabaseToManyBlueprintFilter; - /** `blueprints` exist. */ - blueprintsExist?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: DatabaseToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; - /** Filter by the object’s `storageModules` relation. */ - storageModules?: DatabaseToManyStorageModuleFilter; - /** `storageModules` exist. */ - storageModulesExist?: boolean; - /** Filter by the object’s `entityTypeProvisions` relation. */ - entityTypeProvisions?: DatabaseToManyEntityTypeProvisionFilter; - /** `entityTypeProvisions` exist. */ - entityTypeProvisionsExist?: boolean; - /** Filter by the object’s `rateLimitsModule` relation. */ - rateLimitsModule?: RateLimitsModuleFilter; - /** A related `rateLimitsModule` exists. */ - rateLimitsModuleExists?: boolean; - /** Filter by the object’s `devicesModule` relation. */ - devicesModule?: DevicesModuleFilter; - /** A related `devicesModule` exists. */ - devicesModuleExists?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: DatabaseToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `webauthnCredentialsModules` relation. */ - webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter; - /** `webauthnCredentialsModules` exist. */ - webauthnCredentialsModulesExist?: boolean; - /** Filter by the object’s `webauthnAuthModules` relation. */ - webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter; - /** `webauthnAuthModules` exist. */ - webauthnAuthModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `notificationsModules` relation. */ - notificationsModules?: DatabaseToManyNotificationsModuleFilter; - /** `notificationsModules` exist. */ - notificationsModulesExist?: boolean; - /** Filter by the object’s `plansModule` relation. */ - plansModule?: PlansModuleFilter; - /** A related `plansModule` exists. */ - plansModuleExists?: boolean; - /** Filter by the object’s `billingModule` relation. */ - billingModule?: BillingModuleFilter; - /** A related `billingModule` exists. */ - billingModuleExists?: boolean; - /** Filter by the object’s `billingProviderModule` relation. */ - billingProviderModule?: BillingProviderModuleFilter; - /** A related `billingProviderModule` exists. */ - billingProviderModuleExists?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: DatabaseToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `rateLimitMetersModule` relation. */ - rateLimitMetersModule?: RateLimitMetersModuleFilter; - /** A related `rateLimitMetersModule` exists. */ - rateLimitMetersModuleExists?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `inferenceLogModules` relation. */ - inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; - /** `inferenceLogModules` exist. */ - inferenceLogModulesExist?: boolean; - /** Filter by the object’s `computeLogModules` relation. */ - computeLogModules?: DatabaseToManyComputeLogModuleFilter; - /** `computeLogModules` exist. */ - computeLogModulesExist?: boolean; - /** Filter by the object’s `transferLogModules` relation. */ - transferLogModules?: DatabaseToManyTransferLogModuleFilter; - /** `transferLogModules` exist. */ - transferLogModulesExist?: boolean; - /** Filter by the object’s `storageLogModules` relation. */ - storageLogModules?: DatabaseToManyStorageLogModuleFilter; - /** `storageLogModules` exist. */ - storageLogModulesExist?: boolean; - /** Filter by the object’s `dbUsageModules` relation. */ - dbUsageModules?: DatabaseToManyDbUsageModuleFilter; - /** `dbUsageModules` exist. */ - dbUsageModulesExist?: boolean; - /** Filter by the object’s `agentModules` relation. */ - agentModules?: DatabaseToManyAgentModuleFilter; - /** `agentModules` exist. */ - agentModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModules` relation. */ - merkleStoreModules?: DatabaseToManyMerkleStoreModuleFilter; - /** `merkleStoreModules` exist. */ - merkleStoreModulesExist?: boolean; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: DatabaseToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `namespaceModules` relation. */ - namespaceModules?: DatabaseToManyNamespaceModuleFilter; - /** `namespaceModules` exist. */ - namespaceModulesExist?: boolean; - /** Filter by the object’s `functionModules` relation. */ - functionModules?: DatabaseToManyFunctionModuleFilter; - /** `functionModules` exist. */ - functionModulesExist?: boolean; - /** Filter by the object’s `databaseProvisionModules` relation. */ - databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; - /** `databaseProvisionModules` exist. */ - databaseProvisionModulesExist?: boolean; -} -export interface SchemaFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: 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?: SchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; - /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: SchemaToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: SchemaToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */ - identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModulesByPrivateSchemaId` exist. */ - identityProvidersModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByPrivateSchemaId` relation. */ - realtimeModulesByPrivateSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesByPrivateSchemaId` exist. */ - realtimeModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. */ - realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesBySubscriptionsSchemaId` exist. */ - realtimeModulesBySubscriptionsSchemaIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation. */ - merkleStoreModulesByPrivateSchemaId?: SchemaToManyMerkleStoreModuleFilter; - /** `merkleStoreModulesByPrivateSchemaId` exist. */ - merkleStoreModulesByPrivateSchemaIdExist?: boolean; -} -export interface TableFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `timestamps` field. */ - timestamps?: BooleanFilter; - /** Filter by the object’s `peoplestamps` field. */ - peoplestamps?: BooleanFilter; - /** Filter by the object’s `pluralName` field. */ - pluralName?: StringFilter; - /** Filter by the object’s `singularName` field. */ - singularName?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `partitioned` field. */ - partitioned?: BooleanFilter; - /** Filter by the object’s `partitionStrategy` field. */ - partitionStrategy?: StringFilter; - /** Filter by the object’s `partitionKeyNames` field. */ - partitionKeyNames?: StringListFilter; - /** Filter by the object’s `partitionKeyTypes` field. */ - partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: 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?: TableFilter[]; - /** Checks for any expressions in this list. */ - or?: TableFilter[]; - /** Negates the expression. */ - not?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `inherits` relation. */ - inherits?: TableFilter; - /** A related `inherits` exists. */ - inheritsExists?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: TableToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: TableToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: TableToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: TableToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: TableToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: TableToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: TableToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: TableToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: TableToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: TableToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ - embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunksByChunksTableId` exist. */ - embeddingChunksByChunksTableIdExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ - spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; - /** `spatialRelationsByRefTableId` exist. */ - spatialRelationsByRefTableIdExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: TableToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `partition` relation. */ - partition?: PartitionFilter; - /** A related `partition` exists. */ - partitionExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: TableToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisionsBySourceTableId` relation. */ - relationProvisionsBySourceTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsBySourceTableId` exist. */ - relationProvisionsBySourceTableIdExist?: boolean; - /** Filter by the object’s `relationProvisionsByTargetTableId` relation. */ - relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsByTargetTableId` exist. */ - relationProvisionsByTargetTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. */ - sessionSecretsModulesBySessionsTableId?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModulesBySessionsTableId` exist. */ - sessionSecretsModulesBySessionsTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: TableToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByChangeLogTableId` relation. */ - realtimeModulesByChangeLogTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByChangeLogTableId` exist. */ - realtimeModulesByChangeLogTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. */ - realtimeModulesByListenerNodeTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByListenerNodeTableId` exist. */ - realtimeModulesByListenerNodeTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. */ - realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesBySourceRegistryTableId` exist. */ - realtimeModulesBySourceRegistryTableIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; -} -export interface CheckConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `expr` field. */ - expr?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: CheckConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: CheckConstraintFilter[]; - /** Negates the expression. */ - not?: CheckConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface FieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: JSONFilter; - /** Filter by the object’s `fieldOrder` field. */ - fieldOrder?: IntFilter; - /** Filter by the object’s `regexp` field. */ - regexp?: StringFilter; - /** Filter by the object’s `chk` field. */ - chk?: JSONFilter; - /** Filter by the object’s `chkExpr` field. */ - chkExpr?: JSONFilter; - /** Filter by the object’s `min` field. */ - min?: FloatFilter; - /** Filter by the object’s `max` field. */ - max?: FloatFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** 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?: FieldFilter[]; - /** Checks for any expressions in this list. */ - or?: FieldFilter[]; - /** Negates the expression. */ - not?: FieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: FieldToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ - spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; - /** `spatialRelationsByRefFieldId` exist. */ - spatialRelationsByRefFieldIdExist?: boolean; -} -export interface SpatialRelationFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `operator` field. */ - operator?: StringFilter; - /** Filter by the object’s `paramName` field. */ - paramName?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: SpatialRelationFilter[]; - /** Checks for any expressions in this list. */ - or?: SpatialRelationFilter[]; - /** Negates the expression. */ - not?: SpatialRelationFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface ForeignKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldIds` field. */ - refFieldIds?: UUIDListFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `updateAction` field. */ - updateAction?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: ForeignKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: ForeignKeyConstraintFilter[]; - /** Negates the expression. */ - not?: ForeignKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface FullTextSearchFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `weights` field. */ - weights?: StringListFilter; - /** Filter by the object’s `langs` field. */ - langs?: StringListFilter; - /** 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?: FullTextSearchFilter[]; - /** Checks for any expressions in this list. */ - or?: FullTextSearchFilter[]; - /** Negates the expression. */ - not?: FullTextSearchFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface IndexFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `includeFieldIds` field. */ - includeFieldIds?: UUIDListFilter; - /** Filter by the object’s `accessMethod` field. */ - accessMethod?: StringFilter; - /** Filter by the object’s `indexParams` field. */ - indexParams?: JSONFilter; - /** Filter by the object’s `whereClause` field. */ - whereClause?: JSONFilter; - /** Filter by the object’s `isUnique` field. */ - isUnique?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `opClasses` field. */ - opClasses?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: IndexFilter[]; - /** Checks for any expressions in this list. */ - or?: IndexFilter[]; - /** Negates the expression. */ - not?: IndexFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PolicyFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `permissive` field. */ - permissive?: BooleanFilter; - /** Filter by the object’s `disabled` field. */ - disabled?: BooleanFilter; - /** Filter by the object’s `policyType` field. */ - policyType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PolicyFilter[]; - /** Checks for any expressions in this list. */ - or?: PolicyFilter[]; - /** Negates the expression. */ - not?: PolicyFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PrimaryKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PrimaryKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: PrimaryKeyConstraintFilter[]; - /** Negates the expression. */ - not?: PrimaryKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface TableGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: 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?: TableGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: TableGrantFilter[]; - /** Negates the expression. */ - not?: TableGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface TriggerFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `functionName` field. */ - functionName?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: TriggerFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFilter[]; - /** Negates the expression. */ - not?: TriggerFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface UniqueConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: UniqueConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: UniqueConstraintFilter[]; - /** Negates the expression. */ - not?: UniqueConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface ViewFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `viewType` field. */ - viewType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `filterType` field. */ - filterType?: StringFilter; - /** Filter by the object’s `filterData` field. */ - filterData?: JSONFilter; - /** Filter by the object’s `securityInvoker` field. */ - securityInvoker?: BooleanFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ViewFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewFilter[]; - /** Negates the expression. */ - not?: ViewFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** A related `table` exists. */ - tableExists?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: ViewToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: ViewToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: ViewToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; -} -export interface ViewTableFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `joinOrder` field. */ - joinOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: ViewTableFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewTableFilter[]; - /** Negates the expression. */ - not?: ViewTableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface ViewGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `withGrantOption` field. */ - withGrantOption?: BooleanFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ViewGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewGrantFilter[]; - /** Negates the expression. */ - not?: ViewGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface ViewRuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ViewRuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewRuleFilter[]; - /** Negates the expression. */ - not?: ViewRuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface EmbeddingChunkFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `embeddingFieldId` field. */ - embeddingFieldId?: UUIDFilter; - /** Filter by the object’s `chunksTableId` field. */ - chunksTableId?: UUIDFilter; - /** Filter by the object’s `chunksTableName` field. */ - chunksTableName?: StringFilter; - /** Filter by the object’s `contentFieldName` field. */ - contentFieldName?: StringFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: IntFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `chunkSize` field. */ - chunkSize?: IntFilter; - /** Filter by the object’s `chunkOverlap` field. */ - chunkOverlap?: IntFilter; - /** Filter by the object’s `chunkStrategy` field. */ - chunkStrategy?: StringFilter; - /** Filter by the object’s `metadataFields` field. */ - metadataFields?: JSONFilter; - /** Filter by the object’s `searchIndexes` field. */ - searchIndexes?: JSONFilter; - /** Filter by the object’s `enqueueChunkingJob` field. */ - enqueueChunkingJob?: BooleanFilter; - /** Filter by the object’s `chunkingTaskName` field. */ - chunkingTaskName?: StringFilter; - /** Filter by the object’s `embeddingModel` field. */ - embeddingModel?: StringFilter; - /** Filter by the object’s `embeddingProvider` field. */ - embeddingProvider?: StringFilter; - /** Filter by the object’s `parentFkFieldId` field. */ - parentFkFieldId?: 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?: EmbeddingChunkFilter[]; - /** Checks for any expressions in this list. */ - or?: EmbeddingChunkFilter[]; - /** Negates the expression. */ - not?: EmbeddingChunkFilter; - /** Filter by the object’s `chunksTable` relation. */ - chunksTable?: TableFilter; - /** A related `chunksTable` exists. */ - chunksTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `embeddingField` relation. */ - embeddingField?: FieldFilter; - /** A related `embeddingField` exists. */ - embeddingFieldExists?: boolean; - /** Filter by the object’s `parentFkField` relation. */ - parentFkField?: FieldFilter; - /** A related `parentFkField` exists. */ - parentFkFieldExists?: boolean; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SecureTableProvisionFilter { - /** 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 `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `sourceTable` relation. */ - sourceTable?: TableFilter; - /** Filter by the object’s `targetTable` relation. */ - targetTable?: TableFilter; -} -export interface 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; - /** Filter by the object’s `changeLogTable` relation. */ - changeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `listenerNodeTable` relation. */ - listenerNodeTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sourceRegistryTable` relation. */ - sourceRegistryTable?: TableFilter; - /** Filter by the object’s `subscriptionsSchema` relation. */ - subscriptionsSchema?: SchemaFilter; -} -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SchemaGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: 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?: SchemaGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaGrantFilter[]; - /** Negates the expression. */ - not?: SchemaGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface DefaultPrivilegeFilter { - /** 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 `objectType` field. */ - objectType?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: DefaultPrivilegeFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultPrivilegeFilter[]; - /** Negates the expression. */ - not?: DefaultPrivilegeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface EnumFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `values` field. */ - values?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: EnumFilter[]; - /** Checks for any expressions in this list. */ - or?: EnumFilter[]; - /** Negates the expression. */ - not?: EnumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface FunctionFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionFilter[]; - /** Negates the expression. */ - not?: FunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface ApiSchemaFilter { - /** 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 `apiId` field. */ - apiId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ApiSchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSchemaFilter[]; - /** Negates the expression. */ - not?: ApiSchemaFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface ApiModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ApiModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiModuleFilter[]; - /** Negates the expression. */ - not?: ApiModuleFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface DomainFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: ConstructiveInternalTypeHostnameFilter; - /** Filter by the object’s `domain` field. */ - domain?: ConstructiveInternalTypeHostnameFilter; - /** Checks for all expressions in this list. */ - and?: DomainFilter[]; - /** Checks for any expressions in this list. */ - or?: DomainFilter[]; - /** Negates the expression. */ - not?: DomainFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** A related `site` exists. */ - siteExists?: boolean; -} -export interface SiteMetadatumFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface SiteModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteModuleFilter[]; - /** Negates the expression. */ - not?: SiteModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface SiteThemeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `theme` field. */ - theme?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; - /** Negates the expression. */ - not?: SiteThemeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface CorsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: CorsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: CorsSettingFilter[]; - /** Negates the expression. */ - not?: CorsSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -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 `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 `scopeField` field. */ - scopeField?: 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 `commitTable` relation. */ - commitTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `objectTable` relation. */ - objectTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storeTable` relation. */ - storeTable?: TableFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; -} -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 `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 `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 `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scopeField` field. */ - scopeField?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** 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?: GraphModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; - /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `executionsTable` relation. */ - executionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `graphsTable` relation. */ - graphsTable?: TableFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; - /** Filter by the object’s `outputsTable` relation. */ - outputsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `publicSchema` relation. */ - publicSchema?: SchemaFilter; -} -export interface TriggerFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `code` field. */ - code?: 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?: TriggerFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFunctionFilter[]; - /** Negates the expression. */ - not?: TriggerFunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface PartitionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `strategy` field. */ - strategy?: StringFilter; - /** Filter by the object’s `partitionKeyId` field. */ - partitionKeyId?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `retentionKeepTable` field. */ - retentionKeepTable?: BooleanFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `namingPattern` field. */ - namingPattern?: StringFilter; - /** Filter by the object’s `isParented` field. */ - isParented?: 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?: PartitionFilter[]; - /** Checks for any expressions in this list. */ - or?: PartitionFilter[]; - /** Negates the expression. */ - not?: PartitionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `partitionKey` relation. */ - partitionKey?: FieldFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface DatabaseTransferFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `targetOwnerId` field. */ - targetOwnerId?: UUIDFilter; - /** Filter by the object’s `sourceApproved` field. */ - sourceApproved?: BooleanFilter; - /** Filter by the object’s `targetApproved` field. */ - targetApproved?: BooleanFilter; - /** Filter by the object’s `sourceApprovedAt` field. */ - sourceApprovedAt?: DatetimeFilter; - /** Filter by the object’s `targetApprovedAt` field. */ - targetApprovedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `initiatedBy` field. */ - initiatedBy?: UUIDFilter; - /** Filter by the object’s `notes` field. */ - notes?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseTransferFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseTransferFilter[]; - /** Negates the expression. */ - not?: DatabaseTransferFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ApiFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ApiFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiFilter[]; - /** Negates the expression. */ - not?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: ApiToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: ApiToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: ApiToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `apiSetting` relation. */ - apiSetting?: ApiSettingFilter; - /** A related `apiSetting` exists. */ - apiSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: ApiToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; -} -export interface SiteFilter { - /** Filter by the object’s `id` field. */ - id?: 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. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeAttachmentFilter; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Negates the expression. */ - not?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** A related `app` exists. */ - appExists?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: SiteToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: SiteToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; -} -export interface AppFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `appImage` field. */ - appImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `appStoreLink` field. */ - appStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Filter by the object’s `appStoreId` field. */ - appStoreId?: StringFilter; - /** Filter by the object’s `appIdPrefix` field. */ - appIdPrefix?: StringFilter; - /** Filter by the object’s `playStoreLink` field. */ - playStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Negates the expression. */ - not?: AppFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ApiSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: ApiSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSettingFilter[]; - /** Negates the expression. */ - not?: ApiSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ConnectedAccountsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Checks for all expressions in this list. */ - and?: CryptoAddressesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressesModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAddressesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface CryptoAuthModuleFilter { - /** 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 `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `addressesTableId` field. */ - addressesTableId?: UUIDFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `signInRequestChallenge` field. */ - signInRequestChallenge?: StringFilter; - /** Filter by the object’s `signInRecordFailure` field. */ - signInRecordFailure?: StringFilter; - /** Filter by the object’s `signUpWithKey` field. */ - signUpWithKey?: StringFilter; - /** Filter by the object’s `signInWithChallenge` field. */ - signInWithChallenge?: StringFilter; - /** Checks for all expressions in this list. */ - and?: CryptoAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAuthModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface DefaultIdsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: DefaultIdsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultIdsModuleFilter[]; - /** Negates the expression. */ - not?: DefaultIdsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface DenormalizedTableFieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `setIds` field. */ - setIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `refIds` field. */ - refIds?: UUIDListFilter; - /** Filter by the object’s `useUpdates` field. */ - useUpdates?: BooleanFilter; - /** Filter by the object’s `updateDefaults` field. */ - updateDefaults?: BooleanFilter; - /** Filter by the object’s `funcName` field. */ - funcName?: StringFilter; - /** Filter by the object’s `funcOrder` field. */ - funcOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: DenormalizedTableFieldFilter[]; - /** Checks for any expressions in this list. */ - or?: DenormalizedTableFieldFilter[]; - /** Negates the expression. */ - not?: DenormalizedTableFieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface EmailsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: EmailsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailsModuleFilter[]; - /** Negates the expression. */ - not?: EmailsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `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; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface InvitesModuleFilter { - /** 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 `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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; - /** Filter by the object’s `claimedInvitesTable` relation. */ - claimedInvitesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `invitesTable` relation. */ - invitesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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; - /** Filter by the object’s `removeEvent` field. */ - removeEvent?: StringFilter; - /** Filter by the object’s `tgEvent` field. */ - tgEvent?: StringFilter; - /** Filter by the object’s `tgEventToggle` field. */ - tgEventToggle?: StringFilter; - /** Filter by the object’s `tgEventToggleBool` field. */ - tgEventToggleBool?: StringFilter; - /** Filter by the object’s `tgEventBool` field. */ - tgEventBool?: StringFilter; - /** Filter by the object’s `upsertAggregate` field. */ - 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. */ - levelAchieved?: StringFilter; - /** Filter by the object’s `tgCheckAchievements` field. */ - tgCheckAchievements?: StringFilter; - /** Filter by the object’s `grantAchievement` field. */ - grantAchievement?: StringFilter; - /** Filter by the object’s `tgAchievementReward` field. */ - tgAchievementReward?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EventsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EventsModuleFilter[]; - /** Negates the expression. */ - not?: EventsModuleFilter; - /** Filter by the object’s `achievementRewardsTable` relation. */ - achievementRewardsTable?: TableFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventAggregatesTable` relation. */ - eventAggregatesTable?: TableFilter; - /** Filter by the object’s `eventTypesTable` relation. */ - eventTypesTable?: TableFilter; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** Filter by the object’s `levelGrantsTable` relation. */ - levelGrantsTable?: TableFilter; - /** Filter by the object’s `levelRequirementsTable` relation. */ - levelRequirementsTable?: TableFilter; - /** Filter by the object’s `levelsTable` relation. */ - levelsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface LimitsModuleFilter { - /** 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 `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 `limitIncrementFunction` field. */ - limitIncrementFunction?: StringFilter; - /** Filter by the object’s `limitDecrementFunction` field. */ - limitDecrementFunction?: StringFilter; - /** Filter by the object’s `limitIncrementTrigger` field. */ - limitIncrementTrigger?: StringFilter; - /** Filter by the object’s `limitDecrementTrigger` field. */ - limitDecrementTrigger?: StringFilter; - /** Filter by the object’s `limitUpdateTrigger` field. */ - limitUpdateTrigger?: StringFilter; - /** Filter by the object’s `limitCheckFunction` field. */ - limitCheckFunction?: StringFilter; - /** Filter by the object’s `limitCreditsTableId` field. */ - limitCreditsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `creditCodesTableId` field. */ - creditCodesTableId?: UUIDFilter; - /** Filter by the object’s `creditCodeItemsTableId` field. */ - creditCodeItemsTableId?: UUIDFilter; - /** Filter by the object’s `creditRedemptionsTableId` field. */ - creditRedemptionsTableId?: UUIDFilter; - /** Filter by the object’s `aggregateTableId` field. */ - aggregateTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsTableId` field. */ - limitCapsTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsDefaultsTableId` field. */ - limitCapsDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `capCheckTrigger` field. */ - capCheckTrigger?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: LimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitsModuleFilter[]; - /** Negates the expression. */ - not?: LimitsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `aggregateTable` relation. */ - aggregateTable?: TableFilter; - /** A related `aggregateTable` exists. */ - aggregateTableExists?: boolean; - /** Filter by the object’s `creditCodeItemsTable` relation. */ - creditCodeItemsTable?: TableFilter; - /** A related `creditCodeItemsTable` exists. */ - creditCodeItemsTableExists?: boolean; - /** Filter by the object’s `creditCodesTable` relation. */ - creditCodesTable?: TableFilter; - /** A related `creditCodesTable` exists. */ - creditCodesTableExists?: boolean; - /** Filter by the object’s `creditRedemptionsTable` relation. */ - creditRedemptionsTable?: TableFilter; - /** A related `creditRedemptionsTable` exists. */ - creditRedemptionsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** A related `eventsTable` exists. */ - eventsTableExists?: boolean; - /** Filter by the object’s `limitCapsDefaultsTable` relation. */ - limitCapsDefaultsTable?: TableFilter; - /** A related `limitCapsDefaultsTable` exists. */ - limitCapsDefaultsTableExists?: boolean; - /** Filter by the object’s `limitCapsTable` relation. */ - limitCapsTable?: TableFilter; - /** A related `limitCapsTable` exists. */ - limitCapsTableExists?: boolean; - /** Filter by the object’s `limitCreditsTable` relation. */ - limitCreditsTable?: TableFilter; - /** A related `limitCreditsTable` exists. */ - limitCreditsTableExists?: boolean; - /** Filter by the object’s `limitWarningStateTable` relation. */ - limitWarningStateTable?: TableFilter; - /** A related `limitWarningStateTable` exists. */ - limitWarningStateTableExists?: boolean; - /** Filter by the object’s `limitWarningsTable` relation. */ - limitWarningsTable?: TableFilter; - /** A related `limitWarningsTable` exists. */ - limitWarningsTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface MembershipTypesModuleFilter { - /** 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?: MembershipTypesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; - /** Negates the expression. */ - not?: MembershipTypesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultLimitsTable` relation. */ - defaultLimitsTable?: TableFilter; - /** Filter by the object’s `defaultPermissionsTable` relation. */ - defaultPermissionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `entityTableOwner` relation. */ - entityTableOwner?: FieldFilter; - /** A related `entityTableOwner` exists. */ - entityTableOwnerExists?: boolean; - /** Filter by the object’s `grantsTable` relation. */ - grantsTable?: TableFilter; - /** Filter by the object’s `limitsTable` relation. */ - limitsTable?: TableFilter; - /** Filter by the object’s `membersTable` relation. */ - membersTable?: TableFilter; - /** Filter by the object’s `membershipDefaultsTable` relation. */ - membershipDefaultsTable?: TableFilter; - /** Filter by the object’s `membershipSettingsTable` relation. */ - membershipSettingsTable?: TableFilter; - /** A related `membershipSettingsTable` exists. */ - membershipSettingsTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sprtTable` relation. */ - sprtTable?: TableFilter; -} -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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PhoneNumbersModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: PhoneNumbersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumbersModuleFilter[]; - /** Negates the expression. */ - not?: PhoneNumbersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `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 `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; - /** Filter by the object’s `profileGrantsTableId` field. */ - profileGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileGrantsTableName` field. */ - profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ - profileDefinitionGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ - profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `profileTemplatesTableId` field. */ - profileTemplatesTableId?: UUIDFilter; - /** Filter by the object’s `profileTemplatesTableName` field. */ - profileTemplatesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ProfilesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ProfilesModuleFilter[]; - /** Negates the expression. */ - not?: ProfilesModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `profileDefinitionGrantsTable` relation. */ - profileDefinitionGrantsTable?: TableFilter; - /** Filter by the object’s `profileGrantsTable` relation. */ - profileGrantsTable?: TableFilter; - /** Filter by the object’s `profilePermissionsTable` relation. */ - profilePermissionsTable?: TableFilter; - /** Filter by the object’s `profileTemplatesTable` relation. */ - profileTemplatesTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SessionsModuleFilter { - /** 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 `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsDefaultExpiration` field. */ - sessionsDefaultExpiration?: IntervalFilter; - /** Filter by the object’s `sessionsTable` field. */ - sessionsTable?: StringFilter; - /** Filter by the object’s `sessionCredentialsTable` field. */ - sessionCredentialsTable?: StringFilter; - /** Filter by the object’s `authSettingsTable` field. */ - authSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SessionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SessionsModuleFilter[]; - /** Negates the expression. */ - not?: SessionsModuleFilter; - /** Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. */ - authSettingsTableByAuthSettingsTableId?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. */ - sessionCredentialsTableBySessionCredentialsTableId?: TableFilter; - /** Filter by the object’s `sessionsTableBySessionsTableId` relation. */ - sessionsTableBySessionsTableId?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface UserAuthModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `encryptedTableId` field. */ - encryptedTableId?: 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 `auditsTableName` field. */ - auditsTableName?: StringFilter; - /** Filter by the object’s `signInFunction` field. */ - signInFunction?: StringFilter; - /** Filter by the object’s `signUpFunction` field. */ - signUpFunction?: StringFilter; - /** Filter by the object’s `signOutFunction` field. */ - signOutFunction?: StringFilter; - /** Filter by the object’s `setPasswordFunction` field. */ - setPasswordFunction?: StringFilter; - /** Filter by the object’s `resetPasswordFunction` field. */ - resetPasswordFunction?: StringFilter; - /** Filter by the object’s `forgotPasswordFunction` field. */ - forgotPasswordFunction?: StringFilter; - /** Filter by the object’s `sendVerificationEmailFunction` field. */ - sendVerificationEmailFunction?: StringFilter; - /** Filter by the object’s `verifyEmailFunction` field. */ - verifyEmailFunction?: StringFilter; - /** Filter by the object’s `verifyPasswordFunction` field. */ - verifyPasswordFunction?: StringFilter; - /** Filter by the object’s `checkPasswordFunction` field. */ - checkPasswordFunction?: StringFilter; - /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ - sendAccountDeletionEmailFunction?: StringFilter; - /** Filter by the object’s `deleteAccountFunction` field. */ - deleteAccountFunction?: StringFilter; - /** Filter by the object’s `signInCrossOriginFunction` field. */ - signInCrossOriginFunction?: StringFilter; - /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ - requestCrossOriginTokenFunction?: StringFilter; - /** Filter by the object’s `extendTokenExpires` field. */ - extendTokenExpires?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserAuthModuleFilter[]; - /** Negates the expression. */ - not?: UserAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `encryptedTable` relation. */ - encryptedTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface UsersModuleFilter { - /** 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 `typeTableId` field. */ - typeTableId?: UUIDFilter; - /** Filter by the object’s `typeTableName` field. */ - typeTableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UsersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UsersModuleFilter[]; - /** Negates the expression. */ - not?: UsersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `typeTable` relation. */ - typeTable?: TableFilter; -} -export interface BlueprintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `templateId` field. */ - templateId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintFilter[]; - /** Negates the expression. */ - not?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `template` relation. */ - template?: BlueprintTemplateFilter; - /** A related `template` exists. */ - templateExists?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; -} -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `version` field. */ - version?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `visibility` field. */ - visibility?: StringFilter; - /** Filter by the object’s `categories` field. */ - categories?: StringListFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `definitionSchemaVersion` field. */ - definitionSchemaVersion?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `complexity` field. */ - complexity?: StringFilter; - /** Filter by the object’s `copyCount` field. */ - copyCount?: IntFilter; - /** Filter by the object’s `forkCount` field. */ - forkCount?: IntFilter; - /** Filter by the object’s `forkedFromId` field. */ - forkedFromId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintTemplateFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintTemplateFilter[]; - /** Negates the expression. */ - not?: BlueprintTemplateFilter; - /** Filter by the object’s `forkedFrom` relation. */ - forkedFrom?: BlueprintTemplateFilter; - /** A related `forkedFrom` exists. */ - forkedFromExists?: boolean; - /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ - blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; - /** `blueprintTemplatesByForkedFromId` exist. */ - blueprintTemplatesByForkedFromIdExist?: boolean; - /** Filter by the object’s `blueprintsByTemplateId` relation. */ - blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; - /** `blueprintsByTemplateId` exist. */ - blueprintsByTemplateIdExist?: boolean; -} -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface StorageModuleFilter { - /** 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 `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `filesTableId` field. */ - filesTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `filesTableName` field. */ - filesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - hasPathShares?: BooleanFilter; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: UUIDFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `hasVersioning` field. */ - hasVersioning?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; - /** Filter by the object’s `fileEventsTableId` field. */ - fileEventsTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Filter by the object’s `bucketsTable` relation. */ - bucketsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `fileEventsTable` relation. */ - fileEventsTable?: TableFilter; - /** A related `fileEventsTable` exists. */ - fileEventsTableExists?: boolean; - /** Filter by the object’s `filesTable` relation. */ - filesTable?: TableFilter; - /** Filter by the object’s `pathSharesTable` relation. */ - pathSharesTable?: TableFilter; - /** A related `pathSharesTable` exists. */ - pathSharesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface EntityTypeProvisionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - 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 `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface WebauthnCredentialsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialsModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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[]; - /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; - /** Filter by the object’s `authSettingsTable` relation. */ - authSettingsTable?: TableFilter; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `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; - /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; - /** Negates the expression. */ - not?: NotificationsModuleFilter; - /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ - channelsTableByChannelsTableId?: TableFilter; - /** A related `channelsTableByChannelsTableId` exists. */ - channelsTableByChannelsTableIdExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ - deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ - deliveryLogTableByDeliveryLogTableIdExists?: boolean; - /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ - notificationsTableByNotificationsTableId?: TableFilter; - /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ - organizationSettingsTableByOrganizationSettingsTableId?: TableFilter; - /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */ - organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ - preferencesTableByPreferencesTableId?: TableFilter; - /** A related `preferencesTableByPreferencesTableId` exists. */ - preferencesTableByPreferencesTableIdExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ - readStateTableByReadStateTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ - userSettingsTableByUserSettingsTableId?: TableFilter; - /** A related `userSettingsTableByUserSettingsTableId` exists. */ - userSettingsTableByUserSettingsTableIdExists?: boolean; -} -export interface InferenceLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; - /** Negates the expression. */ - not?: InferenceLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `inferenceLogTable` relation. */ - inferenceLogTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface ComputeLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; - /** Negates the expression. */ - not?: ComputeLogModuleFilter; - /** Filter by the object’s `computeLogTable` relation. */ - computeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface TransferLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; - /** Negates the expression. */ - not?: TransferLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `transferLogTable` relation. */ - transferLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface StorageLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; - /** Negates the expression. */ - not?: StorageLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storageLogTable` relation. */ - storageLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; - /** Negates the expression. */ - not?: DbUsageModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `queryStatsDailyTable` relation. */ - queryStatsDailyTable?: TableFilter; - /** Filter by the object’s `queryStatsLogTable` relation. */ - queryStatsLogTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `tableStatsDailyTable` relation. */ - tableStatsDailyTable?: TableFilter; - /** Filter by the object’s `tableStatsLogTable` relation. */ - tableStatsLogTable?: TableFilter; -} -export interface AgentModuleFilter { - /** 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 `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 `knowledgeTableId` field. */ - knowledgeTableId?: UUIDFilter; - /** Filter by the object’s `threadTableName` field. */ - threadTableName?: StringFilter; - /** Filter by the object’s `messageTableName` field. */ - messageTableName?: StringFilter; - /** Filter by the object’s `taskTableName` field. */ - taskTableName?: StringFilter; - /** Filter by the object’s `promptsTableName` field. */ - promptsTableName?: StringFilter; - /** Filter by the object’s `knowledgeTableName` field. */ - knowledgeTableName?: StringFilter; - /** Filter by the object’s `hasKnowledge` field. */ - hasKnowledge?: BooleanFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `knowledgeConfig` field. */ - knowledgeConfig?: JSONFilter; - /** Filter by the object’s `knowledgePolicies` field. */ - knowledgePolicies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentModuleFilter[]; - /** Negates the expression. */ - not?: AgentModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `knowledgeTable` relation. */ - knowledgeTable?: TableFilter; - /** A related `knowledgeTable` exists. */ - knowledgeTableExists?: boolean; - /** Filter by the object’s `messageTable` relation. */ - messageTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `promptsTable` relation. */ - promptsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `taskTable` relation. */ - taskTable?: TableFilter; - /** Filter by the object’s `threadTable` relation. */ - threadTable?: TableFilter; -} -export interface 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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `namespaceEventsTable` relation. */ - namespaceEventsTable?: TableFilter; - /** Filter by the object’s `namespacesTable` relation. */ - namespacesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -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 `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 `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `configRequirementsTable` relation. */ - configRequirementsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `definitionsTable` relation. */ - definitionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `executionLogsTable` relation. */ - executionLogsTable?: TableFilter; - /** Filter by the object’s `invocationsTable` relation. */ - invocationsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `requirementsTable` relation. */ - requirementsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretDefinitionsTable` relation. */ - secretDefinitionsTable?: TableFilter; -} -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?: StringListFilter; - /** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** A related `database` exists. */ - databaseExists?: boolean; -} -export interface AppAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; - /** Negates the expression. */ - not?: AppAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface AppOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; - /** Negates the expression. */ - not?: AppOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -export interface OrgMemberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberFilter[]; - /** Negates the expression. */ - not?: OrgMemberFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface CryptoAddressFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: CryptoAddressFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; - /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface WebauthnCredentialFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `credentialId` field. */ - credentialId?: StringFilter; - /** Filter by the object’s `publicKey` field. */ - publicKey?: Base64EncodedBinaryFilter; - /** Filter by the object’s `signCount` field. */ - signCount?: BigIntFilter; - /** Filter by the object’s `webauthnUserId` field. */ - webauthnUserId?: StringFilter; - /** Filter by the object’s `transports` field. */ - transports?: StringListFilter; - /** Filter by the object’s `credentialDeviceType` field. */ - credentialDeviceType?: StringFilter; - /** Filter by the object’s `backupEligible` field. */ - backupEligible?: BooleanFilter; - /** Filter by the object’s `backupState` field. */ - backupState?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `lastUsedAt` field. */ - lastUsedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; - /** Negates the expression. */ - not?: AppClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -export interface OrgClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; - /** Negates the expression. */ - not?: OrgClaimedInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -export interface AuditLogAuthFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogAuthFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogAuthFilter[]; - /** Negates the expression. */ - not?: AuditLogAuthFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; -} -export interface IdentityProviderFilter { - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `enabled` field. */ - enabled?: BooleanFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProviderFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProviderFilter[]; - /** Negates the expression. */ - not?: IdentityProviderFilter; -} -export interface AppPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; -} -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; - /** Checks for all expressions in this list. */ - and?: MigrateFileFilter[]; - /** Checks for any expressions in this list. */ - or?: MigrateFileFilter[]; - /** Negates the expression. */ - not?: MigrateFileFilter; -} -export interface DevicesModuleFilter { - /** 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 `userDevicesTableId` field. */ - userDevicesTableId?: UUIDFilter; - /** Filter by the object’s `deviceSettingsTableId` field. */ - deviceSettingsTableId?: UUIDFilter; - /** Filter by the object’s `userDevicesTable` field. */ - userDevicesTable?: StringFilter; - /** Filter by the object’s `deviceSettingsTable` field. */ - deviceSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DevicesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DevicesModuleFilter[]; - /** Negates the expression. */ - not?: DevicesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. */ - deviceSettingsTableByDeviceSettingsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ - userDevicesTableByUserDevicesTableId?: TableFilter; -} -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface NodeTypeRegistryFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parameterSchema` field. */ - parameterSchema?: JSONFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: NodeTypeRegistryFilter[]; - /** Checks for any expressions in this list. */ - or?: NodeTypeRegistryFilter[]; - /** Negates the expression. */ - not?: NodeTypeRegistryFilter; -} -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface UserConnectedAccountFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `service` field. */ - service?: StringFilter; - /** Filter by the object’s `identifier` field. */ - identifier?: StringFilter; - /** Filter by the object’s `details` field. */ - details?: JSONFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: UserConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: UserConnectedAccountFilter[]; - /** Negates the expression. */ - not?: UserConnectedAccountFilter; -} -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -export interface PubkeySettingFilter { - /** 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 `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `signUpWithKeyFunctionId` field. */ - signUpWithKeyFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ - signInRequestChallengeFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRecordFailureFunctionId` field. */ - signInRecordFailureFunctionId?: UUIDFilter; - /** Filter by the object’s `signInWithChallengeFunctionId` field. */ - signInWithChallengeFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PubkeySettingFilter[]; - /** Checks for any expressions in this list. */ - or?: PubkeySettingFilter[]; - /** Negates the expression. */ - not?: PubkeySettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `signInRecordFailureFunction` relation. */ - signInRecordFailureFunction?: FunctionFilter; - /** A related `signInRecordFailureFunction` exists. */ - signInRecordFailureFunctionExists?: boolean; - /** Filter by the object’s `signInRequestChallengeFunction` relation. */ - signInRequestChallengeFunction?: FunctionFilter; - /** A related `signInRequestChallengeFunction` exists. */ - signInRequestChallengeFunctionExists?: boolean; - /** Filter by the object’s `signInWithChallengeFunction` relation. */ - signInWithChallengeFunction?: FunctionFilter; - /** A related `signInWithChallengeFunction` exists. */ - signInWithChallengeFunctionExists?: boolean; - /** Filter by the object’s `signUpWithKeyFunction` relation. */ - signUpWithKeyFunction?: FunctionFilter; - /** A related `signUpWithKeyFunction` exists. */ - signUpWithKeyFunctionExists?: boolean; -} -export interface RateLimitsModuleFilter { - /** 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 `rateLimitSettingsTableId` field. */ - rateLimitSettingsTableId?: UUIDFilter; - /** Filter by the object’s `ipRateLimitsTableId` field. */ - ipRateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitsTableId` field. */ - rateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitSettingsTable` field. */ - rateLimitSettingsTable?: StringFilter; - /** Filter by the object’s `ipRateLimitsTable` field. */ - ipRateLimitsTable?: StringFilter; - /** Filter by the object’s `rateLimitsTable` field. */ - rateLimitsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitsModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. */ - ipRateLimitsTableByIpRateLimitsTableId?: TableFilter; - /** Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. */ - rateLimitSettingsTableByRateLimitSettingsTableId?: TableFilter; - /** Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation. */ - rateLimitsTableByRateLimitsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface RlsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `authenticateSchemaId` field. */ - authenticateSchemaId?: UUIDFilter; - /** Filter by the object’s `roleSchemaId` field. */ - roleSchemaId?: UUIDFilter; - /** Filter by the object’s `authenticateFunctionId` field. */ - authenticateFunctionId?: UUIDFilter; - /** Filter by the object’s `authenticateStrictFunctionId` field. */ - authenticateStrictFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleFunctionId` field. */ - currentRoleFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleIdFunctionId` field. */ - currentRoleIdFunctionId?: UUIDFilter; - /** Filter by the object’s `currentUserAgentFunctionId` field. */ - currentUserAgentFunctionId?: UUIDFilter; - /** Filter by the object’s `currentIpAddressFunctionId` field. */ - currentIpAddressFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RlsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsSettingFilter[]; - /** Negates the expression. */ - not?: RlsSettingFilter; - /** Filter by the object’s `authenticateFunction` relation. */ - authenticateFunction?: FunctionFilter; - /** A related `authenticateFunction` exists. */ - authenticateFunctionExists?: boolean; - /** Filter by the object’s `authenticateSchema` relation. */ - authenticateSchema?: SchemaFilter; - /** A related `authenticateSchema` exists. */ - authenticateSchemaExists?: boolean; - /** Filter by the object’s `authenticateStrictFunction` relation. */ - authenticateStrictFunction?: FunctionFilter; - /** A related `authenticateStrictFunction` exists. */ - authenticateStrictFunctionExists?: boolean; - /** Filter by the object’s `currentIpAddressFunction` relation. */ - currentIpAddressFunction?: FunctionFilter; - /** A related `currentIpAddressFunction` exists. */ - currentIpAddressFunctionExists?: boolean; - /** Filter by the object’s `currentRoleFunction` relation. */ - currentRoleFunction?: FunctionFilter; - /** A related `currentRoleFunction` exists. */ - currentRoleFunctionExists?: boolean; - /** Filter by the object’s `currentRoleIdFunction` relation. */ - currentRoleIdFunction?: FunctionFilter; - /** A related `currentRoleIdFunction` exists. */ - currentRoleIdFunctionExists?: boolean; - /** Filter by the object’s `currentUserAgentFunction` relation. */ - currentUserAgentFunction?: FunctionFilter; - /** A related `currentUserAgentFunction` exists. */ - currentUserAgentFunctionExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `roleSchema` relation. */ - roleSchema?: SchemaFilter; - /** A related `roleSchema` exists. */ - roleSchemaExists?: boolean; -} -export interface 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; - /** Checks for all expressions in this list. */ - and?: RlsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsModuleFilter[]; - /** Negates the expression. */ - not?: RlsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface RateLimitMetersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -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 `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 `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `planLimitsTable` relation. */ - planLimitsTable?: TableFilter; - /** Filter by the object’s `planOverridesTable` relation. */ - planOverridesTable?: TableFilter; - /** A related `planOverridesTable` exists. */ - planOverridesTableExists?: boolean; - /** Filter by the object’s `planPricingTable` relation. */ - planPricingTable?: TableFilter; - /** A related `planPricingTable` exists. */ - planPricingTableExists?: boolean; - /** Filter by the object’s `plansTable` relation. */ - plansTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface SqlActionFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: StringFilter; - /** Filter by the object’s `deps` field. */ - deps?: StringListFilter; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `revert` field. */ - revert?: StringFilter; - /** Filter by the object’s `verify` field. */ - verify?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: SqlActionFilter[]; - /** Checks for any expressions in this list. */ - or?: SqlActionFilter[]; - /** Negates the expression. */ - not?: SqlActionFilter; -} -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** 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?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `ownedDatabases` relation. */ - ownedDatabases?: UserToManyDatabaseFilter; - /** `ownedDatabases` exist. */ - ownedDatabasesExist?: boolean; - /** Filter by the object’s `appMembershipByActorId` relation. */ - appMembershipByActorId?: AppMembershipFilter; - /** A related `appMembershipByActorId` exists. */ - appMembershipByActorIdExists?: boolean; - /** Filter by the object’s `appAdminGrantsByActorId` relation. */ - appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByActorId` exist. */ - appAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ - appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByGrantorId` exist. */ - appAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ - appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByActorId` exist. */ - appOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ - appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByGrantorId` exist. */ - appOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appGrantsByActorId` relation. */ - appGrantsByActorId?: UserToManyAppGrantFilter; - /** `appGrantsByActorId` exist. */ - appGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appGrantsByGrantorId` relation. */ - appGrantsByGrantorId?: UserToManyAppGrantFilter; - /** `appGrantsByGrantorId` exist. */ - appGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByActorId` relation. */ - orgMembershipsByActorId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByActorId` exist. */ - orgMembershipsByActorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByEntityId` relation. */ - orgMembershipsByEntityId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByEntityId` exist. */ - orgMembershipsByEntityIdExist?: boolean; - /** Filter by the object’s `orgMembershipDefaultByEntityId` relation. */ - orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter; - /** A related `orgMembershipDefaultByEntityId` exists. */ - orgMembershipDefaultByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */ - orgMembershipSettingByEntityId?: OrgMembershipSettingFilter; - /** A related `orgMembershipSettingByEntityId` exists. */ - orgMembershipSettingByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembersByActorId` relation. */ - orgMembersByActorId?: UserToManyOrgMemberFilter; - /** `orgMembersByActorId` exist. */ - orgMembersByActorIdExist?: boolean; - /** Filter by the object’s `orgMembersByEntityId` relation. */ - orgMembersByEntityId?: UserToManyOrgMemberFilter; - /** `orgMembersByEntityId` exist. */ - orgMembersByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ - orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByActorId` exist. */ - orgAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ - orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByEntityId` exist. */ - orgAdminGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByGrantorId` relation. */ - orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByGrantorId` exist. */ - orgAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ - orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByActorId` exist. */ - orgOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ - orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByEntityId` exist. */ - orgOwnerGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByGrantorId` relation. */ - orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByGrantorId` exist. */ - orgOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByActorId` relation. */ - orgMemberProfilesByActorId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByActorId` exist. */ - orgMemberProfilesByActorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByEntityId` relation. */ - orgMemberProfilesByEntityId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByEntityId` exist. */ - orgMemberProfilesByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByActorId` relation. */ - orgGrantsByActorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByActorId` exist. */ - orgGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgGrantsByEntityId` relation. */ - orgGrantsByEntityId?: UserToManyOrgGrantFilter; - /** `orgGrantsByEntityId` exist. */ - orgGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByGrantorId` relation. */ - orgGrantsByGrantorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByGrantorId` exist. */ - orgGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `parentOrgChartEdges` relation. */ - parentOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `parentOrgChartEdges` exist. */ - parentOrgChartEdgesExist?: boolean; - /** Filter by the object’s `orgChartEdgesByEntityId` relation. */ - orgChartEdgesByEntityId?: UserToManyOrgChartEdgeFilter; - /** `orgChartEdgesByEntityId` exist. */ - orgChartEdgesByEntityIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdges` relation. */ - childOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `childOrgChartEdges` exist. */ - childOrgChartEdgesExist?: boolean; - /** Filter by the object’s `parentOrgChartEdgeGrants` relation. */ - parentOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `parentOrgChartEdgeGrants` exist. */ - parentOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByEntityId` relation. */ - orgChartEdgeGrantsByEntityId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByEntityId` exist. */ - orgChartEdgeGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation. */ - orgChartEdgeGrantsByGrantorId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByGrantorId` exist. */ - orgChartEdgeGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdgeGrants` relation. */ - childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `childOrgChartEdgeGrants` exist. */ - childOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ - orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; - /** `orgPermissionDefaultsByEntityId` exist. */ - orgPermissionDefaultsByEntityIdExist?: boolean; - /** Filter by the object’s `appLimitsByActorId` relation. */ - appLimitsByActorId?: UserToManyAppLimitFilter; - /** `appLimitsByActorId` exist. */ - appLimitsByActorIdExist?: boolean; - /** Filter by the object’s `appLimitCreditsByActorId` relation. */ - appLimitCreditsByActorId?: UserToManyAppLimitCreditFilter; - /** `appLimitCreditsByActorId` exist. */ - appLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByActorId` relation. */ - orgLimitsByActorId?: UserToManyOrgLimitFilter; - /** `orgLimitsByActorId` exist. */ - orgLimitsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByEntityId` relation. */ - orgLimitsByEntityId?: UserToManyOrgLimitFilter; - /** `orgLimitsByEntityId` exist. */ - orgLimitsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByActorId` relation. */ - orgLimitCreditsByActorId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByActorId` exist. */ - orgLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByEntityId` relation. */ - orgLimitCreditsByEntityId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByEntityId` exist. */ - orgLimitCreditsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ - orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; - /** `orgLimitAggregatesByEntityId` exist. */ - orgLimitAggregatesByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitWarningsByEntityId` relation. */ - orgLimitWarningsByEntityId?: UserToManyOrgLimitWarningFilter; - /** `orgLimitWarningsByEntityId` exist. */ - orgLimitWarningsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedEmails` relation. */ - ownedEmails?: UserToManyEmailFilter; - /** `ownedEmails` exist. */ - ownedEmailsExist?: boolean; - /** Filter by the object’s `ownedPhoneNumbers` relation. */ - ownedPhoneNumbers?: UserToManyPhoneNumberFilter; - /** `ownedPhoneNumbers` exist. */ - ownedPhoneNumbersExist?: boolean; - /** Filter by the object’s `ownedCryptoAddresses` relation. */ - ownedCryptoAddresses?: UserToManyCryptoAddressFilter; - /** `ownedCryptoAddresses` exist. */ - ownedCryptoAddressesExist?: boolean; - /** Filter by the object’s `ownedWebauthnCredentials` relation. */ - ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `ownedWebauthnCredentials` exist. */ - ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `appInvitesBySenderId` relation. */ - appInvitesBySenderId?: UserToManyAppInviteFilter; - /** `appInvitesBySenderId` exist. */ - appInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesByReceiverId` relation. */ - appClaimedInvitesByReceiverId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesByReceiverId` exist. */ - appClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesBySenderId` relation. */ - appClaimedInvitesBySenderId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesBySenderId` exist. */ - appClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgInvitesByEntityId` relation. */ - orgInvitesByEntityId?: UserToManyOrgInviteFilter; - /** `orgInvitesByEntityId` exist. */ - orgInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgInvitesByReceiverId` relation. */ - orgInvitesByReceiverId?: UserToManyOrgInviteFilter; - /** `orgInvitesByReceiverId` exist. */ - orgInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgInvitesBySenderId` relation. */ - orgInvitesBySenderId?: UserToManyOrgInviteFilter; - /** `orgInvitesBySenderId` exist. */ - orgInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ - orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByEntityId` exist. */ - orgClaimedInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ - orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByReceiverId` exist. */ - orgClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesBySenderId` relation. */ - orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesBySenderId` exist. */ - orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogAuthsByActorId` relation. */ - auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; - /** `auditLogAuthsByActorId` exist. */ - auditLogAuthsByActorIdExist?: boolean; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; -} -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; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `credentialsSchemaId` field. */ - credentialsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionsSchemaId` field. */ - sessionsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsSchemaId` field. */ - sessionSecretsSchemaId?: 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 `userFieldId` field. */ - userFieldId?: 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 `challengeExpirySeconds` field. */ - challengeExpirySeconds?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnSettingFilter[]; - /** Negates the expression. */ - not?: WebauthnSettingFilter; - /** Filter by the object’s `credentialsSchema` relation. */ - credentialsSchema?: SchemaFilter; - /** A related `credentialsSchema` exists. */ - credentialsSchemaExists?: boolean; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** A related `credentialsTable` exists. */ - credentialsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** A related `sessionCredentialsTable` exists. */ - sessionCredentialsTableExists?: boolean; - /** Filter by the object’s `sessionSecretsSchema` relation. */ - sessionSecretsSchema?: SchemaFilter; - /** A related `sessionSecretsSchema` exists. */ - sessionSecretsSchemaExists?: boolean; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** A related `sessionSecretsTable` exists. */ - sessionSecretsTableExists?: boolean; - /** Filter by the object’s `sessionsSchema` relation. */ - sessionsSchema?: SchemaFilter; - /** A related `sessionsSchema` exists. */ - sessionsSchemaExists?: boolean; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** A related `sessionsTable` exists. */ - sessionsTableExists?: boolean; - /** Filter by the object’s `userField` relation. */ - userField?: FieldFilter; - /** A related `userField` exists. */ - userFieldExists?: boolean; -} -export interface BillingModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; - /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `meterCreditsTable` relation. */ - meterCreditsTable?: TableFilter; - /** Filter by the object’s `meterSourcesTable` relation. */ - meterSourcesTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface BillingProviderModuleFilter { - /** Filter by the object’s `id` field. */ - 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; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; - /** Filter by the object’s `billingCustomersTable` relation. */ - billingCustomersTable?: TableFilter; - /** Filter by the object’s `billingPricesTable` relation. */ - billingPricesTable?: TableFilter; - /** Filter by the object’s `billingProductsTable` relation. */ - billingProductsTable?: TableFilter; - /** Filter by the object’s `billingSubscriptionsTable` relation. */ - billingSubscriptionsTable?: TableFilter; - /** Filter by the object’s `billingWebhookEventsTable` relation. */ - billingWebhookEventsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `pricesTable` relation. */ - pricesTable?: TableFilter; - /** A related `pricesTable` exists. */ - pricesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -export interface HierarchyModuleFilter { - /** 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 `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 `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 `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; - /** Filter by the object’s `chartEdgeGrantsTable` relation. */ - chartEdgeGrantsTable?: TableFilter; - /** Filter by the object’s `chartEdgesTable` relation. */ - chartEdgesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** Filter by the object’s `hierarchySprtTable` relation. */ - hierarchySprtTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -export type OrgPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -export type DatabaseOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SCHEMA_HASH_ASC' - | 'SCHEMA_HASH_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SCHEMA_NAME_ASC' - | 'SCHEMA_NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'TIMESTAMPS_ASC' - | 'TIMESTAMPS_DESC' - | 'PEOPLESTAMPS_ASC' - | 'PEOPLESTAMPS_DESC' - | 'PLURAL_NAME_ASC' - | 'PLURAL_NAME_DESC' - | 'SINGULAR_NAME_ASC' - | 'SINGULAR_NAME_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'PARTITIONED_ASC' - | 'PARTITIONED_DESC' - | 'PARTITION_STRATEGY_ASC' - | 'PARTITION_STRATEGY_DESC' - | 'PARTITION_KEY_NAMES_ASC' - | 'PARTITION_KEY_NAMES_DESC' - | 'PARTITION_KEY_TYPES_ASC' - | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type CheckConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'EXPR_ASC' - | 'EXPR_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'API_REQUIRED_ASC' - | 'API_REQUIRED_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_ORDER_ASC' - | 'FIELD_ORDER_DESC' - | 'REGEXP_ASC' - | 'REGEXP_DESC' - | 'CHK_ASC' - | 'CHK_DESC' - | 'CHK_EXPR_ASC' - | 'CHK_EXPR_DESC' - | 'MIN_ASC' - | 'MIN_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SpatialRelationOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'OPERATOR_ASC' - | 'OPERATOR_DESC' - | 'PARAM_NAME_ASC' - | 'PARAM_NAME_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type ForeignKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_IDS_ASC' - | 'REF_FIELD_IDS_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'UPDATE_ACTION_ASC' - | 'UPDATE_ACTION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FullTextSearchOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'WEIGHTS_ASC' - | 'WEIGHTS_DESC' - | 'LANGS_ASC' - | 'LANGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type IndexOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'INCLUDE_FIELD_IDS_ASC' - | 'INCLUDE_FIELD_IDS_DESC' - | 'ACCESS_METHOD_ASC' - | 'ACCESS_METHOD_DESC' - | 'INDEX_PARAMS_ASC' - | 'INDEX_PARAMS_DESC' - | 'WHERE_CLAUSE_ASC' - | 'WHERE_CLAUSE_DESC' - | 'IS_UNIQUE_ASC' - | 'IS_UNIQUE_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'OP_CLASSES_ASC' - | 'OP_CLASSES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PolicyOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'PERMISSIVE_ASC' - | 'PERMISSIVE_DESC' - | 'DISABLED_ASC' - | 'DISABLED_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PrimaryKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TableGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TriggerOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'FUNCTION_NAME_ASC' - | 'FUNCTION_NAME_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type UniqueConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type ViewOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'VIEW_TYPE_ASC' - | 'VIEW_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FILTER_TYPE_ASC' - | 'FILTER_TYPE_DESC' - | 'FILTER_DATA_ASC' - | 'FILTER_DATA_DESC' - | 'SECURITY_INVOKER_ASC' - | 'SECURITY_INVOKER_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type ViewTableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'JOIN_ORDER_ASC' - | 'JOIN_ORDER_DESC'; -export type ViewGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -export type ViewRuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC'; -export type EmbeddingChunkOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'EMBEDDING_FIELD_ID_ASC' - | 'EMBEDDING_FIELD_ID_DESC' - | 'CHUNKS_TABLE_ID_ASC' - | 'CHUNKS_TABLE_ID_DESC' - | 'CHUNKS_TABLE_NAME_ASC' - | 'CHUNKS_TABLE_NAME_DESC' - | 'CONTENT_FIELD_NAME_ASC' - | 'CONTENT_FIELD_NAME_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'METRIC_ASC' - | 'METRIC_DESC' - | 'CHUNK_SIZE_ASC' - | 'CHUNK_SIZE_DESC' - | 'CHUNK_OVERLAP_ASC' - | 'CHUNK_OVERLAP_DESC' - | 'CHUNK_STRATEGY_ASC' - | 'CHUNK_STRATEGY_DESC' - | 'METADATA_FIELDS_ASC' - | 'METADATA_FIELDS_DESC' - | 'SEARCH_INDEXES_ASC' - | 'SEARCH_INDEXES_DESC' - | 'ENQUEUE_CHUNKING_JOB_ASC' - | 'ENQUEUE_CHUNKING_JOB_DESC' - | 'CHUNKING_TASK_NAME_ASC' - | 'CHUNKING_TASK_NAME_DESC' - | 'EMBEDDING_MODEL_ASC' - | 'EMBEDDING_MODEL_DESC' - | 'EMBEDDING_PROVIDER_ASC' - | 'EMBEDDING_PROVIDER_DESC' - | 'PARENT_FK_FIELD_ID_ASC' - | 'PARENT_FK_FIELD_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SecureTableProvisionOrderBy = - | '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' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_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 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'; -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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_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'; -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type SchemaGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DefaultPrivilegeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'OBJECT_TYPE_ASC' - | 'OBJECT_TYPE_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -export type EnumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'VALUES_ASC' - | 'VALUES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type FunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type ApiSchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC'; -export type ApiModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type DomainOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC'; -export type SiteMetadatumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC'; -export type SiteModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type SiteThemeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'THEME_ASC' - | 'THEME_DESC'; -export type CorsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC'; -export type MerkleStoreModuleOrderBy = - | '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' - | '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_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MERKLE_STORE_MODULE_ID_ASC' - | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' - | 'EXECUTIONS_TABLE_ID_ASC' - | 'EXECUTIONS_TABLE_ID_DESC' - | 'OUTPUTS_TABLE_ID_ASC' - | 'OUTPUTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type TriggerFunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PartitionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'STRATEGY_ASC' - | 'STRATEGY_DESC' - | 'PARTITION_KEY_ID_ASC' - | 'PARTITION_KEY_ID_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'RETENTION_KEEP_TABLE_ASC' - | 'RETENTION_KEEP_TABLE_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'NAMING_PATTERN_ASC' - | 'NAMING_PATTERN_DESC' - | 'IS_PARENTED_ASC' - | 'IS_PARENTED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DatabaseTransferOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TARGET_OWNER_ID_ASC' - | 'TARGET_OWNER_ID_DESC' - | 'SOURCE_APPROVED_ASC' - | 'SOURCE_APPROVED_DESC' - | 'TARGET_APPROVED_ASC' - | 'TARGET_APPROVED_DESC' - | 'SOURCE_APPROVED_AT_ASC' - | 'SOURCE_APPROVED_AT_DESC' - | 'TARGET_APPROVED_AT_ASC' - | 'TARGET_APPROVED_AT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'INITIATED_BY_ASC' - | 'INITIATED_BY_DESC' - | 'NOTES_ASC' - | 'NOTES_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -export type ApiOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC'; -export type SiteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'FAVICON_ASC' - | 'FAVICON_DESC' - | 'APPLE_TOUCH_ICON_ASC' - | 'APPLE_TOUCH_ICON_DESC' - | 'LOGO_ASC' - | 'LOGO_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC'; -export type AppOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'APP_IMAGE_ASC' - | 'APP_IMAGE_DESC' - | 'APP_STORE_LINK_ASC' - | 'APP_STORE_LINK_DESC' - | 'APP_STORE_ID_ASC' - | 'APP_STORE_ID_DESC' - | 'APP_ID_PREFIX_ASC' - | 'APP_ID_PREFIX_DESC' - | 'PLAY_STORE_LINK_ASC' - | 'PLAY_STORE_LINK_DESC'; -export type ApiSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -export type ConnectedAccountsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type CryptoAddressesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC'; -export type CryptoAuthModuleOrderBy = - | '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' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'ADDRESSES_TABLE_ID_ASC' - | 'ADDRESSES_TABLE_ID_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_DESC' - | 'SIGN_IN_RECORD_FAILURE_ASC' - | 'SIGN_IN_RECORD_FAILURE_DESC' - | 'SIGN_UP_WITH_KEY_ASC' - | 'SIGN_UP_WITH_KEY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_ASC' - | 'SIGN_IN_WITH_CHALLENGE_DESC'; -export type DefaultIdsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type DenormalizedTableFieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'SET_IDS_ASC' - | 'SET_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'REF_IDS_ASC' - | 'REF_IDS_DESC' - | 'USE_UPDATES_ASC' - | 'USE_UPDATES_DESC' - | 'UPDATE_DEFAULTS_ASC' - | 'UPDATE_DEFAULTS_DESC' - | 'FUNC_NAME_ASC' - | 'FUNC_NAME_DESC' - | 'FUNC_ORDER_ASC' - | 'FUNC_ORDER_DESC'; -export type EmailsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = - | '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' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC'; -export type InvitesModuleOrderBy = - | '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' - | '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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; -export type EventsModuleOrderBy = - | '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' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' - | 'EVENTS_TABLE_NAME_ASC' - | 'EVENTS_TABLE_NAME_DESC' - | 'EVENT_AGGREGATES_TABLE_ID_ASC' - | 'EVENT_AGGREGATES_TABLE_ID_DESC' - | 'EVENT_AGGREGATES_TABLE_NAME_ASC' - | 'EVENT_AGGREGATES_TABLE_NAME_DESC' - | 'EVENT_TYPES_TABLE_ID_ASC' - | 'EVENT_TYPES_TABLE_ID_DESC' - | 'EVENT_TYPES_TABLE_NAME_ASC' - | 'EVENT_TYPES_TABLE_NAME_DESC' - | 'LEVELS_TABLE_ID_ASC' - | 'LEVELS_TABLE_ID_DESC' - | 'LEVELS_TABLE_NAME_ASC' - | 'LEVELS_TABLE_NAME_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' - | 'LEVEL_GRANTS_TABLE_ID_ASC' - | 'LEVEL_GRANTS_TABLE_ID_DESC' - | 'LEVEL_GRANTS_TABLE_NAME_ASC' - | 'LEVEL_GRANTS_TABLE_NAME_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' - | 'RECORD_EVENT_ASC' - | 'RECORD_EVENT_DESC' - | 'REMOVE_EVENT_ASC' - | 'REMOVE_EVENT_DESC' - | 'TG_EVENT_ASC' - | 'TG_EVENT_DESC' - | 'TG_EVENT_TOGGLE_ASC' - | 'TG_EVENT_TOGGLE_DESC' - | 'TG_EVENT_TOGGLE_BOOL_ASC' - | 'TG_EVENT_TOGGLE_BOOL_DESC' - | 'TG_EVENT_BOOL_ASC' - | 'TG_EVENT_BOOL_DESC' - | 'UPSERT_AGGREGATE_ASC' - | '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' - | 'LEVEL_ACHIEVED_DESC' - | 'TG_CHECK_ACHIEVEMENTS_ASC' - | 'TG_CHECK_ACHIEVEMENTS_DESC' - | 'GRANT_ACHIEVEMENT_ASC' - | 'GRANT_ACHIEVEMENT_DESC' - | 'TG_ACHIEVEMENT_REWARD_ASC' - | 'TG_ACHIEVEMENT_REWARD_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -export type LimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -export type MembershipTypesModuleOrderBy = - | '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 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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -export type PhoneNumbersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type ProfilesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_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' - | 'PREFIX_ASC' - | 'PREFIX_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 SessionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUTH_SETTINGS_TABLE_ID_ASC' - | 'AUTH_SETTINGS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_DEFAULT_EXPIRATION_ASC' - | 'SESSIONS_DEFAULT_EXPIRATION_DESC' - | 'SESSIONS_TABLE_ASC' - | 'SESSIONS_TABLE_DESC' - | 'SESSION_CREDENTIALS_TABLE_ASC' - | 'SESSION_CREDENTIALS_TABLE_DESC' - | 'AUTH_SETTINGS_TABLE_ASC' - | 'AUTH_SETTINGS_TABLE_DESC'; -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'; -export type UsersModuleOrderBy = - | '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' - | 'TYPE_TABLE_ID_ASC' - | 'TYPE_TABLE_ID_DESC' - | 'TYPE_TABLE_NAME_ASC' - | 'TYPE_TABLE_NAME_DESC'; -export type BlueprintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'TEMPLATE_ID_ASC' - | 'TEMPLATE_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type BlueprintTemplateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'VERSION_ASC' - | 'VERSION_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'VISIBILITY_ASC' - | 'VISIBILITY_DESC' - | 'CATEGORIES_ASC' - | 'CATEGORIES_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DEFINITION_SCHEMA_VERSION_ASC' - | 'DEFINITION_SCHEMA_VERSION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'COMPLEXITY_ASC' - | 'COMPLEXITY_DESC' - | 'COPY_COUNT_ASC' - | 'COPY_COUNT_DESC' - | 'FORK_COUNT_ASC' - | 'FORK_COUNT_DESC' - | 'FORKED_FROM_ID_ASC' - | 'FORKED_FROM_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type BlueprintConstructionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'BLUEPRINT_ID_ASC' - | 'BLUEPRINT_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_DETAILS_ASC' - | 'ERROR_DETAILS_DESC' - | 'TABLE_MAP_ASC' - | 'TABLE_MAP_DESC' - | 'CONSTRUCTED_DEFINITION_ASC' - | 'CONSTRUCTED_DEFINITION_DESC' - | 'CONSTRUCTED_AT_ASC' - | 'CONSTRUCTED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type StorageModuleOrderBy = - | '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' - | 'BUCKETS_TABLE_ID_ASC' - | 'BUCKETS_TABLE_ID_DESC' - | 'FILES_TABLE_ID_ASC' - | 'FILES_TABLE_ID_DESC' - | 'BUCKETS_TABLE_NAME_ASC' - | 'BUCKETS_TABLE_NAME_DESC' - | 'FILES_TABLE_NAME_ASC' - | 'FILES_TABLE_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENDPOINT_ASC' - | 'ENDPOINT_DESC' - | 'PUBLIC_URL_PREFIX_ASC' - | 'PUBLIC_URL_PREFIX_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC' - | 'RESTRICT_READS_ASC' - | 'RESTRICT_READS_DESC' - | 'HAS_PATH_SHARES_ASC' - | 'HAS_PATH_SHARES_DESC' - | 'PATH_SHARES_TABLE_ID_ASC' - | 'PATH_SHARES_TABLE_ID_DESC' - | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' - | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DEFAULT_MAX_FILE_SIZE_ASC' - | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'MAX_FILENAME_LENGTH_ASC' - | 'MAX_FILENAME_LENGTH_DESC' - | 'CACHE_TTL_SECONDS_ASC' - | 'CACHE_TTL_SECONDS_DESC' - | 'MAX_BULK_FILES_ASC' - | 'MAX_BULK_FILES_DESC' - | 'MAX_BULK_TOTAL_SIZE_ASC' - | 'MAX_BULK_TOTAL_SIZE_DESC' - | 'HAS_VERSIONING_ASC' - | 'HAS_VERSIONING_DESC' - | 'HAS_CONTENT_HASH_ASC' - | 'HAS_CONTENT_HASH_DESC' - | 'HAS_CUSTOM_KEYS_ASC' - | 'HAS_CUSTOM_KEYS_DESC' - | 'HAS_AUDIT_LOG_ASC' - | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' - | 'CONFIRM_UPLOAD_DELAY_ASC' - | 'CONFIRM_UPLOAD_DELAY_DESC' - | 'FILE_EVENTS_TABLE_ID_ASC' - | 'FILE_EVENTS_TABLE_ID_DESC'; -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | '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_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; -export type WebauthnCredentialsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -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'; -export type NotificationsModuleOrderBy = - | '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' - | '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' - | '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'; -export type InferenceLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type ComputeLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type TransferLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type StorageLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type DbUsageModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type AgentModuleOrderBy = - | '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' - | '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' - | 'KNOWLEDGE_TABLE_ID_ASC' - | 'KNOWLEDGE_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' - | 'KNOWLEDGE_TABLE_NAME_ASC' - | 'KNOWLEDGE_TABLE_NAME_DESC' - | 'HAS_KNOWLEDGE_ASC' - | 'HAS_KNOWLEDGE_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'KNOWLEDGE_CONFIG_ASC' - | 'KNOWLEDGE_CONFIG_DESC' - | 'KNOWLEDGE_POLICIES_ASC' - | 'KNOWLEDGE_POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -export type NamespaceModuleOrderBy = - | '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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -export type FunctionModuleOrderBy = - | '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' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_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' - | '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 AppAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -export type OrgMemberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMemberProfileOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type OrgGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type OrgChartEdgeGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PhoneNumberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type CryptoAddressOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type WebauthnCredentialOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREDENTIAL_ID_ASC' - | 'CREDENTIAL_ID_DESC' - | 'PUBLIC_KEY_ASC' - | 'PUBLIC_KEY_DESC' - | 'SIGN_COUNT_ASC' - | 'SIGN_COUNT_DESC' - | 'WEBAUTHN_USER_ID_ASC' - | 'WEBAUTHN_USER_ID_DESC' - | 'TRANSPORTS_ASC' - | 'TRANSPORTS_DESC' - | 'CREDENTIAL_DEVICE_TYPE_ASC' - | 'CREDENTIAL_DEVICE_TYPE_DESC' - | 'BACKUP_ELIGIBLE_ASC' - | 'BACKUP_ELIGIBLE_DESC' - | 'BACKUP_STATE_ASC' - | 'BACKUP_STATE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LAST_USED_AT_ASC' - | 'LAST_USED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AuditLogAuthOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC'; -export type IdentityProviderOrderBy = - | 'NATURAL' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ENABLED_ASC' - | 'ENABLED_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC'; -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; -export type DevicesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type NodeTypeRegistryOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARAMETER_SCHEMA_ASC' - | 'PARAMETER_SCHEMA_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type UserConnectedAccountOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type PubkeySettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; -export type RateLimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' - | 'IP_RATE_LIMITS_TABLE_ID_ASC' - | 'IP_RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMITS_TABLE_ID_ASC' - | 'RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_DESC' - | 'IP_RATE_LIMITS_TABLE_ASC' - | 'IP_RATE_LIMITS_TABLE_DESC' - | 'RATE_LIMITS_TABLE_ASC' - | 'RATE_LIMITS_TABLE_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -export type RlsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUTHENTICATE_SCHEMA_ID_ASC' - | 'AUTHENTICATE_SCHEMA_ID_DESC' - | 'ROLE_SCHEMA_ID_ASC' - | 'ROLE_SCHEMA_ID_DESC' - | 'AUTHENTICATE_FUNCTION_ID_ASC' - | 'AUTHENTICATE_FUNCTION_ID_DESC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type RlsModuleOrderBy = - | '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' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'AUTHENTICATE_ASC' - | 'AUTHENTICATE_DESC' - | 'AUTHENTICATE_STRICT_ASC' - | 'AUTHENTICATE_STRICT_DESC' - | 'CURRENT_ROLE_ASC' - | 'CURRENT_ROLE_DESC' - | 'CURRENT_ROLE_ID_ASC' - | 'CURRENT_ROLE_ID_DESC'; -export type RateLimitMetersModuleOrderBy = - | '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' - | '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'; -export type PlansModuleOrderBy = - | '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' - | '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' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type SqlActionOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'DEPS_ASC' - | 'DEPS_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'CONTENT_ASC' - | 'CONTENT_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type DatabaseSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -export type OrgMembershipSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -export type UserOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -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' - | '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'; -export type BillingModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type BillingProviderModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | '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'; -export type HierarchyModuleOrderBy = - | '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' - | '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' - | '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' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -// ============ CRUD Input Types ============ -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - userId: string; - depth?: number; - }; -} -export interface OrgGetManagersRecordPatch { - userId?: string | null; - depth?: number | null; -} -export interface UpdateOrgGetManagersRecordInput { - clientMutationId?: string; - id: string; - orgGetManagersRecordPatch: OrgGetManagersRecordPatch; -} -export interface DeleteOrgGetManagersRecordInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - userId: string; - depth?: number; - }; -} -export interface OrgGetSubordinatesRecordPatch { - userId?: string | null; - depth?: number | null; -} -export interface UpdateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - id: string; - orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; -} -export interface DeleteOrgGetSubordinatesRecordInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; - }; -} -export interface AppPermissionPatch { - name?: string | null; - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - appPermissionPatch: AppPermissionPatch; -} -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; - }; -} -export interface OrgPermissionPatch { - name?: string | null; - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseInput { - clientMutationId?: string; - database: { - ownerId?: string; - schemaHash?: string; - name?: string; - label?: string; - hash?: string; - }; -} -export interface DatabasePatch { - ownerId?: string | null; - schemaHash?: string | null; - name?: string | null; - label?: string | null; - hash?: string | null; -} -export interface UpdateDatabaseInput { - clientMutationId?: string; - id: string; - databasePatch: DatabasePatch; -} -export interface DeleteDatabaseInput { - clientMutationId?: string; - id: string; -} -export interface CreateSchemaInput { - clientMutationId?: string; - schema: { - databaseId: string; - name: string; - schemaName: string; - label?: string; - description?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - }; -} -export interface SchemaPatch { - databaseId?: string | null; - name?: string | null; - schemaName?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - isPublic?: boolean | null; -} -export interface UpdateSchemaInput { - clientMutationId?: string; - id: string; - schemaPatch: SchemaPatch; -} -export interface DeleteSchemaInput { - clientMutationId?: string; - id: string; -} -export interface CreateTableInput { - clientMutationId?: string; - table: { - databaseId?: string; - schemaId: string; - name: string; - label?: string; - description?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: string; - singularName?: string; - tags?: string[]; - partitioned?: boolean; - partitionStrategy?: string; - partitionKeyNames?: string[]; - partitionKeyTypes?: string[]; - inheritsId?: string; - }; -} -export interface TablePatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - useRls?: boolean | null; - timestamps?: boolean | null; - peoplestamps?: boolean | null; - pluralName?: string | null; - singularName?: string | null; - tags?: string[] | null; - partitioned?: boolean | null; - partitionStrategy?: string | null; - partitionKeyNames?: string[] | null; - partitionKeyTypes?: string[] | null; - inheritsId?: string | null; -} -export interface UpdateTableInput { - clientMutationId?: string; - id: string; - tablePatch: TablePatch; -} -export interface DeleteTableInput { - clientMutationId?: string; - id: string; -} -export interface CreateCheckConstraintInput { - clientMutationId?: string; - checkConstraint: { - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - expr?: Record; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface CheckConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - expr?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateCheckConstraintInput { - clientMutationId?: string; - id: string; - checkConstraintPatch: CheckConstraintPatch; -} -export interface DeleteCheckConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateFieldInput { - clientMutationId?: string; - field: { - databaseId?: string; - tableId: string; - name: string; - label?: string; - description?: string; - smartTags?: Record; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: Record; - type: Record; - fieldOrder?: number; - regexp?: string; - chk?: Record; - chkExpr?: Record; - min?: number; - max?: number; - tags?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - }; -} -export interface FieldPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - defaultValue?: Record | null; - type?: Record | null; - fieldOrder?: number | null; - regexp?: string | null; - chk?: Record | null; - chkExpr?: Record | null; - min?: number | null; - max?: number | null; - tags?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; -} -export interface UpdateFieldInput { - clientMutationId?: string; - id: string; - fieldPatch: FieldPatch; -} -export interface DeleteFieldInput { - clientMutationId?: string; - id: string; -} -export interface CreateSpatialRelationInput { - clientMutationId?: string; - spatialRelation: { - databaseId?: string; - tableId: string; - fieldId: string; - refTableId: string; - refFieldId: string; - name: string; - operator: string; - paramName?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface SpatialRelationPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - refTableId?: string | null; - refFieldId?: string | null; - name?: string | null; - operator?: string | null; - paramName?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateSpatialRelationInput { - clientMutationId?: string; - id: string; - spatialRelationPatch: SpatialRelationPatch; -} -export interface DeleteSpatialRelationInput { - clientMutationId?: string; - id: string; -} -export interface CreateForeignKeyConstraintInput { - clientMutationId?: string; - foreignKeyConstraint: { - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: Record; - type?: string; - fieldIds: string[]; - refTableId: string; - refFieldIds: string[]; - deleteAction?: string; - updateAction?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ForeignKeyConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - refTableId?: string | null; - refFieldIds?: string[] | null; - deleteAction?: string | null; - updateAction?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateForeignKeyConstraintInput { - clientMutationId?: string; - id: string; - foreignKeyConstraintPatch: ForeignKeyConstraintPatch; -} -export interface DeleteForeignKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateFullTextSearchInput { - clientMutationId?: string; - fullTextSearch: { - databaseId?: string; - tableId: string; - fieldId: string; - fieldIds: string[]; - weights: string[]; - langs: string[]; - }; -} -export interface FullTextSearchPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - fieldIds?: string[] | null; - weights?: string[] | null; - langs?: string[] | null; -} -export interface UpdateFullTextSearchInput { - clientMutationId?: string; - id: string; - fullTextSearchPatch: FullTextSearchPatch; -} -export interface DeleteFullTextSearchInput { - clientMutationId?: string; - id: string; -} -export interface CreateIndexInput { - clientMutationId?: string; - index: { - databaseId: string; - tableId: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: Record; - whereClause?: Record; - isUnique?: boolean; - options?: Record; - opClasses?: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface IndexPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - fieldIds?: string[] | null; - includeFieldIds?: string[] | null; - accessMethod?: string | null; - indexParams?: Record | null; - whereClause?: Record | null; - isUnique?: boolean | null; - options?: Record | null; - opClasses?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateIndexInput { - clientMutationId?: string; - id: string; - indexPatch: IndexPatch; -} -export interface DeleteIndexInput { - clientMutationId?: string; - id: string; -} -export interface CreatePolicyInput { - clientMutationId?: string; - policy: { - databaseId?: string; - tableId: string; - name?: string; - granteeName?: string; - privilege?: string; - permissive?: boolean; - disabled?: boolean; - policyType?: string; - data?: Record; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface PolicyPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - granteeName?: string | null; - privilege?: string | null; - permissive?: boolean | null; - disabled?: boolean | null; - policyType?: string | null; - data?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdatePolicyInput { - clientMutationId?: string; - id: string; - policyPatch: PolicyPatch; -} -export interface DeletePolicyInput { - clientMutationId?: string; - id: string; -} -export interface CreatePrimaryKeyConstraintInput { - clientMutationId?: string; - primaryKeyConstraint: { - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface PrimaryKeyConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdatePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; -} -export interface DeletePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateTableGrantInput { - clientMutationId?: string; - tableGrant: { - databaseId?: string; - tableId: string; - privilege: string; - granteeName: string; - fieldIds?: string[]; - isGrant?: boolean; - }; -} -export interface TableGrantPatch { - databaseId?: string | null; - tableId?: string | null; - privilege?: string | null; - granteeName?: string | null; - fieldIds?: string[] | null; - isGrant?: boolean | null; -} -export interface UpdateTableGrantInput { - clientMutationId?: string; - id: string; - tableGrantPatch: TableGrantPatch; -} -export interface DeleteTableGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateTriggerInput { - clientMutationId?: string; - trigger: { - databaseId?: string; - tableId: string; - name: string; - event?: string; - functionName?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface TriggerPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - event?: string | null; - functionName?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateTriggerInput { - clientMutationId?: string; - id: string; - triggerPatch: TriggerPatch; -} -export interface DeleteTriggerInput { - clientMutationId?: string; - id: string; -} -export interface CreateUniqueConstraintInput { - clientMutationId?: string; - uniqueConstraint: { - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: Record; - type?: string; - fieldIds: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface UniqueConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateUniqueConstraintInput { - clientMutationId?: string; - id: string; - uniqueConstraintPatch: UniqueConstraintPatch; -} -export interface DeleteUniqueConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewInput { - clientMutationId?: string; - view: { - databaseId?: string; - schemaId: string; - name: string; - tableId?: string; - viewType: string; - data?: Record; - filterType?: string; - filterData?: Record; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ViewPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - tableId?: string | null; - viewType?: string | null; - data?: Record | null; - filterType?: string | null; - filterData?: Record | null; - securityInvoker?: boolean | null; - isReadOnly?: boolean | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateViewInput { - clientMutationId?: string; - id: string; - viewPatch: ViewPatch; -} -export interface DeleteViewInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewTableInput { - clientMutationId?: string; - viewTable: { - viewId: string; - tableId: string; - joinOrder?: number; - }; -} -export interface ViewTablePatch { - viewId?: string | null; - tableId?: string | null; - joinOrder?: number | null; -} -export interface UpdateViewTableInput { - clientMutationId?: string; - id: string; - viewTablePatch: ViewTablePatch; -} -export interface DeleteViewTableInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewGrantInput { - clientMutationId?: string; - viewGrant: { - databaseId?: string; - viewId: string; - granteeName: string; - privilege: string; - withGrantOption?: boolean; - isGrant?: boolean; - }; -} -export interface ViewGrantPatch { - databaseId?: string | null; - viewId?: string | null; - granteeName?: string | null; - privilege?: string | null; - withGrantOption?: boolean | null; - isGrant?: boolean | null; -} -export interface UpdateViewGrantInput { - clientMutationId?: string; - id: string; - viewGrantPatch: ViewGrantPatch; -} -export interface DeleteViewGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewRuleInput { - clientMutationId?: string; - viewRule: { - databaseId?: string; - viewId: string; - name: string; - event: string; - action?: string; - }; -} -export interface ViewRulePatch { - databaseId?: string | null; - viewId?: string | null; - name?: string | null; - event?: string | null; - action?: string | null; -} -export interface UpdateViewRuleInput { - clientMutationId?: string; - id: string; - viewRulePatch: ViewRulePatch; -} -export interface DeleteViewRuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmbeddingChunkInput { - clientMutationId?: string; - embeddingChunk: { - databaseId?: string; - tableId: string; - embeddingFieldId?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; - dimensions?: number; - metric?: string; - chunkSize?: number; - chunkOverlap?: number; - chunkStrategy?: string; - metadataFields?: Record; - searchIndexes?: Record; - enqueueChunkingJob?: boolean; - chunkingTaskName?: string; - embeddingModel?: string; - embeddingProvider?: string; - parentFkFieldId?: string; - }; -} -export interface EmbeddingChunkPatch { - databaseId?: string | null; - tableId?: string | null; - embeddingFieldId?: string | null; - chunksTableId?: string | null; - chunksTableName?: string | null; - contentFieldName?: string | null; - dimensions?: number | null; - metric?: string | null; - chunkSize?: number | null; - chunkOverlap?: number | null; - chunkStrategy?: string | null; - metadataFields?: Record | null; - searchIndexes?: Record | null; - enqueueChunkingJob?: boolean | null; - chunkingTaskName?: string | null; - embeddingModel?: string | null; - embeddingProvider?: string | null; - parentFkFieldId?: string | null; -} -export interface UpdateEmbeddingChunkInput { - clientMutationId?: string; - id: string; - embeddingChunkPatch: EmbeddingChunkPatch; -} -export interface DeleteEmbeddingChunkInput { - clientMutationId?: string; - id: string; -} -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - secureTableProvision: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - nodes?: Record; - useRls?: boolean; - fields?: Record[]; - grants?: Record; - policies?: Record; - outFields?: string[]; - }; -} -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 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 CreateSessionSecretsModuleInput { - clientMutationId?: string; - sessionSecretsModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - sessionsTableId?: string; - }; -} -export interface SessionSecretsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - sessionsTableId?: string | null; -} -export interface UpdateSessionSecretsModuleInput { - clientMutationId?: string; - id: string; - sessionSecretsModulePatch: SessionSecretsModulePatch; -} -export interface DeleteSessionSecretsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - 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; - }; -} -export interface RealtimeModulePatch { - 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; -} -export interface UpdateRealtimeModuleInput { - clientMutationId?: string; - id: string; - realtimeModulePatch: RealtimeModulePatch; -} -export interface DeleteRealtimeModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateConfigSecretsOrgModuleInput { - clientMutationId?: string; - configSecretsOrgModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface ConfigSecretsOrgModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; -} -export interface DeleteConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSchemaGrantInput { - clientMutationId?: string; - schemaGrant: { - databaseId?: string; - schemaId: string; - granteeName: string; - }; -} -export interface SchemaGrantPatch { - databaseId?: string | null; - schemaId?: string | null; - granteeName?: string | null; -} -export interface UpdateSchemaGrantInput { - clientMutationId?: string; - id: string; - schemaGrantPatch: SchemaGrantPatch; -} -export interface DeleteSchemaGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateDefaultPrivilegeInput { - clientMutationId?: string; - defaultPrivilege: { - databaseId?: string; - schemaId: string; - objectType: string; - privilege: string; - granteeName: string; - isGrant?: boolean; - }; -} -export interface DefaultPrivilegePatch { - databaseId?: string | null; - schemaId?: string | null; - objectType?: string | null; - privilege?: string | null; - granteeName?: string | null; - isGrant?: boolean | null; -} -export interface UpdateDefaultPrivilegeInput { - clientMutationId?: string; - id: string; - defaultPrivilegePatch: DefaultPrivilegePatch; -} -export interface DeleteDefaultPrivilegeInput { - clientMutationId?: string; - id: string; -} -export interface CreateEnumInput { - clientMutationId?: string; - enum: { - databaseId: string; - schemaId: string; - name: string; - label?: string; - description?: string; - values?: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface EnumPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - values?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateEnumInput { - clientMutationId?: string; - id: string; - enumPatch: EnumPatch; -} -export interface DeleteEnumInput { - clientMutationId?: string; - id: string; -} -export interface CreateFunctionInput { - clientMutationId?: string; - function: { - databaseId: string; - schemaId: string; - name: string; - }; -} -export interface FunctionPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; -} -export interface UpdateFunctionInput { - clientMutationId?: string; - id: string; - functionPatch: FunctionPatch; -} -export interface DeleteFunctionInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiSchemaInput { - clientMutationId?: string; - apiSchema: { - databaseId: string; - schemaId: string; - apiId: string; - }; -} -export interface ApiSchemaPatch { - databaseId?: string | null; - schemaId?: string | null; - apiId?: string | null; -} -export interface UpdateApiSchemaInput { - clientMutationId?: string; - id: string; - apiSchemaPatch: ApiSchemaPatch; -} -export interface DeleteApiSchemaInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiModuleInput { - clientMutationId?: string; - apiModule: { - databaseId: string; - apiId: string; - name: string; - data: Record; - }; -} -export interface ApiModulePatch { - databaseId?: string | null; - apiId?: string | null; - name?: string | null; - data?: Record | null; -} -export interface UpdateApiModuleInput { - clientMutationId?: string; - id: string; - apiModulePatch: ApiModulePatch; -} -export interface DeleteApiModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDomainInput { - clientMutationId?: string; - domain: { - databaseId: string; - apiId?: string; - siteId?: string; - subdomain?: ConstructiveInternalTypeHostname; - domain?: ConstructiveInternalTypeHostname; - }; -} -export interface DomainPatch { - databaseId?: string | null; - apiId?: string | null; - siteId?: string | null; - subdomain?: ConstructiveInternalTypeHostname | null; - domain?: ConstructiveInternalTypeHostname | null; -} -export interface UpdateDomainInput { - clientMutationId?: string; - id: string; - domainPatch: DomainPatch; -} -export interface DeleteDomainInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteMetadatumInput { - clientMutationId?: string; - siteMetadatum: { - databaseId: string; - siteId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - }; -} -export interface SiteMetadatumPatch { - databaseId?: string | null; - siteId?: string | null; - title?: string | null; - description?: string | null; - ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - id: string; - siteMetadatumPatch: SiteMetadatumPatch; -} -export interface DeleteSiteMetadatumInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - siteModule: { - databaseId: string; - siteId: string; - name: string; - data: Record; - }; -} -export interface SiteModulePatch { - databaseId?: string | null; - siteId?: string | null; - name?: string | null; - data?: Record | null; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - id: string; - siteModulePatch: SiteModulePatch; -} -export interface DeleteSiteModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteThemeInput { - clientMutationId?: string; - siteTheme: { - databaseId: string; - siteId: string; - theme: Record; - }; -} -export interface SiteThemePatch { - databaseId?: string | null; - siteId?: string | null; - theme?: Record | null; -} -export interface UpdateSiteThemeInput { - clientMutationId?: string; - id: string; - siteThemePatch: SiteThemePatch; -} -export interface DeleteSiteThemeInput { - clientMutationId?: string; - id: string; -} -export interface CreateCorsSettingInput { - clientMutationId?: string; - corsSetting: { - databaseId: string; - apiId?: string; - allowedOrigins?: string[]; - }; -} -export interface CorsSettingPatch { - databaseId?: string | null; - apiId?: string | null; - allowedOrigins?: string[] | null; -} -export interface UpdateCorsSettingInput { - clientMutationId?: string; - id: string; - corsSettingPatch: CorsSettingPatch; -} -export interface DeleteCorsSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateMerkleStoreModuleInput { - clientMutationId?: string; - merkleStoreModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - }; -} -export interface MerkleStoreModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; -} -export interface UpdateMerkleStoreModuleInput { - clientMutationId?: string; - id: string; - merkleStoreModulePatch: MerkleStoreModulePatch; -} -export interface DeleteMerkleStoreModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateGraphModuleInput { - clientMutationId?: string; - graphModule: { - databaseId: string; - publicSchemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - prefix?: string; - merkleStoreModuleId: string; - graphsTableId?: string; - executionsTableId?: string; - outputsTableId?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - membershipType?: number; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface GraphModulePatch { - databaseId?: string | null; - publicSchemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - prefix?: string | null; - merkleStoreModuleId?: string | null; - graphsTableId?: string | null; - executionsTableId?: string | null; - outputsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateGraphModuleInput { - clientMutationId?: string; - id: string; - graphModulePatch: GraphModulePatch; -} -export interface DeleteGraphModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateTriggerFunctionInput { - clientMutationId?: string; - triggerFunction: { - databaseId: string; - name: string; - code?: string; - }; -} -export interface TriggerFunctionPatch { - databaseId?: string | null; - name?: string | null; - code?: string | null; -} -export interface UpdateTriggerFunctionInput { - clientMutationId?: string; - id: string; - triggerFunctionPatch: TriggerFunctionPatch; -} -export interface DeleteTriggerFunctionInput { - clientMutationId?: string; - id: string; -} -export interface CreatePartitionInput { - clientMutationId?: string; - partition: { - databaseId: string; - tableId: string; - strategy: string; - partitionKeyId: string; - interval?: string; - retention?: string; - retentionKeepTable?: boolean; - premake?: number; - namingPattern?: string; - isParented?: boolean; - }; -} -export interface PartitionPatch { - databaseId?: string | null; - tableId?: string | null; - strategy?: string | null; - partitionKeyId?: string | null; - interval?: string | null; - retention?: string | null; - retentionKeepTable?: boolean | null; - premake?: number | null; - namingPattern?: string | null; - isParented?: boolean | null; -} -export interface UpdatePartitionInput { - clientMutationId?: string; - id: string; - partitionPatch: PartitionPatch; -} -export interface DeletePartitionInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseTransferInput { - clientMutationId?: string; - databaseTransfer: { - databaseId: string; - targetOwnerId: string; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: string; - targetApprovedAt?: string; - status?: string; - initiatedBy: string; - notes?: string; - expiresAt?: string; - completedAt?: string; - }; -} -export interface DatabaseTransferPatch { - databaseId?: string | null; - targetOwnerId?: string | null; - sourceApproved?: boolean | null; - targetApproved?: boolean | null; - sourceApprovedAt?: string | null; - targetApprovedAt?: string | null; - status?: string | null; - initiatedBy?: string | null; - notes?: string | null; - expiresAt?: string | null; - completedAt?: string | null; -} -export interface UpdateDatabaseTransferInput { - clientMutationId?: string; - id: string; - databaseTransferPatch: DatabaseTransferPatch; -} -export interface DeleteDatabaseTransferInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiInput { - clientMutationId?: string; - api: { - databaseId: string; - name: string; - dbname?: string; - roleName?: string; - anonRole?: string; - isPublic?: boolean; - }; -} -export interface ApiPatch { - databaseId?: string | null; - name?: string | null; - dbname?: string | null; - roleName?: string | null; - anonRole?: string | null; - isPublic?: boolean | null; -} -export interface UpdateApiInput { - clientMutationId?: string; - id: string; - apiPatch: ApiPatch; -} -export interface DeleteApiInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteInput { - clientMutationId?: string; - site: { - databaseId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; - }; -} -export interface SitePatch { - databaseId?: string | null; - title?: string | null; - description?: string | null; - ogImage?: ConstructiveInternalTypeImage | null; - favicon?: ConstructiveInternalTypeAttachment | null; - appleTouchIcon?: ConstructiveInternalTypeImage | null; - logo?: ConstructiveInternalTypeImage | null; - dbname?: string | null; - ogImageUpload?: File | null; - faviconUpload?: File | null; - appleTouchIconUpload?: File | null; - logoUpload?: File | null; -} -export interface UpdateSiteInput { - clientMutationId?: string; - id: string; - sitePatch: SitePatch; -} -export interface DeleteSiteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInput { - clientMutationId?: string; - app: { - databaseId: string; - siteId: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - playStoreLink?: ConstructiveInternalTypeUrl; - }; -} -export interface AppPatch { - databaseId?: string | null; - siteId?: string | null; - name?: string | null; - appImage?: ConstructiveInternalTypeImage | null; - appStoreLink?: ConstructiveInternalTypeUrl | null; - appStoreId?: string | null; - appIdPrefix?: string | null; - playStoreLink?: ConstructiveInternalTypeUrl | null; - appImageUpload?: File | null; -} -export interface UpdateAppInput { - clientMutationId?: string; - id: string; - appPatch: AppPatch; -} -export interface DeleteAppInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiSettingInput { - clientMutationId?: string; - apiSetting: { - databaseId: string; - apiId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: Record; - }; -} -export interface ApiSettingPatch { - databaseId?: string | null; - apiId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - enableBulk?: boolean | null; - options?: Record | null; -} -export interface UpdateApiSettingInput { - clientMutationId?: string; - id: string; - apiSettingPatch: ApiSettingPatch; -} -export interface DeleteApiSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateConnectedAccountsModuleInput { - clientMutationId?: string; - connectedAccountsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface ConnectedAccountsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; - connectedAccountsModulePatch: ConnectedAccountsModulePatch; -} -export interface DeleteConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAddressesModuleInput { - clientMutationId?: string; - cryptoAddressesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - cryptoNetwork?: string; - }; -} -export interface CryptoAddressesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; - cryptoNetwork?: string | null; -} -export interface UpdateCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; - cryptoAddressesModulePatch: CryptoAddressesModulePatch; -} -export interface DeleteCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAuthModuleInput { - clientMutationId?: string; - cryptoAuthModule: { - 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; - }; -} -export interface CryptoAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - addressesTableId?: string | null; - userField?: string | null; - cryptoNetwork?: string | null; - signInRequestChallenge?: string | null; - signInRecordFailure?: string | null; - signUpWithKey?: string | null; - signInWithChallenge?: string | null; -} -export interface UpdateCryptoAuthModuleInput { - clientMutationId?: string; - id: string; - cryptoAuthModulePatch: CryptoAuthModulePatch; -} -export interface DeleteCryptoAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDefaultIdsModuleInput { - clientMutationId?: string; - defaultIdsModule: { - databaseId: string; - }; -} -export interface DefaultIdsModulePatch { - databaseId?: string | null; -} -export interface UpdateDefaultIdsModuleInput { - clientMutationId?: string; - id: string; - defaultIdsModulePatch: DefaultIdsModulePatch; -} -export interface DeleteDefaultIdsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDenormalizedTableFieldInput { - clientMutationId?: string; - denormalizedTableField: { - databaseId: string; - tableId: string; - fieldId: string; - setIds?: string[]; - refTableId: string; - refFieldId: string; - refIds?: string[]; - useUpdates?: boolean; - updateDefaults?: boolean; - funcName?: string; - funcOrder?: number; - }; -} -export interface DenormalizedTableFieldPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} -export interface UpdateDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; - denormalizedTableFieldPatch: DenormalizedTableFieldPatch; -} -export interface DeleteDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmailsModuleInput { - clientMutationId?: string; - emailsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface EmailsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateEmailsModuleInput { - clientMutationId?: string; - id: string; - emailsModulePatch: EmailsModulePatch; -} -export interface DeleteEmailsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateConfigSecretsUserModuleInput { - clientMutationId?: string; - configSecretsUserModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - configDefinitionsTableId?: string; - }; -} -export interface ConfigSecretsUserModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - configDefinitionsTableId?: string | null; -} -export interface UpdateConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; -} -export interface DeleteConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateInvitesModuleInput { - clientMutationId?: string; - invitesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - }; -} -export interface InvitesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; -} -export interface UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - invitesModulePatch: InvitesModulePatch; -} -export interface DeleteInvitesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEventsModuleInput { - clientMutationId?: string; - eventsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: 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; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - }; -} -export interface EventsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface UpdateEventsModuleInput { - clientMutationId?: string; - id: string; - eventsModulePatch: EventsModulePatch; -} -export interface DeleteEventsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateLimitsModuleInput { - clientMutationId?: string; - limitsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - limitIncrementFunction?: string; - limitDecrementFunction?: string; - limitIncrementTrigger?: string; - limitDecrementTrigger?: string; - limitUpdateTrigger?: string; - limitCheckFunction?: string; - limitCreditsTableId?: string; - eventsTableId?: string; - creditCodesTableId?: string; - creditCodeItemsTableId?: string; - creditRedemptionsTableId?: string; - aggregateTableId?: string; - limitCapsTableId?: string; - limitCapsDefaultsTableId?: string; - capCheckTrigger?: string; - resolveCapFunction?: string; - limitWarningsTableId?: string; - limitWarningStateTableId?: string; - limitCheckSoftFunction?: string; - limitAggregateCheckSoftFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - }; -} -export interface LimitsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - limitIncrementFunction?: string | null; - limitDecrementFunction?: string | null; - limitIncrementTrigger?: string | null; - limitDecrementTrigger?: string | null; - limitUpdateTrigger?: string | null; - limitCheckFunction?: string | null; - limitCreditsTableId?: string | null; - eventsTableId?: string | null; - creditCodesTableId?: string | null; - creditCodeItemsTableId?: string | null; - creditRedemptionsTableId?: string | null; - aggregateTableId?: string | null; - limitCapsTableId?: string | null; - limitCapsDefaultsTableId?: string | null; - capCheckTrigger?: string | null; - resolveCapFunction?: string | null; - limitWarningsTableId?: string | null; - limitWarningStateTableId?: string | null; - limitCheckSoftFunction?: string | null; - limitAggregateCheckSoftFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface UpdateLimitsModuleInput { - clientMutationId?: string; - id: string; - limitsModulePatch: LimitsModulePatch; -} -export interface DeleteLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypesModuleInput { - clientMutationId?: string; - membershipTypesModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface MembershipTypesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateMembershipTypesModuleInput { - clientMutationId?: string; - id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; -} -export interface DeleteMembershipTypesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - membershipsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: 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; - membershipType: number; - entityTableId?: string; - entityTableOwnerId?: string; - prefix?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - }; -} -export interface MembershipsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - prefix?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; -} -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - membershipsModulePatch: MembershipsModulePatch; -} -export interface DeleteMembershipsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - prefix?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - }; -} -export interface PermissionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - prefix?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumbersModuleInput { - clientMutationId?: string; - phoneNumbersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface PhoneNumbersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdatePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; - phoneNumbersModulePatch: PhoneNumbersModulePatch; -} -export interface DeletePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateProfilesModuleInput { - clientMutationId?: string; - profilesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; - }; -} -export interface ProfilesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - prefix?: string | null; -} -export interface UpdateProfilesModuleInput { - clientMutationId?: string; - id: string; - profilesModulePatch: ProfilesModulePatch; -} -export interface DeleteProfilesModuleInput { - 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 CreateSessionsModuleInput { - clientMutationId?: string; - sessionsModule: { - databaseId: string; - schemaId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - authSettingsTableId?: string; - usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; - }; -} -export interface SessionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - authSettingsTableId?: string | null; - usersTableId?: string | null; - sessionsDefaultExpiration?: IntervalInput | null; - sessionsTable?: string | null; - sessionCredentialsTable?: string | null; - authSettingsTable?: string | null; -} -export interface UpdateSessionsModuleInput { - clientMutationId?: string; - id: string; - sessionsModulePatch: SessionsModulePatch; -} -export interface DeleteSessionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserAuthModuleInput { - clientMutationId?: string; - userAuthModule: { - databaseId: string; - schemaId?: string; - emailsTableId?: string; - usersTableId?: string; - secretsTableId?: string; - encryptedTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - 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; - }; -} -export interface UserAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - encryptedTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - auditsTableName?: string | null; - signInFunction?: string | null; - signUpFunction?: string | null; - signOutFunction?: string | null; - setPasswordFunction?: string | null; - resetPasswordFunction?: string | null; - forgotPasswordFunction?: string | null; - sendVerificationEmailFunction?: string | null; - verifyEmailFunction?: string | null; - verifyPasswordFunction?: string | null; - checkPasswordFunction?: string | null; - sendAccountDeletionEmailFunction?: string | null; - deleteAccountFunction?: string | null; - signInCrossOriginFunction?: string | null; - requestCrossOriginTokenFunction?: string | null; - extendTokenExpires?: string | null; -} -export interface UpdateUserAuthModuleInput { - clientMutationId?: string; - id: string; - userAuthModulePatch: UserAuthModulePatch; -} -export interface DeleteUserAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUsersModuleInput { - clientMutationId?: string; - usersModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - typeTableId?: string; - typeTableName?: string; - }; -} -export interface UsersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - typeTableId?: string | null; - typeTableName?: string | null; -} -export interface UpdateUsersModuleInput { - clientMutationId?: string; - id: string; - usersModulePatch: UsersModulePatch; -} -export interface DeleteUsersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintInput { - clientMutationId?: string; - blueprint: { - ownerId: string; - databaseId: string; - name: string; - displayName: string; - description?: string; - definition: Record; - templateId?: string; - definitionHash?: string; - tableHashes?: Record; - }; -} -export interface BlueprintPatch { - ownerId?: string | null; - databaseId?: string | null; - name?: string | null; - displayName?: string | null; - description?: string | null; - definition?: Record | null; - templateId?: string | null; - definitionHash?: string | null; - tableHashes?: Record | null; -} -export interface UpdateBlueprintInput { - clientMutationId?: string; - id: string; - blueprintPatch: BlueprintPatch; -} -export interface DeleteBlueprintInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintTemplateInput { - clientMutationId?: string; - blueprintTemplate: { - name: string; - version?: string; - displayName: string; - description?: string; - ownerId: string; - visibility?: string; - categories?: string[]; - tags?: string[]; - definition: Record; - definitionSchemaVersion?: string; - source?: string; - complexity?: string; - copyCount?: number; - forkCount?: number; - forkedFromId?: string; - definitionHash?: string; - tableHashes?: Record; - }; -} -export interface BlueprintTemplatePatch { - name?: string | null; - version?: string | null; - displayName?: string | null; - description?: string | null; - ownerId?: string | null; - visibility?: string | null; - categories?: string[] | null; - tags?: string[] | null; - definition?: Record | null; - definitionSchemaVersion?: string | null; - source?: string | null; - complexity?: string | null; - copyCount?: number | null; - forkCount?: number | null; - forkedFromId?: string | null; - definitionHash?: string | null; - tableHashes?: Record | null; -} -export interface UpdateBlueprintTemplateInput { - clientMutationId?: string; - id: string; - blueprintTemplatePatch: BlueprintTemplatePatch; -} -export interface DeleteBlueprintTemplateInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintConstructionInput { - clientMutationId?: string; - blueprintConstruction: { - blueprintId: string; - databaseId: string; - schemaId?: string; - status?: string; - errorDetails?: string; - tableMap?: Record; - constructedDefinition?: Record; - constructedAt?: string; - }; -} -export interface BlueprintConstructionPatch { - blueprintId?: string | null; - databaseId?: string | null; - schemaId?: string | null; - status?: string | null; - errorDetails?: string | null; - tableMap?: Record | null; - constructedDefinition?: Record | null; - constructedAt?: string | null; -} -export interface UpdateBlueprintConstructionInput { - clientMutationId?: string; - id: string; - blueprintConstructionPatch: BlueprintConstructionPatch; -} -export interface DeleteBlueprintConstructionInput { - clientMutationId?: string; - id: string; -} -export interface CreateStorageModuleInput { - clientMutationId?: string; - storageModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - key?: string; - policies?: Record; - provisions?: Record; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - }; -} -export interface StorageModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - membershipType?: number | null; - key?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: IntervalInput | null; - fileEventsTableId?: string | null; -} -export interface UpdateStorageModuleInput { - clientMutationId?: string; - id: string; - storageModulePatch: StorageModulePatch; -} -export interface DeleteStorageModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEntityTypeProvisionInput { - clientMutationId?: string; - entityTypeProvision: { - databaseId: string; - name: string; - prefix: string; - description?: string; - parentEntity?: string; - tableName?: string; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: Record; - namespaces?: Record; - functions?: Record; - graphs?: Record; - agents?: Record; - skipEntityPolicies?: boolean; - tableProvision?: Record; - outMembershipType?: number; - outEntityTableId?: string; - outEntityTableName?: string; - outInstalledModules?: string[]; - outStorageModuleId?: string; - outBucketsTableId?: string; - outFilesTableId?: string; - outPathSharesTableId?: string; - outInvitesModuleId?: string; - outNamespaceModuleId?: string; - outNamespacesTableId?: string; - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: string; - }; -} -export interface EntityTypeProvisionPatch { - databaseId?: string | null; - name?: string | null; - prefix?: string | null; - description?: string | null; - parentEntity?: string | null; - tableName?: string | null; - isVisible?: boolean | null; - hasLimits?: boolean | null; - hasProfiles?: boolean | null; - hasLevels?: boolean | null; - hasInvites?: boolean | null; - hasInviteAchievements?: boolean | null; - storage?: Record | null; - namespaces?: Record | null; - functions?: Record | null; - graphs?: Record | null; - agents?: Record | null; - skipEntityPolicies?: boolean | null; - tableProvision?: Record | null; - outMembershipType?: number | null; - outEntityTableId?: string | null; - outEntityTableName?: string | null; - outInstalledModules?: string[] | null; - outStorageModuleId?: string | null; - outBucketsTableId?: string | null; - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - outInvitesModuleId?: string | null; - outNamespaceModuleId?: string | null; - outNamespacesTableId?: string | null; - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -export interface UpdateEntityTypeProvisionInput { - clientMutationId?: string; - id: string; - entityTypeProvisionPatch: EntityTypeProvisionPatch; -} -export interface DeleteEntityTypeProvisionInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnCredentialsModuleInput { - clientMutationId?: string; - webauthnCredentialsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - }; -} -export interface WebauthnCredentialsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; - webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; -} -export interface DeleteWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnAuthModuleInput { - clientMutationId?: string; - webauthnAuthModule: { - 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; - }; -} -export interface WebauthnAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - authSettingsTableId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpiry?: IntervalInput | null; -} -export interface UpdateWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; - webauthnAuthModulePatch: WebauthnAuthModulePatch; -} -export interface DeleteWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateNotificationsModuleInput { - clientMutationId?: string; - notificationsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - readStateTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; - }; -} -export interface NotificationsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; -} -export interface UpdateNotificationsModuleInput { - clientMutationId?: string; - id: string; - notificationsModulePatch: NotificationsModulePatch; -} -export interface DeleteNotificationsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateInferenceLogModuleInput { - clientMutationId?: string; - inferenceLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface InferenceLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateInferenceLogModuleInput { - clientMutationId?: string; - id: string; - inferenceLogModulePatch: InferenceLogModulePatch; -} -export interface DeleteInferenceLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateComputeLogModuleInput { - clientMutationId?: string; - computeLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface ComputeLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateComputeLogModuleInput { - clientMutationId?: string; - id: string; - computeLogModulePatch: ComputeLogModulePatch; -} -export interface DeleteComputeLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateTransferLogModuleInput { - clientMutationId?: string; - transferLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface TransferLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateTransferLogModuleInput { - clientMutationId?: string; - id: string; - transferLogModulePatch: TransferLogModulePatch; -} -export interface DeleteTransferLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateStorageLogModuleInput { - clientMutationId?: string; - storageLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface StorageLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateStorageLogModuleInput { - clientMutationId?: string; - id: string; - storageLogModulePatch: StorageLogModulePatch; -} -export interface DeleteStorageLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDbUsageModuleInput { - clientMutationId?: string; - dbUsageModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - prefix?: string; - }; -} -export interface DbUsageModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; -} -export interface UpdateDbUsageModuleInput { - clientMutationId?: string; - id: string; - dbUsageModulePatch: DbUsageModulePatch; -} -export interface DeleteDbUsageModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentModuleInput { - clientMutationId?: string; - agentModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - threadTableId?: string; - messageTableId?: string; - taskTableId?: string; - promptsTableId?: string; - knowledgeTableId?: string; - threadTableName?: string; - messageTableName?: string; - taskTableName?: string; - promptsTableName?: string; - knowledgeTableName?: string; - hasKnowledge?: boolean; - apiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: Record; - knowledgeConfig?: Record; - knowledgePolicies?: Record; - provisions?: Record; - }; -} -export interface AgentModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - threadTableId?: string | null; - messageTableId?: string | null; - taskTableId?: string | null; - promptsTableId?: string | null; - knowledgeTableId?: string | null; - threadTableName?: string | null; - messageTableName?: string | null; - taskTableName?: string | null; - promptsTableName?: string | null; - knowledgeTableName?: string | null; - hasKnowledge?: boolean | null; - apiName?: string | null; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - knowledgeConfig?: Record | null; - knowledgePolicies?: Record | null; - provisions?: Record | null; -} -export interface UpdateAgentModuleInput { - clientMutationId?: string; - id: string; - agentModulePatch: AgentModulePatch; -} -export interface DeleteAgentModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateNamespaceModuleInput { - clientMutationId?: string; - namespaceModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface NamespaceModulePatch { - 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; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateNamespaceModuleInput { - clientMutationId?: string; - id: string; - namespaceModulePatch: NamespaceModulePatch; -} -export interface DeleteNamespaceModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateFunctionModuleInput { - clientMutationId?: string; - functionModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - prefix?: string; - key?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface FunctionModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - membershipType?: number | null; - prefix?: string | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateFunctionModuleInput { - clientMutationId?: string; - id: string; - functionModulePatch: FunctionModulePatch; -} -export interface DeleteFunctionModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseProvisionModuleInput { - clientMutationId?: string; - databaseProvisionModule: { - databaseName: string; - ownerId: string; - subdomain?: string; - domain: string; - modules?: string[]; - options?: Record; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - completedAt?: string; - }; -} -export interface DatabaseProvisionModulePatch { - databaseName?: string | null; - ownerId?: string | null; - subdomain?: string | null; - domain?: string | null; - modules?: string[] | null; - options?: Record | null; - bootstrapUser?: boolean | null; - status?: string | null; - errorMessage?: string | null; - databaseId?: string | null; - completedAt?: string | null; -} -export interface UpdateDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; - databaseProvisionModulePatch: DatabaseProvisionModulePatch; -} -export interface DeleteDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppAdminGrantInput { - clientMutationId?: string; - appAdminGrant: { - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppAdminGrantInput { - clientMutationId?: string; - id: string; - appAdminGrantPatch: AppAdminGrantPatch; -} -export interface DeleteAppAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppOwnerGrantInput { - clientMutationId?: string; - appOwnerGrant: { - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppOwnerGrantInput { - clientMutationId?: string; - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; -} -export interface DeleteAppOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppGrantInput { - clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppGrantInput { - clientMutationId?: string; - id: string; - appGrantPatch: AppGrantPatch; -} -export interface DeleteAppGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberInput { - clientMutationId?: string; - orgMember: { - isAdmin?: boolean; - actorId: string; - entityId: string; - }; -} -export interface OrgMemberPatch { - isAdmin?: boolean | null; - actorId?: string | null; - entityId?: string | null; -} -export interface UpdateOrgMemberInput { - clientMutationId?: string; - id: string; - orgMemberPatch: OrgMemberPatch; -} -export interface DeleteOrgMemberInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgOwnerGrantInput { - clientMutationId?: string; - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; -} -export interface DeleteOrgOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgGrantInput { - clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; -} -export interface DeleteOrgGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgChartEdgeInput { - clientMutationId?: string; - orgChartEdge: { - entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgePatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeInput { - clientMutationId?: string; - id: string; - orgChartEdgePatch: OrgChartEdgePatch; -} -export interface DeleteOrgChartEdgeInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgChartEdgeGrantInput { - clientMutationId?: string; - orgChartEdgeGrant: { - entityId: string; - childId: string; - parentId?: string; - grantorId?: string; - isGrant?: boolean; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgeGrantPatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -export interface DeleteOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; - entityId: string; - }; -} -export interface OrgPermissionDefaultPatch { - permissions?: string | null; - entityId?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface AppLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - appLimitCredit: { - defaultLimitId: string; - actorId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface AppLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - appLimitCreditPatch: AppLimitCreditPatch; -} -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - appLimitCreditCodeItem: { - creditCodeId: string; - defaultLimitId: string; - amount: string; - creditType?: string; - }; -} -export interface AppLimitCreditCodeItemPatch { - creditCodeId?: string | null; - defaultLimitId?: string | null; - amount?: string | null; - creditType?: string | null; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - appLimitCreditRedemption: { - creditCodeId: string; - entityId: string; - }; -} -export interface AppLimitCreditRedemptionPatch { - creditCodeId?: string | null; - entityId?: string | null; -} -export interface UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - entityId: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCreditInput { - clientMutationId?: string; - orgLimitCredit: { - defaultLimitId: string; - actorId?: string; - entityId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface OrgLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - entityId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - orgLimitAggregate: { - name?: string; - entityId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - reserved?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitAggregatePatch { - name?: string | null; - entityId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - reserved?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -export interface DeleteOrgLimitAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - orgLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - entityId?: string; - }; -} -export interface OrgLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; - entityId?: string | null; -} -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; -} -export interface DeleteOrgLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: { - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface PhoneNumberPatch { - ownerId?: string | null; - cc?: string | null; - number?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -export interface DeletePhoneNumberInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnCredentialInput { - clientMutationId?: string; - webauthnCredential: { - ownerId?: string; - credentialId: string; - publicKey: Base64EncodedBinary; - signCount?: string; - webauthnUserId: string; - transports?: string[]; - credentialDeviceType: string; - backupEligible?: boolean; - backupState?: boolean; - name?: string; - lastUsedAt?: string; - }; -} -export interface WebauthnCredentialPatch { - ownerId?: string | null; - credentialId?: string | null; - publicKey?: Base64EncodedBinary | null; - signCount?: string | null; - webauthnUserId?: string | null; - transports?: string[] | null; - credentialDeviceType?: string | null; - backupEligible?: boolean | null; - backupState?: boolean | null; - name?: string | null; - lastUsedAt?: string | null; -} -export interface UpdateWebauthnCredentialInput { - clientMutationId?: string; - id: string; - webauthnCredentialPatch: WebauthnCredentialPatch; -} -export interface DeleteWebauthnCredentialInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; -} -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; -} -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - orgInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - receiverId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - isReadOnly?: boolean; - expiresAt?: string; - entityId: string; - }; -} -export interface OrgInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - receiverId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - isReadOnly?: boolean | null; - expiresAt?: string | null; - entityId?: string | null; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - orgInvitePatch: OrgInvitePatch; -} -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgClaimedInviteInput { - clientMutationId?: string; - orgClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - entityId: string; - }; -} -export interface OrgClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; - entityId?: string | null; -} -export interface UpdateOrgClaimedInviteInput { - clientMutationId?: string; - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; -} -export interface DeleteOrgClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAuditLogAuthInput { - clientMutationId?: string; - auditLogAuth: { - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - }; -} -export interface AuditLogAuthPatch { - event?: string | null; - actorId?: string | null; - origin?: ConstructiveInternalTypeOrigin | null; - userAgent?: string | null; - ipAddress?: string | null; - success?: boolean | null; -} -export interface UpdateAuditLogAuthInput { - clientMutationId?: string; - id: string; - auditLogAuthPatch: AuditLogAuthPatch; -} -export interface DeleteAuditLogAuthInput { - clientMutationId?: string; - id: string; -} -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - slug?: string; - kind?: string; - displayName?: string; - enabled?: boolean; - isBuiltIn?: boolean; - }; -} -export interface IdentityProviderPatch { - slug?: string | null; - kind?: string | null; - displayName?: string | null; - enabled?: boolean | null; - isBuiltIn?: boolean | null; -} -export interface UpdateIdentityProviderInput { - clientMutationId?: string; - id: string; - identityProviderPatch: IdentityProviderPatch; -} -export interface DeleteIdentityProviderInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; - }; -} -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface UpdateMigrateFileInput { - clientMutationId?: string; - id: string; - migrateFilePatch: MigrateFilePatch; -} -export interface DeleteMigrateFileInput { - clientMutationId?: string; - id: string; -} -export interface CreateDevicesModuleInput { - clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; - }; -} -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -export interface UpdateDevicesModuleInput { - clientMutationId?: string; - id: string; - devicesModulePatch: DevicesModulePatch; -} -export interface DeleteDevicesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; - }; -} -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - nodeTypeRegistry: { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: Record; - tags?: string[]; - }; -} -export interface NodeTypeRegistryPatch { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - name: string; - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -export interface DeleteNodeTypeRegistryInput { - clientMutationId?: string; - name: string; -} -export interface CreateAppLimitCapsDefaultInput { - clientMutationId?: string; - appLimitCapsDefault: { - name: string; - max?: string; - }; -} -export interface AppLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; -} -export interface DeleteAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapsDefaultInput { - clientMutationId?: string; - orgLimitCapsDefault: { - name: string; - max?: string; - }; -} -export interface OrgLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; -} -export interface DeleteOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCapInput { - clientMutationId?: string; - appLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface AppLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - orgLimitCapPatch: OrgLimitCapPatch; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - ownerId?: string; - service?: string; - identifier?: string; - details?: Record; - isVerified?: boolean; - }; -} -export interface UserConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; -} -export interface UpdateUserConnectedAccountInput { - clientMutationId?: string; - id: string; - userConnectedAccountPatch: UserConnectedAccountPatch; -} -export interface DeleteUserConnectedAccountInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: { - name: string; - max?: string; - softMax?: string; - }; -} -export interface AppLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: string; - softMax?: string; - }; -} -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; - }; -} -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; -} -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreatePubkeySettingInput { - clientMutationId?: string; - pubkeySetting: { - databaseId: string; - schemaId?: string; - cryptoNetwork?: string; - userField?: string; - signUpWithKeyFunctionId?: string; - signInRequestChallengeFunctionId?: string; - signInRecordFailureFunctionId?: string; - signInWithChallengeFunctionId?: string; - }; -} -export interface PubkeySettingPatch { - databaseId?: string | null; - schemaId?: string | null; - cryptoNetwork?: string | null; - userField?: string | null; - signUpWithKeyFunctionId?: string | null; - signInRequestChallengeFunctionId?: string | null; - signInRecordFailureFunctionId?: string | null; - signInWithChallengeFunctionId?: string | null; -} -export interface UpdatePubkeySettingInput { - clientMutationId?: string; - id: string; - pubkeySettingPatch: PubkeySettingPatch; -} -export interface DeletePubkeySettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateRateLimitsModuleInput { - clientMutationId?: string; - rateLimitsModule: { - databaseId: string; - schemaId?: string; - rateLimitSettingsTableId?: string; - ipRateLimitsTableId?: string; - rateLimitsTableId?: string; - rateLimitSettingsTable?: string; - ipRateLimitsTable?: string; - rateLimitsTable?: string; - }; -} -export interface RateLimitsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -export interface UpdateRateLimitsModuleInput { - clientMutationId?: string; - id: string; - rateLimitsModulePatch: RateLimitsModulePatch; -} -export interface DeleteRateLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateRlsSettingInput { - clientMutationId?: string; - rlsSetting: { - databaseId: string; - authenticateSchemaId?: string; - roleSchemaId?: string; - authenticateFunctionId?: string; - authenticateStrictFunctionId?: string; - currentRoleFunctionId?: string; - currentRoleIdFunctionId?: string; - currentUserAgentFunctionId?: string; - currentIpAddressFunctionId?: string; - }; -} -export interface RlsSettingPatch { - databaseId?: string | null; - authenticateSchemaId?: string | null; - roleSchemaId?: string | null; - authenticateFunctionId?: string | null; - authenticateStrictFunctionId?: string | null; - currentRoleFunctionId?: string | null; - currentRoleIdFunctionId?: string | null; - currentUserAgentFunctionId?: string | null; - currentIpAddressFunctionId?: string | null; -} -export interface UpdateRlsSettingInput { - clientMutationId?: string; - id: string; - rlsSettingPatch: RlsSettingPatch; -} -export interface DeleteRlsSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateRlsModuleInput { - clientMutationId?: string; - rlsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; - }; -} -export interface RlsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface UpdateRlsModuleInput { - clientMutationId?: string; - id: string; - rlsModulePatch: RlsModulePatch; -} -export interface DeleteRlsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateRateLimitMetersModuleInput { - clientMutationId?: string; - rateLimitMetersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - }; -} -export interface RateLimitMetersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlansModuleInput { - clientMutationId?: string; - plansModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - prefix?: string; - }; -} -export interface PlansModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface UpdatePlansModuleInput { - clientMutationId?: string; - id: string; - plansModulePatch: PlansModulePatch; -} -export interface DeletePlansModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - name?: string; - databaseId?: string; - deploy?: string; - deps?: string[]; - payload?: Record; - content?: string; - revert?: string; - verify?: string; - action?: string; - actionId?: string; - actorId?: string; - }; -} -export interface SqlActionPatch { - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface UpdateSqlActionInput { - clientMutationId?: string; - id: number; - sqlActionPatch: SqlActionPatch; -} -export interface DeleteSqlActionInput { - clientMutationId?: string; - id: number; -} -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - databaseSetting: { - databaseId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: Record; - }; -} -export interface DatabaseSettingPatch { - databaseId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - enableBulk?: boolean | null; - options?: Record | null; -} -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - id: string; - databaseSettingPatch: DatabaseSettingPatch; -} -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} -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: { - databaseId: string; - schemaId?: string; - credentialsSchemaId?: string; - sessionsSchemaId?: string; - sessionSecretsSchemaId?: string; - credentialsTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - sessionSecretsTableId?: string; - userFieldId?: string; - rpId?: string; - rpName?: string; - originAllowlist?: string[]; - attestationType?: string; - requireUserVerification?: boolean; - residentKey?: string; - challengeExpirySeconds?: string; - }; -} -export interface WebauthnSettingPatch { - databaseId?: string | null; - schemaId?: string | null; - credentialsSchemaId?: string | null; - sessionsSchemaId?: string | null; - sessionSecretsSchemaId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - userFieldId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpirySeconds?: string | null; -} -export interface UpdateWebauthnSettingInput { - clientMutationId?: string; - id: string; - webauthnSettingPatch: WebauthnSettingPatch; -} -export interface DeleteWebauthnSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingModuleInput { - clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - recordUsageFunction?: string; - prefix?: string; - }; -} -export interface BillingModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - billingModulePatch: BillingModulePatch; -} -export interface DeleteBillingModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingProviderModuleInput { - clientMutationId?: string; - billingProviderModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - provider?: string; - productsTableId?: string; - pricesTableId?: string; - subscriptionsTableId?: string; - billingCustomersTableId?: string; - billingCustomersTableName?: string; - billingProductsTableId?: string; - billingProductsTableName?: string; - billingPricesTableId?: string; - billingPricesTableName?: string; - billingSubscriptionsTableId?: string; - billingSubscriptionsTableName?: string; - billingWebhookEventsTableId?: string; - billingWebhookEventsTableName?: string; - processBillingEventFunction?: string; - prefix?: string; - }; -} -export interface BillingProviderModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; -} -export interface UpdateBillingProviderModuleInput { - clientMutationId?: string; - id: string; - billingProviderModulePatch: BillingProviderModulePatch; -} -export interface DeleteBillingProviderModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateHierarchyModuleInput { - clientMutationId?: string; - hierarchyModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId: string; - usersTableId: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - }; -} -export interface HierarchyModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; -} -export interface UpdateHierarchyModuleInput { - clientMutationId?: string; - id: string; - hierarchyModulePatch: HierarchyModulePatch; -} -export interface DeleteHierarchyModuleInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - Database: { - schemas: 'Schema', - tables: 'Table', - checkConstraints: 'CheckConstraint', - fields: 'Field', - foreignKeyConstraints: 'ForeignKeyConstraint', - fullTextSearches: 'FullTextSearch', - indices: 'Index', - policies: 'Policy', - primaryKeyConstraints: 'PrimaryKeyConstraint', - schemaGrants: 'SchemaGrant', - tableGrants: 'TableGrant', - triggerFunctions: 'TriggerFunction', - triggers: 'Trigger', - uniqueConstraints: 'UniqueConstraint', - views: 'View', - viewGrants: 'ViewGrant', - viewRules: 'ViewRule', - defaultPrivileges: 'DefaultPrivilege', - enums: 'Enum', - embeddingChunks: 'EmbeddingChunk', - spatialRelations: 'SpatialRelation', - functions: 'Function', - partitions: 'Partition', - databaseTransfers: 'DatabaseTransfer', - apis: 'Api', - apiModules: 'ApiModule', - apiSchemas: 'ApiSchema', - sites: 'Site', - apps: 'App', - domains: 'Domain', - siteMetadata: 'SiteMetadatum', - siteModules: 'SiteModule', - siteThemes: 'SiteTheme', - apiSettings: 'ApiSetting', - corsSettings: 'CorsSetting', - connectedAccountsModules: 'ConnectedAccountsModule', - cryptoAddressesModules: 'CryptoAddressesModule', - cryptoAuthModules: 'CryptoAuthModule', - defaultIdsModules: 'DefaultIdsModule', - denormalizedTableFields: 'DenormalizedTableField', - emailsModules: 'EmailsModule', - configSecretsUserModules: 'ConfigSecretsUserModule', - invitesModules: 'InvitesModule', - eventsModules: 'EventsModule', - limitsModules: 'LimitsModule', - membershipTypesModules: 'MembershipTypesModule', - membershipsModules: 'MembershipsModule', - permissionsModules: 'PermissionsModule', - phoneNumbersModules: 'PhoneNumbersModule', - profilesModules: 'ProfilesModule', - userStateModules: 'UserStateModule', - sessionsModules: 'SessionsModule', - userAuthModules: 'UserAuthModule', - usersModules: 'UsersModule', - secureTableProvisions: 'SecureTableProvision', - relationProvisions: 'RelationProvision', - blueprints: 'Blueprint', - blueprintConstructions: 'BlueprintConstruction', - storageModules: 'StorageModule', - entityTypeProvisions: 'EntityTypeProvision', - sessionSecretsModules: 'SessionSecretsModule', - webauthnCredentialsModules: 'WebauthnCredentialsModule', - webauthnAuthModules: 'WebauthnAuthModule', - identityProvidersModules: 'IdentityProvidersModule', - notificationsModules: 'NotificationsModule', - realtimeModules: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - inferenceLogModules: 'InferenceLogModule', - computeLogModules: 'ComputeLogModule', - transferLogModules: 'TransferLogModule', - storageLogModules: 'StorageLogModule', - dbUsageModules: 'DbUsageModule', - agentModules: 'AgentModule', - merkleStoreModules: 'MerkleStoreModule', - graphModules: 'GraphModule', - namespaceModules: 'NamespaceModule', - functionModules: 'FunctionModule', - databaseProvisionModules: 'DatabaseProvisionModule', - }, - Schema: { - tables: 'Table', - schemaGrants: 'SchemaGrant', - views: 'View', - defaultPrivileges: 'DefaultPrivilege', - enums: 'Enum', - functions: 'Function', - apiSchemas: 'ApiSchema', - sessionSecretsModules: 'SessionSecretsModule', - identityProvidersModulesByPrivateSchemaId: 'IdentityProvidersModule', - identityProvidersModules: 'IdentityProvidersModule', - realtimeModulesByPrivateSchemaId: 'RealtimeModule', - realtimeModules: 'RealtimeModule', - realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - merkleStoreModulesByPrivateSchemaId: 'MerkleStoreModule', - }, - Table: { - checkConstraints: 'CheckConstraint', - fields: 'Field', - foreignKeyConstraints: 'ForeignKeyConstraint', - fullTextSearches: 'FullTextSearch', - indices: 'Index', - policies: 'Policy', - primaryKeyConstraints: 'PrimaryKeyConstraint', - tableGrants: 'TableGrant', - triggers: 'Trigger', - uniqueConstraints: 'UniqueConstraint', - views: 'View', - viewTables: 'ViewTable', - embeddingChunksByChunksTableId: 'EmbeddingChunk', - embeddingChunks: 'EmbeddingChunk', - spatialRelationsByRefTableId: 'SpatialRelation', - spatialRelations: 'SpatialRelation', - secureTableProvisions: 'SecureTableProvision', - relationProvisionsBySourceTableId: 'RelationProvision', - relationProvisionsByTargetTableId: 'RelationProvision', - sessionSecretsModulesBySessionsTableId: 'SessionSecretsModule', - sessionSecretsModules: 'SessionSecretsModule', - identityProvidersModules: 'IdentityProvidersModule', - realtimeModulesByChangeLogTableId: 'RealtimeModule', - realtimeModulesByListenerNodeTableId: 'RealtimeModule', - realtimeModulesBySourceRegistryTableId: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - }, - Field: { - spatialRelations: 'SpatialRelation', - spatialRelationsByRefFieldId: 'SpatialRelation', - }, - View: { - viewTables: 'ViewTable', - viewGrants: 'ViewGrant', - viewRules: 'ViewRule', - }, - MerkleStoreModule: { - graphModules: 'GraphModule', - }, - Api: { - apiModules: 'ApiModule', - apiSchemas: 'ApiSchema', - domains: 'Domain', - corsSettings: 'CorsSetting', - }, - Site: { - domains: 'Domain', - siteMetadata: 'SiteMetadatum', - siteModules: 'SiteModule', - siteThemes: 'SiteTheme', - }, - Blueprint: { - blueprintConstructions: 'BlueprintConstruction', - }, - BlueprintTemplate: { - blueprintTemplatesByForkedFromId: 'BlueprintTemplate', - blueprintsByTemplateId: 'Blueprint', - }, - AppLimitDefault: { - appLimitCreditsByDefaultLimitId: 'AppLimitCredit', - appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', - }, - OrgLimitDefault: { - orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, - User: { - ownedDatabases: 'Database', - appAdminGrantsByActorId: 'AppAdminGrant', - appAdminGrantsByGrantorId: 'AppAdminGrant', - appOwnerGrantsByActorId: 'AppOwnerGrant', - appOwnerGrantsByGrantorId: 'AppOwnerGrant', - appGrantsByActorId: 'AppGrant', - appGrantsByGrantorId: 'AppGrant', - orgMembershipsByActorId: 'OrgMembership', - orgMembershipsByEntityId: 'OrgMembership', - orgMembersByActorId: 'OrgMember', - orgMembersByEntityId: 'OrgMember', - orgAdminGrantsByActorId: 'OrgAdminGrant', - orgAdminGrantsByEntityId: 'OrgAdminGrant', - orgAdminGrantsByGrantorId: 'OrgAdminGrant', - orgOwnerGrantsByActorId: 'OrgOwnerGrant', - orgOwnerGrantsByEntityId: 'OrgOwnerGrant', - orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', - orgMemberProfilesByActorId: 'OrgMemberProfile', - orgMemberProfilesByEntityId: 'OrgMemberProfile', - orgGrantsByActorId: 'OrgGrant', - orgGrantsByEntityId: 'OrgGrant', - orgGrantsByGrantorId: 'OrgGrant', - parentOrgChartEdges: 'OrgChartEdge', - orgChartEdgesByEntityId: 'OrgChartEdge', - childOrgChartEdges: 'OrgChartEdge', - parentOrgChartEdgeGrants: 'OrgChartEdgeGrant', - orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', - orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', - childOrgChartEdgeGrants: 'OrgChartEdgeGrant', - orgPermissionDefaultsByEntityId: 'OrgPermissionDefault', - appLimitsByActorId: 'AppLimit', - appLimitCreditsByActorId: 'AppLimitCredit', - orgLimitsByActorId: 'OrgLimit', - orgLimitsByEntityId: 'OrgLimit', - orgLimitCreditsByActorId: 'OrgLimitCredit', - orgLimitCreditsByEntityId: 'OrgLimitCredit', - orgLimitAggregatesByEntityId: 'OrgLimitAggregate', - orgLimitWarningsByEntityId: 'OrgLimitWarning', - ownedEmails: 'Email', - ownedPhoneNumbers: 'PhoneNumber', - ownedCryptoAddresses: 'CryptoAddress', - ownedWebauthnCredentials: 'WebauthnCredential', - appInvitesBySenderId: 'AppInvite', - appClaimedInvitesByReceiverId: 'AppClaimedInvite', - appClaimedInvitesBySenderId: 'AppClaimedInvite', - orgInvitesByEntityId: 'OrgInvite', - orgInvitesByReceiverId: 'OrgInvite', - orgInvitesBySenderId: 'OrgInvite', - orgClaimedInvitesByEntityId: 'OrgClaimedInvite', - orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', - orgClaimedInvitesBySenderId: 'OrgClaimedInvite', - auditLogAuthsByActorId: 'AuditLogAuth', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface SendAccountDeletionEmailInput { - clientMutationId?: string; -} -export interface SignOutInput { - clientMutationId?: string; -} -export interface AcceptDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface CancelDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface RejectDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface DisconnectAccountInput { - clientMutationId?: string; - accountId: string; -} -export interface RevokeApiKeyInput { - clientMutationId?: string; - keyId: string; -} -export interface RevokeSessionInput { - clientMutationId?: string; - sessionId: string; -} -export interface VerifyPasswordInput { - clientMutationId?: string; - password: string; -} -export interface VerifyTotpInput { - clientMutationId?: string; - totpValue: string; -} -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface CheckPasswordInput { - clientMutationId?: string; - password?: string; -} -export interface ConfirmDeleteAccountInput { - clientMutationId?: string; - userId?: string; - token?: string; -} -export interface SetPasswordInput { - clientMutationId?: string; - currentPassword?: string; - newPassword?: string; -} -export interface VerifyEmailInput { - clientMutationId?: string; - emailId?: string; - token?: string; -} -export interface ConstructBlueprintInput { - clientMutationId?: string; - blueprintId?: string; - schemaId?: string; -} -export interface ProvisionNewUserInput { - clientMutationId?: string; - email?: string; - password?: string; -} -export interface ResetPasswordInput { - clientMutationId?: string; - roleId?: string; - resetToken?: string; - newPassword?: string; -} -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface CopyTemplateToBlueprintInput { - clientMutationId?: string; - templateId?: string; - databaseId?: string; - ownerId?: string; - nameOverride?: string; - displayNameOverride?: string; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - pDatabaseId?: string; - pSourceTableId?: string; - pSourceFieldId?: string; - pTargetTableId?: string; - pTargetFieldId?: string; - pName?: string; - pOperator?: string; - pParamName?: string; -} -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface ProvisionRelationInput { - clientMutationId?: string; - databaseId?: string; - relationType?: string; - sourceTableId?: string; - targetTableId?: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - createIndex?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; - policies?: Record; -} -export interface SetFieldOrderInput { - clientMutationId?: string; - fieldIds?: string[]; -} -export interface ApplyRlsInput { - clientMutationId?: string; - tableId?: string; - grants?: Record; - policyType?: string; - vars?: Record; - fieldIds?: string[]; - permissive?: boolean; - name?: string; -} -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: string[]; - pOptions?: Record; -} -export interface CreateUserDatabaseInput { - clientMutationId?: string; - databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; -} -export interface ExtendTokenExpiresInput { - clientMutationId?: string; - amount?: IntervalInput; -} -export interface CreateApiKeyInput { - clientMutationId?: string; - keyName?: string; - accessLevel?: string; - mfaLevel?: string; - expiresIn?: IntervalInput; -} -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - schemaId?: string; - tableName?: string; - tableId?: string; - nodes?: Record; - fields?: Record; - policies?: Record; - grants?: Record; - useRls?: boolean; - indexes?: Record; - fullTextSearches?: Record; - uniqueConstraints?: Record; - description?: string; -} -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaFilter; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFunctionFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPartitionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PartitionFilter; - /** Filters to entities where every related entity matches. */ - every?: PartitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PartitionFilter; -} -/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseTransferFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseTransferFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseTransferFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseTransferFilter; -} -/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiFilter; -} -/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteFilter; -} -/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAppFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppFilter; - /** Filters to entities where every related entity matches. */ - every?: AppFilter; - /** Filters to entities where no related entity matches. */ - none?: AppFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSettingFilter; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against many `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConnectedAccountsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConnectedAccountsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConnectedAccountsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConnectedAccountsModuleFilter; -} -/** A filter to be used against many `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAddressesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressesModuleFilter; -} -/** A filter to be used against many `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAuthModuleFilter; -} -/** A filter to be used against many `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultIdsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultIdsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultIdsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultIdsModuleFilter; -} -/** A filter to be used against many `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDenormalizedTableFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DenormalizedTableFieldFilter; - /** Filters to entities where every related entity matches. */ - every?: DenormalizedTableFieldFilter; - /** Filters to entities where no related entity matches. */ - none?: DenormalizedTableFieldFilter; -} -/** A filter to be used against many `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmailsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailsModuleFilter; -} -/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsUserModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsUserModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsUserModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsUserModuleFilter; -} -/** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInvitesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InvitesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InvitesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InvitesModuleFilter; -} -/** A filter to be used against many `EventsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEventsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EventsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EventsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EventsModuleFilter; -} -/** A filter to be used against many `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyLimitsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: LimitsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: LimitsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: LimitsModuleFilter; -} -/** A filter to be used against many `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipTypesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipTypesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipTypesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipTypesModuleFilter; -} -/** A filter to be used against many `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipsModuleFilter; -} -/** A filter to be used against many `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPermissionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PermissionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PermissionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PermissionsModuleFilter; -} -/** A filter to be used against many `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPhoneNumbersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumbersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumbersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumbersModuleFilter; -} -/** A filter to be used against many `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyProfilesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ProfilesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ProfilesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ProfilesModuleFilter; -} -/** A filter to be used against many `UserStateModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserStateModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserStateModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserStateModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserStateModuleFilter; -} -/** A filter to be used against many `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionsModuleFilter; -} -/** A filter to be used against many `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserAuthModuleFilter; -} -/** A filter to be used against many `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUsersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UsersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UsersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UsersModuleFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against many `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageModuleFilter; -} -/** A filter to be used against many `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEntityTypeProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EntityTypeProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: EntityTypeProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: EntityTypeProvisionFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnCredentialsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialsModuleFilter; -} -/** A filter to be used against many `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnAuthModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNotificationsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NotificationsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NotificationsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NotificationsModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInferenceLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InferenceLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InferenceLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InferenceLogModuleFilter; -} -/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyComputeLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ComputeLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ComputeLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ComputeLogModuleFilter; -} -/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTransferLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TransferLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: TransferLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: TransferLogModuleFilter; -} -/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageLogModuleFilter; -} -/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDbUsageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DbUsageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DbUsageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DbUsageModuleFilter; -} -/** A filter to be used against many `AgentModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAgentModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentModuleFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyGraphModuleFilter { - /** 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 filter to be used against many `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNamespaceModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NamespaceModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NamespaceModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NamespaceModuleFilter; -} -/** A filter to be used against many `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionModuleFilter; -} -/** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseProvisionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseProvisionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseProvisionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseProvisionModuleFilter; -} -/** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ -export interface ObjectCategoryFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ObjectCategory; - /** Not equal to the specified value. */ - notEqualTo?: ObjectCategory; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ObjectCategory; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ObjectCategory; - /** Included in the specified list. */ - in?: ObjectCategory[]; - /** Not included in the specified list. */ - notIn?: ObjectCategory[]; - /** Less than the specified value. */ - lessThan?: ObjectCategory; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ObjectCategory; - /** Greater than the specified value. */ - greaterThan?: ObjectCategory; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ObjectCategory; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ -export interface JSONListFilter { - /** 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[]; - /** 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 list of values. */ - contains?: Record[]; - /** Contained by the specified list of values. */ - containedBy?: Record[]; - /** Overlaps the specified list of values. */ - overlaps?: Record[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: Record; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: Record; - /** Any array item is less than the specified value. */ - anyLessThan?: Record; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: Record; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: Record; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: Record; -} -/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeHostnameFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeHostname; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeHostname; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeHostname[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeHostname[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeHostname; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeHostname; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** 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; -} -/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface 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 filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeAttachmentFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeAttachment; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeAttachment; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeAttachment[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeAttachment[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeAttachment; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeAttachment; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** 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; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUrlFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUrl; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUrl; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUrl[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUrl[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUrl; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUrl; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** 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; -} -/** 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; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintTemplateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintTemplateFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintTemplateFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintTemplateFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -/** 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[]; -} -/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeOriginFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeOrigin; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeOrigin; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeOrigin[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeOrigin[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeOrigin; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeOrigin; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** 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; -} -/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUploadFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUpload; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUpload; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUpload[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUpload[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUpload; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUpload; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeUpload; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeUpload; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ -export interface StringTrgmFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; - /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ - similarTo?: TrgmSearchInput; - /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ - wordSimilarTo?: TrgmSearchInput; -} -/** A filter to be used against many `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyDatabaseFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseFilter; -} -/** A filter to be used against many `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppAdminGrantFilter; -} -/** A filter to be used against many `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppOwnerGrantFilter; -} -/** A filter to be used against many `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppGrantFilter; -} -/** A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMembershipFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipFilter; -} -/** A filter to be used against many `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberFilter; -} -/** A filter to be used against many `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgAdminGrantFilter; -} -/** A filter to be used against many `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgOwnerGrantFilter; -} -/** A filter to be used against many `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberProfileFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberProfileFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberProfileFilter; -} -/** A filter to be used against many `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgGrantFilter; -} -/** A filter to be used against many `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeFilter; -} -/** A filter to be used against many `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeGrantFilter; -} -/** A filter to be used against many `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgPermissionDefaultFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultFilter; -} -/** A filter to be used against many `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitFilter; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitAggregateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitAggregateFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitAggregateFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitAggregateFilter; -} -/** A filter to be used against many `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitWarningFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitWarningFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitWarningFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitWarningFilter; -} -/** A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyEmailFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailFilter; -} -/** A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyPhoneNumberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumberFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumberFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumberFilter; -} -/** A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyCryptoAddressFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressFilter; -} -/** A filter to be used against many `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyWebauthnCredentialFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialFilter; -} -/** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppInviteFilter; -} -/** A filter to be used against many `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppClaimedInviteFilter; -} -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; -} -/** A filter to be used against many `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgClaimedInviteFilter; -} -/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogAuthFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AuditLogAuthFilter; - /** Filters to entities where every related entity matches. */ - every?: AuditLogAuthFilter; - /** Filters to entities where no related entity matches. */ - none?: AuditLogAuthFilter; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; -} -/** 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 `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: 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?: SchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; - /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: SchemaToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: SchemaToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */ - identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModulesByPrivateSchemaId` exist. */ - identityProvidersModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByPrivateSchemaId` relation. */ - realtimeModulesByPrivateSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesByPrivateSchemaId` exist. */ - realtimeModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. */ - realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesBySubscriptionsSchemaId` exist. */ - realtimeModulesBySubscriptionsSchemaIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation. */ - merkleStoreModulesByPrivateSchemaId?: SchemaToManyMerkleStoreModuleFilter; - /** `merkleStoreModulesByPrivateSchemaId` exist. */ - merkleStoreModulesByPrivateSchemaIdExist?: boolean; -} -/** 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. */ - 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `timestamps` field. */ - timestamps?: BooleanFilter; - /** Filter by the object’s `peoplestamps` field. */ - peoplestamps?: BooleanFilter; - /** Filter by the object’s `pluralName` field. */ - pluralName?: StringFilter; - /** Filter by the object’s `singularName` field. */ - singularName?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `partitioned` field. */ - partitioned?: BooleanFilter; - /** Filter by the object’s `partitionStrategy` field. */ - partitionStrategy?: StringFilter; - /** Filter by the object’s `partitionKeyNames` field. */ - partitionKeyNames?: StringListFilter; - /** Filter by the object’s `partitionKeyTypes` field. */ - partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: 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?: TableFilter[]; - /** Checks for any expressions in this list. */ - or?: TableFilter[]; - /** Negates the expression. */ - not?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `inherits` relation. */ - inherits?: TableFilter; - /** A related `inherits` exists. */ - inheritsExists?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: TableToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: TableToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: TableToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: TableToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: TableToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: TableToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: TableToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: TableToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: TableToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: TableToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ - embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunksByChunksTableId` exist. */ - embeddingChunksByChunksTableIdExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ - spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; - /** `spatialRelationsByRefTableId` exist. */ - spatialRelationsByRefTableIdExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: TableToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `partition` relation. */ - partition?: PartitionFilter; - /** A related `partition` exists. */ - partitionExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: TableToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisionsBySourceTableId` relation. */ - relationProvisionsBySourceTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsBySourceTableId` exist. */ - relationProvisionsBySourceTableIdExist?: boolean; - /** Filter by the object’s `relationProvisionsByTargetTableId` relation. */ - relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsByTargetTableId` exist. */ - relationProvisionsByTargetTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. */ - sessionSecretsModulesBySessionsTableId?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModulesBySessionsTableId` exist. */ - sessionSecretsModulesBySessionsTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: TableToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByChangeLogTableId` relation. */ - realtimeModulesByChangeLogTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByChangeLogTableId` exist. */ - realtimeModulesByChangeLogTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. */ - realtimeModulesByListenerNodeTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByListenerNodeTableId` exist. */ - realtimeModulesByListenerNodeTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. */ - realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesBySourceRegistryTableId` exist. */ - realtimeModulesBySourceRegistryTableIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; -} -/** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface CheckConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `expr` field. */ - expr?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: CheckConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: CheckConstraintFilter[]; - /** Negates the expression. */ - not?: CheckConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: JSONFilter; - /** Filter by the object’s `fieldOrder` field. */ - fieldOrder?: IntFilter; - /** Filter by the object’s `regexp` field. */ - regexp?: StringFilter; - /** Filter by the object’s `chk` field. */ - chk?: JSONFilter; - /** Filter by the object’s `chkExpr` field. */ - chkExpr?: JSONFilter; - /** Filter by the object’s `min` field. */ - min?: FloatFilter; - /** Filter by the object’s `max` field. */ - max?: FloatFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** 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?: FieldFilter[]; - /** Checks for any expressions in this list. */ - or?: FieldFilter[]; - /** Negates the expression. */ - not?: FieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: FieldToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ - spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; - /** `spatialRelationsByRefFieldId` exist. */ - spatialRelationsByRefFieldIdExist?: boolean; -} -/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface ForeignKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldIds` field. */ - refFieldIds?: UUIDListFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `updateAction` field. */ - updateAction?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: ForeignKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: ForeignKeyConstraintFilter[]; - /** Negates the expression. */ - not?: ForeignKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface FullTextSearchFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `weights` field. */ - weights?: StringListFilter; - /** Filter by the object’s `langs` field. */ - langs?: StringListFilter; - /** 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?: FullTextSearchFilter[]; - /** Checks for any expressions in this list. */ - or?: FullTextSearchFilter[]; - /** Negates the expression. */ - not?: FullTextSearchFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface IndexFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `includeFieldIds` field. */ - includeFieldIds?: UUIDListFilter; - /** Filter by the object’s `accessMethod` field. */ - accessMethod?: StringFilter; - /** Filter by the object’s `indexParams` field. */ - indexParams?: JSONFilter; - /** Filter by the object’s `whereClause` field. */ - whereClause?: JSONFilter; - /** Filter by the object’s `isUnique` field. */ - isUnique?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `opClasses` field. */ - opClasses?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: IndexFilter[]; - /** Checks for any expressions in this list. */ - or?: IndexFilter[]; - /** Negates the expression. */ - not?: IndexFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface PolicyFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `permissive` field. */ - permissive?: BooleanFilter; - /** Filter by the object’s `disabled` field. */ - disabled?: BooleanFilter; - /** Filter by the object’s `policyType` field. */ - policyType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PolicyFilter[]; - /** Checks for any expressions in this list. */ - or?: PolicyFilter[]; - /** Negates the expression. */ - not?: PolicyFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface PrimaryKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PrimaryKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: PrimaryKeyConstraintFilter[]; - /** Negates the expression. */ - not?: PrimaryKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaGrantFilter { - /** 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 `granteeName` field. */ - granteeName?: 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?: SchemaGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaGrantFilter[]; - /** Negates the expression. */ - not?: SchemaGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: 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?: TableGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: TableGrantFilter[]; - /** Negates the expression. */ - not?: TableGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `code` field. */ - code?: 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?: TriggerFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFunctionFilter[]; - /** Negates the expression. */ - not?: TriggerFunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `functionName` field. */ - functionName?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: TriggerFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFilter[]; - /** Negates the expression. */ - not?: TriggerFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface UniqueConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: UniqueConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: UniqueConstraintFilter[]; - /** Negates the expression. */ - not?: UniqueConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `viewType` field. */ - viewType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `filterType` field. */ - filterType?: StringFilter; - /** Filter by the object’s `filterData` field. */ - filterData?: JSONFilter; - /** Filter by the object’s `securityInvoker` field. */ - securityInvoker?: BooleanFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ViewFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewFilter[]; - /** Negates the expression. */ - not?: ViewFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** A related `table` exists. */ - tableExists?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: ViewToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: ViewToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: ViewToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; -} -/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `withGrantOption` field. */ - withGrantOption?: BooleanFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ViewGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewGrantFilter[]; - /** Negates the expression. */ - not?: ViewGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewRuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ViewRuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewRuleFilter[]; - /** Negates the expression. */ - not?: ViewRuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultPrivilegeFilter { - /** 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 `objectType` field. */ - objectType?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: DefaultPrivilegeFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultPrivilegeFilter[]; - /** Negates the expression. */ - not?: DefaultPrivilegeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface EnumFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `values` field. */ - values?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: EnumFilter[]; - /** Checks for any expressions in this list. */ - or?: EnumFilter[]; - /** Negates the expression. */ - not?: EnumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface EmbeddingChunkFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `embeddingFieldId` field. */ - embeddingFieldId?: UUIDFilter; - /** Filter by the object’s `chunksTableId` field. */ - chunksTableId?: UUIDFilter; - /** Filter by the object’s `chunksTableName` field. */ - chunksTableName?: StringFilter; - /** Filter by the object’s `contentFieldName` field. */ - contentFieldName?: StringFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: IntFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `chunkSize` field. */ - chunkSize?: IntFilter; - /** Filter by the object’s `chunkOverlap` field. */ - chunkOverlap?: IntFilter; - /** Filter by the object’s `chunkStrategy` field. */ - chunkStrategy?: StringFilter; - /** Filter by the object’s `metadataFields` field. */ - metadataFields?: JSONFilter; - /** Filter by the object’s `searchIndexes` field. */ - searchIndexes?: JSONFilter; - /** Filter by the object’s `enqueueChunkingJob` field. */ - enqueueChunkingJob?: BooleanFilter; - /** Filter by the object’s `chunkingTaskName` field. */ - chunkingTaskName?: StringFilter; - /** Filter by the object’s `embeddingModel` field. */ - embeddingModel?: StringFilter; - /** Filter by the object’s `embeddingProvider` field. */ - embeddingProvider?: StringFilter; - /** Filter by the object’s `parentFkFieldId` field. */ - parentFkFieldId?: 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?: EmbeddingChunkFilter[]; - /** Checks for any expressions in this list. */ - or?: EmbeddingChunkFilter[]; - /** Negates the expression. */ - not?: EmbeddingChunkFilter; - /** Filter by the object’s `chunksTable` relation. */ - chunksTable?: TableFilter; - /** A related `chunksTable` exists. */ - chunksTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `embeddingField` relation. */ - embeddingField?: FieldFilter; - /** A related `embeddingField` exists. */ - embeddingFieldExists?: boolean; - /** Filter by the object’s `parentFkField` relation. */ - parentFkField?: FieldFilter; - /** A related `parentFkField` exists. */ - parentFkFieldExists?: boolean; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface SpatialRelationFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `operator` field. */ - operator?: StringFilter; - /** Filter by the object’s `paramName` field. */ - paramName?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: SpatialRelationFilter[]; - /** Checks for any expressions in this list. */ - or?: SpatialRelationFilter[]; - /** Negates the expression. */ - not?: SpatialRelationFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionFilter[]; - /** Negates the expression. */ - not?: FunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface PartitionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `strategy` field. */ - strategy?: StringFilter; - /** Filter by the object’s `partitionKeyId` field. */ - partitionKeyId?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `retentionKeepTable` field. */ - retentionKeepTable?: BooleanFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `namingPattern` field. */ - namingPattern?: StringFilter; - /** Filter by the object’s `isParented` field. */ - isParented?: 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?: PartitionFilter[]; - /** Checks for any expressions in this list. */ - or?: PartitionFilter[]; - /** Negates the expression. */ - not?: PartitionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `partitionKey` relation. */ - partitionKey?: FieldFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseTransferFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `targetOwnerId` field. */ - targetOwnerId?: UUIDFilter; - /** Filter by the object’s `sourceApproved` field. */ - sourceApproved?: BooleanFilter; - /** Filter by the object’s `targetApproved` field. */ - targetApproved?: BooleanFilter; - /** Filter by the object’s `sourceApprovedAt` field. */ - sourceApprovedAt?: DatetimeFilter; - /** Filter by the object’s `targetApprovedAt` field. */ - targetApprovedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `initiatedBy` field. */ - initiatedBy?: UUIDFilter; - /** Filter by the object’s `notes` field. */ - notes?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseTransferFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseTransferFilter[]; - /** Negates the expression. */ - not?: DatabaseTransferFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ApiFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiFilter[]; - /** Negates the expression. */ - not?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: ApiToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: ApiToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: ApiToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `apiSetting` relation. */ - apiSetting?: ApiSettingFilter; - /** A related `apiSetting` exists. */ - apiSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: ApiToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; -} -/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ApiModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiModuleFilter[]; - /** Negates the expression. */ - not?: ApiModuleFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSchemaFilter { - /** 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 `apiId` field. */ - apiId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ApiSchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSchemaFilter[]; - /** Negates the expression. */ - not?: ApiSchemaFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteFilter { - /** Filter by the object’s `id` field. */ - id?: 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. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeAttachmentFilter; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Negates the expression. */ - not?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** A related `app` exists. */ - appExists?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: SiteToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: SiteToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; -} -/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ -export interface AppFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `appImage` field. */ - appImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `appStoreLink` field. */ - appStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Filter by the object’s `appStoreId` field. */ - appStoreId?: StringFilter; - /** Filter by the object’s `appIdPrefix` field. */ - appIdPrefix?: StringFilter; - /** Filter by the object’s `playStoreLink` field. */ - playStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Negates the expression. */ - not?: AppFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: ConstructiveInternalTypeHostnameFilter; - /** Filter by the object’s `domain` field. */ - domain?: ConstructiveInternalTypeHostnameFilter; - /** Checks for all expressions in this list. */ - and?: DomainFilter[]; - /** Checks for any expressions in this list. */ - or?: DomainFilter[]; - /** Negates the expression. */ - not?: DomainFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** A related `site` exists. */ - siteExists?: boolean; -} -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteModuleFilter[]; - /** Negates the expression. */ - not?: SiteModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteThemeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `theme` field. */ - theme?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; - /** Negates the expression. */ - not?: SiteThemeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: ApiSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSettingFilter[]; - /** Negates the expression. */ - not?: ApiSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface CorsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: CorsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: CorsSettingFilter[]; - /** Negates the expression. */ - not?: CorsSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConnectedAccountsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: CryptoAddressesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressesModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAddressesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAuthModuleFilter { - /** 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 `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `addressesTableId` field. */ - addressesTableId?: UUIDFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `signInRequestChallenge` field. */ - signInRequestChallenge?: StringFilter; - /** Filter by the object’s `signInRecordFailure` field. */ - signInRecordFailure?: StringFilter; - /** Filter by the object’s `signUpWithKey` field. */ - signUpWithKey?: StringFilter; - /** Filter by the object’s `signInWithChallenge` field. */ - signInWithChallenge?: StringFilter; - /** Checks for all expressions in this list. */ - and?: CryptoAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAuthModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultIdsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: DefaultIdsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultIdsModuleFilter[]; - /** Negates the expression. */ - not?: DefaultIdsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DenormalizedTableFieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `setIds` field. */ - setIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `refIds` field. */ - refIds?: UUIDListFilter; - /** Filter by the object’s `useUpdates` field. */ - useUpdates?: BooleanFilter; - /** Filter by the object’s `updateDefaults` field. */ - updateDefaults?: BooleanFilter; - /** Filter by the object’s `funcName` field. */ - funcName?: StringFilter; - /** Filter by the object’s `funcOrder` field. */ - funcOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: DenormalizedTableFieldFilter[]; - /** Checks for any expressions in this list. */ - or?: DenormalizedTableFieldFilter[]; - /** Negates the expression. */ - not?: DenormalizedTableFieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: EmailsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailsModuleFilter[]; - /** Negates the expression. */ - not?: EmailsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `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; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; - /** Filter by the object’s `claimedInvitesTable` relation. */ - claimedInvitesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `invitesTable` relation. */ - invitesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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; - /** Filter by the object’s `removeEvent` field. */ - removeEvent?: StringFilter; - /** Filter by the object’s `tgEvent` field. */ - tgEvent?: StringFilter; - /** Filter by the object’s `tgEventToggle` field. */ - tgEventToggle?: StringFilter; - /** Filter by the object’s `tgEventToggleBool` field. */ - tgEventToggleBool?: StringFilter; - /** Filter by the object’s `tgEventBool` field. */ - tgEventBool?: StringFilter; - /** Filter by the object’s `upsertAggregate` field. */ - 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. */ - levelAchieved?: StringFilter; - /** Filter by the object’s `tgCheckAchievements` field. */ - tgCheckAchievements?: StringFilter; - /** Filter by the object’s `grantAchievement` field. */ - grantAchievement?: StringFilter; - /** Filter by the object’s `tgAchievementReward` field. */ - tgAchievementReward?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EventsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EventsModuleFilter[]; - /** Negates the expression. */ - not?: EventsModuleFilter; - /** Filter by the object’s `achievementRewardsTable` relation. */ - achievementRewardsTable?: TableFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventAggregatesTable` relation. */ - eventAggregatesTable?: TableFilter; - /** Filter by the object’s `eventTypesTable` relation. */ - eventTypesTable?: TableFilter; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** Filter by the object’s `levelGrantsTable` relation. */ - levelGrantsTable?: TableFilter; - /** Filter by the object’s `levelRequirementsTable` relation. */ - levelRequirementsTable?: TableFilter; - /** Filter by the object’s `levelsTable` relation. */ - levelsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface LimitsModuleFilter { - /** Filter by the object’s `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 `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 `limitIncrementFunction` field. */ - limitIncrementFunction?: StringFilter; - /** Filter by the object’s `limitDecrementFunction` field. */ - limitDecrementFunction?: StringFilter; - /** Filter by the object’s `limitIncrementTrigger` field. */ - limitIncrementTrigger?: StringFilter; - /** Filter by the object’s `limitDecrementTrigger` field. */ - limitDecrementTrigger?: StringFilter; - /** Filter by the object’s `limitUpdateTrigger` field. */ - limitUpdateTrigger?: StringFilter; - /** Filter by the object’s `limitCheckFunction` field. */ - limitCheckFunction?: StringFilter; - /** Filter by the object’s `limitCreditsTableId` field. */ - limitCreditsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `creditCodesTableId` field. */ - creditCodesTableId?: UUIDFilter; - /** Filter by the object’s `creditCodeItemsTableId` field. */ - creditCodeItemsTableId?: UUIDFilter; - /** Filter by the object’s `creditRedemptionsTableId` field. */ - creditRedemptionsTableId?: UUIDFilter; - /** Filter by the object’s `aggregateTableId` field. */ - aggregateTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsTableId` field. */ - limitCapsTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsDefaultsTableId` field. */ - limitCapsDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `capCheckTrigger` field. */ - capCheckTrigger?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: LimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitsModuleFilter[]; - /** Negates the expression. */ - not?: LimitsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `aggregateTable` relation. */ - aggregateTable?: TableFilter; - /** A related `aggregateTable` exists. */ - aggregateTableExists?: boolean; - /** Filter by the object’s `creditCodeItemsTable` relation. */ - creditCodeItemsTable?: TableFilter; - /** A related `creditCodeItemsTable` exists. */ - creditCodeItemsTableExists?: boolean; - /** Filter by the object’s `creditCodesTable` relation. */ - creditCodesTable?: TableFilter; - /** A related `creditCodesTable` exists. */ - creditCodesTableExists?: boolean; - /** Filter by the object’s `creditRedemptionsTable` relation. */ - creditRedemptionsTable?: TableFilter; - /** A related `creditRedemptionsTable` exists. */ - creditRedemptionsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** A related `eventsTable` exists. */ - eventsTableExists?: boolean; - /** Filter by the object’s `limitCapsDefaultsTable` relation. */ - limitCapsDefaultsTable?: TableFilter; - /** A related `limitCapsDefaultsTable` exists. */ - limitCapsDefaultsTableExists?: boolean; - /** Filter by the object’s `limitCapsTable` relation. */ - limitCapsTable?: TableFilter; - /** A related `limitCapsTable` exists. */ - limitCapsTableExists?: boolean; - /** Filter by the object’s `limitCreditsTable` relation. */ - limitCreditsTable?: TableFilter; - /** A related `limitCreditsTable` exists. */ - limitCreditsTableExists?: boolean; - /** Filter by the object’s `limitWarningStateTable` relation. */ - limitWarningStateTable?: TableFilter; - /** A related `limitWarningStateTable` exists. */ - limitWarningStateTableExists?: boolean; - /** Filter by the object’s `limitWarningsTable` relation. */ - limitWarningsTable?: TableFilter; - /** A related `limitWarningsTable` exists. */ - limitWarningsTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypesModuleFilter { - /** 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?: MembershipTypesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; - /** Negates the expression. */ - not?: MembershipTypesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultLimitsTable` relation. */ - defaultLimitsTable?: TableFilter; - /** Filter by the object’s `defaultPermissionsTable` relation. */ - defaultPermissionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `entityTableOwner` relation. */ - entityTableOwner?: FieldFilter; - /** A related `entityTableOwner` exists. */ - entityTableOwnerExists?: boolean; - /** Filter by the object’s `grantsTable` relation. */ - grantsTable?: TableFilter; - /** Filter by the object’s `limitsTable` relation. */ - limitsTable?: TableFilter; - /** Filter by the object’s `membersTable` relation. */ - membersTable?: TableFilter; - /** Filter by the object’s `membershipDefaultsTable` relation. */ - membershipDefaultsTable?: TableFilter; - /** Filter by the object’s `membershipSettingsTable` relation. */ - membershipSettingsTable?: TableFilter; - /** A related `membershipSettingsTable` exists. */ - membershipSettingsTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sprtTable` relation. */ - sprtTable?: TableFilter; -} -/** 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumbersModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: PhoneNumbersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumbersModuleFilter[]; - /** Negates the expression. */ - not?: PhoneNumbersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `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 `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; - /** Filter by the object’s `profileGrantsTableId` field. */ - profileGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileGrantsTableName` field. */ - profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ - profileDefinitionGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ - profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `profileTemplatesTableId` field. */ - profileTemplatesTableId?: UUIDFilter; - /** Filter by the object’s `profileTemplatesTableName` field. */ - profileTemplatesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ProfilesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ProfilesModuleFilter[]; - /** Negates the expression. */ - not?: ProfilesModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `profileDefinitionGrantsTable` relation. */ - profileDefinitionGrantsTable?: TableFilter; - /** Filter by the object’s `profileGrantsTable` relation. */ - profileGrantsTable?: TableFilter; - /** Filter by the object’s `profilePermissionsTable` relation. */ - profilePermissionsTable?: TableFilter; - /** Filter by the object’s `profileTemplatesTable` relation. */ - profileTemplatesTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SessionsModuleFilter { - /** 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 `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsDefaultExpiration` field. */ - sessionsDefaultExpiration?: IntervalFilter; - /** Filter by the object’s `sessionsTable` field. */ - sessionsTable?: StringFilter; - /** Filter by the object’s `sessionCredentialsTable` field. */ - sessionCredentialsTable?: StringFilter; - /** Filter by the object’s `authSettingsTable` field. */ - authSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SessionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SessionsModuleFilter[]; - /** Negates the expression. */ - not?: SessionsModuleFilter; - /** Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. */ - authSettingsTableByAuthSettingsTableId?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. */ - sessionCredentialsTableBySessionCredentialsTableId?: TableFilter; - /** Filter by the object’s `sessionsTableBySessionsTableId` relation. */ - sessionsTableBySessionsTableId?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UserAuthModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `encryptedTableId` field. */ - encryptedTableId?: 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 `auditsTableName` field. */ - auditsTableName?: StringFilter; - /** Filter by the object’s `signInFunction` field. */ - signInFunction?: StringFilter; - /** Filter by the object’s `signUpFunction` field. */ - signUpFunction?: StringFilter; - /** Filter by the object’s `signOutFunction` field. */ - signOutFunction?: StringFilter; - /** Filter by the object’s `setPasswordFunction` field. */ - setPasswordFunction?: StringFilter; - /** Filter by the object’s `resetPasswordFunction` field. */ - resetPasswordFunction?: StringFilter; - /** Filter by the object’s `forgotPasswordFunction` field. */ - forgotPasswordFunction?: StringFilter; - /** Filter by the object’s `sendVerificationEmailFunction` field. */ - sendVerificationEmailFunction?: StringFilter; - /** Filter by the object’s `verifyEmailFunction` field. */ - verifyEmailFunction?: StringFilter; - /** Filter by the object’s `verifyPasswordFunction` field. */ - verifyPasswordFunction?: StringFilter; - /** Filter by the object’s `checkPasswordFunction` field. */ - checkPasswordFunction?: StringFilter; - /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ - sendAccountDeletionEmailFunction?: StringFilter; - /** Filter by the object’s `deleteAccountFunction` field. */ - deleteAccountFunction?: StringFilter; - /** Filter by the object’s `signInCrossOriginFunction` field. */ - signInCrossOriginFunction?: StringFilter; - /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ - requestCrossOriginTokenFunction?: StringFilter; - /** Filter by the object’s `extendTokenExpires` field. */ - extendTokenExpires?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserAuthModuleFilter[]; - /** Negates the expression. */ - not?: UserAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `encryptedTable` relation. */ - encryptedTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UsersModuleFilter { - /** 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 `typeTableId` field. */ - typeTableId?: UUIDFilter; - /** Filter by the object’s `typeTableName` field. */ - typeTableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UsersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UsersModuleFilter[]; - /** Negates the expression. */ - not?: UsersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `typeTable` relation. */ - typeTable?: TableFilter; -} -/** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface SecureTableProvisionFilter { - /** 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 `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `sourceTable` relation. */ - sourceTable?: TableFilter; - /** Filter by the object’s `targetTable` relation. */ - targetTable?: TableFilter; -} -/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `templateId` field. */ - templateId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintFilter[]; - /** Negates the expression. */ - not?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `template` relation. */ - template?: BlueprintTemplateFilter; - /** A related `template` exists. */ - templateExists?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; -} -/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageModuleFilter { - /** Filter by the object’s `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 `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `filesTableId` field. */ - filesTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `filesTableName` field. */ - filesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - hasPathShares?: BooleanFilter; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: UUIDFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `hasVersioning` field. */ - hasVersioning?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; - /** Filter by the object’s `fileEventsTableId` field. */ - fileEventsTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Filter by the object’s `bucketsTable` relation. */ - bucketsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `fileEventsTable` relation. */ - fileEventsTable?: TableFilter; - /** A related `fileEventsTable` exists. */ - fileEventsTableExists?: boolean; - /** Filter by the object’s `filesTable` relation. */ - filesTable?: TableFilter; - /** Filter by the object’s `pathSharesTable` relation. */ - pathSharesTable?: TableFilter; - /** A related `pathSharesTable` exists. */ - pathSharesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - 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 `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** 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. */ - 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialsModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -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[]; - /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; - /** Filter by the object’s `authSettingsTable` relation. */ - authSettingsTable?: TableFilter; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `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; - /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; - /** Negates the expression. */ - not?: NotificationsModuleFilter; - /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ - channelsTableByChannelsTableId?: TableFilter; - /** A related `channelsTableByChannelsTableId` exists. */ - channelsTableByChannelsTableIdExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ - deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ - deliveryLogTableByDeliveryLogTableIdExists?: boolean; - /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ - notificationsTableByNotificationsTableId?: TableFilter; - /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ - organizationSettingsTableByOrganizationSettingsTableId?: TableFilter; - /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */ - organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ - preferencesTableByPreferencesTableId?: TableFilter; - /** A related `preferencesTableByPreferencesTableId` exists. */ - preferencesTableByPreferencesTableIdExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ - readStateTableByReadStateTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ - userSettingsTableByUserSettingsTableId?: TableFilter; - /** A related `userSettingsTableByUserSettingsTableId` exists. */ - userSettingsTableByUserSettingsTableIdExists?: boolean; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; - /** Filter by the object’s `changeLogTable` relation. */ - changeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `listenerNodeTable` relation. */ - listenerNodeTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sourceRegistryTable` relation. */ - sourceRegistryTable?: TableFilter; - /** Filter by the object’s `subscriptionsSchema` relation. */ - subscriptionsSchema?: SchemaFilter; -} -/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface InferenceLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; - /** Negates the expression. */ - not?: InferenceLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `inferenceLogTable` relation. */ - inferenceLogTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ComputeLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; - /** Negates the expression. */ - not?: ComputeLogModuleFilter; - /** Filter by the object’s `computeLogTable` relation. */ - computeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TransferLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; - /** Negates the expression. */ - not?: TransferLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `transferLogTable` relation. */ - transferLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; - /** Negates the expression. */ - not?: StorageLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storageLogTable` relation. */ - storageLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; - /** Negates the expression. */ - not?: DbUsageModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `queryStatsDailyTable` relation. */ - queryStatsDailyTable?: TableFilter; - /** Filter by the object’s `queryStatsLogTable` relation. */ - queryStatsLogTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `tableStatsDailyTable` relation. */ - tableStatsDailyTable?: TableFilter; - /** Filter by the object’s `tableStatsLogTable` relation. */ - tableStatsLogTable?: TableFilter; -} -/** A filter to be used against `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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `knowledgeTableId` field. */ - knowledgeTableId?: UUIDFilter; - /** Filter by the object’s `threadTableName` field. */ - threadTableName?: StringFilter; - /** Filter by the object’s `messageTableName` field. */ - messageTableName?: StringFilter; - /** Filter by the object’s `taskTableName` field. */ - taskTableName?: StringFilter; - /** Filter by the object’s `promptsTableName` field. */ - promptsTableName?: StringFilter; - /** Filter by the object’s `knowledgeTableName` field. */ - knowledgeTableName?: StringFilter; - /** Filter by the object’s `hasKnowledge` field. */ - hasKnowledge?: BooleanFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `knowledgeConfig` field. */ - knowledgeConfig?: JSONFilter; - /** Filter by the object’s `knowledgePolicies` field. */ - knowledgePolicies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentModuleFilter[]; - /** Negates the expression. */ - not?: AgentModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `knowledgeTable` relation. */ - knowledgeTable?: TableFilter; - /** A related `knowledgeTable` exists. */ - knowledgeTableExists?: boolean; - /** Filter by the object’s `messageTable` relation. */ - messageTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `promptsTable` relation. */ - promptsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `taskTable` relation. */ - taskTable?: TableFilter; - /** Filter by the object’s `threadTable` relation. */ - threadTable?: TableFilter; -} -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `scopeField` field. */ - scopeField?: 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 `commitTable` relation. */ - commitTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `objectTable` relation. */ - objectTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storeTable` relation. */ - storeTable?: TableFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; -} -/** A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `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 `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scopeField` field. */ - scopeField?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** 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?: GraphModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; - /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `executionsTable` relation. */ - executionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `graphsTable` relation. */ - graphsTable?: TableFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; - /** Filter by the object’s `outputsTable` relation. */ - outputsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `publicSchema` relation. */ - publicSchema?: SchemaFilter; -} -/** 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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `namespaceEventsTable` relation. */ - namespaceEventsTable?: TableFilter; - /** Filter by the object’s `namespacesTable` relation. */ - namespacesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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 `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 `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `configRequirementsTable` relation. */ - configRequirementsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `definitionsTable` relation. */ - definitionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `executionLogsTable` relation. */ - executionLogsTable?: TableFilter; - /** Filter by the object’s `invocationsTable` relation. */ - invocationsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `requirementsTable` relation. */ - requirementsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretDefinitionsTable` relation. */ - secretDefinitionsTable?: TableFilter; -} -/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseProvisionModuleFilter { - /** Filter by the object’s `id` field. */ - 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?: StringListFilter; - /** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** A related `database` exists. */ - databaseExists?: boolean; -} -/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewTableFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `joinOrder` field. */ - joinOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: ViewTableFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewTableFilter[]; - /** Negates the expression. */ - not?: ViewTableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `version` field. */ - version?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `visibility` field. */ - visibility?: StringFilter; - /** Filter by the object’s `categories` field. */ - categories?: StringListFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `definitionSchemaVersion` field. */ - definitionSchemaVersion?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `complexity` field. */ - complexity?: StringFilter; - /** Filter by the object’s `copyCount` field. */ - copyCount?: IntFilter; - /** Filter by the object’s `forkCount` field. */ - forkCount?: IntFilter; - /** Filter by the object’s `forkedFromId` field. */ - forkedFromId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintTemplateFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintTemplateFilter[]; - /** Negates the expression. */ - not?: BlueprintTemplateFilter; - /** Filter by the object’s `forkedFrom` relation. */ - forkedFrom?: BlueprintTemplateFilter; - /** A related `forkedFrom` exists. */ - forkedFromExists?: boolean; - /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ - blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; - /** `blueprintTemplatesByForkedFromId` exist. */ - blueprintTemplatesByForkedFromIdExist?: boolean; - /** Filter by the object’s `blueprintsByTemplateId` relation. */ - blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; - /** `blueprintsByTemplateId` exist. */ - blueprintsByTemplateIdExist?: boolean; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `schemaHash` field. */ - schemaHash?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** 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?: DatabaseFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseFilter[]; - /** Negates the expression. */ - not?: DatabaseFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** Filter by the object’s `schemas` relation. */ - schemas?: DatabaseToManySchemaFilter; - /** `schemas` exist. */ - schemasExist?: boolean; - /** Filter by the object’s `tables` relation. */ - tables?: DatabaseToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: DatabaseToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: DatabaseToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: DatabaseToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggerFunctions` relation. */ - triggerFunctions?: DatabaseToManyTriggerFunctionFilter; - /** `triggerFunctions` exist. */ - triggerFunctionsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: DatabaseToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: DatabaseToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: DatabaseToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: DatabaseToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: DatabaseToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `partitions` relation. */ - partitions?: DatabaseToManyPartitionFilter; - /** `partitions` exist. */ - partitionsExist?: boolean; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `apis` relation. */ - apis?: DatabaseToManyApiFilter; - /** `apis` exist. */ - apisExist?: boolean; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: DatabaseToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: DatabaseToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sites` relation. */ - sites?: DatabaseToManySiteFilter; - /** `sites` exist. */ - sitesExist?: boolean; - /** Filter by the object’s `apps` relation. */ - apps?: DatabaseToManyAppFilter; - /** `apps` exist. */ - appsExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: DatabaseToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: DatabaseToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: DatabaseToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: DatabaseToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `databaseSetting` relation. */ - databaseSetting?: DatabaseSettingFilter; - /** A related `databaseSetting` exists. */ - databaseSettingExists?: boolean; - /** Filter by the object’s `apiSettings` relation. */ - apiSettings?: DatabaseToManyApiSettingFilter; - /** `apiSettings` exist. */ - apiSettingsExist?: boolean; - /** Filter by the object’s `rlsSetting` relation. */ - rlsSetting?: RlsSettingFilter; - /** A related `rlsSetting` exists. */ - rlsSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: DatabaseToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; - /** Filter by the object’s `pubkeySetting` relation. */ - pubkeySetting?: PubkeySettingFilter; - /** A related `pubkeySetting` exists. */ - pubkeySettingExists?: boolean; - /** Filter by the object’s `webauthnSetting` relation. */ - webauthnSetting?: WebauthnSettingFilter; - /** A related `webauthnSetting` exists. */ - webauthnSettingExists?: boolean; - /** Filter by the object’s `connectedAccountsModules` relation. */ - connectedAccountsModules?: DatabaseToManyConnectedAccountsModuleFilter; - /** `connectedAccountsModules` exist. */ - connectedAccountsModulesExist?: boolean; - /** Filter by the object’s `cryptoAddressesModules` relation. */ - cryptoAddressesModules?: DatabaseToManyCryptoAddressesModuleFilter; - /** `cryptoAddressesModules` exist. */ - cryptoAddressesModulesExist?: boolean; - /** Filter by the object’s `cryptoAuthModules` relation. */ - cryptoAuthModules?: DatabaseToManyCryptoAuthModuleFilter; - /** `cryptoAuthModules` exist. */ - cryptoAuthModulesExist?: boolean; - /** Filter by the object’s `defaultIdsModules` relation. */ - defaultIdsModules?: DatabaseToManyDefaultIdsModuleFilter; - /** `defaultIdsModules` exist. */ - defaultIdsModulesExist?: boolean; - /** Filter by the object’s `denormalizedTableFields` relation. */ - denormalizedTableFields?: DatabaseToManyDenormalizedTableFieldFilter; - /** `denormalizedTableFields` exist. */ - denormalizedTableFieldsExist?: boolean; - /** Filter by the object’s `emailsModules` relation. */ - emailsModules?: DatabaseToManyEmailsModuleFilter; - /** `emailsModules` exist. */ - emailsModulesExist?: boolean; - /** Filter by the object’s `configSecretsUserModules` relation. */ - configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; - /** `configSecretsUserModules` exist. */ - configSecretsUserModulesExist?: boolean; - /** Filter by the object’s `invitesModules` relation. */ - invitesModules?: DatabaseToManyInvitesModuleFilter; - /** `invitesModules` exist. */ - invitesModulesExist?: boolean; - /** Filter by the object’s `eventsModules` relation. */ - eventsModules?: DatabaseToManyEventsModuleFilter; - /** `eventsModules` exist. */ - eventsModulesExist?: boolean; - /** Filter by the object’s `limitsModules` relation. */ - limitsModules?: DatabaseToManyLimitsModuleFilter; - /** `limitsModules` exist. */ - limitsModulesExist?: boolean; - /** Filter by the object’s `membershipTypesModules` relation. */ - membershipTypesModules?: DatabaseToManyMembershipTypesModuleFilter; - /** `membershipTypesModules` exist. */ - membershipTypesModulesExist?: boolean; - /** Filter by the object’s `membershipsModules` relation. */ - membershipsModules?: DatabaseToManyMembershipsModuleFilter; - /** `membershipsModules` exist. */ - membershipsModulesExist?: boolean; - /** Filter by the object’s `permissionsModules` relation. */ - permissionsModules?: DatabaseToManyPermissionsModuleFilter; - /** `permissionsModules` exist. */ - permissionsModulesExist?: boolean; - /** Filter by the object’s `phoneNumbersModules` relation. */ - phoneNumbersModules?: DatabaseToManyPhoneNumbersModuleFilter; - /** `phoneNumbersModules` exist. */ - phoneNumbersModulesExist?: boolean; - /** Filter by the object’s `profilesModules` relation. */ - profilesModules?: DatabaseToManyProfilesModuleFilter; - /** `profilesModules` exist. */ - profilesModulesExist?: boolean; - /** Filter by the object’s `rlsModule` relation. */ - rlsModule?: RlsModuleFilter; - /** A related `rlsModule` exists. */ - rlsModuleExists?: boolean; - /** Filter by the object’s `userStateModules` relation. */ - userStateModules?: DatabaseToManyUserStateModuleFilter; - /** `userStateModules` exist. */ - userStateModulesExist?: boolean; - /** Filter by the object’s `sessionsModules` relation. */ - sessionsModules?: DatabaseToManySessionsModuleFilter; - /** `sessionsModules` exist. */ - sessionsModulesExist?: boolean; - /** Filter by the object’s `userAuthModules` relation. */ - userAuthModules?: DatabaseToManyUserAuthModuleFilter; - /** `userAuthModules` exist. */ - userAuthModulesExist?: boolean; - /** Filter by the object’s `usersModules` relation. */ - usersModules?: DatabaseToManyUsersModuleFilter; - /** `usersModules` exist. */ - usersModulesExist?: boolean; - /** Filter by the object’s `hierarchyModule` relation. */ - hierarchyModule?: HierarchyModuleFilter; - /** A related `hierarchyModule` exists. */ - hierarchyModuleExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: DatabaseToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisions` relation. */ - relationProvisions?: DatabaseToManyRelationProvisionFilter; - /** `relationProvisions` exist. */ - relationProvisionsExist?: boolean; - /** Filter by the object’s `blueprints` relation. */ - blueprints?: DatabaseToManyBlueprintFilter; - /** `blueprints` exist. */ - blueprintsExist?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: DatabaseToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; - /** Filter by the object’s `storageModules` relation. */ - storageModules?: DatabaseToManyStorageModuleFilter; - /** `storageModules` exist. */ - storageModulesExist?: boolean; - /** Filter by the object’s `entityTypeProvisions` relation. */ - entityTypeProvisions?: DatabaseToManyEntityTypeProvisionFilter; - /** `entityTypeProvisions` exist. */ - entityTypeProvisionsExist?: boolean; - /** Filter by the object’s `rateLimitsModule` relation. */ - rateLimitsModule?: RateLimitsModuleFilter; - /** A related `rateLimitsModule` exists. */ - rateLimitsModuleExists?: boolean; - /** Filter by the object’s `devicesModule` relation. */ - devicesModule?: DevicesModuleFilter; - /** A related `devicesModule` exists. */ - devicesModuleExists?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: DatabaseToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `webauthnCredentialsModules` relation. */ - webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter; - /** `webauthnCredentialsModules` exist. */ - webauthnCredentialsModulesExist?: boolean; - /** Filter by the object’s `webauthnAuthModules` relation. */ - webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter; - /** `webauthnAuthModules` exist. */ - webauthnAuthModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `notificationsModules` relation. */ - notificationsModules?: DatabaseToManyNotificationsModuleFilter; - /** `notificationsModules` exist. */ - notificationsModulesExist?: boolean; - /** Filter by the object’s `plansModule` relation. */ - plansModule?: PlansModuleFilter; - /** A related `plansModule` exists. */ - plansModuleExists?: boolean; - /** Filter by the object’s `billingModule` relation. */ - billingModule?: BillingModuleFilter; - /** A related `billingModule` exists. */ - billingModuleExists?: boolean; - /** Filter by the object’s `billingProviderModule` relation. */ - billingProviderModule?: BillingProviderModuleFilter; - /** A related `billingProviderModule` exists. */ - billingProviderModuleExists?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: DatabaseToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `rateLimitMetersModule` relation. */ - rateLimitMetersModule?: RateLimitMetersModuleFilter; - /** A related `rateLimitMetersModule` exists. */ - rateLimitMetersModuleExists?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `inferenceLogModules` relation. */ - inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; - /** `inferenceLogModules` exist. */ - inferenceLogModulesExist?: boolean; - /** Filter by the object’s `computeLogModules` relation. */ - computeLogModules?: DatabaseToManyComputeLogModuleFilter; - /** `computeLogModules` exist. */ - computeLogModulesExist?: boolean; - /** Filter by the object’s `transferLogModules` relation. */ - transferLogModules?: DatabaseToManyTransferLogModuleFilter; - /** `transferLogModules` exist. */ - transferLogModulesExist?: boolean; - /** Filter by the object’s `storageLogModules` relation. */ - storageLogModules?: DatabaseToManyStorageLogModuleFilter; - /** `storageLogModules` exist. */ - storageLogModulesExist?: boolean; - /** Filter by the object’s `dbUsageModules` relation. */ - dbUsageModules?: DatabaseToManyDbUsageModuleFilter; - /** `dbUsageModules` exist. */ - dbUsageModulesExist?: boolean; - /** Filter by the object’s `agentModules` relation. */ - agentModules?: DatabaseToManyAgentModuleFilter; - /** `agentModules` exist. */ - agentModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModules` relation. */ - merkleStoreModules?: DatabaseToManyMerkleStoreModuleFilter; - /** `merkleStoreModules` exist. */ - merkleStoreModulesExist?: boolean; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: DatabaseToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `namespaceModules` relation. */ - namespaceModules?: DatabaseToManyNamespaceModuleFilter; - /** `namespaceModules` exist. */ - namespaceModulesExist?: boolean; - /** Filter by the object’s `functionModules` relation. */ - functionModules?: DatabaseToManyFunctionModuleFilter; - /** `functionModules` exist. */ - functionModulesExist?: boolean; - /** Filter by the object’s `databaseProvisionModules` relation. */ - databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; - /** `databaseProvisionModules` exist. */ - databaseProvisionModulesExist?: boolean; -} -/** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; - /** Negates the expression. */ - not?: AppAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; - /** Negates the expression. */ - not?: AppOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -/** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberFilter[]; - /** Negates the expression. */ - not?: OrgMemberFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAddressFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: CryptoAddressFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; - /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `credentialId` field. */ - credentialId?: StringFilter; - /** Filter by the object’s `publicKey` field. */ - publicKey?: Base64EncodedBinaryFilter; - /** Filter by the object’s `signCount` field. */ - signCount?: BigIntFilter; - /** Filter by the object’s `webauthnUserId` field. */ - webauthnUserId?: StringFilter; - /** Filter by the object’s `transports` field. */ - transports?: StringListFilter; - /** Filter by the object’s `credentialDeviceType` field. */ - credentialDeviceType?: StringFilter; - /** Filter by the object’s `backupEligible` field. */ - backupEligible?: BooleanFilter; - /** Filter by the object’s `backupState` field. */ - backupState?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `lastUsedAt` field. */ - lastUsedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; - /** Negates the expression. */ - not?: AppClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; - /** Negates the expression. */ - not?: OrgClaimedInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogAuthFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogAuthFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogAuthFilter[]; - /** Negates the expression. */ - not?: AuditLogAuthFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; -} -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDListFilter { - /** 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 Float fields. All fields are combined with a logical ‘and.’ */ -export interface FloatFilter { - /** 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; -} -/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ -export interface BigIntFilter { - /** 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; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** 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?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `ownedDatabases` relation. */ - ownedDatabases?: UserToManyDatabaseFilter; - /** `ownedDatabases` exist. */ - ownedDatabasesExist?: boolean; - /** Filter by the object’s `appMembershipByActorId` relation. */ - appMembershipByActorId?: AppMembershipFilter; - /** A related `appMembershipByActorId` exists. */ - appMembershipByActorIdExists?: boolean; - /** Filter by the object’s `appAdminGrantsByActorId` relation. */ - appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByActorId` exist. */ - appAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ - appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByGrantorId` exist. */ - appAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ - appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByActorId` exist. */ - appOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ - appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByGrantorId` exist. */ - appOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appGrantsByActorId` relation. */ - appGrantsByActorId?: UserToManyAppGrantFilter; - /** `appGrantsByActorId` exist. */ - appGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appGrantsByGrantorId` relation. */ - appGrantsByGrantorId?: UserToManyAppGrantFilter; - /** `appGrantsByGrantorId` exist. */ - appGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByActorId` relation. */ - orgMembershipsByActorId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByActorId` exist. */ - orgMembershipsByActorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByEntityId` relation. */ - orgMembershipsByEntityId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByEntityId` exist. */ - orgMembershipsByEntityIdExist?: boolean; - /** Filter by the object’s `orgMembershipDefaultByEntityId` relation. */ - orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter; - /** A related `orgMembershipDefaultByEntityId` exists. */ - orgMembershipDefaultByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */ - orgMembershipSettingByEntityId?: OrgMembershipSettingFilter; - /** A related `orgMembershipSettingByEntityId` exists. */ - orgMembershipSettingByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembersByActorId` relation. */ - orgMembersByActorId?: UserToManyOrgMemberFilter; - /** `orgMembersByActorId` exist. */ - orgMembersByActorIdExist?: boolean; - /** Filter by the object’s `orgMembersByEntityId` relation. */ - orgMembersByEntityId?: UserToManyOrgMemberFilter; - /** `orgMembersByEntityId` exist. */ - orgMembersByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ - orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByActorId` exist. */ - orgAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ - orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByEntityId` exist. */ - orgAdminGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByGrantorId` relation. */ - orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByGrantorId` exist. */ - orgAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ - orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByActorId` exist. */ - orgOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ - orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByEntityId` exist. */ - orgOwnerGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByGrantorId` relation. */ - orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByGrantorId` exist. */ - orgOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByActorId` relation. */ - orgMemberProfilesByActorId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByActorId` exist. */ - orgMemberProfilesByActorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByEntityId` relation. */ - orgMemberProfilesByEntityId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByEntityId` exist. */ - orgMemberProfilesByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByActorId` relation. */ - orgGrantsByActorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByActorId` exist. */ - orgGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgGrantsByEntityId` relation. */ - orgGrantsByEntityId?: UserToManyOrgGrantFilter; - /** `orgGrantsByEntityId` exist. */ - orgGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByGrantorId` relation. */ - orgGrantsByGrantorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByGrantorId` exist. */ - orgGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `parentOrgChartEdges` relation. */ - parentOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `parentOrgChartEdges` exist. */ - parentOrgChartEdgesExist?: boolean; - /** Filter by the object’s `orgChartEdgesByEntityId` relation. */ - orgChartEdgesByEntityId?: UserToManyOrgChartEdgeFilter; - /** `orgChartEdgesByEntityId` exist. */ - orgChartEdgesByEntityIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdges` relation. */ - childOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `childOrgChartEdges` exist. */ - childOrgChartEdgesExist?: boolean; - /** Filter by the object’s `parentOrgChartEdgeGrants` relation. */ - parentOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `parentOrgChartEdgeGrants` exist. */ - parentOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByEntityId` relation. */ - orgChartEdgeGrantsByEntityId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByEntityId` exist. */ - orgChartEdgeGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation. */ - orgChartEdgeGrantsByGrantorId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByGrantorId` exist. */ - orgChartEdgeGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdgeGrants` relation. */ - childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `childOrgChartEdgeGrants` exist. */ - childOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ - orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; - /** `orgPermissionDefaultsByEntityId` exist. */ - orgPermissionDefaultsByEntityIdExist?: boolean; - /** Filter by the object’s `appLimitsByActorId` relation. */ - appLimitsByActorId?: UserToManyAppLimitFilter; - /** `appLimitsByActorId` exist. */ - appLimitsByActorIdExist?: boolean; - /** Filter by the object’s `appLimitCreditsByActorId` relation. */ - appLimitCreditsByActorId?: UserToManyAppLimitCreditFilter; - /** `appLimitCreditsByActorId` exist. */ - appLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByActorId` relation. */ - orgLimitsByActorId?: UserToManyOrgLimitFilter; - /** `orgLimitsByActorId` exist. */ - orgLimitsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByEntityId` relation. */ - orgLimitsByEntityId?: UserToManyOrgLimitFilter; - /** `orgLimitsByEntityId` exist. */ - orgLimitsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByActorId` relation. */ - orgLimitCreditsByActorId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByActorId` exist. */ - orgLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByEntityId` relation. */ - orgLimitCreditsByEntityId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByEntityId` exist. */ - orgLimitCreditsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ - orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; - /** `orgLimitAggregatesByEntityId` exist. */ - orgLimitAggregatesByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitWarningsByEntityId` relation. */ - orgLimitWarningsByEntityId?: UserToManyOrgLimitWarningFilter; - /** `orgLimitWarningsByEntityId` exist. */ - orgLimitWarningsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedEmails` relation. */ - ownedEmails?: UserToManyEmailFilter; - /** `ownedEmails` exist. */ - ownedEmailsExist?: boolean; - /** Filter by the object’s `ownedPhoneNumbers` relation. */ - ownedPhoneNumbers?: UserToManyPhoneNumberFilter; - /** `ownedPhoneNumbers` exist. */ - ownedPhoneNumbersExist?: boolean; - /** Filter by the object’s `ownedCryptoAddresses` relation. */ - ownedCryptoAddresses?: UserToManyCryptoAddressFilter; - /** `ownedCryptoAddresses` exist. */ - ownedCryptoAddressesExist?: boolean; - /** Filter by the object’s `ownedWebauthnCredentials` relation. */ - ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `ownedWebauthnCredentials` exist. */ - ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `appInvitesBySenderId` relation. */ - appInvitesBySenderId?: UserToManyAppInviteFilter; - /** `appInvitesBySenderId` exist. */ - appInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesByReceiverId` relation. */ - appClaimedInvitesByReceiverId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesByReceiverId` exist. */ - appClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesBySenderId` relation. */ - appClaimedInvitesBySenderId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesBySenderId` exist. */ - appClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgInvitesByEntityId` relation. */ - orgInvitesByEntityId?: UserToManyOrgInviteFilter; - /** `orgInvitesByEntityId` exist. */ - orgInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgInvitesByReceiverId` relation. */ - orgInvitesByReceiverId?: UserToManyOrgInviteFilter; - /** `orgInvitesByReceiverId` exist. */ - orgInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgInvitesBySenderId` relation. */ - orgInvitesBySenderId?: UserToManyOrgInviteFilter; - /** `orgInvitesBySenderId` exist. */ - orgInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ - orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByEntityId` exist. */ - orgClaimedInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ - orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByReceiverId` exist. */ - orgClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesBySenderId` relation. */ - orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesBySenderId` exist. */ - orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogAuthsByActorId` relation. */ - auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; - /** `auditLogAuthsByActorId` exist. */ - auditLogAuthsByActorIdExist?: boolean; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface RlsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `authenticateSchemaId` field. */ - authenticateSchemaId?: UUIDFilter; - /** Filter by the object’s `roleSchemaId` field. */ - roleSchemaId?: UUIDFilter; - /** Filter by the object’s `authenticateFunctionId` field. */ - authenticateFunctionId?: UUIDFilter; - /** Filter by the object’s `authenticateStrictFunctionId` field. */ - authenticateStrictFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleFunctionId` field. */ - currentRoleFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleIdFunctionId` field. */ - currentRoleIdFunctionId?: UUIDFilter; - /** Filter by the object’s `currentUserAgentFunctionId` field. */ - currentUserAgentFunctionId?: UUIDFilter; - /** Filter by the object’s `currentIpAddressFunctionId` field. */ - currentIpAddressFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RlsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsSettingFilter[]; - /** Negates the expression. */ - not?: RlsSettingFilter; - /** Filter by the object’s `authenticateFunction` relation. */ - authenticateFunction?: FunctionFilter; - /** A related `authenticateFunction` exists. */ - authenticateFunctionExists?: boolean; - /** Filter by the object’s `authenticateSchema` relation. */ - authenticateSchema?: SchemaFilter; - /** A related `authenticateSchema` exists. */ - authenticateSchemaExists?: boolean; - /** Filter by the object’s `authenticateStrictFunction` relation. */ - authenticateStrictFunction?: FunctionFilter; - /** A related `authenticateStrictFunction` exists. */ - authenticateStrictFunctionExists?: boolean; - /** Filter by the object’s `currentIpAddressFunction` relation. */ - currentIpAddressFunction?: FunctionFilter; - /** A related `currentIpAddressFunction` exists. */ - currentIpAddressFunctionExists?: boolean; - /** Filter by the object’s `currentRoleFunction` relation. */ - currentRoleFunction?: FunctionFilter; - /** A related `currentRoleFunction` exists. */ - currentRoleFunctionExists?: boolean; - /** Filter by the object’s `currentRoleIdFunction` relation. */ - currentRoleIdFunction?: FunctionFilter; - /** A related `currentRoleIdFunction` exists. */ - currentRoleIdFunctionExists?: boolean; - /** Filter by the object’s `currentUserAgentFunction` relation. */ - currentUserAgentFunction?: FunctionFilter; - /** A related `currentUserAgentFunction` exists. */ - currentUserAgentFunctionExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `roleSchema` relation. */ - roleSchema?: SchemaFilter; - /** A related `roleSchema` exists. */ - roleSchemaExists?: boolean; -} -/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ -export interface PubkeySettingFilter { - /** 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 `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `signUpWithKeyFunctionId` field. */ - signUpWithKeyFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ - signInRequestChallengeFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRecordFailureFunctionId` field. */ - signInRecordFailureFunctionId?: UUIDFilter; - /** Filter by the object’s `signInWithChallengeFunctionId` field. */ - signInWithChallengeFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PubkeySettingFilter[]; - /** Checks for any expressions in this list. */ - or?: PubkeySettingFilter[]; - /** Negates the expression. */ - not?: PubkeySettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `signInRecordFailureFunction` relation. */ - signInRecordFailureFunction?: FunctionFilter; - /** A related `signInRecordFailureFunction` exists. */ - signInRecordFailureFunctionExists?: boolean; - /** Filter by the object’s `signInRequestChallengeFunction` relation. */ - signInRequestChallengeFunction?: FunctionFilter; - /** A related `signInRequestChallengeFunction` exists. */ - signInRequestChallengeFunctionExists?: boolean; - /** Filter by the object’s `signInWithChallengeFunction` relation. */ - signInWithChallengeFunction?: FunctionFilter; - /** A related `signInWithChallengeFunction` exists. */ - signInWithChallengeFunctionExists?: boolean; - /** Filter by the object’s `signUpWithKeyFunction` relation. */ - signUpWithKeyFunction?: FunctionFilter; - /** A related `signUpWithKeyFunction` exists. */ - signUpWithKeyFunctionExists?: boolean; -} -/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnSettingFilter { - /** 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 `credentialsSchemaId` field. */ - credentialsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionsSchemaId` field. */ - sessionsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsSchemaId` field. */ - sessionSecretsSchemaId?: 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 `userFieldId` field. */ - userFieldId?: 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 `challengeExpirySeconds` field. */ - challengeExpirySeconds?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnSettingFilter[]; - /** Negates the expression. */ - not?: WebauthnSettingFilter; - /** Filter by the object’s `credentialsSchema` relation. */ - credentialsSchema?: SchemaFilter; - /** A related `credentialsSchema` exists. */ - credentialsSchemaExists?: boolean; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** A related `credentialsTable` exists. */ - credentialsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** A related `sessionCredentialsTable` exists. */ - sessionCredentialsTableExists?: boolean; - /** Filter by the object’s `sessionSecretsSchema` relation. */ - sessionSecretsSchema?: SchemaFilter; - /** A related `sessionSecretsSchema` exists. */ - sessionSecretsSchemaExists?: boolean; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** A related `sessionSecretsTable` exists. */ - sessionSecretsTableExists?: boolean; - /** Filter by the object’s `sessionsSchema` relation. */ - sessionsSchema?: SchemaFilter; - /** A related `sessionsSchema` exists. */ - sessionsSchemaExists?: boolean; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** A related `sessionsTable` exists. */ - sessionsTableExists?: boolean; - /** Filter by the object’s `userField` relation. */ - userField?: FieldFilter; - /** A related `userField` exists. */ - userFieldExists?: boolean; -} -/** 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. */ - 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; - /** Checks for all expressions in this list. */ - and?: RlsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsModuleFilter[]; - /** Negates the expression. */ - not?: RlsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HierarchyModuleFilter { - /** 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 `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 `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 `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; - /** Filter by the object’s `chartEdgeGrantsTable` relation. */ - chartEdgeGrantsTable?: TableFilter; - /** Filter by the object’s `chartEdgesTable` relation. */ - chartEdgesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** Filter by the object’s `hierarchySprtTable` relation. */ - hierarchySprtTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `RateLimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitsModuleFilter { - /** 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 `rateLimitSettingsTableId` field. */ - rateLimitSettingsTableId?: UUIDFilter; - /** Filter by the object’s `ipRateLimitsTableId` field. */ - ipRateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitsTableId` field. */ - rateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitSettingsTable` field. */ - rateLimitSettingsTable?: StringFilter; - /** Filter by the object’s `ipRateLimitsTable` field. */ - ipRateLimitsTable?: StringFilter; - /** Filter by the object’s `rateLimitsTable` field. */ - rateLimitsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitsModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. */ - ipRateLimitsTableByIpRateLimitsTableId?: TableFilter; - /** Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. */ - rateLimitSettingsTableByRateLimitSettingsTableId?: TableFilter; - /** Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation. */ - rateLimitsTableByRateLimitsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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. */ - 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 `userDevicesTableId` field. */ - userDevicesTableId?: UUIDFilter; - /** Filter by the object’s `deviceSettingsTableId` field. */ - deviceSettingsTableId?: UUIDFilter; - /** Filter by the object’s `userDevicesTable` field. */ - userDevicesTable?: StringFilter; - /** Filter by the object’s `deviceSettingsTable` field. */ - deviceSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DevicesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DevicesModuleFilter[]; - /** Negates the expression. */ - not?: DevicesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. */ - deviceSettingsTableByDeviceSettingsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ - userDevicesTableByUserDevicesTableId?: TableFilter; -} -/** 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 `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 `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `planLimitsTable` relation. */ - planLimitsTable?: TableFilter; - /** Filter by the object’s `planOverridesTable` relation. */ - planOverridesTable?: TableFilter; - /** A related `planOverridesTable` exists. */ - planOverridesTableExists?: boolean; - /** Filter by the object’s `planPricingTable` relation. */ - planPricingTable?: TableFilter; - /** A related `planPricingTable` exists. */ - planPricingTableExists?: boolean; - /** Filter by the object’s `plansTable` relation. */ - plansTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; - /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `meterCreditsTable` relation. */ - meterCreditsTable?: TableFilter; - /** Filter by the object’s `meterSourcesTable` relation. */ - meterSourcesTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; - /** Filter by the object’s `billingCustomersTable` relation. */ - billingCustomersTable?: TableFilter; - /** Filter by the object’s `billingPricesTable` relation. */ - billingPricesTable?: TableFilter; - /** Filter by the object’s `billingProductsTable` relation. */ - billingProductsTable?: TableFilter; - /** Filter by the object’s `billingSubscriptionsTable` relation. */ - billingSubscriptionsTable?: TableFilter; - /** Filter by the object’s `billingWebhookEventsTable` relation. */ - billingWebhookEventsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `pricesTable` relation. */ - pricesTable?: TableFilter; - /** A related `pricesTable` exists. */ - pricesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitMetersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; -} -/** A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ */ -export interface InternetAddressFilter { - /** 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 internet address. */ - contains?: string; - /** Contains or equal to the specified internet address. */ - containsOrEqualTo?: string; - /** Contained by the specified internet address. */ - containedBy?: string; - /** Contained by or equal to the specified internet address. */ - containedByOrEqualTo?: string; - /** Contains or contained by the specified internet address. */ - containsOrContainedBy?: string; -} -/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ -export interface FullTextFilter { - /** 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[]; - /** Performs a full text search on the field. */ - matches?: string; -} -/** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A connection to a list of `AppPermission` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - nodes?: { - select: AppPermissionSelect; - }; - edges?: { - select: AppPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - nodes?: { - select: OrgPermissionSelect; - }; - edges?: { - select: OrgPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface SendAccountDeletionEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendAccountDeletionEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SignOutPayload { - clientMutationId?: string | null; -} -export type SignOutPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AcceptDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type AcceptDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CancelDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type CancelDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RejectDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RejectDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface DisconnectAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type DisconnectAccountPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RevokeApiKeyPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RevokeApiKeyPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RevokeSessionPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RevokeSessionPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyTotpPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyTotpPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitAppInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitAppInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitOrgInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitOrgInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CheckPasswordPayload { - clientMutationId?: string | null; -} -export type CheckPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ConfirmDeleteAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type ConfirmDeleteAccountPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SetPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ConstructBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ConstructBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionNewUserPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionNewUserPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ResetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type ResetPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionCheckConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionIndexPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CopyTemplateToBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CopyTemplateToBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} -export type BootstrapUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; -}; -export interface SignUpPayload { - clientMutationId?: string | null; - result?: SignUpRecord | null; -} -export type SignUpPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignUpRecordSelect; - }; -}; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export type ProvisionRelationPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionRelationRecordSelect; - }; -}; -export interface SetFieldOrderPayload { - clientMutationId?: string | null; -} -export type SetFieldOrderPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ApplyRlsPayload { - clientMutationId?: string | null; -} -export type ApplyRlsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export type ProvisionDatabaseWithUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionDatabaseWithUserRecordSelect; - }; -}; -export interface CreateUserDatabasePayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateUserDatabasePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ExtendTokenExpiresPayload { - clientMutationId?: string | null; - result?: ExtendTokenExpiresRecord[] | null; -} -export type ExtendTokenExpiresPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ExtendTokenExpiresRecordSelect; - }; -}; -export interface CreateApiKeyPayload { - clientMutationId?: string | null; - result?: CreateApiKeyRecord | null; -} -export type CreateApiKeyPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: CreateApiKeyRecordSelect; - }; -}; -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RequestCrossOriginTokenPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; -} -export type ProvisionTablePayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; -}; -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendVerificationEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: 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 CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type CreateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type UpdateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type DeleteAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface CreateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was created by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type CreateDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface UpdateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was updated by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type UpdateDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface DeleteDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was deleted by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type DeleteDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface CreateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was created by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type CreateSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was updated by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type UpdateSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was deleted by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type DeleteSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface CreateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was created by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type CreateTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface UpdateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was updated by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type UpdateTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface DeleteTablePayload { - clientMutationId?: string | null; - /** The `Table` that was deleted by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type DeleteTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface CreateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was created by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type CreateCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface UpdateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was updated by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type UpdateCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface DeleteCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was deleted by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type DeleteCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface CreateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was created by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type CreateFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface UpdateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was updated by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type UpdateFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface DeleteFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was deleted by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type DeleteFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface CreateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was created by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type CreateSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface UpdateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was updated by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type UpdateSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface DeleteSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was deleted by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type DeleteSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface CreateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was created by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type CreateForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface UpdateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was updated by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type UpdateForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface DeleteForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was deleted by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type DeleteForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface CreateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was created by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type CreateFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface UpdateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was updated by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type UpdateFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface DeleteFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was deleted by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type DeleteFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface CreateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was created by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type CreateIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface UpdateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was updated by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type UpdateIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface DeleteIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was deleted by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type DeleteIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface CreatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was created by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type CreatePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface UpdatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was updated by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type UpdatePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface DeletePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was deleted by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type DeletePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface CreatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was created by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type CreatePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface UpdatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was updated by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type UpdatePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface DeletePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type DeletePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface CreateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was created by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type CreateTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface UpdateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was updated by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type UpdateTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface DeleteTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was deleted by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type DeleteTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface CreateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was created by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type CreateTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface UpdateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was updated by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type UpdateTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface DeleteTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was deleted by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type DeleteTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface CreateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was created by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type CreateUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface UpdateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was updated by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type UpdateUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface DeleteUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was deleted by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type DeleteUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface CreateViewPayload { - clientMutationId?: string | null; - /** The `View` that was created by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type CreateViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface UpdateViewPayload { - clientMutationId?: string | null; - /** The `View` that was updated by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type UpdateViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface DeleteViewPayload { - clientMutationId?: string | null; - /** The `View` that was deleted by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type DeleteViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface CreateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was created by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type CreateViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface UpdateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was updated by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type UpdateViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface DeleteViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was deleted by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type DeleteViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface CreateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was created by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type CreateViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface UpdateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was updated by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type UpdateViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface DeleteViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was deleted by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type DeleteViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface CreateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was created by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type CreateViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface UpdateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was updated by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type UpdateViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface DeleteViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was deleted by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type DeleteViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface CreateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was created by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type CreateEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface UpdateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was updated by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type UpdateEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface DeleteEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was deleted by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type DeleteEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type CreateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type UpdateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type DeleteSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -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 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 CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type CreateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type UpdateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface DeleteIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type DeleteIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -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 CreateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type CreateConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type UpdateConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type DeleteConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface CreateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was created by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type CreateSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface UpdateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was updated by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type UpdateSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface DeleteSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was deleted by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type DeleteSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface CreateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was created by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type CreateDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface UpdateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was updated by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type UpdateDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface DeleteDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was deleted by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type DeleteDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface CreateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was created by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type CreateEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface UpdateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was updated by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type UpdateEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface DeleteEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was deleted by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type DeleteEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface CreateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was created by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type CreateFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface UpdateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was updated by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type UpdateFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface DeleteFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was deleted by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type DeleteFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface CreateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was created by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type CreateApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface UpdateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was updated by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type UpdateApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface DeleteApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was deleted by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type DeleteApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface CreateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was created by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type CreateApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was updated by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type UpdateApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was deleted by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type DeleteApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface CreateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was created by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type CreateDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface UpdateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was updated by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type UpdateDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface DeleteDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was deleted by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type DeleteDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface CreateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was created by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type CreateSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface UpdateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was updated by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type UpdateSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface DeleteSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was deleted by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type DeleteSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was created by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type CreateSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was updated by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type UpdateSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was deleted by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type DeleteSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type CreateSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type UpdateSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type DeleteSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface CreateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was created by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type CreateCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface UpdateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was updated by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type UpdateCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface DeleteCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was deleted by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type DeleteCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface CreateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was created by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type CreateMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -export interface UpdateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was updated by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type UpdateMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -export interface DeleteMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was deleted by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type DeleteMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -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 DeleteGraphModulePayloadSelect = { - clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; - }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; - }; -}; -export interface CreateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was created by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type CreateTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface UpdateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was updated by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type UpdateTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface DeleteTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was deleted by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type DeleteTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface CreatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was created by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type CreatePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface UpdatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was updated by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type UpdatePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface DeletePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was deleted by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type DeletePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface CreateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was created by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type CreateDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface UpdateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was updated by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type UpdateDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface DeleteDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was deleted by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type DeleteDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface CreateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was created by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type CreateApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface UpdateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was updated by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type UpdateApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface DeleteApiPayload { - clientMutationId?: string | null; - /** The `Api` that was deleted by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type DeleteApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface CreateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was created by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type CreateSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface UpdateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was updated by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type UpdateSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface DeleteSitePayload { - clientMutationId?: string | null; - /** The `Site` that was deleted by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type DeleteSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface CreateAppPayload { - clientMutationId?: string | null; - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type CreateAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface UpdateAppPayload { - clientMutationId?: string | null; - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type UpdateAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface DeleteAppPayload { - clientMutationId?: string | null; - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type DeleteAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface CreateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was created by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type CreateApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface UpdateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was updated by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type UpdateApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface DeleteApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was deleted by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type DeleteApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface CreateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was created by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type CreateConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface UpdateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was updated by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type UpdateConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface DeleteConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was deleted by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type DeleteConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface CreateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was created by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type CreateCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface UpdateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was updated by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type UpdateCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type DeleteCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface CreateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was created by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type CreateCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface UpdateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was updated by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type UpdateCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was deleted by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type DeleteCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface CreateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was created by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type CreateDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface UpdateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was updated by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type UpdateDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface DeleteDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was deleted by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type DeleteDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface CreateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was created by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type CreateDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface UpdateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was updated by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type UpdateDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface DeleteDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was deleted by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type DeleteDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface CreateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was created by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type CreateEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface UpdateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was updated by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type UpdateEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface DeleteEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was deleted by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type DeleteEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type CreateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type UpdateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type DeleteConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type CreateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type UpdateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type DeleteInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface CreateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was created by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type CreateEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface UpdateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was updated by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type UpdateEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface DeleteEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was deleted by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type DeleteEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface CreateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type CreateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface UpdateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was updated by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type UpdateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface DeleteLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was deleted by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type DeleteLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was created by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type CreateMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -export interface UpdateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was updated by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type UpdateMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -export interface DeleteMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was deleted by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type DeleteMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -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 CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type CreatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type UpdatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type DeletePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface CreatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was created by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type CreatePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface UpdatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was updated by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type UpdatePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface DeletePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was deleted by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type DeletePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface CreateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was created by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type CreateProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface UpdateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was updated by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type UpdateProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface DeleteProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was deleted by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type DeleteProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface CreateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was created by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type CreateUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface UpdateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was updated by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type UpdateUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface DeleteUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was deleted by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type DeleteUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface CreateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type CreateSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface UpdateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type UpdateSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface DeleteSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type DeleteSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface CreateUserAuthModulePayload { - clientMutationId?: string | null; - /** The `UserAuthModule` that was created by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export type CreateUserAuthModulePayloadSelect = { - clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; - }; - 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 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 UpdateUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was updated by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export type UpdateUsersModulePayloadSelect = { - clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; - }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; - }; -}; -export interface DeleteUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was deleted by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export type DeleteUsersModulePayloadSelect = { - clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; - }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; - }; -}; -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; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface UpdateBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was updated by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export type UpdateBlueprintPayloadSelect = { - clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface DeleteBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was deleted by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export type DeleteBlueprintPayloadSelect = { - clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface CreateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type CreateBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface UpdateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type UpdateBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface DeleteBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type DeleteBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface CreateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was created by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type CreateBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface UpdateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was updated by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type UpdateBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface DeleteBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was deleted by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type DeleteBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface CreateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was created by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type CreateStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface UpdateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was updated by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type UpdateStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface DeleteStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was deleted by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type DeleteStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type CreateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type UpdateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type DeleteEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface CreateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was created by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type CreateWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface UpdateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was updated by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type UpdateWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface DeleteWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type DeleteWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface CreateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type CreateWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface UpdateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type UpdateWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface DeleteWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type DeleteWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface CreateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type CreateNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface UpdateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type UpdateNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface DeleteNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type DeleteNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface CreateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was created by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type CreateInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface UpdateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was updated by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type UpdateInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface DeleteInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was deleted by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type DeleteInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface CreateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was created by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type CreateComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface UpdateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was updated by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type UpdateComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface DeleteComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was deleted by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type DeleteComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface CreateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was created by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type CreateTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface UpdateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was updated by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type UpdateTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface DeleteTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was deleted by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type DeleteTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface CreateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was created by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type CreateStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface UpdateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was updated by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type UpdateStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface DeleteStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was deleted by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type DeleteStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface CreateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type CreateDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface UpdateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type UpdateDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface DeleteDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type DeleteDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface CreateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was created by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type CreateAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -export interface UpdateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was updated by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type UpdateAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -export interface DeleteAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was deleted by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type DeleteAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -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 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 CreateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type CreateDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface UpdateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type UpdateDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface DeleteDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type DeleteDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type CreateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type UpdateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type DeleteAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type CreateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type UpdateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface CreateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type CreateAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface UpdateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type UpdateAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface DeleteAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type DeleteAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was created by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type CreateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was updated by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type UpdateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was deleted by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type DeleteOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was created by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type CreateOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface UpdateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was updated by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type UpdateOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface DeleteOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was deleted by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type DeleteOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type CreateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type UpdateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type DeleteOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface CreateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was created by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type CreateOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was updated by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type UpdateOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type DeleteOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type DeleteOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type CreateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type CreateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type UpdateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type DeleteAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type CreateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type UpdateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type DeleteAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type CreateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type UpdateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type DeleteAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type CreateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type UpdateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type DeleteOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface CreateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type CreateOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface UpdateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type UpdateOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface DeleteOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type DeleteOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface CreateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type CreateOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type UpdateOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type DeleteOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface CreatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was created by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type CreatePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface UpdatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was updated by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type UpdatePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type DeletePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was created by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type CreateWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface UpdateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was updated by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type UpdateWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface DeleteWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was deleted by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type DeleteWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type CreateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type UpdateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type DeleteAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface CreateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type CreateAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface UpdateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type UpdateAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface DeleteAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type DeleteAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface CreateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was created by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type CreateOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface UpdateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type UpdateOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface DeleteOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type DeleteOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface CreateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was created by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type CreateOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface UpdateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was updated by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type UpdateOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface DeleteOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was deleted by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type DeleteOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface CreateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was created by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type CreateAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface UpdateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was updated by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type UpdateAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface DeleteAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was deleted by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type DeleteAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface CreateIdentityProviderPayload { - clientMutationId?: string | null; - /** The `IdentityProvider` that was created by this mutation. */ - identityProvider?: IdentityProvider | null; -} -export type CreateIdentityProviderPayloadSelect = { - clientMutationId?: boolean; - identityProvider?: { - select: IdentityProviderSelect; - }; -}; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; - }; -}; -export interface CreateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type CreateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface UpdateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type UpdateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface DeleteDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type DeleteDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type CreateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type UpdateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type CreateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type UpdateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface DeleteNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type DeleteNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface CreateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type CreateAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface UpdateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type UpdateAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type DeleteAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface CreateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type CreateOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface UpdateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type UpdateOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type DeleteOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type CreateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type UpdateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type DeleteAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface CreateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type CreateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type UpdateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type DeleteOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type CreateAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type UpdateAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type DeleteAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type CreateOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type UpdateOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type DeleteOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type CreateAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type UpdateAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type DeleteAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface CreateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type CreateAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface UpdateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type UpdateAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface DeleteAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type DeleteAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface CreatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was created by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type CreatePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface UpdatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was updated by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type UpdatePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface DeletePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was deleted by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type DeletePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface CreateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type CreateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface CreateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was created by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type CreateRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface UpdateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was updated by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type UpdateRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface DeleteRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was deleted by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type DeleteRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface CreateRlsModulePayload { - clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export type CreateRlsModulePayloadSelect = { - clientMutationId?: boolean; - 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 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 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 CreateSqlActionPayload { - clientMutationId?: string | null; - /** The `SqlAction` that was created by this mutation. */ - sqlAction?: SqlAction | null; -} -export type CreateSqlActionPayloadSelect = { - clientMutationId?: boolean; - sqlAction?: { - select: SqlActionSelect; - }; -}; -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type CreateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type UpdateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type DeleteDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type DeleteOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type UpdateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type DeleteAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type UpdateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type DeleteOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface CreateUserPayload { - clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type CreateUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -export interface UpdateUserPayload { - clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type UpdateUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -export interface DeleteUserPayload { - clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type DeleteUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -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. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type CreateWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface UpdateWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was updated by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type UpdateWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface DeleteWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was deleted by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type DeleteWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface CreateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type CreateBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface UpdateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type UpdateBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface DeleteBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type DeleteBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface CreateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type CreateBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface UpdateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type UpdateBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface DeleteBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type DeleteBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface CreateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was created by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type CreateHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -export interface UpdateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was updated by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type UpdateHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -export interface DeleteHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was deleted by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type DeleteHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} -export type AppPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionSelect; - }; -}; -/** 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; -} -export type PageInfoSelect = { - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; - endCursor?: boolean; -}; -/** A `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { - cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; -} -export type OrgPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionSelect; - }; -}; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface 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 interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignUpRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} -export type SignInRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; - mfaRequired?: boolean; - mfaChallengeToken?: boolean; -}; -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export type ProvisionRelationRecordSelect = { - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface ExtendTokenExpiresRecord { - id?: string | null; - sessionId?: string | null; - expiresAt?: string | null; -} -export type ExtendTokenExpiresRecordSelect = { - id?: boolean; - sessionId?: boolean; - expiresAt?: boolean; -}; -export interface CreateApiKeyRecord { - apiKey?: string | null; - keyId?: string | null; - expiresAt?: string | null; -} -export type CreateApiKeyRecordSelect = { - apiKey?: boolean; - keyId?: boolean; - expiresAt?: boolean; -}; -export interface ProvisionTableRecord { - outTableId?: string | null; - outFields?: string[] | null; -} -export type ProvisionTableRecordSelect = { - outTableId?: boolean; - outFields?: boolean; -}; -/** A `Database` edge in the connection. */ -export interface DatabaseEdge { - cursor?: string | null; - /** The `Database` at the end of the edge. */ - node?: Database | null; -} -export type DatabaseEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSelect; - }; -}; -/** A `Schema` edge in the connection. */ -export interface SchemaEdge { - cursor?: string | null; - /** The `Schema` at the end of the edge. */ - node?: Schema | null; -} -export type SchemaEdgeSelect = { - cursor?: boolean; - node?: { - select: SchemaSelect; - }; -}; -/** A `Table` edge in the connection. */ -export interface TableEdge { - cursor?: string | null; - /** The `Table` at the end of the edge. */ - node?: Table | null; -} -export type TableEdgeSelect = { - cursor?: boolean; - node?: { - select: TableSelect; - }; -}; -/** A `CheckConstraint` edge in the connection. */ -export interface CheckConstraintEdge { - cursor?: string | null; - /** The `CheckConstraint` at the end of the edge. */ - node?: CheckConstraint | null; -} -export type CheckConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: CheckConstraintSelect; - }; -}; -/** A `Field` edge in the connection. */ -export interface FieldEdge { - cursor?: string | null; - /** The `Field` at the end of the edge. */ - node?: Field | null; -} -export type FieldEdgeSelect = { - cursor?: boolean; - node?: { - select: FieldSelect; - }; -}; -/** A `SpatialRelation` edge in the connection. */ -export interface SpatialRelationEdge { - cursor?: string | null; - /** The `SpatialRelation` at the end of the edge. */ - node?: SpatialRelation | null; -} -export type SpatialRelationEdgeSelect = { - cursor?: boolean; - node?: { - select: SpatialRelationSelect; - }; -}; -/** A `ForeignKeyConstraint` edge in the connection. */ -export interface ForeignKeyConstraintEdge { - cursor?: string | null; - /** The `ForeignKeyConstraint` at the end of the edge. */ - node?: ForeignKeyConstraint | null; -} -export type ForeignKeyConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: ForeignKeyConstraintSelect; - }; -}; -/** A `FullTextSearch` edge in the connection. */ -export interface FullTextSearchEdge { - cursor?: string | null; - /** The `FullTextSearch` at the end of the edge. */ - node?: FullTextSearch | null; -} -export type FullTextSearchEdgeSelect = { - cursor?: boolean; - node?: { - select: FullTextSearchSelect; - }; -}; -/** A `Index` edge in the connection. */ -export interface IndexEdge { - cursor?: string | null; - /** The `Index` at the end of the edge. */ - node?: Index | null; -} -export type IndexEdgeSelect = { - cursor?: boolean; - node?: { - select: IndexSelect; - }; -}; -/** A `Policy` edge in the connection. */ -export interface PolicyEdge { - cursor?: string | null; - /** The `Policy` at the end of the edge. */ - node?: Policy | null; -} -export type PolicyEdgeSelect = { - cursor?: boolean; - node?: { - select: PolicySelect; - }; -}; -/** A `PrimaryKeyConstraint` edge in the connection. */ -export interface PrimaryKeyConstraintEdge { - cursor?: string | null; - /** The `PrimaryKeyConstraint` at the end of the edge. */ - node?: PrimaryKeyConstraint | null; -} -export type PrimaryKeyConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: PrimaryKeyConstraintSelect; - }; -}; -/** A `TableGrant` edge in the connection. */ -export interface TableGrantEdge { - cursor?: string | null; - /** The `TableGrant` at the end of the edge. */ - node?: TableGrant | null; -} -export type TableGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: TableGrantSelect; - }; -}; -/** A `Trigger` edge in the connection. */ -export interface TriggerEdge { - cursor?: string | null; - /** The `Trigger` at the end of the edge. */ - node?: Trigger | null; -} -export type TriggerEdgeSelect = { - cursor?: boolean; - node?: { - select: TriggerSelect; - }; -}; -/** A `UniqueConstraint` edge in the connection. */ -export interface UniqueConstraintEdge { - cursor?: string | null; - /** The `UniqueConstraint` at the end of the edge. */ - node?: UniqueConstraint | null; -} -export type UniqueConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: UniqueConstraintSelect; - }; -}; -/** A `View` edge in the connection. */ -export interface ViewEdge { - cursor?: string | null; - /** The `View` at the end of the edge. */ - node?: View | null; -} -export type ViewEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewSelect; - }; -}; -/** A `ViewTable` edge in the connection. */ -export interface ViewTableEdge { - cursor?: string | null; - /** The `ViewTable` at the end of the edge. */ - node?: ViewTable | null; -} -export type ViewTableEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewTableSelect; - }; -}; -/** A `ViewGrant` edge in the connection. */ -export interface ViewGrantEdge { - cursor?: string | null; - /** The `ViewGrant` at the end of the edge. */ - node?: ViewGrant | null; -} -export type ViewGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewGrantSelect; - }; -}; -/** A `ViewRule` edge in the connection. */ -export interface ViewRuleEdge { - cursor?: string | null; - /** The `ViewRule` at the end of the edge. */ - node?: ViewRule | null; -} -export type ViewRuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewRuleSelect; - }; -}; -/** A `EmbeddingChunk` edge in the connection. */ -export interface EmbeddingChunkEdge { - cursor?: string | null; - /** The `EmbeddingChunk` at the end of the edge. */ - node?: EmbeddingChunk | null; -} -export type EmbeddingChunkEdgeSelect = { - cursor?: boolean; - node?: { - select: EmbeddingChunkSelect; - }; -}; -/** 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 `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 `SessionSecretsModule` edge in the connection. */ -export interface SessionSecretsModuleEdge { - cursor?: string | null; - /** The `SessionSecretsModule` at the end of the edge. */ - node?: SessionSecretsModule | null; -} -export type SessionSecretsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SessionSecretsModuleSelect; - }; -}; -/** 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 `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: RealtimeModuleSelect; - }; -}; -/** A `ConfigSecretsOrgModule` edge in the connection. */ -export interface ConfigSecretsOrgModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsOrgModule` at the end of the edge. */ - node?: ConfigSecretsOrgModule | null; -} -export type ConfigSecretsOrgModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConfigSecretsOrgModuleSelect; - }; -}; -/** A `SchemaGrant` edge in the connection. */ -export interface SchemaGrantEdge { - cursor?: string | null; - /** The `SchemaGrant` at the end of the edge. */ - node?: SchemaGrant | null; -} -export type SchemaGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: SchemaGrantSelect; - }; -}; -/** A `DefaultPrivilege` edge in the connection. */ -export interface DefaultPrivilegeEdge { - cursor?: string | null; - /** The `DefaultPrivilege` at the end of the edge. */ - node?: DefaultPrivilege | null; -} -export type DefaultPrivilegeEdgeSelect = { - cursor?: boolean; - node?: { - select: DefaultPrivilegeSelect; - }; -}; -/** A `Enum` edge in the connection. */ -export interface EnumEdge { - cursor?: string | null; - /** The `Enum` at the end of the edge. */ - node?: Enum | null; -} -export type EnumEdgeSelect = { - cursor?: boolean; - node?: { - select: EnumSelect; - }; -}; -/** A `Function` edge in the connection. */ -export interface FunctionEdge { - cursor?: string | null; - /** The `Function` at the end of the edge. */ - node?: Function | null; -} -export type FunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionSelect; - }; -}; -/** A `ApiSchema` edge in the connection. */ -export interface ApiSchemaEdge { - cursor?: string | null; - /** The `ApiSchema` at the end of the edge. */ - node?: ApiSchema | null; -} -export type ApiSchemaEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSchemaSelect; - }; -}; -/** A `ApiModule` edge in the connection. */ -export interface ApiModuleEdge { - cursor?: string | null; - /** The `ApiModule` at the end of the edge. */ - node?: ApiModule | null; -} -export type ApiModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiModuleSelect; - }; -}; -/** A `Domain` edge in the connection. */ -export interface DomainEdge { - cursor?: string | null; - /** The `Domain` at the end of the edge. */ - node?: Domain | null; -} -export type DomainEdgeSelect = { - cursor?: boolean; - node?: { - select: DomainSelect; - }; -}; -/** A `SiteMetadatum` edge in the connection. */ -export interface SiteMetadatumEdge { - cursor?: string | null; - /** The `SiteMetadatum` at the end of the edge. */ - node?: SiteMetadatum | null; -} -export type SiteMetadatumEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteMetadatumSelect; - }; -}; -/** A `SiteModule` edge in the connection. */ -export interface SiteModuleEdge { - cursor?: string | null; - /** The `SiteModule` at the end of the edge. */ - node?: SiteModule | null; -} -export type SiteModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteModuleSelect; - }; -}; -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} -export type SiteThemeEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteThemeSelect; - }; -}; -/** A `CorsSetting` edge in the connection. */ -export interface CorsSettingEdge { - cursor?: string | null; - /** The `CorsSetting` at the end of the edge. */ - node?: CorsSetting | null; -} -export type CorsSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: CorsSettingSelect; - }; -}; -/** 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 `GraphModule` edge in the connection. */ -export interface GraphModuleEdge { - cursor?: string | null; - /** The `GraphModule` at the end of the edge. */ - node?: GraphModule | null; -} -export type GraphModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: GraphModuleSelect; - }; -}; -/** A `TriggerFunction` edge in the connection. */ -export interface TriggerFunctionEdge { - cursor?: string | null; - /** The `TriggerFunction` at the end of the edge. */ - node?: TriggerFunction | null; -} -export type TriggerFunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: TriggerFunctionSelect; - }; -}; -/** A `Partition` edge in the connection. */ -export interface PartitionEdge { - cursor?: string | null; - /** The `Partition` at the end of the edge. */ - node?: Partition | null; -} -export type PartitionEdgeSelect = { - cursor?: boolean; - node?: { - select: PartitionSelect; - }; -}; -/** A `DatabaseTransfer` edge in the connection. */ -export interface DatabaseTransferEdge { - cursor?: string | null; - /** The `DatabaseTransfer` at the end of the edge. */ - node?: DatabaseTransfer | null; -} -export type DatabaseTransferEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseTransferSelect; - }; -}; -/** A `Api` edge in the connection. */ -export interface ApiEdge { - cursor?: string | null; - /** The `Api` at the end of the edge. */ - node?: Api | null; -} -export type ApiEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSelect; - }; -}; -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} -export type SiteEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteSelect; - }; -}; -/** A `App` edge in the connection. */ -export interface AppEdge { - cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; -} -export type AppEdgeSelect = { - cursor?: boolean; - node?: { - select: AppSelect; - }; -}; -/** A `ApiSetting` edge in the connection. */ -export interface ApiSettingEdge { - cursor?: string | null; - /** The `ApiSetting` at the end of the edge. */ - node?: ApiSetting | null; -} -export type ApiSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSettingSelect; - }; -}; -/** A `ConnectedAccountsModule` edge in the connection. */ -export interface ConnectedAccountsModuleEdge { - cursor?: string | null; - /** The `ConnectedAccountsModule` at the end of the edge. */ - node?: ConnectedAccountsModule | null; -} -export type ConnectedAccountsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConnectedAccountsModuleSelect; - }; -}; -/** A `CryptoAddressesModule` edge in the connection. */ -export interface CryptoAddressesModuleEdge { - cursor?: string | null; - /** The `CryptoAddressesModule` at the end of the edge. */ - node?: CryptoAddressesModule | null; -} -export type CryptoAddressesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressesModuleSelect; - }; -}; -/** A `CryptoAuthModule` edge in the connection. */ -export interface CryptoAuthModuleEdge { - cursor?: string | null; - /** The `CryptoAuthModule` at the end of the edge. */ - node?: CryptoAuthModule | null; -} -export type CryptoAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAuthModuleSelect; - }; -}; -/** A `DefaultIdsModule` edge in the connection. */ -export interface DefaultIdsModuleEdge { - cursor?: string | null; - /** The `DefaultIdsModule` at the end of the edge. */ - node?: DefaultIdsModule | null; -} -export type DefaultIdsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DefaultIdsModuleSelect; - }; -}; -/** A `DenormalizedTableField` edge in the connection. */ -export interface DenormalizedTableFieldEdge { - cursor?: string | null; - /** The `DenormalizedTableField` at the end of the edge. */ - node?: DenormalizedTableField | null; -} -export type DenormalizedTableFieldEdgeSelect = { - cursor?: boolean; - node?: { - select: DenormalizedTableFieldSelect; - }; -}; -/** A `EmailsModule` edge in the connection. */ -export interface EmailsModuleEdge { - cursor?: string | null; - /** The `EmailsModule` at the end of the edge. */ - node?: EmailsModule | null; -} -export type EmailsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailsModuleSelect; - }; -}; -/** 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 `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { - cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; -} -export type InvitesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InvitesModuleSelect; - }; -}; -/** A `EventsModule` edge in the connection. */ -export interface EventsModuleEdge { - cursor?: string | null; - /** The `EventsModule` at the end of the edge. */ - node?: EventsModule | null; -} -export type EventsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: EventsModuleSelect; - }; -}; -/** A `LimitsModule` edge in the connection. */ -export interface LimitsModuleEdge { - cursor?: string | null; - /** The `LimitsModule` at the end of the edge. */ - node?: LimitsModule | null; -} -export type LimitsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: LimitsModuleSelect; - }; -}; -/** A `MembershipTypesModule` edge in the connection. */ -export interface MembershipTypesModuleEdge { - cursor?: string | null; - /** The `MembershipTypesModule` at the end of the edge. */ - node?: MembershipTypesModule | null; -} -export type MembershipTypesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypesModuleSelect; - }; -}; -/** 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 `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 `PhoneNumbersModule` edge in the connection. */ -export interface PhoneNumbersModuleEdge { - cursor?: string | null; - /** The `PhoneNumbersModule` at the end of the edge. */ - node?: PhoneNumbersModule | null; -} -export type PhoneNumbersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumbersModuleSelect; - }; -}; -/** A `ProfilesModule` edge in the connection. */ -export interface ProfilesModuleEdge { - cursor?: string | null; - /** The `ProfilesModule` at the end of the edge. */ - node?: ProfilesModule | null; -} -export type ProfilesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ProfilesModuleSelect; - }; -}; -/** 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 `SessionsModule` edge in the connection. */ -export interface SessionsModuleEdge { - cursor?: string | null; - /** The `SessionsModule` at the end of the edge. */ - node?: SessionsModule | null; -} -export type SessionsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SessionsModuleSelect; - }; -}; -/** A `UserAuthModule` edge in the connection. */ -export interface UserAuthModuleEdge { - cursor?: string | null; - /** The `UserAuthModule` at the end of the edge. */ - node?: UserAuthModule | null; -} -export type UserAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserAuthModuleSelect; - }; -}; -/** A `UsersModule` edge in the connection. */ -export interface UsersModuleEdge { - cursor?: string | null; - /** The `UsersModule` at the end of the edge. */ - node?: UsersModule | null; -} -export type UsersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UsersModuleSelect; - }; -}; -/** A `Blueprint` edge in the connection. */ -export interface BlueprintEdge { - cursor?: string | null; - /** The `Blueprint` at the end of the edge. */ - node?: Blueprint | null; -} -export type BlueprintEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintSelect; - }; -}; -/** A `BlueprintTemplate` edge in the connection. */ -export interface BlueprintTemplateEdge { - cursor?: string | null; - /** The `BlueprintTemplate` at the end of the edge. */ - node?: BlueprintTemplate | null; -} -export type BlueprintTemplateEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintTemplateSelect; - }; -}; -/** A `BlueprintConstruction` edge in the connection. */ -export interface BlueprintConstructionEdge { - cursor?: string | null; - /** The `BlueprintConstruction` at the end of the edge. */ - node?: BlueprintConstruction | null; -} -export type BlueprintConstructionEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintConstructionSelect; - }; -}; -/** A `StorageModule` edge in the connection. */ -export interface StorageModuleEdge { - cursor?: string | null; - /** The `StorageModule` at the end of the edge. */ - node?: StorageModule | null; -} -export type StorageModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: StorageModuleSelect; - }; -}; -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | null; -} -export type EntityTypeProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: EntityTypeProvisionSelect; - }; -}; -/** A `WebauthnCredentialsModule` edge in the connection. */ -export interface WebauthnCredentialsModuleEdge { - cursor?: string | null; - /** The `WebauthnCredentialsModule` at the end of the edge. */ - node?: WebauthnCredentialsModule | null; -} -export type WebauthnCredentialsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnCredentialsModuleSelect; - }; -}; -/** A `WebauthnAuthModule` edge in the connection. */ -export interface WebauthnAuthModuleEdge { - cursor?: string | null; - /** The `WebauthnAuthModule` at the end of the edge. */ - node?: WebauthnAuthModule | null; -} -export type WebauthnAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnAuthModuleSelect; - }; -}; -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { - cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; -} -export type NotificationsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: NotificationsModuleSelect; - }; -}; -/** A `InferenceLogModule` edge in the connection. */ -export interface InferenceLogModuleEdge { - cursor?: string | null; - /** The `InferenceLogModule` at the end of the edge. */ - node?: InferenceLogModule | null; -} -export type InferenceLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InferenceLogModuleSelect; - }; -}; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { - cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; -} -export type ComputeLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ComputeLogModuleSelect; - }; -}; -/** A `TransferLogModule` edge in the connection. */ -export interface TransferLogModuleEdge { - cursor?: string | null; - /** The `TransferLogModule` at the end of the edge. */ - node?: TransferLogModule | null; -} -export type TransferLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: TransferLogModuleSelect; - }; -}; -/** A `StorageLogModule` edge in the connection. */ -export interface StorageLogModuleEdge { - cursor?: string | null; - /** The `StorageLogModule` at the end of the edge. */ - node?: StorageLogModule | null; -} -export type StorageLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: StorageLogModuleSelect; - }; -}; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { - cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; -} -export type DbUsageModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DbUsageModuleSelect; - }; -}; -/** A `AgentModule` edge in the connection. */ -export interface AgentModuleEdge { - cursor?: string | null; - /** The `AgentModule` at the end of the edge. */ - node?: AgentModule | null; -} -export type AgentModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: AgentModuleSelect; - }; -}; -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { - cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; -} -export type NamespaceModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: NamespaceModuleSelect; - }; -}; -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} -export type FunctionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionModuleSelect; - }; -}; -/** A `DatabaseProvisionModule` edge in the connection. */ -export interface DatabaseProvisionModuleEdge { - cursor?: string | null; - /** The `DatabaseProvisionModule` at the end of the edge. */ - node?: DatabaseProvisionModule | null; -} -export type DatabaseProvisionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseProvisionModuleSelect; - }; -}; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { - cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; -} -export type AppAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppAdminGrantSelect; - }; -}; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { - cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; -} -export type AppOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppOwnerGrantSelect; - }; -}; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { - cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; -} -export type AppGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppGrantSelect; - }; -}; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; -/** A `OrgMember` edge in the connection. */ -export interface OrgMemberEdge { - cursor?: string | null; - /** The `OrgMember` at the end of the edge. */ - node?: OrgMember | null; -} -export type OrgMemberEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberSelect; - }; -}; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; -/** A `OrgGrant` edge in the connection. */ -export interface OrgGrantEdge { - cursor?: string | null; - /** The `OrgGrant` at the end of the edge. */ - node?: OrgGrant | null; -} -export type OrgGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgGrantSelect; - }; -}; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; -/** A `OrgChartEdgeGrant` edge in the connection. */ -export interface OrgChartEdgeGrantEdge { - cursor?: string | null; - /** The `OrgChartEdgeGrant` at the end of the edge. */ - node?: OrgChartEdgeGrant | null; -} -export type OrgChartEdgeGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeGrantSelect; - }; -}; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -export type AppLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditSelect; - }; -}; -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -export type AppLimitCreditCodeItemEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeItemSelect; - }; -}; -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} -export type AppLimitCreditRedemptionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditRedemptionSelect; - }; -}; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} -export type OrgLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCreditSelect; - }; -}; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -export type OrgLimitAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitAggregateSelect; - }; -}; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} -export type OrgLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitWarningSelect; - }; -}; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; -/** A `PhoneNumber` edge in the connection. */ -export interface PhoneNumberEdge { - cursor?: string | null; - /** The `PhoneNumber` at the end of the edge. */ - node?: PhoneNumber | null; -} -export type PhoneNumberEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumberSelect; - }; -}; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `WebauthnCredential` edge in the connection. */ -export interface WebauthnCredentialEdge { - cursor?: string | null; - /** The `WebauthnCredential` at the end of the edge. */ - node?: WebauthnCredential | null; -} -export type WebauthnCredentialEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnCredentialSelect; - }; -}; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -export type AppInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppInviteSelect; - }; -}; -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { - cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; -} -export type AppClaimedInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppClaimedInviteSelect; - }; -}; -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { - cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; -} -export type OrgInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgInviteSelect; - }; -}; -/** A `OrgClaimedInvite` edge in the connection. */ -export interface OrgClaimedInviteEdge { - cursor?: string | null; - /** The `OrgClaimedInvite` at the end of the edge. */ - node?: OrgClaimedInvite | null; -} -export type OrgClaimedInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgClaimedInviteSelect; - }; -}; -/** A `AuditLogAuth` edge in the connection. */ -export interface AuditLogAuthEdge { - cursor?: string | null; - /** The `AuditLogAuth` at the end of the edge. */ - node?: AuditLogAuth | null; -} -export type AuditLogAuthEdgeSelect = { - cursor?: boolean; - node?: { - select: AuditLogAuthSelect; - }; -}; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} -export type RoleTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: RoleTypeSelect; - }; -}; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { - cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; -} -export type DevicesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DevicesModuleSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} -export type OrgMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipDefaultSelect; - }; -}; -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} -export type NodeTypeRegistryEdgeSelect = { - cursor?: boolean; - node?: { - select: NodeTypeRegistrySelect; - }; -}; -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -export type AppLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapsDefaultSelect; - }; -}; -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -export type OrgLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapsDefaultSelect; - }; -}; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -export type OrgLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapSelect; - }; -}; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -export type AppLimitCreditCodeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeSelect; - }; -}; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} -export type AppLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitWarningSelect; - }; -}; -/** A `PubkeySetting` edge in the connection. */ -export interface PubkeySettingEdge { - cursor?: string | null; - /** The `PubkeySetting` at the end of the edge. */ - node?: PubkeySetting | null; -} -export type PubkeySettingEdgeSelect = { - cursor?: boolean; - node?: { - select: PubkeySettingSelect; - }; -}; -/** A `RateLimitsModule` edge in the connection. */ -export interface RateLimitsModuleEdge { - cursor?: string | null; - /** The `RateLimitsModule` at the end of the edge. */ - node?: RateLimitsModule | null; -} -export type RateLimitsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitsModuleSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; -/** A `RlsSetting` edge in the connection. */ -export interface RlsSettingEdge { - cursor?: string | null; - /** The `RlsSetting` at the end of the edge. */ - node?: RlsSetting | null; -} -export type RlsSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: RlsSettingSelect; - }; -}; -/** A `RlsModule` edge in the connection. */ -export interface RlsModuleEdge { - cursor?: string | null; - /** The `RlsModule` at the end of the edge. */ - node?: RlsModule | null; -} -export type RlsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RlsModuleSelect; - }; -}; -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} -export type RateLimitMetersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitMetersModuleSelect; - }; -}; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { - cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; -} -export type PlansModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PlansModuleSelect; - }; -}; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} -export type DatabaseSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSettingSelect; - }; -}; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} -export type OrgMembershipSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSettingSelect; - }; -}; -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { - cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; -} -export type AppLimitEventEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitEventSelect; - }; -}; -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { - cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; -} -export type OrgLimitEventEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitEventSelect; - }; -}; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { - cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; -} -export type AppMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipSelect; - }; -}; -/** A `User` edge in the connection. */ -export interface UserEdge { - cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; -} -export type UserEdgeSelect = { - cursor?: boolean; - node?: { - select: UserSelect; - }; -}; -/** A `WebauthnSetting` edge in the connection. */ -export interface WebauthnSettingEdge { - cursor?: string | null; - /** The `WebauthnSetting` at the end of the edge. */ - node?: WebauthnSetting | null; -} -export type WebauthnSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnSettingSelect; - }; -}; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { - cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; -} -export type BillingModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingModuleSelect; - }; -}; -/** A `BillingProviderModule` edge in the connection. */ -export interface BillingProviderModuleEdge { - cursor?: string | null; - /** The `BillingProviderModule` at the end of the edge. */ - node?: BillingProviderModule | null; -} -export type BillingProviderModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingProviderModuleSelect; - }; -}; -/** A `HierarchyModule` edge in the connection. */ -export interface HierarchyModuleEdge { - cursor?: string | null; - /** The `HierarchyModule` at the end of the edge. */ - node?: HierarchyModule | null; -} -export type HierarchyModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: HierarchyModuleSelect; - }; -}; diff --git a/sdk/constructive-cli/src/public/orm/models/appAdminGrant.ts b/sdk/constructive-cli/src/public/orm/models/appAdminGrant.ts deleted file mode 100644 index fd80edc234..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appAdminGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppAdminGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppAdminGrant, - AppAdminGrantWithRelations, - AppAdminGrantSelect, - AppAdminGrantFilter, - AppAdminGrantOrderBy, - CreateAppAdminGrantInput, - UpdateAppAdminGrantInput, - AppAdminGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppAdminGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrant', - document, - variables, - transform: (data: { - appAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrant', - document, - variables, - transform: (data: { - appAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppAdminGrant', - 'createAppAdminGrant', - 'appAdminGrant', - args.select, - args.data, - 'CreateAppAdminGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'createAppAdminGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppAdminGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppAdminGrant', - 'updateAppAdminGrant', - 'appAdminGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppAdminGrantInput', - 'id', - 'appAdminGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'updateAppAdminGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppAdminGrant', - 'deleteAppAdminGrant', - 'appAdminGrant', - { - id: args.where.id, - }, - 'DeleteAppAdminGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'deleteAppAdminGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appClaimedInvite.ts b/sdk/constructive-cli/src/public/orm/models/appClaimedInvite.ts deleted file mode 100644 index c9e66ec9c8..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appClaimedInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppClaimedInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppClaimedInvite, - AppClaimedInviteWithRelations, - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy, - CreateAppClaimedInviteInput, - UpdateAppClaimedInviteInput, - AppClaimedInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppClaimedInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvite', - document, - variables, - transform: (data: { - appClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appClaimedInvite: data.appClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvite', - document, - variables, - transform: (data: { - appClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appClaimedInvite: data.appClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppClaimedInvite', - 'createAppClaimedInvite', - 'appClaimedInvite', - args.select, - args.data, - 'CreateAppClaimedInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'createAppClaimedInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppClaimedInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppClaimedInvite', - 'updateAppClaimedInvite', - 'appClaimedInvite', - args.select, - args.where.id, - args.data, - 'UpdateAppClaimedInviteInput', - 'id', - 'appClaimedInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'updateAppClaimedInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppClaimedInvite', - 'deleteAppClaimedInvite', - 'appClaimedInvite', - { - id: args.where.id, - }, - 'DeleteAppClaimedInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'deleteAppClaimedInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appGrant.ts b/sdk/constructive-cli/src/public/orm/models/appGrant.ts deleted file mode 100644 index 4481fb3d83..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppGrant, - AppGrantWithRelations, - AppGrantSelect, - AppGrantFilter, - AppGrantOrderBy, - CreateAppGrantInput, - UpdateAppGrantInput, - AppGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrant', - document, - variables, - transform: (data: { - appGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appGrant: data.appGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrant', - document, - variables, - transform: (data: { - appGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appGrant: data.appGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppGrant', - 'createAppGrant', - 'appGrant', - args.select, - args.data, - 'CreateAppGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'createAppGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppGrant', - 'updateAppGrant', - 'appGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppGrantInput', - 'id', - 'appGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'updateAppGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppGrant', - 'deleteAppGrant', - 'appGrant', - { - id: args.where.id, - }, - 'DeleteAppGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'deleteAppGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appInvite.ts b/sdk/constructive-cli/src/public/orm/models/appInvite.ts deleted file mode 100644 index 5fcbff9369..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppInvite, - AppInviteWithRelations, - AppInviteSelect, - AppInviteFilter, - AppInviteOrderBy, - CreateAppInviteInput, - UpdateAppInviteInput, - AppInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvite', - document, - variables, - transform: (data: { - appInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appInvite: data.appInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvite', - document, - variables, - transform: (data: { - appInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appInvite: data.appInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInvite', - 'createAppInvite', - 'appInvite', - args.select, - args.data, - 'CreateAppInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'createAppInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppInvite', - 'updateAppInvite', - 'appInvite', - args.select, - args.where.id, - args.data, - 'UpdateAppInviteInput', - 'id', - 'appInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'updateAppInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppInvite', - 'deleteAppInvite', - 'appInvite', - { - id: args.where.id, - }, - 'DeleteAppInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'deleteAppInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appMembership.ts b/sdk/constructive-cli/src/public/orm/models/appMembership.ts deleted file mode 100644 index a4011c41ab..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appMembership.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppMembership model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppMembership, - AppMembershipWithRelations, - AppMembershipSelect, - AppMembershipFilter, - AppMembershipOrderBy, - CreateAppMembershipInput, - UpdateAppMembershipInput, - AppMembershipPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMemberships: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMemberships', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMembership', - document, - variables, - transform: (data: { - appMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembership: data.appMemberships?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMembership', - document, - variables, - transform: (data: { - appMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembership: data.appMemberships?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembership', - 'createAppMembership', - 'appMembership', - args.select, - args.data, - 'CreateAppMembershipInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'createAppMembership', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembership', - 'updateAppMembership', - 'appMembership', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipInput', - 'id', - 'appMembershipPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'updateAppMembership', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembership', - 'deleteAppMembership', - 'appMembership', - { - id: args.where.id, - }, - 'DeleteAppMembershipInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'deleteAppMembership', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appMembershipDefault.ts b/sdk/constructive-cli/src/public/orm/models/appMembershipDefault.ts deleted file mode 100644 index f69f1aca69..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appMembershipDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppMembershipDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppMembershipDefault, - AppMembershipDefaultWithRelations, - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy, - CreateAppMembershipDefaultInput, - UpdateAppMembershipDefaultInput, - AppMembershipDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefault', - document, - variables, - transform: (data: { - appMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefault', - document, - variables, - transform: (data: { - appMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembershipDefault', - 'createAppMembershipDefault', - 'appMembershipDefault', - args.select, - args.data, - 'CreateAppMembershipDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'createAppMembershipDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembershipDefault', - 'updateAppMembershipDefault', - 'appMembershipDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipDefaultInput', - 'id', - 'appMembershipDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'updateAppMembershipDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembershipDefault', - 'deleteAppMembershipDefault', - 'appMembershipDefault', - { - id: args.where.id, - }, - 'DeleteAppMembershipDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'deleteAppMembershipDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appOwnerGrant.ts b/sdk/constructive-cli/src/public/orm/models/appOwnerGrant.ts deleted file mode 100644 index eeb815d842..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appOwnerGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppOwnerGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppOwnerGrant, - AppOwnerGrantWithRelations, - AppOwnerGrantSelect, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy, - CreateAppOwnerGrantInput, - UpdateAppOwnerGrantInput, - AppOwnerGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppOwnerGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrant', - document, - variables, - transform: (data: { - appOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrant', - document, - variables, - transform: (data: { - appOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppOwnerGrant', - 'createAppOwnerGrant', - 'appOwnerGrant', - args.select, - args.data, - 'CreateAppOwnerGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'createAppOwnerGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppOwnerGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppOwnerGrant', - 'updateAppOwnerGrant', - 'appOwnerGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppOwnerGrantInput', - 'id', - 'appOwnerGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'updateAppOwnerGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppOwnerGrant', - 'deleteAppOwnerGrant', - 'appOwnerGrant', - { - id: args.where.id, - }, - 'DeleteAppOwnerGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'deleteAppOwnerGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appPermission.ts b/sdk/constructive-cli/src/public/orm/models/appPermission.ts deleted file mode 100644 index e71adea658..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appPermission.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppPermission model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppPermission, - AppPermissionWithRelations, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, - CreateAppPermissionInput, - UpdateAppPermissionInput, - AppPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermission', - 'createAppPermission', - 'appPermission', - args.select, - args.data, - 'CreateAppPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'createAppPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermission', - 'updateAppPermission', - 'appPermission', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionInput', - 'id', - 'appPermissionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'updateAppPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermission', - 'deleteAppPermission', - 'appPermission', - { - id: args.where.id, - }, - 'DeleteAppPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'deleteAppPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appPermissionDefault.ts b/sdk/constructive-cli/src/public/orm/models/appPermissionDefault.ts deleted file mode 100644 index d5511aed01..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/appPermissionDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppPermissionDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppPermissionDefault, - AppPermissionDefaultWithRelations, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, - CreateAppPermissionDefaultInput, - UpdateAppPermissionDefaultInput, - AppPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefault', - 'createAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.data, - 'CreateAppPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'createAppPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefault', - 'updateAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultInput', - 'id', - 'appPermissionDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'updateAppPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefault', - 'deleteAppPermissionDefault', - 'appPermissionDefault', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'deleteAppPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/auditLogAuth.ts b/sdk/constructive-cli/src/public/orm/models/auditLogAuth.ts deleted file mode 100644 index 8a6665612c..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/auditLogAuth.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLogAuth model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AuditLogAuth, - AuditLogAuthWithRelations, - AuditLogAuthSelect, - AuditLogAuthFilter, - AuditLogAuthOrderBy, - CreateAuditLogAuthInput, - UpdateAuditLogAuthInput, - AuditLogAuthPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogAuthModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuths: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuths', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuth: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuth', - document, - variables, - transform: (data: { - auditLogAuths?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuth: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuth', - document, - variables, - transform: (data: { - auditLogAuths?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLogAuth', - 'createAuditLogAuth', - 'auditLogAuth', - args.select, - args.data, - 'CreateAuditLogAuthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'createAuditLogAuth', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogAuthPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLogAuth', - 'updateAuditLogAuth', - 'auditLogAuth', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogAuthInput', - 'id', - 'auditLogAuthPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'updateAuditLogAuth', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLogAuth', - 'deleteAuditLogAuth', - 'auditLogAuth', - { - id: args.where.id, - }, - 'DeleteAuditLogAuthInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'deleteAuditLogAuth', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/cryptoAddress.ts b/sdk/constructive-cli/src/public/orm/models/cryptoAddress.ts deleted file mode 100644 index 11914bd9d1..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/cryptoAddress.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * CryptoAddress model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - CryptoAddress, - CryptoAddressWithRelations, - CryptoAddressSelect, - CryptoAddressFilter, - CryptoAddressOrderBy, - CreateCryptoAddressInput, - UpdateCryptoAddressInput, - CryptoAddressPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class CryptoAddressModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddresses: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddresses', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddress: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddress', - document, - variables, - transform: (data: { - cryptoAddresses?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddress: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddress', - document, - variables, - transform: (data: { - cryptoAddresses?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'CryptoAddress', - 'createCryptoAddress', - 'cryptoAddress', - args.select, - args.data, - 'CreateCryptoAddressInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'createCryptoAddress', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - CryptoAddressPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'CryptoAddress', - 'updateCryptoAddress', - 'cryptoAddress', - args.select, - args.where.id, - args.data, - 'UpdateCryptoAddressInput', - 'id', - 'cryptoAddressPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'updateCryptoAddress', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'CryptoAddress', - 'deleteCryptoAddress', - 'cryptoAddress', - { - id: args.where.id, - }, - 'DeleteCryptoAddressInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'deleteCryptoAddress', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/email.ts b/sdk/constructive-cli/src/public/orm/models/email.ts deleted file mode 100644 index 325475b9ce..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/email.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * Email model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - Email, - EmailWithRelations, - EmailSelect, - EmailFilter, - EmailOrderBy, - CreateEmailInput, - UpdateEmailInput, - EmailPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EmailModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - emails: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Email', - 'emails', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'emails', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - email: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Email', - 'emails', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'email', - document, - variables, - transform: (data: { - emails?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - email: data.emails?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - email: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Email', - 'emails', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'email', - document, - variables, - transform: (data: { - emails?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - email: data.emails?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Email', - 'createEmail', - 'email', - args.select, - args.data, - 'CreateEmailInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'createEmail', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EmailPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Email', - 'updateEmail', - 'email', - args.select, - args.where.id, - args.data, - 'UpdateEmailInput', - 'id', - 'emailPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'updateEmail', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Email', - 'deleteEmail', - 'email', - { - id: args.where.id, - }, - 'DeleteEmailInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'deleteEmail', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/identityProvider.ts b/sdk/constructive-cli/src/public/orm/models/identityProvider.ts deleted file mode 100644 index cdc672145c..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/identityProvider.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * IdentityProvider model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - IdentityProvider, - IdentityProviderWithRelations, - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy, - CreateIdentityProviderInput, - UpdateIdentityProviderInput, - IdentityProviderPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class IdentityProviderModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - identityProviders: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'IdentityProvider', - 'identityProviders', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'IdentityProviderFilter', - 'IdentityProviderOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'IdentityProvider', - fieldName: 'identityProviders', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - identityProvider: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'IdentityProvider', - 'identityProviders', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'IdentityProviderFilter', - 'IdentityProviderOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'IdentityProvider', - fieldName: 'identityProvider', - document, - variables, - transform: (data: { - identityProviders?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - identityProvider: data.identityProviders?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'IdentityProvider', - 'createIdentityProvider', - 'identityProvider', - args.select, - args.data, - 'CreateIdentityProviderInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'IdentityProvider', - fieldName: 'createIdentityProvider', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/index.ts b/sdk/constructive-cli/src/public/orm/models/index.ts deleted file mode 100644 index 6a43b55b56..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/index.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * Models barrel export - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; -export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; -export { AppPermissionModel } from './appPermission'; -export { OrgPermissionModel } from './orgPermission'; -export { DatabaseModel } from './database'; -export { SchemaModel } from './schema'; -export { TableModel } from './table'; -export { CheckConstraintModel } from './checkConstraint'; -export { FieldModel } from './field'; -export { SpatialRelationModel } from './spatialRelation'; -export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; -export { FullTextSearchModel } from './fullTextSearch'; -export { IndexModel } from './indexModel'; -export { PolicyModel } from './policy'; -export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; -export { TableGrantModel } from './tableGrant'; -export { TriggerModel } from './trigger'; -export { UniqueConstraintModel } from './uniqueConstraint'; -export { ViewModel } from './view'; -export { ViewTableModel } from './viewTable'; -export { ViewGrantModel } from './viewGrant'; -export { ViewRuleModel } from './viewRule'; -export { EmbeddingChunkModel } from './embeddingChunk'; -export { SecureTableProvisionModel } from './secureTableProvision'; -export { RelationProvisionModel } from './relationProvision'; -export { SessionSecretsModuleModel } from './sessionSecretsModule'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; -export { RealtimeModuleModel } from './realtimeModule'; -export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; -export { SchemaGrantModel } from './schemaGrant'; -export { DefaultPrivilegeModel } from './defaultPrivilege'; -export { EnumModel } from './enum'; -export { FunctionModel } from './function'; -export { ApiSchemaModel } from './apiSchema'; -export { ApiModuleModel } from './apiModule'; -export { DomainModel } from './domain'; -export { SiteMetadatumModel } from './siteMetadatum'; -export { SiteModuleModel } from './siteModule'; -export { SiteThemeModel } from './siteTheme'; -export { CorsSettingModel } from './corsSetting'; -export { MerkleStoreModuleModel } from './merkleStoreModule'; -export { GraphModuleModel } from './graphModule'; -export { TriggerFunctionModel } from './triggerFunction'; -export { PartitionModel } from './partition'; -export { DatabaseTransferModel } from './databaseTransfer'; -export { ApiModel } from './api'; -export { SiteModel } from './site'; -export { AppModel } from './app'; -export { ApiSettingModel } from './apiSetting'; -export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; -export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; -export { CryptoAuthModuleModel } from './cryptoAuthModule'; -export { DefaultIdsModuleModel } from './defaultIdsModule'; -export { DenormalizedTableFieldModel } from './denormalizedTableField'; -export { EmailsModuleModel } from './emailsModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; -export { InvitesModuleModel } from './invitesModule'; -export { EventsModuleModel } from './eventsModule'; -export { LimitsModuleModel } from './limitsModule'; -export { MembershipTypesModuleModel } from './membershipTypesModule'; -export { MembershipsModuleModel } from './membershipsModule'; -export { PermissionsModuleModel } from './permissionsModule'; -export { PhoneNumbersModuleModel } from './phoneNumbersModule'; -export { ProfilesModuleModel } from './profilesModule'; -export { UserStateModuleModel } from './userStateModule'; -export { SessionsModuleModel } from './sessionsModule'; -export { UserAuthModuleModel } from './userAuthModule'; -export { UsersModuleModel } from './usersModule'; -export { BlueprintModel } from './blueprint'; -export { BlueprintTemplateModel } from './blueprintTemplate'; -export { BlueprintConstructionModel } from './blueprintConstruction'; -export { StorageModuleModel } from './storageModule'; -export { EntityTypeProvisionModel } from './entityTypeProvision'; -export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; -export { WebauthnAuthModuleModel } from './webauthnAuthModule'; -export { NotificationsModuleModel } from './notificationsModule'; -export { InferenceLogModuleModel } from './inferenceLogModule'; -export { ComputeLogModuleModel } from './computeLogModule'; -export { TransferLogModuleModel } from './transferLogModule'; -export { StorageLogModuleModel } from './storageLogModule'; -export { DbUsageModuleModel } from './dbUsageModule'; -export { AgentModuleModel } from './agentModule'; -export { NamespaceModuleModel } from './namespaceModule'; -export { FunctionModuleModel } from './functionModule'; -export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { AppAdminGrantModel } from './appAdminGrant'; -export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppGrantModel } from './appGrant'; -export { OrgMembershipModel } from './orgMembership'; -export { OrgMemberModel } from './orgMember'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgMemberProfileModel } from './orgMemberProfile'; -export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { AppLimitModel } from './appLimit'; -export { AppLimitCreditModel } from './appLimitCredit'; -export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; -export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; -export { OrgLimitModel } from './orgLimit'; -export { OrgLimitCreditModel } from './orgLimitCredit'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitWarningModel } from './orgLimitWarning'; -export { EmailModel } from './email'; -export { PhoneNumberModel } from './phoneNumber'; -export { CryptoAddressModel } from './cryptoAddress'; -export { WebauthnCredentialModel } from './webauthnCredential'; -export { AppInviteModel } from './appInvite'; -export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgInviteModel } from './orgInvite'; -export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AuditLogAuthModel } from './auditLogAuth'; -export { IdentityProviderModel } from './identityProvider'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { RoleTypeModel } from './roleType'; -export { MigrateFileModel } from './migrateFile'; -export { DevicesModuleModel } from './devicesModule'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { NodeTypeRegistryModel } from './nodeTypeRegistry'; -export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; -export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { UserConnectedAccountModel } from './userConnectedAccount'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { AppLimitWarningModel } from './appLimitWarning'; -export { PubkeySettingModel } from './pubkeySetting'; -export { RateLimitsModuleModel } from './rateLimitsModule'; -export { MembershipTypeModel } from './membershipType'; -export { RlsSettingModel } from './rlsSetting'; -export { RlsModuleModel } from './rlsModule'; -export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; -export { PlansModuleModel } from './plansModule'; -export { SqlActionModel } from './sqlAction'; -export { DatabaseSettingModel } from './databaseSetting'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; -export { AppMembershipModel } from './appMembership'; -export { UserModel } from './user'; -export { AstMigrationModel } from './astMigration'; -export { WebauthnSettingModel } from './webauthnSetting'; -export { BillingModuleModel } from './billingModule'; -export { BillingProviderModuleModel } from './billingProviderModule'; -export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-cli/src/public/orm/models/membershipType.ts b/sdk/constructive-cli/src/public/orm/models/membershipType.ts deleted file mode 100644 index ee7ed596c0..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/membershipType.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * MembershipType model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - MembershipType, - MembershipTypeWithRelations, - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy, - CreateMembershipTypeInput, - UpdateMembershipTypeInput, - MembershipTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MembershipTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipType', - document, - variables, - transform: (data: { - membershipTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - membershipType: data.membershipTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: number; - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipType', - document, - variables, - transform: (data: { - membershipTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - membershipType: data.membershipTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MembershipType', - 'createMembershipType', - 'membershipType', - args.select, - args.data, - 'CreateMembershipTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'createMembershipType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: number; - }, - MembershipTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MembershipType', - 'updateMembershipType', - 'membershipType', - args.select, - args.where.id, - args.data, - 'UpdateMembershipTypeInput', - 'id', - 'membershipTypePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'updateMembershipType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: number; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MembershipType', - 'deleteMembershipType', - 'membershipType', - { - id: args.where.id, - }, - 'DeleteMembershipTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'deleteMembershipType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgAdminGrant.ts b/sdk/constructive-cli/src/public/orm/models/orgAdminGrant.ts deleted file mode 100644 index 7b13377316..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgAdminGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgAdminGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgAdminGrant, - OrgAdminGrantWithRelations, - OrgAdminGrantSelect, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy, - CreateOrgAdminGrantInput, - UpdateOrgAdminGrantInput, - OrgAdminGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgAdminGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrant', - document, - variables, - transform: (data: { - orgAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrant', - document, - variables, - transform: (data: { - orgAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgAdminGrant', - 'createOrgAdminGrant', - 'orgAdminGrant', - args.select, - args.data, - 'CreateOrgAdminGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'createOrgAdminGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgAdminGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgAdminGrant', - 'updateOrgAdminGrant', - 'orgAdminGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgAdminGrantInput', - 'id', - 'orgAdminGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'updateOrgAdminGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgAdminGrant', - 'deleteOrgAdminGrant', - 'orgAdminGrant', - { - id: args.where.id, - }, - 'DeleteOrgAdminGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'deleteOrgAdminGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgChartEdge.ts b/sdk/constructive-cli/src/public/orm/models/orgChartEdge.ts deleted file mode 100644 index 8a43b83a98..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgChartEdge.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgChartEdge model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgChartEdge, - OrgChartEdgeWithRelations, - OrgChartEdgeSelect, - OrgChartEdgeFilter, - OrgChartEdgeOrderBy, - CreateOrgChartEdgeInput, - UpdateOrgChartEdgeInput, - OrgChartEdgePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgChartEdgeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdges: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdges', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdge: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdge', - document, - variables, - transform: (data: { - orgChartEdges?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdge: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdge', - document, - variables, - transform: (data: { - orgChartEdges?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgChartEdge', - 'createOrgChartEdge', - 'orgChartEdge', - args.select, - args.data, - 'CreateOrgChartEdgeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'createOrgChartEdge', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgChartEdgePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgChartEdge', - 'updateOrgChartEdge', - 'orgChartEdge', - args.select, - args.where.id, - args.data, - 'UpdateOrgChartEdgeInput', - 'id', - 'orgChartEdgePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'updateOrgChartEdge', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgChartEdge', - 'deleteOrgChartEdge', - 'orgChartEdge', - { - id: args.where.id, - }, - 'DeleteOrgChartEdgeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'deleteOrgChartEdge', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-cli/src/public/orm/models/orgChartEdgeGrant.ts deleted file mode 100644 index 168a6fe3db..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgChartEdgeGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgChartEdgeGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgChartEdgeGrant, - OrgChartEdgeGrantWithRelations, - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy, - CreateOrgChartEdgeGrantInput, - UpdateOrgChartEdgeGrantInput, - OrgChartEdgeGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgChartEdgeGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrant', - document, - variables, - transform: (data: { - orgChartEdgeGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrant', - document, - variables, - transform: (data: { - orgChartEdgeGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgChartEdgeGrant', - 'createOrgChartEdgeGrant', - 'orgChartEdgeGrant', - args.select, - args.data, - 'CreateOrgChartEdgeGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'createOrgChartEdgeGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgChartEdgeGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgChartEdgeGrant', - 'updateOrgChartEdgeGrant', - 'orgChartEdgeGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgChartEdgeGrantInput', - 'id', - 'orgChartEdgeGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'updateOrgChartEdgeGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgChartEdgeGrant', - 'deleteOrgChartEdgeGrant', - 'orgChartEdgeGrant', - { - id: args.where.id, - }, - 'DeleteOrgChartEdgeGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'deleteOrgChartEdgeGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgClaimedInvite.ts b/sdk/constructive-cli/src/public/orm/models/orgClaimedInvite.ts deleted file mode 100644 index e1a3aecafb..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgClaimedInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgClaimedInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgClaimedInvite, - OrgClaimedInviteWithRelations, - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy, - CreateOrgClaimedInviteInput, - UpdateOrgClaimedInviteInput, - OrgClaimedInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgClaimedInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvite', - document, - variables, - transform: (data: { - orgClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvite', - document, - variables, - transform: (data: { - orgClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgClaimedInvite', - 'createOrgClaimedInvite', - 'orgClaimedInvite', - args.select, - args.data, - 'CreateOrgClaimedInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'createOrgClaimedInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgClaimedInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgClaimedInvite', - 'updateOrgClaimedInvite', - 'orgClaimedInvite', - args.select, - args.where.id, - args.data, - 'UpdateOrgClaimedInviteInput', - 'id', - 'orgClaimedInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'updateOrgClaimedInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgClaimedInvite', - 'deleteOrgClaimedInvite', - 'orgClaimedInvite', - { - id: args.where.id, - }, - 'DeleteOrgClaimedInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'deleteOrgClaimedInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgGetManagersRecord.ts b/sdk/constructive-cli/src/public/orm/models/orgGetManagersRecord.ts deleted file mode 100644 index 7c333b76d3..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgGetManagersRecord.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * OrgGetManagersRecord model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGetManagersRecord, - OrgGetManagersRecordWithRelations, - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, - UpdateOrgGetManagersRecordInput, - OrgGetManagersRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGetManagersRecordModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetManagers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGetManagersRecord', - 'orgGetManagers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGetManagersRecordFilter', - 'OrgGetManagersRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetManagersRecord', - fieldName: 'orgGetManagers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetManagersRecord: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGetManagersRecord', - 'orgGetManagers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGetManagersRecordFilter', - 'OrgGetManagersRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetManagersRecord', - fieldName: 'orgGetManagersRecord', - document, - variables, - transform: (data: { - orgGetManagers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGetManagersRecord: data.orgGetManagers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetManagersRecord', - 'createOrgGetManagersRecord', - 'orgGetManagersRecord', - args.select, - args.data, - 'CreateOrgGetManagersRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetManagersRecord', - fieldName: 'createOrgGetManagersRecord', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-cli/src/public/orm/models/orgGetSubordinatesRecord.ts deleted file mode 100644 index f259e10434..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgGetSubordinatesRecord.ts +++ /dev/null @@ -1,136 +0,0 @@ -/** - * OrgGetSubordinatesRecord model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGetSubordinatesRecord, - OrgGetSubordinatesRecordWithRelations, - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, - UpdateOrgGetSubordinatesRecordInput, - OrgGetSubordinatesRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGetSubordinatesRecordModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetSubordinates: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGetSubordinatesRecord', - 'orgGetSubordinates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGetSubordinatesRecordFilter', - 'OrgGetSubordinatesRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'orgGetSubordinates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetSubordinatesRecord: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGetSubordinatesRecord', - 'orgGetSubordinates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGetSubordinatesRecordFilter', - 'OrgGetSubordinatesRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'orgGetSubordinatesRecord', - document, - variables, - transform: (data: { - orgGetSubordinates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGetSubordinatesRecord: data.orgGetSubordinates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetSubordinatesRecord', - 'createOrgGetSubordinatesRecord', - 'orgGetSubordinatesRecord', - args.select, - args.data, - 'CreateOrgGetSubordinatesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'createOrgGetSubordinatesRecord', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgGrant.ts b/sdk/constructive-cli/src/public/orm/models/orgGrant.ts deleted file mode 100644 index c8e74f5cc6..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGrant, - OrgGrantWithRelations, - OrgGrantSelect, - OrgGrantFilter, - OrgGrantOrderBy, - CreateOrgGrantInput, - UpdateOrgGrantInput, - OrgGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrant', - document, - variables, - transform: (data: { - orgGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGrant: data.orgGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrant', - document, - variables, - transform: (data: { - orgGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGrant: data.orgGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGrant', - 'createOrgGrant', - 'orgGrant', - args.select, - args.data, - 'CreateOrgGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'createOrgGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgGrant', - 'updateOrgGrant', - 'orgGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgGrantInput', - 'id', - 'orgGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'updateOrgGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgGrant', - 'deleteOrgGrant', - 'orgGrant', - { - id: args.where.id, - }, - 'DeleteOrgGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'deleteOrgGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgInvite.ts b/sdk/constructive-cli/src/public/orm/models/orgInvite.ts deleted file mode 100644 index 8d7931f078..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgInvite, - OrgInviteWithRelations, - OrgInviteSelect, - OrgInviteFilter, - OrgInviteOrderBy, - CreateOrgInviteInput, - UpdateOrgInviteInput, - OrgInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvite', - document, - variables, - transform: (data: { - orgInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgInvite: data.orgInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvite', - document, - variables, - transform: (data: { - orgInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgInvite: data.orgInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgInvite', - 'createOrgInvite', - 'orgInvite', - args.select, - args.data, - 'CreateOrgInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'createOrgInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgInvite', - 'updateOrgInvite', - 'orgInvite', - args.select, - args.where.id, - args.data, - 'UpdateOrgInviteInput', - 'id', - 'orgInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'updateOrgInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgInvite', - 'deleteOrgInvite', - 'orgInvite', - { - id: args.where.id, - }, - 'DeleteOrgInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'deleteOrgInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgMember.ts b/sdk/constructive-cli/src/public/orm/models/orgMember.ts deleted file mode 100644 index 44f5608f45..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgMember.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMember model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMember, - OrgMemberWithRelations, - OrgMemberSelect, - OrgMemberFilter, - OrgMemberOrderBy, - CreateOrgMemberInput, - UpdateOrgMemberInput, - OrgMemberPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMemberModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMembers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMember: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMember', - document, - variables, - transform: (data: { - orgMembers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMember: data.orgMembers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMember: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMember', - document, - variables, - transform: (data: { - orgMembers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMember: data.orgMembers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMember', - 'createOrgMember', - 'orgMember', - args.select, - args.data, - 'CreateOrgMemberInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'createOrgMember', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMemberPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMember', - 'updateOrgMember', - 'orgMember', - args.select, - args.where.id, - args.data, - 'UpdateOrgMemberInput', - 'id', - 'orgMemberPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'updateOrgMember', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMember', - 'deleteOrgMember', - 'orgMember', - { - id: args.where.id, - }, - 'DeleteOrgMemberInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'deleteOrgMember', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgMemberProfile.ts b/sdk/constructive-cli/src/public/orm/models/orgMemberProfile.ts deleted file mode 100644 index 77357e1745..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgMemberProfile.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMemberProfile model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMemberProfile, - OrgMemberProfileWithRelations, - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy, - CreateOrgMemberProfileInput, - UpdateOrgMemberProfileInput, - OrgMemberProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMemberProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfiles: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfile', - document, - variables, - transform: (data: { - orgMemberProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfile', - document, - variables, - transform: (data: { - orgMemberProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMemberProfile', - 'createOrgMemberProfile', - 'orgMemberProfile', - args.select, - args.data, - 'CreateOrgMemberProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'createOrgMemberProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMemberProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMemberProfile', - 'updateOrgMemberProfile', - 'orgMemberProfile', - args.select, - args.where.id, - args.data, - 'UpdateOrgMemberProfileInput', - 'id', - 'orgMemberProfilePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'updateOrgMemberProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMemberProfile', - 'deleteOrgMemberProfile', - 'orgMemberProfile', - { - id: args.where.id, - }, - 'DeleteOrgMemberProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'deleteOrgMemberProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgMembership.ts b/sdk/constructive-cli/src/public/orm/models/orgMembership.ts deleted file mode 100644 index 623ec08fe2..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgMembership.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMembership model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembership, - OrgMembershipWithRelations, - OrgMembershipSelect, - OrgMembershipFilter, - OrgMembershipOrderBy, - CreateOrgMembershipInput, - UpdateOrgMembershipInput, - OrgMembershipPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberships: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMemberships', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMembership', - document, - variables, - transform: (data: { - orgMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembership: data.orgMemberships?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMembership', - document, - variables, - transform: (data: { - orgMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembership: data.orgMemberships?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembership', - 'createOrgMembership', - 'orgMembership', - args.select, - args.data, - 'CreateOrgMembershipInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'createOrgMembership', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembership', - 'updateOrgMembership', - 'orgMembership', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipInput', - 'id', - 'orgMembershipPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'updateOrgMembership', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembership', - 'deleteOrgMembership', - 'orgMembership', - { - id: args.where.id, - }, - 'DeleteOrgMembershipInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'deleteOrgMembership', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgMembershipDefault.ts b/sdk/constructive-cli/src/public/orm/models/orgMembershipDefault.ts deleted file mode 100644 index 3441315057..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgMembershipDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgMembershipDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembershipDefault, - OrgMembershipDefaultWithRelations, - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy, - CreateOrgMembershipDefaultInput, - UpdateOrgMembershipDefaultInput, - OrgMembershipDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefault', - document, - variables, - transform: (data: { - orgMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefault', - document, - variables, - transform: (data: { - orgMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipDefault', - 'createOrgMembershipDefault', - 'orgMembershipDefault', - args.select, - args.data, - 'CreateOrgMembershipDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'createOrgMembershipDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipDefault', - 'updateOrgMembershipDefault', - 'orgMembershipDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipDefaultInput', - 'id', - 'orgMembershipDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'updateOrgMembershipDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipDefault', - 'deleteOrgMembershipDefault', - 'orgMembershipDefault', - { - id: args.where.id, - }, - 'DeleteOrgMembershipDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'deleteOrgMembershipDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgMembershipSetting.ts b/sdk/constructive-cli/src/public/orm/models/orgMembershipSetting.ts deleted file mode 100644 index 46801fc913..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgMembershipSetting.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgMembershipSetting model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembershipSetting, - OrgMembershipSettingWithRelations, - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy, - CreateOrgMembershipSettingInput, - UpdateOrgMembershipSettingInput, - OrgMembershipSettingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipSettingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSettings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSettings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSetting: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSetting', - document, - variables, - transform: (data: { - orgMembershipSettings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSetting: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSetting', - document, - variables, - transform: (data: { - orgMembershipSettings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipSetting', - 'createOrgMembershipSetting', - 'orgMembershipSetting', - args.select, - args.data, - 'CreateOrgMembershipSettingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'createOrgMembershipSetting', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipSettingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipSetting', - 'updateOrgMembershipSetting', - 'orgMembershipSetting', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipSettingInput', - 'id', - 'orgMembershipSettingPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'updateOrgMembershipSetting', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipSetting', - 'deleteOrgMembershipSetting', - 'orgMembershipSetting', - { - id: args.where.id, - }, - 'DeleteOrgMembershipSettingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'deleteOrgMembershipSetting', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgOwnerGrant.ts b/sdk/constructive-cli/src/public/orm/models/orgOwnerGrant.ts deleted file mode 100644 index 9614dce8fc..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgOwnerGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgOwnerGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgOwnerGrant, - OrgOwnerGrantWithRelations, - OrgOwnerGrantSelect, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy, - CreateOrgOwnerGrantInput, - UpdateOrgOwnerGrantInput, - OrgOwnerGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgOwnerGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrant', - document, - variables, - transform: (data: { - orgOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrant', - document, - variables, - transform: (data: { - orgOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgOwnerGrant', - 'createOrgOwnerGrant', - 'orgOwnerGrant', - args.select, - args.data, - 'CreateOrgOwnerGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'createOrgOwnerGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgOwnerGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgOwnerGrant', - 'updateOrgOwnerGrant', - 'orgOwnerGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgOwnerGrantInput', - 'id', - 'orgOwnerGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'updateOrgOwnerGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgOwnerGrant', - 'deleteOrgOwnerGrant', - 'orgOwnerGrant', - { - id: args.where.id, - }, - 'DeleteOrgOwnerGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'deleteOrgOwnerGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgPermission.ts b/sdk/constructive-cli/src/public/orm/models/orgPermission.ts deleted file mode 100644 index 7bdc906323..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgPermission.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgPermission model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgPermission, - OrgPermissionWithRelations, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, - CreateOrgPermissionInput, - UpdateOrgPermissionInput, - OrgPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermission', - 'createOrgPermission', - 'orgPermission', - args.select, - args.data, - 'CreateOrgPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'createOrgPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermission', - 'updateOrgPermission', - 'orgPermission', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionInput', - 'id', - 'orgPermissionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'updateOrgPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermission', - 'deleteOrgPermission', - 'orgPermission', - { - id: args.where.id, - }, - 'DeleteOrgPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'deleteOrgPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/orgPermissionDefault.ts b/sdk/constructive-cli/src/public/orm/models/orgPermissionDefault.ts deleted file mode 100644 index 8d00b99325..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/orgPermissionDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgPermissionDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgPermissionDefault, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, - CreateOrgPermissionDefaultInput, - UpdateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefault', - 'createOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.data, - 'CreateOrgPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'createOrgPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefault', - 'updateOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultInput', - 'id', - 'orgPermissionDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'updateOrgPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefault', - 'deleteOrgPermissionDefault', - 'orgPermissionDefault', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'deleteOrgPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/phoneNumber.ts b/sdk/constructive-cli/src/public/orm/models/phoneNumber.ts deleted file mode 100644 index 0803908e25..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/phoneNumber.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * PhoneNumber model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PhoneNumber, - PhoneNumberWithRelations, - PhoneNumberSelect, - PhoneNumberFilter, - PhoneNumberOrderBy, - CreatePhoneNumberInput, - UpdatePhoneNumberInput, - PhoneNumberPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PhoneNumberModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumbers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumbers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumber: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumber', - document, - variables, - transform: (data: { - phoneNumbers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumber: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumber', - document, - variables, - transform: (data: { - phoneNumbers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PhoneNumber', - 'createPhoneNumber', - 'phoneNumber', - args.select, - args.data, - 'CreatePhoneNumberInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'createPhoneNumber', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PhoneNumberPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PhoneNumber', - 'updatePhoneNumber', - 'phoneNumber', - args.select, - args.where.id, - args.data, - 'UpdatePhoneNumberInput', - 'id', - 'phoneNumberPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'updatePhoneNumber', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PhoneNumber', - 'deletePhoneNumber', - 'phoneNumber', - { - id: args.where.id, - }, - 'DeletePhoneNumberInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'deletePhoneNumber', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/roleType.ts b/sdk/constructive-cli/src/public/orm/models/roleType.ts deleted file mode 100644 index 8b256a0dc7..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/roleType.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * RoleType model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - RoleType, - RoleTypeWithRelations, - RoleTypeSelect, - RoleTypeFilter, - RoleTypeOrderBy, - CreateRoleTypeInput, - UpdateRoleTypeInput, - RoleTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class RoleTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleType', - document, - variables, - transform: (data: { - roleTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - roleType: data.roleTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: number; - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleType', - document, - variables, - transform: (data: { - roleTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - roleType: data.roleTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'RoleType', - 'createRoleType', - 'roleType', - args.select, - args.data, - 'CreateRoleTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'createRoleType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: number; - }, - RoleTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'RoleType', - 'updateRoleType', - 'roleType', - args.select, - args.where.id, - args.data, - 'UpdateRoleTypeInput', - 'id', - 'roleTypePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'updateRoleType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: number; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'RoleType', - 'deleteRoleType', - 'roleType', - { - id: args.where.id, - }, - 'DeleteRoleTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'deleteRoleType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/user.ts b/sdk/constructive-cli/src/public/orm/models/user.ts deleted file mode 100644 index 8935818350..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/user.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * User model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - User, - UserWithRelations, - UserSelect, - UserFilter, - UserOrderBy, - CreateUserInput, - UpdateUserInput, - UserPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UserModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - users: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'User', - 'users', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'users', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - user: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'User', - 'users', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'user', - document, - variables, - transform: (data: { - users?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - user: data.users?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - user: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'User', - 'users', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'user', - document, - variables, - transform: (data: { - users?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - user: data.users?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'User', - 'createUser', - 'user', - args.select, - args.data, - 'CreateUserInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'createUser', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - UserPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'User', - 'updateUser', - 'user', - args.select, - args.where.id, - args.data, - 'UpdateUserInput', - 'id', - 'userPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'updateUser', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'User', - 'deleteUser', - 'user', - { - id: args.where.id, - }, - 'DeleteUserInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'deleteUser', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/userConnectedAccount.ts b/sdk/constructive-cli/src/public/orm/models/userConnectedAccount.ts deleted file mode 100644 index a2344afdf4..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/userConnectedAccount.ts +++ /dev/null @@ -1,176 +0,0 @@ -/** - * UserConnectedAccount model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - UserConnectedAccount, - UserConnectedAccountWithRelations, - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, - UpdateUserConnectedAccountInput, - UserConnectedAccountPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UserConnectedAccountModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccounts: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccounts', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccount: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccount', - document, - variables, - transform: (data: { - userConnectedAccounts?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccount: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccount', - document, - variables, - transform: (data: { - userConnectedAccounts?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UserConnectedAccount', - 'createUserConnectedAccount', - 'userConnectedAccount', - args.select, - args.data, - 'CreateUserConnectedAccountInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UserConnectedAccount', - fieldName: 'createUserConnectedAccount', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/webauthnCredential.ts b/sdk/constructive-cli/src/public/orm/models/webauthnCredential.ts deleted file mode 100644 index cca4c75cf4..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/webauthnCredential.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * WebauthnCredential model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - WebauthnCredential, - WebauthnCredentialWithRelations, - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy, - CreateWebauthnCredentialInput, - UpdateWebauthnCredentialInput, - WebauthnCredentialPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class WebauthnCredentialModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredentials: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredentials', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredential: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredential', - document, - variables, - transform: (data: { - webauthnCredentials?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredential: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredential', - document, - variables, - transform: (data: { - webauthnCredentials?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'WebauthnCredential', - 'createWebauthnCredential', - 'webauthnCredential', - args.select, - args.data, - 'CreateWebauthnCredentialInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'createWebauthnCredential', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - WebauthnCredentialPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'WebauthnCredential', - 'updateWebauthnCredential', - 'webauthnCredential', - args.select, - args.where.id, - args.data, - 'UpdateWebauthnCredentialInput', - 'id', - 'webauthnCredentialPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'updateWebauthnCredential', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'WebauthnCredential', - 'deleteWebauthnCredential', - 'webauthnCredential', - { - id: args.where.id, - }, - 'DeleteWebauthnCredentialInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'deleteWebauthnCredential', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/mutation/index.ts b/sdk/constructive-cli/src/public/orm/mutation/index.ts deleted file mode 100644 index 4cc4f2caf8..0000000000 --- a/sdk/constructive-cli/src/public/orm/mutation/index.ts +++ /dev/null @@ -1,1512 +0,0 @@ -/** - * 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 { - SendAccountDeletionEmailInput, - SignOutInput, - AcceptDatabaseTransferInput, - CancelDatabaseTransferInput, - RejectDatabaseTransferInput, - DisconnectAccountInput, - RevokeApiKeyInput, - RevokeSessionInput, - VerifyPasswordInput, - VerifyTotpInput, - SubmitAppInviteCodeInput, - SubmitOrgInviteCodeInput, - CheckPasswordInput, - ConfirmDeleteAccountInput, - SetPasswordInput, - VerifyEmailInput, - ConstructBlueprintInput, - ProvisionNewUserInput, - ResetPasswordInput, - ProvisionCheckConstraintInput, - ProvisionUniqueConstraintInput, - ProvisionFullTextSearchInput, - ProvisionIndexInput, - CopyTemplateToBlueprintInput, - ProvisionSpatialRelationInput, - SignInCrossOriginInput, - BootstrapUserInput, - SignUpInput, - SignInInput, - ProvisionRelationInput, - SetFieldOrderInput, - ApplyRlsInput, - ProvisionDatabaseWithUserInput, - CreateUserDatabaseInput, - ExtendTokenExpiresInput, - CreateApiKeyInput, - RequestCrossOriginTokenInput, - ProvisionTableInput, - SendVerificationEmailInput, - ForgotPasswordInput, - ProvisionBucketInput, - SendAccountDeletionEmailPayload, - SignOutPayload, - AcceptDatabaseTransferPayload, - CancelDatabaseTransferPayload, - RejectDatabaseTransferPayload, - DisconnectAccountPayload, - RevokeApiKeyPayload, - RevokeSessionPayload, - VerifyPasswordPayload, - VerifyTotpPayload, - SubmitAppInviteCodePayload, - SubmitOrgInviteCodePayload, - CheckPasswordPayload, - ConfirmDeleteAccountPayload, - SetPasswordPayload, - VerifyEmailPayload, - ConstructBlueprintPayload, - ProvisionNewUserPayload, - ResetPasswordPayload, - ProvisionCheckConstraintPayload, - ProvisionUniqueConstraintPayload, - ProvisionFullTextSearchPayload, - ProvisionIndexPayload, - CopyTemplateToBlueprintPayload, - ProvisionSpatialRelationPayload, - SignInCrossOriginPayload, - BootstrapUserPayload, - SignUpPayload, - SignInPayload, - ProvisionRelationPayload, - SetFieldOrderPayload, - ApplyRlsPayload, - ProvisionDatabaseWithUserPayload, - CreateUserDatabasePayload, - ExtendTokenExpiresPayload, - CreateApiKeyPayload, - RequestCrossOriginTokenPayload, - ProvisionTablePayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - ProvisionBucketPayload, - SendAccountDeletionEmailPayloadSelect, - SignOutPayloadSelect, - AcceptDatabaseTransferPayloadSelect, - CancelDatabaseTransferPayloadSelect, - RejectDatabaseTransferPayloadSelect, - DisconnectAccountPayloadSelect, - RevokeApiKeyPayloadSelect, - RevokeSessionPayloadSelect, - VerifyPasswordPayloadSelect, - VerifyTotpPayloadSelect, - SubmitAppInviteCodePayloadSelect, - SubmitOrgInviteCodePayloadSelect, - CheckPasswordPayloadSelect, - ConfirmDeleteAccountPayloadSelect, - SetPasswordPayloadSelect, - VerifyEmailPayloadSelect, - ConstructBlueprintPayloadSelect, - ProvisionNewUserPayloadSelect, - ResetPasswordPayloadSelect, - ProvisionCheckConstraintPayloadSelect, - ProvisionUniqueConstraintPayloadSelect, - ProvisionFullTextSearchPayloadSelect, - ProvisionIndexPayloadSelect, - CopyTemplateToBlueprintPayloadSelect, - ProvisionSpatialRelationPayloadSelect, - SignInCrossOriginPayloadSelect, - BootstrapUserPayloadSelect, - SignUpPayloadSelect, - SignInPayloadSelect, - ProvisionRelationPayloadSelect, - SetFieldOrderPayloadSelect, - ApplyRlsPayloadSelect, - ProvisionDatabaseWithUserPayloadSelect, - CreateUserDatabasePayloadSelect, - ExtendTokenExpiresPayloadSelect, - CreateApiKeyPayloadSelect, - RequestCrossOriginTokenPayloadSelect, - ProvisionTablePayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - ProvisionBucketPayloadSelect, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface SendAccountDeletionEmailVariables { - input: SendAccountDeletionEmailInput; -} -export interface SignOutVariables { - input: SignOutInput; -} -export interface AcceptDatabaseTransferVariables { - input: AcceptDatabaseTransferInput; -} -export interface CancelDatabaseTransferVariables { - input: CancelDatabaseTransferInput; -} -export interface RejectDatabaseTransferVariables { - input: RejectDatabaseTransferInput; -} -export interface DisconnectAccountVariables { - input: DisconnectAccountInput; -} -export interface RevokeApiKeyVariables { - input: RevokeApiKeyInput; -} -export interface RevokeSessionVariables { - input: RevokeSessionInput; -} -export interface VerifyPasswordVariables { - input: VerifyPasswordInput; -} -export interface VerifyTotpVariables { - input: VerifyTotpInput; -} -export interface SubmitAppInviteCodeVariables { - input: SubmitAppInviteCodeInput; -} -export interface SubmitOrgInviteCodeVariables { - input: SubmitOrgInviteCodeInput; -} -export interface CheckPasswordVariables { - input: CheckPasswordInput; -} -export interface ConfirmDeleteAccountVariables { - input: ConfirmDeleteAccountInput; -} -export interface SetPasswordVariables { - input: SetPasswordInput; -} -export interface VerifyEmailVariables { - input: VerifyEmailInput; -} -/** - * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - */ -export interface ConstructBlueprintVariables { - input: ConstructBlueprintInput; -} -export interface ProvisionNewUserVariables { - input: ProvisionNewUserInput; -} -export interface ResetPasswordVariables { - input: ResetPasswordInput; -} -/** - * Variables for provisionCheckConstraint - * Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - */ -export interface ProvisionCheckConstraintVariables { - input: ProvisionCheckConstraintInput; -} -/** - * Variables for provisionUniqueConstraint - * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - */ -export interface ProvisionUniqueConstraintVariables { - input: ProvisionUniqueConstraintInput; -} -/** - * Variables for provisionFullTextSearch - * Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - */ -export interface ProvisionFullTextSearchVariables { - input: ProvisionFullTextSearchInput; -} -/** - * Variables for provisionIndex - * Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - */ -export interface ProvisionIndexVariables { - input: ProvisionIndexInput; -} -/** - * Variables for copyTemplateToBlueprint - * 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. - */ -export interface CopyTemplateToBlueprintVariables { - input: CopyTemplateToBlueprintInput; -} -/** - * Variables for provisionSpatialRelation - * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - */ -export interface ProvisionSpatialRelationVariables { - input: ProvisionSpatialRelationInput; -} -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} -export interface SignUpVariables { - input: SignUpInput; -} -export interface SignInVariables { - input: SignInInput; -} -/** - * Variables for provisionRelation - * Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - */ -export interface ProvisionRelationVariables { - input: ProvisionRelationInput; -} -export interface SetFieldOrderVariables { - input: SetFieldOrderInput; -} -export interface ApplyRlsVariables { - input: ApplyRlsInput; -} -export interface ProvisionDatabaseWithUserVariables { - input: ProvisionDatabaseWithUserInput; -} -/** - * 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) - -Returns the database_id UUID of the newly created database. - -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 - */ -export interface CreateUserDatabaseVariables { - input: CreateUserDatabaseInput; -} -export interface ExtendTokenExpiresVariables { - input: ExtendTokenExpiresInput; -} -export interface CreateApiKeyVariables { - input: CreateApiKeyInput; -} -export interface RequestCrossOriginTokenVariables { - input: RequestCrossOriginTokenInput; -} -/** - * Variables for provisionTable - * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - */ -export interface ProvisionTableVariables { - input: ProvisionTableInput; -} -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -/** - * 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 { - sendAccountDeletionEmail: ( - args: SendAccountDeletionEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendAccountDeletionEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendAccountDeletionEmail', - fieldName: 'sendAccountDeletionEmail', - ...buildCustomDocument( - 'mutation', - 'SendAccountDeletionEmail', - 'sendAccountDeletionEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendAccountDeletionEmailInput!', - }, - ], - connectionFieldsMap, - 'SendAccountDeletionEmailPayload' - ), - }), - signOut: ( - args: SignOutVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signOut: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignOut', - fieldName: 'signOut', - ...buildCustomDocument( - 'mutation', - 'SignOut', - 'signOut', - options.select, - args, - [ - { - name: 'input', - type: 'SignOutInput!', - }, - ], - connectionFieldsMap, - 'SignOutPayload' - ), - }), - acceptDatabaseTransfer: ( - args: AcceptDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - acceptDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AcceptDatabaseTransfer', - fieldName: 'acceptDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'AcceptDatabaseTransfer', - 'acceptDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'AcceptDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'AcceptDatabaseTransferPayload' - ), - }), - cancelDatabaseTransfer: ( - args: CancelDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - cancelDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CancelDatabaseTransfer', - fieldName: 'cancelDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'CancelDatabaseTransfer', - 'cancelDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'CancelDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'CancelDatabaseTransferPayload' - ), - }), - rejectDatabaseTransfer: ( - args: RejectDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - rejectDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RejectDatabaseTransfer', - fieldName: 'rejectDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'RejectDatabaseTransfer', - 'rejectDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'RejectDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'RejectDatabaseTransferPayload' - ), - }), - disconnectAccount: ( - args: DisconnectAccountVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - disconnectAccount: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'DisconnectAccount', - fieldName: 'disconnectAccount', - ...buildCustomDocument( - 'mutation', - 'DisconnectAccount', - 'disconnectAccount', - options.select, - args, - [ - { - name: 'input', - type: 'DisconnectAccountInput!', - }, - ], - connectionFieldsMap, - 'DisconnectAccountPayload' - ), - }), - revokeApiKey: ( - args: RevokeApiKeyVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeApiKey: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeApiKey', - fieldName: 'revokeApiKey', - ...buildCustomDocument( - 'mutation', - 'RevokeApiKey', - 'revokeApiKey', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeApiKeyInput!', - }, - ], - connectionFieldsMap, - 'RevokeApiKeyPayload' - ), - }), - revokeSession: ( - args: RevokeSessionVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeSession: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeSession', - fieldName: 'revokeSession', - ...buildCustomDocument( - 'mutation', - 'RevokeSession', - 'revokeSession', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeSessionInput!', - }, - ], - connectionFieldsMap, - 'RevokeSessionPayload' - ), - }), - verifyPassword: ( - args: VerifyPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyPassword', - fieldName: 'verifyPassword', - ...buildCustomDocument( - 'mutation', - 'VerifyPassword', - 'verifyPassword', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyPasswordInput!', - }, - ], - connectionFieldsMap, - 'VerifyPasswordPayload' - ), - }), - verifyTotp: ( - args: VerifyTotpVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyTotp: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyTotp', - fieldName: 'verifyTotp', - ...buildCustomDocument( - 'mutation', - 'VerifyTotp', - 'verifyTotp', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyTotpInput!', - }, - ], - connectionFieldsMap, - 'VerifyTotpPayload' - ), - }), - submitAppInviteCode: ( - args: SubmitAppInviteCodeVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - submitAppInviteCode: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SubmitAppInviteCode', - fieldName: 'submitAppInviteCode', - ...buildCustomDocument( - 'mutation', - 'SubmitAppInviteCode', - 'submitAppInviteCode', - options.select, - args, - [ - { - name: 'input', - type: 'SubmitAppInviteCodeInput!', - }, - ], - connectionFieldsMap, - 'SubmitAppInviteCodePayload' - ), - }), - submitOrgInviteCode: ( - args: SubmitOrgInviteCodeVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - submitOrgInviteCode: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SubmitOrgInviteCode', - fieldName: 'submitOrgInviteCode', - ...buildCustomDocument( - 'mutation', - 'SubmitOrgInviteCode', - 'submitOrgInviteCode', - options.select, - args, - [ - { - name: 'input', - type: 'SubmitOrgInviteCodeInput!', - }, - ], - connectionFieldsMap, - 'SubmitOrgInviteCodePayload' - ), - }), - checkPassword: ( - args: CheckPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - checkPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CheckPassword', - fieldName: 'checkPassword', - ...buildCustomDocument( - 'mutation', - 'CheckPassword', - 'checkPassword', - options.select, - args, - [ - { - name: 'input', - type: 'CheckPasswordInput!', - }, - ], - connectionFieldsMap, - 'CheckPasswordPayload' - ), - }), - confirmDeleteAccount: ( - args: ConfirmDeleteAccountVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmDeleteAccount: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmDeleteAccount', - fieldName: 'confirmDeleteAccount', - ...buildCustomDocument( - 'mutation', - 'ConfirmDeleteAccount', - 'confirmDeleteAccount', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmDeleteAccountInput!', - }, - ], - connectionFieldsMap, - 'ConfirmDeleteAccountPayload' - ), - }), - setPassword: ( - args: SetPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetPassword', - fieldName: 'setPassword', - ...buildCustomDocument( - 'mutation', - 'SetPassword', - 'setPassword', - options.select, - args, - [ - { - name: 'input', - type: 'SetPasswordInput!', - }, - ], - connectionFieldsMap, - 'SetPasswordPayload' - ), - }), - verifyEmail: ( - args: VerifyEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyEmail', - fieldName: 'verifyEmail', - ...buildCustomDocument( - 'mutation', - 'VerifyEmail', - 'verifyEmail', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyEmailInput!', - }, - ], - connectionFieldsMap, - 'VerifyEmailPayload' - ), - }), - constructBlueprint: ( - args: ConstructBlueprintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - constructBlueprint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConstructBlueprint', - fieldName: 'constructBlueprint', - ...buildCustomDocument( - 'mutation', - 'ConstructBlueprint', - 'constructBlueprint', - options.select, - args, - [ - { - name: 'input', - type: 'ConstructBlueprintInput!', - }, - ], - connectionFieldsMap, - 'ConstructBlueprintPayload' - ), - }), - provisionNewUser: ( - args: ProvisionNewUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionNewUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionNewUser', - fieldName: 'provisionNewUser', - ...buildCustomDocument( - 'mutation', - 'ProvisionNewUser', - 'provisionNewUser', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionNewUserInput!', - }, - ], - connectionFieldsMap, - 'ProvisionNewUserPayload' - ), - }), - resetPassword: ( - args: ResetPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resetPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ResetPassword', - fieldName: 'resetPassword', - ...buildCustomDocument( - 'mutation', - 'ResetPassword', - 'resetPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ResetPasswordInput!', - }, - ], - connectionFieldsMap, - 'ResetPasswordPayload' - ), - }), - provisionCheckConstraint: ( - args: ProvisionCheckConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionCheckConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionCheckConstraint', - fieldName: 'provisionCheckConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionCheckConstraint', - 'provisionCheckConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionCheckConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionCheckConstraintPayload' - ), - }), - provisionUniqueConstraint: ( - args: ProvisionUniqueConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionUniqueConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionUniqueConstraint', - fieldName: 'provisionUniqueConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionUniqueConstraint', - 'provisionUniqueConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionUniqueConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionUniqueConstraintPayload' - ), - }), - provisionFullTextSearch: ( - args: ProvisionFullTextSearchVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionFullTextSearch: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionFullTextSearch', - fieldName: 'provisionFullTextSearch', - ...buildCustomDocument( - 'mutation', - 'ProvisionFullTextSearch', - 'provisionFullTextSearch', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionFullTextSearchInput!', - }, - ], - connectionFieldsMap, - 'ProvisionFullTextSearchPayload' - ), - }), - provisionIndex: ( - args: ProvisionIndexVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionIndex: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionIndex', - fieldName: 'provisionIndex', - ...buildCustomDocument( - 'mutation', - 'ProvisionIndex', - 'provisionIndex', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionIndexInput!', - }, - ], - connectionFieldsMap, - 'ProvisionIndexPayload' - ), - }), - copyTemplateToBlueprint: ( - args: CopyTemplateToBlueprintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - copyTemplateToBlueprint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CopyTemplateToBlueprint', - fieldName: 'copyTemplateToBlueprint', - ...buildCustomDocument( - 'mutation', - 'CopyTemplateToBlueprint', - 'copyTemplateToBlueprint', - options.select, - args, - [ - { - name: 'input', - type: 'CopyTemplateToBlueprintInput!', - }, - ], - connectionFieldsMap, - 'CopyTemplateToBlueprintPayload' - ), - }), - provisionSpatialRelation: ( - args: ProvisionSpatialRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionSpatialRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionSpatialRelation', - fieldName: 'provisionSpatialRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionSpatialRelation', - 'provisionSpatialRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionSpatialRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionSpatialRelationPayload' - ), - }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), - bootstrapUser: ( - args: BootstrapUserVariables, - options: { - 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' - ), - }), - signUp: ( - args: SignUpVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signUp: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', - ...buildCustomDocument( - 'mutation', - 'SignUp', - 'signUp', - options.select, - args, - [ - { - name: 'input', - type: 'SignUpInput!', - }, - ], - connectionFieldsMap, - 'SignUpPayload' - ), - }), - signIn: ( - args: SignInVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signIn: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', - ...buildCustomDocument( - 'mutation', - 'SignIn', - 'signIn', - options.select, - args, - [ - { - name: 'input', - type: 'SignInInput!', - }, - ], - connectionFieldsMap, - 'SignInPayload' - ), - }), - provisionRelation: ( - args: ProvisionRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionRelation', - fieldName: 'provisionRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionRelation', - 'provisionRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionRelationPayload' - ), - }), - setFieldOrder: ( - args: SetFieldOrderVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setFieldOrder: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetFieldOrder', - fieldName: 'setFieldOrder', - ...buildCustomDocument( - 'mutation', - 'SetFieldOrder', - 'setFieldOrder', - options.select, - args, - [ - { - name: 'input', - type: 'SetFieldOrderInput!', - }, - ], - connectionFieldsMap, - 'SetFieldOrderPayload' - ), - }), - applyRls: ( - args: ApplyRlsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - applyRls: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ApplyRls', - fieldName: 'applyRls', - ...buildCustomDocument( - 'mutation', - 'ApplyRls', - 'applyRls', - options.select, - args, - [ - { - name: 'input', - type: 'ApplyRlsInput!', - }, - ], - connectionFieldsMap, - 'ApplyRlsPayload' - ), - }), - 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' - ), - }), - createUserDatabase: ( - args: CreateUserDatabaseVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createUserDatabase: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateUserDatabase', - fieldName: 'createUserDatabase', - ...buildCustomDocument( - 'mutation', - 'CreateUserDatabase', - 'createUserDatabase', - options.select, - args, - [ - { - name: 'input', - type: 'CreateUserDatabaseInput!', - }, - ], - connectionFieldsMap, - 'CreateUserDatabasePayload' - ), - }), - extendTokenExpires: ( - args: ExtendTokenExpiresVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - extendTokenExpires: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ExtendTokenExpires', - fieldName: 'extendTokenExpires', - ...buildCustomDocument( - 'mutation', - 'ExtendTokenExpires', - 'extendTokenExpires', - options.select, - args, - [ - { - name: 'input', - type: 'ExtendTokenExpiresInput!', - }, - ], - connectionFieldsMap, - 'ExtendTokenExpiresPayload' - ), - }), - createApiKey: ( - args: CreateApiKeyVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createApiKey: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateApiKey', - fieldName: 'createApiKey', - ...buildCustomDocument( - 'mutation', - 'CreateApiKey', - 'createApiKey', - options.select, - args, - [ - { - name: 'input', - type: 'CreateApiKeyInput!', - }, - ], - connectionFieldsMap, - 'CreateApiKeyPayload' - ), - }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', - ...buildCustomDocument( - 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', - options.select, - args, - [ - { - name: 'input', - type: 'RequestCrossOriginTokenInput!', - }, - ], - connectionFieldsMap, - 'RequestCrossOriginTokenPayload' - ), - }), - provisionTable: ( - args: ProvisionTableVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionTable: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', - ...buildCustomDocument( - 'mutation', - 'ProvisionTable', - 'provisionTable', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionTableInput!', - }, - ], - connectionFieldsMap, - 'ProvisionTablePayload' - ), - }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - 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/public/orm/query/index.ts b/sdk/constructive-cli/src/public/orm/query/index.ts deleted file mode 100644 index 52b0724d6e..0000000000 --- a/sdk/constructive-cli/src/public/orm/query/index.ts +++ /dev/null @@ -1,615 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { - User, - UserSelect, - AppPermissionConnection, - OrgPermissionConnection, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface RequireStepUpVariables { - stepUpType?: string; -} -export interface AppPermissionsGetPaddedMaskVariables { - mask?: string; -} -export interface OrgPermissionsGetPaddedMaskVariables { - mask?: string; -} -export interface ApplyRegistryDefaultsVariables { - nodeType?: string; - data?: unknown; -} -/** - * Variables for resolveBlueprintField - * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - */ -export interface ResolveBlueprintFieldVariables { - databaseId?: string; - tableId?: string; - fieldName?: string; -} -/** - * Variables for resolveBlueprintTable - * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - */ -export interface ResolveBlueprintTableVariables { - databaseId?: string; - tableName?: string; - schemaName?: string; - tableMap?: unknown; - defaultSchemaId?: string; -} -export interface OrgIsManagerOfVariables { - pEntityId?: string; - pManagerId?: string; - pUserId?: string; - pMaxDepth?: number; -} -export interface AppPermissionsGetMaskVariables { - ids?: string[]; -} -export interface OrgPermissionsGetMaskVariables { - ids?: string[]; -} -export interface AppPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface AppPermissionsGetByMaskVariables { - mask?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface OrgPermissionsGetByMaskVariables { - mask?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - currentUserId: (options?: { select?: Record }) => - new QueryBuilder<{ - currentUserId: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUserId', - fieldName: 'currentUserId', - ...buildCustomDocument( - 'query', - 'CurrentUserId', - 'currentUserId', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - currentUserAgent: (options?: { select?: Record }) => - new QueryBuilder<{ - currentUserAgent: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUserAgent', - fieldName: 'currentUserAgent', - ...buildCustomDocument( - 'query', - 'CurrentUserAgent', - 'currentUserAgent', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - currentIpAddress: (options?: { select?: Record }) => - new QueryBuilder<{ - currentIpAddress: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentIpAddress', - fieldName: 'currentIpAddress', - ...buildCustomDocument( - 'query', - 'CurrentIpAddress', - 'currentIpAddress', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - requireStepUp: ( - args: RequireStepUpVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - requireStepUp: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'RequireStepUp', - fieldName: 'requireStepUp', - ...buildCustomDocument( - 'query', - 'RequireStepUp', - 'requireStepUp', - options?.select, - args, - [ - { - name: 'stepUpType', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetPaddedMask: ( - args: AppPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetPaddedMask', - fieldName: 'appPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetPaddedMask', - 'appPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetPaddedMask: ( - args: OrgPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetPaddedMask', - fieldName: 'orgPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetPaddedMask', - 'orgPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - applyRegistryDefaults: ( - args: ApplyRegistryDefaultsVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - applyRegistryDefaults: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApplyRegistryDefaults', - fieldName: 'applyRegistryDefaults', - ...buildCustomDocument( - 'query', - 'ApplyRegistryDefaults', - 'applyRegistryDefaults', - options?.select, - args, - [ - { - name: 'nodeType', - type: 'String', - }, - { - name: 'data', - type: 'JSON', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintField: ( - args: ResolveBlueprintFieldVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintField: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintField', - fieldName: 'resolveBlueprintField', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintField', - 'resolveBlueprintField', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'tableId', - type: 'UUID', - }, - { - name: 'fieldName', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintTable: ( - args: ResolveBlueprintTableVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintTable: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintTable', - fieldName: 'resolveBlueprintTable', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintTable', - 'resolveBlueprintTable', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'tableName', - type: 'String', - }, - { - name: 'schemaName', - type: 'String', - }, - { - name: 'tableMap', - type: 'JSON', - }, - { - name: 'defaultSchemaId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgIsManagerOf: ( - args: OrgIsManagerOfVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgIsManagerOf: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'OrgIsManagerOf', - fieldName: 'orgIsManagerOf', - ...buildCustomDocument( - 'query', - 'OrgIsManagerOf', - 'orgIsManagerOf', - options?.select, - args, - [ - { - name: 'pEntityId', - type: 'UUID', - }, - { - name: 'pManagerId', - type: 'UUID', - }, - { - name: 'pUserId', - type: 'UUID', - }, - { - name: 'pMaxDepth', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMask: ( - args: AppPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMask', - fieldName: 'appPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMask', - 'appPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMask: ( - args: OrgPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMask', - fieldName: 'orgPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMask', - 'orgPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMaskByNames: ( - args: AppPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMaskByNames', - fieldName: 'appPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMaskByNames', - 'appPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMaskByNames: ( - args: OrgPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMaskByNames', - fieldName: 'orgPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMaskByNames', - 'orgPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - currentUser: ( - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - currentUser: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUser', - fieldName: 'currentUser', - ...buildCustomDocument( - 'query', - 'CurrentUser', - 'currentUser', - options.select, - undefined, - [], - connectionFieldsMap, - 'User' - ), - }), - }; -} diff --git a/sdk/constructive-cli/src/usage/README.md b/sdk/constructive-cli/src/usage/README.md new file mode 100644 index 0000000000..00bdfd5968 --- /dev/null +++ b/sdk/constructive-cli/src/usage/README.md @@ -0,0 +1,47 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 18 +- **Custom queries:** 0 +- **Custom mutations:** 5 + +**Generators:** ORM, CLI + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### CLI Commands (`./cli`) + +inquirerer-based CLI commands for `csdk`. + +See [cli/README.md](./cli/README.md) for command reference. + +--- + +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/usage/cli/README.md b/sdk/constructive-cli/src/usage/cli/README.md new file mode 100644 index 0000000000..9b5eef0742 --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/README.md @@ -0,0 +1,692 @@ +# 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) | +| `app-limit-caps-default` | appLimitCapsDefault CRUD operations | +| `org-limit-caps-default` | orgLimitCapsDefault CRUD operations | +| `app-limit-cap` | appLimitCap CRUD operations | +| `org-limit-cap` | orgLimitCap CRUD operations | +| `app-limit-default` | appLimitDefault CRUD operations | +| `app-limit-credit` | appLimitCredit CRUD operations | +| `app-limit-credit-code-item` | appLimitCreditCodeItem CRUD operations | +| `app-limit-credit-redemption` | appLimitCreditRedemption CRUD operations | +| `org-limit-default` | orgLimitDefault CRUD operations | +| `org-limit-credit` | orgLimitCredit CRUD operations | +| `app-limit-warning` | appLimitWarning CRUD operations | +| `org-limit-warning` | orgLimitWarning CRUD operations | +| `app-limit-credit-code` | appLimitCreditCode CRUD operations | +| `app-limit-event` | appLimitEvent CRUD operations | +| `org-limit-event` | orgLimitEvent CRUD operations | +| `app-limit` | appLimit CRUD operations | +| `org-limit-aggregate` | orgLimitAggregate CRUD operations | +| `org-limit` | orgLimit CRUD operations | +| `seed-app-limit-caps-defaults` | seedAppLimitCapsDefaults | +| `seed-app-limit-defaults` | seedAppLimitDefaults | +| `seed-org-limit-caps-defaults` | seedOrgLimitCapsDefaults | +| `seed-org-limit-defaults` | seedOrgLimitDefaults | +| `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 + +### `app-limit-caps-default` + +CRUD operations for AppLimitCapsDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCapsDefault records | +| `find-first` | Find first matching appLimitCapsDefault record | +| `get` | Get a appLimitCapsDefault by id | +| `create` | Create a new appLimitCapsDefault | +| `update` | Update an existing appLimitCapsDefault | +| `delete` | Delete a appLimitCapsDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `max` | BigInt | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max` + +### `org-limit-caps-default` + +CRUD operations for OrgLimitCapsDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitCapsDefault records | +| `find-first` | Find first matching orgLimitCapsDefault record | +| `get` | Get a orgLimitCapsDefault by id | +| `create` | Create a new orgLimitCapsDefault | +| `update` | Update an existing orgLimitCapsDefault | +| `delete` | Delete a orgLimitCapsDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `max` | BigInt | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max` + +### `app-limit-cap` + +CRUD operations for AppLimitCap records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCap records | +| `find-first` | Find first matching appLimitCap record | +| `get` | Get a appLimitCap by id | +| `create` | Create a new appLimitCap | +| `update` | Update an existing appLimitCap | +| `delete` | Delete a appLimitCap | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `entityId` | UUID | +| `max` | BigInt | + +**Required create fields:** `name`, `entityId` +**Optional create fields (backend defaults):** `max` + +### `org-limit-cap` + +CRUD operations for OrgLimitCap records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitCap records | +| `find-first` | Find first matching orgLimitCap record | +| `get` | Get a orgLimitCap by id | +| `create` | Create a new orgLimitCap | +| `update` | Update an existing orgLimitCap | +| `delete` | Delete a orgLimitCap | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `entityId` | UUID | +| `max` | BigInt | + +**Required create fields:** `name`, `entityId` +**Optional create fields (backend defaults):** `max` + +### `app-limit-default` + +CRUD operations for AppLimitDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitDefault records | +| `find-first` | Find first matching appLimitDefault record | +| `get` | Get a appLimitDefault by id | +| `create` | Create a new appLimitDefault | +| `update` | Update an existing appLimitDefault | +| `delete` | Delete a appLimitDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `max` | BigInt | +| `softMax` | BigInt | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max`, `softMax` + +### `app-limit-credit` + +CRUD operations for AppLimitCredit records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCredit records | +| `find-first` | Find first matching appLimitCredit record | +| `get` | Get a appLimitCredit by id | +| `create` | Create a new appLimitCredit | +| `update` | Update an existing appLimitCredit | +| `delete` | Delete a appLimitCredit | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `defaultLimitId` | UUID | +| `actorId` | UUID | +| `amount` | BigInt | +| `creditType` | String | +| `reason` | String | + +**Required create fields:** `defaultLimitId`, `amount` +**Optional create fields (backend defaults):** `actorId`, `creditType`, `reason` + +### `app-limit-credit-code-item` + +CRUD operations for AppLimitCreditCodeItem records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCreditCodeItem records | +| `find-first` | Find first matching appLimitCreditCodeItem record | +| `get` | Get a appLimitCreditCodeItem by id | +| `create` | Create a new appLimitCreditCodeItem | +| `update` | Update an existing appLimitCreditCodeItem | +| `delete` | Delete a appLimitCreditCodeItem | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `creditCodeId` | UUID | +| `defaultLimitId` | UUID | +| `amount` | BigInt | +| `creditType` | String | + +**Required create fields:** `creditCodeId`, `defaultLimitId`, `amount` +**Optional create fields (backend defaults):** `creditType` + +### `app-limit-credit-redemption` + +CRUD operations for AppLimitCreditRedemption records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCreditRedemption records | +| `find-first` | Find first matching appLimitCreditRedemption record | +| `get` | Get a appLimitCreditRedemption by id | +| `create` | Create a new appLimitCreditRedemption | +| `update` | Update an existing appLimitCreditRedemption | +| `delete` | Delete a appLimitCreditRedemption | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `creditCodeId` | UUID | +| `entityId` | UUID | +| `organizationId` | UUID | +| `entityType` | String | + +**Required create fields:** `creditCodeId`, `entityId` +**Optional create fields (backend defaults):** `organizationId`, `entityType` + +### `org-limit-default` + +CRUD operations for OrgLimitDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitDefault records | +| `find-first` | Find first matching orgLimitDefault record | +| `get` | Get a orgLimitDefault by id | +| `create` | Create a new orgLimitDefault | +| `update` | Update an existing orgLimitDefault | +| `delete` | Delete a orgLimitDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `max` | BigInt | +| `softMax` | BigInt | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max`, `softMax` + +### `org-limit-credit` + +CRUD operations for OrgLimitCredit records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitCredit records | +| `find-first` | Find first matching orgLimitCredit record | +| `get` | Get a orgLimitCredit by id | +| `create` | Create a new orgLimitCredit | +| `update` | Update an existing orgLimitCredit | +| `delete` | Delete a orgLimitCredit | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `defaultLimitId` | UUID | +| `actorId` | UUID | +| `entityId` | UUID | +| `organizationId` | UUID | +| `entityType` | String | +| `amount` | BigInt | +| `creditType` | String | +| `reason` | String | + +**Required create fields:** `defaultLimitId`, `amount` +**Optional create fields (backend defaults):** `actorId`, `entityId`, `organizationId`, `entityType`, `creditType`, `reason` + +### `app-limit-warning` + +CRUD operations for AppLimitWarning records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitWarning records | +| `find-first` | Find first matching appLimitWarning record | +| `get` | Get a appLimitWarning by id | +| `create` | Create a new appLimitWarning | +| `update` | Update an existing appLimitWarning | +| `delete` | Delete a appLimitWarning | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `warningType` | String | +| `thresholdValue` | BigInt | +| `taskIdentifier` | String | + +**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` + +### `org-limit-warning` + +CRUD operations for OrgLimitWarning records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitWarning records | +| `find-first` | Find first matching orgLimitWarning record | +| `get` | Get a orgLimitWarning by id | +| `create` | Create a new orgLimitWarning | +| `update` | Update an existing orgLimitWarning | +| `delete` | Delete a orgLimitWarning | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `warningType` | String | +| `thresholdValue` | BigInt | +| `taskIdentifier` | String | +| `entityId` | UUID | + +**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` +**Optional create fields (backend defaults):** `entityId` + +### `app-limit-credit-code` + +CRUD operations for AppLimitCreditCode records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCreditCode records | +| `find-first` | Find first matching appLimitCreditCode record | +| `get` | Get a appLimitCreditCode by id | +| `create` | Create a new appLimitCreditCode | +| `update` | Update an existing appLimitCreditCode | +| `delete` | Delete a appLimitCreditCode | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `code` | String | +| `maxRedemptions` | Int | +| `currentRedemptions` | Int | +| `expiresAt` | Datetime | + +**Required create fields:** `code` +**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` + +### `app-limit-event` + +CRUD operations for AppLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitEvent records | +| `find-first` | Find first matching appLimitEvent record | +| `get` | Get a appLimitEvent by id | +| `create` | Create a new appLimitEvent | +| `update` | Update an existing appLimitEvent | +| `delete` | Delete a appLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `organizationId` | UUID | +| `entityType` | String | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `organizationId`, `entityType`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + +### `org-limit-event` + +CRUD operations for OrgLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitEvent records | +| `find-first` | Find first matching orgLimitEvent record | +| `get` | Get a orgLimitEvent by id | +| `create` | Create a new orgLimitEvent | +| `update` | Update an existing orgLimitEvent | +| `delete` | Delete a orgLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `organizationId` | UUID | +| `entityType` | String | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `organizationId`, `entityType`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + +### `app-limit` + +CRUD operations for AppLimit records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimit records | +| `find-first` | Find first matching appLimit record | +| `get` | Get a appLimit by id | +| `create` | Create a new appLimit | +| `update` | Update an existing appLimit | +| `delete` | Delete a appLimit | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | +| `planMax` | BigInt | +| `purchasedCredits` | BigInt | +| `periodCredits` | BigInt | +| `organizationId` | UUID | +| `entityType` | String | + +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `organizationId`, `entityType` + +### `org-limit-aggregate` + +CRUD operations for OrgLimitAggregate records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitAggregate records | +| `find-first` | Find first matching orgLimitAggregate record | +| `get` | Get a orgLimitAggregate by id | +| `create` | Create a new orgLimitAggregate | +| `update` | Update an existing orgLimitAggregate | +| `delete` | Delete a orgLimitAggregate | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `entityId` | UUID | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | +| `planMax` | BigInt | +| `purchasedCredits` | BigInt | +| `periodCredits` | BigInt | +| `reserved` | BigInt | +| `organizationId` | UUID | +| `entityType` | String | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `reserved`, `organizationId`, `entityType` + +### `org-limit` + +CRUD operations for OrgLimit records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimit records | +| `find-first` | Find first matching orgLimit record | +| `get` | Get a orgLimit by id | +| `create` | Create a new orgLimit | +| `update` | Update an existing orgLimit | +| `delete` | Delete a orgLimit | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | +| `planMax` | BigInt | +| `purchasedCredits` | BigInt | +| `periodCredits` | BigInt | +| `entityId` | UUID | +| `organizationId` | UUID | +| `entityType` | String | + +**Required create fields:** `actorId`, `entityId` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits`, `organizationId`, `entityType` + +## Custom Operations + +### `seed-app-limit-caps-defaults` + +seedAppLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.defaults` | JSON | + +### `seed-app-limit-defaults` + +seedAppLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.defaults` | JSON | + +### `seed-org-limit-caps-defaults` + +seedOrgLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.defaults` | JSON | + +### `seed-org-limit-defaults` + +seedOrgLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.defaults` | JSON | + +### `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/usage/cli/commands.ts b/sdk/constructive-cli/src/usage/cli/commands.ts new file mode 100644 index 0000000000..c4d75924ed --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands.ts @@ -0,0 +1,99 @@ +/** + * 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 appLimitCapsDefaultCmd from './commands/app-limit-caps-default'; +import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default'; +import appLimitCapCmd from './commands/app-limit-cap'; +import orgLimitCapCmd from './commands/org-limit-cap'; +import appLimitDefaultCmd from './commands/app-limit-default'; +import appLimitCreditCmd from './commands/app-limit-credit'; +import appLimitCreditCodeItemCmd from './commands/app-limit-credit-code-item'; +import appLimitCreditRedemptionCmd from './commands/app-limit-credit-redemption'; +import orgLimitDefaultCmd from './commands/org-limit-default'; +import orgLimitCreditCmd from './commands/org-limit-credit'; +import appLimitWarningCmd from './commands/app-limit-warning'; +import orgLimitWarningCmd from './commands/org-limit-warning'; +import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; +import appLimitEventCmd from './commands/app-limit-event'; +import orgLimitEventCmd from './commands/org-limit-event'; +import appLimitCmd from './commands/app-limit'; +import orgLimitAggregateCmd from './commands/org-limit-aggregate'; +import orgLimitCmd from './commands/org-limit'; +import seedAppLimitCapsDefaultsCmd from './commands/seed-app-limit-caps-defaults'; +import seedAppLimitDefaultsCmd from './commands/seed-app-limit-defaults'; +import seedOrgLimitCapsDefaultsCmd from './commands/seed-org-limit-caps-defaults'; +import seedOrgLimitDefaultsCmd from './commands/seed-org-limit-defaults'; +import provisionBucketCmd from './commands/provision-bucket'; +const createCommandMap: () => Record< + string, + ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions + ) => Promise +> = () => ({ + context: contextCmd, + auth: authCmd, + 'app-limit-caps-default': appLimitCapsDefaultCmd, + 'org-limit-caps-default': orgLimitCapsDefaultCmd, + 'app-limit-cap': appLimitCapCmd, + 'org-limit-cap': orgLimitCapCmd, + 'app-limit-default': appLimitDefaultCmd, + 'app-limit-credit': appLimitCreditCmd, + 'app-limit-credit-code-item': appLimitCreditCodeItemCmd, + 'app-limit-credit-redemption': appLimitCreditRedemptionCmd, + 'org-limit-default': orgLimitDefaultCmd, + 'org-limit-credit': orgLimitCreditCmd, + 'app-limit-warning': appLimitWarningCmd, + 'org-limit-warning': orgLimitWarningCmd, + 'app-limit-credit-code': appLimitCreditCodeCmd, + 'app-limit-event': appLimitEventCmd, + 'org-limit-event': orgLimitEventCmd, + 'app-limit': appLimitCmd, + 'org-limit-aggregate': orgLimitAggregateCmd, + 'org-limit': orgLimitCmd, + 'seed-app-limit-caps-defaults': seedAppLimitCapsDefaultsCmd, + 'seed-app-limit-defaults': seedAppLimitDefaultsCmd, + 'seed-org-limit-caps-defaults': seedOrgLimitCapsDefaultsCmd, + 'seed-org-limit-defaults': seedOrgLimitDefaultsCmd, + 'provision-bucket': provisionBucketCmd, +}); +const usage = + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n app-limit-default appLimitDefault CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n app-limit appLimit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n seed-app-limit-caps-defaults seedAppLimitCapsDefaults\n seed-app-limit-defaults seedAppLimitDefaults\n seed-org-limit-caps-defaults seedOrgLimitCapsDefaults\n seed-org-limit-defaults seedOrgLimitDefaults\n 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/admin/cli/commands/app-limit-cap.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-cap.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-cap.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-cap.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-caps-default.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-caps-default.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-caps-default.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-caps-default.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-code-item.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-credit-code-item.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-code-item.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-credit-code-item.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-code.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-credit-code.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-credit-code.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-credit-code.ts diff --git a/sdk/constructive-cli/src/usage/cli/commands/app-limit-credit-redemption.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-credit-redemption.ts new file mode 100644 index 0000000000..e16e07c211 --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/app-limit-credit-redemption.ts @@ -0,0 +1,323 @@ +/** + * CLI commands for AppLimitCreditRedemption + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAppLimitCreditRedemptionInput, + AppLimitCreditRedemptionPatch, + AppLimitCreditRedemptionSelect, + AppLimitCreditRedemptionFilter, + AppLimitCreditRedemptionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + creditCodeId: 'uuid', + entityId: 'uuid', + organizationId: 'uuid', + entityType: 'string', +}; +const usage = + '\napp-limit-credit-redemption \n\nCommands:\n list List appLimitCreditRedemption records\n find-first Find first matching appLimitCreditRedemption record\n get Get a appLimitCreditRedemption by ID\n create Create a new appLimitCreditRedemption\n update Update an existing appLimitCreditRedemption\n delete Delete a appLimitCreditRedemption\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + creditCodeId: true, + entityId: true, + organizationId: true, + entityType: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + AppLimitCreditRedemptionSelect, + AppLimitCreditRedemptionFilter, + AppLimitCreditRedemptionOrderBy + > & { + select: AppLimitCreditRedemptionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appLimitCreditRedemption.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + creditCodeId: true, + entityId: true, + organizationId: true, + entityType: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + AppLimitCreditRedemptionSelect, + AppLimitCreditRedemptionFilter, + AppLimitCreditRedemptionOrderBy + > & { + select: AppLimitCreditRedemptionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appLimitCreditRedemption.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.appLimitCreditRedemption + .findOne({ + id: answers.id as string, + select: { + id: true, + creditCodeId: true, + entityId: true, + organizationId: true, + entityType: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'creditCodeId', + message: 'creditCodeId', + required: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppLimitCreditRedemptionInput['appLimitCreditRedemption']; + const client = getClient(); + const result = await client.appLimitCreditRedemption + .create({ + data: { + creditCodeId: cleanedData.creditCodeId, + entityId: cleanedData.entityId, + organizationId: cleanedData.organizationId, + entityType: cleanedData.entityType, + }, + select: { + id: true, + creditCodeId: true, + entityId: true, + organizationId: true, + entityType: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'creditCodeId', + message: 'creditCodeId', + required: false, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitCreditRedemptionPatch; + const client = getClient(); + const result = await client.appLimitCreditRedemption + .update({ + where: { + id: answers.id as string, + }, + data: { + creditCodeId: cleanedData.creditCodeId, + entityId: cleanedData.entityId, + organizationId: cleanedData.organizationId, + entityType: cleanedData.entityType, + }, + select: { + id: true, + creditCodeId: true, + entityId: true, + organizationId: true, + entityType: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.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.appLimitCreditRedemption + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-credit.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-credit.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-credit.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-credit.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-default.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-default.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-default.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-default.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-event.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-event.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-warning.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit-warning.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit-warning.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit-warning.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit.ts b/sdk/constructive-cli/src/usage/cli/commands/app-limit.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/app-limit.ts rename to sdk/constructive-cli/src/usage/cli/commands/app-limit.ts diff --git a/sdk/constructive-cli/src/usage/cli/commands/auth.ts b/sdk/constructive-cli/src/usage/cli/commands/auth.ts new file mode 100644 index 0000000000..c731ba27ca --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/cli/commands/context.ts b/sdk/constructive-cli/src/usage/cli/commands/context.ts new file mode 100644 index 0000000000..52d12c666b --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/admin/cli/commands/org-limit-aggregate.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit-aggregate.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/org-limit-aggregate.ts rename to sdk/constructive-cli/src/usage/cli/commands/org-limit-aggregate.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-cap.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit-cap.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/org-limit-cap.ts rename to sdk/constructive-cli/src/usage/cli/commands/org-limit-cap.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-caps-default.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit-caps-default.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/org-limit-caps-default.ts rename to sdk/constructive-cli/src/usage/cli/commands/org-limit-caps-default.ts diff --git a/sdk/constructive-cli/src/usage/cli/commands/org-limit-credit.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit-credit.ts new file mode 100644 index 0000000000..de8d7395e5 --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/org-limit-credit.ts @@ -0,0 +1,403 @@ +/** + * CLI commands for OrgLimitCredit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateOrgLimitCreditInput, + OrgLimitCreditPatch, + OrgLimitCreditSelect, + OrgLimitCreditFilter, + OrgLimitCreditOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + defaultLimitId: 'uuid', + actorId: 'uuid', + entityId: 'uuid', + organizationId: 'uuid', + entityType: 'string', + amount: 'int', + creditType: 'string', + reason: 'string', +}; +const usage = + '\norg-limit-credit \n\nCommands:\n list List orgLimitCredit records\n find-first Find first matching orgLimitCredit record\n get Get a orgLimitCredit by ID\n create Create a new orgLimitCredit\n update Update an existing orgLimitCredit\n delete Delete a orgLimitCredit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(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, + defaultLimitId: true, + actorId: true, + entityId: true, + organizationId: true, + entityType: true, + amount: true, + creditType: true, + reason: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: OrgLimitCreditSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitCredit.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed 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, + defaultLimitId: true, + actorId: true, + entityId: true, + organizationId: true, + entityType: true, + amount: true, + creditType: true, + reason: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: OrgLimitCreditSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitCredit.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(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.orgLimitCredit + .findOne({ + id: answers.id as string, + select: { + id: true, + defaultLimitId: true, + actorId: true, + entityId: true, + organizationId: true, + entityType: true, + amount: true, + creditType: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'defaultLimitId', + message: 'defaultLimitId', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'amount', + message: 'amount', + required: true, + }, + { + type: 'text', + name: 'creditType', + message: 'creditType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgLimitCreditInput['orgLimitCredit']; + const client = getClient(); + const result = await client.orgLimitCredit + .create({ + data: { + defaultLimitId: cleanedData.defaultLimitId, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + organizationId: cleanedData.organizationId, + entityType: cleanedData.entityType, + amount: cleanedData.amount, + creditType: cleanedData.creditType, + reason: cleanedData.reason, + }, + select: { + id: true, + defaultLimitId: true, + actorId: true, + entityId: true, + organizationId: true, + entityType: true, + amount: true, + creditType: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'defaultLimitId', + message: 'defaultLimitId', + required: false, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'organizationId', + message: 'organizationId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityType', + message: 'entityType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'amount', + message: 'amount', + required: false, + }, + { + type: 'text', + name: 'creditType', + message: 'creditType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitCreditPatch; + const client = getClient(); + const result = await client.orgLimitCredit + .update({ + where: { + id: answers.id as string, + }, + data: { + defaultLimitId: cleanedData.defaultLimitId, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + organizationId: cleanedData.organizationId, + entityType: cleanedData.entityType, + amount: cleanedData.amount, + creditType: cleanedData.creditType, + reason: cleanedData.reason, + }, + select: { + id: true, + defaultLimitId: true, + actorId: true, + entityId: true, + organizationId: true, + entityType: true, + amount: true, + creditType: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.orgLimitCredit + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-default.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit-default.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/org-limit-default.ts rename to sdk/constructive-cli/src/usage/cli/commands/org-limit-default.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit-event.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts rename to sdk/constructive-cli/src/usage/cli/commands/org-limit-event.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-warning.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit-warning.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/org-limit-warning.ts rename to sdk/constructive-cli/src/usage/cli/commands/org-limit-warning.ts diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit.ts b/sdk/constructive-cli/src/usage/cli/commands/org-limit.ts similarity index 100% rename from sdk/constructive-cli/src/admin/cli/commands/org-limit.ts rename to sdk/constructive-cli/src/usage/cli/commands/org-limit.ts diff --git a/sdk/constructive-cli/src/usage/cli/commands/provision-bucket.ts b/sdk/constructive-cli/src/usage/cli/commands/provision-bucket.ts new file mode 100644 index 0000000000..ecd2e539d5 --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/cli/commands/seed-app-limit-caps-defaults.ts b/sdk/constructive-cli/src/usage/cli/commands/seed-app-limit-caps-defaults.ts new file mode 100644 index 0000000000..f0ef712764 --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/seed-app-limit-caps-defaults.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation seedAppLimitCapsDefaults + * @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 { SeedAppLimitCapsDefaultsVariables } from '../../orm/mutation'; +import type { SeedAppLimitCapsDefaultsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'seed-app-limit-caps-defaults - seedAppLimitCapsDefaults\n\nUsage: seed-app-limit-caps-defaults [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 + .seedAppLimitCapsDefaults( + parsedAnswers as unknown as SeedAppLimitCapsDefaultsVariables, + { + select: selectFields, + } as unknown as { + select: SeedAppLimitCapsDefaultsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: seedAppLimitCapsDefaults'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/usage/cli/commands/seed-app-limit-defaults.ts b/sdk/constructive-cli/src/usage/cli/commands/seed-app-limit-defaults.ts new file mode 100644 index 0000000000..85c4f65015 --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/seed-app-limit-defaults.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation seedAppLimitDefaults + * @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 { SeedAppLimitDefaultsVariables } from '../../orm/mutation'; +import type { SeedAppLimitDefaultsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'seed-app-limit-defaults - seedAppLimitDefaults\n\nUsage: seed-app-limit-defaults [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 + .seedAppLimitDefaults( + parsedAnswers as unknown as SeedAppLimitDefaultsVariables, + { + select: selectFields, + } as unknown as { + select: SeedAppLimitDefaultsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: seedAppLimitDefaults'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/usage/cli/commands/seed-org-limit-caps-defaults.ts b/sdk/constructive-cli/src/usage/cli/commands/seed-org-limit-caps-defaults.ts new file mode 100644 index 0000000000..a6de1c1f5a --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/seed-org-limit-caps-defaults.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation seedOrgLimitCapsDefaults + * @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 { SeedOrgLimitCapsDefaultsVariables } from '../../orm/mutation'; +import type { SeedOrgLimitCapsDefaultsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'seed-org-limit-caps-defaults - seedOrgLimitCapsDefaults\n\nUsage: seed-org-limit-caps-defaults [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 + .seedOrgLimitCapsDefaults( + parsedAnswers as unknown as SeedOrgLimitCapsDefaultsVariables, + { + select: selectFields, + } as unknown as { + select: SeedOrgLimitCapsDefaultsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: seedOrgLimitCapsDefaults'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/usage/cli/commands/seed-org-limit-defaults.ts b/sdk/constructive-cli/src/usage/cli/commands/seed-org-limit-defaults.ts new file mode 100644 index 0000000000..717ed23197 --- /dev/null +++ b/sdk/constructive-cli/src/usage/cli/commands/seed-org-limit-defaults.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation seedOrgLimitDefaults + * @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 { SeedOrgLimitDefaultsVariables } from '../../orm/mutation'; +import type { SeedOrgLimitDefaultsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'seed-org-limit-defaults - seedOrgLimitDefaults\n\nUsage: seed-org-limit-defaults [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 + .seedOrgLimitDefaults( + parsedAnswers as unknown as SeedOrgLimitDefaultsVariables, + { + select: selectFields, + } as unknown as { + select: SeedOrgLimitDefaultsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: seedOrgLimitDefaults'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/usage/cli/executor.ts b/sdk/constructive-cli/src/usage/cli/executor.ts new file mode 100644 index 0000000000..50d150bce8 --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/cli/index.ts b/sdk/constructive-cli/src/usage/cli/index.ts new file mode 100644 index 0000000000..9ca839a9ee --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/cli/utils.ts b/sdk/constructive-cli/src/usage/cli/utils.ts new file mode 100644 index 0000000000..78a7defb6f --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/index.ts b/sdk/constructive-cli/src/usage/index.ts new file mode 100644 index 0000000000..df67cba476 --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/orm/README.md b/sdk/constructive-cli/src/usage/orm/README.md new file mode 100644 index 0000000000..445adc76d8 --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/README.md @@ -0,0 +1,767 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `appLimitCapsDefault` | findMany, findOne, create, update, delete | +| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | +| `appLimitCap` | findMany, findOne, create, update, delete | +| `orgLimitCap` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `appLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | +| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitWarning` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.appLimitCapsDefault` + +CRUD operations for AppLimitCapsDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitCapsDefault records +const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCapsDefault` + +CRUD operations for OrgLimitCapsDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitCapsDefault records +const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCap` + +CRUD operations for AppLimitCap records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitCap records +const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Create +const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCap` + +CRUD operations for OrgLimitCap records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCredit` + +CRUD operations for AppLimitCredit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `defaultLimitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCredit records +const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditCodeItem` + +CRUD operations for AppLimitCreditCodeItem records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `creditCodeId` | UUID | Yes | +| `defaultLimitId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditCodeItem records +const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); + +// Create +const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditRedemption` + +CRUD operations for AppLimitCreditRedemption records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `creditCodeId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditRedemption records +const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCredit` + +CRUD operations for OrgLimitCredit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `defaultLimitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitCredit records +const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', organizationId: '', entityType: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitWarning` + +CRUD operations for AppLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitWarning` + +CRUD operations for OrgLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditCode` + +CRUD operations for AppLimitCreditCode records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); + +// Create +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `reserved` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimit` + +CRUD operations for OrgLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.seedAppLimitCapsDefaults` + +seedAppLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitCapsDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedAppLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedAppLimitDefaults` + +seedAppLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedAppLimitDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedOrgLimitCapsDefaults` + +seedOrgLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitCapsDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedOrgLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedOrgLimitDefaults` + +seedOrgLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedOrgLimitDefaults({ input: { defaults: '' } }).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/usage/orm/client.ts b/sdk/constructive-cli/src/usage/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/orm/index.ts b/sdk/constructive-cli/src/usage/orm/index.ts new file mode 100644 index 0000000000..9b85b8933c --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/index.ts @@ -0,0 +1,79 @@ +/** + * 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 { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; +import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; +import { AppLimitCapModel } from './models/appLimitCap'; +import { OrgLimitCapModel } from './models/orgLimitCap'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { AppLimitCreditModel } from './models/appLimitCredit'; +import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; +import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitWarningModel } from './models/appLimitWarning'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; +import { AppLimitModel } from './models/appLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; +import { OrgLimitModel } from './models/orgLimit'; +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 { + appLimitCapsDefault: new AppLimitCapsDefaultModel(client), + orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), + appLimitCap: new AppLimitCapModel(client), + orgLimitCap: new OrgLimitCapModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + appLimitCredit: new AppLimitCreditModel(client), + appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), + appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), + orgLimitCredit: new OrgLimitCreditModel(client), + appLimitWarning: new AppLimitWarningModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), + appLimit: new AppLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), + orgLimit: new OrgLimitModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-cli/src/usage/orm/input-types.ts b/sdk/constructive-cli/src/usage/orm/input-types.ts new file mode 100644 index 0000000000..8c8382f866 --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/input-types.ts @@ -0,0 +1,3642 @@ +/** + * 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; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +// ============ Entity Types ============ +export interface AppLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface OrgLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Append-only ledger of credit grants that automatically update limit ceilings */ +export interface AppLimitCredit { + id: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string | null; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string | null; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string | null; +} +/** Items within a credit code — each row grants credits for a specific limit definition */ +export interface AppLimitCreditCodeItem { + id: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string | null; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId?: string | null; + /** Number of credits this item grants per redemption */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; +} +/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ +export interface AppLimitCreditRedemption { + id: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId?: string | null; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Append-only ledger of credit grants that automatically update limit ceilings */ +export interface OrgLimitCredit { + id: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string | null; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string | null; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string | null; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface AppLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface AppLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface OrgLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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 AppLimitCapsDefaultRelations {} +export interface OrgLimitCapsDefaultRelations {} +export interface AppLimitCapRelations {} +export interface OrgLimitCapRelations {} +export interface AppLimitDefaultRelations { + appLimitCreditsByDefaultLimitId?: ConnectionResult; + appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; +} +export interface AppLimitCreditRelations { + defaultLimit?: AppLimitDefault | null; +} +export interface AppLimitCreditCodeItemRelations { + creditCode?: AppLimitCreditCode | null; + defaultLimit?: AppLimitDefault | null; +} +export interface AppLimitCreditRedemptionRelations { + creditCode?: AppLimitCreditCode | null; +} +export interface OrgLimitDefaultRelations { + orgLimitCreditsByDefaultLimitId?: ConnectionResult; +} +export interface OrgLimitCreditRelations { + defaultLimit?: OrgLimitDefault | null; +} +export interface AppLimitWarningRelations {} +export interface OrgLimitWarningRelations {} +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} +export interface AppLimitRelations {} +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +// ============ Entity Types With Relations ============ +export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; +export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; +export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; +export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; +export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & + AppLimitCreditCodeItemRelations; +export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & + AppLimitCreditRedemptionRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +// ============ Entity Select Types ============ +export type AppLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; + appLimitCreditsByDefaultLimitId?: { + select: AppLimitCreditSelect; + first?: number; + filter?: AppLimitCreditFilter; + orderBy?: AppLimitCreditOrderBy[]; + }; + appLimitCreditCodeItemsByDefaultLimitId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; +}; +export type AppLimitCreditSelect = { + id?: boolean; + defaultLimitId?: boolean; + actorId?: boolean; + amount?: boolean; + creditType?: boolean; + reason?: boolean; + defaultLimit?: { + select: AppLimitDefaultSelect; + }; +}; +export type AppLimitCreditCodeItemSelect = { + id?: boolean; + creditCodeId?: boolean; + defaultLimitId?: boolean; + amount?: boolean; + creditType?: boolean; + creditCode?: { + select: AppLimitCreditCodeSelect; + }; + defaultLimit?: { + select: AppLimitDefaultSelect; + }; +}; +export type AppLimitCreditRedemptionSelect = { + id?: boolean; + creditCodeId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + creditCode?: { + select: AppLimitCreditCodeSelect; + }; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; + orgLimitCreditsByDefaultLimitId?: { + select: OrgLimitCreditSelect; + first?: number; + filter?: OrgLimitCreditFilter; + orderBy?: OrgLimitCreditOrderBy[]; + }; +}; +export type OrgLimitCreditSelect = { + id?: boolean; + defaultLimitId?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + amount?: boolean; + creditType?: boolean; + reason?: boolean; + defaultLimit?: { + select: OrgLimitDefaultSelect; + }; +}; +export type AppLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; +}; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + reserved?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +export type OrgLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +// ============ Table Filter Types ============ +export interface AppLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +export interface OrgLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} +export interface AppLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; + /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ + orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; + /** `orgLimitCreditsByDefaultLimitId` exist. */ + orgLimitCreditsByDefaultLimitIdExist?: boolean; +} +export interface OrgLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCreditFilter[]; + /** Negates the expression. */ + not?: OrgLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: OrgLimitDefaultFilter; +} +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +// ============ OrderBy Types ============ +export type AppLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type AppLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitCreditCodeItemOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC'; +export type AppLimitCreditRedemptionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'RESERVED_ASC' + | 'RESERVED_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +// ============ CRUD Input Types ============ +export interface CreateAppLimitCapsDefaultInput { + clientMutationId?: string; + appLimitCapsDefault: { + name: string; + max?: string; + }; +} +export interface AppLimitCapsDefaultPatch { + name?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; +} +export interface DeleteAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCapsDefaultInput { + clientMutationId?: string; + orgLimitCapsDefault: { + name: string; + max?: string; + }; +} +export interface OrgLimitCapsDefaultPatch { + name?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; +} +export interface DeleteOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCapInput { + clientMutationId?: string; + appLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface AppLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + appLimitCapPatch: AppLimitCapPatch; +} +export interface DeleteAppLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + orgLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface OrgLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + orgLimitCapPatch: OrgLimitCapPatch; +} +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: { + name: string; + max?: string; + softMax?: string; + }; +} +export interface AppLimitDefaultPatch { + name?: string | null; + max?: string | null; + softMax?: string | null; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditInput { + clientMutationId?: string; + appLimitCredit: { + defaultLimitId: string; + actorId?: string; + amount: string; + creditType?: string; + reason?: string; + }; +} +export interface AppLimitCreditPatch { + defaultLimitId?: string | null; + actorId?: string | null; + amount?: string | null; + creditType?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitCreditInput { + clientMutationId?: string; + id: string; + appLimitCreditPatch: AppLimitCreditPatch; +} +export interface DeleteAppLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditCodeItemInput { + clientMutationId?: string; + appLimitCreditCodeItem: { + creditCodeId: string; + defaultLimitId: string; + amount: string; + creditType?: string; + }; +} +export interface AppLimitCreditCodeItemPatch { + creditCodeId?: string | null; + defaultLimitId?: string | null; + amount?: string | null; + creditType?: string | null; +} +export interface UpdateAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; +} +export interface DeleteAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditRedemptionInput { + clientMutationId?: string; + appLimitCreditRedemption: { + creditCodeId: string; + entityId: string; + organizationId?: string; + entityType?: string; + }; +} +export interface AppLimitCreditRedemptionPatch { + creditCodeId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; + appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; +} +export interface DeleteAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: { + name: string; + max?: string; + softMax?: string; + }; +} +export interface OrgLimitDefaultPatch { + name?: string | null; + max?: string | null; + softMax?: string | null; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCreditInput { + clientMutationId?: string; + orgLimitCredit: { + defaultLimitId: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + amount: string; + creditType?: string; + reason?: string; + }; +} +export interface OrgLimitCreditPatch { + defaultLimitId?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + amount?: string | null; + creditType?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitCreditInput { + clientMutationId?: string; + id: string; + orgLimitCreditPatch: OrgLimitCreditPatch; +} +export interface DeleteOrgLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + appLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + }; +} +export interface AppLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + appLimitWarningPatch: AppLimitWarningPatch; +} +export interface DeleteAppLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitWarningInput { + clientMutationId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; + }; +} +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; +} +export interface UpdateOrgLimitWarningInput { + clientMutationId?: string; + id: string; + orgLimitWarningPatch: OrgLimitWarningPatch; +} +export interface DeleteOrgLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + organizationId?: string; + entityType?: string; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + reserved?: string; + organizationId?: string; + entityType?: string; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + reserved?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + orgLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + entityId: string; + organizationId?: string; + entityType?: string; + }; +} +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + AppLimitDefault: { + appLimitCreditsByDefaultLimitId: 'AppLimitCredit', + appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', + }, + OrgLimitDefault: { + orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', + }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SeedAppLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedAppLimitDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedOrgLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedOrgLimitDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditFilter; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultToManyOrgLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitCreditFilter; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + 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; +} +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCreditFilter[]; + /** Negates the expression. */ + not?: OrgLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: OrgLimitDefaultFilter; +} +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * 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 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; +} +/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ +export interface BigIntFilter { + /** 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; +} +/** 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; +} +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} +/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; + /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ + orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; + /** `orgLimitCreditsByDefaultLimitId` exist. */ + orgLimitCreditsByDefaultLimitIdExist?: boolean; +} +/** 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; +} +/** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface SeedAppLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedAppLimitCapsDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedAppLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedAppLimitDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedOrgLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedOrgLimitCapsDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedOrgLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedOrgLimitDefaultsPayloadSelect = { + 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 CreateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was created by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type CreateAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was updated by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type UpdateAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was deleted by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type DeleteAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was created by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type CreateOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was updated by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type UpdateOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type DeleteOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type CreateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type UpdateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type DeleteAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface CreateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type CreateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type UpdateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type DeleteOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type UpdateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type DeleteAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was created by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type CreateAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was updated by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type UpdateAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was deleted by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type DeleteAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface CreateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type CreateAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type UpdateAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type DeleteAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface CreateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was created by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type CreateAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was updated by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type UpdateAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type DeleteAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type CreateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type UpdateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type DeleteOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was created by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type CreateOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface UpdateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was updated by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type UpdateOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface DeleteOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was deleted by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type DeleteOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface CreateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was created by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type CreateAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface UpdateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was updated by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type UpdateAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface DeleteAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was deleted by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type DeleteAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface CreateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type CreateOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface UpdateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type UpdateOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface DeleteOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type DeleteOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type UpdateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type DeleteOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type UpdateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type DeleteOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +/** A `AppLimitCapsDefault` edge in the connection. */ +export interface AppLimitCapsDefaultEdge { + cursor?: string | null; + /** The `AppLimitCapsDefault` at the end of the edge. */ + node?: AppLimitCapsDefault | null; +} +export type AppLimitCapsDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapsDefaultSelect; + }; +}; +/** A `OrgLimitCapsDefault` edge in the connection. */ +export interface OrgLimitCapsDefaultEdge { + cursor?: string | null; + /** The `OrgLimitCapsDefault` at the end of the edge. */ + node?: OrgLimitCapsDefault | null; +} +export type OrgLimitCapsDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapsDefaultSelect; + }; +}; +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} +export type AppLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapSelect; + }; +}; +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} +export type OrgLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapSelect; + }; +}; +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +/** A `AppLimitCredit` edge in the connection. */ +export interface AppLimitCreditEdge { + cursor?: string | null; + /** The `AppLimitCredit` at the end of the edge. */ + node?: AppLimitCredit | null; +} +export type AppLimitCreditEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditSelect; + }; +}; +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { + cursor?: string | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; +} +export type AppLimitCreditCodeItemEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeItemSelect; + }; +}; +/** A `AppLimitCreditRedemption` edge in the connection. */ +export interface AppLimitCreditRedemptionEdge { + cursor?: string | null; + /** The `AppLimitCreditRedemption` at the end of the edge. */ + node?: AppLimitCreditRedemption | null; +} +export type AppLimitCreditRedemptionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditRedemptionSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; +/** A `OrgLimitCredit` edge in the connection. */ +export interface OrgLimitCreditEdge { + cursor?: string | null; + /** The `OrgLimitCredit` at the end of the edge. */ + node?: OrgLimitCredit | null; +} +export type OrgLimitCreditEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCreditSelect; + }; +}; +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { + cursor?: string | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; +} +export type AppLimitWarningEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitWarningSelect; + }; +}; +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { + cursor?: string | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; +} +export type OrgLimitWarningEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitWarningSelect; + }; +}; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +export type AppLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitEventSelect; + }; +}; +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} +export type OrgLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitEventSelect; + }; +}; +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimit.ts b/sdk/constructive-cli/src/usage/orm/models/appLimit.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimit.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimit.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitCap.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitCap.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitCap.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitCap.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitCapsDefault.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitCapsDefault.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitCapsDefault.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitCapsDefault.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitCredit.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitCredit.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitCredit.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitCredit.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitCreditCode.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitCreditCode.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitCreditCode.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitCreditCode.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitCreditCodeItem.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitCreditCodeItem.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitCreditCodeItem.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitCreditCodeItem.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitCreditRedemption.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitCreditRedemption.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitCreditRedemption.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitCreditRedemption.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitDefault.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitDefault.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitDefault.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitDefault.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitEvent.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitEvent.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitWarning.ts b/sdk/constructive-cli/src/usage/orm/models/appLimitWarning.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/appLimitWarning.ts rename to sdk/constructive-cli/src/usage/orm/models/appLimitWarning.ts diff --git a/sdk/constructive-cli/src/usage/orm/models/index.ts b/sdk/constructive-cli/src/usage/orm/models/index.ts new file mode 100644 index 0000000000..d3736dc9d5 --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/models/index.ts @@ -0,0 +1,23 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; +export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; +export { AppLimitCapModel } from './appLimitCap'; +export { OrgLimitCapModel } from './orgLimitCap'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { AppLimitCreditModel } from './appLimitCredit'; +export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; +export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitWarningModel } from './appLimitWarning'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; +export { AppLimitModel } from './appLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; +export { OrgLimitModel } from './orgLimit'; diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimit.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimit.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimit.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimit.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitAggregate.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimitAggregate.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimitAggregate.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimitAggregate.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitCap.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimitCap.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimitCap.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimitCap.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitCapsDefault.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimitCapsDefault.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimitCapsDefault.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimitCapsDefault.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitCredit.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimitCredit.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimitCredit.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimitCredit.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitDefault.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimitDefault.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimitDefault.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimitDefault.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimitEvent.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimitEvent.ts diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitWarning.ts b/sdk/constructive-cli/src/usage/orm/models/orgLimitWarning.ts similarity index 100% rename from sdk/constructive-cli/src/admin/orm/models/orgLimitWarning.ts rename to sdk/constructive-cli/src/usage/orm/models/orgLimitWarning.ts diff --git a/sdk/constructive-cli/src/usage/orm/mutation/index.ts b/sdk/constructive-cli/src/usage/orm/mutation/index.ts new file mode 100644 index 0000000000..5a5a61c0df --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/mutation/index.ts @@ -0,0 +1,197 @@ +/** + * 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 { + SeedAppLimitCapsDefaultsInput, + SeedAppLimitDefaultsInput, + SeedOrgLimitCapsDefaultsInput, + SeedOrgLimitDefaultsInput, + ProvisionBucketInput, + SeedAppLimitCapsDefaultsPayload, + SeedAppLimitDefaultsPayload, + SeedOrgLimitCapsDefaultsPayload, + SeedOrgLimitDefaultsPayload, + ProvisionBucketPayload, + SeedAppLimitCapsDefaultsPayloadSelect, + SeedAppLimitDefaultsPayloadSelect, + SeedOrgLimitCapsDefaultsPayloadSelect, + SeedOrgLimitDefaultsPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface SeedAppLimitCapsDefaultsVariables { + input: SeedAppLimitCapsDefaultsInput; +} +export interface SeedAppLimitDefaultsVariables { + input: SeedAppLimitDefaultsInput; +} +export interface SeedOrgLimitCapsDefaultsVariables { + input: SeedOrgLimitCapsDefaultsInput; +} +export interface SeedOrgLimitDefaultsVariables { + input: SeedOrgLimitDefaultsInput; +} +/** + * 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 { + seedAppLimitCapsDefaults: ( + args: SeedAppLimitCapsDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedAppLimitCapsDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedAppLimitCapsDefaults', + fieldName: 'seedAppLimitCapsDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedAppLimitCapsDefaults', + 'seedAppLimitCapsDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedAppLimitCapsDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedAppLimitCapsDefaultsPayload' + ), + }), + seedAppLimitDefaults: ( + args: SeedAppLimitDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedAppLimitDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedAppLimitDefaults', + fieldName: 'seedAppLimitDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedAppLimitDefaults', + 'seedAppLimitDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedAppLimitDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedAppLimitDefaultsPayload' + ), + }), + seedOrgLimitCapsDefaults: ( + args: SeedOrgLimitCapsDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedOrgLimitCapsDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedOrgLimitCapsDefaults', + fieldName: 'seedOrgLimitCapsDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedOrgLimitCapsDefaults', + 'seedOrgLimitCapsDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedOrgLimitCapsDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedOrgLimitCapsDefaultsPayload' + ), + }), + seedOrgLimitDefaults: ( + args: SeedOrgLimitDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedOrgLimitDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedOrgLimitDefaults', + fieldName: 'seedOrgLimitDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedOrgLimitDefaults', + 'seedOrgLimitDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedOrgLimitDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedOrgLimitDefaultsPayload' + ), + }), + 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/usage/orm/query-builder.ts b/sdk/constructive-cli/src/usage/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-cli/src/usage/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/usage/orm/realtime.ts b/sdk/constructive-cli/src/usage/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/orm/select-types.ts b/sdk/constructive-cli/src/usage/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/usage/orm/types.ts b/sdk/constructive-cli/src/usage/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-cli/src/usage/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/utils/cli-utils.ts b/sdk/constructive-cli/src/utils/cli-utils.ts deleted file mode 100644 index 77b1c3af19..0000000000 --- a/sdk/constructive-cli/src/utils/cli-utils.ts +++ /dev/null @@ -1,197 +0,0 @@ -/** - * CLI utility functions for type coercion and input handling. - * - * Provides helpers for CLI commands: type coercion (string CLI args to proper - * GraphQL types), field filtering (strip extra minimist fields), - * mutation input parsing, and select field parsing. - */ - -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; -} - -/** - * 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. - * - * @param paths - Comma-separated dot-notation field paths - * @returns The nested select object for the ORM - */ -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/utils/display.ts b/sdk/constructive-cli/src/utils/display.ts deleted file mode 100644 index 4f0a499299..0000000000 --- a/sdk/constructive-cli/src/utils/display.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Display utilities for CLI output formatting. - * - * Uses yanse for terminal colors and provides common display patterns - * for CLI commands: tables, key-value pairs, success/error messages. - */ - -import { bold, green, red, yellow, cyan, dim } from 'yanse'; - -/** - * Print a success message to stdout. - */ -export function printSuccess(message: string): void { - console.log(green(bold('Success: ')) + message); -} - -/** - * Print an error message to stderr. - */ -export function printError(message: string): void { - console.error(red(bold('Error: ')) + message); -} - -/** - * Print a warning message to stderr. - */ -export function printWarning(message: string): void { - console.error(yellow(bold('Warning: ')) + message); -} - -/** - * Print an informational message to stdout. - */ -export function printInfo(message: string): void { - console.log(cyan(bold('Info: ')) + message); -} - -/** - * Print a key-value pair with aligned formatting. - */ -export function printKeyValue(key: string, value: string, indent: number = 0): void { - const prefix = ' '.repeat(indent); - console.log(`${prefix}${bold(key)}: ${value}`); -} - -/** - * Print a list of key-value pairs as a formatted block. - */ -export function printDetails( - entries: Array<{ key: string; value: string }>, - indent: number = 2 -): void { - const maxKeyLen = Math.max(...entries.map((e) => e.key.length)); - for (const entry of entries) { - const paddedKey = entry.key.padEnd(maxKeyLen); - printKeyValue(paddedKey, entry.value, indent); - } -} - -/** - * Print a simple table from rows of data. - * First row is treated as headers. - */ -export function printTable( - headers: string[], - rows: string[][], - indent: number = 0 -): void { - const colWidths = headers.map((h, i) => - Math.max(h.length, ...rows.map((r) => (r[i] || '').length)) - ); - - const prefix = ' '.repeat(indent); - - // Header - const headerLine = headers - .map((h, i) => bold(h.padEnd(colWidths[i]))) - .join(' '); - console.log(`${prefix}${headerLine}`); - - // Separator - const separator = colWidths.map((w) => dim('-'.repeat(w))).join(' '); - console.log(`${prefix}${separator}`); - - // Rows - for (const row of rows) { - const line = row - .map((cell, i) => (cell || '').padEnd(colWidths[i])) - .join(' '); - console.log(`${prefix}${line}`); - } -} diff --git a/sdk/constructive-cli/src/utils/index.ts b/sdk/constructive-cli/src/utils/index.ts deleted file mode 100644 index 0dfbe49c78..0000000000 --- a/sdk/constructive-cli/src/utils/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -export { - coerceAnswers, - stripUndefined, - parseMutationInput, - buildSelectFromPaths, -} from './cli-utils'; -export type { FieldType, FieldSchema } from './cli-utils'; - -export { - printSuccess, - printError, - printWarning, - printInfo, - printKeyValue, - printDetails, - printTable, -} from './display'; diff --git a/sdk/constructive-react/README.md b/sdk/constructive-react/README.md index 9ec0d42022..0b587853c3 100644 --- a/sdk/constructive-react/README.md +++ b/sdk/constructive-react/README.md @@ -11,9 +11,12 @@ | API | Endpoint | Generators | Docs | |-----|----------|------------|------| | admin | - | React Query, ORM | [./src/admin/README.md](./src/admin/README.md) | +| agent | - | React Query, ORM | [./src/agent/README.md](./src/agent/README.md) | +| api | - | React Query, ORM | [./src/api/README.md](./src/api/README.md) | | auth | - | React Query, ORM | [./src/auth/README.md](./src/auth/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) | -| public | - | React Query, ORM | [./src/public/README.md](./src/public/README.md) | +| usage | - | React Query, ORM | [./src/usage/README.md](./src/usage/README.md) | --- diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index 9c6ee21dc0..7de4257ba8 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 44 +- **Tables:** 26 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index ff4ec1481e..0e11df1f08 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -46,21 +46,6 @@ function App() { | `useCreateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useUpdateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useDeleteOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useAppLimitCreditRedemptionsQuery` | Query | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useAppLimitCreditRedemptionQuery` | Query | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useCreateAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useUpdateAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useDeleteAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useAppLimitCreditCodeItemsQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | -| `useAppLimitCreditCodeItemQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | -| `useCreateAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | -| `useUpdateAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | -| `useDeleteAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | -| `useAppLimitCreditsQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useAppLimitCreditQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useCreateAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useUpdateAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useDeleteAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | | `useOrgMembersQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | | `useOrgMemberQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | | `useCreateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | @@ -71,6 +56,11 @@ function App() { | `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useAppAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | | `useAppAdminGrantQuery` | Query | Records of admin role grants and revocations between members | | `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | @@ -81,81 +71,16 @@ function App() { | `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | | `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | | `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | | `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | | `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | | `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | | `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useAppLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useAppLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useCreateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useUpdateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useDeleteAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useOrgLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useOrgLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useCreateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useUpdateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useDeleteOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useAppLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useAppLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useCreateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useUpdateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useDeleteAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgLimitCreditsQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useOrgLimitCreditQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useCreateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useUpdateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useDeleteOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | @@ -166,11 +91,6 @@ function App() { | `useCreateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useUpdateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useOrgLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useOrgLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useCreateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUpdateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useDeleteOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | @@ -181,6 +101,16 @@ function App() { | `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | @@ -191,26 +121,26 @@ function App() { | `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | +| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | | `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | | `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | | `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useAppLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useUpdateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useDeleteAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useUpdateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useDeleteOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | @@ -221,26 +151,6 @@ function App() { | `useCreateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useUpdateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useDeleteOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useUpdateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useDeleteOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | @@ -336,69 +246,6 @@ const { mutate: create } = useCreateOrgPermissionMutation({ create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` -### AppLimitCreditRedemption - -```typescript -// List all appLimitCreditRedemptions -const { data, isLoading } = useAppLimitCreditRedemptionsQuery({ - selection: { fields: { id: true, creditCodeId: true, entityId: true } }, -}); - -// Get one appLimitCreditRedemption -const { data: item } = useAppLimitCreditRedemptionQuery({ - id: '', - selection: { fields: { id: true, creditCodeId: true, entityId: true } }, -}); - -// Create a appLimitCreditRedemption -const { mutate: create } = useCreateAppLimitCreditRedemptionMutation({ - selection: { fields: { id: true } }, -}); -create({ creditCodeId: '', entityId: '' }); -``` - -### AppLimitCreditCodeItem - -```typescript -// List all appLimitCreditCodeItems -const { data, isLoading } = useAppLimitCreditCodeItemsQuery({ - selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, -}); - -// Get one appLimitCreditCodeItem -const { data: item } = useAppLimitCreditCodeItemQuery({ - id: '', - selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, -}); - -// Create a appLimitCreditCodeItem -const { mutate: create } = useCreateAppLimitCreditCodeItemMutation({ - selection: { fields: { id: true } }, -}); -create({ creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }); -``` - -### AppLimitCredit - -```typescript -// List all appLimitCredits -const { data, isLoading } = useAppLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, -}); - -// Get one appLimitCredit -const { data: item } = useAppLimitCreditQuery({ - id: '', - selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, -}); - -// Create a appLimitCredit -const { mutate: create } = useCreateAppLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -create({ defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }); -``` - ### OrgMember ```typescript @@ -441,6 +288,27 @@ const { mutate: create } = useCreateAppPermissionDefaultMutation({ create({ permissions: '' }); ``` +### OrgPermissionDefault + +```typescript +// List all orgPermissionDefaults +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Get one orgPermissionDefault +const { data: item } = useOrgPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Create a orgPermissionDefault +const { mutate: create } = useCreateOrgPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', entityId: '' }); +``` + ### AppAdminGrant ```typescript @@ -483,48 +351,6 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ isGrant: '', actorId: '', grantorId: '' }); ``` -### OrgPermissionDefault - -```typescript -// List all orgPermissionDefaults -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); - -// Get one orgPermissionDefault -const { data: item } = useOrgPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); - -// Create a orgPermissionDefault -const { mutate: create } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '', entityId: '' }); -``` - -### AppMembershipDefault - -```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); -``` - ### OrgAdminGrant ```typescript @@ -546,27 +372,6 @@ const { mutate: create } = useCreateOrgAdminGrantMutation({ create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgMembershipDefault - -```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, -}); - -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, -}); - -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); -``` - ### OrgOwnerGrant ```typescript @@ -588,216 +393,6 @@ const { mutate: create } = useCreateOrgOwnerGrantMutation({ create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### AppLimitCapsDefault - -```typescript -// List all appLimitCapsDefaults -const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Get one appLimitCapsDefault -const { data: item } = useAppLimitCapsDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Create a appLimitCapsDefault -const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '' }); -``` - -### OrgLimitCapsDefault - -```typescript -// List all orgLimitCapsDefaults -const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Get one orgLimitCapsDefault -const { data: item } = useOrgLimitCapsDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Create a orgLimitCapsDefault -const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '' }); -``` - -### AppLimitCap - -```typescript -// List all appLimitCaps -const { data, isLoading } = useAppLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Get one appLimitCap -const { data: item } = useAppLimitCapQuery({ - id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Create a appLimitCap -const { mutate: create } = useCreateAppLimitCapMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', entityId: '', max: '' }); -``` - -### OrgLimitCap - -```typescript -// List all orgLimitCaps -const { data, isLoading } = useOrgLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Get one orgLimitCap -const { data: item } = useOrgLimitCapQuery({ - id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Create a orgLimitCap -const { mutate: create } = useCreateOrgLimitCapMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', entityId: '', max: '' }); -``` - -### OrgChartEdge - -```typescript -// List all orgChartEdges -const { data, isLoading } = useOrgChartEdgesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, -}); - -// Get one orgChartEdge -const { data: item } = useOrgChartEdgeQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, -}); - -// Create a orgChartEdge -const { mutate: create } = useCreateOrgChartEdgeMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); -``` - -### AppLimitDefault - -```typescript -// List all appLimitDefaults -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Get one appLimitDefault -const { data: item } = useAppLimitDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Create a appLimitDefault -const { mutate: create } = useCreateAppLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '', softMax: '' }); -``` - -### OrgLimitDefault - -```typescript -// List all orgLimitDefaults -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Get one orgLimitDefault -const { data: item } = useOrgLimitDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Create a orgLimitDefault -const { mutate: create } = useCreateOrgLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '', softMax: '' }); -``` - -### OrgLimitCredit - -```typescript -// List all orgLimitCredits -const { data, isLoading } = useOrgLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }, -}); - -// Get one orgLimitCredit -const { data: item } = useOrgLimitCreditQuery({ - id: '', - selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }, -}); - -// Create a orgLimitCredit -const { mutate: create } = useCreateOrgLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -create({ defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }); -``` - -### AppLimitCreditCode - -```typescript -// List all appLimitCreditCodes -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Get one appLimitCreditCode -const { data: item } = useAppLimitCreditCodeQuery({ - id: '', - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Create a appLimitCreditCode -const { mutate: create } = useCreateAppLimitCreditCodeMutation({ - selection: { fields: { id: true } }, -}); -create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); -``` - -### AppLimitWarning - -```typescript -// List all appLimitWarnings -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, -}); - -// Get one appLimitWarning -const { data: item } = useAppLimitWarningQuery({ - id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, -}); - -// Create a appLimitWarning -const { mutate: create } = useCreateAppLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); -``` - ### OrgChartEdgeGrant ```typescript @@ -840,46 +435,25 @@ const { mutate: create } = useCreateAppClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '' }); ``` -### OrgLimitWarning - -```typescript -// List all orgLimitWarnings -const { data, isLoading } = useOrgLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, -}); - -// Get one orgLimitWarning -const { data: item } = useOrgLimitWarningQuery({ - id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, -}); - -// Create a orgLimitWarning -const { mutate: create } = useCreateOrgLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); -``` - ### MembershipType ```typescript // List all membershipTypes const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, + selection: { fields: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); // Get one membershipType const { data: item } = useMembershipTypeQuery({ id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, + selection: { fields: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); // Create a membershipType const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +create({ name: '', description: '', scope: '', parentMembershipType: '', hasUsersTableEntry: '' }); ``` ### AppGrant @@ -903,6 +477,48 @@ const { mutate: create } = useCreateAppGrantMutation({ create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); ``` +### AppMembershipDefault + +```typescript +// List all appMembershipDefaults +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); + +// Get one appMembershipDefault +const { data: item } = useAppMembershipDefaultQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +}); + +// Create a appMembershipDefault +const { mutate: create } = useCreateAppMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +``` + +### OrgMembershipDefault + +```typescript +// List all orgMembershipDefaults +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +}); + +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +}); + +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); +``` + ### OrgClaimedInvite ```typescript @@ -945,67 +561,46 @@ const { mutate: create } = useCreateOrgGrantMutation({ create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgMembershipSetting - -```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, -}); - -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, -}); - -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); -``` - -### AppLimitEvent +### OrgChartEdge ```typescript -// List all appLimitEvents -const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +// List all orgChartEdges +const { data, isLoading } = useOrgChartEdgesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); -// Get one appLimitEvent -const { data: item } = useAppLimitEventQuery({ +// Get one orgChartEdge +const { data: item } = useOrgChartEdgeQuery({ id: '', - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); -// Create a appLimitEvent -const { mutate: create } = useCreateAppLimitEventMutation({ +// Create a orgChartEdge +const { mutate: create } = useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` -### OrgLimitEvent +### OrgMembershipSetting ```typescript -// List all orgLimitEvents -const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +// List all orgMembershipSettings +const { data, isLoading } = useOrgMembershipSettingsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Get one orgLimitEvent -const { data: item } = useOrgLimitEventQuery({ +// Get one orgMembershipSetting +const { data: item } = useOrgMembershipSettingQuery({ id: '', - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Create a orgLimitEvent -const { mutate: create } = useCreateOrgLimitEventMutation({ +// Create a orgMembershipSetting +const { mutate: create } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` ### AppMembership @@ -1029,48 +624,6 @@ const { mutate: create } = useCreateAppMembershipMutation({ create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` -### OrgMembership - -```typescript -// List all orgMemberships -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Get one orgMembership -const { data: item } = useOrgMembershipQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Create a orgMembership -const { mutate: create } = useCreateOrgMembershipMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); -``` - -### OrgMemberProfile - -```typescript -// List all orgMemberProfiles -const { data, isLoading } = useOrgMemberProfilesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Get one orgMemberProfile -const { data: item } = useOrgMemberProfileQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Create a orgMemberProfile -const { mutate: create } = useCreateOrgMemberProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); -``` - ### AppInvite ```typescript @@ -1092,67 +645,46 @@ const { mutate: create } = useCreateAppInviteMutation({ create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); ``` -### AppLimit - -```typescript -// List all appLimits -const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, -}); - -// Get one appLimit -const { data: item } = useAppLimitQuery({ - id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, -}); - -// Create a appLimit -const { mutate: create } = useCreateAppLimitMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }); -``` - -### OrgLimitAggregate +### OrgMembership ```typescript -// List all orgLimitAggregates -const { data, isLoading } = useOrgLimitAggregatesQuery({ - selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, +// List all orgMemberships +const { data, isLoading } = useOrgMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, }); -// Get one orgLimitAggregate -const { data: item } = useOrgLimitAggregateQuery({ +// Get one orgMembership +const { data: item } = useOrgMembershipQuery({ id: '', - selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, }); -// Create a orgLimitAggregate -const { mutate: create } = useCreateOrgLimitAggregateMutation({ +// Create a orgMembership +const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); ``` -### OrgLimit +### OrgMemberProfile ```typescript -// List all orgLimits -const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, +// List all orgMemberProfiles +const { data, isLoading } = useOrgMemberProfilesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, }); -// Get one orgLimit -const { data: item } = useOrgLimitQuery({ +// Get one orgMemberProfile +const { data: item } = useOrgMemberProfileQuery({ id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, }); -// Create a orgLimit -const { mutate: create } = useCreateOrgLimitMutation({ +// Create a orgMemberProfile +const { mutate: create } = useCreateOrgMemberProfileMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }); +create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); ``` ### OrgInvite diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index be407e1ee9..c6a522b17a 100644 --- a/sdk/constructive-react/src/admin/hooks/index.ts +++ b/sdk/constructive-react/src/admin/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLimitCreditRedemption, AppLimitCreditCodeItem, AppLimitCredit, OrgMember, AppPermissionDefault, AppAdminGrant, AppOwnerGrant, OrgPermissionDefault, AppMembershipDefault, OrgAdminGrant, OrgMembershipDefault, OrgOwnerGrant, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, OrgChartEdge, AppLimitDefault, OrgLimitDefault, OrgLimitCredit, AppLimitCreditCode, AppLimitWarning, OrgChartEdgeGrant, AppClaimedInvite, OrgLimitWarning, MembershipType, AppGrant, OrgClaimedInvite, OrgGrant, OrgMembershipSetting, AppLimitEvent, OrgLimitEvent, AppMembership, OrgMembership, OrgMemberProfile, AppInvite, AppLimit, OrgLimitAggregate, OrgLimit, OrgInvite + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, OrgAdminGrant, OrgOwnerGrant, OrgChartEdgeGrant, AppClaimedInvite, MembershipType, AppGrant, AppMembershipDefault, OrgMembershipDefault, OrgClaimedInvite, OrgGrant, OrgChartEdge, OrgMembershipSetting, AppMembership, AppInvite, OrgMembership, OrgMemberProfile, OrgInvite * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index f56e51e4ce..4c823879d4 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -19,45 +19,27 @@ import { orgGetSubordinatesRecordKeys, appPermissionKeys, orgPermissionKeys, - appLimitCreditRedemptionKeys, - appLimitCreditCodeItemKeys, - appLimitCreditKeys, orgMemberKeys, appPermissionDefaultKeys, + orgPermissionDefaultKeys, appAdminGrantKeys, appOwnerGrantKeys, - orgPermissionDefaultKeys, - appMembershipDefaultKeys, orgAdminGrantKeys, - orgMembershipDefaultKeys, orgOwnerGrantKeys, - appLimitCapsDefaultKeys, - orgLimitCapsDefaultKeys, - appLimitCapKeys, - orgLimitCapKeys, - orgChartEdgeKeys, - appLimitDefaultKeys, - orgLimitDefaultKeys, - orgLimitCreditKeys, - appLimitCreditCodeKeys, - appLimitWarningKeys, orgChartEdgeGrantKeys, appClaimedInviteKeys, - orgLimitWarningKeys, membershipTypeKeys, appGrantKeys, + appMembershipDefaultKeys, + orgMembershipDefaultKeys, orgClaimedInviteKeys, orgGrantKeys, + orgChartEdgeKeys, orgMembershipSettingKeys, - appLimitEventKeys, - orgLimitEventKeys, appMembershipKeys, + appInviteKeys, orgMembershipKeys, orgMemberProfileKeys, - appInviteKeys, - appLimitKeys, - orgLimitAggregateKeys, - orgLimitKeys, orgInviteKeys, } from './query-keys'; /** @@ -148,57 +130,6 @@ export const invalidate = { queryKey: orgPermissionKeys.detail(id), }), }, - /** Invalidate appLimitCreditRedemption queries */ appLimitCreditRedemption: { - /** Invalidate all appLimitCreditRedemption queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.all, - }), - /** Invalidate appLimitCreditRedemption list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.lists(), - }), - /** Invalidate a specific appLimitCreditRedemption */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.detail(id), - }), - }, - /** Invalidate appLimitCreditCodeItem queries */ appLimitCreditCodeItem: { - /** Invalidate all appLimitCreditCodeItem queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.all, - }), - /** Invalidate appLimitCreditCodeItem list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.lists(), - }), - /** Invalidate a specific appLimitCreditCodeItem */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.detail(id), - }), - }, - /** Invalidate appLimitCredit queries */ appLimitCredit: { - /** Invalidate all appLimitCredit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.all, - }), - /** Invalidate appLimitCredit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.lists(), - }), - /** Invalidate a specific appLimitCredit */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.detail(id), - }), - }, /** Invalidate orgMember queries */ orgMember: { /** Invalidate all orgMember queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -233,6 +164,23 @@ export const invalidate = { queryKey: appPermissionDefaultKeys.detail(id), }), }, + /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { + /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.all, + }), + /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }), + /** Invalidate a specific orgPermissionDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.detail(id), + }), + }, /** Invalidate appAdminGrant queries */ appAdminGrant: { /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -267,40 +215,6 @@ export const invalidate = { queryKey: appOwnerGrantKeys.detail(id), }), }, - /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { - /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.all, - }), - /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }), - /** Invalidate a specific orgPermissionDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.detail(id), - }), - }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, - }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), - }), - /** Invalidate a specific appMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), - }), - }, /** Invalidate orgAdminGrant queries */ orgAdminGrant: { /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -318,23 +232,6 @@ export const invalidate = { queryKey: orgAdminGrantKeys.detail(id), }), }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, - }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), - }), - /** Invalidate a specific orgMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), - }), - }, /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -352,176 +249,6 @@ export const invalidate = { queryKey: orgOwnerGrantKeys.detail(id), }), }, - /** Invalidate appLimitCapsDefault queries */ appLimitCapsDefault: { - /** Invalidate all appLimitCapsDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.all, - }), - /** Invalidate appLimitCapsDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.lists(), - }), - /** Invalidate a specific appLimitCapsDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.detail(id), - }), - }, - /** Invalidate orgLimitCapsDefault queries */ orgLimitCapsDefault: { - /** Invalidate all orgLimitCapsDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.all, - }), - /** Invalidate orgLimitCapsDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.lists(), - }), - /** Invalidate a specific orgLimitCapsDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(id), - }), - }, - /** Invalidate appLimitCap queries */ appLimitCap: { - /** Invalidate all appLimitCap queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.all, - }), - /** Invalidate appLimitCap list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.lists(), - }), - /** Invalidate a specific appLimitCap */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.detail(id), - }), - }, - /** Invalidate orgLimitCap queries */ orgLimitCap: { - /** Invalidate all orgLimitCap queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.all, - }), - /** Invalidate orgLimitCap list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.lists(), - }), - /** Invalidate a specific orgLimitCap */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.detail(id), - }), - }, - /** Invalidate orgChartEdge queries */ orgChartEdge: { - /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.all, - }), - /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.lists(), - }), - /** Invalidate a specific orgChartEdge */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.detail(id), - }), - }, - /** Invalidate appLimitDefault queries */ appLimitDefault: { - /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.all, - }), - /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), - }), - /** Invalidate a specific appLimitDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.detail(id), - }), - }, - /** Invalidate orgLimitDefault queries */ orgLimitDefault: { - /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.all, - }), - /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), - }), - /** Invalidate a specific orgLimitDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.detail(id), - }), - }, - /** Invalidate orgLimitCredit queries */ orgLimitCredit: { - /** Invalidate all orgLimitCredit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.all, - }), - /** Invalidate orgLimitCredit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.lists(), - }), - /** Invalidate a specific orgLimitCredit */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.detail(id), - }), - }, - /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { - /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.all, - }), - /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), - }), - /** Invalidate a specific appLimitCreditCode */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), - }), - }, - /** Invalidate appLimitWarning queries */ appLimitWarning: { - /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.all, - }), - /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), - }), - /** Invalidate a specific appLimitWarning */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.detail(id), - }), - }, /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { /** Invalidate all orgChartEdgeGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -556,23 +283,6 @@ export const invalidate = { queryKey: appClaimedInviteKeys.detail(id), }), }, - /** Invalidate orgLimitWarning queries */ orgLimitWarning: { - /** Invalidate all orgLimitWarning queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.all, - }), - /** Invalidate orgLimitWarning list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.lists(), - }), - /** Invalidate a specific orgLimitWarning */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.detail(id), - }), - }, /** Invalidate membershipType queries */ membershipType: { /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -604,6 +314,40 @@ export const invalidate = { queryKey: appGrantKeys.detail(id), }), }, + /** Invalidate appMembershipDefault queries */ appMembershipDefault: { + /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.all, + }), + /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific appMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.detail(id), + }), + }, + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.all, + }), + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific orgMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.detail(id), + }), + }, /** Invalidate orgClaimedInvite queries */ orgClaimedInvite: { /** Invalidate all orgClaimedInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -635,72 +379,72 @@ export const invalidate = { queryKey: orgGrantKeys.detail(id), }), }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate orgChartEdge queries */ orgChartEdge: { + /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, + queryKey: orgChartEdgeKeys.all, }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), + queryKey: orgChartEdgeKeys.lists(), }), - /** Invalidate a specific orgMembershipSetting */ detail: ( + /** Invalidate a specific orgChartEdge */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }), }, - /** Invalidate appLimitEvent queries */ appLimitEvent: { - /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { + /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.all, + queryKey: orgMembershipSettingKeys.all, }), - /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.lists(), + queryKey: orgMembershipSettingKeys.lists(), }), - /** Invalidate a specific appLimitEvent */ detail: ( + /** Invalidate a specific orgMembershipSetting */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }), }, - /** Invalidate orgLimitEvent queries */ orgLimitEvent: { - /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembership queries */ appMembership: { + /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.all, + queryKey: appMembershipKeys.all, }), - /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.lists(), + queryKey: appMembershipKeys.lists(), }), - /** Invalidate a specific orgLimitEvent */ detail: ( + /** Invalidate a specific appMembership */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }), }, - /** Invalidate appMembership queries */ appMembership: { - /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => + /** Invalidate appInvite queries */ appInvite: { + /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.all, + queryKey: appInviteKeys.all, }), - /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), + queryKey: appInviteKeys.lists(), }), - /** Invalidate a specific appMembership */ detail: ( + /** Invalidate a specific appInvite */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: appInviteKeys.detail(id), }), }, /** Invalidate orgMembership queries */ orgMembership: { @@ -737,68 +481,6 @@ export const invalidate = { queryKey: orgMemberProfileKeys.detail(id), }), }, - /** Invalidate appInvite queries */ appInvite: { - /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.all, - }), - /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), - }), - /** Invalidate a specific appInvite */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.detail(id), - }), - }, - /** Invalidate appLimit queries */ appLimit: { - /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.all, - }), - /** Invalidate appLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.lists(), - }), - /** Invalidate a specific appLimit */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.detail(id), - }), - }, - /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { - /** Invalidate all orgLimitAggregate queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.all, - }), - /** Invalidate orgLimitAggregate list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.lists(), - }), - /** Invalidate a specific orgLimitAggregate */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.detail(id), - }), - }, - /** Invalidate orgLimit queries */ orgLimit: { - /** Invalidate all orgLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.all, - }), - /** Invalidate orgLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.lists(), - }), - /** Invalidate a specific orgLimit */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.detail(id), - }), - }, /** Invalidate orgInvite queries */ orgInvite: { /** Invalidate all orgInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -861,30 +543,6 @@ export const remove = { queryKey: orgPermissionKeys.detail(id), }); }, - /** Remove appLimitCreditRedemption from cache */ appLimitCreditRedemption: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCreditRedemptionKeys.detail(id), - }); - }, - /** Remove appLimitCreditCodeItem from cache */ appLimitCreditCodeItem: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCreditCodeItemKeys.detail(id), - }); - }, - /** Remove appLimitCredit from cache */ appLimitCredit: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCreditKeys.detail(id), - }); - }, /** Remove orgMember from cache */ orgMember: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: orgMemberKeys.detail(id), @@ -898,22 +556,6 @@ export const remove = { queryKey: appPermissionDefaultKeys.detail(id), }); }, - /** Remove appAdminGrant from cache */ appAdminGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appAdminGrantKeys.detail(id), - }); - }, - /** Remove appOwnerGrant from cache */ appOwnerGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appOwnerGrantKeys.detail(id), - }); - }, /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( queryClient: QueryClient, id: string | number @@ -922,28 +564,28 @@ export const remove = { queryKey: orgPermissionDefaultKeys.detail(id), }); }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + /** Remove appAdminGrant from cache */ appAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: appAdminGrantKeys.detail(id), }); }, - /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + /** Remove appOwnerGrant from cache */ appOwnerGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: appOwnerGrantKeys.detail(id), }); }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }); }, /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( @@ -954,121 +596,49 @@ export const remove = { queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCapsDefaultKeys.detail(id), - }); - }, - /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(id), - }); - }, - /** Remove appLimitCap from cache */ appLimitCap: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCapKeys.detail(id), - }); - }, - /** Remove orgLimitCap from cache */ orgLimitCap: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitCapKeys.detail(id), - }); - }, - /** Remove orgChartEdge from cache */ orgChartEdge: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgChartEdgeKeys.detail(id), - }); - }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), - }); - }, - /** Remove orgLimitDefault from cache */ orgLimitDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(id), - }); - }, - /** Remove orgLimitCredit from cache */ orgLimitCredit: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitCreditKeys.detail(id), - }); - }, - /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( + /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: orgChartEdgeGrantKeys.detail(id), }); }, - /** Remove appLimitWarning from cache */ appLimitWarning: ( + /** Remove appClaimedInvite from cache */ appClaimedInvite: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: appClaimedInviteKeys.detail(id), }); }, - /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgChartEdgeGrantKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, - /** Remove appClaimedInvite from cache */ appClaimedInvite: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: appClaimedInviteKeys.detail(id), + queryKey: appGrantKeys.detail(id), }); }, - /** Remove orgLimitWarning from cache */ orgLimitWarning: ( + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitWarningKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), - }); - }, - /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appGrantKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }); }, /** Remove orgClaimedInvite from cache */ orgClaimedInvite: ( @@ -1084,36 +654,33 @@ export const remove = { queryKey: orgGrantKeys.detail(id), }); }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + /** Remove orgChartEdge from cache */ orgChartEdge: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }); }, - /** Remove appLimitEvent from cache */ appLimitEvent: ( + /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitEventKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }); }, - /** Remove orgLimitEvent from cache */ orgLimitEvent: ( + /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitEventKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }); }, - /** Remove appMembership from cache */ appMembership: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: appInviteKeys.detail(id), }); }, /** Remove orgMembership from cache */ orgMembership: ( @@ -1132,29 +699,6 @@ export const remove = { queryKey: orgMemberProfileKeys.detail(id), }); }, - /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appInviteKeys.detail(id), - }); - }, - /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appLimitKeys.detail(id), - }); - }, - /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitAggregateKeys.detail(id), - }); - }, - /** Remove orgLimit from cache */ orgLimit: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: orgLimitKeys.detail(id), - }); - }, /** Remove orgInvite from cache */ orgInvite: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: orgInviteKeys.detail(id), diff --git a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts index 38cd9a8802..c5e0bb8720 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -57,39 +57,6 @@ export const orgPermissionMutationKeys = { /** Delete orgPermission mutation key */ delete: (id: string | number) => ['mutation', 'orgpermission', 'delete', id] as const, } as const; -export const appLimitCreditRedemptionMutationKeys = { - /** All appLimitCreditRedemption mutation keys */ all: [ - 'mutation', - 'applimitcreditredemption', - ] as const, - /** Create appLimitCreditRedemption mutation key */ create: () => - ['mutation', 'applimitcreditredemption', 'create'] as const, - /** Update appLimitCreditRedemption mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditredemption', 'update', id] as const, - /** Delete appLimitCreditRedemption mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditredemption', 'delete', id] as const, -} as const; -export const appLimitCreditCodeItemMutationKeys = { - /** All appLimitCreditCodeItem mutation keys */ all: [ - 'mutation', - 'applimitcreditcodeitem', - ] as const, - /** Create appLimitCreditCodeItem mutation key */ create: () => - ['mutation', 'applimitcreditcodeitem', 'create'] as const, - /** Update appLimitCreditCodeItem mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcodeitem', 'update', id] as const, - /** Delete appLimitCreditCodeItem mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcodeitem', 'delete', id] as const, -} as const; -export const appLimitCreditMutationKeys = { - /** All appLimitCredit mutation keys */ all: ['mutation', 'applimitcredit'] as const, - /** Create appLimitCredit mutation key */ create: () => - ['mutation', 'applimitcredit', 'create'] as const, - /** Update appLimitCredit mutation key */ update: (id: string | number) => - ['mutation', 'applimitcredit', 'update', id] as const, - /** Delete appLimitCredit mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcredit', 'delete', id] as const, -} as const; export const orgMemberMutationKeys = { /** All orgMember mutation keys */ all: ['mutation', 'orgmember'] as const, /** Create orgMember mutation key */ create: () => ['mutation', 'orgmember', 'create'] as const, @@ -107,6 +74,15 @@ export const appPermissionDefaultMutationKeys = { /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'apppermissiondefault', 'delete', id] as const, } as const; +export const orgPermissionDefaultMutationKeys = { + /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, + /** Create orgPermissionDefault mutation key */ create: () => + ['mutation', 'orgpermissiondefault', 'create'] as const, + /** Update orgPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'update', id] as const, + /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'delete', id] as const, +} as const; export const appAdminGrantMutationKeys = { /** All appAdminGrant mutation keys */ all: ['mutation', 'appadmingrant'] as const, /** Create appAdminGrant mutation key */ create: () => @@ -125,24 +101,6 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', 'delete', id] as const, } as const; -export const orgPermissionDefaultMutationKeys = { - /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, - /** Create orgPermissionDefault mutation key */ create: () => - ['mutation', 'orgpermissiondefault', 'create'] as const, - /** Update orgPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'update', id] as const, - /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'delete', id] as const, -} as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, -} as const; export const orgAdminGrantMutationKeys = { /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, /** Create orgAdminGrant mutation key */ create: () => @@ -152,15 +110,6 @@ export const orgAdminGrantMutationKeys = { /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgadmingrant', 'delete', id] as const, } as const; -export const orgMembershipDefaultMutationKeys = { - /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, - /** Create orgMembershipDefault mutation key */ create: () => - ['mutation', 'orgmembershipdefault', 'create'] as const, - /** Update orgMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'update', id] as const, - /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'delete', id] as const, -} as const; export const orgOwnerGrantMutationKeys = { /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, /** Create orgOwnerGrant mutation key */ create: () => @@ -170,96 +119,6 @@ export const orgOwnerGrantMutationKeys = { /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgownergrant', 'delete', id] as const, } as const; -export const appLimitCapsDefaultMutationKeys = { - /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'] as const, - /** Create appLimitCapsDefault mutation key */ create: () => - ['mutation', 'applimitcapsdefault', 'create'] as const, - /** Update appLimitCapsDefault mutation key */ update: (id: string | number) => - ['mutation', 'applimitcapsdefault', 'update', id] as const, - /** Delete appLimitCapsDefault mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcapsdefault', 'delete', id] as const, -} as const; -export const orgLimitCapsDefaultMutationKeys = { - /** All orgLimitCapsDefault mutation keys */ all: ['mutation', 'orglimitcapsdefault'] as const, - /** Create orgLimitCapsDefault mutation key */ create: () => - ['mutation', 'orglimitcapsdefault', 'create'] as const, - /** Update orgLimitCapsDefault mutation key */ update: (id: string | number) => - ['mutation', 'orglimitcapsdefault', 'update', id] as const, - /** Delete orgLimitCapsDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitcapsdefault', 'delete', id] as const, -} as const; -export const appLimitCapMutationKeys = { - /** All appLimitCap mutation keys */ all: ['mutation', 'applimitcap'] as const, - /** Create appLimitCap mutation key */ create: () => - ['mutation', 'applimitcap', 'create'] as const, - /** Update appLimitCap mutation key */ update: (id: string | number) => - ['mutation', 'applimitcap', 'update', id] as const, - /** Delete appLimitCap mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcap', 'delete', id] as const, -} as const; -export const orgLimitCapMutationKeys = { - /** All orgLimitCap mutation keys */ all: ['mutation', 'orglimitcap'] as const, - /** Create orgLimitCap mutation key */ create: () => - ['mutation', 'orglimitcap', 'create'] as const, - /** Update orgLimitCap mutation key */ update: (id: string | number) => - ['mutation', 'orglimitcap', 'update', id] as const, - /** Delete orgLimitCap mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitcap', 'delete', id] as const, -} as const; -export const orgChartEdgeMutationKeys = { - /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, - /** Create orgChartEdge mutation key */ create: () => - ['mutation', 'orgchartedge', 'create'] as const, - /** Update orgChartEdge mutation key */ update: (id: string | number) => - ['mutation', 'orgchartedge', 'update', id] as const, - /** Delete orgChartEdge mutation key */ delete: (id: string | number) => - ['mutation', 'orgchartedge', 'delete', id] as const, -} as const; -export const appLimitDefaultMutationKeys = { - /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, - /** Create appLimitDefault mutation key */ create: () => - ['mutation', 'applimitdefault', 'create'] as const, - /** Update appLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'applimitdefault', 'update', id] as const, - /** Delete appLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'applimitdefault', 'delete', id] as const, -} as const; -export const orgLimitDefaultMutationKeys = { - /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, - /** Create orgLimitDefault mutation key */ create: () => - ['mutation', 'orglimitdefault', 'create'] as const, - /** Update orgLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'orglimitdefault', 'update', id] as const, - /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitdefault', 'delete', id] as const, -} as const; -export const orgLimitCreditMutationKeys = { - /** All orgLimitCredit mutation keys */ all: ['mutation', 'orglimitcredit'] as const, - /** Create orgLimitCredit mutation key */ create: () => - ['mutation', 'orglimitcredit', 'create'] as const, - /** Update orgLimitCredit mutation key */ update: (id: string | number) => - ['mutation', 'orglimitcredit', 'update', id] as const, - /** Delete orgLimitCredit mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitcredit', 'delete', id] as const, -} as const; -export const appLimitCreditCodeMutationKeys = { - /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, - /** Create appLimitCreditCode mutation key */ create: () => - ['mutation', 'applimitcreditcode', 'create'] as const, - /** Update appLimitCreditCode mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcode', 'update', id] as const, - /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcode', 'delete', id] as const, -} as const; -export const appLimitWarningMutationKeys = { - /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, - /** Create appLimitWarning mutation key */ create: () => - ['mutation', 'applimitwarning', 'create'] as const, - /** Update appLimitWarning mutation key */ update: (id: string | number) => - ['mutation', 'applimitwarning', 'update', id] as const, - /** Delete appLimitWarning mutation key */ delete: (id: string | number) => - ['mutation', 'applimitwarning', 'delete', id] as const, -} as const; export const orgChartEdgeGrantMutationKeys = { /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, /** Create orgChartEdgeGrant mutation key */ create: () => @@ -278,15 +137,6 @@ export const appClaimedInviteMutationKeys = { /** Delete appClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'appclaimedinvite', 'delete', id] as const, } as const; -export const orgLimitWarningMutationKeys = { - /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'] as const, - /** Create orgLimitWarning mutation key */ create: () => - ['mutation', 'orglimitwarning', 'create'] as const, - /** Update orgLimitWarning mutation key */ update: (id: string | number) => - ['mutation', 'orglimitwarning', 'update', id] as const, - /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitwarning', 'delete', id] as const, -} as const; export const membershipTypeMutationKeys = { /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, /** Create membershipType mutation key */ create: () => @@ -304,6 +154,24 @@ export const appGrantMutationKeys = { /** Delete appGrant mutation key */ delete: (id: string | number) => ['mutation', 'appgrant', 'delete', id] as const, } as const; +export const appMembershipDefaultMutationKeys = { + /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, + /** Create appMembershipDefault mutation key */ create: () => + ['mutation', 'appmembershipdefault', 'create'] as const, + /** Update appMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'appmembershipdefault', 'update', id] as const, + /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'appmembershipdefault', 'delete', id] as const, +} as const; +export const orgMembershipDefaultMutationKeys = { + /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, + /** Create orgMembershipDefault mutation key */ create: () => + ['mutation', 'orgmembershipdefault', 'create'] as const, + /** Update orgMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'update', id] as const, + /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'delete', id] as const, +} as const; export const orgClaimedInviteMutationKeys = { /** All orgClaimedInvite mutation keys */ all: ['mutation', 'orgclaimedinvite'] as const, /** Create orgClaimedInvite mutation key */ create: () => @@ -321,6 +189,15 @@ export const orgGrantMutationKeys = { /** Delete orgGrant mutation key */ delete: (id: string | number) => ['mutation', 'orggrant', 'delete', id] as const, } as const; +export const orgChartEdgeMutationKeys = { + /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, + /** Create orgChartEdge mutation key */ create: () => + ['mutation', 'orgchartedge', 'create'] as const, + /** Update orgChartEdge mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedge', 'update', id] as const, + /** Delete orgChartEdge mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedge', 'delete', id] as const, +} as const; export const orgMembershipSettingMutationKeys = { /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, /** Create orgMembershipSetting mutation key */ create: () => @@ -330,24 +207,6 @@ export const orgMembershipSettingMutationKeys = { /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipsetting', 'delete', id] as const, } as const; -export const appLimitEventMutationKeys = { - /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, - /** Create appLimitEvent mutation key */ create: () => - ['mutation', 'applimitevent', 'create'] as const, - /** Update appLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'applimitevent', 'update', id] as const, - /** Delete appLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'applimitevent', 'delete', id] as const, -} as const; -export const orgLimitEventMutationKeys = { - /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, - /** Create orgLimitEvent mutation key */ create: () => - ['mutation', 'orglimitevent', 'create'] as const, - /** Update orgLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'orglimitevent', 'update', id] as const, - /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitevent', 'delete', id] as const, -} as const; export const appMembershipMutationKeys = { /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, /** Create appMembership mutation key */ create: () => @@ -357,6 +216,14 @@ export const appMembershipMutationKeys = { /** Delete appMembership mutation key */ delete: (id: string | number) => ['mutation', 'appmembership', 'delete', id] as const, } as const; +export const appInviteMutationKeys = { + /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, + /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, + /** Update appInvite mutation key */ update: (id: string | number) => + ['mutation', 'appinvite', 'update', id] as const, + /** Delete appInvite mutation key */ delete: (id: string | number) => + ['mutation', 'appinvite', 'delete', id] as const, +} as const; export const orgMembershipMutationKeys = { /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, /** Create orgMembership mutation key */ create: () => @@ -375,39 +242,6 @@ export const orgMemberProfileMutationKeys = { /** Delete orgMemberProfile mutation key */ delete: (id: string | number) => ['mutation', 'orgmemberprofile', 'delete', id] as const, } as const; -export const appInviteMutationKeys = { - /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, - /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, - /** Update appInvite mutation key */ update: (id: string | number) => - ['mutation', 'appinvite', 'update', id] as const, - /** Delete appInvite mutation key */ delete: (id: string | number) => - ['mutation', 'appinvite', 'delete', id] as const, -} as const; -export const appLimitMutationKeys = { - /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, - /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, - /** Update appLimit mutation key */ update: (id: string | number) => - ['mutation', 'applimit', 'update', id] as const, - /** Delete appLimit mutation key */ delete: (id: string | number) => - ['mutation', 'applimit', 'delete', id] as const, -} as const; -export const orgLimitAggregateMutationKeys = { - /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, - /** Create orgLimitAggregate mutation key */ create: () => - ['mutation', 'orglimitaggregate', 'create'] as const, - /** Update orgLimitAggregate mutation key */ update: (id: string | number) => - ['mutation', 'orglimitaggregate', 'update', id] as const, - /** Delete orgLimitAggregate mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitaggregate', 'delete', id] as const, -} as const; -export const orgLimitMutationKeys = { - /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, - /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, - /** Update orgLimit mutation key */ update: (id: string | number) => - ['mutation', 'orglimit', 'update', id] as const, - /** Delete orgLimit mutation key */ delete: (id: string | number) => - ['mutation', 'orglimit', 'delete', id] as const, -} as const; export const orgInviteMutationKeys = { /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, /** Create orgInvite mutation key */ create: () => ['mutation', 'orginvite', 'create'] as const, @@ -462,45 +296,27 @@ export const mutationKeys = { orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, - appLimitCreditRedemption: appLimitCreditRedemptionMutationKeys, - appLimitCreditCodeItem: appLimitCreditCodeItemMutationKeys, - appLimitCredit: appLimitCreditMutationKeys, orgMember: orgMemberMutationKeys, appPermissionDefault: appPermissionDefaultMutationKeys, + orgPermissionDefault: orgPermissionDefaultMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, - orgPermissionDefault: orgPermissionDefaultMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, orgAdminGrant: orgAdminGrantMutationKeys, - orgMembershipDefault: orgMembershipDefaultMutationKeys, orgOwnerGrant: orgOwnerGrantMutationKeys, - appLimitCapsDefault: appLimitCapsDefaultMutationKeys, - orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, - appLimitCap: appLimitCapMutationKeys, - orgLimitCap: orgLimitCapMutationKeys, - orgChartEdge: orgChartEdgeMutationKeys, - appLimitDefault: appLimitDefaultMutationKeys, - orgLimitDefault: orgLimitDefaultMutationKeys, - orgLimitCredit: orgLimitCreditMutationKeys, - appLimitCreditCode: appLimitCreditCodeMutationKeys, - appLimitWarning: appLimitWarningMutationKeys, orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, appClaimedInvite: appClaimedInviteMutationKeys, - orgLimitWarning: orgLimitWarningMutationKeys, membershipType: membershipTypeMutationKeys, appGrant: appGrantMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, orgGrant: orgGrantMutationKeys, + orgChartEdge: orgChartEdgeMutationKeys, orgMembershipSetting: orgMembershipSettingMutationKeys, - appLimitEvent: appLimitEventMutationKeys, - orgLimitEvent: orgLimitEventMutationKeys, appMembership: appMembershipMutationKeys, + appInvite: appInviteMutationKeys, orgMembership: orgMembershipMutationKeys, orgMemberProfile: orgMemberProfileMutationKeys, - appInvite: appInviteMutationKeys, - appLimit: appLimitMutationKeys, - orgLimitAggregate: orgLimitAggregateMutationKeys, - orgLimit: orgLimitMutationKeys, orgInvite: orgInviteMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 68fbbfa57c..ab1ec5d951 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -11,123 +11,69 @@ export * from './useDeleteAppPermissionMutation'; export * from './useCreateOrgPermissionMutation'; export * from './useUpdateOrgPermissionMutation'; export * from './useDeleteOrgPermissionMutation'; -export * from './useCreateAppLimitCreditRedemptionMutation'; -export * from './useUpdateAppLimitCreditRedemptionMutation'; -export * from './useDeleteAppLimitCreditRedemptionMutation'; -export * from './useCreateAppLimitCreditCodeItemMutation'; -export * from './useUpdateAppLimitCreditCodeItemMutation'; -export * from './useDeleteAppLimitCreditCodeItemMutation'; -export * from './useCreateAppLimitCreditMutation'; -export * from './useUpdateAppLimitCreditMutation'; -export * from './useDeleteAppLimitCreditMutation'; export * from './useCreateOrgMemberMutation'; export * from './useUpdateOrgMemberMutation'; export * from './useDeleteOrgMemberMutation'; export * from './useCreateAppPermissionDefaultMutation'; export * from './useUpdateAppPermissionDefaultMutation'; export * from './useDeleteAppPermissionDefaultMutation'; +export * from './useCreateOrgPermissionDefaultMutation'; +export * from './useUpdateOrgPermissionDefaultMutation'; +export * from './useDeleteOrgPermissionDefaultMutation'; export * from './useCreateAppAdminGrantMutation'; export * from './useUpdateAppAdminGrantMutation'; export * from './useDeleteAppAdminGrantMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; -export * from './useCreateOrgPermissionDefaultMutation'; -export * from './useUpdateOrgPermissionDefaultMutation'; -export * from './useDeleteOrgPermissionDefaultMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; export * from './useCreateOrgAdminGrantMutation'; export * from './useUpdateOrgAdminGrantMutation'; export * from './useDeleteOrgAdminGrantMutation'; -export * from './useCreateOrgMembershipDefaultMutation'; -export * from './useUpdateOrgMembershipDefaultMutation'; -export * from './useDeleteOrgMembershipDefaultMutation'; export * from './useCreateOrgOwnerGrantMutation'; export * from './useUpdateOrgOwnerGrantMutation'; export * from './useDeleteOrgOwnerGrantMutation'; -export * from './useCreateAppLimitCapsDefaultMutation'; -export * from './useUpdateAppLimitCapsDefaultMutation'; -export * from './useDeleteAppLimitCapsDefaultMutation'; -export * from './useCreateOrgLimitCapsDefaultMutation'; -export * from './useUpdateOrgLimitCapsDefaultMutation'; -export * from './useDeleteOrgLimitCapsDefaultMutation'; -export * from './useCreateAppLimitCapMutation'; -export * from './useUpdateAppLimitCapMutation'; -export * from './useDeleteAppLimitCapMutation'; -export * from './useCreateOrgLimitCapMutation'; -export * from './useUpdateOrgLimitCapMutation'; -export * from './useDeleteOrgLimitCapMutation'; -export * from './useCreateOrgChartEdgeMutation'; -export * from './useUpdateOrgChartEdgeMutation'; -export * from './useDeleteOrgChartEdgeMutation'; -export * from './useCreateAppLimitDefaultMutation'; -export * from './useUpdateAppLimitDefaultMutation'; -export * from './useDeleteAppLimitDefaultMutation'; -export * from './useCreateOrgLimitDefaultMutation'; -export * from './useUpdateOrgLimitDefaultMutation'; -export * from './useDeleteOrgLimitDefaultMutation'; -export * from './useCreateOrgLimitCreditMutation'; -export * from './useUpdateOrgLimitCreditMutation'; -export * from './useDeleteOrgLimitCreditMutation'; -export * from './useCreateAppLimitCreditCodeMutation'; -export * from './useUpdateAppLimitCreditCodeMutation'; -export * from './useDeleteAppLimitCreditCodeMutation'; -export * from './useCreateAppLimitWarningMutation'; -export * from './useUpdateAppLimitWarningMutation'; -export * from './useDeleteAppLimitWarningMutation'; export * from './useCreateOrgChartEdgeGrantMutation'; export * from './useUpdateOrgChartEdgeGrantMutation'; export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateAppClaimedInviteMutation'; export * from './useUpdateAppClaimedInviteMutation'; export * from './useDeleteAppClaimedInviteMutation'; -export * from './useCreateOrgLimitWarningMutation'; -export * from './useUpdateOrgLimitWarningMutation'; -export * from './useDeleteOrgLimitWarningMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; export * from './useCreateAppGrantMutation'; export * from './useUpdateAppGrantMutation'; export * from './useDeleteAppGrantMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateOrgMembershipDefaultMutation'; +export * from './useUpdateOrgMembershipDefaultMutation'; +export * from './useDeleteOrgMembershipDefaultMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; +export * from './useCreateOrgChartEdgeMutation'; +export * from './useUpdateOrgChartEdgeMutation'; +export * from './useDeleteOrgChartEdgeMutation'; export * from './useCreateOrgMembershipSettingMutation'; export * from './useUpdateOrgMembershipSettingMutation'; export * from './useDeleteOrgMembershipSettingMutation'; -export * from './useCreateAppLimitEventMutation'; -export * from './useUpdateAppLimitEventMutation'; -export * from './useDeleteAppLimitEventMutation'; -export * from './useCreateOrgLimitEventMutation'; -export * from './useUpdateOrgLimitEventMutation'; -export * from './useDeleteOrgLimitEventMutation'; export * from './useCreateAppMembershipMutation'; export * from './useUpdateAppMembershipMutation'; export * from './useDeleteAppMembershipMutation'; +export * from './useCreateAppInviteMutation'; +export * from './useUpdateAppInviteMutation'; +export * from './useDeleteAppInviteMutation'; export * from './useCreateOrgMembershipMutation'; export * from './useUpdateOrgMembershipMutation'; export * from './useDeleteOrgMembershipMutation'; export * from './useCreateOrgMemberProfileMutation'; export * from './useUpdateOrgMemberProfileMutation'; export * from './useDeleteOrgMemberProfileMutation'; -export * from './useCreateAppInviteMutation'; -export * from './useUpdateAppInviteMutation'; -export * from './useDeleteAppInviteMutation'; -export * from './useCreateAppLimitMutation'; -export * from './useUpdateAppLimitMutation'; -export * from './useDeleteAppLimitMutation'; -export * from './useCreateOrgLimitAggregateMutation'; -export * from './useUpdateOrgLimitAggregateMutation'; -export * from './useDeleteOrgLimitAggregateMutation'; -export * from './useCreateOrgLimitMutation'; -export * from './useUpdateOrgLimitMutation'; -export * from './useDeleteOrgLimitMutation'; export * from './useCreateOrgInviteMutation'; export * from './useUpdateOrgInviteMutation'; export * from './useDeleteOrgInviteMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/index.ts b/sdk/constructive-react/src/admin/hooks/queries/index.ts index f7964d49b1..7e41116211 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -9,84 +9,48 @@ export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; export * from './useOrgPermissionsQuery'; export * from './useOrgPermissionQuery'; -export * from './useAppLimitCreditRedemptionsQuery'; -export * from './useAppLimitCreditRedemptionQuery'; -export * from './useAppLimitCreditCodeItemsQuery'; -export * from './useAppLimitCreditCodeItemQuery'; -export * from './useAppLimitCreditsQuery'; -export * from './useAppLimitCreditQuery'; export * from './useOrgMembersQuery'; export * from './useOrgMemberQuery'; export * from './useAppPermissionDefaultsQuery'; export * from './useAppPermissionDefaultQuery'; +export * from './useOrgPermissionDefaultsQuery'; +export * from './useOrgPermissionDefaultQuery'; export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; -export * from './useOrgPermissionDefaultsQuery'; -export * from './useOrgPermissionDefaultQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; export * from './useOrgAdminGrantsQuery'; export * from './useOrgAdminGrantQuery'; -export * from './useOrgMembershipDefaultsQuery'; -export * from './useOrgMembershipDefaultQuery'; export * from './useOrgOwnerGrantsQuery'; export * from './useOrgOwnerGrantQuery'; -export * from './useAppLimitCapsDefaultsQuery'; -export * from './useAppLimitCapsDefaultQuery'; -export * from './useOrgLimitCapsDefaultsQuery'; -export * from './useOrgLimitCapsDefaultQuery'; -export * from './useAppLimitCapsQuery'; -export * from './useAppLimitCapQuery'; -export * from './useOrgLimitCapsQuery'; -export * from './useOrgLimitCapQuery'; -export * from './useOrgChartEdgesQuery'; -export * from './useOrgChartEdgeQuery'; -export * from './useAppLimitDefaultsQuery'; -export * from './useAppLimitDefaultQuery'; -export * from './useOrgLimitDefaultsQuery'; -export * from './useOrgLimitDefaultQuery'; -export * from './useOrgLimitCreditsQuery'; -export * from './useOrgLimitCreditQuery'; -export * from './useAppLimitCreditCodesQuery'; -export * from './useAppLimitCreditCodeQuery'; -export * from './useAppLimitWarningsQuery'; -export * from './useAppLimitWarningQuery'; export * from './useOrgChartEdgeGrantsQuery'; export * from './useOrgChartEdgeGrantQuery'; export * from './useAppClaimedInvitesQuery'; export * from './useAppClaimedInviteQuery'; -export * from './useOrgLimitWarningsQuery'; -export * from './useOrgLimitWarningQuery'; export * from './useMembershipTypesQuery'; export * from './useMembershipTypeQuery'; export * from './useAppGrantsQuery'; export * from './useAppGrantQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; +export * from './useOrgMembershipDefaultsQuery'; +export * from './useOrgMembershipDefaultQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; +export * from './useOrgChartEdgesQuery'; +export * from './useOrgChartEdgeQuery'; export * from './useOrgMembershipSettingsQuery'; export * from './useOrgMembershipSettingQuery'; -export * from './useAppLimitEventsQuery'; -export * from './useAppLimitEventQuery'; -export * from './useOrgLimitEventsQuery'; -export * from './useOrgLimitEventQuery'; export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; +export * from './useAppInvitesQuery'; +export * from './useAppInviteQuery'; export * from './useOrgMembershipsQuery'; export * from './useOrgMembershipQuery'; export * from './useOrgMemberProfilesQuery'; export * from './useOrgMemberProfileQuery'; -export * from './useAppInvitesQuery'; -export * from './useAppInviteQuery'; -export * from './useAppLimitsQuery'; -export * from './useAppLimitQuery'; -export * from './useOrgLimitAggregatesQuery'; -export * from './useOrgLimitAggregateQuery'; -export * from './useOrgLimitsQuery'; -export * from './useOrgLimitQuery'; export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useAppPermissionsGetPaddedMaskQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/query-keys.ts b/sdk/constructive-react/src/admin/hooks/query-keys.ts index 5fb87fa7a2..b0fb1bcb21 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -55,33 +55,6 @@ export const orgPermissionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionKeys.details(), id] as const, } as const; -export const appLimitCreditRedemptionKeys = { - /** All appLimitCreditRedemption queries */ all: ['applimitcreditredemption'] as const, - /** List query keys */ lists: () => [...appLimitCreditRedemptionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditRedemptionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditRedemptionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditRedemptionKeys.details(), id] as const, -} as const; -export const appLimitCreditCodeItemKeys = { - /** All appLimitCreditCodeItem queries */ all: ['applimitcreditcodeitem'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeItemKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditCodeItemKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeItemKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditCodeItemKeys.details(), id] as const, -} as const; -export const appLimitCreditKeys = { - /** All appLimitCredit queries */ all: ['applimitcredit'] as const, - /** List query keys */ lists: () => [...appLimitCreditKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditKeys.details(), id] as const, -} as const; export const orgMemberKeys = { /** All orgMember queries */ all: ['orgmember'] as const, /** List query keys */ lists: () => [...orgMemberKeys.all, 'list'] as const, @@ -100,6 +73,15 @@ export const appPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appPermissionDefaultKeys.details(), id] as const, } as const; +export const orgPermissionDefaultKeys = { + /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, + /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionDefaultKeys.details(), id] as const, +} as const; export const appAdminGrantKeys = { /** All appAdminGrant queries */ all: ['appadmingrant'] as const, /** List query keys */ lists: () => [...appAdminGrantKeys.all, 'list'] as const, @@ -118,24 +100,6 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.details(), id] as const, } as const; -export const orgPermissionDefaultKeys = { - /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, - /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionDefaultKeys.details(), id] as const, -} as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, -} as const; export const orgAdminGrantKeys = { /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, @@ -145,15 +109,6 @@ export const orgAdminGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgAdminGrantKeys.details(), id] as const, } as const; -export const orgMembershipDefaultKeys = { - /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, - /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipDefaultKeys.details(), id] as const, -} as const; export const orgOwnerGrantKeys = { /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, @@ -163,96 +118,6 @@ export const orgOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgOwnerGrantKeys.details(), id] as const, } as const; -export const appLimitCapsDefaultKeys = { - /** All appLimitCapsDefault queries */ all: ['applimitcapsdefault'] as const, - /** List query keys */ lists: () => [...appLimitCapsDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCapsDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCapsDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCapsDefaultKeys.details(), id] as const, -} as const; -export const orgLimitCapsDefaultKeys = { - /** All orgLimitCapsDefault queries */ all: ['orglimitcapsdefault'] as const, - /** List query keys */ lists: () => [...orgLimitCapsDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitCapsDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitCapsDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitCapsDefaultKeys.details(), id] as const, -} as const; -export const appLimitCapKeys = { - /** All appLimitCap queries */ all: ['applimitcap'] as const, - /** List query keys */ lists: () => [...appLimitCapKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCapKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCapKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCapKeys.details(), id] as const, -} as const; -export const orgLimitCapKeys = { - /** All orgLimitCap queries */ all: ['orglimitcap'] as const, - /** List query keys */ lists: () => [...orgLimitCapKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitCapKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitCapKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitCapKeys.details(), id] as const, -} as const; -export const orgChartEdgeKeys = { - /** All orgChartEdge queries */ all: ['orgchartedge'] as const, - /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgChartEdgeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgChartEdgeKeys.details(), id] as const, -} as const; -export const appLimitDefaultKeys = { - /** All appLimitDefault queries */ all: ['applimitdefault'] as const, - /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitDefaultKeys.details(), id] as const, -} as const; -export const orgLimitDefaultKeys = { - /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, - /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitDefaultKeys.details(), id] as const, -} as const; -export const orgLimitCreditKeys = { - /** All orgLimitCredit queries */ all: ['orglimitcredit'] as const, - /** List query keys */ lists: () => [...orgLimitCreditKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitCreditKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitCreditKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitCreditKeys.details(), id] as const, -} as const; -export const appLimitCreditCodeKeys = { - /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditCodeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditCodeKeys.details(), id] as const, -} as const; -export const appLimitWarningKeys = { - /** All appLimitWarning queries */ all: ['applimitwarning'] as const, - /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitWarningKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitWarningKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitWarningKeys.details(), id] as const, -} as const; export const orgChartEdgeGrantKeys = { /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, @@ -271,15 +136,6 @@ export const appClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appClaimedInviteKeys.details(), id] as const, } as const; -export const orgLimitWarningKeys = { - /** All orgLimitWarning queries */ all: ['orglimitwarning'] as const, - /** List query keys */ lists: () => [...orgLimitWarningKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitWarningKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitWarningKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitWarningKeys.details(), id] as const, -} as const; export const membershipTypeKeys = { /** All membershipType queries */ all: ['membershiptype'] as const, /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, @@ -298,6 +154,24 @@ export const appGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appGrantKeys.details(), id] as const, } as const; +export const appMembershipDefaultKeys = { + /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, + /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipDefaultKeys.details(), id] as const, +} as const; +export const orgMembershipDefaultKeys = { + /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, + /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipDefaultKeys.details(), id] as const, +} as const; export const orgClaimedInviteKeys = { /** All orgClaimedInvite queries */ all: ['orgclaimedinvite'] as const, /** List query keys */ lists: () => [...orgClaimedInviteKeys.all, 'list'] as const, @@ -316,6 +190,15 @@ export const orgGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgGrantKeys.details(), id] as const, } as const; +export const orgChartEdgeKeys = { + /** All orgChartEdge queries */ all: ['orgchartedge'] as const, + /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgChartEdgeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgChartEdgeKeys.details(), id] as const, +} as const; export const orgMembershipSettingKeys = { /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, @@ -325,24 +208,6 @@ export const orgMembershipSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipSettingKeys.details(), id] as const, } as const; -export const appLimitEventKeys = { - /** All appLimitEvent queries */ all: ['applimitevent'] as const, - /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitEventKeys.details(), id] as const, -} as const; -export const orgLimitEventKeys = { - /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, - /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitEventKeys.details(), id] as const, -} as const; export const appMembershipKeys = { /** All appMembership queries */ all: ['appmembership'] as const, /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, @@ -352,6 +217,15 @@ export const appMembershipKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appMembershipKeys.details(), id] as const, } as const; +export const appInviteKeys = { + /** All appInvite queries */ all: ['appinvite'] as const, + /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appInviteKeys.details(), id] as const, +} as const; export const orgMembershipKeys = { /** All orgMembership queries */ all: ['orgmembership'] as const, /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, @@ -370,42 +244,6 @@ export const orgMemberProfileKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMemberProfileKeys.details(), id] as const, } as const; -export const appInviteKeys = { - /** All appInvite queries */ all: ['appinvite'] as const, - /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appInviteKeys.details(), id] as const, -} as const; -export const appLimitKeys = { - /** All appLimit queries */ all: ['applimit'] as const, - /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitKeys.details(), id] as const, -} as const; -export const orgLimitAggregateKeys = { - /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, - /** List query keys */ lists: () => [...orgLimitAggregateKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitAggregateKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitAggregateKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitAggregateKeys.details(), id] as const, -} as const; -export const orgLimitKeys = { - /** All orgLimit queries */ all: ['orglimit'] as const, - /** List query keys */ lists: () => [...orgLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitKeys.details(), id] as const, -} as const; export const orgInviteKeys = { /** All orgInvite queries */ all: ['orginvite'] as const, /** List query keys */ lists: () => [...orgInviteKeys.all, 'list'] as const, @@ -471,45 +309,27 @@ export const queryKeys = { orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, - appLimitCreditRedemption: appLimitCreditRedemptionKeys, - appLimitCreditCodeItem: appLimitCreditCodeItemKeys, - appLimitCredit: appLimitCreditKeys, orgMember: orgMemberKeys, appPermissionDefault: appPermissionDefaultKeys, + orgPermissionDefault: orgPermissionDefaultKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, - orgPermissionDefault: orgPermissionDefaultKeys, - appMembershipDefault: appMembershipDefaultKeys, orgAdminGrant: orgAdminGrantKeys, - orgMembershipDefault: orgMembershipDefaultKeys, orgOwnerGrant: orgOwnerGrantKeys, - appLimitCapsDefault: appLimitCapsDefaultKeys, - orgLimitCapsDefault: orgLimitCapsDefaultKeys, - appLimitCap: appLimitCapKeys, - orgLimitCap: orgLimitCapKeys, - orgChartEdge: orgChartEdgeKeys, - appLimitDefault: appLimitDefaultKeys, - orgLimitDefault: orgLimitDefaultKeys, - orgLimitCredit: orgLimitCreditKeys, - appLimitCreditCode: appLimitCreditCodeKeys, - appLimitWarning: appLimitWarningKeys, orgChartEdgeGrant: orgChartEdgeGrantKeys, appClaimedInvite: appClaimedInviteKeys, - orgLimitWarning: orgLimitWarningKeys, membershipType: membershipTypeKeys, appGrant: appGrantKeys, + appMembershipDefault: appMembershipDefaultKeys, + orgMembershipDefault: orgMembershipDefaultKeys, orgClaimedInvite: orgClaimedInviteKeys, orgGrant: orgGrantKeys, + orgChartEdge: orgChartEdgeKeys, orgMembershipSetting: orgMembershipSettingKeys, - appLimitEvent: appLimitEventKeys, - orgLimitEvent: orgLimitEventKeys, appMembership: appMembershipKeys, + appInvite: appInviteKeys, orgMembership: orgMembershipKeys, orgMemberProfile: orgMemberProfileKeys, - appInvite: appInviteKeys, - appLimit: appLimitKeys, - orgLimitAggregate: orgLimitAggregateKeys, - orgLimit: orgLimitKeys, orgInvite: orgInviteKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index 53fcc9ce06..027e84fff8 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -25,45 +25,27 @@ const db = createClient({ | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | -| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | -| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | -| `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitCapsDefault` | findMany, findOne, create, update, delete | -| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitCredit` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -194,139 +176,71 @@ const updated = await db.orgPermission.update({ where: { id: '' }, data: { const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditRedemption` - -CRUD operations for AppLimitCreditRedemption records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditRedemption records -const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Create -const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCodeItem` - -CRUD operations for AppLimitCreditCodeItem records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `defaultLimitId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCodeItem records -const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Create -const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCredit` +### `db.orgMember` -CRUD operations for AppLimitCredit records. +CRUD operations for OrgMember records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | +| `isAdmin` | Boolean | Yes | | `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appLimitCredit records -const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); +// List all orgMember records +const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMember` +### `db.appPermissionDefault` -CRUD operations for OrgMember records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | +| `permissions` | BitString | Yes | **Operations:** ```typescript -// List all orgMember records -const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.orgPermissionDefault` -CRUD operations for AppPermissionDefault records. +CRUD operations for OrgPermissionDefault records. **Fields:** @@ -334,24 +248,25 @@ CRUD operations for AppPermissionDefault records. |-------|------|----------| | `id` | UUID | No | | `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -422,676 +337,284 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermissionDefault` +### `db.orgAdminGrant` -CRUD operations for OrgPermissionDefault records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.orgOwnerGrant` -CRUD operations for AppMembershipDefault records. +CRUD operations for OrgOwnerGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdgeGrant` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdgeGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | | `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.appClaimedInvite` -CRUD operations for OrgMembershipDefault records. +CRUD operations for AppClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all appClaimedInvite records +const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.membershipType` -CRUD operations for OrgOwnerGrant records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `scope` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', scope: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCapsDefault` +### `db.appGrant` -CRUD operations for AppLimitCapsDefault records. +CRUD operations for AppGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCapsDefault records -const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appGrant records +const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitCapsDefault` +### `db.appMembershipDefault` -CRUD operations for OrgLimitCapsDefault records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCap` +### `db.orgMembershipDefault` -CRUD operations for AppLimitCap records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | | `entityId` | UUID | Yes | -| `max` | BigInt | Yes | **Operations:** ```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdge` - -CRUD operations for OrgChartEdge records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | - -**Operations:** - -```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCode` - -CRUD operations for AppLimitCreditCode records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitWarning` - -CRUD operations for AppLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdgeGrant` - -CRUD operations for OrgChartEdgeGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitWarning` - -CRUD operations for OrgLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appGrant` - -CRUD operations for AppGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -1165,9 +688,9 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { perm const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgChartEdge` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgChartEdge records. **Fields:** @@ -1176,117 +699,71 @@ CRUD operations for OrgMembershipSetting records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` +### `db.orgMembershipSetting` -CRUD operations for AppLimitEvent records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` - -CRUD operations for OrgLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| | `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -1333,91 +810,6 @@ const updated = await db.appMembership.update({ where: { id: '' }, data: { const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - ### `db.appInvite` CRUD operations for AppInvite records. @@ -1459,129 +851,89 @@ const updated = await db.appInvite.update({ where: { id: '' }, data: { ema const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimit` +### `db.orgMembership` -CRUD operations for AppLimit records. +CRUD operations for OrgMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | | `entityId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); +// List all orgMembership records +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimit` +### `db.orgMemberProfile` -CRUD operations for OrgLimit records. +CRUD operations for OrgMemberProfile records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index 9c9e9839c6..4fdc6e95eb 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -9,45 +9,27 @@ import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; -import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; -import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; -import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; -import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { OrgLimitCreditModel } from './models/orgLimitCredit'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { AppLimitWarningModel } from './models/appLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { AppMembershipModel } from './models/appMembership'; +import { AppInviteModel } from './models/appInvite'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { AppInviteModel } from './models/appInvite'; -import { AppLimitModel } from './models/appLimit'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitModel } from './models/orgLimit'; import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -88,45 +70,27 @@ export function createClient(config: OrmClientConfig) { orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), - appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), - appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), orgAdminGrant: new OrgAdminGrantModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - appLimitCapsDefault: new AppLimitCapsDefaultModel(client), - orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - orgLimitCredit: new OrgLimitCreditModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - appLimitWarning: new AppLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), appMembership: new AppMembershipModel(client), + appInvite: new AppInviteModel(client), orgMembership: new OrgMembershipModel(client), orgMemberProfile: new OrgMemberProfileModel(client), - appInvite: new AppInviteModel(client), - appLimit: new AppLimitModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimit: new OrgLimitModel(client), orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index 9d6397d59c..c06ff000a6 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -266,40 +266,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ -export interface AppLimitCreditRedemption { - id: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string | null; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string | null; -} -/** Items within a credit code — each row grants credits for a specific limit definition */ -export interface AppLimitCreditCodeItem { - id: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string | null; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string | null; - /** Number of credits this item grants per redemption */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface AppLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; @@ -316,6 +282,14 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface OrgPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; + /** References the entity these default permissions apply to */ + entityId?: string | null; +} /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; @@ -338,26 +312,6 @@ export interface AppOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} /** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; @@ -371,18 +325,6 @@ export interface OrgAdminGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; @@ -396,118 +338,6 @@ export interface OrgOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface OrgLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { id: string; @@ -540,20 +370,6 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; -} /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -562,8 +378,8 @@ export interface MembershipType { name?: string | null; /** Description of what this membership type represents */ description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope?: string | null; /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ parentMembershipType?: number | null; /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ @@ -582,6 +398,30 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -610,6 +450,22 @@ export interface OrgGrant { createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -636,62 +492,6 @@ export interface OrgMembershipSetting { /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ limitAllocationMode?: string | null; } -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; @@ -721,6 +521,32 @@ export interface AppMembership { actorId?: string | null; profileId?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { + id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; @@ -777,119 +603,6 @@ export interface OrgMemberProfile { profilePicture?: ConstructiveInternalTypeImage | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ -export interface OrgLimitAggregate { - id: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string | null; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string | null; - /** Current aggregate usage count for this entity and limit */ - num?: string | null; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - entityId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; /** Email address of the invited recipient */ @@ -937,66 +650,31 @@ export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface AppLimitCreditRedemptionRelations { - creditCode?: AppLimitCreditCode | null; -} -export interface AppLimitCreditCodeItemRelations { - creditCode?: AppLimitCreditCode | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditRelations { - defaultLimit?: AppLimitDefault | null; -} export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} +export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface OrgPermissionDefaultRelations {} -export interface AppMembershipDefaultRelations {} export interface OrgAdminGrantRelations {} -export interface OrgMembershipDefaultRelations {} export interface OrgOwnerGrantRelations {} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface OrgChartEdgeRelations {} -export interface AppLimitDefaultRelations { - appLimitCreditsByDefaultLimitId?: ConnectionResult; - appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitDefaultRelations { - orgLimitCreditsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitCreditRelations { - defaultLimit?: OrgLimitDefault | null; -} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} -export interface OrgLimitWarningRelations {} export interface MembershipTypeRelations {} export interface AppGrantRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGrantRelations {} +export interface OrgChartEdgeRelations {} export interface OrgMembershipSettingRelations {} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface AppMembershipRelations {} +export interface AppInviteRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } -export interface AppInviteRelations {} -export interface AppLimitRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & @@ -1005,52 +683,32 @@ export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & - AppLimitCreditRedemptionRelations; -export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & - AppLimitCreditCodeItemRelations; -export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; +export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; +export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; -export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { @@ -1075,38 +733,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type AppLimitCreditRedemptionSelect = { - id?: boolean; - creditCodeId?: boolean; - entityId?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; -}; -export type AppLimitCreditCodeItemSelect = { - id?: boolean; - creditCodeId?: boolean; - defaultLimitId?: boolean; - amount?: boolean; - creditType?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; export type OrgMemberSelect = { id?: boolean; isAdmin?: boolean; @@ -1117,7 +743,12 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppAdminGrantSelect = { +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; +}; +export type AppAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; @@ -1133,20 +764,6 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -1156,15 +773,6 @@ export type OrgAdminGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; -}; export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; @@ -1174,106 +782,6 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgChartEdgeSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - appLimitCreditsByDefaultLimitId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - appLimitCreditCodeItemsByDefaultLimitId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - orgLimitCreditsByDefaultLimitId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; -}; -export type OrgLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - entityId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - defaultLimit?: { - select: OrgLimitDefaultSelect; - }; -}; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; export type OrgChartEdgeGrantSelect = { id?: boolean; entityId?: boolean; @@ -1293,19 +801,11 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; - entityId?: boolean; -}; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; - prefix?: boolean; + scope?: boolean; parentMembershipType?: boolean; hasUsersTableEntry?: boolean; }; @@ -1318,6 +818,24 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; export type OrgClaimedInviteSelect = { id?: boolean; data?: boolean; @@ -1337,6 +855,16 @@ export type OrgGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; +}; export type OrgMembershipSettingSelect = { id?: boolean; createdAt?: boolean; @@ -1353,36 +881,6 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; limitAllocationMode?: boolean; }; -export type AppLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -1401,6 +899,21 @@ export type AppMembershipSelect = { actorId?: boolean; profileId?: boolean; }; +export type AppInviteSelect = { + id?: boolean; + email?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -1440,68 +953,6 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; -export type OrgLimitAggregateSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - reserved?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; export type OrgInviteSelect = { id?: boolean; email?: boolean; @@ -1571,66 +1022,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1659,6 +1050,20 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } +export interface OrgPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultFilter; +} export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1699,42 +1104,6 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; -} -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1757,28 +1126,6 @@ export interface OrgAdminGrantFilter { /** Negates the expression. */ not?: OrgAdminGrantFilter; } -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; -} export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1801,203 +1148,7 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; -} -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -export interface OrgChartEdgeGrantFilter { +export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `entityId` field. */ @@ -2041,26 +1192,6 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; -} export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; @@ -2068,8 +1199,8 @@ export interface MembershipTypeFilter { name?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `parentMembershipType` field. */ parentMembershipType?: IntFilter; /** Filter by the object’s `hasUsersTableEntry` field. */ @@ -2103,6 +1234,50 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} export interface OrgClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2147,6 +1322,30 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2183,74 +1382,6 @@ export interface OrgMembershipSettingFilter { /** Negates the expression. */ not?: OrgMembershipSettingFilter; } -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2291,6 +1422,38 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } +export interface AppInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: AppInviteFilter[]; + /** Negates the expression. */ + not?: AppInviteFilter; +} export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2371,13 +1534,15 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface AppInviteFilter { +export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; /** Filter by the object’s `senderId` field. */ senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; /** Filter by the object’s `inviteToken` field. */ inviteToken?: StringFilter; /** Filter by the object’s `inviteValid` field. */ @@ -2390,162 +1555,22 @@ export interface AppInviteFilter { multiple?: BooleanFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; + and?: OrgInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; + or?: OrgInviteFilter[]; /** Negates the expression. */ - not?: AppInviteFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; -} -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; + not?: OrgInviteFilter; } // ============ OrderBy Types ============ export type OrgGetManagersRecordsOrderBy = @@ -2592,46 +1617,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type OrgMemberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,6 +1637,16 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2684,34 +1679,6 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2730,24 +1697,6 @@ export type OrgAdminGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2766,140 +1715,6 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2938,22 +1753,6 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2964,8 +1763,8 @@ export type MembershipTypeOrderBy = | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' @@ -2988,32 +1787,68 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgClaimedInviteOrderBy = +export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgGrantOrderBy = + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgClaimedInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' @@ -3026,6 +1861,26 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3058,66 +1913,6 @@ export type OrgMembershipSettingOrderBy = | 'POPULATE_MEMBER_EMAIL_DESC' | 'LIMIT_ALLOCATION_MODE_ASC' | 'LIMIT_ALLOCATION_MODE_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3154,6 +1949,36 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3220,130 +2045,6 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3469,76 +2170,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - appLimitCreditRedemption: { - creditCodeId: string; - entityId: string; - }; -} -export interface AppLimitCreditRedemptionPatch { - creditCodeId?: string | null; - entityId?: string | null; -} -export interface UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - appLimitCreditCodeItem: { - creditCodeId: string; - defaultLimitId: string; - amount: string; - creditType?: string; - }; -} -export interface AppLimitCreditCodeItemPatch { - creditCodeId?: string | null; - defaultLimitId?: string | null; - amount?: string | null; - creditType?: string | null; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - appLimitCredit: { - defaultLimitId: string; - actorId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface AppLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - appLimitCreditPatch: AppLimitCreditPatch; -} -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMemberInput { clientMutationId?: string; orgMember: { @@ -3579,6 +2210,26 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; appAdminGrant: { @@ -3623,203 +2274,251 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateOrgAdminGrantInput { clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; + orgAdminGrant: { + isGrant?: boolean; + actorId: string; entityId: string; + grantorId?: string; }; } -export interface OrgPermissionDefaultPatch { - permissions?: string | null; +export interface OrgAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; entityId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgPermissionDefaultInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteOrgPermissionDefaultInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateOrgOwnerGrantInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; + orgOwnerGrant: { + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; } -export interface UpdateAppMembershipDefaultInput { +export interface OrgOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgAdminGrantInput { +export interface CreateOrgChartEdgeGrantInput { clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; + orgChartEdgeGrant: { entityId: string; + childId: string; + parentId?: string; grantorId?: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; }; } -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgChartEdgeGrantPatch { entityId?: string | null; + childId?: string | null; + parentId?: string | null; grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateOrgAdminGrantInput { +export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppClaimedInviteInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appClaimedInvitePatch: AppClaimedInvitePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgOwnerGrantInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgOwnerGrant: { + membershipType: { + name: string; + description: string; + scope: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; + }; +} +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + scope?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + id: number; + membershipTypePatch: MembershipTypePatch; +} +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + appGrant: { + permissions?: string; isGrant?: boolean; actorId: string; - entityId: string; grantorId?: string; }; } -export interface OrgOwnerGrantPatch { +export interface AppGrantPatch { + permissions?: string | null; isGrant?: boolean | null; actorId?: string | null; - entityId?: string | null; grantorId?: string | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapsDefaultInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appLimitCapsDefault: { - name: string; - max?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface AppLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; } -export interface UpdateAppLimitCapsDefaultInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -export interface DeleteAppLimitCapsDefaultInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCapsDefaultInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - orgLimitCapsDefault: { - name: string; - max?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; }; } -export interface OrgLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; } -export interface UpdateOrgLimitCapsDefaultInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -export interface DeleteOrgLimitCapsDefaultInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapInput { +export interface CreateOrgClaimedInviteInput { clientMutationId?: string; - appLimitCap: { - name: string; + orgClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; entityId: string; - max?: string; }; } -export interface AppLimitCapPatch { - name?: string | null; +export interface OrgClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; entityId?: string | null; - max?: string | null; } -export interface UpdateAppLimitCapInput { +export interface UpdateOrgClaimedInviteInput { clientMutationId?: string; id: string; - appLimitCapPatch: AppLimitCapPatch; + orgClaimedInvitePatch: OrgClaimedInvitePatch; } -export interface DeleteAppLimitCapInput { +export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCapInput { +export interface CreateOrgGrantInput { clientMutationId?: string; - orgLimitCap: { - name: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; entityId: string; - max?: string; + grantorId?: string; }; } -export interface OrgLimitCapPatch { - name?: string | null; +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; entityId?: string | null; - max?: string | null; + grantorId?: string | null; } -export interface UpdateOrgLimitCapInput { +export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; - orgLimitCapPatch: OrgLimitCapPatch; + orgGrantPatch: OrgGrantPatch; } -export interface DeleteOrgLimitCapInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } @@ -3849,2467 +2548,855 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - appLimitDefault: { - name: string; - max?: string; - softMax?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface AppLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: string; - softMax?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCreditInput { +export interface CreateAppInviteInput { clientMutationId?: string; - orgLimitCredit: { - defaultLimitId: string; - actorId?: string; - entityId?: string; - amount: string; - creditType?: string; - reason?: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + expiresAt?: string; }; } -export interface OrgLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - entityId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; - }; -} -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeGrantInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - orgChartEdgeGrant: { + orgMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; entityId: string; - childId: string; - parentId?: string; - grantorId?: string; - isGrant?: boolean; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgeGrantPatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -export interface DeleteOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; -} -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; -} -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - orgLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - entityId?: string; + isReadOnly?: boolean; + profileId?: string; }; } -export interface OrgLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; entityId?: string | null; + isReadOnly?: boolean | null; + profileId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateAppGrantInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; + orgMemberProfile: { + membershipId: string; + entityId: string; actorId: string; - grantorId?: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; +export interface OrgMemberProfilePatch { + membershipId?: string | null; + entityId?: string | null; actorId?: string | null; - grantorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgClaimedInviteInput { +export interface CreateOrgInviteInput { clientMutationId?: string; - orgClaimedInvite: { - data?: Record; + orgInvite: { + email?: ConstructiveInternalTypeEmail; senderId?: string; receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + isReadOnly?: boolean; + expiresAt?: string; entityId: string; }; } -export interface OrgClaimedInvitePatch { - data?: Record | null; +export interface OrgInvitePatch { + email?: ConstructiveInternalTypeEmail | null; senderId?: string | null; receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; + isReadOnly?: boolean | null; + expiresAt?: string | null; entityId?: string | null; } -export interface UpdateOrgClaimedInviteInput { +export interface UpdateOrgInviteInput { clientMutationId?: string; id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; + orgInvitePatch: OrgInvitePatch; } -export interface DeleteOrgClaimedInviteInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGrantInput { +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SubmitAppInviteCodeInput { clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; + token?: string; } -export interface UpdateOrgGrantInput { +export interface SubmitOrgInviteCodeInput { clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; + token?: string; } -export interface DeleteOrgGrantInput { - clientMutationId?: string; - 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; } -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface AppLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - orgLimitAggregate: { - name?: string; - entityId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - reserved?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitAggregatePatch { - name?: string | null; - entityId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - reserved?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -export interface DeleteOrgLimitAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - entityId: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - orgInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - receiverId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - isReadOnly?: boolean; - expiresAt?: string; - entityId: string; - }; -} -export interface OrgInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - receiverId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - isReadOnly?: boolean | null; - expiresAt?: string | null; - entityId?: string | null; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - orgInvitePatch: OrgInvitePatch; -} -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppLimitDefault: { - appLimitCreditsByDefaultLimitId: 'AppLimitCredit', - appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', - }, - OrgLimitDefault: { - orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -/** 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; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * 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 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; -} -/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ -export interface BigIntFilter { - /** 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; -} -/** 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; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** 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; -} -/** 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; -} -/** A connection to a list of `AppPermission` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - nodes?: { - select: AppPermissionSelect; - }; - edges?: { - select: AppPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - nodes?: { - select: OrgPermissionSelect; - }; - edges?: { - select: OrgPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface SubmitAppInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitAppInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitOrgInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitOrgInviteCodePayloadSelect = { - 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 CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type CreateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type UpdateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type DeleteAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type CreateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type UpdateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type DeleteAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type CreateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type UpdateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type DeleteAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type CreateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type UpdateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type DeleteAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was created by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type CreateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was updated by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type UpdateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was deleted by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type DeleteOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type CreateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type UpdateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type DeleteAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type CreateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type UpdateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type DeleteOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeEmailFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeEmail; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeEmail; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: ConstructiveInternalTypeEmail[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: ConstructiveInternalTypeEmail[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: ConstructiveInternalTypeEmail; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -export type CreateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** 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; } -export type UpdateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; } -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; +export type AppPermissionConnectionSelect = { + nodes?: { + select: AppPermissionSelect; }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + edges?: { + select: AppPermissionEdgeSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + pageInfo?: { + select: PageInfoSelect; }; + totalCount?: boolean; }; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; } -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; +export type OrgPermissionConnectionSelect = { + nodes?: { + select: OrgPermissionSelect; }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + edges?: { + select: OrgPermissionEdgeSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + pageInfo?: { + select: PageInfoSelect; }; + totalCount?: boolean; }; -export interface CreateAppLimitCapsDefaultPayload { +export interface SubmitAppInviteCodePayload { clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; + result?: boolean | null; } -export type CreateAppLimitCapsDefaultPayloadSelect = { +export type SubmitAppInviteCodePayloadSelect = { clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; + result?: boolean; }; -export interface UpdateAppLimitCapsDefaultPayload { +export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; + result?: boolean | null; } -export type UpdateAppLimitCapsDefaultPayloadSelect = { +export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; + result?: boolean; }; -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | 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; } -export type DeleteAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; }; -export interface CreateOrgLimitCapsDefaultPayload { +export interface CreateAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type CreateOrgLimitCapsDefaultPayloadSelect = { +export type CreateAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface UpdateOrgLimitCapsDefaultPayload { +export interface UpdateAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type UpdateOrgLimitCapsDefaultPayloadSelect = { +export type UpdateAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface DeleteOrgLimitCapsDefaultPayload { +export interface DeleteAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type DeleteOrgLimitCapsDefaultPayloadSelect = { +export type DeleteAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface CreateAppLimitCapPayload { +export interface CreateOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type CreateAppLimitCapPayloadSelect = { +export type CreateOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface UpdateAppLimitCapPayload { +export interface UpdateOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type UpdateAppLimitCapPayloadSelect = { +export type UpdateOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface DeleteAppLimitCapPayload { +export interface DeleteOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type DeleteAppLimitCapPayloadSelect = { +export type DeleteOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface CreateOrgLimitCapPayload { +export interface CreateOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was created by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type CreateOrgLimitCapPayloadSelect = { +export type CreateOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { +export interface UpdateOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was updated by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type UpdateOrgLimitCapPayloadSelect = { +export type UpdateOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface DeleteOrgLimitCapPayload { +export interface DeleteOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was deleted by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type DeleteOrgLimitCapPayloadSelect = { +export type DeleteOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type CreateOrgChartEdgePayloadSelect = { +export type CreateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface CreateOrgLimitCreditPayload { +export interface CreateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type CreateOrgLimitCreditPayloadSelect = { +export type CreateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface UpdateOrgLimitCreditPayload { +export interface UpdateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type UpdateOrgLimitCreditPayloadSelect = { +export type UpdateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface DeleteOrgLimitCreditPayload { +export interface DeleteAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type DeleteOrgLimitCreditPayloadSelect = { +export type DeleteAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateAppLimitWarningPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateAppLimitWarningPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateAppLimitWarningPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateAppLimitWarningPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteAppLimitWarningPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteAppLimitWarningPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateOrgChartEdgeGrantPayload { @@ -6402,51 +3489,6 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -6503,38 +3545,128 @@ export type CreateAppGrantPayloadSelect = { appGrant?: { select: AppGrantSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type UpdateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type DeleteAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6627,6 +3759,51 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type CreateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was created by this mutation. */ @@ -6672,96 +3849,6 @@ export type DeleteOrgMembershipSettingPayloadSelect = { select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type UpdateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type DeleteAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type UpdateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type DeleteOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -6807,96 +3894,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; export interface CreateAppInvitePayload { clientMutationId?: string | null; /** The `AppInvite` that was created by this mutation. */ @@ -6942,139 +3939,94 @@ export type DeleteAppInvitePayloadSelect = { select: AppInviteEdgeSelect; }; }; -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type CreateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateOrgLimitAggregatePayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateOrgLimitAggregatePayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateOrgLimitAggregatePayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateOrgLimitAggregatePayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteOrgLimitAggregatePayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteOrgLimitAggregatePayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface CreateOrgLimitPayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type CreateOrgLimitPayloadSelect = { +export type CreateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface UpdateOrgLimitPayload { +export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type UpdateOrgLimitPayloadSelect = { +export type UpdateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface DeleteOrgLimitPayload { +export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type DeleteOrgLimitPayloadSelect = { +export type DeleteOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7163,42 +4115,6 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} -export type AppLimitCreditRedemptionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditRedemptionSelect; - }; -}; -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -export type AppLimitCreditCodeItemEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeItemSelect; - }; -}; -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -export type AppLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditSelect; - }; -}; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -7223,6 +4139,18 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -7247,30 +4175,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -7283,18 +4187,6 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} -export type OrgMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipDefaultSelect; - }; -}; /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { cursor?: string | null; @@ -7307,126 +4199,6 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -export type AppLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapsDefaultSelect; - }; -}; -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -export type OrgLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapsDefaultSelect; - }; -}; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -export type OrgLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapSelect; - }; -}; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} -export type OrgLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCreditSelect; - }; -}; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -export type AppLimitCreditCodeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeSelect; - }; -}; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} -export type AppLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitWarningSelect; - }; -}; /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { cursor?: string | null; @@ -7451,18 +4223,6 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} -export type OrgLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitWarningSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -7487,6 +4247,30 @@ export type AppGrantEdgeSelect = { select: AppGrantSelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { cursor?: string | null; @@ -7511,40 +4295,28 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} -export type OrgMembershipSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSettingSelect; - }; -}; -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type AppLimitEventEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitEventSelect; + select: OrgChartEdgeSelect; }; }; -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; } -export type OrgLimitEventEdgeSelect = { +export type OrgMembershipSettingEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitEventSelect; + select: OrgMembershipSettingSelect; }; }; /** A `AppMembership` edge in the connection. */ @@ -7559,30 +4331,6 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; /** A `AppInvite` edge in the connection. */ export interface AppInviteEdge { cursor?: string | null; @@ -7595,40 +4343,28 @@ export type AppInviteEdgeSelect = { select: AppInviteSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } -export type OrgLimitAggregateEdgeSelect = { +export type OrgMembershipEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitAggregateSelect; + select: OrgMembershipSelect; }; }; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } -export type OrgLimitEdgeSelect = { +export type OrgMemberProfileEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitSelect; + select: OrgMemberProfileSelect; }; }; /** A `OrgInvite` edge in the connection. */ diff --git a/sdk/constructive-react/src/admin/orm/models/index.ts b/sdk/constructive-react/src/admin/orm/models/index.ts index c2222e7884..3580afbcaf 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -7,43 +7,25 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; -export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; -export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; -export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { OrgLimitCreditModel } from './orgLimitCredit'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { AppLimitWarningModel } from './appLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { AppMembershipModel } from './appMembership'; +export { AppInviteModel } from './appInvite'; export { OrgMembershipModel } from './orgMembership'; export { OrgMemberProfileModel } from './orgMemberProfile'; -export { AppInviteModel } from './appInvite'; -export { AppLimitModel } from './appLimit'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitModel } from './orgLimit'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index f0ff65a84a..14b8f6b92e 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -9,16 +9,6 @@ import type { AppClaimedInvite, AppGrant, AppInvite, - AppLimit, - AppLimitCap, - AppLimitCapsDefault, - AppLimitCredit, - AppLimitCreditCode, - AppLimitCreditCodeItem, - AppLimitCreditRedemption, - AppLimitDefault, - AppLimitEvent, - AppLimitWarning, AppMembership, AppMembershipDefault, AppOwnerGrant, @@ -33,14 +23,6 @@ import type { OrgGetSubordinatesRecord, OrgGrant, OrgInvite, - OrgLimit, - OrgLimitAggregate, - OrgLimitCap, - OrgLimitCapsDefault, - OrgLimitCredit, - OrgLimitDefault, - OrgLimitEvent, - OrgLimitWarning, OrgMember, OrgMemberProfile, OrgMembership, @@ -69,49 +51,6 @@ import type { } from './types'; export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; -/** Methods to use when ordering `AppLimitCredit`. */ -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `AppLimitCreditCodeItem`. */ -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -/** Methods to use when ordering `AppLimitCreditRedemption`. */ -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgMember`. */ export type OrgMemberOrderBy = | 'NATURAL' @@ -134,6 +73,17 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; +/** Methods to use when ordering `OrgPermissionDefault`. */ +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `AppAdminGrant`. */ export type AppAdminGrantOrderBy = | 'NATURAL' @@ -168,36 +118,6 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgPermissionDefault`. */ -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `AppMembershipDefault`. */ -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; /** Methods to use when ordering `OrgAdminGrant`. */ export type OrgAdminGrantOrderBy = | 'NATURAL' @@ -217,25 +137,6 @@ export type OrgAdminGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgMembershipDefault`. */ -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgOwnerGrant`. */ export type OrgOwnerGrantOrderBy = | 'NATURAL' @@ -255,120 +156,6 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLimitCapsDefault`. */ -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitCapsDefault`. */ -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `AppLimitCap`. */ -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitCap`. */ -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgChartEdge`. */ -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `OrgLimitCredit`. */ -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; /** Methods to use when ordering `AppPermission`. */ export type AppPermissionOrderBy = | 'NATURAL' @@ -399,36 +186,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `AppLimitCreditCode`. */ -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -/** Methods to use when ordering `AppLimitWarning`. */ -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; /** Methods to use when ordering `OrgChartEdgeGrant`. */ export type OrgChartEdgeGrantOrderBy = | 'NATURAL' @@ -469,23 +226,6 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgLimitWarning`. */ -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; /** Methods to use when ordering `MembershipType`. */ export type MembershipTypeOrderBy = | 'NATURAL' @@ -497,8 +237,8 @@ export type MembershipTypeOrderBy = | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' @@ -522,6 +262,44 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgClaimedInvite`. */ export type OrgClaimedInviteOrderBy = | 'NATURAL' @@ -562,6 +340,27 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgChartEdge`. */ +export type OrgChartEdgeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; /** Methods to use when ordering `OrgMembershipSetting`. */ export type OrgMembershipSettingOrderBy = | 'NATURAL' @@ -595,70 +394,8 @@ export type OrgMembershipSettingOrderBy = | 'POPULATE_MEMBER_EMAIL_DESC' | 'LIMIT_ALLOCATION_MODE_ASC' | 'LIMIT_ALLOCATION_MODE_DESC'; -/** Methods to use when ordering `AppLimitEvent`. */ -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `OrgLimitEvent`. */ -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `AppMembership`. */ -export type AppMembershipOrderBy = +/** Methods to use when ordering `AppMembership`. */ +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -694,6 +431,37 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; +/** Methods to use when ordering `AppInvite`. */ +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `OrgMembership`. */ export type OrgMembershipOrderBy = | 'NATURAL' @@ -762,134 +530,6 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -/** Methods to use when ordering `AppInvite`. */ -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLimit`. */ -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -/** Methods to use when ordering `OrgLimitAggregate`. */ -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -/** Methods to use when ordering `OrgLimit`. */ -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; /** Methods to use when ordering `OrgInvite`. */ export type OrgInviteOrderBy = | 'NATURAL' @@ -927,157 +567,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} /** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ @@ -1108,6 +597,21 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } +/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultFilter; +} /** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ @@ -1150,44 +654,6 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; -} -/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} /** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ @@ -1211,29 +677,6 @@ export interface OrgAdminGrantFilter { /** Negates the expression. */ not?: OrgAdminGrantFilter; } -/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; -} /** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ @@ -1257,233 +700,70 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapsDefaultFilter { +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; + and?: AppPermissionFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; + or?: AppPermissionFilter[]; /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; + not?: AppPermissionFilter; } -/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapsDefaultFilter { +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; + and?: OrgPermissionFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; + or?: OrgPermissionFilter[]; /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; + not?: OrgPermissionFilter; } -/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapFilter { +/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; + and?: OrgChartEdgeGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; + or?: OrgChartEdgeGrantFilter[]; /** Negates the expression. */ - not?: AppLimitCapFilter; -} -/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} -/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; + not?: OrgChartEdgeGrantFilter; } /** A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ export interface AppClaimedInviteFilter { @@ -1504,27 +784,6 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } -/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; -} /** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ @@ -1533,8 +792,8 @@ export interface MembershipTypeFilter { name?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `parentMembershipType` field. */ parentMembershipType?: IntFilter; /** Filter by the object’s `hasUsersTableEntry` field. */ @@ -1569,6 +828,52 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } +/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} /** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ export interface OrgClaimedInviteFilter { /** Filter by the object’s `id` field. */ @@ -1615,6 +920,31 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} /** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ @@ -1652,76 +982,6 @@ export interface OrgMembershipSettingFilter { /** Negates the expression. */ not?: OrgMembershipSettingFilter; } -/** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -/** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} /** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ @@ -1737,148 +997,31 @@ export interface AppMembershipFilter { /** Filter by the object’s `isApproved` field. */ isApproved?: BooleanFilter; /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; + not?: AppMembershipFilter; } /** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ export interface AppInviteFilter { @@ -1990,158 +1133,122 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitFilter { +/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isExternal` field. */ + isExternal?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipFilter[]; + /** Negates the expression. */ + not?: OrgMembershipFilter; + /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ + orgMemberProfileByMembershipId?: OrgMemberProfileFilter; + /** A related `orgMemberProfileByMembershipId` exists. */ + orgMemberProfileByMembershipIdExists?: boolean; +} +/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMemberProfileFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `membershipId` field. */ + membershipId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `bio` field. */ + bio?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; + and?: OrgMemberProfileFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; + or?: OrgMemberProfileFilter[]; /** Negates the expression. */ - not?: AppLimitFilter; + not?: OrgMemberProfileFilter; + /** Filter by the object’s `membership` relation. */ + membership?: OrgMembershipFilter; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { +/** 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?: IntervalInput; + equalTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; + notEqualTo?: ConstructiveInternalTypeImage; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; + distinctFrom?: ConstructiveInternalTypeImage; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; + notDistinctFrom?: ConstructiveInternalTypeImage; /** Included in the specified list. */ - in?: IntervalInput[]; + in?: ConstructiveInternalTypeImage[]; /** Not included in the specified list. */ - notIn?: IntervalInput[]; + notIn?: ConstructiveInternalTypeImage[]; /** Less than the specified value. */ - lessThan?: IntervalInput; + lessThan?: ConstructiveInternalTypeImage; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; + lessThanOrEqualTo?: ConstructiveInternalTypeImage; /** Greater than the specified value. */ - greaterThan?: IntervalInput; + greaterThan?: ConstructiveInternalTypeImage; /** 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 `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; + 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 `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ export interface OrgInviteFilter { @@ -2190,19 +1297,6 @@ export interface SubmitOrgInviteCodeInput { clientMutationId?: string; token?: string; } -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - /** The `AppLimitCreditRedemption` to be created by this mutation. */ - appLimitCreditRedemption: AppLimitCreditRedemptionInput; -} -/** An input for mutations affecting `AppLimitCreditRedemption` */ -export interface AppLimitCreditRedemptionInput { - id?: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId: string; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId: string; -} export interface CreateOrgMemberInput { clientMutationId?: string; /** The `OrgMember` to be created by this mutation. */ @@ -2229,6 +1323,19 @@ export interface AppPermissionDefaultInput { /** Default permission bitmask applied to new members */ permissions?: string; } +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + /** The `OrgPermissionDefault` to be created by this mutation. */ + orgPermissionDefault: OrgPermissionDefaultInput; +} +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; /** The `AppAdminGrant` to be created by this mutation. */ @@ -2261,36 +1368,6 @@ export interface AppOwnerGrantInput { createdAt?: string; updatedAt?: string; } -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - /** The `OrgPermissionDefault` to be created by this mutation. */ - orgPermissionDefault: OrgPermissionDefaultInput; -} -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; - /** References the entity these default permissions apply to */ - entityId: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - /** The `AppMembershipDefault` to be created by this mutation. */ - appMembershipDefault: AppMembershipDefaultInput; -} -/** An input for mutations affecting `AppMembershipDefault` */ -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} export interface CreateOrgAdminGrantInput { clientMutationId?: string; /** The `OrgAdminGrant` to be created by this mutation. */ @@ -2301,30 +1378,13 @@ export interface OrgAdminGrantInput { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId: string; - /** The entity (org or group) this admin grant applies to */ - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - /** The `OrgMembershipDefault` to be created by this mutation. */ - orgMembershipDefault: OrgMembershipDefaultInput; -} -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { - id?: string; + /** The member receiving or losing the admin grant */ + actorId: string; + /** The entity (org or group) this admin grant applies to */ + entityId: string; + grantorId?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId: string; } export interface CreateOrgOwnerGrantInput { clientMutationId?: string; @@ -2344,130 +1404,6 @@ export interface OrgOwnerGrantInput { createdAt?: string; updatedAt?: string; } -export interface CreateAppLimitCapsDefaultInput { - clientMutationId?: string; - /** The `AppLimitCapsDefault` to be created by this mutation. */ - appLimitCapsDefault: AppLimitCapsDefaultInput; -} -/** An input for mutations affecting `AppLimitCapsDefault` */ -export interface AppLimitCapsDefaultInput { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface CreateOrgLimitCapsDefaultInput { - clientMutationId?: string; - /** The `OrgLimitCapsDefault` to be created by this mutation. */ - orgLimitCapsDefault: OrgLimitCapsDefaultInput; -} -/** An input for mutations affecting `OrgLimitCapsDefault` */ -export interface OrgLimitCapsDefaultInput { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface CreateAppLimitCapInput { - clientMutationId?: string; - /** The `AppLimitCap` to be created by this mutation. */ - appLimitCap: AppLimitCapInput; -} -/** An input for mutations affecting `AppLimitCap` */ -export interface AppLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - /** The `OrgLimitCap` to be created by this mutation. */ - orgLimitCap: OrgLimitCapInput; -} -/** An input for mutations affecting `OrgLimitCap` */ -export interface OrgLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateOrgChartEdgeInput { - clientMutationId?: string; - /** The `OrgChartEdge` to be created by this mutation. */ - orgChartEdge: OrgChartEdgeInput; -} -/** An input for mutations affecting `OrgChartEdge` */ -export interface OrgChartEdgeInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - /** The `AppLimitCreditCodeItem` to be created by this mutation. */ - appLimitCreditCodeItem: AppLimitCreditCodeItemInput; -} -/** An input for mutations affecting `AppLimitCreditCodeItem` */ -export interface AppLimitCreditCodeItemInput { - id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId: string; - /** Number of credits this item grants per redemption */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; -} -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; -} -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { - id?: string; - /** Name identifier of the limit this default applies to */ - name: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; -} -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { - id?: string; - /** Name identifier of the limit this default applies to */ - name: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} export interface CreateAppPermissionInput { clientMutationId?: string; /** The `AppPermission` to be created by this mutation. */ @@ -2502,40 +1438,6 @@ export interface OrgPermissionInput { /** Human-readable description of what this permission allows */ description?: string; } -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - /** The `AppLimitCreditCode` to be created by this mutation. */ - appLimitCreditCode: AppLimitCreditCodeInput; -} -/** An input for mutations affecting `AppLimitCreditCode` */ -export interface AppLimitCreditCodeInput { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - /** The `AppLimitWarning` to be created by this mutation. */ - appLimitWarning: AppLimitWarningInput; -} -/** An input for mutations affecting `AppLimitWarning` */ -export interface AppLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; -} export interface CreateOrgChartEdgeGrantInput { clientMutationId?: string; /** The `OrgChartEdgeGrant` to be created by this mutation. */ @@ -2561,46 +1463,6 @@ export interface OrgChartEdgeGrantInput { /** Timestamp when this grant or revocation was recorded */ createdAt?: string; } -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - /** The `AppLimitCredit` to be created by this mutation. */ - appLimitCredit: AppLimitCreditInput; -} -/** An input for mutations affecting `AppLimitCredit` */ -export interface AppLimitCreditInput { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -export interface CreateOrgLimitCreditInput { - clientMutationId?: string; - /** The `OrgLimitCredit` to be created by this mutation. */ - orgLimitCredit: OrgLimitCreditInput; -} -/** An input for mutations affecting `OrgLimitCredit` */ -export interface OrgLimitCreditInput { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} export interface CreateAppClaimedInviteInput { clientMutationId?: string; /** The `AppClaimedInvite` to be created by this mutation. */ @@ -2618,25 +1480,6 @@ export interface AppClaimedInviteInput { createdAt?: string; updatedAt?: string; } -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - /** The `OrgLimitWarning` to be created by this mutation. */ - orgLimitWarning: OrgLimitWarningInput; -} -/** An input for mutations affecting `OrgLimitWarning` */ -export interface OrgLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} export interface CreateMembershipTypeInput { clientMutationId?: string; /** The `MembershipType` to be created by this mutation. */ @@ -2650,8 +1493,8 @@ export interface MembershipTypeInput { name: string; /** Description of what this membership type represents */ description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope: string; /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ parentMembershipType?: number; /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ @@ -2675,6 +1518,40 @@ export interface AppGrantInput { createdAt?: string; updatedAt?: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; +} +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; +} +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId: string; +} export interface CreateOrgClaimedInviteInput { clientMutationId?: string; /** The `OrgClaimedInvite` to be created by this mutation. */ @@ -2713,6 +1590,27 @@ export interface OrgGrantInput { createdAt?: string; updatedAt?: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface CreateOrgMembershipSettingInput { clientMutationId?: string; /** The `OrgMembershipSetting` to be created by this mutation. */ @@ -2744,72 +1642,6 @@ export interface OrgMembershipSettingInput { /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ limitAllocationMode?: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - /** The `AppLimitEvent` to be created by this mutation. */ - appLimitEvent: AppLimitEventInput; -} -/** An input for mutations affecting `AppLimitEvent` */ -export interface AppLimitEventInput { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - /** The `OrgLimitEvent` to be created by this mutation. */ - orgLimitEvent: OrgLimitEventInput; -} -/** An input for mutations affecting `OrgLimitEvent` */ -export interface OrgLimitEventInput { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} export interface CreateAppMembershipInput { clientMutationId?: string; /** The `AppMembership` to be created by this mutation. */ @@ -2844,6 +1676,37 @@ export interface AppMembershipInput { actorId: string; profileId?: string; } +export interface CreateAppInviteInput { + clientMutationId?: string; + /** The `AppInvite` to be created by this mutation. */ + appInvite: AppInviteInput; +} +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateOrgMembershipInput { clientMutationId?: string; /** The `OrgMembership` to be created by this mutation. */ @@ -2893,154 +1756,21 @@ export interface OrgMemberProfileInput { createdAt?: string; updatedAt?: string; /** References the membership this profile belongs to (1:1) */ - membershipId: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; -} -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; -} -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - /** The `OrgLimitAggregate` to be created by this mutation. */ - orgLimitAggregate: OrgLimitAggregateInput; -} -/** An input for mutations affecting `OrgLimitAggregate` */ -export interface OrgLimitAggregateInput { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - /** The `OrgLimit` to be created by this mutation. */ - orgLimit: OrgLimitInput; -} -/** An input for mutations affecting `OrgLimit` */ -export interface OrgLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; } export interface CreateOrgInviteInput { clientMutationId?: string; @@ -3078,20 +1808,6 @@ export interface OrgInviteInput { updatedAt?: string; entityId: string; } -export interface UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditRedemption` being updated. */ - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -/** Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. */ -export interface AppLimitCreditRedemptionPatch { - id?: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string; -} export interface UpdateOrgMemberInput { clientMutationId?: string; id: string; @@ -3120,6 +1836,20 @@ export interface AppPermissionDefaultPatch { /** Default permission bitmask applied to new members */ permissions?: string; } +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultPatch { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId?: string; +} export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; @@ -3154,38 +1884,6 @@ export interface AppOwnerGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultPatch { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; - /** References the entity these default permissions apply to */ - entityId?: string; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; @@ -3205,24 +1903,6 @@ export interface OrgAdminGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ -export interface OrgMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId?: string; -} export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; @@ -3242,138 +1922,6 @@ export interface OrgOwnerGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. */ - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; -} -/** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */ -export interface AppLimitCapsDefaultPatch { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface UpdateOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; -} -/** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */ -export interface OrgLimitCapsDefaultPatch { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ - appLimitCapPatch: AppLimitCapPatch; -} -/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ -export interface AppLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */ - orgLimitCapPatch: OrgLimitCapPatch; -} -/** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */ -export interface OrgLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateOrgChartEdgeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ - orgChartEdgePatch: OrgChartEdgePatch; -} -/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ -export interface OrgChartEdgePatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId?: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ -export interface AppLimitCreditCodeItemPatch { - id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string; - /** Number of credits this item grants per redemption */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; -} -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { - id?: string; - /** Name identifier of the limit this default applies to */ - name?: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { - id?: string; - /** Name identifier of the limit this default applies to */ - name?: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} export interface UpdateAppPermissionInput { clientMutationId?: string; id: string; @@ -3410,42 +1958,6 @@ export interface OrgPermissionPatch { /** Human-readable description of what this permission allows */ description?: string; } -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ -export interface AppLimitCreditCodePatch { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ - appLimitWarningPatch: AppLimitWarningPatch; -} -/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ -export interface AppLimitWarningPatch { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; -} export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; id: string; @@ -3472,48 +1984,6 @@ export interface OrgChartEdgeGrantPatch { /** Timestamp when this grant or revocation was recorded */ createdAt?: string; } -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */ - appLimitCreditPatch: AppLimitCreditPatch; -} -/** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */ -export interface AppLimitCreditPatch { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ - orgLimitCreditPatch: OrgLimitCreditPatch; -} -/** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */ -export interface OrgLimitCreditPatch { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; @@ -3532,26 +2002,6 @@ export interface AppClaimedInvitePatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ - orgLimitWarningPatch: OrgLimitWarningPatch; -} -/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ -export interface OrgLimitWarningPatch { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} export interface UpdateMembershipTypeInput { clientMutationId?: string; /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -3567,8 +2017,8 @@ export interface MembershipTypePatch { name?: string; /** Description of what this membership type represents */ description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope?: string; /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ parentMembershipType?: number; /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ @@ -3593,6 +2043,42 @@ export interface AppGrantPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId?: string; +} export interface UpdateOrgClaimedInviteInput { clientMutationId?: string; id: string; @@ -3633,6 +2119,28 @@ export interface OrgGrantPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; +} +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; @@ -3662,80 +2170,8 @@ export interface OrgMembershipSettingPatch { inviteProfileAssignmentMode?: string; /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ - id: string; - /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */ - appLimitEventPatch: AppLimitEventPatch; -} -/** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */ -export interface AppLimitEventPatch { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ - id: string; - /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ - orgLimitEventPatch: OrgLimitEventPatch; -} -/** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */ -export interface OrgLimitEventPatch { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; } export interface UpdateAppMembershipInput { clientMutationId?: string; @@ -3772,6 +2208,38 @@ export interface AppMembershipPatch { actorId?: string; profileId?: string; } +export interface UpdateAppInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppInvite` being updated. */ + appInvitePatch: AppInvitePatch; +} +/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ +export interface AppInvitePatch { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; @@ -3841,143 +2309,6 @@ export interface OrgMemberProfilePatch { /** Upload for Profile picture visible to other entity members */ profilePictureUpload?: File; } -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppInvite` being updated. */ - appInvitePatch: AppInvitePatch; -} -/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ -export interface AppInvitePatch { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimit` being updated. */ - appLimitPatch: AppLimitPatch; -} -/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ -export interface AppLimitPatch { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ -export interface OrgLimitAggregatePatch { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimit` being updated. */ - orgLimitPatch: OrgLimitPatch; -} -/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ -export interface OrgLimitPatch { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - entityId?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} export interface UpdateOrgInviteInput { clientMutationId?: string; id: string; @@ -4015,10 +2346,6 @@ export interface OrgInvitePatch { updatedAt?: string; entityId?: string; } -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} export interface DeleteOrgMemberInput { clientMutationId?: string; id: string; @@ -4027,27 +2354,19 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppOwnerGrantInput { - clientMutationId?: string; - id: string; -} export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } @@ -4055,38 +2374,6 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgChartEdgeInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; @@ -4095,34 +2382,14 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitWarningInput { - clientMutationId?: string; - id: string; -} export interface DeleteMembershipTypeInput { clientMutationId?: string; /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -4132,39 +2399,31 @@ export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgGrantInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitEventInput { +export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ id: string; } -export interface DeleteOrgLimitEventInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ id: string; } -export interface DeleteAppMembershipInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMemberProfileInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } @@ -4172,15 +2431,11 @@ export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitAggregateInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } @@ -4196,172 +2451,81 @@ export interface ProvisionBucketInput { * Omit for app-level (database-wide) storage. */ ownerId?: string; -} -/** A connection to a list of `OrgGetManagersRecord` values. */ -export interface OrgGetManagersConnection { - nodes: OrgGetManagersRecord[]; - edges: OrgGetManagersEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgGetSubordinatesRecord` values. */ -export interface OrgGetSubordinatesConnection { - nodes: OrgGetSubordinatesRecord[]; - edges: OrgGetSubordinatesEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppPermission` values. */ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCreditRedemption` values. */ -export interface AppLimitCreditRedemptionConnection { - nodes: AppLimitCreditRedemption[]; - edges: AppLimitCreditRedemptionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMember` values. */ -export interface OrgMemberConnection { - nodes: OrgMember[]; - edges: OrgMemberEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppPermissionDefault` values. */ -export interface AppPermissionDefaultConnection { - nodes: AppPermissionDefault[]; - edges: AppPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppAdminGrant` values. */ -export interface AppAdminGrantConnection { - nodes: AppAdminGrant[]; - edges: AppAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppOwnerGrant` values. */ -export interface AppOwnerGrantConnection { - nodes: AppOwnerGrant[]; - edges: AppOwnerGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgPermissionDefault` values. */ -export interface OrgPermissionDefaultConnection { - nodes: OrgPermissionDefault[]; - edges: OrgPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppMembershipDefault` values. */ -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgAdminGrant` values. */ -export interface OrgAdminGrantConnection { - nodes: OrgAdminGrant[]; - edges: OrgAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipDefault` values. */ -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgOwnerGrant` values. */ -export interface OrgOwnerGrantConnection { - nodes: OrgOwnerGrant[]; - edges: OrgOwnerGrantEdge[]; +} +/** A connection to a list of `OrgGetManagersRecord` values. */ +export interface OrgGetManagersConnection { + nodes: OrgGetManagersRecord[]; + edges: OrgGetManagersEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCapsDefault` values. */ -export interface AppLimitCapsDefaultConnection { - nodes: AppLimitCapsDefault[]; - edges: AppLimitCapsDefaultEdge[]; +/** A connection to a list of `OrgGetSubordinatesRecord` values. */ +export interface OrgGetSubordinatesConnection { + nodes: OrgGetSubordinatesRecord[]; + edges: OrgGetSubordinatesEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitCapsDefault` values. */ -export interface OrgLimitCapsDefaultConnection { - nodes: OrgLimitCapsDefault[]; - edges: OrgLimitCapsDefaultEdge[]; +/** A connection to a list of `AppPermission` values. */ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCap` values. */ -export interface AppLimitCapConnection { - nodes: AppLimitCap[]; - edges: AppLimitCapEdge[]; +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitCap` values. */ -export interface OrgLimitCapConnection { - nodes: OrgLimitCap[]; - edges: OrgLimitCapEdge[]; +/** A connection to a list of `OrgMember` values. */ +export interface OrgMemberConnection { + nodes: OrgMember[]; + edges: OrgMemberEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgChartEdge` values. */ -export interface OrgChartEdgeConnection { - nodes: OrgChartEdge[]; - edges: OrgChartEdgeEdge[]; +/** A connection to a list of `AppPermissionDefault` values. */ +export interface AppPermissionDefaultConnection { + nodes: AppPermissionDefault[]; + edges: AppPermissionDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCodeItem` values. */ -export interface AppLimitCreditCodeItemConnection { - nodes: AppLimitCreditCodeItem[]; - edges: AppLimitCreditCodeItemEdge[]; +/** A connection to a list of `OrgPermissionDefault` values. */ +export interface OrgPermissionDefaultConnection { + nodes: OrgPermissionDefault[]; + edges: OrgPermissionDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; +/** A connection to a list of `AppAdminGrant` values. */ +export interface AppAdminGrantConnection { + nodes: AppAdminGrant[]; + edges: AppAdminGrantEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; +/** A connection to a list of `AppOwnerGrant` values. */ +export interface AppOwnerGrantConnection { + nodes: AppOwnerGrant[]; + edges: AppOwnerGrantEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCode` values. */ -export interface AppLimitCreditCodeConnection { - nodes: AppLimitCreditCode[]; - edges: AppLimitCreditCodeEdge[]; +/** A connection to a list of `OrgAdminGrant` values. */ +export interface OrgAdminGrantConnection { + nodes: OrgAdminGrant[]; + edges: OrgAdminGrantEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitWarning` values. */ -export interface AppLimitWarningConnection { - nodes: AppLimitWarning[]; - edges: AppLimitWarningEdge[]; +/** A connection to a list of `OrgOwnerGrant` values. */ +export interface OrgOwnerGrantConnection { + nodes: OrgOwnerGrant[]; + edges: OrgOwnerGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4372,20 +2536,6 @@ export interface OrgChartEdgeGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCredit` values. */ -export interface AppLimitCreditConnection { - nodes: AppLimitCredit[]; - edges: AppLimitCreditEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitCredit` values. */ -export interface OrgLimitCreditConnection { - nodes: OrgLimitCredit[]; - edges: OrgLimitCreditEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppClaimedInvite` values. */ export interface AppClaimedInviteConnection { nodes: AppClaimedInvite[]; @@ -4393,13 +2543,6 @@ export interface AppClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitWarning` values. */ -export interface OrgLimitWarningConnection { - nodes: OrgLimitWarning[]; - edges: OrgLimitWarningEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `MembershipType` values. */ export interface MembershipTypeConnection { nodes: MembershipType[]; @@ -4414,6 +2557,20 @@ export interface AppGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgClaimedInvite` values. */ export interface OrgClaimedInviteConnection { nodes: OrgClaimedInvite[]; @@ -4428,6 +2585,13 @@ export interface OrgGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgMembershipSetting` values. */ export interface OrgMembershipSettingConnection { nodes: OrgMembershipSetting[]; @@ -4435,20 +2599,6 @@ export interface OrgMembershipSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitEvent` values. */ -export interface AppLimitEventConnection { - nodes: AppLimitEvent[]; - edges: AppLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitEvent` values. */ -export interface OrgLimitEventConnection { - nodes: OrgLimitEvent[]; - edges: OrgLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppMembership` values. */ export interface AppMembershipConnection { nodes: AppMembership[]; @@ -4456,6 +2606,13 @@ export interface AppMembershipConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppInvite` values. */ +export interface AppInviteConnection { + nodes: AppInvite[]; + edges: AppInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgMembership` values. */ export interface OrgMembershipConnection { nodes: OrgMembership[]; @@ -4470,34 +2627,6 @@ export interface OrgMemberProfileConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppInvite` values. */ -export interface AppInviteConnection { - nodes: AppInvite[]; - edges: AppInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimit` values. */ -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitAggregate` values. */ -export interface OrgLimitAggregateConnection { - nodes: OrgLimitAggregate[]; - edges: OrgLimitAggregateEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimit` values. */ -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgInvite` values. */ export interface OrgInviteConnection { nodes: OrgInvite[]; @@ -4517,12 +2646,6 @@ export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; result?: boolean | null; } -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ @@ -4535,6 +2658,12 @@ export interface CreateAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ @@ -4547,84 +2676,18 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was created by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface CreateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface CreateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface CreateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -4637,48 +2700,18 @@ export interface CreateOrgPermissionPayload { orgPermission?: OrgPermission | null; orgPermissionEdge?: OrgPermissionEdge | null; } -export interface CreateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export interface CreateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was created by this mutation. */ orgChartEdgeGrant?: OrgChartEdgeGrant | null; orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export interface CreateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was created by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -4691,6 +2724,18 @@ export interface CreateAppGrantPayload { appGrant?: AppGrant | null; appGrantEdge?: AppGrantEdge | null; } +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface CreateOrgClaimedInvitePayload { clientMutationId?: string | null; /** The `OrgClaimedInvite` that was created by this mutation. */ @@ -4703,30 +2748,30 @@ export interface CreateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was created by this mutation. */ orgMembershipSetting?: OrgMembershipSetting | null; orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } +export interface CreateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} export interface CreateOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was created by this mutation. */ @@ -4739,42 +2784,12 @@ export interface CreateOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface CreateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} export interface UpdateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was updated by this mutation. */ @@ -4787,95 +2802,35 @@ export interface UpdateAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; /** The `OrgPermissionDefault` that was updated by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface UpdateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface UpdateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export interface UpdateAppLimitCreditCodeItemPayload { +export interface UpdateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export interface UpdateAppPermissionPayload { clientMutationId?: string | null; @@ -4889,48 +2844,18 @@ export interface UpdateOrgPermissionPayload { orgPermission?: OrgPermission | null; orgPermissionEdge?: OrgPermissionEdge | null; } -export interface UpdateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export interface UpdateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} export interface UpdateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was updated by this mutation. */ orgChartEdgeGrant?: OrgChartEdgeGrant | null; orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export interface UpdateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was updated by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface UpdateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was updated by this mutation. */ @@ -4943,6 +2868,18 @@ export interface UpdateAppGrantPayload { appGrant?: AppGrant | null; appGrantEdge?: AppGrantEdge | null; } +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface UpdateOrgClaimedInvitePayload { clientMutationId?: string | null; /** The `OrgClaimedInvite` that was updated by this mutation. */ @@ -4955,30 +2892,30 @@ export interface UpdateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface UpdateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was updated by this mutation. */ orgMembershipSetting?: OrgMembershipSetting | null; orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} export interface UpdateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was updated by this mutation. */ appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } +export interface UpdateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was updated by this mutation. */ @@ -4991,42 +2928,12 @@ export interface UpdateOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} export interface UpdateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was updated by this mutation. */ orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} export interface DeleteOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was deleted by this mutation. */ @@ -5039,6 +2946,12 @@ export interface DeleteAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was deleted by this mutation. */ @@ -5051,84 +2964,18 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was deleted by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface DeleteOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} export interface DeleteAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ @@ -5141,48 +2988,18 @@ export interface DeleteOrgPermissionPayload { orgPermission?: OrgPermission | null; orgPermissionEdge?: OrgPermissionEdge | null; } -export interface DeleteAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export interface DeleteAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} export interface DeleteOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ orgChartEdgeGrant?: OrgChartEdgeGrant | null; orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export interface DeleteOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was deleted by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface DeleteMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ @@ -5195,6 +3012,18 @@ export interface DeleteAppGrantPayload { appGrant?: AppGrant | null; appGrantEdge?: AppGrantEdge | null; } +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface DeleteOrgClaimedInvitePayload { clientMutationId?: string | null; /** The `OrgClaimedInvite` that was deleted by this mutation. */ @@ -5207,30 +3036,30 @@ export interface DeleteOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface DeleteOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was deleted by this mutation. */ orgMembershipSetting?: OrgMembershipSetting | null; orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} export interface DeleteAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was deleted by this mutation. */ appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } +export interface DeleteAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was deleted by this mutation. */ @@ -5243,30 +3072,6 @@ export interface DeleteOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} export interface DeleteOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was deleted by this mutation. */ @@ -5322,12 +3127,6 @@ export interface OrgPermissionEdge { /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; } -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -5340,6 +3139,12 @@ export interface AppPermissionDefaultEdge { /** The `AppPermissionDefault` at the end of the edge. */ node?: AppPermissionDefault | null; } +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -5352,126 +3157,30 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; } -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { cursor?: string | null; /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { cursor?: string | null; /** The `OrgChartEdgeGrant` at the end of the edge. */ node?: OrgChartEdgeGrant | null; } -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} /** A `AppClaimedInvite` edge in the connection. */ export interface AppClaimedInviteEdge { cursor?: string | null; /** The `AppClaimedInvite` at the end of the edge. */ node?: AppClaimedInvite | null; } -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -5484,6 +3193,18 @@ export interface AppGrantEdge { /** The `AppGrant` at the end of the edge. */ node?: AppGrant | null; } +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { cursor?: string | null; @@ -5496,30 +3217,30 @@ export interface OrgGrantEdge { /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; } +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} /** A `OrgMembershipSetting` edge in the connection. */ export interface OrgMembershipSettingEdge { cursor?: string | null; /** The `OrgMembershipSetting` at the end of the edge. */ node?: OrgMembershipSetting | null; } -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { - cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; -} -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { - cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; -} /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; /** The `AppMembership` at the end of the edge. */ node?: AppMembership | null; } +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} /** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { cursor?: string | null; @@ -5532,30 +3253,6 @@ export interface OrgMemberProfileEdge { /** The `OrgMemberProfile` at the end of the edge. */ node?: OrgMemberProfile | null; } -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index c4ce9aeab5..8b2bdd0594 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -27,26 +27,6 @@ export interface OrgPermission { bitstr: string | null; description: string | null; } -export interface AppLimitCreditRedemption { - id: string | null; - creditCodeId: string | null; - entityId: string | null; -} -export interface AppLimitCreditCodeItem { - id: string | null; - creditCodeId: string | null; - defaultLimitId: string | null; - amount: string | null; - creditType: string | null; -} -export interface AppLimitCredit { - id: string | null; - defaultLimitId: string | null; - actorId: string | null; - amount: string | null; - creditType: string | null; - reason: string | null; -} export interface OrgMember { id: string | null; isAdmin: boolean | null; @@ -57,6 +37,11 @@ export interface AppPermissionDefault { id: string | null; permissions: string | null; } +export interface OrgPermissionDefault { + id: string | null; + permissions: string | null; + entityId: string | null; +} export interface AppAdminGrant { id: string | null; isGrant: boolean | null; @@ -73,20 +58,6 @@ export interface AppOwnerGrant { createdAt: string | null; updatedAt: string | null; } -export interface OrgPermissionDefault { - id: string | null; - permissions: string | null; - entityId: string | null; -} -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; -} export interface OrgAdminGrant { id: string | null; isGrant: boolean | null; @@ -96,15 +67,6 @@ export interface OrgAdminGrant { createdAt: string | null; updatedAt: string | null; } -export interface OrgMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - entityId: string | null; -} export interface OrgOwnerGrant { id: string | null; isGrant: boolean | null; @@ -114,73 +76,6 @@ export interface OrgOwnerGrant { createdAt: string | null; updatedAt: string | null; } -export interface AppLimitCapsDefault { - id: string | null; - name: string | null; - max: string | null; -} -export interface OrgLimitCapsDefault { - id: string | null; - name: string | null; - max: string | null; -} -export interface AppLimitCap { - id: string | null; - name: string | null; - entityId: string | null; - max: string | null; -} -export interface OrgLimitCap { - id: string | null; - name: string | null; - entityId: string | null; - max: string | null; -} -export interface OrgChartEdge { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - entityId: string | null; - childId: string | null; - parentId: string | null; - positionTitle: string | null; - positionLevel: number | null; -} -export interface AppLimitDefault { - id: string | null; - name: string | null; - max: string | null; - softMax: string | null; -} -export interface OrgLimitDefault { - id: string | null; - name: string | null; - max: string | null; - softMax: string | null; -} -export interface OrgLimitCredit { - id: string | null; - defaultLimitId: string | null; - actorId: string | null; - entityId: string | null; - amount: string | null; - creditType: string | null; - reason: string | null; -} -export interface AppLimitCreditCode { - id: string | null; - code: string | null; - maxRedemptions: number | null; - currentRedemptions: number | null; - expiresAt: string | null; -} -export interface AppLimitWarning { - id: string | null; - name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; -} export interface OrgChartEdgeGrant { id: string | null; entityId: string | null; @@ -200,19 +95,11 @@ export interface AppClaimedInvite { createdAt: string | null; updatedAt: string | null; } -export interface OrgLimitWarning { - id: string | null; - name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; - entityId: string | null; -} export interface MembershipType { id: number | null; name: string | null; description: string | null; - prefix: string | null; + scope: string | null; parentMembershipType: number | null; hasUsersTableEntry: boolean | null; } @@ -225,6 +112,24 @@ export interface AppGrant { createdAt: string | null; updatedAt: string | null; } +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; +} export interface OrgClaimedInvite { id: string | null; data: unknown | null; @@ -244,6 +149,16 @@ export interface OrgGrant { createdAt: string | null; updatedAt: string | null; } +export interface OrgChartEdge { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; + childId: string | null; + parentId: string | null; + positionTitle: string | null; + positionLevel: number | null; +} export interface OrgMembershipSetting { id: string | null; createdAt: string | null; @@ -260,36 +175,6 @@ export interface OrgMembershipSetting { populateMemberEmail: boolean | null; limitAllocationMode: string | null; } -export interface AppLimitEvent { - createdAt: string | null; - id: string | null; - name: string | null; - actorId: string | null; - entityId: string | null; - organizationId: string | null; - entityType: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} -export interface OrgLimitEvent { - createdAt: string | null; - id: string | null; - name: string | null; - actorId: string | null; - entityId: string | null; - organizationId: string | null; - entityType: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} export interface AppMembership { id: string | null; createdAt: string | null; @@ -308,6 +193,21 @@ export interface AppMembership { actorId: string | null; profileId: string | null; } +export interface AppInvite { + id: string | null; + email: ConstructiveInternalTypeEmail | null; + senderId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + profileId: string | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface OrgMembership { id: string | null; createdAt: string | null; @@ -341,68 +241,6 @@ export interface OrgMemberProfile { bio: string | null; profilePicture: ConstructiveInternalTypeImage | null; } -export interface AppInvite { - id: string | null; - email: ConstructiveInternalTypeEmail | null; - senderId: string | null; - inviteToken: string | null; - inviteValid: boolean | null; - inviteLimit: number | null; - inviteCount: number | null; - multiple: boolean | null; - data: unknown | null; - profileId: string | null; - expiresAt: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface AppLimit { - id: string | null; - name: string | null; - actorId: string | null; - num: string | null; - max: string | null; - softMax: string | null; - windowStart: string | null; - windowDuration: string | null; - planMax: string | null; - purchasedCredits: string | null; - periodCredits: string | null; - organizationId: string | null; - entityType: string | null; -} -export interface OrgLimitAggregate { - id: string | null; - name: string | null; - entityId: string | null; - num: string | null; - max: string | null; - softMax: string | null; - windowStart: string | null; - windowDuration: string | null; - planMax: string | null; - purchasedCredits: string | null; - periodCredits: string | null; - reserved: string | null; - organizationId: string | null; - entityType: string | null; -} -export interface OrgLimit { - id: string | null; - name: string | null; - actorId: string | null; - num: string | null; - max: string | null; - softMax: string | null; - windowStart: string | null; - windowDuration: string | null; - planMax: string | null; - purchasedCredits: string | null; - periodCredits: string | null; - entityId: string | null; - organizationId: string | null; - entityType: string | null; -} export interface OrgInvite { id: string | null; email: ConstructiveInternalTypeEmail | null; diff --git a/sdk/constructive-react/src/agent/README.md b/sdk/constructive-react/src/agent/README.md new file mode 100644 index 0000000000..5c9d8df579 --- /dev/null +++ b/sdk/constructive-react/src/agent/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 6 +- **Custom queries:** 0 +- **Custom mutations:** 1 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. + +--- + +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/agent/hooks/README.md b/sdk/constructive-react/src/agent/hooks/README.md new file mode 100644 index 0000000000..1a7699fec7 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/README.md @@ -0,0 +1,222 @@ +# 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 | +|------|------|-------------| +| `useAgentPlansQuery` | Query | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useAgentPlanQuery` | Query | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useCreateAgentPlanMutation` | Mutation | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useUpdateAgentPlanMutation` | Mutation | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useDeleteAgentPlanMutation` | Mutation | Workflow plan attached to an agent thread with ordered tasks and optional approval gates | +| `useAgentMessagesQuery` | Query | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useAgentMessageQuery` | Query | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useCreateAgentMessageMutation` | Mutation | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useUpdateAgentMessageMutation` | Mutation | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useDeleteAgentMessageMutation` | Mutation | Message within an agent thread with TextPart/ToolPart jsonb parts | +| `useAgentTasksQuery` | Query | Task within a plan, with ordering and optional approval gates | +| `useAgentTaskQuery` | Query | Task within a plan, with ordering and optional approval gates | +| `useCreateAgentTaskMutation` | Mutation | Task within a plan, with ordering and optional approval gates | +| `useUpdateAgentTaskMutation` | Mutation | Task within a plan, with ordering and optional approval gates | +| `useDeleteAgentTaskMutation` | Mutation | Task within a plan, with ordering and optional approval gates | +| `useAgentThreadsQuery` | Query | Top-level AI/LLM conversation thread | +| `useAgentThreadQuery` | Query | Top-level AI/LLM conversation thread | +| `useCreateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | +| `useUpdateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | +| `useDeleteAgentThreadMutation` | Mutation | Top-level AI/LLM conversation thread | +| `useAgentPromptsQuery` | Query | Shared system prompt templates for agent conversations | +| `useAgentPromptQuery` | Query | Shared system prompt templates for agent conversations | +| `useCreateAgentPromptMutation` | Mutation | Shared system prompt templates for agent conversations | +| `useUpdateAgentPromptMutation` | Mutation | Shared system prompt templates for agent conversations | +| `useDeleteAgentPromptMutation` | Mutation | Shared system prompt templates for agent conversations | +| `useAgentSkillsQuery` | Query | Structured procedural instructions for agent workflows | +| `useAgentSkillQuery` | Query | Structured procedural instructions for agent workflows | +| `useCreateAgentSkillMutation` | Mutation | Structured procedural instructions for agent workflows | +| `useUpdateAgentSkillMutation` | Mutation | Structured procedural instructions for agent workflows | +| `useDeleteAgentSkillMutation` | Mutation | Structured procedural instructions for agent workflows | +| `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 + +### AgentPlan + +```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 } }, +}); + +// 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 } }, +}); + +// Create a agentPlan +const { mutate: create } = useCreateAgentPlanMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', threadId: '', title: '', description: '', status: '' }); +``` + +### AgentMessage + +```typescript +// List all agentMessages +const { data, isLoading } = useAgentMessagesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }, +}); + +// Get one agentMessage +const { data: item } = useAgentMessageQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }, +}); + +// Create a agentMessage +const { mutate: create } = useCreateAgentMessageMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }); +``` + +### AgentTask + +```typescript +// List all agentTasks +const { data, isLoading } = useAgentTasksQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, +}); + +// Get one agentTask +const { data: item } = useAgentTaskQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: 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({ ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); +``` + +### AgentThread + +```typescript +// List all agentThreads +const { data, isLoading } = useAgentThreadsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }, +}); + +// Get one agentThread +const { data: item } = useAgentThreadQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }, +}); + +// Create a agentThread +const { mutate: create } = useCreateAgentThreadMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', status: '', title: '', mode: '', model: '', systemPrompt: '', promptTemplateId: '' }); +``` + +### AgentPrompt + +```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 } }, +}); + +// 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 } }, +}); + +// Create a agentPrompt +const { mutate: create } = useCreateAgentPromptMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }); +``` + +### AgentSkill + +```typescript +// List all agentSkills +const { data, isLoading } = useAgentSkillsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }, +}); + +// Get one agentSkill +const { data: item } = useAgentSkillQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }, +}); + +// Create a agentSkill +const { mutate: create } = useCreateAgentSkillMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }); +``` + +## Custom Operation Hooks + +### `useProvisionBucketMutation` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +--- + +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/public/hooks/client.ts b/sdk/constructive-react/src/agent/hooks/client.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/client.ts rename to sdk/constructive-react/src/agent/hooks/client.ts diff --git a/sdk/constructive-react/src/agent/hooks/index.ts b/sdk/constructive-react/src/agent/hooks/index.ts new file mode 100644 index 0000000000..05827fa11f --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: AgentPlan, AgentMessage, AgentTask, AgentThread, AgentPrompt, AgentSkill + * + * 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/agent/hooks/invalidation.ts b/sdk/constructive-react/src/agent/hooks/invalidation.ts new file mode 100644 index 0000000000..c3af0ca47c --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/invalidation.ts @@ -0,0 +1,202 @@ +/** + * 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 { + agentPlanKeys, + agentMessageKeys, + agentTaskKeys, + agentThreadKeys, + agentPromptKeys, + agentSkillKeys, +} 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 agentPlan queries */ agentPlan: { + /** Invalidate all agentPlan queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentPlanKeys.all, + }), + /** Invalidate agentPlan list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentPlanKeys.lists(), + }), + /** Invalidate a specific agentPlan */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentPlanKeys.detail(id), + }), + }, + /** Invalidate agentMessage queries */ agentMessage: { + /** Invalidate all agentMessage queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.all, + }), + /** Invalidate agentMessage list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }), + /** Invalidate a specific agentMessage */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.detail(id), + }), + }, + /** Invalidate agentTask queries */ agentTask: { + /** Invalidate all agentTask queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.all, + }), + /** Invalidate agentTask list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }), + /** Invalidate a specific agentTask */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.detail(id), + }), + }, + /** Invalidate agentThread queries */ agentThread: { + /** Invalidate all agentThread queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.all, + }), + /** Invalidate agentThread list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.lists(), + }), + /** Invalidate a specific agentThread */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.detail(id), + }), + }, + /** Invalidate agentPrompt queries */ agentPrompt: { + /** Invalidate all agentPrompt queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentPromptKeys.all, + }), + /** Invalidate agentPrompt list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentPromptKeys.lists(), + }), + /** Invalidate a specific agentPrompt */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentPromptKeys.detail(id), + }), + }, + /** Invalidate agentSkill queries */ agentSkill: { + /** Invalidate all agentSkill queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentSkillKeys.all, + }), + /** Invalidate agentSkill list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentSkillKeys.lists(), + }), + /** Invalidate a specific agentSkill */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentSkillKeys.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 agentPlan from cache */ agentPlan: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: agentPlanKeys.detail(id), + }); + }, + /** Remove agentMessage from cache */ agentMessage: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: agentMessageKeys.detail(id), + }); + }, + /** Remove agentTask from cache */ agentTask: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: agentTaskKeys.detail(id), + }); + }, + /** Remove agentThread from cache */ agentThread: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: agentThreadKeys.detail(id), + }); + }, + /** Remove agentPrompt from cache */ agentPrompt: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: agentPromptKeys.detail(id), + }); + }, + /** Remove agentSkill from cache */ agentSkill: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: agentSkillKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/agent/hooks/mutation-keys.ts b/sdk/constructive-react/src/agent/hooks/mutation-keys.ts new file mode 100644 index 0000000000..e61105ba1c --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutation-keys.ts @@ -0,0 +1,113 @@ +/** + * 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 agentPlanMutationKeys = { + /** All agentPlan mutation keys */ all: ['mutation', 'agentplan'] as const, + /** Create agentPlan mutation key */ create: () => ['mutation', 'agentplan', 'create'] as const, + /** Update agentPlan mutation key */ update: (id: string | number) => + ['mutation', 'agentplan', 'update', id] as const, + /** Delete agentPlan mutation key */ delete: (id: string | number) => + ['mutation', 'agentplan', 'delete', id] as const, +} as const; +export const agentMessageMutationKeys = { + /** All agentMessage mutation keys */ all: ['mutation', 'agentmessage'] as const, + /** Create agentMessage mutation key */ create: () => + ['mutation', 'agentmessage', 'create'] as const, + /** Update agentMessage mutation key */ update: (id: string | number) => + ['mutation', 'agentmessage', 'update', id] as const, + /** Delete agentMessage mutation key */ delete: (id: string | number) => + ['mutation', 'agentmessage', 'delete', id] as const, +} as const; +export const agentTaskMutationKeys = { + /** All agentTask mutation keys */ all: ['mutation', 'agenttask'] as const, + /** Create agentTask mutation key */ create: () => ['mutation', 'agenttask', 'create'] as const, + /** Update agentTask mutation key */ update: (id: string | number) => + ['mutation', 'agenttask', 'update', id] as const, + /** Delete agentTask mutation key */ delete: (id: string | number) => + ['mutation', 'agenttask', 'delete', id] as const, +} as const; +export const agentThreadMutationKeys = { + /** All agentThread mutation keys */ all: ['mutation', 'agentthread'] as const, + /** Create agentThread mutation key */ create: () => + ['mutation', 'agentthread', 'create'] as const, + /** Update agentThread mutation key */ update: (id: string | number) => + ['mutation', 'agentthread', 'update', id] as const, + /** Delete agentThread mutation key */ delete: (id: string | number) => + ['mutation', 'agentthread', 'delete', id] as const, +} as const; +export const agentPromptMutationKeys = { + /** All agentPrompt mutation keys */ all: ['mutation', 'agentprompt'] as const, + /** Create agentPrompt mutation key */ create: () => + ['mutation', 'agentprompt', 'create'] as const, + /** Update agentPrompt mutation key */ update: (id: string | number) => + ['mutation', 'agentprompt', 'update', id] as const, + /** Delete agentPrompt mutation key */ delete: (id: string | number) => + ['mutation', 'agentprompt', 'delete', id] as const, +} as const; +export const agentSkillMutationKeys = { + /** All agentSkill mutation keys */ all: ['mutation', 'agentskill'] as const, + /** Create agentSkill mutation key */ create: () => ['mutation', 'agentskill', 'create'] as const, + /** Update agentSkill mutation key */ update: (id: string | number) => + ['mutation', 'agentskill', 'update', id] as const, + /** Delete agentSkill mutation key */ delete: (id: string | number) => + ['mutation', 'agentskill', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => + identifier + ? (['mutation', 'provisionBucket', identifier] as const) + : (['mutation', 'provisionBucket'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + agentPlan: agentPlanMutationKeys, + agentMessage: agentMessageMutationKeys, + agentTask: agentTaskMutationKeys, + agentThread: agentThreadMutationKeys, + agentPrompt: agentPromptMutationKeys, + agentSkill: agentSkillMutationKeys, + custom: customMutationKeys, +} as const; diff --git a/sdk/constructive-react/src/agent/hooks/mutations/index.ts b/sdk/constructive-react/src/agent/hooks/mutations/index.ts new file mode 100644 index 0000000000..cda835f4ce --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/index.ts @@ -0,0 +1,24 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateAgentPlanMutation'; +export * from './useUpdateAgentPlanMutation'; +export * from './useDeleteAgentPlanMutation'; +export * from './useCreateAgentMessageMutation'; +export * from './useUpdateAgentMessageMutation'; +export * from './useDeleteAgentMessageMutation'; +export * from './useCreateAgentTaskMutation'; +export * from './useUpdateAgentTaskMutation'; +export * from './useDeleteAgentTaskMutation'; +export * from './useCreateAgentThreadMutation'; +export * from './useUpdateAgentThreadMutation'; +export * from './useDeleteAgentThreadMutation'; +export * from './useCreateAgentPromptMutation'; +export * from './useUpdateAgentPromptMutation'; +export * from './useDeleteAgentPromptMutation'; +export * from './useCreateAgentSkillMutation'; +export * from './useUpdateAgentSkillMutation'; +export * from './useDeleteAgentSkillMutation'; +export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentMessageMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentMessageMutation.ts new file mode 100644 index 0000000000..8174a8589c --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentMessageMutation.ts @@ -0,0 +1,88 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import { agentMessageMutationKeys } from '../mutation-keys'; +import type { + AgentMessageSelect, + AgentMessageWithRelations, + CreateAgentMessageInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentMessageSelect, + AgentMessageWithRelations, + CreateAgentMessageInput, +} from '../../orm/input-types'; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentMessageMutation( + params: { + selection: { + fields: S & AgentMessageSelect; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + CreateAgentMessageInput['agentMessage'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + CreateAgentMessageInput['agentMessage'] +>; +export function useCreateAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentMessageMutationKeys.create(), + mutationFn: (data: CreateAgentMessageInput['agentMessage']) => + getClient() + .agentMessage.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentPlanMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentPlanMutation.ts new file mode 100644 index 0000000000..1f66bc5348 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentPlanMutation.ts @@ -0,0 +1,88 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPlanKeys } from '../query-keys'; +import { agentPlanMutationKeys } from '../mutation-keys'; +import type { + AgentPlanSelect, + AgentPlanWithRelations, + CreateAgentPlanInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentPlanSelect, + AgentPlanWithRelations, + CreateAgentPlanInput, +} from '../../orm/input-types'; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentPlanMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentPlanMutation( + params: { + selection: { + fields: S & AgentPlanSelect; + } & HookStrictSelect, AgentPlanSelect>; + } & Omit< + UseMutationOptions< + { + createAgentPlan: { + agentPlan: InferSelectResult; + }; + }, + Error, + CreateAgentPlanInput['agentPlan'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentPlan: { + agentPlan: InferSelectResult; + }; + }, + Error, + CreateAgentPlanInput['agentPlan'] +>; +export function useCreateAgentPlanMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentPlanMutationKeys.create(), + mutationFn: (data: CreateAgentPlanInput['agentPlan']) => + getClient() + .agentPlan.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentPlanKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentPromptMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentPromptMutation.ts new file mode 100644 index 0000000000..8bbcc906cd --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentPromptMutation.ts @@ -0,0 +1,88 @@ +/** + * Shared system prompt templates for agent conversations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPromptKeys } from '../query-keys'; +import { agentPromptMutationKeys } from '../mutation-keys'; +import type { + AgentPromptSelect, + AgentPromptWithRelations, + CreateAgentPromptInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentPromptSelect, + AgentPromptWithRelations, + CreateAgentPromptInput, +} from '../../orm/input-types'; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentPromptMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentPromptMutation( + params: { + selection: { + fields: S & AgentPromptSelect; + } & HookStrictSelect, AgentPromptSelect>; + } & Omit< + UseMutationOptions< + { + createAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }, + Error, + CreateAgentPromptInput['agentPrompt'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }, + Error, + CreateAgentPromptInput['agentPrompt'] +>; +export function useCreateAgentPromptMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentPromptMutationKeys.create(), + mutationFn: (data: CreateAgentPromptInput['agentPrompt']) => + getClient() + .agentPrompt.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentPromptKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentSkillMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentSkillMutation.ts new file mode 100644 index 0000000000..ed945bc2a4 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentSkillMutation.ts @@ -0,0 +1,88 @@ +/** + * Structured procedural instructions for agent workflows + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentSkillKeys } from '../query-keys'; +import { agentSkillMutationKeys } from '../mutation-keys'; +import type { + AgentSkillSelect, + AgentSkillWithRelations, + CreateAgentSkillInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentSkillSelect, + AgentSkillWithRelations, + CreateAgentSkillInput, +} from '../../orm/input-types'; +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentSkillMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentSkillMutation( + params: { + selection: { + fields: S & AgentSkillSelect; + } & HookStrictSelect, AgentSkillSelect>; + } & Omit< + UseMutationOptions< + { + createAgentSkill: { + agentSkill: InferSelectResult; + }; + }, + Error, + CreateAgentSkillInput['agentSkill'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentSkill: { + agentSkill: InferSelectResult; + }; + }, + Error, + CreateAgentSkillInput['agentSkill'] +>; +export function useCreateAgentSkillMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentSkillMutationKeys.create(), + mutationFn: (data: CreateAgentSkillInput['agentSkill']) => + getClient() + .agentSkill.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentSkillKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentTaskMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentTaskMutation.ts new file mode 100644 index 0000000000..7c32729d7f --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentTaskMutation.ts @@ -0,0 +1,88 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import { agentTaskMutationKeys } from '../mutation-keys'; +import type { + AgentTaskSelect, + AgentTaskWithRelations, + CreateAgentTaskInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentTaskSelect, + AgentTaskWithRelations, + CreateAgentTaskInput, +} from '../../orm/input-types'; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentTaskMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentTaskMutation( + params: { + selection: { + fields: S & AgentTaskSelect; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + createAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + CreateAgentTaskInput['agentTask'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + CreateAgentTaskInput['agentTask'] +>; +export function useCreateAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentTaskMutationKeys.create(), + mutationFn: (data: CreateAgentTaskInput['agentTask']) => + getClient() + .agentTask.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentThreadMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentThreadMutation.ts new file mode 100644 index 0000000000..22f5f3cf55 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useCreateAgentThreadMutation.ts @@ -0,0 +1,88 @@ +/** + * Top-level AI/LLM conversation thread + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import { agentThreadMutationKeys } from '../mutation-keys'; +import type { + AgentThreadSelect, + AgentThreadWithRelations, + CreateAgentThreadInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentThreadSelect, + AgentThreadWithRelations, + CreateAgentThreadInput, +} from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentThreadMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentThreadMutation( + params: { + selection: { + fields: S & AgentThreadSelect; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + createAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + CreateAgentThreadInput['agentThread'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + CreateAgentThreadInput['agentThread'] +>; +export function useCreateAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentThreadMutationKeys.create(), + mutationFn: (data: CreateAgentThreadInput['agentThread']) => + getClient() + .agentThread.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentMessageMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentMessageMutation.ts new file mode 100644 index 0000000000..96214fda38 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentMessageMutation.ts @@ -0,0 +1,98 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import { agentMessageMutationKeys } from '../mutation-keys'; +import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentMessageMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentMessageMutation( + params: { + selection: { + fields: S & AgentMessageSelect; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentMessageMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentMessage.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentPlanMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentPlanMutation.ts new file mode 100644 index 0000000000..480e8dc5b8 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentPlanMutation.ts @@ -0,0 +1,98 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPlanKeys } from '../query-keys'; +import { agentPlanMutationKeys } from '../mutation-keys'; +import type { AgentPlanSelect, AgentPlanWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentPlanSelect, AgentPlanWithRelations } from '../../orm/input-types'; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentPlanMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentPlanMutation( + params: { + selection: { + fields: S & AgentPlanSelect; + } & HookStrictSelect, AgentPlanSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentPlan: { + agentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentPlan: { + agentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentPlanMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentPlanMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentPlan.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentPlanKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentPlanKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentPromptMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentPromptMutation.ts new file mode 100644 index 0000000000..2878dc2bff --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentPromptMutation.ts @@ -0,0 +1,98 @@ +/** + * Shared system prompt templates for agent conversations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPromptKeys } from '../query-keys'; +import { agentPromptMutationKeys } from '../mutation-keys'; +import type { AgentPromptSelect, AgentPromptWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentPromptSelect, AgentPromptWithRelations } from '../../orm/input-types'; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentPromptMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentPromptMutation( + params: { + selection: { + fields: S & AgentPromptSelect; + } & HookStrictSelect, AgentPromptSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentPromptMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentPromptMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentPrompt.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentPromptKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentPromptKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentSkillMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentSkillMutation.ts new file mode 100644 index 0000000000..9fa7a02b4a --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentSkillMutation.ts @@ -0,0 +1,98 @@ +/** + * Structured procedural instructions for agent workflows + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentSkillKeys } from '../query-keys'; +import { agentSkillMutationKeys } from '../mutation-keys'; +import type { AgentSkillSelect, AgentSkillWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentSkillSelect, AgentSkillWithRelations } from '../../orm/input-types'; +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentSkillMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentSkillMutation( + params: { + selection: { + fields: S & AgentSkillSelect; + } & HookStrictSelect, AgentSkillSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentSkill: { + agentSkill: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentSkill: { + agentSkill: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentSkillMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentSkillMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentSkill.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentSkillKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentSkillKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentTaskMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentTaskMutation.ts new file mode 100644 index 0000000000..8d4ac8ab93 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentTaskMutation.ts @@ -0,0 +1,98 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import { agentTaskMutationKeys } from '../mutation-keys'; +import type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentTaskMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentTaskMutation( + params: { + selection: { + fields: S & AgentTaskSelect; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentTaskMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentTask.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentTaskKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentThreadMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentThreadMutation.ts new file mode 100644 index 0000000000..6800d76b65 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useDeleteAgentThreadMutation.ts @@ -0,0 +1,98 @@ +/** + * Top-level AI/LLM conversation thread + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import { agentThreadMutationKeys } from '../mutation-keys'; +import type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentThreadMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentThreadMutation( + params: { + selection: { + fields: S & AgentThreadSelect; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentThreadMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentThread.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentThreadKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useProvisionBucketMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionBucketMutation.ts rename to sdk/constructive-react/src/agent/hooks/mutations/useProvisionBucketMutation.ts diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentMessageMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentMessageMutation.ts new file mode 100644 index 0000000000..f221fb4c2e --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentMessageMutation.ts @@ -0,0 +1,110 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import { agentMessageMutationKeys } from '../mutation-keys'; +import type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessagePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessagePatch, +} from '../../orm/input-types'; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentMessagePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentMessageMutation( + params: { + selection: { + fields: S & AgentMessageSelect; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + agentMessagePatch: AgentMessagePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + agentMessagePatch: AgentMessagePatch; + } +>; +export function useUpdateAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentMessagePatch: AgentMessagePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentMessageMutationKeys.all, + mutationFn: ({ id, agentMessagePatch }: { id: string; agentMessagePatch: AgentMessagePatch }) => + getClient() + .agentMessage.update({ + where: { + id, + }, + data: agentMessagePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentPlanMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentPlanMutation.ts new file mode 100644 index 0000000000..159936f825 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentPlanMutation.ts @@ -0,0 +1,110 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPlanKeys } from '../query-keys'; +import { agentPlanMutationKeys } from '../mutation-keys'; +import type { + AgentPlanSelect, + AgentPlanWithRelations, + AgentPlanPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentPlanSelect, + AgentPlanWithRelations, + AgentPlanPatch, +} from '../../orm/input-types'; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentPlanMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentPlanPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentPlanMutation( + params: { + selection: { + fields: S & AgentPlanSelect; + } & HookStrictSelect, AgentPlanSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentPlan: { + agentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + agentPlanPatch: AgentPlanPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentPlan: { + agentPlan: InferSelectResult; + }; + }, + Error, + { + id: string; + agentPlanPatch: AgentPlanPatch; + } +>; +export function useUpdateAgentPlanMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentPlanPatch: AgentPlanPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentPlanMutationKeys.all, + mutationFn: ({ id, agentPlanPatch }: { id: string; agentPlanPatch: AgentPlanPatch }) => + getClient() + .agentPlan.update({ + where: { + id, + }, + data: agentPlanPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentPlanKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentPlanKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentPromptMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentPromptMutation.ts new file mode 100644 index 0000000000..9db9d523f5 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentPromptMutation.ts @@ -0,0 +1,110 @@ +/** + * Shared system prompt templates for agent conversations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPromptKeys } from '../query-keys'; +import { agentPromptMutationKeys } from '../mutation-keys'; +import type { + AgentPromptSelect, + AgentPromptWithRelations, + AgentPromptPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentPromptSelect, + AgentPromptWithRelations, + AgentPromptPatch, +} from '../../orm/input-types'; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentPromptMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentPromptPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentPromptMutation( + params: { + selection: { + fields: S & AgentPromptSelect; + } & HookStrictSelect, AgentPromptSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + agentPromptPatch: AgentPromptPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }, + Error, + { + id: string; + agentPromptPatch: AgentPromptPatch; + } +>; +export function useUpdateAgentPromptMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentPromptPatch: AgentPromptPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentPromptMutationKeys.all, + mutationFn: ({ id, agentPromptPatch }: { id: string; agentPromptPatch: AgentPromptPatch }) => + getClient() + .agentPrompt.update({ + where: { + id, + }, + data: agentPromptPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentPromptKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentPromptKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentSkillMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentSkillMutation.ts new file mode 100644 index 0000000000..8a5ebb9e7a --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentSkillMutation.ts @@ -0,0 +1,110 @@ +/** + * Structured procedural instructions for agent workflows + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentSkillKeys } from '../query-keys'; +import { agentSkillMutationKeys } from '../mutation-keys'; +import type { + AgentSkillSelect, + AgentSkillWithRelations, + AgentSkillPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentSkillSelect, + AgentSkillWithRelations, + AgentSkillPatch, +} from '../../orm/input-types'; +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentSkillMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentSkillPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentSkillMutation( + params: { + selection: { + fields: S & AgentSkillSelect; + } & HookStrictSelect, AgentSkillSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentSkill: { + agentSkill: InferSelectResult; + }; + }, + Error, + { + id: string; + agentSkillPatch: AgentSkillPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentSkill: { + agentSkill: InferSelectResult; + }; + }, + Error, + { + id: string; + agentSkillPatch: AgentSkillPatch; + } +>; +export function useUpdateAgentSkillMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentSkillPatch: AgentSkillPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentSkillMutationKeys.all, + mutationFn: ({ id, agentSkillPatch }: { id: string; agentSkillPatch: AgentSkillPatch }) => + getClient() + .agentSkill.update({ + where: { + id, + }, + data: agentSkillPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentSkillKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentSkillKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentTaskMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentTaskMutation.ts new file mode 100644 index 0000000000..4fb8fd90a3 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentTaskMutation.ts @@ -0,0 +1,110 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import { agentTaskMutationKeys } from '../mutation-keys'; +import type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskPatch, +} from '../../orm/input-types'; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentTaskMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentTaskPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentTaskMutation( + params: { + selection: { + fields: S & AgentTaskSelect; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + agentTaskPatch: AgentTaskPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + agentTaskPatch: AgentTaskPatch; + } +>; +export function useUpdateAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentTaskPatch: AgentTaskPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentTaskMutationKeys.all, + mutationFn: ({ id, agentTaskPatch }: { id: string; agentTaskPatch: AgentTaskPatch }) => + getClient() + .agentTask.update({ + where: { + id, + }, + data: agentTaskPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentThreadMutation.ts b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentThreadMutation.ts new file mode 100644 index 0000000000..50ecb7ef6e --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/mutations/useUpdateAgentThreadMutation.ts @@ -0,0 +1,110 @@ +/** + * Top-level AI/LLM conversation thread + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import { agentThreadMutationKeys } from '../mutation-keys'; +import type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadPatch, +} from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentThreadMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentThreadPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentThreadMutation( + params: { + selection: { + fields: S & AgentThreadSelect; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + agentThreadPatch: AgentThreadPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + agentThreadPatch: AgentThreadPatch; + } +>; +export function useUpdateAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentThreadPatch: AgentThreadPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentThreadMutationKeys.all, + mutationFn: ({ id, agentThreadPatch }: { id: string; agentThreadPatch: AgentThreadPatch }) => + getClient() + .agentThread.update({ + where: { + id, + }, + data: agentThreadPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/index.ts b/sdk/constructive-react/src/agent/hooks/queries/index.ts new file mode 100644 index 0000000000..235d4771d5 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/index.ts @@ -0,0 +1,17 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useAgentPlansQuery'; +export * from './useAgentPlanQuery'; +export * from './useAgentMessagesQuery'; +export * from './useAgentMessageQuery'; +export * from './useAgentTasksQuery'; +export * from './useAgentTaskQuery'; +export * from './useAgentThreadsQuery'; +export * from './useAgentThreadQuery'; +export * from './useAgentPromptsQuery'; +export * from './useAgentPromptQuery'; +export * from './useAgentSkillsQuery'; +export * from './useAgentSkillQuery'; diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentMessageQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentMessageQuery.ts new file mode 100644 index 0000000000..7edbaddeba --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentMessageQuery.ts @@ -0,0 +1,138 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentMessageQueryKey = agentMessageKeys.detail; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { data, isLoading } = useAgentMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentMessageQuery< + S extends AgentMessageSelect, + TData = { + agentMessage: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseQueryOptions< + { + agentMessage: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentMessageQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentMessageKeys.detail(params.id), + queryFn: () => + getClient() + .agentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * const data = await fetchAgentMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentMessageQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentMessageSelect>; +}): Promise<{ + agentMessage: InferSelectResult | null; +}>; +export async function fetchAgentMessageQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * await prefetchAgentMessageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentMessageSelect>; + } +): Promise; +export async function prefetchAgentMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentMessageKeys.detail(params.id), + queryFn: () => + getClient() + .agentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentMessagesQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentMessagesQuery.ts new file mode 100644 index 0000000000..f7c39e51d7 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentMessagesQuery.ts @@ -0,0 +1,145 @@ +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessageFilter, + AgentMessageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessageFilter, + AgentMessageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentMessagesQueryKey = agentMessageKeys.list; +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```tsx + * const { data, isLoading } = useAgentMessagesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentMessagesQuery< + S extends AgentMessageSelect, + TData = { + agentMessages: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseQueryOptions< + { + agentMessages: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentMessagesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentMessageKeys.list(args), + queryFn: () => getClient().agentMessage.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * const data = await fetchAgentMessagesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentMessagesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentMessageSelect>; +}): Promise<{ + agentMessages: ConnectionResult>; +}>; +export async function fetchAgentMessagesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentMessage.findMany(args).unwrap(); +} +/** + * Message within an agent thread with TextPart/ToolPart jsonb parts + * + * @example + * ```ts + * await prefetchAgentMessagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentMessagesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentMessageSelect>; + } +): Promise; +export async function prefetchAgentMessagesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentMessageKeys.list(args), + queryFn: () => getClient().agentMessage.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentPlanQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentPlanQuery.ts new file mode 100644 index 0000000000..d1bae113d8 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentPlanQuery.ts @@ -0,0 +1,138 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPlanKeys } from '../query-keys'; +import type { AgentPlanSelect, AgentPlanWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentPlanSelect, AgentPlanWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentPlanQueryKey = agentPlanKeys.detail; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = useAgentPlanQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentPlanQuery< + S extends AgentPlanSelect, + TData = { + agentPlan: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentPlanSelect>; + } & Omit< + UseQueryOptions< + { + agentPlan: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentPlanQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentPlanKeys.detail(params.id), + queryFn: () => + getClient() + .agentPlan.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * const data = await fetchAgentPlanQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentPlanQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentPlanSelect>; +}): Promise<{ + agentPlan: InferSelectResult | null; +}>; +export async function fetchAgentPlanQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentPlan.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * await prefetchAgentPlanQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentPlanQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentPlanSelect>; + } +): Promise; +export async function prefetchAgentPlanQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentPlanKeys.detail(params.id), + queryFn: () => + getClient() + .agentPlan.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentPlansQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentPlansQuery.ts new file mode 100644 index 0000000000..d7610efe3d --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentPlansQuery.ts @@ -0,0 +1,145 @@ +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentPlanKeys } from '../query-keys'; +import type { + AgentPlanSelect, + AgentPlanWithRelations, + AgentPlanFilter, + AgentPlanOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentPlanSelect, + AgentPlanWithRelations, + AgentPlanFilter, + AgentPlanOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentPlansQueryKey = agentPlanKeys.list; +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = useAgentPlansQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentPlansQuery< + S extends AgentPlanSelect, + TData = { + agentPlans: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentPlanSelect>; + } & Omit< + UseQueryOptions< + { + agentPlans: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentPlansQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentPlanKeys.list(args), + queryFn: () => getClient().agentPlan.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * const data = await fetchAgentPlansQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentPlansQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentPlanSelect>; +}): Promise<{ + agentPlans: ConnectionResult>; +}>; +export async function fetchAgentPlansQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentPlan.findMany(args).unwrap(); +} +/** + * Workflow plan attached to an agent thread with ordered tasks and optional approval gates + * + * @example + * ```ts + * await prefetchAgentPlansQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentPlansQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentPlanSelect>; + } +): Promise; +export async function prefetchAgentPlansQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentPlanKeys.list(args), + queryFn: () => getClient().agentPlan.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentPromptQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentPromptQuery.ts new file mode 100644 index 0000000000..264bf47a6e --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentPromptQuery.ts @@ -0,0 +1,138 @@ +/** + * Shared system prompt templates for agent conversations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentPromptKeys } from '../query-keys'; +import type { AgentPromptSelect, AgentPromptWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentPromptSelect, AgentPromptWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentPromptQueryKey = agentPromptKeys.detail; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { data, isLoading } = useAgentPromptQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentPromptQuery< + S extends AgentPromptSelect, + TData = { + agentPrompt: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentPromptSelect>; + } & Omit< + UseQueryOptions< + { + agentPrompt: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentPromptQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentPromptKeys.detail(params.id), + queryFn: () => + getClient() + .agentPrompt.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * const data = await fetchAgentPromptQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentPromptQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentPromptSelect>; +}): Promise<{ + agentPrompt: InferSelectResult | null; +}>; +export async function fetchAgentPromptQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentPrompt.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * await prefetchAgentPromptQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentPromptQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentPromptSelect>; + } +): Promise; +export async function prefetchAgentPromptQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentPromptKeys.detail(params.id), + queryFn: () => + getClient() + .agentPrompt.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentPromptsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentPromptsQuery.ts new file mode 100644 index 0000000000..f64a84928c --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentPromptsQuery.ts @@ -0,0 +1,145 @@ +/** + * Shared system prompt templates for agent conversations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentPromptKeys } from '../query-keys'; +import type { + AgentPromptSelect, + AgentPromptWithRelations, + AgentPromptFilter, + AgentPromptOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentPromptSelect, + AgentPromptWithRelations, + AgentPromptFilter, + AgentPromptOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentPromptsQueryKey = agentPromptKeys.list; +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```tsx + * const { data, isLoading } = useAgentPromptsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentPromptsQuery< + S extends AgentPromptSelect, + TData = { + agentPrompts: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentPromptSelect>; + } & Omit< + UseQueryOptions< + { + agentPrompts: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentPromptsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentPromptKeys.list(args), + queryFn: () => getClient().agentPrompt.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * const data = await fetchAgentPromptsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentPromptsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentPromptSelect>; +}): Promise<{ + agentPrompts: ConnectionResult>; +}>; +export async function fetchAgentPromptsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentPrompt.findMany(args).unwrap(); +} +/** + * Shared system prompt templates for agent conversations + * + * @example + * ```ts + * await prefetchAgentPromptsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentPromptsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentPromptSelect>; + } +): Promise; +export async function prefetchAgentPromptsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentPromptKeys.list(args), + queryFn: () => getClient().agentPrompt.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentSkillQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentSkillQuery.ts new file mode 100644 index 0000000000..7ba76d37ce --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentSkillQuery.ts @@ -0,0 +1,138 @@ +/** + * Structured procedural instructions for agent workflows + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentSkillKeys } from '../query-keys'; +import type { AgentSkillSelect, AgentSkillWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentSkillSelect, AgentSkillWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentSkillQueryKey = agentSkillKeys.detail; +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```tsx + * const { data, isLoading } = useAgentSkillQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentSkillQuery< + S extends AgentSkillSelect, + TData = { + agentSkill: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentSkillSelect>; + } & Omit< + UseQueryOptions< + { + agentSkill: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentSkillQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentSkillKeys.detail(params.id), + queryFn: () => + getClient() + .agentSkill.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```ts + * const data = await fetchAgentSkillQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentSkillQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentSkillSelect>; +}): Promise<{ + agentSkill: InferSelectResult | null; +}>; +export async function fetchAgentSkillQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentSkill.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```ts + * await prefetchAgentSkillQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentSkillQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentSkillSelect>; + } +): Promise; +export async function prefetchAgentSkillQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentSkillKeys.detail(params.id), + queryFn: () => + getClient() + .agentSkill.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentSkillsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentSkillsQuery.ts new file mode 100644 index 0000000000..1086a971a6 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentSkillsQuery.ts @@ -0,0 +1,145 @@ +/** + * Structured procedural instructions for agent workflows + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentSkillKeys } from '../query-keys'; +import type { + AgentSkillSelect, + AgentSkillWithRelations, + AgentSkillFilter, + AgentSkillOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentSkillSelect, + AgentSkillWithRelations, + AgentSkillFilter, + AgentSkillOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentSkillsQueryKey = agentSkillKeys.list; +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```tsx + * const { data, isLoading } = useAgentSkillsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentSkillsQuery< + S extends AgentSkillSelect, + TData = { + agentSkills: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentSkillSelect>; + } & Omit< + UseQueryOptions< + { + agentSkills: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentSkillsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentSkillKeys.list(args), + queryFn: () => getClient().agentSkill.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```ts + * const data = await fetchAgentSkillsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentSkillsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentSkillSelect>; +}): Promise<{ + agentSkills: ConnectionResult>; +}>; +export async function fetchAgentSkillsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentSkill.findMany(args).unwrap(); +} +/** + * Structured procedural instructions for agent workflows + * + * @example + * ```ts + * await prefetchAgentSkillsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentSkillsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentSkillSelect>; + } +): Promise; +export async function prefetchAgentSkillsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentSkillKeys.list(args), + queryFn: () => getClient().agentSkill.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentTaskQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentTaskQuery.ts new file mode 100644 index 0000000000..106cdb3332 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentTaskQuery.ts @@ -0,0 +1,138 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentTaskQueryKey = agentTaskKeys.detail; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = useAgentTaskQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentTaskQuery< + S extends AgentTaskSelect, + TData = { + agentTask: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseQueryOptions< + { + agentTask: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentTaskQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentTaskKeys.detail(params.id), + queryFn: () => + getClient() + .agentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * const data = await fetchAgentTaskQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentTaskQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentTaskSelect>; +}): Promise<{ + agentTask: InferSelectResult | null; +}>; +export async function fetchAgentTaskQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * await prefetchAgentTaskQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentTaskQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentTaskSelect>; + } +): Promise; +export async function prefetchAgentTaskQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentTaskKeys.detail(params.id), + queryFn: () => + getClient() + .agentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentTasksQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentTasksQuery.ts new file mode 100644 index 0000000000..2a5c180111 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentTasksQuery.ts @@ -0,0 +1,145 @@ +/** + * Task within a plan, with ordering and optional approval gates + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskFilter, + AgentTaskOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskFilter, + AgentTaskOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentTasksQueryKey = agentTaskKeys.list; +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```tsx + * const { data, isLoading } = useAgentTasksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentTasksQuery< + S extends AgentTaskSelect, + TData = { + agentTasks: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseQueryOptions< + { + agentTasks: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentTasksQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentTaskKeys.list(args), + queryFn: () => getClient().agentTask.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * const data = await fetchAgentTasksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentTasksQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentTaskSelect>; +}): Promise<{ + agentTasks: ConnectionResult>; +}>; +export async function fetchAgentTasksQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentTask.findMany(args).unwrap(); +} +/** + * Task within a plan, with ordering and optional approval gates + * + * @example + * ```ts + * await prefetchAgentTasksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentTasksQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentTaskSelect>; + } +): Promise; +export async function prefetchAgentTasksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentTaskKeys.list(args), + queryFn: () => getClient().agentTask.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentThreadQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentThreadQuery.ts new file mode 100644 index 0000000000..c32ed26694 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentThreadQuery.ts @@ -0,0 +1,138 @@ +/** + * Top-level AI/LLM conversation thread + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentThreadQueryKey = agentThreadKeys.detail; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { data, isLoading } = useAgentThreadQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentThreadQuery< + S extends AgentThreadSelect, + TData = { + agentThread: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseQueryOptions< + { + agentThread: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentThreadQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentThreadKeys.detail(params.id), + queryFn: () => + getClient() + .agentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * const data = await fetchAgentThreadQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentThreadQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentThreadSelect>; +}): Promise<{ + agentThread: InferSelectResult | null; +}>; +export async function fetchAgentThreadQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * await prefetchAgentThreadQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentThreadQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentThreadSelect>; + } +): Promise; +export async function prefetchAgentThreadQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentThreadKeys.detail(params.id), + queryFn: () => + getClient() + .agentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/queries/useAgentThreadsQuery.ts b/sdk/constructive-react/src/agent/hooks/queries/useAgentThreadsQuery.ts new file mode 100644 index 0000000000..5921aaf570 --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/queries/useAgentThreadsQuery.ts @@ -0,0 +1,145 @@ +/** + * Top-level AI/LLM conversation thread + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadFilter, + AgentThreadOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadFilter, + AgentThreadOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentThreadsQueryKey = agentThreadKeys.list; +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```tsx + * const { data, isLoading } = useAgentThreadsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentThreadsQuery< + S extends AgentThreadSelect, + TData = { + agentThreads: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseQueryOptions< + { + agentThreads: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentThreadsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentThreadKeys.list(args), + queryFn: () => getClient().agentThread.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * const data = await fetchAgentThreadsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentThreadsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentThreadSelect>; +}): Promise<{ + agentThreads: ConnectionResult>; +}>; +export async function fetchAgentThreadsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentThread.findMany(args).unwrap(); +} +/** + * Top-level AI/LLM conversation thread + * + * @example + * ```ts + * await prefetchAgentThreadsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentThreadsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentThreadSelect>; + } +): Promise; +export async function prefetchAgentThreadsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentThreadKeys.list(args), + queryFn: () => getClient().agentThread.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/agent/hooks/query-keys.ts b/sdk/constructive-react/src/agent/hooks/query-keys.ts new file mode 100644 index 0000000000..5f60370fbf --- /dev/null +++ b/sdk/constructive-react/src/agent/hooks/query-keys.ts @@ -0,0 +1,107 @@ +/** + * 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 agentPlanKeys = { + /** All agentPlan queries */ all: ['agentplan'] as const, + /** List query keys */ lists: () => [...agentPlanKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentPlanKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentPlanKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentPlanKeys.details(), id] as const, +} as const; +export const agentMessageKeys = { + /** All agentMessage queries */ all: ['agentmessage'] as const, + /** List query keys */ lists: () => [...agentMessageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentMessageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentMessageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentMessageKeys.details(), id] as const, +} as const; +export const agentTaskKeys = { + /** All agentTask queries */ all: ['agenttask'] as const, + /** List query keys */ lists: () => [...agentTaskKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentTaskKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentTaskKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentTaskKeys.details(), id] as const, +} as const; +export const agentThreadKeys = { + /** All agentThread queries */ all: ['agentthread'] as const, + /** List query keys */ lists: () => [...agentThreadKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentThreadKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentThreadKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentThreadKeys.details(), id] as const, +} as const; +export const agentPromptKeys = { + /** All agentPrompt queries */ all: ['agentprompt'] as const, + /** List query keys */ lists: () => [...agentPromptKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentPromptKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentPromptKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentPromptKeys.details(), id] as const, +} as const; +export const agentSkillKeys = { + /** All agentSkill queries */ all: ['agentskill'] as const, + /** List query keys */ lists: () => [...agentSkillKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentSkillKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentSkillKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentSkillKeys.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 = { + agentPlan: agentPlanKeys, + agentMessage: agentMessageKeys, + agentTask: agentTaskKeys, + agentThread: agentThreadKeys, + agentPrompt: agentPromptKeys, + agentSkill: agentSkillKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/public/hooks/selection.ts b/sdk/constructive-react/src/agent/hooks/selection.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/selection.ts rename to sdk/constructive-react/src/agent/hooks/selection.ts diff --git a/sdk/constructive-react/src/public/index.ts b/sdk/constructive-react/src/agent/index.ts similarity index 100% rename from sdk/constructive-react/src/public/index.ts rename to sdk/constructive-react/src/agent/index.ts diff --git a/sdk/constructive-react/src/agent/orm/README.md b/sdk/constructive-react/src/agent/orm/README.md new file mode 100644 index 0000000000..c7a2b551d4 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/README.md @@ -0,0 +1,306 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `agentPlan` | findMany, findOne, create, update, delete | +| `agentMessage` | findMany, findOne, create, update, delete | +| `agentTask` | findMany, findOne, create, update, delete | +| `agentThread` | findMany, findOne, create, update, delete | +| `agentPrompt` | findMany, findOne, create, update, delete | +| `agentSkill` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.agentPlan` + +CRUD operations for AgentPlan records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `threadId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `status` | String | Yes | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentPlan.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentPlan.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentMessage` + +CRUD operations for AgentMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `parts` | JSON | Yes | +| `threadId` | UUID | Yes | +| `authorRole` | String | Yes | +| `model` | String | Yes | + +**Operations:** + +```typescript +// List all agentMessage records +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); + +// Get one by id +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); + +// Create +const created = await db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentTask` + +CRUD operations for AgentTask records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `planId` | UUID | Yes | +| `description` | String | Yes | +| `source` | String | Yes | +| `error` | String | Yes | +| `orderIndex` | Int | Yes | +| `requiresApproval` | Boolean | Yes | +| `approvalStatus` | String | Yes | +| `approvedBy` | UUID | Yes | +| `approvedAt` | Datetime | Yes | +| `approvalFeedback` | String | Yes | + +**Operations:** + +```typescript +// List all agentTask records +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: 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, ownerId: true, status: true, planId: 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: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentThread` + +CRUD operations for AgentThread records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `title` | String | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `systemPrompt` | String | Yes | +| `promptTemplateId` | UUID | Yes | + +**Operations:** + +```typescript +// List all agentThread records +const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }).execute(); + +// Get one by id +const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }).execute(); + +// Create +const created = await db.agentThread.create({ data: { ownerId: '', status: '', title: '', mode: '', model: '', systemPrompt: '', promptTemplateId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentPrompt` + +CRUD operations for AgentPrompt records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `name` | String | Yes | +| `content` | String | Yes | +| `description` | String | Yes | +| `isDefault` | Boolean | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentPrompt.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentPrompt.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentSkill` + +CRUD operations for AgentSkill records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `body` | String | Yes | +| `keywords` | String | Yes | +| `isActive` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `search` | FullText | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `searchTsvRank` | Float | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `searchScore` | Float | Yes | + +**Operations:** + +```typescript +// List all agentSkill records +const items = await db.agentSkill.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); + +// Get one by id +const item = await db.agentSkill.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); + +// Create +const created = await db.agentSkill.create({ data: { createdBy: '', updatedBy: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentSkill.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentSkill.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Custom Operations + +### `db.mutation.provisionBucket` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +--- + +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/agent/orm/client.ts b/sdk/constructive-react/src/agent/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-react/src/agent/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/agent/orm/index.ts b/sdk/constructive-react/src/agent/orm/index.ts new file mode 100644 index 0000000000..cdd1c62a4a --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/index.ts @@ -0,0 +1,55 @@ +/** + * 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 { AgentPlanModel } from './models/agentPlan'; +import { AgentMessageModel } from './models/agentMessage'; +import { AgentTaskModel } from './models/agentTask'; +import { AgentThreadModel } from './models/agentThread'; +import { AgentPromptModel } from './models/agentPrompt'; +import { AgentSkillModel } from './models/agentSkill'; +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 { + agentPlan: new AgentPlanModel(client), + agentMessage: new AgentMessageModel(client), + agentTask: new AgentTaskModel(client), + agentThread: new AgentThreadModel(client), + agentPrompt: new AgentPromptModel(client), + agentSkill: new AgentSkillModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-react/src/agent/orm/input-types.ts b/sdk/constructive-react/src/agent/orm/input-types.ts new file mode 100644 index 0000000000..cbd29082a9 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/input-types.ts @@ -0,0 +1,1987 @@ +/** + * 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; +} +/** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ +// ============ Entity Types ============ +export interface AgentPlan { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this plan */ + ownerId?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Human-readable plan name */ + title?: string | null; + /** Overall goal or context for this plan */ + description?: string | null; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string | null; +} +/** Message within an agent thread with TextPart/ToolPart jsonb parts */ +export interface AgentMessage { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this message */ + ownerId?: string | null; + /** Message content: TextPart and ToolPart array */ + parts?: Record | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Who authored this message: user or assistant */ + authorRole?: string | null; + /** LLM model that generated this response */ + model?: string | null; +} +/** Task within a plan, with ordering and optional approval gates */ +export interface AgentTask { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this task */ + ownerId?: string | null; + /** Current status of this task */ + status?: string | null; + /** Foreign key to agent_plan */ + planId?: string | null; + /** Natural-language description of the work to do */ + description?: string | null; + /** Who created the task: agent or user */ + source?: string | null; + /** Error message captured when the task failed */ + error?: string | null; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number | null; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean | null; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string | null; + /** User who approved or rejected this task */ + approvedBy?: string | null; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string | null; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string | null; +} +/** Top-level AI/LLM conversation thread */ +export interface AgentThread { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this thread */ + ownerId?: string | null; + /** Current status of this thread */ + status?: string | null; + /** Human-readable conversation title */ + title?: string | null; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string | null; + /** LLM model id this thread is bound to */ + model?: string | null; + /** System prompt active for this thread */ + systemPrompt?: string | null; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string | null; +} +/** Shared system prompt templates for agent conversations */ +export interface AgentPrompt { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string | null; + /** The system prompt template content */ + content?: string | null; + /** What this prompt template is for */ + description?: string | null; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean | null; + /** Variables, tags, category metadata */ + metadata?: Record | null; +} +/** Structured procedural instructions for agent workflows */ +export interface AgentSkill { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Skill name or title */ + title?: string | null; + /** Brief description of when this skill applies */ + description?: string | null; + /** Full skill instructions (markdown) */ + body?: string | null; + /** Keywords for deterministic retrieval routing */ + keywords?: string[] | null; + /** Whether this skill is active and retrievable */ + isActive?: boolean | null; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record | null; + search?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; +} +// ============ 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 AgentPlanRelations { + thread?: AgentThread | null; + agentTasksByPlanId?: ConnectionResult; +} +export interface AgentMessageRelations { + thread?: AgentThread | null; +} +export interface AgentTaskRelations { + plan?: AgentPlan | null; +} +export interface AgentThreadRelations { + promptTemplate?: AgentPrompt | null; + agentMessagesByThreadId?: ConnectionResult; + agentPlansByThreadId?: ConnectionResult; +} +export interface AgentPromptRelations {} +export interface AgentSkillRelations {} +// ============ Entity Types With Relations ============ +export type AgentPlanWithRelations = AgentPlan & AgentPlanRelations; +export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; +export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; +export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type AgentPromptWithRelations = AgentPrompt & AgentPromptRelations; +export type AgentSkillWithRelations = AgentSkill & AgentSkillRelations; +// ============ Entity Select Types ============ +export type AgentPlanSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + threadId?: boolean; + title?: boolean; + description?: boolean; + status?: boolean; + thread?: { + select: AgentThreadSelect; + }; + agentTasksByPlanId?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; +}; +export type AgentMessageSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + parts?: boolean; + threadId?: boolean; + authorRole?: boolean; + model?: boolean; + thread?: { + select: AgentThreadSelect; + }; +}; +export type AgentTaskSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + planId?: boolean; + description?: boolean; + source?: boolean; + error?: boolean; + orderIndex?: boolean; + requiresApproval?: boolean; + approvalStatus?: boolean; + approvedBy?: boolean; + approvedAt?: boolean; + approvalFeedback?: boolean; + plan?: { + select: AgentPlanSelect; + }; +}; +export type AgentThreadSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + title?: boolean; + mode?: boolean; + model?: boolean; + systemPrompt?: boolean; + promptTemplateId?: boolean; + promptTemplate?: { + select: AgentPromptSelect; + }; + agentMessagesByThreadId?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + agentPlansByThreadId?: { + select: AgentPlanSelect; + first?: number; + filter?: AgentPlanFilter; + orderBy?: AgentPlanOrderBy[]; + }; +}; +export type AgentPromptSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + name?: boolean; + content?: boolean; + description?: boolean; + isDefault?: boolean; + metadata?: boolean; +}; +export type AgentSkillSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + title?: boolean; + description?: boolean; + body?: boolean; + keywords?: boolean; + isActive?: boolean; + metadata?: boolean; + search?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + searchTsvRank?: boolean; + embeddingVectorDistance?: boolean; + titleTrgmSimilarity?: boolean; + descriptionTrgmSimilarity?: boolean; + bodyTrgmSimilarity?: boolean; + searchScore?: boolean; +}; +// ============ Table Filter Types ============ +export interface AgentPlanFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; +} +export interface AgentMessageFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface AgentTaskFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; +} +export interface AgentThreadFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; +} +export interface AgentPromptFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Negates the expression. */ + not?: AgentPromptFilter; +} +export interface AgentSkillFilter { + /** 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 `title` field. */ + title?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AgentSkillFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentSkillFilter[]; + /** Negates the expression. */ + not?: AgentSkillFilter; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; +} +// ============ OrderBy Types ============ +export type AgentPlanOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type AgentMessageOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC'; +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC'; +export type AgentThreadOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC'; +export type AgentPromptOrderBy = + | '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' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC'; +export type AgentSkillOrderBy = + | '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' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC'; +// ============ CRUD Input Types ============ +export interface CreateAgentPlanInput { + clientMutationId?: string; + agentPlan: { + ownerId?: string; + threadId: string; + title: string; + description?: string; + status?: string; + }; +} +export interface AgentPlanPatch { + ownerId?: string | null; + threadId?: string | null; + title?: string | null; + description?: string | null; + status?: string | null; +} +export interface UpdateAgentPlanInput { + clientMutationId?: string; + id: string; + agentPlanPatch: AgentPlanPatch; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + ownerId?: string; + parts?: Record; + threadId: string; + authorRole: string; + model?: string; + }; +} +export interface AgentMessagePatch { + ownerId?: string | null; + parts?: Record | null; + threadId?: string | null; + authorRole?: string | null; + model?: string | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + ownerId?: string; + status?: string; + planId: string; + description: string; + source?: string; + error?: string; + orderIndex?: number; + requiresApproval?: boolean; + approvalStatus?: string; + approvedBy?: string; + approvedAt?: string; + approvalFeedback?: string; + }; +} +export interface AgentTaskPatch { + ownerId?: string | null; + status?: string | null; + planId?: string | null; + description?: string | null; + source?: string | null; + error?: string | null; + orderIndex?: number | null; + requiresApproval?: boolean | null; + approvalStatus?: string | null; + approvedBy?: string | null; + approvedAt?: string | null; + approvalFeedback?: string | null; +} +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + agentThread: { + ownerId?: string; + status?: string; + title?: string; + mode?: string; + model?: string; + systemPrompt?: string; + promptTemplateId?: string; + }; +} +export interface AgentThreadPatch { + ownerId?: string | null; + status?: string | null; + title?: string | null; + mode?: string | null; + model?: string | null; + systemPrompt?: string | null; + promptTemplateId?: string | null; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + agentThreadPatch: AgentThreadPatch; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPromptInput { + clientMutationId?: string; + agentPrompt: { + createdBy?: string; + updatedBy?: string; + name: string; + content: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + }; +} +export interface AgentPromptPatch { + createdBy?: string | null; + updatedBy?: string | null; + name?: string | null; + content?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; +} +export interface UpdateAgentPromptInput { + clientMutationId?: string; + id: string; + agentPromptPatch: AgentPromptPatch; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentSkillInput { + clientMutationId?: string; + agentSkill: { + createdBy?: string; + updatedBy?: string; + title: string; + description?: string; + body: string; + keywords?: string[]; + isActive?: boolean; + metadata?: Record; + embedding?: number[]; + embeddingUpdatedAt?: string; + }; +} +export interface AgentSkillPatch { + createdBy?: string | null; + updatedBy?: string | null; + title?: string | null; + description?: string | null; + body?: string | null; + keywords?: string[] | null; + isActive?: boolean | null; + metadata?: Record | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; +} +export interface UpdateAgentSkillInput { + clientMutationId?: string; + id: string; + agentSkillPatch: AgentSkillPatch; +} +export interface DeleteAgentSkillInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + AgentPlan: { + agentTasksByPlanId: 'AgentTask', + }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentPlansByThreadId: 'AgentPlan', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; +} +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Query vector for similarity search. */ + vector: number[]; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; +} +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; +} +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'L2' | 'IP'; +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; +} +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Negates the expression. */ + not?: AgentPromptFilter; +} +// ============ Payload/Return Types (for custom operations) ============ +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 CreateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was created by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type CreateAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface UpdateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was updated by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type UpdateAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface DeleteAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was deleted by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type DeleteAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface CreateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type CreateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface UpdateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type UpdateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface DeleteAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type DeleteAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type CreateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type UpdateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type DeleteAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface CreateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type CreateAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface UpdateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type UpdateAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface DeleteAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type DeleteAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface CreateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was created by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type CreateAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface UpdateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was updated by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type UpdateAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface DeleteAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was deleted by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type DeleteAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface CreateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was created by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type CreateAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +export interface UpdateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was updated by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type UpdateAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +export interface DeleteAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was deleted by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type DeleteAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +/** A `AgentPlan` edge in the connection. */ +export interface AgentPlanEdge { + cursor?: string | null; + /** The `AgentPlan` at the end of the edge. */ + node?: AgentPlan | null; +} +export type AgentPlanEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentPlanSelect; + }; +}; +/** A `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { + cursor?: string | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; +} +export type AgentMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentMessageSelect; + }; +}; +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { + cursor?: string | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; +} +export type AgentTaskEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentTaskSelect; + }; +}; +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { + cursor?: string | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; +} +export type AgentThreadEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentThreadSelect; + }; +}; +/** A `AgentPrompt` edge in the connection. */ +export interface AgentPromptEdge { + cursor?: string | null; + /** The `AgentPrompt` at the end of the edge. */ + node?: AgentPrompt | null; +} +export type AgentPromptEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentPromptSelect; + }; +}; +/** A `AgentSkill` edge in the connection. */ +export interface AgentSkillEdge { + cursor?: string | null; + /** The `AgentSkill` at the end of the edge. */ + node?: AgentSkill | null; +} +export type AgentSkillEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentSkillSelect; + }; +}; diff --git a/sdk/constructive-react/src/agent/orm/models/agentMessage.ts b/sdk/constructive-react/src/agent/orm/models/agentMessage.ts new file mode 100644 index 0000000000..d128641c85 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/agentMessage.ts @@ -0,0 +1,244 @@ +/** + * AgentMessage model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentMessage, + AgentMessageWithRelations, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, + CreateAgentMessageInput, + UpdateAgentMessageInput, + AgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentMessage', + 'createAgentMessage', + 'agentMessage', + args.select, + args.data, + 'CreateAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'createAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentMessage', + 'updateAgentMessage', + 'agentMessage', + args.select, + args.where.id, + args.data, + 'UpdateAgentMessageInput', + 'id', + 'agentMessagePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'updateAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentMessage', + 'deleteAgentMessage', + 'agentMessage', + { + id: args.where.id, + }, + 'DeleteAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'deleteAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/agentPlan.ts b/sdk/constructive-react/src/agent/orm/models/agentPlan.ts new file mode 100644 index 0000000000..ec029de47d --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/agentPlan.ts @@ -0,0 +1,244 @@ +/** + * AgentPlan model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentPlan, + AgentPlanWithRelations, + AgentPlanSelect, + AgentPlanFilter, + AgentPlanOrderBy, + CreateAgentPlanInput, + UpdateAgentPlanInput, + AgentPlanPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentPlanModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlans: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlans', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlan', + document, + variables, + transform: (data: { + agentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPlan: data.agentPlans?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlan', + document, + variables, + transform: (data: { + agentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPlan: data.agentPlans?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentPlan', + 'createAgentPlan', + 'agentPlan', + args.select, + args.data, + 'CreateAgentPlanInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'createAgentPlan', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentPlanPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentPlan', + 'updateAgentPlan', + 'agentPlan', + args.select, + args.where.id, + args.data, + 'UpdateAgentPlanInput', + 'id', + 'agentPlanPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'updateAgentPlan', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentPlan', + 'deleteAgentPlan', + 'agentPlan', + { + id: args.where.id, + }, + 'DeleteAgentPlanInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'deleteAgentPlan', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/agentPrompt.ts b/sdk/constructive-react/src/agent/orm/models/agentPrompt.ts new file mode 100644 index 0000000000..5e4aa9b6d1 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/agentPrompt.ts @@ -0,0 +1,244 @@ +/** + * AgentPrompt model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentPrompt, + AgentPromptWithRelations, + AgentPromptSelect, + AgentPromptFilter, + AgentPromptOrderBy, + CreateAgentPromptInput, + UpdateAgentPromptInput, + AgentPromptPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentPromptModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompt', + document, + variables, + transform: (data: { + agentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPrompt: data.agentPrompts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompt', + document, + variables, + transform: (data: { + agentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPrompt: data.agentPrompts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentPrompt', + 'createAgentPrompt', + 'agentPrompt', + args.select, + args.data, + 'CreateAgentPromptInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'createAgentPrompt', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentPromptPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentPrompt', + 'updateAgentPrompt', + 'agentPrompt', + args.select, + args.where.id, + args.data, + 'UpdateAgentPromptInput', + 'id', + 'agentPromptPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'updateAgentPrompt', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentPrompt', + 'deleteAgentPrompt', + 'agentPrompt', + { + id: args.where.id, + }, + 'DeleteAgentPromptInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'deleteAgentPrompt', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/agentSkill.ts b/sdk/constructive-react/src/agent/orm/models/agentSkill.ts new file mode 100644 index 0000000000..6d9674a010 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/agentSkill.ts @@ -0,0 +1,244 @@ +/** + * AgentSkill model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentSkill, + AgentSkillWithRelations, + AgentSkillSelect, + AgentSkillFilter, + AgentSkillOrderBy, + CreateAgentSkillInput, + UpdateAgentSkillInput, + AgentSkillPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentSkillModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkills: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkills', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkill: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkill', + document, + variables, + transform: (data: { + agentSkills?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentSkill: data.agentSkills?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkill: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkill', + document, + variables, + transform: (data: { + agentSkills?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentSkill: data.agentSkills?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentSkill', + 'createAgentSkill', + 'agentSkill', + args.select, + args.data, + 'CreateAgentSkillInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'createAgentSkill', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentSkillPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentSkill', + 'updateAgentSkill', + 'agentSkill', + args.select, + args.where.id, + args.data, + 'UpdateAgentSkillInput', + 'id', + 'agentSkillPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'updateAgentSkill', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentSkill', + 'deleteAgentSkill', + 'agentSkill', + { + id: args.where.id, + }, + 'DeleteAgentSkillInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'deleteAgentSkill', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/agentTask.ts b/sdk/constructive-react/src/agent/orm/models/agentTask.ts new file mode 100644 index 0000000000..3bbc609f16 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/agentTask.ts @@ -0,0 +1,244 @@ +/** + * AgentTask model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentTask, + AgentTaskWithRelations, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, + CreateAgentTaskInput, + UpdateAgentTaskInput, + AgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentTask', + 'createAgentTask', + 'agentTask', + args.select, + args.data, + 'CreateAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'createAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentTask', + 'updateAgentTask', + 'agentTask', + args.select, + args.where.id, + args.data, + 'UpdateAgentTaskInput', + 'id', + 'agentTaskPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'updateAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentTask', + 'deleteAgentTask', + 'agentTask', + { + id: args.where.id, + }, + 'DeleteAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'deleteAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/agentThread.ts b/sdk/constructive-react/src/agent/orm/models/agentThread.ts new file mode 100644 index 0000000000..7bbd14abec --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/agentThread.ts @@ -0,0 +1,244 @@ +/** + * AgentThread model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentThread, + AgentThreadWithRelations, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, + CreateAgentThreadInput, + UpdateAgentThreadInput, + AgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentThread', + 'createAgentThread', + 'agentThread', + args.select, + args.data, + 'CreateAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'createAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentThread', + 'updateAgentThread', + 'agentThread', + args.select, + args.where.id, + args.data, + 'UpdateAgentThreadInput', + 'id', + 'agentThreadPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'updateAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentThread', + 'deleteAgentThread', + 'agentThread', + { + id: args.where.id, + }, + 'DeleteAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'deleteAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/agent/orm/models/index.ts b/sdk/constructive-react/src/agent/orm/models/index.ts new file mode 100644 index 0000000000..2c3871f194 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/models/index.ts @@ -0,0 +1,11 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { AgentPlanModel } from './agentPlan'; +export { AgentMessageModel } from './agentMessage'; +export { AgentTaskModel } from './agentTask'; +export { AgentThreadModel } from './agentThread'; +export { AgentPromptModel } from './agentPrompt'; +export { AgentSkillModel } from './agentSkill'; diff --git a/sdk/constructive-react/src/agent/orm/mutation/index.ts b/sdk/constructive-react/src/agent/orm/mutation/index.ts new file mode 100644 index 0000000000..989afbcbd6 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/mutation/index.ts @@ -0,0 +1,57 @@ +/** + * Custom mutation operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + ProvisionBucketInput, + ProvisionBucketPayload, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for provisionBucket + * Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/agent/orm/query-builder.ts b/sdk/constructive-react/src/agent/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-react/src/agent/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/agent/orm/realtime.ts b/sdk/constructive-react/src/agent/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-react/src/agent/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/agent/orm/select-types.ts b/sdk/constructive-react/src/agent/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-react/src/agent/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/agent/orm/types.ts b/sdk/constructive-react/src/agent/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-react/src/agent/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/agent/schema-types.ts b/sdk/constructive-react/src/agent/schema-types.ts new file mode 100644 index 0000000000..e582234e6d --- /dev/null +++ b/sdk/constructive-react/src/agent/schema-types.ts @@ -0,0 +1,1242 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + AgentMessage, + AgentPlan, + AgentPrompt, + AgentSkill, + AgentTask, + AgentThread, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, + VectorFilter, +} from './types'; +/** Methods to use when ordering `AgentMessage`. */ +export type AgentMessageOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC'; +/** Methods to use when ordering `AgentPlan`. */ +export type AgentPlanOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +/** Methods to use when ordering `AgentTask`. */ +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC'; +/** Methods to use when ordering `AgentThread`. */ +export type AgentThreadOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC'; +/** Methods to use when ordering `AgentPrompt`. */ +export type AgentPromptOrderBy = + | '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' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC'; +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'L2' | 'IP'; +/** Methods to use when ordering `AgentSkill`. */ +export type AgentSkillOrderBy = + | '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' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC'; +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; +} +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Negates the expression. */ + not?: AgentPromptFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; +} +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; +} +/** A filter to be used against `AgentSkill` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentSkillFilter { + /** 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 `title` field. */ + title?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AgentSkillFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentSkillFilter[]; + /** Negates the expression. */ + not?: AgentSkillFilter; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; +} +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Query vector for similarity search. */ + vector: number[]; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; +} +export interface CreateAgentPlanInput { + clientMutationId?: string; + /** The `AgentPlan` to be created by this mutation. */ + agentPlan: AgentPlanInput; +} +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this plan */ + ownerId?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + /** Overall goal or context for this plan */ + description?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + /** The `AgentMessage` to be created by this mutation. */ + agentMessage: AgentMessageInput; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this message */ + ownerId?: string; + /** Message content: TextPart and ToolPart array */ + parts?: unknown; + /** Foreign key to agent_thread */ + threadId: string; + /** Who authored this message: user or assistant */ + authorRole: string; + /** LLM model that generated this response */ + model?: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + /** The `AgentThread` to be created by this mutation. */ + agentThread: AgentThreadInput; +} +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this thread */ + ownerId?: string; + /** Current status of this thread */ + status?: string; + /** Human-readable conversation title */ + title?: string; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; +} +export interface CreateAgentPromptInput { + clientMutationId?: string; + /** The `AgentPrompt` to be created by this mutation. */ + agentPrompt: AgentPromptInput; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + /** The system prompt template content */ + content: string; + /** What this prompt template is for */ + description?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: unknown; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + /** The `AgentTask` to be created by this mutation. */ + agentTask: AgentTaskInput; +} +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this task */ + ownerId?: string; + /** Current status of this task */ + status?: string; + /** Foreign key to agent_plan */ + planId: string; + /** Natural-language description of the work to do */ + description: string; + /** Who created the task: agent or user */ + source?: string; + /** Error message captured when the task failed */ + error?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; +} +export interface CreateAgentSkillInput { + clientMutationId?: string; + /** The `AgentSkill` to be created by this mutation. */ + agentSkill: AgentSkillInput; +} +/** An input for mutations affecting `AgentSkill` */ +export interface AgentSkillInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Skill name or title */ + title: string; + /** Brief description of when this skill applies */ + description?: string; + /** Full skill instructions (markdown) */ + body: string; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Whether this skill is active and retrievable */ + isActive?: boolean; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: unknown; + embedding?: number[]; + embeddingUpdatedAt?: string; +} +export interface UpdateAgentPlanInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentPlan` being updated. */ + agentPlanPatch: AgentPlanPatch; +} +/** Represents an update to a `AgentPlan`. Fields that are set will be updated. */ +export interface AgentPlanPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this plan */ + ownerId?: string; + /** Foreign key to agent_thread */ + threadId?: string; + /** Human-readable plan name */ + title?: string; + /** Overall goal or context for this plan */ + description?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentMessage` being updated. */ + agentMessagePatch: AgentMessagePatch; +} +/** Represents an update to a `AgentMessage`. Fields that are set will be updated. */ +export interface AgentMessagePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this message */ + ownerId?: string; + /** Message content: TextPart and ToolPart array */ + parts?: unknown; + /** Foreign key to agent_thread */ + threadId?: string; + /** Who authored this message: user or assistant */ + authorRole?: string; + /** LLM model that generated this response */ + model?: string; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentThread` being updated. */ + agentThreadPatch: AgentThreadPatch; +} +/** Represents an update to a `AgentThread`. Fields that are set will be updated. */ +export interface AgentThreadPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this thread */ + ownerId?: string; + /** Current status of this thread */ + status?: string; + /** Human-readable conversation title */ + title?: string; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; +} +export interface UpdateAgentPromptInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentPrompt` being updated. */ + agentPromptPatch: AgentPromptPatch; +} +/** Represents an update to a `AgentPrompt`. Fields that are set will be updated. */ +export interface AgentPromptPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string; + /** The system prompt template content */ + content?: string; + /** What this prompt template is for */ + description?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: unknown; +} +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentTask` being updated. */ + agentTaskPatch: AgentTaskPatch; +} +/** Represents an update to a `AgentTask`. Fields that are set will be updated. */ +export interface AgentTaskPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this task */ + ownerId?: string; + /** Current status of this task */ + status?: string; + /** Foreign key to agent_plan */ + planId?: string; + /** Natural-language description of the work to do */ + description?: string; + /** Who created the task: agent or user */ + source?: string; + /** Error message captured when the task failed */ + error?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; +} +export interface UpdateAgentSkillInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentSkill` being updated. */ + agentSkillPatch: AgentSkillPatch; +} +/** Represents an update to a `AgentSkill`. Fields that are set will be updated. */ +export interface AgentSkillPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Skill name or title */ + title?: string; + /** Brief description of when this skill applies */ + description?: string; + /** Full skill instructions (markdown) */ + body?: string; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Whether this skill is active and retrievable */ + isActive?: boolean; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: unknown; + embedding?: number[]; + embeddingUpdatedAt?: string; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentSkillInput { + clientMutationId?: string; + 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 `AgentPlan` values. */ +export interface AgentPlanConnection { + nodes: AgentPlan[]; + edges: AgentPlanEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AgentMessage` values. */ +export interface AgentMessageConnection { + nodes: AgentMessage[]; + edges: AgentMessageEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AgentThread` values. */ +export interface AgentThreadConnection { + nodes: AgentThread[]; + edges: AgentThreadEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AgentPrompt` values. */ +export interface AgentPromptConnection { + nodes: AgentPrompt[]; + edges: AgentPromptEdge[]; + 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 `AgentSkill` values. */ +export interface AgentSkillConnection { + nodes: AgentSkill[]; + edges: AgentSkillEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface CreateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was created by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export interface CreateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export interface CreateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export interface CreateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was created by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export interface CreateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was created by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export interface UpdateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was updated by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export interface UpdateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export interface UpdateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export interface UpdateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was updated by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export interface UpdateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was updated by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export interface DeleteAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was deleted by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export interface DeleteAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export interface DeleteAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export interface DeleteAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was deleted by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export interface DeleteAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was deleted by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | 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 `AgentPlan` edge in the connection. */ +export interface AgentPlanEdge { + cursor?: string | null; + /** The `AgentPlan` at the end of the edge. */ + node?: AgentPlan | 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 `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { + cursor?: string | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; +} +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { + cursor?: string | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; +} +/** A `AgentPrompt` edge in the connection. */ +export interface AgentPromptEdge { + cursor?: string | null; + /** The `AgentPrompt` at the end of the edge. */ + node?: AgentPrompt | 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 `AgentSkill` edge in the connection. */ +export interface AgentSkillEdge { + cursor?: string | null; + /** The `AgentSkill` at the end of the edge. */ + node?: AgentSkill | 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; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; + isPrimaryKey: boolean; + isForeignKey: boolean; + description?: string | 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; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; + subtype?: string | null; +} +/** 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; +} diff --git a/sdk/constructive-react/src/agent/types.ts b/sdk/constructive-react/src/agent/types.ts new file mode 100644 index 0000000000..f677c03b0c --- /dev/null +++ b/sdk/constructive-react/src/agent/types.ts @@ -0,0 +1,312 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface AgentPlan { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + ownerId: string | null; + threadId: string | null; + title: string | null; + description: string | null; + status: string | null; +} +export interface AgentMessage { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + ownerId: string | null; + parts: unknown | null; + threadId: string | null; + authorRole: string | null; + model: string | null; +} +export interface AgentTask { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + ownerId: string | null; + status: string | null; + planId: string | null; + description: string | null; + source: string | null; + error: string | null; + orderIndex: number | null; + requiresApproval: boolean | null; + approvalStatus: string | null; + approvedBy: string | null; + approvedAt: string | null; + approvalFeedback: string | null; +} +export interface AgentThread { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + ownerId: string | null; + status: string | null; + title: string | null; + mode: string | null; + model: string | null; + systemPrompt: string | null; + promptTemplateId: string | null; +} +export interface AgentPrompt { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + name: string | null; + content: string | null; + description: string | null; + isDefault: boolean | null; + metadata: unknown | null; +} +export interface AgentSkill { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + title: string | null; + description: string | null; + body: string | null; + keywords: string[] | null; + isActive: boolean | null; + metadata: unknown | null; + search: string | null; + embedding: number[] | null; + embeddingUpdatedAt: string | null; + searchTsvRank: number | null; + embeddingVectorDistance: number | null; + titleTrgmSimilarity: number | null; + descriptionTrgmSimilarity: number | null; + bodyTrgmSimilarity: number | null; + searchScore: number | 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/api/README.md b/sdk/constructive-react/src/api/README.md new file mode 100644 index 0000000000..ab51dbdacd --- /dev/null +++ b/sdk/constructive-react/src/api/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 45 +- **Custom queries:** 1 +- **Custom mutations:** 9 + +**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/api/hooks/README.md b/sdk/constructive-react/src/api/hooks/README.md new file mode 100644 index 0000000000..84e75c72f5 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/README.md @@ -0,0 +1,1377 @@ +# 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 | +|------|------|-------------| +| `useFunctionsQuery` | Query | List all functions | +| `useFunctionQuery` | Query | Get one function | +| `useCreateFunctionMutation` | Mutation | Create a function | +| `useUpdateFunctionMutation` | Mutation | Update a function | +| `useDeleteFunctionMutation` | Mutation | Delete a function | +| `useSchemasQuery` | Query | List all schemas | +| `useSchemaQuery` | Query | Get one schema | +| `useCreateSchemaMutation` | Mutation | Create a schema | +| `useUpdateSchemaMutation` | Mutation | Update a schema | +| `useDeleteSchemaMutation` | Mutation | Delete a schema | +| `useTablesQuery` | Query | List all tables | +| `useTableQuery` | Query | Get one table | +| `useCreateTableMutation` | Mutation | Create a table | +| `useUpdateTableMutation` | Mutation | Update a table | +| `useDeleteTableMutation` | Mutation | Delete a table | +| `useCheckConstraintsQuery` | Query | List all checkConstraints | +| `useCheckConstraintQuery` | Query | Get one checkConstraint | +| `useCreateCheckConstraintMutation` | Mutation | Create a checkConstraint | +| `useUpdateCheckConstraintMutation` | Mutation | Update a checkConstraint | +| `useDeleteCheckConstraintMutation` | Mutation | Delete a checkConstraint | +| `useFieldsQuery` | Query | List all fields | +| `useFieldQuery` | Query | Get one field | +| `useCreateFieldMutation` | Mutation | Create a field | +| `useUpdateFieldMutation` | Mutation | Update a field | +| `useDeleteFieldMutation` | Mutation | Delete a field | +| `useSpatialRelationsQuery` | Query | List all spatialRelations | +| `useSpatialRelationQuery` | Query | Get one spatialRelation | +| `useCreateSpatialRelationMutation` | Mutation | Create a spatialRelation | +| `useUpdateSpatialRelationMutation` | Mutation | Update a spatialRelation | +| `useDeleteSpatialRelationMutation` | Mutation | Delete a spatialRelation | +| `useForeignKeyConstraintsQuery` | Query | List all foreignKeyConstraints | +| `useForeignKeyConstraintQuery` | Query | Get one foreignKeyConstraint | +| `useCreateForeignKeyConstraintMutation` | Mutation | Create a foreignKeyConstraint | +| `useUpdateForeignKeyConstraintMutation` | Mutation | Update a foreignKeyConstraint | +| `useDeleteForeignKeyConstraintMutation` | Mutation | Delete a foreignKeyConstraint | +| `useFullTextSearchesQuery` | Query | List all fullTextSearches | +| `useFullTextSearchQuery` | Query | Get one fullTextSearch | +| `useCreateFullTextSearchMutation` | Mutation | Create a fullTextSearch | +| `useUpdateFullTextSearchMutation` | Mutation | Update a fullTextSearch | +| `useDeleteFullTextSearchMutation` | Mutation | Delete a fullTextSearch | +| `useIndicesQuery` | Query | List all indices | +| `useIndexQuery` | Query | Get one index | +| `useCreateIndexMutation` | Mutation | Create a index | +| `useUpdateIndexMutation` | Mutation | Update a index | +| `useDeleteIndexMutation` | Mutation | Delete a index | +| `usePoliciesQuery` | Query | List all policies | +| `usePolicyQuery` | Query | Get one policy | +| `useCreatePolicyMutation` | Mutation | Create a policy | +| `useUpdatePolicyMutation` | Mutation | Update a policy | +| `useDeletePolicyMutation` | Mutation | Delete a policy | +| `usePrimaryKeyConstraintsQuery` | Query | List all primaryKeyConstraints | +| `usePrimaryKeyConstraintQuery` | Query | Get one primaryKeyConstraint | +| `useCreatePrimaryKeyConstraintMutation` | Mutation | Create a primaryKeyConstraint | +| `useUpdatePrimaryKeyConstraintMutation` | Mutation | Update a primaryKeyConstraint | +| `useDeletePrimaryKeyConstraintMutation` | Mutation | Delete a primaryKeyConstraint | +| `useTableGrantsQuery` | Query | List all tableGrants | +| `useTableGrantQuery` | Query | Get one tableGrant | +| `useCreateTableGrantMutation` | Mutation | Create a tableGrant | +| `useUpdateTableGrantMutation` | Mutation | Update a tableGrant | +| `useDeleteTableGrantMutation` | Mutation | Delete a tableGrant | +| `useTriggersQuery` | Query | List all triggers | +| `useTriggerQuery` | Query | Get one trigger | +| `useCreateTriggerMutation` | Mutation | Create a trigger | +| `useUpdateTriggerMutation` | Mutation | Update a trigger | +| `useDeleteTriggerMutation` | Mutation | Delete a trigger | +| `useUniqueConstraintsQuery` | Query | List all uniqueConstraints | +| `useUniqueConstraintQuery` | Query | Get one uniqueConstraint | +| `useCreateUniqueConstraintMutation` | Mutation | Create a uniqueConstraint | +| `useUpdateUniqueConstraintMutation` | Mutation | Update a uniqueConstraint | +| `useDeleteUniqueConstraintMutation` | Mutation | Delete a uniqueConstraint | +| `useViewsQuery` | Query | List all views | +| `useViewQuery` | Query | Get one view | +| `useCreateViewMutation` | Mutation | Create a view | +| `useUpdateViewMutation` | Mutation | Update a view | +| `useDeleteViewMutation` | Mutation | Delete a view | +| `useViewTablesQuery` | Query | Junction table linking views to their joined tables for referential integrity | +| `useViewTableQuery` | Query | Junction table linking views to their joined tables for referential integrity | +| `useCreateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | +| `useUpdateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | +| `useDeleteViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | +| `useViewGrantsQuery` | Query | List all viewGrants | +| `useViewGrantQuery` | Query | Get one viewGrant | +| `useCreateViewGrantMutation` | Mutation | Create a viewGrant | +| `useUpdateViewGrantMutation` | Mutation | Update a viewGrant | +| `useDeleteViewGrantMutation` | Mutation | Delete a viewGrant | +| `useViewRulesQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useViewRuleQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useCreateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useUpdateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useDeleteViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useEmbeddingChunksQuery` | Query | List all embeddingChunks | +| `useEmbeddingChunkQuery` | Query | Get one embeddingChunk | +| `useCreateEmbeddingChunkMutation` | Mutation | Create a embeddingChunk | +| `useUpdateEmbeddingChunkMutation` | Mutation | Update a embeddingChunk | +| `useDeleteEmbeddingChunkMutation` | Mutation | Delete a embeddingChunk | +| `useSchemaGrantsQuery` | Query | List all schemaGrants | +| `useSchemaGrantQuery` | Query | Get one schemaGrant | +| `useCreateSchemaGrantMutation` | Mutation | Create a schemaGrant | +| `useUpdateSchemaGrantMutation` | Mutation | Update a schemaGrant | +| `useDeleteSchemaGrantMutation` | Mutation | Delete a schemaGrant | +| `useDefaultPrivilegesQuery` | Query | List all defaultPrivileges | +| `useDefaultPrivilegeQuery` | Query | Get one defaultPrivilege | +| `useCreateDefaultPrivilegeMutation` | Mutation | Create a defaultPrivilege | +| `useUpdateDefaultPrivilegeMutation` | Mutation | Update a defaultPrivilege | +| `useDeleteDefaultPrivilegeMutation` | Mutation | Delete a defaultPrivilege | +| `useEnumsQuery` | Query | List all enums | +| `useEnumQuery` | Query | Get one enum | +| `useCreateEnumMutation` | Mutation | Create a enum | +| `useUpdateEnumMutation` | Mutation | Update a enum | +| `useDeleteEnumMutation` | Mutation | Delete a enum | +| `useApiSchemasQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useApiSchemaQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useCreateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useUpdateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useDeleteApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | +| `useApiModulesQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useApiModuleQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useCreateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useUpdateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useDeleteApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | +| `useDomainsQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useDomainQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useCreateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useUpdateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useDeleteDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | +| `useSiteMetadataQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useSiteMetadatumQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useCreateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useUpdateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useDeleteSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | +| `useSiteModulesQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useSiteModuleQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useCreateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useUpdateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useDeleteSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | +| `useSiteThemesQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useSiteThemeQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useCreateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useUpdateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useDeleteSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | +| `useCorsSettingsQuery` | Query | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | +| `useCorsSettingQuery` | Query | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | +| `useCreateCorsSettingMutation` | Mutation | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | +| `useUpdateCorsSettingMutation` | Mutation | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | +| `useDeleteCorsSettingMutation` | Mutation | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | +| `useTriggerFunctionsQuery` | Query | List all triggerFunctions | +| `useTriggerFunctionQuery` | Query | Get one triggerFunction | +| `useCreateTriggerFunctionMutation` | Mutation | Create a triggerFunction | +| `useUpdateTriggerFunctionMutation` | Mutation | Update a triggerFunction | +| `useDeleteTriggerFunctionMutation` | Mutation | Delete a triggerFunction | +| `usePartitionsQuery` | Query | List all partitions | +| `usePartitionQuery` | Query | Get one partition | +| `useCreatePartitionMutation` | Mutation | Create a partition | +| `useUpdatePartitionMutation` | Mutation | Update a partition | +| `useDeletePartitionMutation` | Mutation | Delete a partition | +| `useDatabaseTransfersQuery` | Query | List all databaseTransfers | +| `useDatabaseTransferQuery` | Query | Get one databaseTransfer | +| `useCreateDatabaseTransferMutation` | Mutation | Create a databaseTransfer | +| `useUpdateDatabaseTransferMutation` | Mutation | Update a databaseTransfer | +| `useDeleteDatabaseTransferMutation` | Mutation | Delete a databaseTransfer | +| `useApisQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useApiQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useCreateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useUpdateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useDeleteApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | +| `useSitesQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useSiteQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useCreateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useUpdateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useDeleteSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | +| `useAppsQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useAppQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useCreateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useUpdateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useDeleteAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | +| `useApiSettingsQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | +| `useApiSettingQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | +| `useCreateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | +| `useUpdateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | +| `useDeleteApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | +| `useMigrateFilesQuery` | Query | List all migrateFiles | +| `useMigrateFileQuery` | Query | Get one migrateFile | +| `useCreateMigrateFileMutation` | Mutation | Create a migrateFile | +| `useUpdateMigrateFileMutation` | Mutation | Update a migrateFile | +| `useDeleteMigrateFileMutation` | Mutation | Delete a migrateFile | +| `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | +| `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | +| `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | +| `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | +| `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | +| `usePubkeySettingsQuery` | Query | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | +| `usePubkeySettingQuery` | Query | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | +| `useCreatePubkeySettingMutation` | Mutation | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | +| `useUpdatePubkeySettingMutation` | Mutation | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | +| `useDeletePubkeySettingMutation` | Mutation | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | +| `useDatabasesQuery` | Query | List all databases | +| `useDatabaseQuery` | Query | Get one database | +| `useCreateDatabaseMutation` | Mutation | Create a database | +| `useUpdateDatabaseMutation` | Mutation | Update a database | +| `useDeleteDatabaseMutation` | Mutation | Delete a database | +| `useRlsSettingsQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | +| `useRlsSettingQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | +| `useCreateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | +| `useUpdateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | +| `useDeleteRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | +| `useSqlActionsQuery` | Query | List all sqlActions | +| `useSqlActionQuery` | Query | Get one sqlAction | +| `useCreateSqlActionMutation` | Mutation | Create a sqlAction | +| `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | +| `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | +| `useDatabaseSettingsQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useDatabaseSettingQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useCreateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useUpdateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useDeleteDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `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 | +| `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) + +Returns the database_id UUID of the newly created database. + +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 + | +| `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 + +### Function + +```typescript +// List all functions +const { data, isLoading } = useFunctionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } }, +}); + +// Get one function +const { data: item } = useFunctionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } }, +}); + +// Create a function +const { mutate: create } = useCreateFunctionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '' }); +``` + +### Schema + +```typescript +// List all schemas +const { data, isLoading } = useSchemasQuery({ + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, +}); + +// Get one schema +const { data: item } = useSchemaQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, +}); + +// Create a schema +const { mutate: create } = useCreateSchemaMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); +``` + +### Table + +```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a table +const { mutate: create } = useCreateTableMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); +``` + +### CheckConstraint + +```typescript +// List all checkConstraints +const { data, isLoading } = useCheckConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one checkConstraint +const { data: item } = useCheckConstraintQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a checkConstraint +const { mutate: create } = useCreateCheckConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### Field + +```typescript +// List all fields +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, module: true, scope: true, createdAt: true, updatedAt: true } }, +}); + +// Get one field +const { data: item } = 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, module: true, scope: 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: '', module: '', scope: '' }); +``` + +### SpatialRelation + +```typescript +// List all spatialRelations +const { data, isLoading } = useSpatialRelationsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one spatialRelation +const { data: item } = useSpatialRelationQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a spatialRelation +const { mutate: create } = useCreateSpatialRelationMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }); +``` + +### ForeignKeyConstraint + +```typescript +// List all foreignKeyConstraints +const { data, isLoading } = useForeignKeyConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one foreignKeyConstraint +const { data: item } = useForeignKeyConstraintQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a foreignKeyConstraint +const { mutate: create } = useCreateForeignKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); +``` + +### FullTextSearch + +```typescript +// List all fullTextSearches +const { data, isLoading } = useFullTextSearchesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }, +}); + +// Get one fullTextSearch +const { data: item } = useFullTextSearchQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }, +}); + +// Create a fullTextSearch +const { mutate: create } = useCreateFullTextSearchMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '', langColumn: '' }); +``` + +### Index + +```typescript +// List all indices +const { data, isLoading } = useIndicesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one index +const { data: item } = useIndexQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a index +const { mutate: create } = useCreateIndexMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### Policy + +```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }); +``` + +### PrimaryKeyConstraint + +```typescript +// List all primaryKeyConstraints +const { data, isLoading } = usePrimaryKeyConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one primaryKeyConstraint +const { data: item } = usePrimaryKeyConstraintQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a primaryKeyConstraint +const { mutate: create } = useCreatePrimaryKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### TableGrant + +```typescript +// List all tableGrants +const { data, isLoading } = useTableGrantsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, +}); + +// Get one tableGrant +const { data: item } = useTableGrantQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, +}); + +// Create a tableGrant +const { mutate: create } = useCreateTableGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); +``` + +### Trigger + +```typescript +// List all triggers +const { data, isLoading } = useTriggersQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one trigger +const { data: item } = useTriggerQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a trigger +const { mutate: create } = useCreateTriggerMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### UniqueConstraint + +```typescript +// List all uniqueConstraints +const { data, isLoading } = useUniqueConstraintsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one uniqueConstraint +const { data: item } = useUniqueConstraintQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a uniqueConstraint +const { mutate: create } = useCreateUniqueConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); +``` + +### View + +```typescript +// List all views +const { data, isLoading } = useViewsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); + +// Get one view +const { data: item } = useViewQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); + +// Create a view +const { mutate: create } = useCreateViewMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### ViewTable + +```typescript +// List all viewTables +const { data, isLoading } = useViewTablesQuery({ + selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, +}); + +// Get one viewTable +const { data: item } = useViewTableQuery({ + id: '', + selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, +}); + +// Create a viewTable +const { mutate: create } = useCreateViewTableMutation({ + selection: { fields: { id: true } }, +}); +create({ viewId: '', tableId: '', joinOrder: '' }); +``` + +### ViewGrant + +```typescript +// List all viewGrants +const { data, isLoading } = useViewGrantsQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, +}); + +// Get one viewGrant +const { data: item } = useViewGrantQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, +}); + +// Create a viewGrant +const { mutate: create } = useCreateViewGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); +``` + +### ViewRule + +```typescript +// List all viewRules +const { data, isLoading } = useViewRulesQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, +}); + +// Get one viewRule +const { data: item } = useViewRuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, +}); + +// Create a viewRule +const { mutate: create } = useCreateViewRuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', viewId: '', name: '', event: '', action: '' }); +``` + +### EmbeddingChunk + +```typescript +// List all embeddingChunks +const { data, isLoading } = useEmbeddingChunksQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one embeddingChunk +const { data: item } = useEmbeddingChunkQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a embeddingChunk +const { mutate: create } = useCreateEmbeddingChunkMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }); +``` + +### SchemaGrant + +```typescript +// List all schemaGrants +const { data, isLoading } = useSchemaGrantsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, +}); + +// Get one schemaGrant +const { data: item } = useSchemaGrantQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, +}); + +// Create a schemaGrant +const { mutate: create } = useCreateSchemaGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', granteeName: '' }); +``` + +### DefaultPrivilege + +```typescript +// List all defaultPrivileges +const { data, isLoading } = useDefaultPrivilegesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); + +// Get one defaultPrivilege +const { data: item } = useDefaultPrivilegeQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, +}); + +// Create a defaultPrivilege +const { mutate: create } = useCreateDefaultPrivilegeMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); +``` + +### Enum + +```typescript +// List all enums +const { data, isLoading } = useEnumsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); + +// Get one enum +const { data: item } = useEnumQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); + +// Create a enum +const { mutate: create } = useCreateEnumMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### ApiSchema + +```typescript +// List all apiSchemas +const { data, isLoading } = useApiSchemasQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, +}); + +// Get one apiSchema +const { data: item } = useApiSchemaQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, +}); + +// Create a apiSchema +const { mutate: create } = useCreateApiSchemaMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', apiId: '' }); +``` + +### ApiModule + +```typescript +// List all apiModules +const { data, isLoading } = useApiModulesQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, +}); + +// Get one apiModule +const { data: item } = useApiModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, +}); + +// Create a apiModule +const { mutate: create } = useCreateApiModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', apiId: '', name: '', data: '' }); +``` + +### Domain + +```typescript +// List all domains +const { data, isLoading } = useDomainsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, +}); + +// Get one domain +const { data: item } = useDomainQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, +}); + +// Create a domain +const { mutate: create } = useCreateDomainMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); +``` + +### SiteMetadatum + +```typescript +// List all siteMetadata +const { data, isLoading } = useSiteMetadataQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, +}); + +// Get one siteMetadatum +const { data: item } = useSiteMetadatumQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, +}); + +// Create a siteMetadatum +const { mutate: create } = useCreateSiteMetadatumMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); +``` + +### SiteModule + +```typescript +// List all siteModules +const { data, isLoading } = useSiteModulesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, +}); + +// Get one siteModule +const { data: item } = useSiteModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, +}); + +// Create a siteModule +const { mutate: create } = useCreateSiteModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', siteId: '', name: '', data: '' }); +``` + +### SiteTheme + +```typescript +// List all siteThemes +const { data, isLoading } = useSiteThemesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, +}); + +// Get one siteTheme +const { data: item } = useSiteThemeQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, +}); + +// Create a siteTheme +const { mutate: create } = useCreateSiteThemeMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', siteId: '', theme: '' }); +``` + +### CorsSetting + +```typescript +// List all corsSettings +const { data, isLoading } = useCorsSettingsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }, +}); + +// Get one corsSetting +const { data: item } = useCorsSettingQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }, +}); + +// Create a corsSetting +const { mutate: create } = useCreateCorsSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', apiId: '', allowedOrigins: '' }); +``` + +### TriggerFunction + +```typescript +// List all triggerFunctions +const { data, isLoading } = useTriggerFunctionsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, +}); + +// Get one triggerFunction +const { data: item } = useTriggerFunctionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, +}); + +// Create a triggerFunction +const { mutate: create } = useCreateTriggerFunctionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', code: '' }); +``` + +### Partition + +```typescript +// List all partitions +const { data, isLoading } = usePartitionsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }, +}); + +// Get one partition +const { data: item } = usePartitionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }, +}); + +// Create a partition +const { mutate: create } = useCreatePartitionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }); +``` + +### DatabaseTransfer + +```typescript +// List all databaseTransfers +const { data, isLoading } = useDatabaseTransfersQuery({ + selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); + +// Get one databaseTransfer +const { data: item } = useDatabaseTransferQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); + +// Create a databaseTransfer +const { mutate: create } = useCreateDatabaseTransferMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }); +``` + +### Api + +```typescript +// List all apis +const { data, isLoading } = useApisQuery({ + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, +}); + +// Get one api +const { data: item } = useApiQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, +}); + +// Create a api +const { mutate: create } = useCreateApiMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); +``` + +### Site + +```typescript +// List all sites +const { data, isLoading } = useSitesQuery({ + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, +}); + +// Get one site +const { data: item } = useSiteQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, +}); + +// Create a site +const { mutate: create } = useCreateSiteMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); +``` + +### App + +```typescript +// List all apps +const { data, isLoading } = useAppsQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, +}); + +// Get one app +const { data: item } = useAppQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, +}); + +// Create a app +const { mutate: create } = useCreateAppMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); +``` + +### ApiSetting + +```typescript +// List all apiSettings +const { data, isLoading } = useApiSettingsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }, +}); + +// Get one apiSetting +const { data: item } = useApiSettingQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }, +}); + +// Create a apiSetting +const { mutate: create } = useCreateApiSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }); +``` + +### MigrateFile + +```typescript +// List all migrateFiles +const { data, isLoading } = useMigrateFilesQuery({ + selection: { fields: { id: true, databaseId: true, upload: true } }, +}); + +// Get one migrateFile +const { data: item } = useMigrateFileQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, upload: true } }, +}); + +// Create a migrateFile +const { mutate: create } = useCreateMigrateFileMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', upload: '' }); +``` + +### NodeTypeRegistry + +```typescript +// List all nodeTypeRegistries +const { data, isLoading } = useNodeTypeRegistriesQuery({ + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, +}); + +// Get one nodeTypeRegistry +const { data: item } = useNodeTypeRegistryQuery({ + name: '', + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, +}); + +// Create a nodeTypeRegistry +const { mutate: create } = useCreateNodeTypeRegistryMutation({ + selection: { fields: { name: true } }, +}); +create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); +``` + +### PubkeySetting + +```typescript +// List all pubkeySettings +const { data, isLoading } = usePubkeySettingsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }, +}); + +// Get one pubkeySetting +const { data: item } = usePubkeySettingQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }, +}); + +// Create a pubkeySetting +const { mutate: create } = useCreatePubkeySettingMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }); +``` + +### Database + +```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 } }, +}); + +// 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 } }, +}); + +// Create a database +const { mutate: create } = useCreateDatabaseMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); +``` + +### RlsSetting + +```typescript +// List all rlsSettings +const { data, isLoading } = useRlsSettingsQuery({ + selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }, +}); + +// Get one rlsSetting +const { data: item } = useRlsSettingQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }, +}); + +// Create a rlsSetting +const { mutate: create } = useCreateRlsSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }); +``` + +### SqlAction + +```typescript +// List all sqlActions +const { data, isLoading } = useSqlActionsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); + +// Get one sqlAction +const { data: item } = useSqlActionQuery({ + id: '', + selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); + +// Create a sqlAction +const { mutate: create } = useCreateSqlActionMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` + +### DatabaseSetting + +```typescript +// List all databaseSettings +const { data, isLoading } = useDatabaseSettingsQuery({ + selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }, +}); + +// Get one databaseSetting +const { data: item } = useDatabaseSettingQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }, +}); + +// Create a databaseSetting +const { mutate: create } = useCreateDatabaseSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }); +``` + +### 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 +// List all astMigrations +const { data, isLoading } = useAstMigrationsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); + +// Get one astMigration +const { data: item } = useAstMigrationQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); + +// Create a astMigration +const { mutate: create } = useCreateAstMigrationMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` + +## Custom Operation Hooks + +### `useApplyRegistryDefaultsQuery` + +applyRegistryDefaults + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `nodeType` | String | + | `data` | JSON | + +### `useAcceptDatabaseTransferMutation` + +acceptDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AcceptDatabaseTransferInput (required) | + +### `useCancelDatabaseTransferMutation` + +cancelDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CancelDatabaseTransferInput (required) | + +### `useRejectDatabaseTransferMutation` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `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 + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +### `useApplyRlsMutation` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +### `useCreateUserDatabaseMutation` + +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) + +Returns the database_id UUID of the newly created database. + +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 + + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateUserDatabaseInput (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/api/hooks/client.ts b/sdk/constructive-react/src/api/hooks/client.ts new file mode 100644 index 0000000000..47b9aa63f4 --- /dev/null +++ b/sdk/constructive-react/src/api/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/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts new file mode 100644 index 0000000000..0f22d9f352 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * 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, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, Partition, DatabaseTransfer, Api, Site, App, ApiSetting, MigrateFile, NodeTypeRegistry, PubkeySetting, Database, RlsSetting, SqlAction, DatabaseSetting, WebauthnSetting, AstMigration + * + * 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/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts new file mode 100644 index 0000000000..82f3c4cdad --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -0,0 +1,1111 @@ +/** + * 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 { + functionKeys, + schemaKeys, + tableKeys, + checkConstraintKeys, + fieldKeys, + spatialRelationKeys, + foreignKeyConstraintKeys, + fullTextSearchKeys, + indexKeys, + policyKeys, + primaryKeyConstraintKeys, + tableGrantKeys, + triggerKeys, + uniqueConstraintKeys, + viewKeys, + viewTableKeys, + viewGrantKeys, + viewRuleKeys, + embeddingChunkKeys, + schemaGrantKeys, + defaultPrivilegeKeys, + enumKeys, + apiSchemaKeys, + apiModuleKeys, + domainKeys, + siteMetadatumKeys, + siteModuleKeys, + siteThemeKeys, + corsSettingKeys, + triggerFunctionKeys, + partitionKeys, + databaseTransferKeys, + apiKeys, + siteKeys, + appKeys, + apiSettingKeys, + migrateFileKeys, + nodeTypeRegistryKeys, + pubkeySettingKeys, + databaseKeys, + rlsSettingKeys, + sqlActionKeys, + databaseSettingKeys, + webauthnSettingKeys, + astMigrationKeys, +} 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 function queries */ function: { + /** Invalidate all function queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionKeys.all, + }), + /** Invalidate function list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionKeys.lists(), + }), + /** Invalidate a specific function */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: functionKeys.detail(id), + }), + }, + /** Invalidate schema queries */ schema: { + /** Invalidate all schema queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaKeys.all, + }), + /** Invalidate schema list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaKeys.lists(), + }), + /** Invalidate a specific schema */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: schemaKeys.detail(id), + }), + }, + /** Invalidate table queries */ table: { + /** Invalidate all table queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableKeys.all, + }), + /** Invalidate table list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableKeys.lists(), + }), + /** Invalidate a specific table */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: tableKeys.detail(id), + }), + }, + /** Invalidate checkConstraint queries */ checkConstraint: { + /** Invalidate all checkConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.all, + }), + /** Invalidate checkConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.lists(), + }), + /** Invalidate a specific checkConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.detail(id), + }), + }, + /** Invalidate field queries */ field: { + /** Invalidate all field queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fieldKeys.all, + }), + /** Invalidate field list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fieldKeys.lists(), + }), + /** Invalidate a specific field */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: fieldKeys.detail(id), + }), + }, + /** Invalidate spatialRelation queries */ spatialRelation: { + /** Invalidate all spatialRelation queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: spatialRelationKeys.all, + }), + /** Invalidate spatialRelation list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: spatialRelationKeys.lists(), + }), + /** Invalidate a specific spatialRelation */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: spatialRelationKeys.detail(id), + }), + }, + /** Invalidate foreignKeyConstraint queries */ foreignKeyConstraint: { + /** Invalidate all foreignKeyConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.all, + }), + /** Invalidate foreignKeyConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.lists(), + }), + /** Invalidate a specific foreignKeyConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.detail(id), + }), + }, + /** Invalidate fullTextSearch queries */ fullTextSearch: { + /** Invalidate all fullTextSearch queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.all, + }), + /** Invalidate fullTextSearch list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.lists(), + }), + /** Invalidate a specific fullTextSearch */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.detail(id), + }), + }, + /** Invalidate index queries */ index: { + /** Invalidate all index queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: indexKeys.all, + }), + /** Invalidate index list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: indexKeys.lists(), + }), + /** Invalidate a specific index */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: indexKeys.detail(id), + }), + }, + /** Invalidate policy queries */ policy: { + /** Invalidate all policy queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: policyKeys.all, + }), + /** Invalidate policy list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: policyKeys.lists(), + }), + /** Invalidate a specific policy */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: policyKeys.detail(id), + }), + }, + /** Invalidate primaryKeyConstraint queries */ primaryKeyConstraint: { + /** Invalidate all primaryKeyConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.all, + }), + /** Invalidate primaryKeyConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.lists(), + }), + /** Invalidate a specific primaryKeyConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.detail(id), + }), + }, + /** Invalidate tableGrant queries */ tableGrant: { + /** Invalidate all tableGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.all, + }), + /** Invalidate tableGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.lists(), + }), + /** Invalidate a specific tableGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.detail(id), + }), + }, + /** Invalidate trigger queries */ trigger: { + /** Invalidate all trigger queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: triggerKeys.all, + }), + /** Invalidate trigger list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: triggerKeys.lists(), + }), + /** Invalidate a specific trigger */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: triggerKeys.detail(id), + }), + }, + /** Invalidate uniqueConstraint queries */ uniqueConstraint: { + /** Invalidate all uniqueConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.all, + }), + /** Invalidate uniqueConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.lists(), + }), + /** Invalidate a specific uniqueConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.detail(id), + }), + }, + /** Invalidate view queries */ view: { + /** Invalidate all view queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewKeys.all, + }), + /** Invalidate view list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewKeys.lists(), + }), + /** Invalidate a specific view */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: viewKeys.detail(id), + }), + }, + /** Invalidate viewTable queries */ viewTable: { + /** Invalidate all viewTable queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewTableKeys.all, + }), + /** Invalidate viewTable list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewTableKeys.lists(), + }), + /** Invalidate a specific viewTable */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: viewTableKeys.detail(id), + }), + }, + /** Invalidate viewGrant queries */ viewGrant: { + /** Invalidate all viewGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.all, + }), + /** Invalidate viewGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.lists(), + }), + /** Invalidate a specific viewGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.detail(id), + }), + }, + /** Invalidate viewRule queries */ viewRule: { + /** Invalidate all viewRule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.all, + }), + /** Invalidate viewRule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.lists(), + }), + /** Invalidate a specific viewRule */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.detail(id), + }), + }, + /** Invalidate embeddingChunk queries */ embeddingChunk: { + /** Invalidate all embeddingChunk queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.all, + }), + /** Invalidate embeddingChunk list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.lists(), + }), + /** Invalidate a specific embeddingChunk */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.detail(id), + }), + }, + /** Invalidate schemaGrant queries */ schemaGrant: { + /** Invalidate all schemaGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.all, + }), + /** Invalidate schemaGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.lists(), + }), + /** Invalidate a specific schemaGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.detail(id), + }), + }, + /** Invalidate defaultPrivilege queries */ defaultPrivilege: { + /** Invalidate all defaultPrivilege queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.all, + }), + /** Invalidate defaultPrivilege list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.lists(), + }), + /** Invalidate a specific defaultPrivilege */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: defaultPrivilegeKeys.detail(id), + }), + }, + /** Invalidate enum queries */ enum: { + /** Invalidate all enum queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: enumKeys.all, + }), + /** Invalidate enum list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: enumKeys.lists(), + }), + /** Invalidate a specific enum */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: enumKeys.detail(id), + }), + }, + /** Invalidate apiSchema queries */ apiSchema: { + /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.all, + }), + /** Invalidate apiSchema list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.lists(), + }), + /** Invalidate a specific apiSchema */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.detail(id), + }), + }, + /** Invalidate apiModule queries */ apiModule: { + /** Invalidate all apiModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.all, + }), + /** Invalidate apiModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.lists(), + }), + /** Invalidate a specific apiModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.detail(id), + }), + }, + /** Invalidate domain queries */ domain: { + /** Invalidate all domain queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: domainKeys.all, + }), + /** Invalidate domain list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: domainKeys.lists(), + }), + /** Invalidate a specific domain */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: domainKeys.detail(id), + }), + }, + /** Invalidate siteMetadatum queries */ siteMetadatum: { + /** Invalidate all siteMetadatum queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.all, + }), + /** Invalidate siteMetadatum list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.lists(), + }), + /** Invalidate a specific siteMetadatum */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.detail(id), + }), + }, + /** Invalidate siteModule queries */ siteModule: { + /** Invalidate all siteModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.all, + }), + /** Invalidate siteModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.lists(), + }), + /** Invalidate a specific siteModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.detail(id), + }), + }, + /** Invalidate siteTheme queries */ siteTheme: { + /** Invalidate all siteTheme queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.all, + }), + /** Invalidate siteTheme list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.lists(), + }), + /** Invalidate a specific siteTheme */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.detail(id), + }), + }, + /** Invalidate corsSetting queries */ corsSetting: { + /** Invalidate all corsSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: corsSettingKeys.all, + }), + /** Invalidate corsSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: corsSettingKeys.lists(), + }), + /** Invalidate a specific corsSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: corsSettingKeys.detail(id), + }), + }, + /** Invalidate triggerFunction queries */ triggerFunction: { + /** Invalidate all triggerFunction queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.all, + }), + /** Invalidate triggerFunction list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.lists(), + }), + /** Invalidate a specific triggerFunction */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.detail(id), + }), + }, + /** Invalidate partition queries */ partition: { + /** Invalidate all partition queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: partitionKeys.all, + }), + /** Invalidate partition list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: partitionKeys.lists(), + }), + /** Invalidate a specific partition */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: partitionKeys.detail(id), + }), + }, + /** Invalidate databaseTransfer queries */ databaseTransfer: { + /** Invalidate all databaseTransfer queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.all, + }), + /** Invalidate databaseTransfer list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.lists(), + }), + /** Invalidate a specific databaseTransfer */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.detail(id), + }), + }, + /** Invalidate api queries */ api: { + /** Invalidate all api queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiKeys.all, + }), + /** Invalidate api list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiKeys.lists(), + }), + /** Invalidate a specific api */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: apiKeys.detail(id), + }), + }, + /** Invalidate site queries */ site: { + /** Invalidate all site queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteKeys.all, + }), + /** Invalidate site list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteKeys.lists(), + }), + /** Invalidate a specific site */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: siteKeys.detail(id), + }), + }, + /** Invalidate app queries */ app: { + /** Invalidate all app queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appKeys.all, + }), + /** Invalidate app list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appKeys.lists(), + }), + /** Invalidate a specific app */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appKeys.detail(id), + }), + }, + /** Invalidate apiSetting queries */ apiSetting: { + /** Invalidate all apiSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiSettingKeys.all, + }), + /** Invalidate apiSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiSettingKeys.lists(), + }), + /** Invalidate a specific apiSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: apiSettingKeys.detail(id), + }), + }, + /** Invalidate migrateFile queries */ migrateFile: { + /** Invalidate all migrateFile queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: migrateFileKeys.all, + }), + /** Invalidate migrateFile list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: migrateFileKeys.lists(), + }), + /** Invalidate a specific migrateFile */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: migrateFileKeys.detail(id), + }), + }, + /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { + /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.all, + }), + /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }), + /** Invalidate a specific nodeTypeRegistry */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.detail(id), + }), + }, + /** Invalidate pubkeySetting queries */ pubkeySetting: { + /** Invalidate all pubkeySetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: pubkeySettingKeys.all, + }), + /** Invalidate pubkeySetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: pubkeySettingKeys.lists(), + }), + /** Invalidate a specific pubkeySetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: pubkeySettingKeys.detail(id), + }), + }, + /** Invalidate database queries */ database: { + /** Invalidate all database queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseKeys.all, + }), + /** Invalidate database list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseKeys.lists(), + }), + /** Invalidate a specific database */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: databaseKeys.detail(id), + }), + }, + /** Invalidate rlsSetting queries */ rlsSetting: { + /** Invalidate all rlsSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rlsSettingKeys.all, + }), + /** Invalidate rlsSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rlsSettingKeys.lists(), + }), + /** Invalidate a specific rlsSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: rlsSettingKeys.detail(id), + }), + }, + /** Invalidate sqlAction queries */ sqlAction: { + /** Invalidate all sqlAction queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sqlActionKeys.all, + }), + /** Invalidate sqlAction list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sqlActionKeys.lists(), + }), + /** Invalidate a specific sqlAction */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: sqlActionKeys.detail(id), + }), + }, + /** Invalidate databaseSetting queries */ databaseSetting: { + /** Invalidate all databaseSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseSettingKeys.all, + }), + /** Invalidate databaseSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseSettingKeys.lists(), + }), + /** Invalidate a specific databaseSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseSettingKeys.detail(id), + }), + }, + /** Invalidate webauthnSetting queries */ webauthnSetting: { + /** Invalidate all webauthnSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webauthnSettingKeys.all, + }), + /** Invalidate webauthnSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webauthnSettingKeys.lists(), + }), + /** Invalidate a specific webauthnSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: webauthnSettingKeys.detail(id), + }), + }, + /** Invalidate astMigration queries */ astMigration: { + /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.all, + }), + /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.lists(), + }), + /** Invalidate a specific astMigration */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.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 function from cache */ function: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: functionKeys.detail(id), + }); + }, + /** Remove schema from cache */ schema: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: schemaKeys.detail(id), + }); + }, + /** Remove table from cache */ table: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: tableKeys.detail(id), + }); + }, + /** Remove checkConstraint from cache */ checkConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: checkConstraintKeys.detail(id), + }); + }, + /** Remove field from cache */ field: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: fieldKeys.detail(id), + }); + }, + /** Remove spatialRelation from cache */ spatialRelation: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: spatialRelationKeys.detail(id), + }); + }, + /** Remove foreignKeyConstraint from cache */ foreignKeyConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: foreignKeyConstraintKeys.detail(id), + }); + }, + /** Remove fullTextSearch from cache */ fullTextSearch: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: fullTextSearchKeys.detail(id), + }); + }, + /** Remove index from cache */ index: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: indexKeys.detail(id), + }); + }, + /** Remove policy from cache */ policy: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: policyKeys.detail(id), + }); + }, + /** Remove primaryKeyConstraint from cache */ primaryKeyConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: primaryKeyConstraintKeys.detail(id), + }); + }, + /** Remove tableGrant from cache */ tableGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: tableGrantKeys.detail(id), + }); + }, + /** Remove trigger from cache */ trigger: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: triggerKeys.detail(id), + }); + }, + /** Remove uniqueConstraint from cache */ uniqueConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: uniqueConstraintKeys.detail(id), + }); + }, + /** Remove view from cache */ view: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewKeys.detail(id), + }); + }, + /** Remove viewTable from cache */ viewTable: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewTableKeys.detail(id), + }); + }, + /** Remove viewGrant from cache */ viewGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewGrantKeys.detail(id), + }); + }, + /** Remove viewRule from cache */ viewRule: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewRuleKeys.detail(id), + }); + }, + /** Remove embeddingChunk from cache */ embeddingChunk: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: embeddingChunkKeys.detail(id), + }); + }, + /** Remove schemaGrant from cache */ schemaGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: schemaGrantKeys.detail(id), + }); + }, + /** Remove defaultPrivilege from cache */ defaultPrivilege: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: defaultPrivilegeKeys.detail(id), + }); + }, + /** Remove enum from cache */ enum: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: enumKeys.detail(id), + }); + }, + /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: apiSchemaKeys.detail(id), + }); + }, + /** Remove apiModule from cache */ apiModule: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: apiModuleKeys.detail(id), + }); + }, + /** Remove domain from cache */ domain: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: domainKeys.detail(id), + }); + }, + /** Remove siteMetadatum from cache */ siteMetadatum: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: siteMetadatumKeys.detail(id), + }); + }, + /** Remove siteModule from cache */ siteModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: siteModuleKeys.detail(id), + }); + }, + /** Remove siteTheme from cache */ siteTheme: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: siteThemeKeys.detail(id), + }); + }, + /** Remove corsSetting from cache */ corsSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: corsSettingKeys.detail(id), + }); + }, + /** Remove triggerFunction from cache */ triggerFunction: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: triggerFunctionKeys.detail(id), + }); + }, + /** Remove partition from cache */ partition: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: partitionKeys.detail(id), + }); + }, + /** Remove databaseTransfer from cache */ databaseTransfer: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseTransferKeys.detail(id), + }); + }, + /** Remove api from cache */ api: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: apiKeys.detail(id), + }); + }, + /** Remove site from cache */ site: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: siteKeys.detail(id), + }); + }, + /** Remove app from cache */ app: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appKeys.detail(id), + }); + }, + /** Remove apiSetting from cache */ apiSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: apiSettingKeys.detail(id), + }); + }, + /** Remove migrateFile from cache */ migrateFile: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: migrateFileKeys.detail(id), + }); + }, + /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: nodeTypeRegistryKeys.detail(id), + }); + }, + /** Remove pubkeySetting from cache */ pubkeySetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: pubkeySettingKeys.detail(id), + }); + }, + /** Remove database from cache */ database: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: databaseKeys.detail(id), + }); + }, + /** Remove rlsSetting from cache */ rlsSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: rlsSettingKeys.detail(id), + }); + }, + /** Remove sqlAction from cache */ sqlAction: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: sqlActionKeys.detail(id), + }); + }, + /** Remove databaseSetting from cache */ databaseSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseSettingKeys.detail(id), + }); + }, + /** Remove webauthnSetting from cache */ webauthnSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: webauthnSettingKeys.detail(id), + }); + }, + /** Remove astMigration from cache */ astMigration: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: astMigrationKeys.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 new file mode 100644 index 0000000000..3d83c2b094 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -0,0 +1,514 @@ +/** + * 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 functionMutationKeys = { + /** All function mutation keys */ all: ['mutation', 'function'] as const, + /** Create function mutation key */ create: () => ['mutation', 'function', 'create'] as const, + /** Update function mutation key */ update: (id: string | number) => + ['mutation', 'function', 'update', id] as const, + /** Delete function mutation key */ delete: (id: string | number) => + ['mutation', 'function', 'delete', id] as const, +} as const; +export const schemaMutationKeys = { + /** All schema mutation keys */ all: ['mutation', 'schema'] as const, + /** Create schema mutation key */ create: () => ['mutation', 'schema', 'create'] as const, + /** Update schema mutation key */ update: (id: string | number) => + ['mutation', 'schema', 'update', id] as const, + /** Delete schema mutation key */ delete: (id: string | number) => + ['mutation', 'schema', 'delete', id] as const, +} as const; +export const tableMutationKeys = { + /** All table mutation keys */ all: ['mutation', 'table'] as const, + /** Create table mutation key */ create: () => ['mutation', 'table', 'create'] as const, + /** Update table mutation key */ update: (id: string | number) => + ['mutation', 'table', 'update', id] as const, + /** Delete table mutation key */ delete: (id: string | number) => + ['mutation', 'table', 'delete', id] as const, +} as const; +export const checkConstraintMutationKeys = { + /** All checkConstraint mutation keys */ all: ['mutation', 'checkconstraint'] as const, + /** Create checkConstraint mutation key */ create: () => + ['mutation', 'checkconstraint', 'create'] as const, + /** Update checkConstraint mutation key */ update: (id: string | number) => + ['mutation', 'checkconstraint', 'update', id] as const, + /** Delete checkConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'checkconstraint', 'delete', id] as const, +} as const; +export const fieldMutationKeys = { + /** All field mutation keys */ all: ['mutation', 'field'] as const, + /** Create field mutation key */ create: () => ['mutation', 'field', 'create'] as const, + /** Update field mutation key */ update: (id: string | number) => + ['mutation', 'field', 'update', id] as const, + /** Delete field mutation key */ delete: (id: string | number) => + ['mutation', 'field', 'delete', id] as const, +} as const; +export const spatialRelationMutationKeys = { + /** All spatialRelation mutation keys */ all: ['mutation', 'spatialrelation'] as const, + /** Create spatialRelation mutation key */ create: () => + ['mutation', 'spatialrelation', 'create'] as const, + /** Update spatialRelation mutation key */ update: (id: string | number) => + ['mutation', 'spatialrelation', 'update', id] as const, + /** Delete spatialRelation mutation key */ delete: (id: string | number) => + ['mutation', 'spatialrelation', 'delete', id] as const, +} as const; +export const foreignKeyConstraintMutationKeys = { + /** All foreignKeyConstraint mutation keys */ all: ['mutation', 'foreignkeyconstraint'] as const, + /** Create foreignKeyConstraint mutation key */ create: () => + ['mutation', 'foreignkeyconstraint', 'create'] as const, + /** Update foreignKeyConstraint mutation key */ update: (id: string | number) => + ['mutation', 'foreignkeyconstraint', 'update', id] as const, + /** Delete foreignKeyConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'foreignkeyconstraint', 'delete', id] as const, +} as const; +export const fullTextSearchMutationKeys = { + /** All fullTextSearch mutation keys */ all: ['mutation', 'fulltextsearch'] as const, + /** Create fullTextSearch mutation key */ create: () => + ['mutation', 'fulltextsearch', 'create'] as const, + /** Update fullTextSearch mutation key */ update: (id: string | number) => + ['mutation', 'fulltextsearch', 'update', id] as const, + /** Delete fullTextSearch mutation key */ delete: (id: string | number) => + ['mutation', 'fulltextsearch', 'delete', id] as const, +} as const; +export const indexMutationKeys = { + /** All index mutation keys */ all: ['mutation', 'index'] as const, + /** Create index mutation key */ create: () => ['mutation', 'index', 'create'] as const, + /** Update index mutation key */ update: (id: string | number) => + ['mutation', 'index', 'update', id] as const, + /** Delete index mutation key */ delete: (id: string | number) => + ['mutation', 'index', 'delete', id] as const, +} as const; +export const policyMutationKeys = { + /** All policy mutation keys */ all: ['mutation', 'policy'] as const, + /** Create policy mutation key */ create: () => ['mutation', 'policy', 'create'] as const, + /** Update policy mutation key */ update: (id: string | number) => + ['mutation', 'policy', 'update', id] as const, + /** Delete policy mutation key */ delete: (id: string | number) => + ['mutation', 'policy', 'delete', id] as const, +} as const; +export const primaryKeyConstraintMutationKeys = { + /** All primaryKeyConstraint mutation keys */ all: ['mutation', 'primarykeyconstraint'] as const, + /** Create primaryKeyConstraint mutation key */ create: () => + ['mutation', 'primarykeyconstraint', 'create'] as const, + /** Update primaryKeyConstraint mutation key */ update: (id: string | number) => + ['mutation', 'primarykeyconstraint', 'update', id] as const, + /** Delete primaryKeyConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'primarykeyconstraint', 'delete', id] as const, +} as const; +export const tableGrantMutationKeys = { + /** All tableGrant mutation keys */ all: ['mutation', 'tablegrant'] as const, + /** Create tableGrant mutation key */ create: () => ['mutation', 'tablegrant', 'create'] as const, + /** Update tableGrant mutation key */ update: (id: string | number) => + ['mutation', 'tablegrant', 'update', id] as const, + /** Delete tableGrant mutation key */ delete: (id: string | number) => + ['mutation', 'tablegrant', 'delete', id] as const, +} as const; +export const triggerMutationKeys = { + /** All trigger mutation keys */ all: ['mutation', 'trigger'] as const, + /** Create trigger mutation key */ create: () => ['mutation', 'trigger', 'create'] as const, + /** Update trigger mutation key */ update: (id: string | number) => + ['mutation', 'trigger', 'update', id] as const, + /** Delete trigger mutation key */ delete: (id: string | number) => + ['mutation', 'trigger', 'delete', id] as const, +} as const; +export const uniqueConstraintMutationKeys = { + /** All uniqueConstraint mutation keys */ all: ['mutation', 'uniqueconstraint'] as const, + /** Create uniqueConstraint mutation key */ create: () => + ['mutation', 'uniqueconstraint', 'create'] as const, + /** Update uniqueConstraint mutation key */ update: (id: string | number) => + ['mutation', 'uniqueconstraint', 'update', id] as const, + /** Delete uniqueConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'uniqueconstraint', 'delete', id] as const, +} as const; +export const viewMutationKeys = { + /** All view mutation keys */ all: ['mutation', 'view'] as const, + /** Create view mutation key */ create: () => ['mutation', 'view', 'create'] as const, + /** Update view mutation key */ update: (id: string | number) => + ['mutation', 'view', 'update', id] as const, + /** Delete view mutation key */ delete: (id: string | number) => + ['mutation', 'view', 'delete', id] as const, +} as const; +export const viewTableMutationKeys = { + /** All viewTable mutation keys */ all: ['mutation', 'viewtable'] as const, + /** Create viewTable mutation key */ create: () => ['mutation', 'viewtable', 'create'] as const, + /** Update viewTable mutation key */ update: (id: string | number) => + ['mutation', 'viewtable', 'update', id] as const, + /** Delete viewTable mutation key */ delete: (id: string | number) => + ['mutation', 'viewtable', 'delete', id] as const, +} as const; +export const viewGrantMutationKeys = { + /** All viewGrant mutation keys */ all: ['mutation', 'viewgrant'] as const, + /** Create viewGrant mutation key */ create: () => ['mutation', 'viewgrant', 'create'] as const, + /** Update viewGrant mutation key */ update: (id: string | number) => + ['mutation', 'viewgrant', 'update', id] as const, + /** Delete viewGrant mutation key */ delete: (id: string | number) => + ['mutation', 'viewgrant', 'delete', id] as const, +} as const; +export const viewRuleMutationKeys = { + /** All viewRule mutation keys */ all: ['mutation', 'viewrule'] as const, + /** Create viewRule mutation key */ create: () => ['mutation', 'viewrule', 'create'] as const, + /** Update viewRule mutation key */ update: (id: string | number) => + ['mutation', 'viewrule', 'update', id] as const, + /** Delete viewRule mutation key */ delete: (id: string | number) => + ['mutation', 'viewrule', 'delete', id] as const, +} as const; +export const embeddingChunkMutationKeys = { + /** All embeddingChunk mutation keys */ all: ['mutation', 'embeddingchunk'] as const, + /** Create embeddingChunk mutation key */ create: () => + ['mutation', 'embeddingchunk', 'create'] as const, + /** Update embeddingChunk mutation key */ update: (id: string | number) => + ['mutation', 'embeddingchunk', 'update', id] as const, + /** Delete embeddingChunk mutation key */ delete: (id: string | number) => + ['mutation', 'embeddingchunk', 'delete', id] as const, +} as const; +export const schemaGrantMutationKeys = { + /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'] as const, + /** Create schemaGrant mutation key */ create: () => + ['mutation', 'schemagrant', 'create'] as const, + /** Update schemaGrant mutation key */ update: (id: string | number) => + ['mutation', 'schemagrant', 'update', id] as const, + /** Delete schemaGrant mutation key */ delete: (id: string | number) => + ['mutation', 'schemagrant', 'delete', id] as const, +} as const; +export const defaultPrivilegeMutationKeys = { + /** All defaultPrivilege mutation keys */ all: ['mutation', 'defaultprivilege'] as const, + /** Create defaultPrivilege mutation key */ create: () => + ['mutation', 'defaultprivilege', 'create'] as const, + /** Update defaultPrivilege mutation key */ update: (id: string | number) => + ['mutation', 'defaultprivilege', 'update', id] as const, + /** Delete defaultPrivilege mutation key */ delete: (id: string | number) => + ['mutation', 'defaultprivilege', 'delete', id] as const, +} as const; +export const enumMutationKeys = { + /** All enum mutation keys */ all: ['mutation', 'enum'] as const, + /** Create enum mutation key */ create: () => ['mutation', 'enum', 'create'] as const, + /** Update enum mutation key */ update: (id: string | number) => + ['mutation', 'enum', 'update', id] as const, + /** Delete enum mutation key */ delete: (id: string | number) => + ['mutation', 'enum', 'delete', id] as const, +} as const; +export const apiSchemaMutationKeys = { + /** All apiSchema mutation keys */ all: ['mutation', 'apischema'] as const, + /** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'] as const, + /** Update apiSchema mutation key */ update: (id: string | number) => + ['mutation', 'apischema', 'update', id] as const, + /** Delete apiSchema mutation key */ delete: (id: string | number) => + ['mutation', 'apischema', 'delete', id] as const, +} as const; +export const apiModuleMutationKeys = { + /** All apiModule mutation keys */ all: ['mutation', 'apimodule'] as const, + /** Create apiModule mutation key */ create: () => ['mutation', 'apimodule', 'create'] as const, + /** Update apiModule mutation key */ update: (id: string | number) => + ['mutation', 'apimodule', 'update', id] as const, + /** Delete apiModule mutation key */ delete: (id: string | number) => + ['mutation', 'apimodule', 'delete', id] as const, +} as const; +export const domainMutationKeys = { + /** All domain mutation keys */ all: ['mutation', 'domain'] as const, + /** Create domain mutation key */ create: () => ['mutation', 'domain', 'create'] as const, + /** Update domain mutation key */ update: (id: string | number) => + ['mutation', 'domain', 'update', id] as const, + /** Delete domain mutation key */ delete: (id: string | number) => + ['mutation', 'domain', 'delete', id] as const, +} as const; +export const siteMetadatumMutationKeys = { + /** All siteMetadatum mutation keys */ all: ['mutation', 'sitemetadatum'] as const, + /** Create siteMetadatum mutation key */ create: () => + ['mutation', 'sitemetadatum', 'create'] as const, + /** Update siteMetadatum mutation key */ update: (id: string | number) => + ['mutation', 'sitemetadatum', 'update', id] as const, + /** Delete siteMetadatum mutation key */ delete: (id: string | number) => + ['mutation', 'sitemetadatum', 'delete', id] as const, +} as const; +export const siteModuleMutationKeys = { + /** All siteModule mutation keys */ all: ['mutation', 'sitemodule'] as const, + /** Create siteModule mutation key */ create: () => ['mutation', 'sitemodule', 'create'] as const, + /** Update siteModule mutation key */ update: (id: string | number) => + ['mutation', 'sitemodule', 'update', id] as const, + /** Delete siteModule mutation key */ delete: (id: string | number) => + ['mutation', 'sitemodule', 'delete', id] as const, +} as const; +export const siteThemeMutationKeys = { + /** All siteTheme mutation keys */ all: ['mutation', 'sitetheme'] as const, + /** Create siteTheme mutation key */ create: () => ['mutation', 'sitetheme', 'create'] as const, + /** Update siteTheme mutation key */ update: (id: string | number) => + ['mutation', 'sitetheme', 'update', id] as const, + /** Delete siteTheme mutation key */ delete: (id: string | number) => + ['mutation', 'sitetheme', 'delete', id] as const, +} as const; +export const corsSettingMutationKeys = { + /** All corsSetting mutation keys */ all: ['mutation', 'corssetting'] as const, + /** Create corsSetting mutation key */ create: () => + ['mutation', 'corssetting', 'create'] as const, + /** Update corsSetting mutation key */ update: (id: string | number) => + ['mutation', 'corssetting', 'update', id] as const, + /** Delete corsSetting mutation key */ delete: (id: string | number) => + ['mutation', 'corssetting', 'delete', id] as const, +} as const; +export const triggerFunctionMutationKeys = { + /** All triggerFunction mutation keys */ all: ['mutation', 'triggerfunction'] as const, + /** Create triggerFunction mutation key */ create: () => + ['mutation', 'triggerfunction', 'create'] as const, + /** Update triggerFunction mutation key */ update: (id: string | number) => + ['mutation', 'triggerfunction', 'update', id] as const, + /** Delete triggerFunction mutation key */ delete: (id: string | number) => + ['mutation', 'triggerfunction', 'delete', id] as const, +} as const; +export const partitionMutationKeys = { + /** All partition mutation keys */ all: ['mutation', 'partition'] as const, + /** Create partition mutation key */ create: () => ['mutation', 'partition', 'create'] as const, + /** Update partition mutation key */ update: (id: string | number) => + ['mutation', 'partition', 'update', id] as const, + /** Delete partition mutation key */ delete: (id: string | number) => + ['mutation', 'partition', 'delete', id] as const, +} as const; +export const databaseTransferMutationKeys = { + /** All databaseTransfer mutation keys */ all: ['mutation', 'databasetransfer'] as const, + /** Create databaseTransfer mutation key */ create: () => + ['mutation', 'databasetransfer', 'create'] as const, + /** Update databaseTransfer mutation key */ update: (id: string | number) => + ['mutation', 'databasetransfer', 'update', id] as const, + /** Delete databaseTransfer mutation key */ delete: (id: string | number) => + ['mutation', 'databasetransfer', 'delete', id] as const, +} as const; +export const apiMutationKeys = { + /** All api mutation keys */ all: ['mutation', 'api'] as const, + /** Create api mutation key */ create: () => ['mutation', 'api', 'create'] as const, + /** Update api mutation key */ update: (id: string | number) => + ['mutation', 'api', 'update', id] as const, + /** Delete api mutation key */ delete: (id: string | number) => + ['mutation', 'api', 'delete', id] as const, +} as const; +export const siteMutationKeys = { + /** All site mutation keys */ all: ['mutation', 'site'] as const, + /** Create site mutation key */ create: () => ['mutation', 'site', 'create'] as const, + /** Update site mutation key */ update: (id: string | number) => + ['mutation', 'site', 'update', id] as const, + /** Delete site mutation key */ delete: (id: string | number) => + ['mutation', 'site', 'delete', id] as const, +} as const; +export const appMutationKeys = { + /** All app mutation keys */ all: ['mutation', 'app'] as const, + /** Create app mutation key */ create: () => ['mutation', 'app', 'create'] as const, + /** Update app mutation key */ update: (id: string | number) => + ['mutation', 'app', 'update', id] as const, + /** Delete app mutation key */ delete: (id: string | number) => + ['mutation', 'app', 'delete', id] as const, +} as const; +export const apiSettingMutationKeys = { + /** All apiSetting mutation keys */ all: ['mutation', 'apisetting'] as const, + /** Create apiSetting mutation key */ create: () => ['mutation', 'apisetting', 'create'] as const, + /** Update apiSetting mutation key */ update: (id: string | number) => + ['mutation', 'apisetting', 'update', id] as const, + /** Delete apiSetting mutation key */ delete: (id: string | number) => + ['mutation', 'apisetting', 'delete', id] as const, +} as const; +export const migrateFileMutationKeys = { + /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'] as const, + /** Create migrateFile mutation key */ create: () => + ['mutation', 'migratefile', 'create'] as const, + /** Update migrateFile mutation key */ update: (id: string | number) => + ['mutation', 'migratefile', 'update', id] as const, + /** Delete migrateFile mutation key */ delete: (id: string | number) => + ['mutation', 'migratefile', 'delete', id] as const, +} as const; +export const nodeTypeRegistryMutationKeys = { + /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, + /** Create nodeTypeRegistry mutation key */ create: () => + ['mutation', 'nodetyperegistry', 'create'] as const, + /** Update nodeTypeRegistry mutation key */ update: (id: string | number) => + ['mutation', 'nodetyperegistry', 'update', id] as const, + /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => + ['mutation', 'nodetyperegistry', 'delete', id] as const, +} as const; +export const pubkeySettingMutationKeys = { + /** All pubkeySetting mutation keys */ all: ['mutation', 'pubkeysetting'] as const, + /** Create pubkeySetting mutation key */ create: () => + ['mutation', 'pubkeysetting', 'create'] as const, + /** Update pubkeySetting mutation key */ update: (id: string | number) => + ['mutation', 'pubkeysetting', 'update', id] as const, + /** Delete pubkeySetting mutation key */ delete: (id: string | number) => + ['mutation', 'pubkeysetting', 'delete', id] as const, +} as const; +export const databaseMutationKeys = { + /** All database mutation keys */ all: ['mutation', 'database'] as const, + /** Create database mutation key */ create: () => ['mutation', 'database', 'create'] as const, + /** Update database mutation key */ update: (id: string | number) => + ['mutation', 'database', 'update', id] as const, + /** Delete database mutation key */ delete: (id: string | number) => + ['mutation', 'database', 'delete', id] as const, +} as const; +export const rlsSettingMutationKeys = { + /** All rlsSetting mutation keys */ all: ['mutation', 'rlssetting'] as const, + /** Create rlsSetting mutation key */ create: () => ['mutation', 'rlssetting', 'create'] as const, + /** Update rlsSetting mutation key */ update: (id: string | number) => + ['mutation', 'rlssetting', 'update', id] as const, + /** Delete rlsSetting mutation key */ delete: (id: string | number) => + ['mutation', 'rlssetting', 'delete', id] as const, +} as const; +export const sqlActionMutationKeys = { + /** All sqlAction mutation keys */ all: ['mutation', 'sqlaction'] as const, + /** Create sqlAction mutation key */ create: () => ['mutation', 'sqlaction', 'create'] as const, + /** Update sqlAction mutation key */ update: (id: string | number) => + ['mutation', 'sqlaction', 'update', id] as const, + /** Delete sqlAction mutation key */ delete: (id: string | number) => + ['mutation', 'sqlaction', 'delete', id] as const, +} as const; +export const databaseSettingMutationKeys = { + /** All databaseSetting mutation keys */ all: ['mutation', 'databasesetting'] as const, + /** Create databaseSetting mutation key */ create: () => + ['mutation', 'databasesetting', 'create'] as const, + /** Update databaseSetting mutation key */ update: (id: string | number) => + ['mutation', 'databasesetting', 'update', id] as const, + /** 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: () => + ['mutation', 'astmigration', 'create'] as const, + /** Update astMigration mutation key */ update: (id: string | number) => + ['mutation', 'astmigration', 'update', id] as const, + /** Delete astMigration mutation key */ delete: (id: string | number) => + ['mutation', 'astmigration', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for acceptDatabaseTransfer */ acceptDatabaseTransfer: (identifier?: string) => + identifier + ? (['mutation', 'acceptDatabaseTransfer', identifier] as const) + : (['mutation', 'acceptDatabaseTransfer'] as const), + /** Mutation key for cancelDatabaseTransfer */ cancelDatabaseTransfer: (identifier?: string) => + identifier + ? (['mutation', 'cancelDatabaseTransfer', identifier] as const) + : (['mutation', 'cancelDatabaseTransfer'] as const), + /** Mutation key for rejectDatabaseTransfer */ rejectDatabaseTransfer: (identifier?: string) => + 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) + : (['mutation', 'setFieldOrder'] as const), + /** Mutation key for applyRls */ applyRls: (identifier?: string) => + identifier + ? (['mutation', 'applyRls', identifier] as const) + : (['mutation', 'applyRls'] as const), + /** Mutation key for createUserDatabase */ createUserDatabase: (identifier?: string) => + identifier + ? (['mutation', 'createUserDatabase', identifier] as const) + : (['mutation', 'createUserDatabase'] 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 = { + function: functionMutationKeys, + schema: schemaMutationKeys, + table: tableMutationKeys, + checkConstraint: checkConstraintMutationKeys, + field: fieldMutationKeys, + spatialRelation: spatialRelationMutationKeys, + foreignKeyConstraint: foreignKeyConstraintMutationKeys, + fullTextSearch: fullTextSearchMutationKeys, + index: indexMutationKeys, + policy: policyMutationKeys, + primaryKeyConstraint: primaryKeyConstraintMutationKeys, + tableGrant: tableGrantMutationKeys, + trigger: triggerMutationKeys, + uniqueConstraint: uniqueConstraintMutationKeys, + view: viewMutationKeys, + viewTable: viewTableMutationKeys, + viewGrant: viewGrantMutationKeys, + viewRule: viewRuleMutationKeys, + embeddingChunk: embeddingChunkMutationKeys, + schemaGrant: schemaGrantMutationKeys, + defaultPrivilege: defaultPrivilegeMutationKeys, + enum: enumMutationKeys, + apiSchema: apiSchemaMutationKeys, + apiModule: apiModuleMutationKeys, + domain: domainMutationKeys, + siteMetadatum: siteMetadatumMutationKeys, + siteModule: siteModuleMutationKeys, + siteTheme: siteThemeMutationKeys, + corsSetting: corsSettingMutationKeys, + triggerFunction: triggerFunctionMutationKeys, + partition: partitionMutationKeys, + databaseTransfer: databaseTransferMutationKeys, + api: apiMutationKeys, + site: siteMutationKeys, + app: appMutationKeys, + apiSetting: apiSettingMutationKeys, + migrateFile: migrateFileMutationKeys, + nodeTypeRegistry: nodeTypeRegistryMutationKeys, + pubkeySetting: pubkeySettingMutationKeys, + database: databaseMutationKeys, + rlsSetting: rlsSettingMutationKeys, + sqlAction: sqlActionMutationKeys, + databaseSetting: databaseSettingMutationKeys, + webauthnSetting: webauthnSettingMutationKeys, + astMigration: astMigrationMutationKeys, + 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 new file mode 100644 index 0000000000..fef44ee08a --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -0,0 +1,143 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateFunctionMutation'; +export * from './useUpdateFunctionMutation'; +export * from './useDeleteFunctionMutation'; +export * from './useCreateSchemaMutation'; +export * from './useUpdateSchemaMutation'; +export * from './useDeleteSchemaMutation'; +export * from './useCreateTableMutation'; +export * from './useUpdateTableMutation'; +export * from './useDeleteTableMutation'; +export * from './useCreateCheckConstraintMutation'; +export * from './useUpdateCheckConstraintMutation'; +export * from './useDeleteCheckConstraintMutation'; +export * from './useCreateFieldMutation'; +export * from './useUpdateFieldMutation'; +export * from './useDeleteFieldMutation'; +export * from './useCreateSpatialRelationMutation'; +export * from './useUpdateSpatialRelationMutation'; +export * from './useDeleteSpatialRelationMutation'; +export * from './useCreateForeignKeyConstraintMutation'; +export * from './useUpdateForeignKeyConstraintMutation'; +export * from './useDeleteForeignKeyConstraintMutation'; +export * from './useCreateFullTextSearchMutation'; +export * from './useUpdateFullTextSearchMutation'; +export * from './useDeleteFullTextSearchMutation'; +export * from './useCreateIndexMutation'; +export * from './useUpdateIndexMutation'; +export * from './useDeleteIndexMutation'; +export * from './useCreatePolicyMutation'; +export * from './useUpdatePolicyMutation'; +export * from './useDeletePolicyMutation'; +export * from './useCreatePrimaryKeyConstraintMutation'; +export * from './useUpdatePrimaryKeyConstraintMutation'; +export * from './useDeletePrimaryKeyConstraintMutation'; +export * from './useCreateTableGrantMutation'; +export * from './useUpdateTableGrantMutation'; +export * from './useDeleteTableGrantMutation'; +export * from './useCreateTriggerMutation'; +export * from './useUpdateTriggerMutation'; +export * from './useDeleteTriggerMutation'; +export * from './useCreateUniqueConstraintMutation'; +export * from './useUpdateUniqueConstraintMutation'; +export * from './useDeleteUniqueConstraintMutation'; +export * from './useCreateViewMutation'; +export * from './useUpdateViewMutation'; +export * from './useDeleteViewMutation'; +export * from './useCreateViewTableMutation'; +export * from './useUpdateViewTableMutation'; +export * from './useDeleteViewTableMutation'; +export * from './useCreateViewGrantMutation'; +export * from './useUpdateViewGrantMutation'; +export * from './useDeleteViewGrantMutation'; +export * from './useCreateViewRuleMutation'; +export * from './useUpdateViewRuleMutation'; +export * from './useDeleteViewRuleMutation'; +export * from './useCreateEmbeddingChunkMutation'; +export * from './useUpdateEmbeddingChunkMutation'; +export * from './useDeleteEmbeddingChunkMutation'; +export * from './useCreateSchemaGrantMutation'; +export * from './useUpdateSchemaGrantMutation'; +export * from './useDeleteSchemaGrantMutation'; +export * from './useCreateDefaultPrivilegeMutation'; +export * from './useUpdateDefaultPrivilegeMutation'; +export * from './useDeleteDefaultPrivilegeMutation'; +export * from './useCreateEnumMutation'; +export * from './useUpdateEnumMutation'; +export * from './useDeleteEnumMutation'; +export * from './useCreateApiSchemaMutation'; +export * from './useUpdateApiSchemaMutation'; +export * from './useDeleteApiSchemaMutation'; +export * from './useCreateApiModuleMutation'; +export * from './useUpdateApiModuleMutation'; +export * from './useDeleteApiModuleMutation'; +export * from './useCreateDomainMutation'; +export * from './useUpdateDomainMutation'; +export * from './useDeleteDomainMutation'; +export * from './useCreateSiteMetadatumMutation'; +export * from './useUpdateSiteMetadatumMutation'; +export * from './useDeleteSiteMetadatumMutation'; +export * from './useCreateSiteModuleMutation'; +export * from './useUpdateSiteModuleMutation'; +export * from './useDeleteSiteModuleMutation'; +export * from './useCreateSiteThemeMutation'; +export * from './useUpdateSiteThemeMutation'; +export * from './useDeleteSiteThemeMutation'; +export * from './useCreateCorsSettingMutation'; +export * from './useUpdateCorsSettingMutation'; +export * from './useDeleteCorsSettingMutation'; +export * from './useCreateTriggerFunctionMutation'; +export * from './useUpdateTriggerFunctionMutation'; +export * from './useDeleteTriggerFunctionMutation'; +export * from './useCreatePartitionMutation'; +export * from './useUpdatePartitionMutation'; +export * from './useDeletePartitionMutation'; +export * from './useCreateDatabaseTransferMutation'; +export * from './useUpdateDatabaseTransferMutation'; +export * from './useDeleteDatabaseTransferMutation'; +export * from './useCreateApiMutation'; +export * from './useUpdateApiMutation'; +export * from './useDeleteApiMutation'; +export * from './useCreateSiteMutation'; +export * from './useUpdateSiteMutation'; +export * from './useDeleteSiteMutation'; +export * from './useCreateAppMutation'; +export * from './useUpdateAppMutation'; +export * from './useDeleteAppMutation'; +export * from './useCreateApiSettingMutation'; +export * from './useUpdateApiSettingMutation'; +export * from './useDeleteApiSettingMutation'; +export * from './useCreateMigrateFileMutation'; +export * from './useCreateNodeTypeRegistryMutation'; +export * from './useUpdateNodeTypeRegistryMutation'; +export * from './useDeleteNodeTypeRegistryMutation'; +export * from './useCreatePubkeySettingMutation'; +export * from './useUpdatePubkeySettingMutation'; +export * from './useDeletePubkeySettingMutation'; +export * from './useCreateDatabaseMutation'; +export * from './useUpdateDatabaseMutation'; +export * from './useDeleteDatabaseMutation'; +export * from './useCreateRlsSettingMutation'; +export * from './useUpdateRlsSettingMutation'; +export * from './useDeleteRlsSettingMutation'; +export * from './useCreateSqlActionMutation'; +export * from './useCreateDatabaseSettingMutation'; +export * from './useUpdateDatabaseSettingMutation'; +export * from './useDeleteDatabaseSettingMutation'; +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 './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useAcceptDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useAcceptDatabaseTransferMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useAcceptDatabaseTransferMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useAcceptDatabaseTransferMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useApplyRlsMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useApplyRlsMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useApplyRlsMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useApplyRlsMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useBootstrapUserMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useBootstrapUserMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useBootstrapUserMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useBootstrapUserMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCancelDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCancelDatabaseTransferMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCancelDatabaseTransferMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCancelDatabaseTransferMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateApiModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateApiModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateApiMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateApiMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateApiSchemaMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateApiSchemaMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateApiSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateApiSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateApiSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateAppMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateAppMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAstMigrationMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateAstMigrationMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateCheckConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateCheckConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCorsSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateCorsSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateCorsSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateCorsSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateDatabaseMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateDatabaseMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateDatabaseSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateDatabaseSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateDatabaseTransferMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseTransferMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateDatabaseTransferMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateDefaultPrivilegeMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultPrivilegeMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateDefaultPrivilegeMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateDomainMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateDomainMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmbeddingChunkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateEmbeddingChunkMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateEmbeddingChunkMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateEmbeddingChunkMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEnumMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateEnumMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateEnumMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateEnumMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateFieldMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateFieldMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateFieldMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateFieldMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateForeignKeyConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateForeignKeyConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateFullTextSearchMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateFullTextSearchMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateFunctionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateFunctionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateFunctionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateFunctionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateIndexMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateIndexMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateIndexMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateIndexMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMigrateFileMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateMigrateFileMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateMigrateFileMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateMigrateFileMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateNodeTypeRegistryMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateNodeTypeRegistryMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePartitionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePartitionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreatePartitionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreatePartitionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePolicyMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePolicyMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreatePolicyMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreatePolicyMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePubkeySettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePubkeySettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreatePubkeySettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreatePubkeySettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRlsSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateRlsSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateRlsSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateRlsSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSchemaGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSchemaGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSchemaMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSchemaMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteMetadatumMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSiteMetadatumMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSiteModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSiteMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSiteThemeMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSiteThemeMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSpatialRelationMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSpatialRelationMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSpatialRelationMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSpatialRelationMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSqlActionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSqlActionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTableGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateTableGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateTableGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateTableGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTableMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateTableMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateTableMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateTableMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateTriggerFunctionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateTriggerFunctionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateTriggerMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateTriggerMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateUniqueConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateUniqueConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateUserDatabaseMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateUserDatabaseMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateViewGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateViewGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateViewGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateViewMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateViewMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateViewMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateViewRuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateViewRuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateViewTableMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateViewTableMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateWebauthnSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useCreateWebauthnSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteApiModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteApiModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteApiMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteApiMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteApiSchemaMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteApiSchemaMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteApiSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteApiSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteAppMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteAppMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteCheckConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteCheckConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCorsSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteCorsSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteCorsSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteCorsSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteDatabaseMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteDatabaseMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteDatabaseSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteDatabaseSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteDatabaseTransferMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseTransferMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteDatabaseTransferMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteDefaultPrivilegeMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteDomainMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteDomainMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmbeddingChunkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEmbeddingChunkMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteEmbeddingChunkMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteEmbeddingChunkMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEnumMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteEnumMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteEnumMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteEnumMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteFieldMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteFieldMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteFullTextSearchMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteFullTextSearchMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteFunctionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteFunctionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteFunctionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteFunctionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteIndexMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteIndexMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteIndexMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteIndexMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePartitionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePartitionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeletePartitionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeletePartitionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePolicyMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePolicyMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeletePolicyMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeletePolicyMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePubkeySettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePubkeySettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeletePubkeySettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeletePubkeySettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteRlsSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteRlsSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSchemaGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteSchemaGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSchemaMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteSchemaMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteMetadatumMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteMetadatumMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteThemeMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteSiteThemeMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSpatialRelationMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteSpatialRelationMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSpatialRelationMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteSpatialRelationMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteTableGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteTableGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteTableGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteTableMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteTableMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteTableMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteTriggerFunctionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteTriggerFunctionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteTriggerMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteTriggerMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteUniqueConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteUniqueConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteViewGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteViewGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteViewGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteViewMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteViewMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteViewMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteViewRuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteViewRuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteViewTableMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteViewTableMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteWebauthnSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useDeleteWebauthnSettingMutation.ts diff --git a/sdk/constructive-react/src/api/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useProvisionBucketMutation.ts new file mode 100644 index 0000000000..2613680e69 --- /dev/null +++ b/sdk/constructive-react/src/api/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/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useProvisionDatabaseWithUserMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useProvisionDatabaseWithUserMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useRejectDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useRejectDatabaseTransferMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useRejectDatabaseTransferMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useRejectDatabaseTransferMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSetFieldOrderMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useSetFieldOrderMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useSetFieldOrderMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useSetFieldOrderMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateApiModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateApiModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateApiMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateApiMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateApiSchemaMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateApiSchemaMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateApiSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateApiSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateAppMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateAppMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateCheckConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateCheckConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCorsSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateCorsSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateCorsSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateCorsSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateDatabaseMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateDatabaseMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateDatabaseSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateDatabaseSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseTransferMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateDatabaseTransferMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseTransferMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateDatabaseTransferMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateDefaultPrivilegeMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateDomainMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateDomainMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmbeddingChunkMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEmbeddingChunkMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateEmbeddingChunkMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateEmbeddingChunkMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEnumMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateEnumMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateEnumMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateEnumMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateFieldMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateFieldMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateFullTextSearchMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateFullTextSearchMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateFunctionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateFunctionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateFunctionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateFunctionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateIndexMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateIndexMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateIndexMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateIndexMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePartitionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePartitionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdatePartitionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdatePartitionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePolicyMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePolicyMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdatePolicyMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdatePolicyMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePubkeySettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePubkeySettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdatePubkeySettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdatePubkeySettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateRlsSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateRlsSettingMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSchemaGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateSchemaGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSchemaMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateSchemaMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteMetadatumMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteMetadatumMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteThemeMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateSiteThemeMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSpatialRelationMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateSpatialRelationMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSpatialRelationMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateSpatialRelationMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateTableGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateTableGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateTableGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateTableMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateTableMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateTableMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateTriggerFunctionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateTriggerFunctionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateTriggerMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateTriggerMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateUniqueConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateUniqueConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewGrantMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateViewGrantMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateViewGrantMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateViewGrantMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateViewMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateViewMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateViewMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateViewRuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateViewRuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateViewTableMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateViewTableMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnSettingMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateWebauthnSettingMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnSettingMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useUpdateWebauthnSettingMutation.ts diff --git a/sdk/constructive-react/src/api/hooks/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts new file mode 100644 index 0000000000..809a0536e3 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -0,0 +1,96 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useFunctionsQuery'; +export * from './useFunctionQuery'; +export * from './useSchemasQuery'; +export * from './useSchemaQuery'; +export * from './useTablesQuery'; +export * from './useTableQuery'; +export * from './useCheckConstraintsQuery'; +export * from './useCheckConstraintQuery'; +export * from './useFieldsQuery'; +export * from './useFieldQuery'; +export * from './useSpatialRelationsQuery'; +export * from './useSpatialRelationQuery'; +export * from './useForeignKeyConstraintsQuery'; +export * from './useForeignKeyConstraintQuery'; +export * from './useFullTextSearchesQuery'; +export * from './useFullTextSearchQuery'; +export * from './useIndicesQuery'; +export * from './useIndexQuery'; +export * from './usePoliciesQuery'; +export * from './usePolicyQuery'; +export * from './usePrimaryKeyConstraintsQuery'; +export * from './usePrimaryKeyConstraintQuery'; +export * from './useTableGrantsQuery'; +export * from './useTableGrantQuery'; +export * from './useTriggersQuery'; +export * from './useTriggerQuery'; +export * from './useUniqueConstraintsQuery'; +export * from './useUniqueConstraintQuery'; +export * from './useViewsQuery'; +export * from './useViewQuery'; +export * from './useViewTablesQuery'; +export * from './useViewTableQuery'; +export * from './useViewGrantsQuery'; +export * from './useViewGrantQuery'; +export * from './useViewRulesQuery'; +export * from './useViewRuleQuery'; +export * from './useEmbeddingChunksQuery'; +export * from './useEmbeddingChunkQuery'; +export * from './useSchemaGrantsQuery'; +export * from './useSchemaGrantQuery'; +export * from './useDefaultPrivilegesQuery'; +export * from './useDefaultPrivilegeQuery'; +export * from './useEnumsQuery'; +export * from './useEnumQuery'; +export * from './useApiSchemasQuery'; +export * from './useApiSchemaQuery'; +export * from './useApiModulesQuery'; +export * from './useApiModuleQuery'; +export * from './useDomainsQuery'; +export * from './useDomainQuery'; +export * from './useSiteMetadataQuery'; +export * from './useSiteMetadatumQuery'; +export * from './useSiteModulesQuery'; +export * from './useSiteModuleQuery'; +export * from './useSiteThemesQuery'; +export * from './useSiteThemeQuery'; +export * from './useCorsSettingsQuery'; +export * from './useCorsSettingQuery'; +export * from './useTriggerFunctionsQuery'; +export * from './useTriggerFunctionQuery'; +export * from './usePartitionsQuery'; +export * from './usePartitionQuery'; +export * from './useDatabaseTransfersQuery'; +export * from './useDatabaseTransferQuery'; +export * from './useApisQuery'; +export * from './useApiQuery'; +export * from './useSitesQuery'; +export * from './useSiteQuery'; +export * from './useAppsQuery'; +export * from './useAppQuery'; +export * from './useApiSettingsQuery'; +export * from './useApiSettingQuery'; +export * from './useMigrateFilesQuery'; +export * from './useMigrateFileQuery'; +export * from './useNodeTypeRegistriesQuery'; +export * from './useNodeTypeRegistryQuery'; +export * from './usePubkeySettingsQuery'; +export * from './usePubkeySettingQuery'; +export * from './useDatabasesQuery'; +export * from './useDatabaseQuery'; +export * from './useRlsSettingsQuery'; +export * from './useRlsSettingQuery'; +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 './useApplyRegistryDefaultsQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApiModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApiModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApiQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiSchemaQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApiSchemaQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiSchemasQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApiSchemasQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSettingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiSettingQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApiSettingQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApiSettingQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSettingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiSettingsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApiSettingsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApiSettingsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApisQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApisQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAppQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useAppQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useApplyRegistryDefaultsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApplyRegistryDefaultsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useApplyRegistryDefaultsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useApplyRegistryDefaultsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAppsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useAppsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAstMigrationQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAstMigrationQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useAstMigrationQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useAstMigrationQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAstMigrationsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useAstMigrationsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useAstMigrationsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useAstMigrationsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useCheckConstraintQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCheckConstraintQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useCheckConstraintQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useCheckConstraintsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCheckConstraintsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useCheckConstraintsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCorsSettingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useCorsSettingQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCorsSettingQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useCorsSettingQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCorsSettingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useCorsSettingsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCorsSettingsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useCorsSettingsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDatabaseQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabaseQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDatabaseQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseSettingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDatabaseSettingQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabaseSettingQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDatabaseSettingQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseSettingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDatabaseSettingsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabaseSettingsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDatabaseSettingsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransferQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDatabaseTransferQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabaseTransferQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDatabaseTransferQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransfersQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDatabaseTransfersQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabaseTransfersQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDatabaseTransfersQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabasesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDatabasesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabasesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDatabasesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDefaultPrivilegeQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegeQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDefaultPrivilegeQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDefaultPrivilegesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDefaultPrivilegesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDefaultPrivilegesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDomainQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDomainQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useDomainsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useDomainsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunkQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmbeddingChunkQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunkQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useEmbeddingChunkQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunksQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEmbeddingChunksQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunksQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useEmbeddingChunksQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEnumQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEnumQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEnumQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useEnumQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEnumsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useEnumsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEnumsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useEnumsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFieldQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useFieldQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFieldQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useFieldQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFieldsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useFieldsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFieldsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useFieldsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useForeignKeyConstraintQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useForeignKeyConstraintQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useForeignKeyConstraintsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useForeignKeyConstraintsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useFullTextSearchQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFullTextSearchQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useFullTextSearchQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useFullTextSearchesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFullTextSearchesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useFullTextSearchesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFunctionQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useFunctionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFunctionQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useFunctionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFunctionsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useFunctionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFunctionsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useFunctionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useIndexQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useIndexQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useIndexQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useIndexQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useIndicesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useIndicesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useIndicesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useIndicesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMigrateFileQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useMigrateFileQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMigrateFileQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useMigrateFileQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMigrateFilesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useMigrateFilesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMigrateFilesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useMigrateFilesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useNodeTypeRegistriesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useNodeTypeRegistriesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useNodeTypeRegistryQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useNodeTypeRegistryQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePartitionQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePartitionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePartitionQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePartitionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePartitionsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePartitionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePartitionsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePartitionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePoliciesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePoliciesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePoliciesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePoliciesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePolicyQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePolicyQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePolicyQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePolicyQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePrimaryKeyConstraintQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePrimaryKeyConstraintQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePrimaryKeyConstraintsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePrimaryKeyConstraintsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePubkeySettingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePubkeySettingQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePubkeySettingQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePubkeySettingQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePubkeySettingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePubkeySettingsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePubkeySettingsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/usePubkeySettingsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRlsSettingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useRlsSettingQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRlsSettingQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useRlsSettingQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRlsSettingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useRlsSettingsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRlsSettingsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useRlsSettingsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSchemaGrantQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSchemaGrantQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSchemaGrantQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSchemaGrantsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSchemaGrantsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSchemaGrantsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemaQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSchemaQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSchemaQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSchemaQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemasQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSchemasQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSchemasQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSchemasQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteMetadataQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSiteMetadataQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteMetadatumQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSiteMetadatumQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSiteModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSiteModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSiteQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteThemeQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSiteThemeQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSiteThemesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSiteThemesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSitesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSitesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSpatialRelationQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSpatialRelationQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSpatialRelationQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSpatialRelationQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSpatialRelationsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSpatialRelationsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSpatialRelationsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSpatialRelationsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSqlActionQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSqlActionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSqlActionQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSqlActionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSqlActionsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useSqlActionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSqlActionsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useSqlActionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableGrantQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTableGrantQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTableGrantQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTableGrantQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableGrantsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTableGrantsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTableGrantsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTableGrantsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTableQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTableQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTableQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTablesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTablesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTablesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTablesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTriggerFunctionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTriggerFunctionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTriggerFunctionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTriggerFunctionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggerQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTriggerQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTriggerQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTriggerQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggersQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useTriggersQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTriggersQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useTriggersQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useUniqueConstraintQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useUniqueConstraintQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useUniqueConstraintsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useUniqueConstraintsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewGrantQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewGrantQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewGrantQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewGrantQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewGrantsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewGrantsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewGrantsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewGrantsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewRuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewRuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewRulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewRulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewTableQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewTableQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewTablesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewTablesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useViewsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useViewsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useViewsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnSettingQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useWebauthnSettingQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useWebauthnSettingQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useWebauthnSettingQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnSettingsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useWebauthnSettingsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useWebauthnSettingsQuery.ts rename to sdk/constructive-react/src/api/hooks/queries/useWebauthnSettingsQuery.ts diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts new file mode 100644 index 0000000000..459e39cdbc --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -0,0 +1,507 @@ +/** + * 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 functionKeys = { + /** All function queries */ all: ['function'] as const, + /** List query keys */ lists: () => [...functionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...functionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...functionKeys.details(), id] as const, +} as const; +export const schemaKeys = { + /** All schema queries */ all: ['schema'] as const, + /** List query keys */ lists: () => [...schemaKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...schemaKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...schemaKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...schemaKeys.details(), id] as const, +} as const; +export const tableKeys = { + /** All table queries */ all: ['table'] as const, + /** List query keys */ lists: () => [...tableKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...tableKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...tableKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...tableKeys.details(), id] as const, +} as const; +export const checkConstraintKeys = { + /** All checkConstraint queries */ all: ['checkconstraint'] as const, + /** List query keys */ lists: () => [...checkConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...checkConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...checkConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...checkConstraintKeys.details(), id] as const, +} as const; +export const fieldKeys = { + /** All field queries */ all: ['field'] as const, + /** List query keys */ lists: () => [...fieldKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...fieldKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...fieldKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...fieldKeys.details(), id] as const, +} as const; +export const spatialRelationKeys = { + /** All spatialRelation queries */ all: ['spatialrelation'] as const, + /** List query keys */ lists: () => [...spatialRelationKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...spatialRelationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...spatialRelationKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...spatialRelationKeys.details(), id] as const, +} as const; +export const foreignKeyConstraintKeys = { + /** All foreignKeyConstraint queries */ all: ['foreignkeyconstraint'] as const, + /** List query keys */ lists: () => [...foreignKeyConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...foreignKeyConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...foreignKeyConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...foreignKeyConstraintKeys.details(), id] as const, +} as const; +export const fullTextSearchKeys = { + /** All fullTextSearch queries */ all: ['fulltextsearch'] as const, + /** List query keys */ lists: () => [...fullTextSearchKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...fullTextSearchKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...fullTextSearchKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...fullTextSearchKeys.details(), id] as const, +} as const; +export const indexKeys = { + /** All index queries */ all: ['index'] as const, + /** List query keys */ lists: () => [...indexKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...indexKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...indexKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...indexKeys.details(), id] as const, +} as const; +export const policyKeys = { + /** All policy queries */ all: ['policy'] as const, + /** List query keys */ lists: () => [...policyKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...policyKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...policyKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...policyKeys.details(), id] as const, +} as const; +export const primaryKeyConstraintKeys = { + /** All primaryKeyConstraint queries */ all: ['primarykeyconstraint'] as const, + /** List query keys */ lists: () => [...primaryKeyConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...primaryKeyConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...primaryKeyConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...primaryKeyConstraintKeys.details(), id] as const, +} as const; +export const tableGrantKeys = { + /** All tableGrant queries */ all: ['tablegrant'] as const, + /** List query keys */ lists: () => [...tableGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...tableGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...tableGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...tableGrantKeys.details(), id] as const, +} as const; +export const triggerKeys = { + /** All trigger queries */ all: ['trigger'] as const, + /** List query keys */ lists: () => [...triggerKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...triggerKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...triggerKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...triggerKeys.details(), id] as const, +} as const; +export const uniqueConstraintKeys = { + /** All uniqueConstraint queries */ all: ['uniqueconstraint'] as const, + /** List query keys */ lists: () => [...uniqueConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...uniqueConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...uniqueConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...uniqueConstraintKeys.details(), id] as const, +} as const; +export const viewKeys = { + /** All view queries */ all: ['view'] as const, + /** List query keys */ lists: () => [...viewKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewKeys.details(), id] as const, +} as const; +export const viewTableKeys = { + /** All viewTable queries */ all: ['viewtable'] as const, + /** List query keys */ lists: () => [...viewTableKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewTableKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewTableKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewTableKeys.details(), id] as const, +} as const; +export const viewGrantKeys = { + /** All viewGrant queries */ all: ['viewgrant'] as const, + /** List query keys */ lists: () => [...viewGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewGrantKeys.details(), id] as const, +} as const; +export const viewRuleKeys = { + /** All viewRule queries */ all: ['viewrule'] as const, + /** List query keys */ lists: () => [...viewRuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewRuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewRuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewRuleKeys.details(), id] as const, +} as const; +export const embeddingChunkKeys = { + /** All embeddingChunk queries */ all: ['embeddingchunk'] as const, + /** List query keys */ lists: () => [...embeddingChunkKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...embeddingChunkKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...embeddingChunkKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...embeddingChunkKeys.details(), id] as const, +} as const; +export const schemaGrantKeys = { + /** All schemaGrant queries */ all: ['schemagrant'] as const, + /** List query keys */ lists: () => [...schemaGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...schemaGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...schemaGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...schemaGrantKeys.details(), id] as const, +} as const; +export const defaultPrivilegeKeys = { + /** All defaultPrivilege queries */ all: ['defaultprivilege'] as const, + /** List query keys */ lists: () => [...defaultPrivilegeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...defaultPrivilegeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...defaultPrivilegeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...defaultPrivilegeKeys.details(), id] as const, +} as const; +export const enumKeys = { + /** All enum queries */ all: ['enum'] as const, + /** List query keys */ lists: () => [...enumKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...enumKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...enumKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...enumKeys.details(), id] as const, +} as const; +export const apiSchemaKeys = { + /** All apiSchema queries */ all: ['apischema'] as const, + /** List query keys */ lists: () => [...apiSchemaKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...apiSchemaKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiSchemaKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiSchemaKeys.details(), id] as const, +} as const; +export const apiModuleKeys = { + /** All apiModule queries */ all: ['apimodule'] as const, + /** List query keys */ lists: () => [...apiModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...apiModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiModuleKeys.details(), id] as const, +} as const; +export const domainKeys = { + /** All domain queries */ all: ['domain'] as const, + /** List query keys */ lists: () => [...domainKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...domainKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...domainKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...domainKeys.details(), id] as const, +} as const; +export const siteMetadatumKeys = { + /** All siteMetadatum queries */ all: ['sitemetadatum'] as const, + /** List query keys */ lists: () => [...siteMetadatumKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteMetadatumKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteMetadatumKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteMetadatumKeys.details(), id] as const, +} as const; +export const siteModuleKeys = { + /** All siteModule queries */ all: ['sitemodule'] as const, + /** List query keys */ lists: () => [...siteModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteModuleKeys.details(), id] as const, +} as const; +export const siteThemeKeys = { + /** All siteTheme queries */ all: ['sitetheme'] as const, + /** List query keys */ lists: () => [...siteThemeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteThemeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteThemeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteThemeKeys.details(), id] as const, +} as const; +export const corsSettingKeys = { + /** All corsSetting queries */ all: ['corssetting'] as const, + /** List query keys */ lists: () => [...corsSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...corsSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...corsSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...corsSettingKeys.details(), id] as const, +} as const; +export const triggerFunctionKeys = { + /** All triggerFunction queries */ all: ['triggerfunction'] as const, + /** List query keys */ lists: () => [...triggerFunctionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...triggerFunctionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...triggerFunctionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...triggerFunctionKeys.details(), id] as const, +} as const; +export const partitionKeys = { + /** All partition queries */ all: ['partition'] as const, + /** List query keys */ lists: () => [...partitionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...partitionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...partitionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...partitionKeys.details(), id] as const, +} as const; +export const databaseTransferKeys = { + /** All databaseTransfer queries */ all: ['databasetransfer'] as const, + /** List query keys */ lists: () => [...databaseTransferKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseTransferKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseTransferKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseTransferKeys.details(), id] as const, +} as const; +export const apiKeys = { + /** All api queries */ all: ['api'] as const, + /** List query keys */ lists: () => [...apiKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...apiKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiKeys.details(), id] as const, +} as const; +export const siteKeys = { + /** All site queries */ all: ['site'] as const, + /** List query keys */ lists: () => [...siteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteKeys.details(), id] as const, +} as const; +export const appKeys = { + /** All app queries */ all: ['app'] as const, + /** List query keys */ lists: () => [...appKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appKeys.details(), id] as const, +} as const; +export const apiSettingKeys = { + /** All apiSetting queries */ all: ['apisetting'] as const, + /** List query keys */ lists: () => [...apiSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...apiSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiSettingKeys.details(), id] as const, +} as const; +export const migrateFileKeys = { + /** All migrateFile queries */ all: ['migratefile'] as const, + /** List query keys */ lists: () => [...migrateFileKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...migrateFileKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...migrateFileKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...migrateFileKeys.details(), id] as const, +} as const; +export const nodeTypeRegistryKeys = { + /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, + /** List query keys */ lists: () => [...nodeTypeRegistryKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...nodeTypeRegistryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...nodeTypeRegistryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...nodeTypeRegistryKeys.details(), id] as const, +} as const; +export const pubkeySettingKeys = { + /** All pubkeySetting queries */ all: ['pubkeysetting'] as const, + /** List query keys */ lists: () => [...pubkeySettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...pubkeySettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...pubkeySettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...pubkeySettingKeys.details(), id] as const, +} as const; +export const databaseKeys = { + /** All database queries */ all: ['database'] as const, + /** List query keys */ lists: () => [...databaseKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseKeys.details(), id] as const, +} as const; +export const rlsSettingKeys = { + /** All rlsSetting queries */ all: ['rlssetting'] as const, + /** List query keys */ lists: () => [...rlsSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...rlsSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...rlsSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...rlsSettingKeys.details(), id] as const, +} as const; +export const sqlActionKeys = { + /** All sqlAction queries */ all: ['sqlaction'] as const, + /** List query keys */ lists: () => [...sqlActionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...sqlActionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...sqlActionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...sqlActionKeys.details(), id] as const, +} as const; +export const databaseSettingKeys = { + /** All databaseSetting queries */ all: ['databasesetting'] as const, + /** List query keys */ lists: () => [...databaseSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseSettingKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...astMigrationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...astMigrationKeys.details(), id] as const, +} as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for applyRegistryDefaults */ applyRegistryDefaults: (variables?: object) => + ['applyRegistryDefaults', variables] 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 = { + function: functionKeys, + schema: schemaKeys, + table: tableKeys, + checkConstraint: checkConstraintKeys, + field: fieldKeys, + spatialRelation: spatialRelationKeys, + foreignKeyConstraint: foreignKeyConstraintKeys, + fullTextSearch: fullTextSearchKeys, + index: indexKeys, + policy: policyKeys, + primaryKeyConstraint: primaryKeyConstraintKeys, + tableGrant: tableGrantKeys, + trigger: triggerKeys, + uniqueConstraint: uniqueConstraintKeys, + view: viewKeys, + viewTable: viewTableKeys, + viewGrant: viewGrantKeys, + viewRule: viewRuleKeys, + embeddingChunk: embeddingChunkKeys, + schemaGrant: schemaGrantKeys, + defaultPrivilege: defaultPrivilegeKeys, + enum: enumKeys, + apiSchema: apiSchemaKeys, + apiModule: apiModuleKeys, + domain: domainKeys, + siteMetadatum: siteMetadatumKeys, + siteModule: siteModuleKeys, + siteTheme: siteThemeKeys, + corsSetting: corsSettingKeys, + triggerFunction: triggerFunctionKeys, + partition: partitionKeys, + databaseTransfer: databaseTransferKeys, + api: apiKeys, + site: siteKeys, + app: appKeys, + apiSetting: apiSettingKeys, + migrateFile: migrateFileKeys, + nodeTypeRegistry: nodeTypeRegistryKeys, + pubkeySetting: pubkeySettingKeys, + database: databaseKeys, + rlsSetting: rlsSettingKeys, + sqlAction: sqlActionKeys, + databaseSetting: databaseSettingKeys, + webauthnSetting: webauthnSettingKeys, + astMigration: astMigrationKeys, + custom: customQueryKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/api/hooks/selection.ts b/sdk/constructive-react/src/api/hooks/selection.ts new file mode 100644 index 0000000000..2952aab647 --- /dev/null +++ b/sdk/constructive-react/src/api/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/api/index.ts b/sdk/constructive-react/src/api/index.ts new file mode 100644 index 0000000000..2b8402539a --- /dev/null +++ b/sdk/constructive-react/src/api/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/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md new file mode 100644 index 0000000000..8690e7411b --- /dev/null +++ b/sdk/constructive-react/src/api/orm/README.md @@ -0,0 +1,2001 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `function` | findMany, findOne, create, update, delete | +| `schema` | findMany, findOne, create, update, delete | +| `table` | findMany, findOne, create, update, delete | +| `checkConstraint` | findMany, findOne, create, update, delete | +| `field` | findMany, findOne, create, update, delete | +| `spatialRelation` | findMany, findOne, create, update, delete | +| `foreignKeyConstraint` | findMany, findOne, create, update, delete | +| `fullTextSearch` | findMany, findOne, create, update, delete | +| `index` | findMany, findOne, create, update, delete | +| `policy` | findMany, findOne, create, update, delete | +| `primaryKeyConstraint` | findMany, findOne, create, update, delete | +| `tableGrant` | findMany, findOne, create, update, delete | +| `trigger` | findMany, findOne, create, update, delete | +| `uniqueConstraint` | findMany, findOne, create, update, delete | +| `view` | findMany, findOne, create, update, delete | +| `viewTable` | findMany, findOne, create, update, delete | +| `viewGrant` | findMany, findOne, create, update, delete | +| `viewRule` | findMany, findOne, create, update, delete | +| `embeddingChunk` | findMany, findOne, create, update, delete | +| `schemaGrant` | findMany, findOne, create, update, delete | +| `defaultPrivilege` | findMany, findOne, create, update, delete | +| `enum` | findMany, findOne, create, update, delete | +| `apiSchema` | findMany, findOne, create, update, delete | +| `apiModule` | findMany, findOne, create, update, delete | +| `domain` | findMany, findOne, create, update, delete | +| `siteMetadatum` | findMany, findOne, create, update, delete | +| `siteModule` | findMany, findOne, create, update, delete | +| `siteTheme` | findMany, findOne, create, update, delete | +| `corsSetting` | findMany, findOne, create, update, delete | +| `triggerFunction` | findMany, findOne, create, update, delete | +| `partition` | findMany, findOne, create, update, delete | +| `databaseTransfer` | findMany, findOne, create, update, delete | +| `api` | findMany, findOne, create, update, delete | +| `site` | findMany, findOne, create, update, delete | +| `app` | findMany, findOne, create, update, delete | +| `apiSetting` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `pubkeySetting` | findMany, findOne, create, update, delete | +| `database` | findMany, findOne, create, update, delete | +| `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 | + +## Table Operations + +### `db.function` + +CRUD operations for Function records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all function records +const items = await db.function.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); + +// Get one by id +const item = await db.function.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); + +// Create +const created = await db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.function.delete({ where: { id: '' } }).execute(); +``` + +### `db.schema` + +CRUD operations for Schema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `schemaName` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `isPublic` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schema records +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schema.delete({ where: { id: '' } }).execute(); +``` + +### `db.table` + +CRUD operations for Table records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `useRls` | Boolean | Yes | +| `timestamps` | Boolean | Yes | +| `peoplestamps` | Boolean | Yes | +| `pluralName` | String | Yes | +| `singularName` | String | Yes | +| `tags` | String | Yes | +| `partitioned` | Boolean | Yes | +| `partitionStrategy` | String | Yes | +| `partitionKeyNames` | String | Yes | +| `partitionKeyTypes` | String | Yes | +| `inheritsId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.table.delete({ where: { id: '' } }).execute(); +``` + +### `db.checkConstraint` + +CRUD operations for CheckConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `expr` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all checkConstraint records +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.field` + +CRUD operations for Field records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | +| `defaultValue` | JSON | Yes | +| `type` | JSON | Yes | +| `fieldOrder` | Int | Yes | +| `regexp` | String | Yes | +| `chk` | JSON | Yes | +| `chkExpr` | JSON | Yes | +| `min` | Float | Yes | +| `max` | Float | Yes | +| `tags` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.field.delete({ where: { id: '' } }).execute(); +``` + +### `db.spatialRelation` + +CRUD operations for SpatialRelation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `name` | String | Yes | +| `operator` | String | Yes | +| `paramName` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all spatialRelation records +const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); +``` + +### `db.foreignKeyConstraint` + +CRUD operations for ForeignKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldIds` | UUID | Yes | +| `deleteAction` | String | Yes | +| `updateAction` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all foreignKeyConstraint records +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.fullTextSearch` + +CRUD operations for FullTextSearch records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fieldIds` | UUID | Yes | +| `weights` | String | Yes | +| `langs` | String | Yes | +| `langColumn` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all fullTextSearch records +const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '', langColumn: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); +``` + +### `db.index` + +CRUD operations for Index records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `fieldIds` | UUID | Yes | +| `includeFieldIds` | UUID | Yes | +| `accessMethod` | String | Yes | +| `indexParams` | JSON | Yes | +| `whereClause` | JSON | Yes | +| `isUnique` | Boolean | Yes | +| `options` | JSON | Yes | +| `opClasses` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all index records +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.index.delete({ where: { id: '' } }).execute(); +``` + +### `db.policy` + +CRUD operations for Policy records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `granteeName` | String | Yes | +| `privilege` | String | Yes | +| `permissive` | Boolean | Yes | +| `disabled` | Boolean | Yes | +| `policyType` | String | Yes | +| `data` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.policy.delete({ where: { id: '' } }).execute(); +``` + +### `db.primaryKeyConstraint` + +CRUD operations for PrimaryKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all primaryKeyConstraint records +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.tableGrant` + +CRUD operations for TableGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `fieldIds` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all tableGrant records +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.trigger` + +CRUD operations for Trigger records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `functionName` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all trigger records +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); +``` + +### `db.uniqueConstraint` + +CRUD operations for UniqueConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all uniqueConstraint records +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.view` + +CRUD operations for View records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `tableId` | UUID | Yes | +| `viewType` | String | Yes | +| `data` | JSON | Yes | +| `filterType` | String | Yes | +| `filterData` | JSON | Yes | +| `securityInvoker` | Boolean | Yes | +| `isReadOnly` | Boolean | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all view records +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.view.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewTable` + +CRUD operations for ViewTable records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `viewId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `joinOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all viewTable records +const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Get one by id +const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Create +const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewGrant` + +CRUD operations for ViewGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `granteeName` | String | Yes | +| `privilege` | String | Yes | +| `withGrantOption` | Boolean | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all viewGrant records +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); + +// Create +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewRule` + +CRUD operations for ViewRule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `action` | String | Yes | + +**Operations:** + +```typescript +// List all viewRule records +const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Get one by id +const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Create +const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.embeddingChunk` + +CRUD operations for EmbeddingChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `embeddingFieldId` | UUID | Yes | +| `chunksTableId` | UUID | Yes | +| `chunksTableName` | String | Yes | +| `contentFieldName` | String | Yes | +| `dimensions` | Int | Yes | +| `metric` | String | Yes | +| `chunkSize` | Int | Yes | +| `chunkOverlap` | Int | Yes | +| `chunkStrategy` | String | Yes | +| `metadataFields` | JSON | Yes | +| `searchIndexes` | JSON | Yes | +| `enqueueChunkingJob` | Boolean | Yes | +| `chunkingTaskName` | String | Yes | +| `embeddingModel` | String | Yes | +| `embeddingProvider` | String | Yes | +| `parentFkFieldId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all embeddingChunk records +const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); +``` + +### `db.schemaGrant` + +CRUD operations for SchemaGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `granteeName` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schemaGrant records +const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.defaultPrivilege` + +CRUD operations for DefaultPrivilege records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `objectType` | String | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all defaultPrivilege records +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Create +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + +### `db.enum` + +CRUD operations for Enum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `values` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all enum records +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.enum.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiSchema` + +CRUD operations for ApiSchema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `apiId` | UUID | Yes | + +**Operations:** + +```typescript +// List all apiSchema records +const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Get one by id +const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Create +const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiModule` + +CRUD operations for ApiModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all apiModule records +const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.domain` + +CRUD operations for Domain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `subdomain` | ConstructiveInternalTypeHostname | Yes | +| `domain` | ConstructiveInternalTypeHostname | Yes | + +**Operations:** + +```typescript +// List all domain records +const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Get one by id +const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Create +const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.domain.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteMetadatum` + +CRUD operations for SiteMetadatum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | + +**Operations:** + +```typescript +// List all siteMetadatum records +const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Get one by id +const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Create +const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteModule` + +CRUD operations for SiteModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteModule records +const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteTheme` + +CRUD operations for SiteTheme records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `theme` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteTheme records +const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Get one by id +const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Create +const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); +``` + +### `db.corsSetting` + +CRUD operations for CorsSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `allowedOrigins` | String | Yes | + +**Operations:** + +```typescript +// List all corsSetting records +const items = await db.corsSetting.findMany({ select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); + +// Get one by id +const item = await db.corsSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); + +// Create +const created = await db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.corsSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.triggerFunction` + +CRUD operations for TriggerFunction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `code` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all triggerFunction records +const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +``` + +### `db.partition` + +CRUD operations for Partition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `strategy` | String | Yes | +| `partitionKeyId` | UUID | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | +| `premake` | Int | Yes | +| `namingPattern` | String | Yes | +| `isParented` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all partition records +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.partition.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseTransfer` + +CRUD operations for DatabaseTransfer records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `targetOwnerId` | UUID | Yes | +| `sourceApproved` | Boolean | Yes | +| `targetApproved` | Boolean | Yes | +| `sourceApprovedAt` | Datetime | Yes | +| `targetApprovedAt` | Datetime | Yes | +| `status` | String | Yes | +| `initiatedBy` | UUID | Yes | +| `notes` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseTransfer records +const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Get one by id +const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Create +const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); +``` + +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `dbname` | String | Yes | +| `roleName` | String | Yes | +| `anonRole` | String | Yes | +| `isPublic` | Boolean | Yes | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Create +const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + +### `db.site` + +CRUD operations for Site records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | +| `favicon` | ConstructiveInternalTypeAttachment | Yes | +| `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `dbname` | String | Yes | + +**Operations:** + +```typescript +// List all site records +const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Get one by id +const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Create +const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.site.delete({ where: { id: '' } }).execute(); +``` + +### `db.app` + +CRUD operations for App records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `appImage` | ConstructiveInternalTypeImage | Yes | +| `appStoreLink` | ConstructiveInternalTypeUrl | Yes | +| `appStoreId` | String | Yes | +| `appIdPrefix` | String | Yes | +| `playStoreLink` | ConstructiveInternalTypeUrl | Yes | + +**Operations:** + +```typescript +// List all app records +const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Get one by id +const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Create +const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.app.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiSetting` + +CRUD operations for ApiSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `enableI18N` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all apiSetting records +const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Get one by id +const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Create +const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); + +// Get one by id +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); + +// Create +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +``` + +### `db.nodeTypeRegistry` + +CRUD operations for NodeTypeRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Create +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); + +// Update +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); + +// Delete +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +``` + +### `db.pubkeySetting` + +CRUD operations for PubkeySetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `cryptoNetwork` | String | Yes | +| `userField` | String | Yes | +| `signUpWithKeyFunctionId` | UUID | Yes | +| `signInRequestChallengeFunctionId` | UUID | Yes | +| `signInRecordFailureFunctionId` | UUID | Yes | +| `signInWithChallengeFunctionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all pubkeySetting records +const items = await db.pubkeySetting.findMany({ select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); + +// Get one by id +const item = await db.pubkeySetting.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); + +// Create +const created = await db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.database` + +CRUD operations for Database records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `schemaHash` | String | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.database.delete({ where: { id: '' } }).execute(); +``` + +### `db.rlsSetting` + +CRUD operations for RlsSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `authenticateSchemaId` | UUID | Yes | +| `roleSchemaId` | UUID | Yes | +| `authenticateFunctionId` | UUID | Yes | +| `authenticateStrictFunctionId` | UUID | Yes | +| `currentRoleFunctionId` | UUID | Yes | +| `currentRoleIdFunctionId` | UUID | Yes | +| `currentUserAgentFunctionId` | UUID | Yes | +| `currentIpAddressFunctionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all rlsSetting records +const items = await db.rlsSetting.findMany({ select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); + +// Get one by id +const item = await db.rlsSetting.findOne({ id: '', select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); + +// Create +const created = await db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.sqlAction` + +CRUD operations for SqlAction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `deploy` | String | Yes | +| `deps` | String | Yes | +| `payload` | JSON | Yes | +| `content` | String | Yes | +| `revert` | String | Yes | +| `verify` | String | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all sqlAction records +const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Get one by id +const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Create +const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseSetting` + +CRUD operations for DatabaseSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `enableI18N` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all databaseSetting records +const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Get one by id +const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Create +const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.webauthnSetting` + +CRUD operations for WebauthnSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `credentialsSchemaId` | UUID | Yes | +| `sessionsSchemaId` | UUID | Yes | +| `sessionSecretsSchemaId` | UUID | Yes | +| `credentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionSecretsTableId` | UUID | Yes | +| `userFieldId` | UUID | Yes | +| `rpId` | String | Yes | +| `rpName` | String | Yes | +| `originAllowlist` | String | Yes | +| `attestationType` | String | Yes | +| `requireUserVerification` | Boolean | Yes | +| `residentKey` | String | Yes | +| `challengeExpirySeconds` | BigInt | Yes | + +**Operations:** + +```typescript +// List all webauthnSetting records +const items = await db.webauthnSetting.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.webauthnSetting.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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` + +applyRegistryDefaults + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `nodeType` | String | + | `data` | JSON | + +```typescript +const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); +``` + +### `db.mutation.acceptDatabaseTransfer` + +acceptDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AcceptDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.cancelDatabaseTransfer` + +cancelDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CancelDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.rejectDatabaseTransfer` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RejectDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.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 + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +```typescript +const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); +``` + +### `db.mutation.applyRls` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` + +### `db.mutation.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) + +Returns the database_id UUID of the newly created database. + +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 + + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateUserDatabaseInput (required) | + +```typescript +const result = await db.mutation.createUserDatabase({ 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/api/orm/client.ts b/sdk/constructive-react/src/api/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-react/src/api/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/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts new file mode 100644 index 0000000000..b2161f6fdc --- /dev/null +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -0,0 +1,136 @@ +/** + * 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 { FunctionModel } from './models/function'; +import { SchemaModel } from './models/schema'; +import { TableModel } from './models/table'; +import { CheckConstraintModel } from './models/checkConstraint'; +import { FieldModel } from './models/field'; +import { SpatialRelationModel } from './models/spatialRelation'; +import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; +import { FullTextSearchModel } from './models/fullTextSearch'; +import { IndexModel } from './models/index'; +import { PolicyModel } from './models/policy'; +import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; +import { TableGrantModel } from './models/tableGrant'; +import { TriggerModel } from './models/trigger'; +import { UniqueConstraintModel } from './models/uniqueConstraint'; +import { ViewModel } from './models/view'; +import { ViewTableModel } from './models/viewTable'; +import { ViewGrantModel } from './models/viewGrant'; +import { ViewRuleModel } from './models/viewRule'; +import { EmbeddingChunkModel } from './models/embeddingChunk'; +import { SchemaGrantModel } from './models/schemaGrant'; +import { DefaultPrivilegeModel } from './models/defaultPrivilege'; +import { EnumModel } from './models/enum'; +import { ApiSchemaModel } from './models/apiSchema'; +import { ApiModuleModel } from './models/apiModule'; +import { DomainModel } from './models/domain'; +import { SiteMetadatumModel } from './models/siteMetadatum'; +import { SiteModuleModel } from './models/siteModule'; +import { SiteThemeModel } from './models/siteTheme'; +import { CorsSettingModel } from './models/corsSetting'; +import { TriggerFunctionModel } from './models/triggerFunction'; +import { PartitionModel } from './models/partition'; +import { DatabaseTransferModel } from './models/databaseTransfer'; +import { ApiModel } from './models/api'; +import { SiteModel } from './models/site'; +import { AppModel } from './models/app'; +import { ApiSettingModel } from './models/apiSetting'; +import { MigrateFileModel } from './models/migrateFile'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { PubkeySettingModel } from './models/pubkeySetting'; +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 { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @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 { + function: new FunctionModel(client), + schema: new SchemaModel(client), + table: new TableModel(client), + checkConstraint: new CheckConstraintModel(client), + field: new FieldModel(client), + spatialRelation: new SpatialRelationModel(client), + foreignKeyConstraint: new ForeignKeyConstraintModel(client), + fullTextSearch: new FullTextSearchModel(client), + index: new IndexModel(client), + policy: new PolicyModel(client), + primaryKeyConstraint: new PrimaryKeyConstraintModel(client), + tableGrant: new TableGrantModel(client), + trigger: new TriggerModel(client), + uniqueConstraint: new UniqueConstraintModel(client), + view: new ViewModel(client), + viewTable: new ViewTableModel(client), + viewGrant: new ViewGrantModel(client), + viewRule: new ViewRuleModel(client), + embeddingChunk: new EmbeddingChunkModel(client), + schemaGrant: new SchemaGrantModel(client), + defaultPrivilege: new DefaultPrivilegeModel(client), + enum: new EnumModel(client), + apiSchema: new ApiSchemaModel(client), + apiModule: new ApiModuleModel(client), + domain: new DomainModel(client), + siteMetadatum: new SiteMetadatumModel(client), + siteModule: new SiteModuleModel(client), + siteTheme: new SiteThemeModel(client), + corsSetting: new CorsSettingModel(client), + triggerFunction: new TriggerFunctionModel(client), + partition: new PartitionModel(client), + databaseTransfer: new DatabaseTransferModel(client), + api: new ApiModel(client), + site: new SiteModel(client), + app: new AppModel(client), + apiSetting: new ApiSettingModel(client), + migrateFile: new MigrateFileModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), + pubkeySetting: new PubkeySettingModel(client), + database: new DatabaseModel(client), + rlsSetting: new RlsSettingModel(client), + sqlAction: new SqlActionModel(client), + databaseSetting: new DatabaseSettingModel(client), + webauthnSetting: new WebauthnSettingModel(client), + astMigration: new AstMigrationModel(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 new file mode 100644 index 0000000000..8da4e53642 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -0,0 +1,13087 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Enum Types ============ +export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; +export type ConstructiveInternalTypeUrl = unknown; +// ============ Entity Types ============ +export interface Function { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; +} +export interface Schema { + id: string; + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + isPublic?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Table { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string[] | null; + partitioned?: boolean | null; + partitionStrategy?: string | null; + partitionKeyNames?: string[] | null; + partitionKeyTypes?: string[] | null; + inheritsId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface CheckConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Field { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + defaultValue?: Record | null; + type?: Record | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface SpatialRelation { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + name?: string | null; + operator?: string | null; + paramName?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ForeignKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + refTableId?: string | null; + refFieldIds?: string[] | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface FullTextSearch { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; + langColumn?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Index { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + options?: Record | null; + opClasses?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Policy { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + granteeName?: string | null; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PrimaryKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface TableGrant { + id: string; + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + granteeName?: string | null; + fieldIds?: string[] | null; + isGrant?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Trigger { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface UniqueConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface View { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +/** Junction table linking views to their joined tables for referential integrity */ +export interface ViewTable { + id: string; + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface ViewGrant { + id: string; + databaseId?: string | null; + viewId?: string | null; + granteeName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; + isGrant?: boolean | null; +} +/** DO INSTEAD rules for views (e.g., read-only enforcement) */ +export interface ViewRule { + id: string; + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + /** INSERT, UPDATE, or DELETE */ + event?: string | null; + /** NOTHING (for read-only) or custom action */ + action?: string | null; +} +export interface EmbeddingChunk { + id: string; + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + searchIndexes?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + embeddingModel?: string | null; + embeddingProvider?: string | null; + parentFkFieldId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface SchemaGrant { + id: string; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface DefaultPrivilege { + id: string; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface Enum { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ +export interface ApiSchema { + /** Unique identifier for this API-schema mapping */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Metaschema schema being exposed through the API */ + schemaId?: string | null; + /** API that exposes this schema */ + apiId?: string | null; +} +/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ +export interface ApiModule { + /** Unique identifier for this API module record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** API this module configuration belongs to */ + apiId?: string | null; + /** Module name (e.g. auth, uploads, webhooks) */ + name?: string | null; + /** JSON configuration data for this module */ + data?: Record | null; +} +/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ +export interface Domain { + /** Unique identifier for this domain record */ + id: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId?: string | null; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string | null; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string | null; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname | null; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname | null; +} +/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ +export interface SiteMetadatum { + /** Unique identifier for this metadata record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this metadata belongs to */ + siteId?: string | null; + /** Page title for SEO (max 120 characters) */ + title?: string | null; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string | null; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage | null; +} +/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ +export interface SiteModule { + /** Unique identifier for this site module record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this module configuration belongs to */ + siteId?: string | null; + /** Module name (e.g. user_auth_module, analytics) */ + name?: string | null; + /** JSON configuration data for this module */ + data?: Record | null; +} +/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ +export interface SiteTheme { + /** Unique identifier for this theme record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this theme belongs to */ + siteId?: string | null; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: Record | null; +} +/** Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries */ +export interface CorsSetting { + /** Unique identifier for this CORS settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string | null; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[] | null; +} +export interface TriggerFunction { + id: string; + databaseId?: string | null; + name?: string | null; + code?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Partition { + id: string; + databaseId?: string | null; + tableId?: string | null; + strategy?: string | null; + partitionKeyId?: string | null; + interval?: string | null; + retention?: string | null; + retentionKeepTable?: boolean | null; + premake?: number | null; + namingPattern?: string | null; + isParented?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface DatabaseTransfer { + id: string; + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; +} +/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ +export interface Api { + /** Unique identifier for this API */ + id: string; + /** Reference to the metaschema database this API serves */ + databaseId?: string | null; + /** Unique name for this API within its database */ + name?: string | null; + /** PostgreSQL database name to connect to */ + dbname?: string | null; + /** PostgreSQL role used for authenticated requests */ + roleName?: string | null; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string | null; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean | null; +} +/** Top-level site configuration: branding assets, title, and description for a deployed application */ +export interface Site { + /** Unique identifier for this site */ + id: string; + /** Reference to the metaschema database this site belongs to */ + databaseId?: string | null; + /** Display title for the site (max 120 characters) */ + title?: string | null; + /** Short description of the site (max 120 characters) */ + description?: string | null; + /** Open Graph image used for social media link previews */ + ogImage?: ConstructiveInternalTypeImage | null; + /** Browser favicon attachment */ + favicon?: ConstructiveInternalTypeAttachment | null; + /** Apple touch icon for iOS home screen bookmarks */ + appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** Primary logo image for the site */ + logo?: ConstructiveInternalTypeImage | null; + /** PostgreSQL database name this site connects to */ + dbname?: string | null; +} +/** Mobile and native app configuration linked to a site, including store links and identifiers */ +export interface App { + /** Unique identifier for this app */ + id: string; + /** Reference to the metaschema database this app belongs to */ + databaseId?: string | null; + /** Site this app is associated with (one app per site) */ + siteId?: string | null; + /** Display name of the app */ + name?: string | null; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage | null; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl | null; + /** Apple App Store application identifier */ + appStoreId?: string | null; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string | null; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl | null; +} +/** Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default */ +export interface ApiSetting { + /** Unique identifier for this API settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** API these settings override for */ + apiId?: string | null; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean | null; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean | null; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean | null; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean | null; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean | null; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean | null; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean | null; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean | null; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean | null; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean | null; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean | null; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean | null; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: Record | null; +} +export interface MigrateFile { + id: string; + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ +export interface PubkeySetting { + /** Unique identifier for this pubkey settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string | null; + /** Field name used to identify the user in crypto auth functions */ + userField?: string | null; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string | null; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string | null; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string | null; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string | null; +} +export interface Database { + id: string; + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ +export interface RlsSetting { + /** Unique identifier for this RLS settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string | null; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string | null; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string | null; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string | null; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string | null; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string | null; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string | null; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string | null; +} +export interface SqlAction { + id: number; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ +export interface DatabaseSetting { + /** Unique identifier for this settings record */ + id: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string | null; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean | null; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean | null; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean | null; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean | null; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean | null; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean | null; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean | null; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean | null; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean | null; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean | null; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean | null; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean | null; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record | 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 */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string | null; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string | null; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string | null; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string | null; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string | null; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string | null; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string | null; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string | null; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string | null; + /** WebAuthn Relying Party display name */ + rpName?: string | null; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[] | null; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string | null; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean | null; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string | null; + /** 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[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface FunctionRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface SchemaRelations { + database?: Database | null; + tables?: ConnectionResult
; + schemaGrants?: ConnectionResult; + views?: ConnectionResult; + defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + functions?: ConnectionResult; + apiSchemas?: ConnectionResult; +} +export interface TableRelations { + database?: Database | null; + schema?: Schema | null; + inherits?: Table | null; + partition?: Partition | null; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + tableGrants?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewTables?: ConnectionResult; + embeddingChunksByChunksTableId?: ConnectionResult; + embeddingChunks?: ConnectionResult; + spatialRelationsByRefTableId?: ConnectionResult; + spatialRelations?: ConnectionResult; +} +export interface CheckConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface FieldRelations { + database?: Database | null; + table?: Table | null; + spatialRelations?: ConnectionResult; + spatialRelationsByRefFieldId?: ConnectionResult; +} +export interface SpatialRelationRelations { + database?: Database | null; + field?: Field | null; + refField?: Field | null; + refTable?: Table | null; + table?: Table | null; +} +export interface ForeignKeyConstraintRelations { + database?: Database | null; + refTable?: Table | null; + table?: Table | null; +} +export interface FullTextSearchRelations { + database?: Database | null; + table?: Table | null; +} +export interface IndexRelations { + database?: Database | null; + table?: Table | null; +} +export interface PolicyRelations { + database?: Database | null; + table?: Table | null; +} +export interface PrimaryKeyConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface TableGrantRelations { + database?: Database | null; + table?: Table | null; +} +export interface TriggerRelations { + database?: Database | null; + table?: Table | null; +} +export interface UniqueConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface ViewRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; + viewTables?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; +} +export interface ViewTableRelations { + table?: Table | null; + view?: View | null; +} +export interface ViewGrantRelations { + database?: Database | null; + view?: View | null; +} +export interface ViewRuleRelations { + database?: Database | null; + view?: View | null; +} +export interface EmbeddingChunkRelations { + chunksTable?: Table | null; + database?: Database | null; + embeddingField?: Field | null; + parentFkField?: Field | null; + table?: Table | null; +} +export interface SchemaGrantRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface DefaultPrivilegeRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface EnumRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface ApiSchemaRelations { + api?: Api | null; + database?: Database | null; + schema?: Schema | null; +} +export interface ApiModuleRelations { + api?: Api | null; + database?: Database | null; +} +export interface DomainRelations { + api?: Api | null; + database?: Database | null; + site?: Site | null; +} +export interface SiteMetadatumRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteModuleRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteThemeRelations { + database?: Database | null; + site?: Site | null; +} +export interface CorsSettingRelations { + api?: Api | null; + database?: Database | null; +} +export interface TriggerFunctionRelations { + database?: Database | null; +} +export interface PartitionRelations { + database?: Database | null; + partitionKey?: Field | null; + table?: Table | null; +} +export interface DatabaseTransferRelations { + database?: Database | null; +} +export interface ApiRelations { + database?: Database | null; + apiSetting?: ApiSetting | null; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + domains?: ConnectionResult; + corsSettings?: ConnectionResult; +} +export interface SiteRelations { + database?: Database | null; + app?: App | null; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; +} +export interface AppRelations { + site?: Site | null; + database?: Database | null; +} +export interface ApiSettingRelations { + api?: Api | null; + database?: Database | null; +} +export interface MigrateFileRelations {} +export interface NodeTypeRegistryRelations {} +export interface PubkeySettingRelations { + database?: Database | null; + schema?: Schema | null; + signInRecordFailureFunction?: Function | null; + signInRequestChallengeFunction?: Function | null; + signInWithChallengeFunction?: Function | null; + signUpWithKeyFunction?: Function | null; +} +export interface DatabaseRelations { + databaseSetting?: DatabaseSetting | null; + rlsSetting?: RlsSetting | null; + pubkeySetting?: PubkeySetting | null; + webauthnSetting?: WebauthnSetting | null; + schemas?: ConnectionResult; + tables?: ConnectionResult
; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + schemaGrants?: ConnectionResult; + tableGrants?: ConnectionResult; + triggerFunctions?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; + defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + embeddingChunks?: ConnectionResult; + spatialRelations?: ConnectionResult; + functions?: ConnectionResult; + partitions?: ConnectionResult; + databaseTransfers?: ConnectionResult; + apis?: ConnectionResult; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + sites?: ConnectionResult; + apps?: ConnectionResult; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; + apiSettings?: ConnectionResult; + corsSettings?: ConnectionResult; +} +export interface RlsSettingRelations { + authenticateFunction?: Function | null; + authenticateSchema?: Schema | null; + authenticateStrictFunction?: Function | null; + currentIpAddressFunction?: Function | null; + currentRoleFunction?: Function | null; + currentRoleIdFunction?: Function | null; + currentUserAgentFunction?: Function | null; + database?: Database | null; + roleSchema?: Schema | null; +} +export interface SqlActionRelations {} +export interface DatabaseSettingRelations { + database?: Database | null; +} +export interface WebauthnSettingRelations { + credentialsSchema?: Schema | null; + credentialsTable?: Table | null; + database?: Database | null; + schema?: Schema | null; + sessionCredentialsTable?: Table | null; + sessionSecretsSchema?: Schema | null; + sessionSecretsTable?: Table | null; + sessionsSchema?: Schema | null; + sessionsTable?: Table | null; + userField?: Field | null; +} +export interface AstMigrationRelations {} +// ============ Entity Types With Relations ============ +export type FunctionWithRelations = Function & FunctionRelations; +export type SchemaWithRelations = Schema & SchemaRelations; +export type TableWithRelations = Table & TableRelations; +export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; +export type FieldWithRelations = Field & FieldRelations; +export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; +export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & + ForeignKeyConstraintRelations; +export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; +export type IndexWithRelations = Index & IndexRelations; +export type PolicyWithRelations = Policy & PolicyRelations; +export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & + PrimaryKeyConstraintRelations; +export type TableGrantWithRelations = TableGrant & TableGrantRelations; +export type TriggerWithRelations = Trigger & TriggerRelations; +export type UniqueConstraintWithRelations = UniqueConstraint & UniqueConstraintRelations; +export type ViewWithRelations = View & ViewRelations; +export type ViewTableWithRelations = ViewTable & ViewTableRelations; +export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; +export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; +export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; +export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; +export type EnumWithRelations = Enum & EnumRelations; +export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; +export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; +export type DomainWithRelations = Domain & DomainRelations; +export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; +export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; +export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; +export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; +export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; +export type PartitionWithRelations = Partition & PartitionRelations; +export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; +export type ApiWithRelations = Api & ApiRelations; +export type SiteWithRelations = Site & SiteRelations; +export type AppWithRelations = App & AppRelations; +export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; +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; +// ============ Entity Select Types ============ +export type FunctionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type SchemaSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + schemaName?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + isPublic?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + functions?: { + select: FunctionSelect; + first?: number; + filter?: FunctionFilter; + orderBy?: FunctionOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; +}; +export type TableSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: boolean; + singularName?: boolean; + tags?: boolean; + partitioned?: boolean; + partitionStrategy?: boolean; + partitionKeyNames?: boolean; + partitionKeyTypes?: boolean; + inheritsId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + inherits?: { + select: TableSelect; + }; + partition?: { + select: PartitionSelect; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + embeddingChunksByChunksTableId?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + spatialRelationsByRefTableId?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; +}; +export type CheckConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + expr?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: boolean; + type?: boolean; + fieldOrder?: boolean; + regexp?: boolean; + chk?: boolean; + chkExpr?: boolean; + min?: boolean; + max?: boolean; + tags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + spatialRelationsByRefFieldId?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; +}; +export type SpatialRelationSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + refTableId?: boolean; + refFieldId?: boolean; + name?: boolean; + operator?: boolean; + paramName?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + field?: { + select: FieldSelect; + }; + refField?: { + select: FieldSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ForeignKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + refTableId?: boolean; + refFieldIds?: boolean; + deleteAction?: boolean; + updateAction?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FullTextSearchSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + fieldIds?: boolean; + weights?: boolean; + langs?: boolean; + langColumn?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type IndexSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + fieldIds?: boolean; + includeFieldIds?: boolean; + accessMethod?: boolean; + indexParams?: boolean; + whereClause?: boolean; + isUnique?: boolean; + options?: boolean; + opClasses?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PolicySelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + granteeName?: boolean; + privilege?: boolean; + permissive?: boolean; + disabled?: boolean; + policyType?: boolean; + data?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PrimaryKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TableGrantSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + privilege?: boolean; + granteeName?: boolean; + fieldIds?: boolean; + isGrant?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TriggerSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + event?: boolean; + functionName?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type UniqueConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ViewSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + tableId?: boolean; + viewType?: boolean; + data?: boolean; + filterType?: boolean; + filterData?: boolean; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; +}; +export type ViewTableSelect = { + id?: boolean; + viewId?: boolean; + tableId?: boolean; + joinOrder?: boolean; + table?: { + select: TableSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewGrantSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + granteeName?: boolean; + privilege?: boolean; + withGrantOption?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewRuleSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + name?: boolean; + event?: boolean; + action?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type EmbeddingChunkSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + embeddingFieldId?: boolean; + chunksTableId?: boolean; + chunksTableName?: boolean; + contentFieldName?: boolean; + dimensions?: boolean; + metric?: boolean; + chunkSize?: boolean; + chunkOverlap?: boolean; + chunkStrategy?: boolean; + metadataFields?: boolean; + searchIndexes?: boolean; + enqueueChunkingJob?: boolean; + chunkingTaskName?: boolean; + embeddingModel?: boolean; + embeddingProvider?: boolean; + parentFkFieldId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + chunksTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + embeddingField?: { + select: FieldSelect; + }; + parentFkField?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type SchemaGrantSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + granteeName?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type DefaultPrivilegeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + objectType?: boolean; + privilege?: boolean; + granteeName?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type EnumSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + values?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiSchemaSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + apiId?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiModuleSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + name?: boolean; + data?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type DomainSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + siteId?: boolean; + subdomain?: boolean; + domain?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteMetadatumSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteModuleSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + data?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteThemeSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + theme?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type CorsSettingSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + allowedOrigins?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type TriggerFunctionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + code?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type PartitionSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + strategy?: boolean; + partitionKeyId?: boolean; + interval?: boolean; + retention?: boolean; + retentionKeepTable?: boolean; + premake?: boolean; + namingPattern?: boolean; + isParented?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + partitionKey?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type DatabaseTransferSelect = { + id?: boolean; + databaseId?: boolean; + targetOwnerId?: boolean; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: boolean; + targetApprovedAt?: boolean; + status?: boolean; + initiatedBy?: boolean; + notes?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type ApiSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + dbname?: boolean; + roleName?: boolean; + anonRole?: boolean; + isPublic?: boolean; + database?: { + select: DatabaseSelect; + }; + apiSetting?: { + select: ApiSettingSelect; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; +export type SiteSelect = { + id?: boolean; + databaseId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + favicon?: boolean; + appleTouchIcon?: boolean; + logo?: boolean; + dbname?: boolean; + database?: { + select: DatabaseSelect; + }; + app?: { + select: AppSelect; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; +}; +export type AppSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + appImage?: boolean; + appStoreLink?: boolean; + appStoreId?: boolean; + appIdPrefix?: boolean; + playStoreLink?: boolean; + site?: { + select: SiteSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type ApiSettingSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type MigrateFileSelect = { + id?: boolean; + databaseId?: boolean; + upload?: boolean; +}; +export type NodeTypeRegistrySelect = { + name?: boolean; + slug?: boolean; + category?: boolean; + displayName?: boolean; + description?: boolean; + parameterSchema?: boolean; + tags?: boolean; +}; +export type PubkeySettingSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + cryptoNetwork?: boolean; + userField?: boolean; + signUpWithKeyFunctionId?: boolean; + signInRequestChallengeFunctionId?: boolean; + signInRecordFailureFunctionId?: boolean; + signInWithChallengeFunctionId?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + signInRecordFailureFunction?: { + select: FunctionSelect; + }; + signInRequestChallengeFunction?: { + select: FunctionSelect; + }; + signInWithChallengeFunction?: { + select: FunctionSelect; + }; + signUpWithKeyFunction?: { + select: FunctionSelect; + }; +}; +export type DatabaseSelect = { + id?: boolean; + ownerId?: boolean; + schemaHash?: boolean; + name?: boolean; + label?: boolean; + hash?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + rlsSetting?: { + select: RlsSettingSelect; + }; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + schemas?: { + select: SchemaSelect; + first?: number; + filter?: SchemaFilter; + orderBy?: SchemaOrderBy[]; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggerFunctions?: { + select: TriggerFunctionSelect; + first?: number; + filter?: TriggerFunctionFilter; + orderBy?: TriggerFunctionOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + functions?: { + select: FunctionSelect; + first?: number; + filter?: FunctionFilter; + orderBy?: FunctionOrderBy[]; + }; + partitions?: { + select: PartitionSelect; + first?: number; + filter?: PartitionFilter; + orderBy?: PartitionOrderBy[]; + }; + databaseTransfers?: { + select: DatabaseTransferSelect; + first?: number; + filter?: DatabaseTransferFilter; + orderBy?: DatabaseTransferOrderBy[]; + }; + apis?: { + select: ApiSelect; + first?: number; + filter?: ApiFilter; + orderBy?: ApiOrderBy[]; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + sites?: { + select: SiteSelect; + first?: number; + filter?: SiteFilter; + orderBy?: SiteOrderBy[]; + }; + apps?: { + select: AppSelect; + first?: number; + filter?: AppFilter; + orderBy?: AppOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; + apiSettings?: { + select: ApiSettingSelect; + first?: number; + filter?: ApiSettingFilter; + orderBy?: ApiSettingOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; +export type RlsSettingSelect = { + id?: boolean; + databaseId?: boolean; + authenticateSchemaId?: boolean; + roleSchemaId?: boolean; + authenticateFunctionId?: boolean; + authenticateStrictFunctionId?: boolean; + currentRoleFunctionId?: boolean; + currentRoleIdFunctionId?: boolean; + currentUserAgentFunctionId?: boolean; + currentIpAddressFunctionId?: boolean; + authenticateFunction?: { + select: FunctionSelect; + }; + authenticateSchema?: { + select: SchemaSelect; + }; + authenticateStrictFunction?: { + select: FunctionSelect; + }; + currentIpAddressFunction?: { + select: FunctionSelect; + }; + currentRoleFunction?: { + select: FunctionSelect; + }; + currentRoleIdFunction?: { + select: FunctionSelect; + }; + currentUserAgentFunction?: { + select: FunctionSelect; + }; + database?: { + select: DatabaseSelect; + }; + roleSchema?: { + select: SchemaSelect; + }; +}; +export type SqlActionSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + deploy?: boolean; + deps?: boolean; + payload?: boolean; + content?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; +export type DatabaseSettingSelect = { + id?: boolean; + databaseId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type WebauthnSettingSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + credentialsSchemaId?: boolean; + sessionsSchemaId?: boolean; + sessionSecretsSchemaId?: boolean; + credentialsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + sessionSecretsTableId?: boolean; + userFieldId?: boolean; + rpId?: boolean; + rpName?: boolean; + originAllowlist?: boolean; + attestationType?: boolean; + requireUserVerification?: boolean; + residentKey?: boolean; + challengeExpirySeconds?: boolean; + credentialsSchema?: { + select: SchemaSelect; + }; + credentialsTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + sessionCredentialsTable?: { + select: TableSelect; + }; + sessionSecretsSchema?: { + select: SchemaSelect; + }; + sessionSecretsTable?: { + select: TableSelect; + }; + sessionsSchema?: { + select: SchemaSelect; + }; + sessionsTable?: { + select: TableSelect; + }; + userField?: { + 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. */ + 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 `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionFilter[]; + /** Negates the expression. */ + not?: FunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: SchemaToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; +} +export interface TableFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `partitioned` field. */ + partitioned?: BooleanFilter; + /** Filter by the object’s `partitionStrategy` field. */ + partitionStrategy?: StringFilter; + /** Filter by the object’s `partitionKeyNames` field. */ + partitionKeyNames?: StringListFilter; + /** Filter by the object’s `partitionKeyTypes` field. */ + partitionKeyTypes?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `inherits` relation. */ + inherits?: TableFilter; + /** A related `inherits` exists. */ + inheritsExists?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: TableToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: TableToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: TableToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: TableToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: TableToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: TableToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: TableToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: TableToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: TableToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: TableToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ + spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; + /** `spatialRelationsByRefTableId` exist. */ + spatialRelationsByRefTableIdExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: TableToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `partition` relation. */ + partition?: PartitionFilter; + /** A related `partition` exists. */ + partitionExists?: boolean; +} +export interface CheckConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface FieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: JSONFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** 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?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: FieldToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ + spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; + /** `spatialRelationsByRefFieldId` exist. */ + spatialRelationsByRefFieldIdExist?: boolean; +} +export interface SpatialRelationFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `operator` field. */ + operator?: StringFilter; + /** Filter by the object’s `paramName` field. */ + paramName?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: SpatialRelationFilter[]; + /** Checks for any expressions in this list. */ + or?: SpatialRelationFilter[]; + /** Negates the expression. */ + not?: SpatialRelationFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `field` relation. */ + field?: FieldFilter; + /** Filter by the object’s `refField` relation. */ + refField?: FieldFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface ForeignKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface FullTextSearchFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: StringListFilter; + /** Filter by the object’s `langColumn` field. */ + langColumn?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface IndexFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `opClasses` field. */ + opClasses?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: IndexFilter[]; + /** Negates the expression. */ + not?: IndexFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface PolicyFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface PrimaryKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface TableGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface TriggerFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface UniqueConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** A related `table` exists. */ + tableExists?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: ViewToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: ViewToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: ViewToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; +} +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface EmbeddingChunkFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `searchIndexes` field. */ + searchIndexes?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringFilter; + /** Filter by the object’s `embeddingProvider` field. */ + embeddingProvider?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: 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?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface EnumFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** A related `site` exists. */ + siteExists?: boolean; +} +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface CorsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CorsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: CorsSettingFilter[]; + /** Negates the expression. */ + not?: CorsSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface TriggerFunctionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface PartitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `strategy` field. */ + strategy?: StringFilter; + /** Filter by the object’s `partitionKeyId` field. */ + partitionKeyId?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `namingPattern` field. */ + namingPattern?: StringFilter; + /** Filter by the object’s `isParented` field. */ + isParented?: 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?: PartitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PartitionFilter[]; + /** Negates the expression. */ + not?: PartitionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `partitionKey` relation. */ + partitionKey?: FieldFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface ApiFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: ApiToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: ApiToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; +} +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: 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. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `app` relation. */ + app?: AppFilter; + /** A related `app` exists. */ + appExists?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: SiteToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: SiteToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; +} +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface ApiSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ApiSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSettingFilter[]; + /** Negates the expression. */ + not?: ApiSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface MigrateFileFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; + /** Checks for all expressions in this list. */ + and?: MigrateFileFilter[]; + /** Checks for any expressions in this list. */ + or?: MigrateFileFilter[]; + /** Negates the expression. */ + not?: MigrateFileFilter; +} +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +export interface PubkeySettingFilter { + /** 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 `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `signUpWithKeyFunctionId` field. */ + signUpWithKeyFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ + signInRequestChallengeFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRecordFailureFunctionId` field. */ + signInRecordFailureFunctionId?: UUIDFilter; + /** Filter by the object’s `signInWithChallengeFunctionId` field. */ + signInWithChallengeFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PubkeySettingFilter[]; + /** Checks for any expressions in this list. */ + or?: PubkeySettingFilter[]; + /** Negates the expression. */ + not?: PubkeySettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `signInRecordFailureFunction` relation. */ + signInRecordFailureFunction?: FunctionFilter; + /** A related `signInRecordFailureFunction` exists. */ + signInRecordFailureFunctionExists?: boolean; + /** Filter by the object’s `signInRequestChallengeFunction` relation. */ + signInRequestChallengeFunction?: FunctionFilter; + /** A related `signInRequestChallengeFunction` exists. */ + signInRequestChallengeFunctionExists?: boolean; + /** Filter by the object’s `signInWithChallengeFunction` relation. */ + signInWithChallengeFunction?: FunctionFilter; + /** A related `signInWithChallengeFunction` exists. */ + signInWithChallengeFunctionExists?: boolean; + /** Filter by the object’s `signUpWithKeyFunction` relation. */ + signUpWithKeyFunction?: FunctionFilter; + /** A related `signUpWithKeyFunction` exists. */ + signUpWithKeyFunctionExists?: boolean; +} +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; + /** Filter by the object’s `schemas` relation. */ + schemas?: DatabaseToManySchemaFilter; + /** `schemas` exist. */ + schemasExist?: boolean; + /** Filter by the object’s `tables` relation. */ + tables?: DatabaseToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: DatabaseToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: DatabaseToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: DatabaseToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggerFunctions` relation. */ + triggerFunctions?: DatabaseToManyTriggerFunctionFilter; + /** `triggerFunctions` exist. */ + triggerFunctionsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: DatabaseToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: DatabaseToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: DatabaseToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: DatabaseToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: DatabaseToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `partitions` relation. */ + partitions?: DatabaseToManyPartitionFilter; + /** `partitions` exist. */ + partitionsExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `apis` relation. */ + apis?: DatabaseToManyApiFilter; + /** `apis` exist. */ + apisExist?: boolean; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: DatabaseToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: DatabaseToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `sites` relation. */ + sites?: DatabaseToManySiteFilter; + /** `sites` exist. */ + sitesExist?: boolean; + /** Filter by the object’s `apps` relation. */ + apps?: DatabaseToManyAppFilter; + /** `apps` exist. */ + appsExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: DatabaseToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: DatabaseToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: DatabaseToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: DatabaseToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `databaseSetting` relation. */ + databaseSetting?: DatabaseSettingFilter; + /** A related `databaseSetting` exists. */ + databaseSettingExists?: boolean; + /** Filter by the object’s `apiSettings` relation. */ + apiSettings?: DatabaseToManyApiSettingFilter; + /** `apiSettings` exist. */ + apiSettingsExist?: boolean; + /** Filter by the object’s `rlsSetting` relation. */ + rlsSetting?: RlsSettingFilter; + /** A related `rlsSetting` exists. */ + rlsSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: DatabaseToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `pubkeySetting` relation. */ + pubkeySetting?: PubkeySettingFilter; + /** A related `pubkeySetting` exists. */ + pubkeySettingExists?: boolean; + /** Filter by the object’s `webauthnSetting` relation. */ + webauthnSetting?: WebauthnSettingFilter; + /** A related `webauthnSetting` exists. */ + webauthnSettingExists?: boolean; +} +export interface RlsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `authenticateSchemaId` field. */ + authenticateSchemaId?: UUIDFilter; + /** Filter by the object’s `roleSchemaId` field. */ + roleSchemaId?: UUIDFilter; + /** Filter by the object’s `authenticateFunctionId` field. */ + authenticateFunctionId?: UUIDFilter; + /** Filter by the object’s `authenticateStrictFunctionId` field. */ + authenticateStrictFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleFunctionId` field. */ + currentRoleFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleIdFunctionId` field. */ + currentRoleIdFunctionId?: UUIDFilter; + /** Filter by the object’s `currentUserAgentFunctionId` field. */ + currentUserAgentFunctionId?: UUIDFilter; + /** Filter by the object’s `currentIpAddressFunctionId` field. */ + currentIpAddressFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RlsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsSettingFilter[]; + /** Negates the expression. */ + not?: RlsSettingFilter; + /** Filter by the object’s `authenticateFunction` relation. */ + authenticateFunction?: FunctionFilter; + /** A related `authenticateFunction` exists. */ + authenticateFunctionExists?: boolean; + /** Filter by the object’s `authenticateSchema` relation. */ + authenticateSchema?: SchemaFilter; + /** A related `authenticateSchema` exists. */ + authenticateSchemaExists?: boolean; + /** Filter by the object’s `authenticateStrictFunction` relation. */ + authenticateStrictFunction?: FunctionFilter; + /** A related `authenticateStrictFunction` exists. */ + authenticateStrictFunctionExists?: boolean; + /** Filter by the object’s `currentIpAddressFunction` relation. */ + currentIpAddressFunction?: FunctionFilter; + /** A related `currentIpAddressFunction` exists. */ + currentIpAddressFunctionExists?: boolean; + /** Filter by the object’s `currentRoleFunction` relation. */ + currentRoleFunction?: FunctionFilter; + /** A related `currentRoleFunction` exists. */ + currentRoleFunctionExists?: boolean; + /** Filter by the object’s `currentRoleIdFunction` relation. */ + currentRoleIdFunction?: FunctionFilter; + /** A related `currentRoleIdFunction` exists. */ + currentRoleIdFunctionExists?: boolean; + /** Filter by the object’s `currentUserAgentFunction` relation. */ + currentUserAgentFunction?: FunctionFilter; + /** A related `currentUserAgentFunction` exists. */ + currentUserAgentFunctionExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `roleSchema` relation. */ + roleSchema?: SchemaFilter; + /** A related `roleSchema` exists. */ + roleSchemaExists?: boolean; +} +export interface SqlActionFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlActionFilter[]; + /** Checks for any expressions in this list. */ + or?: SqlActionFilter[]; + /** Negates the expression. */ + not?: SqlActionFilter; +} +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface WebauthnSettingFilter { + /** 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 `credentialsSchemaId` field. */ + credentialsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionsSchemaId` field. */ + sessionsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsSchemaId` field. */ + sessionSecretsSchemaId?: 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 `userFieldId` field. */ + userFieldId?: 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 `challengeExpirySeconds` field. */ + challengeExpirySeconds?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnSettingFilter[]; + /** Negates the expression. */ + not?: WebauthnSettingFilter; + /** Filter by the object’s `credentialsSchema` relation. */ + credentialsSchema?: SchemaFilter; + /** A related `credentialsSchema` exists. */ + credentialsSchemaExists?: boolean; + /** Filter by the object’s `credentialsTable` relation. */ + credentialsTable?: TableFilter; + /** A related `credentialsTable` exists. */ + credentialsTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `sessionCredentialsTable` relation. */ + sessionCredentialsTable?: TableFilter; + /** A related `sessionCredentialsTable` exists. */ + sessionCredentialsTableExists?: boolean; + /** Filter by the object’s `sessionSecretsSchema` relation. */ + sessionSecretsSchema?: SchemaFilter; + /** A related `sessionSecretsSchema` exists. */ + sessionSecretsSchemaExists?: boolean; + /** Filter by the object’s `sessionSecretsTable` relation. */ + sessionSecretsTable?: TableFilter; + /** A related `sessionSecretsTable` exists. */ + sessionSecretsTableExists?: boolean; + /** Filter by the object’s `sessionsSchema` relation. */ + sessionsSchema?: SchemaFilter; + /** A related `sessionsSchema` exists. */ + sessionsSchemaExists?: boolean; + /** Filter by the object’s `sessionsTable` relation. */ + sessionsTable?: TableFilter; + /** A related `sessionsTable` exists. */ + sessionsTableExists?: boolean; + /** Filter by the object’s `userField` relation. */ + userField?: FieldFilter; + /** 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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type SchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCHEMA_NAME_ASC' + | 'SCHEMA_NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'TIMESTAMPS_ASC' + | 'TIMESTAMPS_DESC' + | 'PEOPLESTAMPS_ASC' + | 'PEOPLESTAMPS_DESC' + | 'PLURAL_NAME_ASC' + | 'PLURAL_NAME_DESC' + | 'SINGULAR_NAME_ASC' + | 'SINGULAR_NAME_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'PARTITIONED_ASC' + | 'PARTITIONED_DESC' + | 'PARTITION_STRATEGY_ASC' + | 'PARTITION_STRATEGY_DESC' + | 'PARTITION_KEY_NAMES_ASC' + | 'PARTITION_KEY_NAMES_DESC' + | 'PARTITION_KEY_TYPES_ASC' + | 'PARTITION_KEY_TYPES_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CheckConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'EXPR_ASC' + | 'EXPR_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'API_REQUIRED_ASC' + | 'API_REQUIRED_DESC' + | 'DEFAULT_VALUE_ASC' + | 'DEFAULT_VALUE_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_ORDER_ASC' + | 'FIELD_ORDER_DESC' + | 'REGEXP_ASC' + | 'REGEXP_DESC' + | 'CHK_ASC' + | 'CHK_DESC' + | 'CHK_EXPR_ASC' + | 'CHK_EXPR_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type SpatialRelationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OPERATOR_ASC' + | 'OPERATOR_DESC' + | 'PARAM_NAME_ASC' + | 'PARAM_NAME_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ForeignKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_IDS_ASC' + | 'REF_FIELD_IDS_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'UPDATE_ACTION_ASC' + | 'UPDATE_ACTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FullTextSearchOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'WEIGHTS_ASC' + | 'WEIGHTS_DESC' + | 'LANGS_ASC' + | 'LANGS_DESC' + | 'LANG_COLUMN_ASC' + | 'LANG_COLUMN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type IndexOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'INCLUDE_FIELD_IDS_ASC' + | 'INCLUDE_FIELD_IDS_DESC' + | 'ACCESS_METHOD_ASC' + | 'ACCESS_METHOD_DESC' + | 'INDEX_PARAMS_ASC' + | 'INDEX_PARAMS_DESC' + | 'WHERE_CLAUSE_ASC' + | 'WHERE_CLAUSE_DESC' + | 'IS_UNIQUE_ASC' + | 'IS_UNIQUE_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'OP_CLASSES_ASC' + | 'OP_CLASSES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PolicyOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'PERMISSIVE_ASC' + | 'PERMISSIVE_DESC' + | 'DISABLED_ASC' + | 'DISABLED_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PrimaryKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TriggerOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'FUNCTION_NAME_ASC' + | 'FUNCTION_NAME_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type UniqueConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ViewOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'VIEW_TYPE_ASC' + | 'VIEW_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FILTER_TYPE_ASC' + | 'FILTER_TYPE_DESC' + | 'FILTER_DATA_ASC' + | 'FILTER_DATA_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type ViewTableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'JOIN_ORDER_ASC' + | 'JOIN_ORDER_DESC'; +export type ViewGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'WITH_GRANT_OPTION_ASC' + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +export type ViewRuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC'; +export type EmbeddingChunkOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'EMBEDDING_FIELD_ID_ASC' + | 'EMBEDDING_FIELD_ID_DESC' + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CHUNKS_TABLE_NAME_ASC' + | 'CHUNKS_TABLE_NAME_DESC' + | 'CONTENT_FIELD_NAME_ASC' + | 'CONTENT_FIELD_NAME_DESC' + | 'DIMENSIONS_ASC' + | 'DIMENSIONS_DESC' + | 'METRIC_ASC' + | 'METRIC_DESC' + | 'CHUNK_SIZE_ASC' + | 'CHUNK_SIZE_DESC' + | 'CHUNK_OVERLAP_ASC' + | 'CHUNK_OVERLAP_DESC' + | 'CHUNK_STRATEGY_ASC' + | 'CHUNK_STRATEGY_DESC' + | 'METADATA_FIELDS_ASC' + | 'METADATA_FIELDS_DESC' + | 'SEARCH_INDEXES_ASC' + | 'SEARCH_INDEXES_DESC' + | 'ENQUEUE_CHUNKING_JOB_ASC' + | 'ENQUEUE_CHUNKING_JOB_DESC' + | 'CHUNKING_TASK_NAME_ASC' + | 'CHUNKING_TASK_NAME_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_PROVIDER_ASC' + | 'EMBEDDING_PROVIDER_DESC' + | 'PARENT_FK_FIELD_ID_ASC' + | 'PARENT_FK_FIELD_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type SchemaGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type DefaultPrivilegeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +export type EnumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'VALUES_ASC' + | 'VALUES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type ApiSchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +export type ApiModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type DomainOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC'; +export type SiteMetadatumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC'; +export type SiteModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type SiteThemeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'THEME_ASC' + | 'THEME_DESC'; +export type CorsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC'; +export type TriggerFunctionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PartitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'STRATEGY_ASC' + | 'STRATEGY_DESC' + | 'PARTITION_KEY_ID_ASC' + | 'PARTITION_KEY_ID_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'NAMING_PATTERN_ASC' + | 'NAMING_PATTERN_DESC' + | 'IS_PARENTED_ASC' + | 'IS_PARENTED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type DatabaseTransferOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'SOURCE_APPROVED_ASC' + | 'SOURCE_APPROVED_DESC' + | 'TARGET_APPROVED_ASC' + | 'TARGET_APPROVED_DESC' + | 'SOURCE_APPROVED_AT_ASC' + | 'SOURCE_APPROVED_AT_DESC' + | 'TARGET_APPROVED_AT_ASC' + | 'TARGET_APPROVED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INITIATED_BY_ASC' + | 'INITIATED_BY_DESC' + | 'NOTES_ASC' + | 'NOTES_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC'; +export type ApiOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC'; +export type SiteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC' + | 'FAVICON_ASC' + | 'FAVICON_DESC' + | 'APPLE_TOUCH_ICON_ASC' + | 'APPLE_TOUCH_ICON_DESC' + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC'; +export type AppOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'APP_IMAGE_ASC' + | 'APP_IMAGE_DESC' + | 'APP_STORE_LINK_ASC' + | 'APP_STORE_LINK_DESC' + | 'APP_STORE_ID_ASC' + | 'APP_STORE_ID_DESC' + | 'APP_ID_PREFIX_ASC' + | 'APP_ID_PREFIX_DESC' + | 'PLAY_STORE_LINK_ASC' + | 'PLAY_STORE_LINK_DESC'; +export type ApiSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +export type MigrateFileOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type PubkeySettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; +export type DatabaseOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SCHEMA_HASH_ASC' + | 'SCHEMA_HASH_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RlsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'AUTHENTICATE_SCHEMA_ID_ASC' + | 'AUTHENTICATE_SCHEMA_ID_DESC' + | 'ROLE_SCHEMA_ID_ASC' + | 'ROLE_SCHEMA_ID_DESC' + | 'AUTHENTICATE_FUNCTION_ID_ASC' + | 'AUTHENTICATE_FUNCTION_ID_DESC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; +export type SqlActionOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type DatabaseSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +export type 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'; +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; + function: { + databaseId: string; + schemaId: string; + name: string; + }; +} +export interface FunctionPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; +} +export interface UpdateFunctionInput { + clientMutationId?: string; + id: string; + functionPatch: FunctionPatch; +} +export interface DeleteFunctionInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaInput { + clientMutationId?: string; + schema: { + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + }; +} +export interface SchemaPatch { + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + isPublic?: boolean | null; +} +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + schemaPatch: SchemaPatch; +} +export interface DeleteSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableInput { + clientMutationId?: string; + table: { + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + inheritsId?: string; + }; +} +export interface TablePatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string[] | null; + partitioned?: boolean | null; + partitionStrategy?: string | null; + partitionKeyNames?: string[] | null; + partitionKeyTypes?: string[] | null; + inheritsId?: string | null; +} +export interface UpdateTableInput { + clientMutationId?: string; + id: string; + tablePatch: TablePatch; +} +export interface DeleteTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateCheckConstraintInput { + clientMutationId?: string; + checkConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface CheckConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateCheckConstraintInput { + clientMutationId?: string; + id: string; + checkConstraintPatch: CheckConstraintPatch; +} +export interface DeleteCheckConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFieldInput { + clientMutationId?: string; + field: { + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: Record; + type: Record; + fieldOrder?: number; + regexp?: string; + chk?: Record; + chkExpr?: Record; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + }; +} +export interface FieldPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + defaultValue?: Record | null; + type?: Record | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; +} +export interface UpdateFieldInput { + clientMutationId?: string; + id: string; + fieldPatch: FieldPatch; +} +export interface DeleteFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateSpatialRelationInput { + clientMutationId?: string; + spatialRelation: { + databaseId?: string; + tableId: string; + fieldId: string; + refTableId: string; + refFieldId: string; + name: string; + operator: string; + paramName?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface SpatialRelationPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + name?: string | null; + operator?: string | null; + paramName?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateSpatialRelationInput { + clientMutationId?: string; + id: string; + spatialRelationPatch: SpatialRelationPatch; +} +export interface DeleteSpatialRelationInput { + clientMutationId?: string; + id: string; +} +export interface CreateForeignKeyConstraintInput { + clientMutationId?: string; + foreignKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ForeignKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + refTableId?: string | null; + refFieldIds?: string[] | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateForeignKeyConstraintInput { + clientMutationId?: string; + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +export interface DeleteForeignKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFullTextSearchInput { + clientMutationId?: string; + fullTextSearch: { + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + langColumn?: string; + }; +} +export interface FullTextSearchPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; + langColumn?: string | null; +} +export interface UpdateFullTextSearchInput { + clientMutationId?: string; + id: string; + fullTextSearchPatch: FullTextSearchPatch; +} +export interface DeleteFullTextSearchInput { + clientMutationId?: string; + id: string; +} +export interface CreateIndexInput { + clientMutationId?: string; + index: { + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: Record; + whereClause?: Record; + isUnique?: boolean; + options?: Record; + opClasses?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface IndexPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + options?: Record | null; + opClasses?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateIndexInput { + clientMutationId?: string; + id: string; + indexPatch: IndexPatch; +} +export interface DeleteIndexInput { + clientMutationId?: string; + id: string; +} +export interface CreatePolicyInput { + clientMutationId?: string; + policy: { + databaseId?: string; + tableId: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PolicyPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + granteeName?: string | null; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdatePolicyInput { + clientMutationId?: string; + id: string; + policyPatch: PolicyPatch; +} +export interface DeletePolicyInput { + clientMutationId?: string; + id: string; +} +export interface CreatePrimaryKeyConstraintInput { + clientMutationId?: string; + primaryKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PrimaryKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdatePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; +} +export interface DeletePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + tableGrant: { + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + }; +} +export interface TableGrantPatch { + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + granteeName?: string | null; + fieldIds?: string[] | null; + isGrant?: boolean | null; +} +export interface UpdateTableGrantInput { + clientMutationId?: string; + id: string; + tableGrantPatch: TableGrantPatch; +} +export interface DeleteTableGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateTriggerInput { + clientMutationId?: string; + trigger: { + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface TriggerPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateTriggerInput { + clientMutationId?: string; + id: string; + triggerPatch: TriggerPatch; +} +export interface DeleteTriggerInput { + clientMutationId?: string; + id: string; +} +export interface CreateUniqueConstraintInput { + clientMutationId?: string; + uniqueConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface UniqueConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateUniqueConstraintInput { + clientMutationId?: string; + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; +} +export interface DeleteUniqueConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewInput { + clientMutationId?: string; + view: { + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: Record; + filterType?: string; + filterData?: Record; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ViewPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateViewInput { + clientMutationId?: string; + id: string; + viewPatch: ViewPatch; +} +export interface DeleteViewInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewTableInput { + clientMutationId?: string; + viewTable: { + viewId: string; + tableId: string; + joinOrder?: number; + }; +} +export interface ViewTablePatch { + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + viewTablePatch: ViewTablePatch; +} +export interface DeleteViewTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + viewGrant: { + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; + }; +} +export interface ViewGrantPatch { + databaseId?: string | null; + viewId?: string | null; + granteeName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; + isGrant?: boolean | null; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + viewGrantPatch: ViewGrantPatch; +} +export interface DeleteViewGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewRuleInput { + clientMutationId?: string; + viewRule: { + databaseId?: string; + viewId: string; + name: string; + event: string; + action?: string; + }; +} +export interface ViewRulePatch { + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + event?: string | null; + action?: string | null; +} +export interface UpdateViewRuleInput { + clientMutationId?: string; + id: string; + viewRulePatch: ViewRulePatch; +} +export interface DeleteViewRuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + embeddingChunk: { + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: Record; + searchIndexes?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + }; +} +export interface EmbeddingChunkPatch { + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + searchIndexes?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + embeddingModel?: string | null; + embeddingProvider?: string | null; + parentFkFieldId?: string | null; +} +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; +} +export interface DeleteEmbeddingChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaGrantInput { + clientMutationId?: string; + schemaGrant: { + databaseId?: string; + schemaId: string; + granteeName: string; + }; +} +export interface SchemaGrantPatch { + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + schemaGrantPatch: SchemaGrantPatch; +} +export interface DeleteSchemaGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + defaultPrivilege: { + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; + }; +} +export interface DefaultPrivilegePatch { + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} +export interface CreateEnumInput { + clientMutationId?: string; + enum: { + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface EnumPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateEnumInput { + clientMutationId?: string; + id: string; + enumPatch: EnumPatch; +} +export interface DeleteEnumInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiSchemaInput { + clientMutationId?: string; + apiSchema: { + databaseId: string; + schemaId: string; + apiId: string; + }; +} +export interface ApiSchemaPatch { + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + id: string; + apiSchemaPatch: ApiSchemaPatch; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + apiModule: { + databaseId: string; + apiId: string; + name: string; + data: Record; + }; +} +export interface ApiModulePatch { + databaseId?: string | null; + apiId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + id: string; + apiModulePatch: ApiModulePatch; +} +export interface DeleteApiModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDomainInput { + clientMutationId?: string; + domain: { + databaseId: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; + }; +} +export interface DomainPatch { + databaseId?: string | null; + apiId?: string | null; + siteId?: string | null; + subdomain?: ConstructiveInternalTypeHostname | null; + domain?: ConstructiveInternalTypeHostname | null; +} +export interface UpdateDomainInput { + clientMutationId?: string; + id: string; + domainPatch: DomainPatch; +} +export interface DeleteDomainInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + siteMetadatum: { + databaseId: string; + siteId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + }; +} +export interface SiteMetadatumPatch { + databaseId?: string | null; + siteId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + ogImageUpload?: File | null; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + id: string; + siteMetadatumPatch: SiteMetadatumPatch; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteModuleInput { + clientMutationId?: string; + siteModule: { + databaseId: string; + siteId: string; + name: string; + data: Record; + }; +} +export interface SiteModulePatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateSiteModuleInput { + clientMutationId?: string; + id: string; + siteModulePatch: SiteModulePatch; +} +export interface DeleteSiteModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteThemeInput { + clientMutationId?: string; + siteTheme: { + databaseId: string; + siteId: string; + theme: Record; + }; +} +export interface SiteThemePatch { + databaseId?: string | null; + siteId?: string | null; + theme?: Record | null; +} +export interface UpdateSiteThemeInput { + clientMutationId?: string; + id: string; + siteThemePatch: SiteThemePatch; +} +export interface DeleteSiteThemeInput { + clientMutationId?: string; + id: string; +} +export interface CreateCorsSettingInput { + clientMutationId?: string; + corsSetting: { + databaseId: string; + apiId?: string; + allowedOrigins?: string[]; + }; +} +export interface CorsSettingPatch { + databaseId?: string | null; + apiId?: string | null; + allowedOrigins?: string[] | null; +} +export interface UpdateCorsSettingInput { + clientMutationId?: string; + id: string; + corsSettingPatch: CorsSettingPatch; +} +export interface DeleteCorsSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateTriggerFunctionInput { + clientMutationId?: string; + triggerFunction: { + databaseId: string; + name: string; + code?: string; + }; +} +export interface TriggerFunctionPatch { + databaseId?: string | null; + name?: string | null; + code?: string | null; +} +export interface UpdateTriggerFunctionInput { + clientMutationId?: string; + id: string; + triggerFunctionPatch: TriggerFunctionPatch; +} +export interface DeleteTriggerFunctionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePartitionInput { + clientMutationId?: string; + partition: { + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + }; +} +export interface PartitionPatch { + databaseId?: string | null; + tableId?: string | null; + strategy?: string | null; + partitionKeyId?: string | null; + interval?: string | null; + retention?: string | null; + retentionKeepTable?: boolean | null; + premake?: number | null; + namingPattern?: string | null; + isParented?: boolean | null; +} +export interface UpdatePartitionInput { + clientMutationId?: string; + id: string; + partitionPatch: PartitionPatch; +} +export interface DeletePartitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + databaseTransfer: { + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + completedAt?: string; + }; +} +export interface DatabaseTransferPatch { + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + databaseTransferPatch: DatabaseTransferPatch; +} +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiInput { + clientMutationId?: string; + api: { + databaseId: string; + name: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; + }; +} +export interface ApiPatch { + databaseId?: string | null; + name?: string | null; + dbname?: string | null; + roleName?: string | null; + anonRole?: string | null; + isPublic?: boolean | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteInput { + clientMutationId?: string; + site: { + databaseId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + favicon?: ConstructiveInternalTypeAttachment; + appleTouchIcon?: ConstructiveInternalTypeImage; + logo?: ConstructiveInternalTypeImage; + dbname?: string; + }; +} +export interface SitePatch { + databaseId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + favicon?: ConstructiveInternalTypeAttachment | null; + appleTouchIcon?: ConstructiveInternalTypeImage | null; + logo?: ConstructiveInternalTypeImage | null; + dbname?: string | null; + ogImageUpload?: File | null; + faviconUpload?: File | null; + appleTouchIconUpload?: File | null; + logoUpload?: File | null; +} +export interface UpdateSiteInput { + clientMutationId?: string; + id: string; + sitePatch: SitePatch; +} +export interface DeleteSiteInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppInput { + clientMutationId?: string; + app: { + databaseId: string; + siteId: string; + name?: string; + appImage?: ConstructiveInternalTypeImage; + appStoreLink?: ConstructiveInternalTypeUrl; + appStoreId?: string; + appIdPrefix?: string; + playStoreLink?: ConstructiveInternalTypeUrl; + }; +} +export interface AppPatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + appImage?: ConstructiveInternalTypeImage | null; + appStoreLink?: ConstructiveInternalTypeUrl | null; + appStoreId?: string | null; + appIdPrefix?: string | null; + playStoreLink?: ConstructiveInternalTypeUrl | null; + appImageUpload?: File | null; +} +export interface UpdateAppInput { + clientMutationId?: string; + id: string; + appPatch: AppPatch; +} +export interface DeleteAppInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiSettingInput { + clientMutationId?: string; + apiSetting: { + databaseId: string; + apiId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: Record; + }; +} +export interface ApiSettingPatch { + databaseId?: string | null; + apiId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + enableI18N?: boolean | null; + options?: Record | null; +} +export interface UpdateApiSettingInput { + clientMutationId?: string; + id: string; + apiSettingPatch: ApiSettingPatch; +} +export interface DeleteApiSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { + clientMutationId?: string; + id: string; + migrateFilePatch: MigrateFilePatch; +} +export interface DeleteMigrateFileInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} +export interface CreatePubkeySettingInput { + clientMutationId?: string; + pubkeySetting: { + databaseId: string; + schemaId?: string; + cryptoNetwork?: string; + userField?: string; + signUpWithKeyFunctionId?: string; + signInRequestChallengeFunctionId?: string; + signInRecordFailureFunctionId?: string; + signInWithChallengeFunctionId?: string; + }; +} +export interface PubkeySettingPatch { + databaseId?: string | null; + schemaId?: string | null; + cryptoNetwork?: string | null; + userField?: string | null; + signUpWithKeyFunctionId?: string | null; + signInRequestChallengeFunctionId?: string | null; + signInRecordFailureFunctionId?: string | null; + signInWithChallengeFunctionId?: string | null; +} +export interface UpdatePubkeySettingInput { + clientMutationId?: string; + id: string; + pubkeySettingPatch: PubkeySettingPatch; +} +export interface DeletePubkeySettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseInput { + clientMutationId?: string; + database: { + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + }; +} +export interface DatabasePatch { + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; +} +export interface UpdateDatabaseInput { + clientMutationId?: string; + id: string; + databasePatch: DatabasePatch; +} +export interface DeleteDatabaseInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsSettingInput { + clientMutationId?: string; + rlsSetting: { + databaseId: string; + authenticateSchemaId?: string; + roleSchemaId?: string; + authenticateFunctionId?: string; + authenticateStrictFunctionId?: string; + currentRoleFunctionId?: string; + currentRoleIdFunctionId?: string; + currentUserAgentFunctionId?: string; + currentIpAddressFunctionId?: string; + }; +} +export interface RlsSettingPatch { + databaseId?: string | null; + authenticateSchemaId?: string | null; + roleSchemaId?: string | null; + authenticateFunctionId?: string | null; + authenticateStrictFunctionId?: string | null; + currentRoleFunctionId?: string | null; + currentRoleIdFunctionId?: string | null; + currentUserAgentFunctionId?: string | null; + currentIpAddressFunctionId?: string | null; +} +export interface UpdateRlsSettingInput { + clientMutationId?: string; + id: string; + rlsSettingPatch: RlsSettingPatch; +} +export interface DeleteRlsSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateSqlActionInput { + clientMutationId?: string; + sqlAction: { + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface SqlActionPatch { + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateSqlActionInput { + clientMutationId?: string; + id: number; + sqlActionPatch: SqlActionPatch; +} +export interface DeleteSqlActionInput { + clientMutationId?: string; + id: number; +} +export interface CreateDatabaseSettingInput { + clientMutationId?: string; + databaseSetting: { + databaseId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: Record; + }; +} +export interface DatabaseSettingPatch { + databaseId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + enableI18N?: boolean | null; + options?: Record | null; +} +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + id: string; + databaseSettingPatch: DatabaseSettingPatch; +} +export interface DeleteDatabaseSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnSettingInput { + clientMutationId?: string; + webauthnSetting: { + databaseId: string; + schemaId?: string; + credentialsSchemaId?: string; + sessionsSchemaId?: string; + sessionSecretsSchemaId?: string; + credentialsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; + userFieldId?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpirySeconds?: string; + }; +} +export interface WebauthnSettingPatch { + databaseId?: string | null; + schemaId?: string | null; + credentialsSchemaId?: string | null; + sessionsSchemaId?: string | null; + sessionSecretsSchemaId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + userFieldId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpirySeconds?: string | null; +} +export interface UpdateWebauthnSettingInput { + clientMutationId?: string; + id: string; + webauthnSettingPatch: WebauthnSettingPatch; +} +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: { + tables: 'Table', + schemaGrants: 'SchemaGrant', + views: 'View', + defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + functions: 'Function', + apiSchemas: 'ApiSchema', + }, + Table: { + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + tableGrants: 'TableGrant', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewTables: 'ViewTable', + embeddingChunksByChunksTableId: 'EmbeddingChunk', + embeddingChunks: 'EmbeddingChunk', + spatialRelationsByRefTableId: 'SpatialRelation', + spatialRelations: 'SpatialRelation', + }, + Field: { + spatialRelations: 'SpatialRelation', + spatialRelationsByRefFieldId: 'SpatialRelation', + }, + View: { + viewTables: 'ViewTable', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + }, + Api: { + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + domains: 'Domain', + corsSettings: 'CorsSetting', + }, + Site: { + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + }, + Database: { + schemas: 'Schema', + tables: 'Table', + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + schemaGrants: 'SchemaGrant', + tableGrants: 'TableGrant', + triggerFunctions: 'TriggerFunction', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + embeddingChunks: 'EmbeddingChunk', + spatialRelations: 'SpatialRelation', + functions: 'Function', + partitions: 'Partition', + databaseTransfers: 'DatabaseTransfer', + apis: 'Api', + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + sites: 'Site', + apps: 'App', + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + apiSettings: 'ApiSetting', + corsSettings: 'CorsSetting', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface AcceptDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +export interface CancelDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +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[]; +} +export interface ApplyRlsInput { + clientMutationId?: string; + tableId?: string; + grants?: Record; + policyType?: string; + vars?: Record; + fieldIds?: string[]; + permissive?: boolean; + name?: string; +} +export interface CreateUserDatabaseInput { + clientMutationId?: string; + databaseName?: string; + ownerId?: string; + includeInvites?: boolean; + includeGroups?: boolean; + includeLevels?: boolean; + bitlen?: number; + tokensExpiration?: IntervalInput; +} +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 ObjectCategory fields. All fields are combined with a logical ‘and.’ */ +export interface ObjectCategoryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ObjectCategory; + /** Not equal to the specified value. */ + notEqualTo?: ObjectCategory; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ObjectCategory; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ObjectCategory; + /** Included in the specified list. */ + in?: ObjectCategory[]; + /** Not included in the specified list. */ + notIn?: ObjectCategory[]; + /** Less than the specified value. */ + lessThan?: ObjectCategory; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ObjectCategory; + /** Greater than the specified value. */ + greaterThan?: ObjectCategory; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ObjectCategory; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeHostnameFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeHostname; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeHostname; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeHostname[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeHostname[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeHostname; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeHostname; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** 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; +} +/** 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 `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeAttachmentFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeAttachment; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeAttachment; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeAttachment[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeAttachment[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeAttachment; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeAttachment; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** 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; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUrlFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUrl; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUrl; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUrl[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUrl[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUrl; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUrl; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** 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; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; +} +/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaFilter; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFunctionFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPartitionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PartitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PartitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PartitionFilter; +} +/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDatabaseTransferFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseTransferFilter; + /** Filters to entities where every related entity matches. */ + every?: DatabaseTransferFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseTransferFilter; +} +/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiFilter; +} +/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteFilter; +} +/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyAppFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppFilter; + /** Filters to entities where every related entity matches. */ + every?: AppFilter; + /** Filters to entities where no related entity matches. */ + none?: AppFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSettingFilter; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** 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. */ + 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `partitioned` field. */ + partitioned?: BooleanFilter; + /** Filter by the object’s `partitionStrategy` field. */ + partitionStrategy?: StringFilter; + /** Filter by the object’s `partitionKeyNames` field. */ + partitionKeyNames?: StringListFilter; + /** Filter by the object’s `partitionKeyTypes` field. */ + partitionKeyTypes?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `inherits` relation. */ + inherits?: TableFilter; + /** A related `inherits` exists. */ + inheritsExists?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: TableToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: TableToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: TableToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: TableToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: TableToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: TableToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: TableToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: TableToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: TableToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: TableToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ + spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; + /** `spatialRelationsByRefTableId` exist. */ + spatialRelationsByRefTableIdExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: TableToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `partition` relation. */ + partition?: PartitionFilter; + /** A related `partition` exists. */ + partitionExists?: boolean; +} +/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** A related `table` exists. */ + tableExists?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: ViewToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: ViewToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: ViewToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; +} +/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface EnumFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionFilter[]; + /** Negates the expression. */ + not?: FunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** 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. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: JSONFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** 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?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: FieldToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ + spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; + /** `spatialRelationsByRefFieldId` exist. */ + spatialRelationsByRefFieldIdExist?: boolean; +} +/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface ForeignKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface FullTextSearchFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: StringListFilter; + /** Filter by the object’s `langColumn` field. */ + langColumn?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface IndexFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `opClasses` field. */ + opClasses?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: IndexFilter[]; + /** Negates the expression. */ + not?: IndexFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface PolicyFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface PrimaryKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface UniqueConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface EmbeddingChunkFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `searchIndexes` field. */ + searchIndexes?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringFilter; + /** Filter by the object’s `embeddingProvider` field. */ + embeddingProvider?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: 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?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface SpatialRelationFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `operator` field. */ + operator?: StringFilter; + /** Filter by the object’s `paramName` field. */ + paramName?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: SpatialRelationFilter[]; + /** Checks for any expressions in this list. */ + or?: SpatialRelationFilter[]; + /** Negates the expression. */ + not?: SpatialRelationFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `field` relation. */ + field?: FieldFilter; + /** Filter by the object’s `refField` relation. */ + refField?: FieldFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** A related `site` exists. */ + siteExists?: boolean; +} +/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface CorsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CorsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: CorsSettingFilter[]; + /** Negates the expression. */ + not?: CorsSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: SchemaToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; +} +/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFunctionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface PartitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `strategy` field. */ + strategy?: StringFilter; + /** Filter by the object’s `partitionKeyId` field. */ + partitionKeyId?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `namingPattern` field. */ + namingPattern?: StringFilter; + /** Filter by the object’s `isParented` field. */ + isParented?: 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?: PartitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PartitionFilter[]; + /** Negates the expression. */ + not?: PartitionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `partitionKey` relation. */ + partitionKey?: FieldFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: ApiToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: ApiToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; +} +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: 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. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `app` relation. */ + app?: AppFilter; + /** A related `app` exists. */ + appExists?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: SiteToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: SiteToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; +} +/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ApiSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSettingFilter[]; + /** Negates the expression. */ + not?: ApiSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; + /** Filter by the object’s `schemas` relation. */ + schemas?: DatabaseToManySchemaFilter; + /** `schemas` exist. */ + schemasExist?: boolean; + /** Filter by the object’s `tables` relation. */ + tables?: DatabaseToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: DatabaseToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: DatabaseToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: DatabaseToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggerFunctions` relation. */ + triggerFunctions?: DatabaseToManyTriggerFunctionFilter; + /** `triggerFunctions` exist. */ + triggerFunctionsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: DatabaseToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: DatabaseToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: DatabaseToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: DatabaseToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: DatabaseToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `partitions` relation. */ + partitions?: DatabaseToManyPartitionFilter; + /** `partitions` exist. */ + partitionsExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `apis` relation. */ + apis?: DatabaseToManyApiFilter; + /** `apis` exist. */ + apisExist?: boolean; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: DatabaseToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: DatabaseToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `sites` relation. */ + sites?: DatabaseToManySiteFilter; + /** `sites` exist. */ + sitesExist?: boolean; + /** Filter by the object’s `apps` relation. */ + apps?: DatabaseToManyAppFilter; + /** `apps` exist. */ + appsExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: DatabaseToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: DatabaseToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: DatabaseToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: DatabaseToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `databaseSetting` relation. */ + databaseSetting?: DatabaseSettingFilter; + /** A related `databaseSetting` exists. */ + databaseSettingExists?: boolean; + /** Filter by the object’s `apiSettings` relation. */ + apiSettings?: DatabaseToManyApiSettingFilter; + /** `apiSettings` exist. */ + apiSettingsExist?: boolean; + /** Filter by the object’s `rlsSetting` relation. */ + rlsSetting?: RlsSettingFilter; + /** A related `rlsSetting` exists. */ + rlsSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: DatabaseToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `pubkeySetting` relation. */ + pubkeySetting?: PubkeySettingFilter; + /** A related `pubkeySetting` exists. */ + pubkeySettingExists?: boolean; + /** Filter by the object’s `webauthnSetting` relation. */ + webauthnSetting?: WebauthnSettingFilter; + /** A related `webauthnSetting` exists. */ + webauthnSettingExists?: boolean; +} +/** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ +export interface UUIDListFilter { + /** 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 Float fields. All fields are combined with a logical ‘and.’ */ +export interface FloatFilter { + /** 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; +} +/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface RlsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `authenticateSchemaId` field. */ + authenticateSchemaId?: UUIDFilter; + /** Filter by the object’s `roleSchemaId` field. */ + roleSchemaId?: UUIDFilter; + /** Filter by the object’s `authenticateFunctionId` field. */ + authenticateFunctionId?: UUIDFilter; + /** Filter by the object’s `authenticateStrictFunctionId` field. */ + authenticateStrictFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleFunctionId` field. */ + currentRoleFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleIdFunctionId` field. */ + currentRoleIdFunctionId?: UUIDFilter; + /** Filter by the object’s `currentUserAgentFunctionId` field. */ + currentUserAgentFunctionId?: UUIDFilter; + /** Filter by the object’s `currentIpAddressFunctionId` field. */ + currentIpAddressFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RlsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsSettingFilter[]; + /** Negates the expression. */ + not?: RlsSettingFilter; + /** Filter by the object’s `authenticateFunction` relation. */ + authenticateFunction?: FunctionFilter; + /** A related `authenticateFunction` exists. */ + authenticateFunctionExists?: boolean; + /** Filter by the object’s `authenticateSchema` relation. */ + authenticateSchema?: SchemaFilter; + /** A related `authenticateSchema` exists. */ + authenticateSchemaExists?: boolean; + /** Filter by the object’s `authenticateStrictFunction` relation. */ + authenticateStrictFunction?: FunctionFilter; + /** A related `authenticateStrictFunction` exists. */ + authenticateStrictFunctionExists?: boolean; + /** Filter by the object’s `currentIpAddressFunction` relation. */ + currentIpAddressFunction?: FunctionFilter; + /** A related `currentIpAddressFunction` exists. */ + currentIpAddressFunctionExists?: boolean; + /** Filter by the object’s `currentRoleFunction` relation. */ + currentRoleFunction?: FunctionFilter; + /** A related `currentRoleFunction` exists. */ + currentRoleFunctionExists?: boolean; + /** Filter by the object’s `currentRoleIdFunction` relation. */ + currentRoleIdFunction?: FunctionFilter; + /** A related `currentRoleIdFunction` exists. */ + currentRoleIdFunctionExists?: boolean; + /** Filter by the object’s `currentUserAgentFunction` relation. */ + currentUserAgentFunction?: FunctionFilter; + /** A related `currentUserAgentFunction` exists. */ + currentUserAgentFunctionExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `roleSchema` relation. */ + roleSchema?: SchemaFilter; + /** A related `roleSchema` exists. */ + roleSchemaExists?: boolean; +} +/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ +export interface PubkeySettingFilter { + /** 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 `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `signUpWithKeyFunctionId` field. */ + signUpWithKeyFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ + signInRequestChallengeFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRecordFailureFunctionId` field. */ + signInRecordFailureFunctionId?: UUIDFilter; + /** Filter by the object’s `signInWithChallengeFunctionId` field. */ + signInWithChallengeFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PubkeySettingFilter[]; + /** Checks for any expressions in this list. */ + or?: PubkeySettingFilter[]; + /** Negates the expression. */ + not?: PubkeySettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `signInRecordFailureFunction` relation. */ + signInRecordFailureFunction?: FunctionFilter; + /** A related `signInRecordFailureFunction` exists. */ + signInRecordFailureFunctionExists?: boolean; + /** Filter by the object’s `signInRequestChallengeFunction` relation. */ + signInRequestChallengeFunction?: FunctionFilter; + /** A related `signInRequestChallengeFunction` exists. */ + signInRequestChallengeFunctionExists?: boolean; + /** Filter by the object’s `signInWithChallengeFunction` relation. */ + signInWithChallengeFunction?: FunctionFilter; + /** A related `signInWithChallengeFunction` exists. */ + signInWithChallengeFunctionExists?: boolean; + /** Filter by the object’s `signUpWithKeyFunction` relation. */ + signUpWithKeyFunction?: FunctionFilter; + /** A related `signUpWithKeyFunction` exists. */ + signUpWithKeyFunctionExists?: boolean; +} +/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface WebauthnSettingFilter { + /** 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 `credentialsSchemaId` field. */ + credentialsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionsSchemaId` field. */ + sessionsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsSchemaId` field. */ + sessionSecretsSchemaId?: 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 `userFieldId` field. */ + userFieldId?: 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 `challengeExpirySeconds` field. */ + challengeExpirySeconds?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnSettingFilter[]; + /** Negates the expression. */ + not?: WebauthnSettingFilter; + /** Filter by the object’s `credentialsSchema` relation. */ + credentialsSchema?: SchemaFilter; + /** A related `credentialsSchema` exists. */ + credentialsSchemaExists?: boolean; + /** Filter by the object’s `credentialsTable` relation. */ + credentialsTable?: TableFilter; + /** A related `credentialsTable` exists. */ + credentialsTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `sessionCredentialsTable` relation. */ + sessionCredentialsTable?: TableFilter; + /** A related `sessionCredentialsTable` exists. */ + sessionCredentialsTableExists?: boolean; + /** Filter by the object’s `sessionSecretsSchema` relation. */ + sessionSecretsSchema?: SchemaFilter; + /** A related `sessionSecretsSchema` exists. */ + sessionSecretsSchemaExists?: boolean; + /** Filter by the object’s `sessionSecretsTable` relation. */ + sessionSecretsTable?: TableFilter; + /** A related `sessionSecretsTable` exists. */ + sessionSecretsTableExists?: boolean; + /** Filter by the object’s `sessionsSchema` relation. */ + sessionsSchema?: SchemaFilter; + /** A related `sessionsSchema` exists. */ + sessionsSchemaExists?: boolean; + /** Filter by the object’s `sessionsTable` relation. */ + sessionsTable?: TableFilter; + /** A related `sessionsTable` exists. */ + sessionsTableExists?: boolean; + /** Filter by the object’s `userField` relation. */ + userField?: FieldFilter; + /** A related `userField` exists. */ + userFieldExists?: boolean; +} +/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ +export interface BigIntFilter { + /** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface AcceptDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AcceptDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CancelDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type CancelDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +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; +} +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ApplyRlsPayload { + clientMutationId?: string | null; +} +export type ApplyRlsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface CreateUserDatabasePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateUserDatabasePayloadSelect = { + 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 CreateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was created by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type CreateFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface UpdateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was updated by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type UpdateFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface DeleteFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was deleted by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type DeleteFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface CreateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type CreateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type UpdateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type DeleteSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface CreateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type CreateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface UpdateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type UpdateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface DeleteTablePayload { + clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type DeleteTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type CreateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type UpdateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type DeleteCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface CreateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was created by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type CreateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface UpdateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was updated by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type UpdateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface DeleteFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was deleted by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type DeleteFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface CreateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was created by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type CreateSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface UpdateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was updated by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type UpdateSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface DeleteSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was deleted by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type DeleteSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface CreateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was created by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type CreateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was updated by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type UpdateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was deleted by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type DeleteForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was created by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type CreateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was updated by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type UpdateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was deleted by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type DeleteFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface CreateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was created by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type CreateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface UpdateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type UpdateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface DeleteIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type DeleteIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface CreatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type CreatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was updated by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type UpdatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface DeletePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was deleted by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type DeletePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was created by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type CreatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface UpdatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type UpdatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface DeletePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type DeletePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type CreateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type UpdateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was deleted by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type DeleteTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface CreateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type CreateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was updated by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type UpdateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was deleted by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type DeleteTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type CreateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was updated by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type UpdateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was deleted by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type DeleteUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface CreateViewPayload { + clientMutationId?: string | null; + /** The `View` that was created by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type CreateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface UpdateViewPayload { + clientMutationId?: string | null; + /** The `View` that was updated by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type UpdateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface DeleteViewPayload { + clientMutationId?: string | null; + /** The `View` that was deleted by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type DeleteViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface CreateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type CreateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type UpdateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type DeleteViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type CreateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type UpdateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type DeleteViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface CreateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was created by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type CreateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface UpdateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was updated by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type UpdateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface DeleteViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was deleted by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type DeleteViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type CreateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type UpdateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type DeleteEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was created by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type CreateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was updated by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type UpdateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was deleted by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type DeleteSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type CreateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type UpdateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type DeleteDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type CreateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type UpdateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type DeleteEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was created by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type CreateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was updated by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type UpdateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was deleted by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type DeleteApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface CreateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type CreateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface UpdateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type UpdateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface DeleteApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type DeleteApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface CreateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was created by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type CreateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface UpdateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was updated by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type UpdateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface DeleteDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was deleted by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type DeleteDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type CreateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type UpdateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type DeleteSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type CreateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type UpdateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type DeleteSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type CreateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type UpdateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type DeleteSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface CreateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was created by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type CreateCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface UpdateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was updated by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type UpdateCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface DeleteCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was deleted by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type DeleteCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface CreateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was created by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type CreateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was updated by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type UpdateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was deleted by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type DeleteTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface CreatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was created by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type CreatePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface UpdatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was updated by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type UpdatePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface DeletePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was deleted by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type DeletePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type CreateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type UpdateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type DeleteDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface CreateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type CreateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface UpdateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type UpdateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface DeleteApiPayload { + clientMutationId?: string | null; + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type DeleteApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface CreateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type CreateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface UpdateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type UpdateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface DeleteSitePayload { + clientMutationId?: string | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type DeleteSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface CreateAppPayload { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type CreateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface UpdateAppPayload { + clientMutationId?: string | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type UpdateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface DeleteAppPayload { + clientMutationId?: string | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type DeleteAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface CreateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was created by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type CreateApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface UpdateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was updated by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type UpdateApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface DeleteApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was deleted by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type DeleteApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was created by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type CreatePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface UpdatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was updated by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type UpdatePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface DeletePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was deleted by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type DeletePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface CreateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was created by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type CreateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was updated by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type UpdateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type DeleteDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface CreateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was created by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type CreateRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface UpdateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was updated by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type UpdateRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface DeleteRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was deleted by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type DeleteRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface CreateSqlActionPayload { + clientMutationId?: string | null; + /** The `SqlAction` that was created by this mutation. */ + sqlAction?: SqlAction | null; +} +export type CreateSqlActionPayloadSelect = { + clientMutationId?: boolean; + sqlAction?: { + select: SqlActionSelect; + }; +}; +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type CreateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type UpdateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type DeleteDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface CreateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was created by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type CreateWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +export interface UpdateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was updated by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type UpdateWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +export interface DeleteWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was deleted by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type DeleteWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +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 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; +}; +/** A `Function` edge in the connection. */ +export interface FunctionEdge { + cursor?: string | null; + /** The `Function` at the end of the edge. */ + node?: Function | null; +} +export type FunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionSelect; + }; +}; +/** A `Schema` edge in the connection. */ +export interface SchemaEdge { + cursor?: string | null; + /** The `Schema` at the end of the edge. */ + node?: Schema | null; +} +export type SchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaSelect; + }; +}; +/** A `Table` edge in the connection. */ +export interface TableEdge { + cursor?: string | null; + /** The `Table` at the end of the edge. */ + node?: Table | null; +} +export type TableEdgeSelect = { + cursor?: boolean; + node?: { + select: TableSelect; + }; +}; +/** A `CheckConstraint` edge in the connection. */ +export interface CheckConstraintEdge { + cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ + node?: CheckConstraint | null; +} +export type CheckConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: CheckConstraintSelect; + }; +}; +/** A `Field` edge in the connection. */ +export interface FieldEdge { + cursor?: string | null; + /** The `Field` at the end of the edge. */ + node?: Field | null; +} +export type FieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FieldSelect; + }; +}; +/** A `SpatialRelation` edge in the connection. */ +export interface SpatialRelationEdge { + cursor?: string | null; + /** The `SpatialRelation` at the end of the edge. */ + node?: SpatialRelation | null; +} +export type SpatialRelationEdgeSelect = { + cursor?: boolean; + node?: { + select: SpatialRelationSelect; + }; +}; +/** A `ForeignKeyConstraint` edge in the connection. */ +export interface ForeignKeyConstraintEdge { + cursor?: string | null; + /** The `ForeignKeyConstraint` at the end of the edge. */ + node?: ForeignKeyConstraint | null; +} +export type ForeignKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: ForeignKeyConstraintSelect; + }; +}; +/** A `FullTextSearch` edge in the connection. */ +export interface FullTextSearchEdge { + cursor?: string | null; + /** The `FullTextSearch` at the end of the edge. */ + node?: FullTextSearch | null; +} +export type FullTextSearchEdgeSelect = { + cursor?: boolean; + node?: { + select: FullTextSearchSelect; + }; +}; +/** A `Index` edge in the connection. */ +export interface IndexEdge { + cursor?: string | null; + /** The `Index` at the end of the edge. */ + node?: Index | null; +} +export type IndexEdgeSelect = { + cursor?: boolean; + node?: { + select: IndexSelect; + }; +}; +/** A `Policy` edge in the connection. */ +export interface PolicyEdge { + cursor?: string | null; + /** The `Policy` at the end of the edge. */ + node?: Policy | null; +} +export type PolicyEdgeSelect = { + cursor?: boolean; + node?: { + select: PolicySelect; + }; +}; +/** A `PrimaryKeyConstraint` edge in the connection. */ +export interface PrimaryKeyConstraintEdge { + cursor?: string | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ + node?: PrimaryKeyConstraint | null; +} +export type PrimaryKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: PrimaryKeyConstraintSelect; + }; +}; +/** A `TableGrant` edge in the connection. */ +export interface TableGrantEdge { + cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ + node?: TableGrant | null; +} +export type TableGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: TableGrantSelect; + }; +}; +/** A `Trigger` edge in the connection. */ +export interface TriggerEdge { + cursor?: string | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | null; +} +export type TriggerEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerSelect; + }; +}; +/** A `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +export type UniqueConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: UniqueConstraintSelect; + }; +}; +/** A `View` edge in the connection. */ +export interface ViewEdge { + cursor?: string | null; + /** The `View` at the end of the edge. */ + node?: View | null; +} +export type ViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewSelect; + }; +}; +/** A `ViewTable` edge in the connection. */ +export interface ViewTableEdge { + cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ + node?: ViewTable | null; +} +export type ViewTableEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewTableSelect; + }; +}; +/** A `ViewGrant` edge in the connection. */ +export interface ViewGrantEdge { + cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ + node?: ViewGrant | null; +} +export type ViewGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewGrantSelect; + }; +}; +/** A `ViewRule` edge in the connection. */ +export interface ViewRuleEdge { + cursor?: string | null; + /** The `ViewRule` at the end of the edge. */ + node?: ViewRule | null; +} +export type ViewRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewRuleSelect; + }; +}; +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} +export type EmbeddingChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: EmbeddingChunkSelect; + }; +}; +/** A `SchemaGrant` edge in the connection. */ +export interface SchemaGrantEdge { + cursor?: string | null; + /** The `SchemaGrant` at the end of the edge. */ + node?: SchemaGrant | null; +} +export type SchemaGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaGrantSelect; + }; +}; +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +export type DefaultPrivilegeEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultPrivilegeSelect; + }; +}; +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} +export type EnumEdgeSelect = { + cursor?: boolean; + node?: { + select: EnumSelect; + }; +}; +/** A `ApiSchema` edge in the connection. */ +export interface ApiSchemaEdge { + cursor?: string | null; + /** The `ApiSchema` at the end of the edge. */ + node?: ApiSchema | null; +} +export type ApiSchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSchemaSelect; + }; +}; +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { + cursor?: string | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +export type ApiModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiModuleSelect; + }; +}; +/** A `Domain` edge in the connection. */ +export interface DomainEdge { + cursor?: string | null; + /** The `Domain` at the end of the edge. */ + node?: Domain | null; +} +export type DomainEdgeSelect = { + cursor?: boolean; + node?: { + select: DomainSelect; + }; +}; +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ + node?: SiteMetadatum | null; +} +export type SiteMetadatumEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteMetadatumSelect; + }; +}; +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; +} +export type SiteModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteModuleSelect; + }; +}; +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { + cursor?: string | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; +} +export type SiteThemeEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteThemeSelect; + }; +}; +/** A `CorsSetting` edge in the connection. */ +export interface CorsSettingEdge { + cursor?: string | null; + /** The `CorsSetting` at the end of the edge. */ + node?: CorsSetting | null; +} +export type CorsSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: CorsSettingSelect; + }; +}; +/** A `TriggerFunction` edge in the connection. */ +export interface TriggerFunctionEdge { + cursor?: string | null; + /** The `TriggerFunction` at the end of the edge. */ + node?: TriggerFunction | null; +} +export type TriggerFunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerFunctionSelect; + }; +}; +/** A `Partition` edge in the connection. */ +export interface PartitionEdge { + cursor?: string | null; + /** The `Partition` at the end of the edge. */ + node?: Partition | null; +} +export type PartitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PartitionSelect; + }; +}; +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} +export type DatabaseTransferEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseTransferSelect; + }; +}; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; +/** A `App` edge in the connection. */ +export interface AppEdge { + cursor?: string | null; + /** The `App` at the end of the edge. */ + node?: App | null; +} +export type AppEdgeSelect = { + cursor?: boolean; + node?: { + select: AppSelect; + }; +}; +/** A `ApiSetting` edge in the connection. */ +export interface ApiSettingEdge { + cursor?: string | null; + /** The `ApiSetting` at the end of the edge. */ + node?: ApiSetting | null; +} +export type ApiSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSettingSelect; + }; +}; +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +export type NodeTypeRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: NodeTypeRegistrySelect; + }; +}; +/** A `PubkeySetting` edge in the connection. */ +export interface PubkeySettingEdge { + cursor?: string | null; + /** The `PubkeySetting` at the end of the edge. */ + node?: PubkeySetting | null; +} +export type PubkeySettingEdgeSelect = { + cursor?: boolean; + node?: { + select: PubkeySettingSelect; + }; +}; +/** A `Database` edge in the connection. */ +export interface DatabaseEdge { + cursor?: string | null; + /** The `Database` at the end of the edge. */ + node?: Database | null; +} +export type DatabaseEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSelect; + }; +}; +/** A `RlsSetting` edge in the connection. */ +export interface RlsSettingEdge { + cursor?: string | null; + /** The `RlsSetting` at the end of the edge. */ + node?: RlsSetting | null; +} +export type RlsSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsSettingSelect; + }; +}; +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} +export type DatabaseSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSettingSelect; + }; +}; +/** A `WebauthnSetting` edge in the connection. */ +export interface WebauthnSettingEdge { + cursor?: string | null; + /** The `WebauthnSetting` at the end of the edge. */ + node?: WebauthnSetting | null; +} +export type WebauthnSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnSettingSelect; + }; +}; diff --git a/sdk/constructive-react/src/public/orm/models/api.ts b/sdk/constructive-react/src/api/orm/models/api.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/api.ts rename to sdk/constructive-react/src/api/orm/models/api.ts diff --git a/sdk/constructive-react/src/public/orm/models/apiModule.ts b/sdk/constructive-react/src/api/orm/models/apiModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/apiModule.ts rename to sdk/constructive-react/src/api/orm/models/apiModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/apiSchema.ts b/sdk/constructive-react/src/api/orm/models/apiSchema.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/apiSchema.ts rename to sdk/constructive-react/src/api/orm/models/apiSchema.ts diff --git a/sdk/constructive-react/src/public/orm/models/apiSetting.ts b/sdk/constructive-react/src/api/orm/models/apiSetting.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/apiSetting.ts rename to sdk/constructive-react/src/api/orm/models/apiSetting.ts diff --git a/sdk/constructive-react/src/public/orm/models/app.ts b/sdk/constructive-react/src/api/orm/models/app.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/app.ts rename to sdk/constructive-react/src/api/orm/models/app.ts diff --git a/sdk/constructive-react/src/public/orm/models/astMigration.ts b/sdk/constructive-react/src/api/orm/models/astMigration.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/astMigration.ts rename to sdk/constructive-react/src/api/orm/models/astMigration.ts diff --git a/sdk/constructive-react/src/public/orm/models/checkConstraint.ts b/sdk/constructive-react/src/api/orm/models/checkConstraint.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/checkConstraint.ts rename to sdk/constructive-react/src/api/orm/models/checkConstraint.ts diff --git a/sdk/constructive-react/src/public/orm/models/corsSetting.ts b/sdk/constructive-react/src/api/orm/models/corsSetting.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/corsSetting.ts rename to sdk/constructive-react/src/api/orm/models/corsSetting.ts diff --git a/sdk/constructive-react/src/public/orm/models/database.ts b/sdk/constructive-react/src/api/orm/models/database.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/database.ts rename to sdk/constructive-react/src/api/orm/models/database.ts diff --git a/sdk/constructive-react/src/public/orm/models/databaseSetting.ts b/sdk/constructive-react/src/api/orm/models/databaseSetting.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/databaseSetting.ts rename to sdk/constructive-react/src/api/orm/models/databaseSetting.ts diff --git a/sdk/constructive-react/src/public/orm/models/databaseTransfer.ts b/sdk/constructive-react/src/api/orm/models/databaseTransfer.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/databaseTransfer.ts rename to sdk/constructive-react/src/api/orm/models/databaseTransfer.ts diff --git a/sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts b/sdk/constructive-react/src/api/orm/models/defaultPrivilege.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/defaultPrivilege.ts rename to sdk/constructive-react/src/api/orm/models/defaultPrivilege.ts diff --git a/sdk/constructive-react/src/public/orm/models/domain.ts b/sdk/constructive-react/src/api/orm/models/domain.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/domain.ts rename to sdk/constructive-react/src/api/orm/models/domain.ts diff --git a/sdk/constructive-react/src/public/orm/models/embeddingChunk.ts b/sdk/constructive-react/src/api/orm/models/embeddingChunk.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/embeddingChunk.ts rename to sdk/constructive-react/src/api/orm/models/embeddingChunk.ts diff --git a/sdk/constructive-react/src/public/orm/models/enum.ts b/sdk/constructive-react/src/api/orm/models/enum.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/enum.ts rename to sdk/constructive-react/src/api/orm/models/enum.ts diff --git a/sdk/constructive-react/src/public/orm/models/field.ts b/sdk/constructive-react/src/api/orm/models/field.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/field.ts rename to sdk/constructive-react/src/api/orm/models/field.ts diff --git a/sdk/constructive-react/src/public/orm/models/foreignKeyConstraint.ts b/sdk/constructive-react/src/api/orm/models/foreignKeyConstraint.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/foreignKeyConstraint.ts rename to sdk/constructive-react/src/api/orm/models/foreignKeyConstraint.ts diff --git a/sdk/constructive-react/src/public/orm/models/fullTextSearch.ts b/sdk/constructive-react/src/api/orm/models/fullTextSearch.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/fullTextSearch.ts rename to sdk/constructive-react/src/api/orm/models/fullTextSearch.ts diff --git a/sdk/constructive-react/src/public/orm/models/function.ts b/sdk/constructive-react/src/api/orm/models/function.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/function.ts rename to sdk/constructive-react/src/api/orm/models/function.ts diff --git a/sdk/constructive-react/src/api/orm/models/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts new file mode 100644 index 0000000000..326c47f972 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -0,0 +1,50 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { FunctionModel } from './function'; +export { SchemaModel } from './schema'; +export { TableModel } from './table'; +export { CheckConstraintModel } from './checkConstraint'; +export { FieldModel } from './field'; +export { SpatialRelationModel } from './spatialRelation'; +export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; +export { FullTextSearchModel } from './fullTextSearch'; +export { IndexModel } from './indexModel'; +export { PolicyModel } from './policy'; +export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; +export { TableGrantModel } from './tableGrant'; +export { TriggerModel } from './trigger'; +export { UniqueConstraintModel } from './uniqueConstraint'; +export { ViewModel } from './view'; +export { ViewTableModel } from './viewTable'; +export { ViewGrantModel } from './viewGrant'; +export { ViewRuleModel } from './viewRule'; +export { EmbeddingChunkModel } from './embeddingChunk'; +export { SchemaGrantModel } from './schemaGrant'; +export { DefaultPrivilegeModel } from './defaultPrivilege'; +export { EnumModel } from './enum'; +export { ApiSchemaModel } from './apiSchema'; +export { ApiModuleModel } from './apiModule'; +export { DomainModel } from './domain'; +export { SiteMetadatumModel } from './siteMetadatum'; +export { SiteModuleModel } from './siteModule'; +export { SiteThemeModel } from './siteTheme'; +export { CorsSettingModel } from './corsSetting'; +export { TriggerFunctionModel } from './triggerFunction'; +export { PartitionModel } from './partition'; +export { DatabaseTransferModel } from './databaseTransfer'; +export { ApiModel } from './api'; +export { SiteModel } from './site'; +export { AppModel } from './app'; +export { ApiSettingModel } from './apiSetting'; +export { MigrateFileModel } from './migrateFile'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { PubkeySettingModel } from './pubkeySetting'; +export { DatabaseModel } from './database'; +export { RlsSettingModel } from './rlsSetting'; +export { SqlActionModel } from './sqlAction'; +export { DatabaseSettingModel } from './databaseSetting'; +export { WebauthnSettingModel } from './webauthnSetting'; +export { AstMigrationModel } from './astMigration'; diff --git a/sdk/constructive-react/src/public/orm/models/indexModel.ts b/sdk/constructive-react/src/api/orm/models/indexModel.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/indexModel.ts rename to sdk/constructive-react/src/api/orm/models/indexModel.ts diff --git a/sdk/constructive-react/src/public/orm/models/migrateFile.ts b/sdk/constructive-react/src/api/orm/models/migrateFile.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/migrateFile.ts rename to sdk/constructive-react/src/api/orm/models/migrateFile.ts diff --git a/sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-react/src/api/orm/models/nodeTypeRegistry.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts rename to sdk/constructive-react/src/api/orm/models/nodeTypeRegistry.ts diff --git a/sdk/constructive-react/src/public/orm/models/partition.ts b/sdk/constructive-react/src/api/orm/models/partition.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/partition.ts rename to sdk/constructive-react/src/api/orm/models/partition.ts diff --git a/sdk/constructive-react/src/public/orm/models/policy.ts b/sdk/constructive-react/src/api/orm/models/policy.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/policy.ts rename to sdk/constructive-react/src/api/orm/models/policy.ts diff --git a/sdk/constructive-react/src/public/orm/models/primaryKeyConstraint.ts b/sdk/constructive-react/src/api/orm/models/primaryKeyConstraint.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/primaryKeyConstraint.ts rename to sdk/constructive-react/src/api/orm/models/primaryKeyConstraint.ts diff --git a/sdk/constructive-react/src/public/orm/models/pubkeySetting.ts b/sdk/constructive-react/src/api/orm/models/pubkeySetting.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/pubkeySetting.ts rename to sdk/constructive-react/src/api/orm/models/pubkeySetting.ts diff --git a/sdk/constructive-react/src/public/orm/models/rlsSetting.ts b/sdk/constructive-react/src/api/orm/models/rlsSetting.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/rlsSetting.ts rename to sdk/constructive-react/src/api/orm/models/rlsSetting.ts diff --git a/sdk/constructive-react/src/public/orm/models/schema.ts b/sdk/constructive-react/src/api/orm/models/schema.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/schema.ts rename to sdk/constructive-react/src/api/orm/models/schema.ts diff --git a/sdk/constructive-react/src/public/orm/models/schemaGrant.ts b/sdk/constructive-react/src/api/orm/models/schemaGrant.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/schemaGrant.ts rename to sdk/constructive-react/src/api/orm/models/schemaGrant.ts diff --git a/sdk/constructive-react/src/public/orm/models/site.ts b/sdk/constructive-react/src/api/orm/models/site.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/site.ts rename to sdk/constructive-react/src/api/orm/models/site.ts diff --git a/sdk/constructive-react/src/public/orm/models/siteMetadatum.ts b/sdk/constructive-react/src/api/orm/models/siteMetadatum.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/siteMetadatum.ts rename to sdk/constructive-react/src/api/orm/models/siteMetadatum.ts diff --git a/sdk/constructive-react/src/public/orm/models/siteModule.ts b/sdk/constructive-react/src/api/orm/models/siteModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/siteModule.ts rename to sdk/constructive-react/src/api/orm/models/siteModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/siteTheme.ts b/sdk/constructive-react/src/api/orm/models/siteTheme.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/siteTheme.ts rename to sdk/constructive-react/src/api/orm/models/siteTheme.ts diff --git a/sdk/constructive-react/src/public/orm/models/spatialRelation.ts b/sdk/constructive-react/src/api/orm/models/spatialRelation.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/spatialRelation.ts rename to sdk/constructive-react/src/api/orm/models/spatialRelation.ts diff --git a/sdk/constructive-react/src/public/orm/models/sqlAction.ts b/sdk/constructive-react/src/api/orm/models/sqlAction.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/sqlAction.ts rename to sdk/constructive-react/src/api/orm/models/sqlAction.ts diff --git a/sdk/constructive-react/src/public/orm/models/table.ts b/sdk/constructive-react/src/api/orm/models/table.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/table.ts rename to sdk/constructive-react/src/api/orm/models/table.ts diff --git a/sdk/constructive-react/src/public/orm/models/tableGrant.ts b/sdk/constructive-react/src/api/orm/models/tableGrant.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/tableGrant.ts rename to sdk/constructive-react/src/api/orm/models/tableGrant.ts diff --git a/sdk/constructive-react/src/public/orm/models/trigger.ts b/sdk/constructive-react/src/api/orm/models/trigger.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/trigger.ts rename to sdk/constructive-react/src/api/orm/models/trigger.ts diff --git a/sdk/constructive-react/src/public/orm/models/triggerFunction.ts b/sdk/constructive-react/src/api/orm/models/triggerFunction.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/triggerFunction.ts rename to sdk/constructive-react/src/api/orm/models/triggerFunction.ts diff --git a/sdk/constructive-react/src/public/orm/models/uniqueConstraint.ts b/sdk/constructive-react/src/api/orm/models/uniqueConstraint.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/uniqueConstraint.ts rename to sdk/constructive-react/src/api/orm/models/uniqueConstraint.ts diff --git a/sdk/constructive-react/src/public/orm/models/view.ts b/sdk/constructive-react/src/api/orm/models/view.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/view.ts rename to sdk/constructive-react/src/api/orm/models/view.ts diff --git a/sdk/constructive-react/src/public/orm/models/viewGrant.ts b/sdk/constructive-react/src/api/orm/models/viewGrant.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/viewGrant.ts rename to sdk/constructive-react/src/api/orm/models/viewGrant.ts diff --git a/sdk/constructive-react/src/public/orm/models/viewRule.ts b/sdk/constructive-react/src/api/orm/models/viewRule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/viewRule.ts rename to sdk/constructive-react/src/api/orm/models/viewRule.ts diff --git a/sdk/constructive-react/src/public/orm/models/viewTable.ts b/sdk/constructive-react/src/api/orm/models/viewTable.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/viewTable.ts rename to sdk/constructive-react/src/api/orm/models/viewTable.ts diff --git a/sdk/constructive-react/src/public/orm/models/webauthnSetting.ts b/sdk/constructive-react/src/api/orm/models/webauthnSetting.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/webauthnSetting.ts rename to sdk/constructive-react/src/api/orm/models/webauthnSetting.ts diff --git a/sdk/constructive-react/src/api/orm/mutation/index.ts b/sdk/constructive-react/src/api/orm/mutation/index.ts new file mode 100644 index 0000000000..ef3c67f877 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/mutation/index.ts @@ -0,0 +1,356 @@ +/** + * 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 { + AcceptDatabaseTransferInput, + CancelDatabaseTransferInput, + RejectDatabaseTransferInput, + ProvisionDatabaseWithUserInput, + BootstrapUserInput, + SetFieldOrderInput, + ApplyRlsInput, + CreateUserDatabaseInput, + ProvisionBucketInput, + AcceptDatabaseTransferPayload, + CancelDatabaseTransferPayload, + RejectDatabaseTransferPayload, + ProvisionDatabaseWithUserPayload, + BootstrapUserPayload, + SetFieldOrderPayload, + ApplyRlsPayload, + CreateUserDatabasePayload, + ProvisionBucketPayload, + AcceptDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayloadSelect, + ProvisionDatabaseWithUserPayloadSelect, + BootstrapUserPayloadSelect, + SetFieldOrderPayloadSelect, + ApplyRlsPayloadSelect, + CreateUserDatabasePayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; +} +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; +} +export interface ProvisionDatabaseWithUserVariables { + input: ProvisionDatabaseWithUserInput; +} +export interface BootstrapUserVariables { + input: BootstrapUserInput; +} +export interface SetFieldOrderVariables { + input: SetFieldOrderInput; +} +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) + +Returns the database_id UUID of the newly created database. + +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 + */ +export interface CreateUserDatabaseVariables { + input: CreateUserDatabaseInput; +} +/** + * 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 { + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + acceptDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'AcceptDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'AcceptDatabaseTransferPayload' + ), + }), + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + cancelDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'CancelDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'CancelDatabaseTransferPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' + ), + }), + 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: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setFieldOrder: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetFieldOrder', + fieldName: 'setFieldOrder', + ...buildCustomDocument( + 'mutation', + 'SetFieldOrder', + 'setFieldOrder', + options.select, + args, + [ + { + name: 'input', + type: 'SetFieldOrderInput!', + }, + ], + connectionFieldsMap, + 'SetFieldOrderPayload' + ), + }), + applyRls: ( + args: ApplyRlsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + applyRls: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApplyRls', + fieldName: 'applyRls', + ...buildCustomDocument( + 'mutation', + 'ApplyRls', + 'applyRls', + options.select, + args, + [ + { + name: 'input', + type: 'ApplyRlsInput!', + }, + ], + connectionFieldsMap, + 'ApplyRlsPayload' + ), + }), + createUserDatabase: ( + args: CreateUserDatabaseVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createUserDatabase: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateUserDatabase', + fieldName: 'createUserDatabase', + ...buildCustomDocument( + 'mutation', + 'CreateUserDatabase', + 'createUserDatabase', + options.select, + args, + [ + { + name: 'input', + type: 'CreateUserDatabaseInput!', + }, + ], + connectionFieldsMap, + 'CreateUserDatabasePayload' + ), + }), + 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/api/orm/query-builder.ts b/sdk/constructive-react/src/api/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/api/orm/query/index.ts b/sdk/constructive-react/src/api/orm/query/index.ts new file mode 100644 index 0000000000..e004891a17 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/query/index.ts @@ -0,0 +1,50 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export interface ApplyRegistryDefaultsVariables { + nodeType?: string; + data?: unknown; +} +export function createQueryOperations(client: OrmClient) { + return { + applyRegistryDefaults: ( + args: ApplyRegistryDefaultsVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + applyRegistryDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'ApplyRegistryDefaults', + fieldName: 'applyRegistryDefaults', + ...buildCustomDocument( + 'query', + 'ApplyRegistryDefaults', + 'applyRegistryDefaults', + options?.select, + args, + [ + { + name: 'nodeType', + type: 'String', + }, + { + name: 'data', + type: 'JSON', + }, + ], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/api/orm/realtime.ts b/sdk/constructive-react/src/api/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-react/src/api/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/api/orm/select-types.ts b/sdk/constructive-react/src/api/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-react/src/api/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/api/orm/types.ts b/sdk/constructive-react/src/api/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-react/src/api/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/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts new file mode 100644 index 0000000000..60b0aa7812 --- /dev/null +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -0,0 +1,7966 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + Api, + ApiModule, + ApiSchema, + ApiSetting, + App, + AstMigration, + CheckConstraint, + CorsSetting, + Database, + DatabaseSetting, + DatabaseTransfer, + DefaultPrivilege, + Domain, + EmbeddingChunk, + Enum, + Field, + ForeignKeyConstraint, + FullTextSearch, + Function, + Index, + MigrateFile, + NodeTypeRegistry, + Partition, + Policy, + PrimaryKeyConstraint, + PubkeySetting, + RlsSetting, + Schema, + SchemaGrant, + Site, + SiteMetadatum, + SiteModule, + SiteTheme, + SpatialRelation, + SqlAction, + Table, + TableGrant, + Trigger, + TriggerFunction, + UniqueConstraint, + View, + ViewGrant, + ViewRule, + ViewTable, + WebauthnSetting, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, + VectorFilter, +} from './types'; +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; +export type ConstructiveInternalTypeUrl = unknown; +export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +/** Methods to use when ordering `CheckConstraint`. */ +export type CheckConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'EXPR_ASC' + | 'EXPR_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `SpatialRelation`. */ +export type SpatialRelationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OPERATOR_ASC' + | 'OPERATOR_DESC' + | 'PARAM_NAME_ASC' + | 'PARAM_NAME_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Field`. */ +export type FieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'API_REQUIRED_ASC' + | 'API_REQUIRED_DESC' + | 'DEFAULT_VALUE_ASC' + | 'DEFAULT_VALUE_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_ORDER_ASC' + | 'FIELD_ORDER_DESC' + | 'REGEXP_ASC' + | 'REGEXP_DESC' + | 'CHK_ASC' + | 'CHK_DESC' + | 'CHK_EXPR_ASC' + | 'CHK_EXPR_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ForeignKeyConstraint`. */ +export type ForeignKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_IDS_ASC' + | 'REF_FIELD_IDS_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'UPDATE_ACTION_ASC' + | 'UPDATE_ACTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `FullTextSearch`. */ +export type FullTextSearchOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'WEIGHTS_ASC' + | 'WEIGHTS_DESC' + | 'LANGS_ASC' + | 'LANGS_DESC' + | 'LANG_COLUMN_ASC' + | 'LANG_COLUMN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Index`. */ +export type IndexOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'INCLUDE_FIELD_IDS_ASC' + | 'INCLUDE_FIELD_IDS_DESC' + | 'ACCESS_METHOD_ASC' + | 'ACCESS_METHOD_DESC' + | 'INDEX_PARAMS_ASC' + | 'INDEX_PARAMS_DESC' + | 'WHERE_CLAUSE_ASC' + | 'WHERE_CLAUSE_DESC' + | 'IS_UNIQUE_ASC' + | 'IS_UNIQUE_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'OP_CLASSES_ASC' + | 'OP_CLASSES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Policy`. */ +export type PolicyOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'PERMISSIVE_ASC' + | 'PERMISSIVE_DESC' + | 'DISABLED_ASC' + | 'DISABLED_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PrimaryKeyConstraint`. */ +export type PrimaryKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `TableGrant`. */ +export type TableGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Trigger`. */ +export type TriggerOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'FUNCTION_NAME_ASC' + | 'FUNCTION_NAME_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `UniqueConstraint`. */ +export type UniqueConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ViewTable`. */ +export type ViewTableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'JOIN_ORDER_ASC' + | 'JOIN_ORDER_DESC'; +/** Methods to use when ordering `ViewGrant`. */ +export type ViewGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'WITH_GRANT_OPTION_ASC' + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +/** Methods to use when ordering `ViewRule`. */ +export type ViewRuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC'; +/** Methods to use when ordering `View`. */ +export type ViewOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'VIEW_TYPE_ASC' + | 'VIEW_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FILTER_TYPE_ASC' + | 'FILTER_TYPE_DESC' + | 'FILTER_DATA_ASC' + | 'FILTER_DATA_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +/** Methods to use when ordering `EmbeddingChunk`. */ +export type EmbeddingChunkOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'EMBEDDING_FIELD_ID_ASC' + | 'EMBEDDING_FIELD_ID_DESC' + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CHUNKS_TABLE_NAME_ASC' + | 'CHUNKS_TABLE_NAME_DESC' + | 'CONTENT_FIELD_NAME_ASC' + | 'CONTENT_FIELD_NAME_DESC' + | 'DIMENSIONS_ASC' + | 'DIMENSIONS_DESC' + | 'METRIC_ASC' + | 'METRIC_DESC' + | 'CHUNK_SIZE_ASC' + | 'CHUNK_SIZE_DESC' + | 'CHUNK_OVERLAP_ASC' + | 'CHUNK_OVERLAP_DESC' + | 'CHUNK_STRATEGY_ASC' + | 'CHUNK_STRATEGY_DESC' + | 'METADATA_FIELDS_ASC' + | 'METADATA_FIELDS_DESC' + | 'SEARCH_INDEXES_ASC' + | 'SEARCH_INDEXES_DESC' + | 'ENQUEUE_CHUNKING_JOB_ASC' + | 'ENQUEUE_CHUNKING_JOB_DESC' + | 'CHUNKING_TASK_NAME_ASC' + | 'CHUNKING_TASK_NAME_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_PROVIDER_ASC' + | 'EMBEDDING_PROVIDER_DESC' + | 'PARENT_FK_FIELD_ID_ASC' + | 'PARENT_FK_FIELD_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Table`. */ +export type TableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'TIMESTAMPS_ASC' + | 'TIMESTAMPS_DESC' + | 'PEOPLESTAMPS_ASC' + | 'PEOPLESTAMPS_DESC' + | 'PLURAL_NAME_ASC' + | 'PLURAL_NAME_DESC' + | 'SINGULAR_NAME_ASC' + | 'SINGULAR_NAME_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'PARTITIONED_ASC' + | 'PARTITIONED_DESC' + | 'PARTITION_STRATEGY_ASC' + | 'PARTITION_STRATEGY_DESC' + | 'PARTITION_KEY_NAMES_ASC' + | 'PARTITION_KEY_NAMES_DESC' + | 'PARTITION_KEY_TYPES_ASC' + | 'PARTITION_KEY_TYPES_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `SchemaGrant`. */ +export type SchemaGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `DefaultPrivilege`. */ +export type DefaultPrivilegeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +/** Methods to use when ordering `Enum`. */ +export type EnumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'VALUES_ASC' + | 'VALUES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +/** Methods to use when ordering `Function`. */ +export type FunctionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `ApiModule`. */ +export type ApiModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +/** Methods to use when ordering `ApiSchema`. */ +export type ApiSchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +/** Methods to use when ordering `Domain`. */ +export type DomainOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC'; +/** Methods to use when ordering `SiteMetadatum`. */ +export type SiteMetadatumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC'; +/** Methods to use when ordering `SiteModule`. */ +export type SiteModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +/** Methods to use when ordering `SiteTheme`. */ +export type SiteThemeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'THEME_ASC' + | 'THEME_DESC'; +/** Methods to use when ordering `CorsSetting`. */ +export type CorsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC'; +/** Methods to use when ordering `Schema`. */ +export type SchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCHEMA_NAME_ASC' + | 'SCHEMA_NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `TriggerFunction`. */ +export type TriggerFunctionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Partition`. */ +export type PartitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'STRATEGY_ASC' + | 'STRATEGY_DESC' + | 'PARTITION_KEY_ID_ASC' + | 'PARTITION_KEY_ID_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'NAMING_PATTERN_ASC' + | 'NAMING_PATTERN_DESC' + | 'IS_PARENTED_ASC' + | 'IS_PARENTED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `DatabaseTransfer`. */ +export type DatabaseTransferOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'SOURCE_APPROVED_ASC' + | 'SOURCE_APPROVED_DESC' + | 'TARGET_APPROVED_ASC' + | 'TARGET_APPROVED_DESC' + | 'SOURCE_APPROVED_AT_ASC' + | 'SOURCE_APPROVED_AT_DESC' + | 'TARGET_APPROVED_AT_ASC' + | 'TARGET_APPROVED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INITIATED_BY_ASC' + | 'INITIATED_BY_DESC' + | 'NOTES_ASC' + | 'NOTES_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC'; +/** Methods to use when ordering `Api`. */ +export type ApiOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC'; +/** Methods to use when ordering `Site`. */ +export type SiteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC' + | 'FAVICON_ASC' + | 'FAVICON_DESC' + | 'APPLE_TOUCH_ICON_ASC' + | 'APPLE_TOUCH_ICON_DESC' + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC'; +/** Methods to use when ordering `App`. */ +export type AppOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'APP_IMAGE_ASC' + | 'APP_IMAGE_DESC' + | 'APP_STORE_LINK_ASC' + | 'APP_STORE_LINK_DESC' + | 'APP_STORE_ID_ASC' + | 'APP_STORE_ID_DESC' + | 'APP_ID_PREFIX_ASC' + | 'APP_ID_PREFIX_DESC' + | 'PLAY_STORE_LINK_ASC' + | 'PLAY_STORE_LINK_DESC'; +/** Methods to use when ordering `ApiSetting`. */ +export type ApiSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +/** Methods to use when ordering `MigrateFile`. */ +export type MigrateFileOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +/** Methods to use when ordering `NodeTypeRegistry`. */ +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +/** Methods to use when ordering `PubkeySetting`. */ +export type PubkeySettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; +/** Methods to use when ordering `Database`. */ +export type DatabaseOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SCHEMA_HASH_ASC' + | 'SCHEMA_HASH_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `RlsSetting`. */ +export type RlsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'AUTHENTICATE_SCHEMA_ID_ASC' + | 'AUTHENTICATE_SCHEMA_ID_DESC' + | 'ROLE_SCHEMA_ID_ASC' + | 'ROLE_SCHEMA_ID_DESC' + | 'AUTHENTICATE_FUNCTION_ID_ASC' + | 'AUTHENTICATE_FUNCTION_ID_DESC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; +/** Methods to use when ordering `SqlAction`. */ +export type SqlActionOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `DatabaseSetting`. */ +export type DatabaseSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +/** Methods to use when ordering `WebauthnSetting`. */ +export type 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'; +/** 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. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ +export interface ObjectCategoryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ObjectCategory; + /** Not equal to the specified value. */ + notEqualTo?: ObjectCategory; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ObjectCategory; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ObjectCategory; + /** Included in the specified list. */ + in?: ObjectCategory[]; + /** Not included in the specified list. */ + notIn?: ObjectCategory[]; + /** Less than the specified value. */ + lessThan?: ObjectCategory; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ObjectCategory; + /** Greater than the specified value. */ + greaterThan?: ObjectCategory; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ObjectCategory; +} +/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; + /** Filter by the object’s `schemas` relation. */ + schemas?: DatabaseToManySchemaFilter; + /** `schemas` exist. */ + schemasExist?: boolean; + /** Filter by the object’s `tables` relation. */ + tables?: DatabaseToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: DatabaseToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: DatabaseToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: DatabaseToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggerFunctions` relation. */ + triggerFunctions?: DatabaseToManyTriggerFunctionFilter; + /** `triggerFunctions` exist. */ + triggerFunctionsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: DatabaseToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: DatabaseToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: DatabaseToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: DatabaseToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: DatabaseToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `partitions` relation. */ + partitions?: DatabaseToManyPartitionFilter; + /** `partitions` exist. */ + partitionsExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `apis` relation. */ + apis?: DatabaseToManyApiFilter; + /** `apis` exist. */ + apisExist?: boolean; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: DatabaseToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: DatabaseToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `sites` relation. */ + sites?: DatabaseToManySiteFilter; + /** `sites` exist. */ + sitesExist?: boolean; + /** Filter by the object’s `apps` relation. */ + apps?: DatabaseToManyAppFilter; + /** `apps` exist. */ + appsExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: DatabaseToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: DatabaseToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: DatabaseToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: DatabaseToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `databaseSetting` relation. */ + databaseSetting?: DatabaseSettingFilter; + /** A related `databaseSetting` exists. */ + databaseSettingExists?: boolean; + /** Filter by the object’s `apiSettings` relation. */ + apiSettings?: DatabaseToManyApiSettingFilter; + /** `apiSettings` exist. */ + apiSettingsExist?: boolean; + /** Filter by the object’s `rlsSetting` relation. */ + rlsSetting?: RlsSettingFilter; + /** A related `rlsSetting` exists. */ + rlsSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: DatabaseToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `pubkeySetting` relation. */ + pubkeySetting?: PubkeySettingFilter; + /** A related `pubkeySetting` exists. */ + pubkeySettingExists?: boolean; + /** Filter by the object’s `webauthnSetting` relation. */ + webauthnSetting?: WebauthnSettingFilter; + /** A related `webauthnSetting` exists. */ + webauthnSettingExists?: boolean; +} +/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaFilter; +} +/** A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: SchemaToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** 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. */ + 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `partitioned` field. */ + partitioned?: BooleanFilter; + /** Filter by the object’s `partitionStrategy` field. */ + partitionStrategy?: StringFilter; + /** Filter by the object’s `partitionKeyNames` field. */ + partitionKeyNames?: StringListFilter; + /** Filter by the object’s `partitionKeyTypes` field. */ + partitionKeyTypes?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `inherits` relation. */ + inherits?: TableFilter; + /** A related `inherits` exists. */ + inheritsExists?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: TableToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: TableToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: TableToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: TableToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: TableToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: TableToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: TableToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: TableToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: TableToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: TableToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ + spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; + /** `spatialRelationsByRefTableId` exist. */ + spatialRelationsByRefTableIdExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: TableToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `partition` relation. */ + partition?: PartitionFilter; + /** A related `partition` exists. */ + partitionExists?: boolean; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: JSONFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** 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?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: FieldToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ + spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; + /** `spatialRelationsByRefFieldId` exist. */ + spatialRelationsByRefFieldIdExist?: boolean; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface SpatialRelationFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `operator` field. */ + operator?: StringFilter; + /** Filter by the object’s `paramName` field. */ + paramName?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: SpatialRelationFilter[]; + /** Checks for any expressions in this list. */ + or?: SpatialRelationFilter[]; + /** Negates the expression. */ + not?: SpatialRelationFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `field` relation. */ + field?: FieldFilter; + /** Filter by the object’s `refField` relation. */ + refField?: FieldFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface ForeignKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface FullTextSearchFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: StringListFilter; + /** Filter by the object’s `langColumn` field. */ + langColumn?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface IndexFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `opClasses` field. */ + opClasses?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: IndexFilter[]; + /** Negates the expression. */ + not?: IndexFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface PolicyFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface PrimaryKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface UniqueConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** A related `table` exists. */ + tableExists?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: ViewToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: ViewToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: ViewToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface EmbeddingChunkFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `searchIndexes` field. */ + searchIndexes?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringFilter; + /** Filter by the object’s `embeddingProvider` field. */ + embeddingProvider?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: 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?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface PartitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `strategy` field. */ + strategy?: StringFilter; + /** Filter by the object’s `partitionKeyId` field. */ + partitionKeyId?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `namingPattern` field. */ + namingPattern?: StringFilter; + /** Filter by the object’s `isParented` field. */ + isParented?: 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?: PartitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PartitionFilter[]; + /** Negates the expression. */ + not?: PartitionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `partitionKey` relation. */ + partitionKey?: FieldFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface EnumFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionFilter[]; + /** Negates the expression. */ + not?: FunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: ApiToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: ApiToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; +} +/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** A related `site` exists. */ + siteExists?: boolean; +} +/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeHostnameFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeHostname; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeHostname; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeHostname[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeHostname[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeHostname; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeHostname; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** 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; +} +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: 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. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `app` relation. */ + app?: AppFilter; + /** A related `app` exists. */ + appExists?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: SiteToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: SiteToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; +} +/** 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 ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeAttachmentFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeAttachment; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeAttachment; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeAttachment[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeAttachment[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeAttachment; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeAttachment; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** 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; +} +/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUrlFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUrl; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUrl; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUrl[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUrl[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUrl; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUrl; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** 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; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ApiSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSettingFilter[]; + /** Negates the expression. */ + not?: ApiSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface CorsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CorsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: CorsSettingFilter[]; + /** Negates the expression. */ + not?: CorsSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFunctionFilter; +} +/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFunctionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPartitionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PartitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PartitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PartitionFilter; +} +/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDatabaseTransferFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseTransferFilter; + /** Filters to entities where every related entity matches. */ + every?: DatabaseTransferFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseTransferFilter; +} +/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiFilter; +} +/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteFilter; +} +/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyAppFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppFilter; + /** Filters to entities where every related entity matches. */ + every?: AppFilter; + /** Filters to entities where no related entity matches. */ + none?: AppFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSettingFilter; +} +/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface RlsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `authenticateSchemaId` field. */ + authenticateSchemaId?: UUIDFilter; + /** Filter by the object’s `roleSchemaId` field. */ + roleSchemaId?: UUIDFilter; + /** Filter by the object’s `authenticateFunctionId` field. */ + authenticateFunctionId?: UUIDFilter; + /** Filter by the object’s `authenticateStrictFunctionId` field. */ + authenticateStrictFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleFunctionId` field. */ + currentRoleFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleIdFunctionId` field. */ + currentRoleIdFunctionId?: UUIDFilter; + /** Filter by the object’s `currentUserAgentFunctionId` field. */ + currentUserAgentFunctionId?: UUIDFilter; + /** Filter by the object’s `currentIpAddressFunctionId` field. */ + currentIpAddressFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RlsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsSettingFilter[]; + /** Negates the expression. */ + not?: RlsSettingFilter; + /** Filter by the object’s `authenticateFunction` relation. */ + authenticateFunction?: FunctionFilter; + /** A related `authenticateFunction` exists. */ + authenticateFunctionExists?: boolean; + /** Filter by the object’s `authenticateSchema` relation. */ + authenticateSchema?: SchemaFilter; + /** A related `authenticateSchema` exists. */ + authenticateSchemaExists?: boolean; + /** Filter by the object’s `authenticateStrictFunction` relation. */ + authenticateStrictFunction?: FunctionFilter; + /** A related `authenticateStrictFunction` exists. */ + authenticateStrictFunctionExists?: boolean; + /** Filter by the object’s `currentIpAddressFunction` relation. */ + currentIpAddressFunction?: FunctionFilter; + /** A related `currentIpAddressFunction` exists. */ + currentIpAddressFunctionExists?: boolean; + /** Filter by the object’s `currentRoleFunction` relation. */ + currentRoleFunction?: FunctionFilter; + /** A related `currentRoleFunction` exists. */ + currentRoleFunctionExists?: boolean; + /** Filter by the object’s `currentRoleIdFunction` relation. */ + currentRoleIdFunction?: FunctionFilter; + /** A related `currentRoleIdFunction` exists. */ + currentRoleIdFunctionExists?: boolean; + /** Filter by the object’s `currentUserAgentFunction` relation. */ + currentUserAgentFunction?: FunctionFilter; + /** A related `currentUserAgentFunction` exists. */ + currentUserAgentFunctionExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `roleSchema` relation. */ + roleSchema?: SchemaFilter; + /** A related `roleSchema` exists. */ + roleSchemaExists?: boolean; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ +export interface PubkeySettingFilter { + /** 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 `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `signUpWithKeyFunctionId` field. */ + signUpWithKeyFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ + signInRequestChallengeFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRecordFailureFunctionId` field. */ + signInRecordFailureFunctionId?: UUIDFilter; + /** Filter by the object’s `signInWithChallengeFunctionId` field. */ + signInWithChallengeFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PubkeySettingFilter[]; + /** Checks for any expressions in this list. */ + or?: PubkeySettingFilter[]; + /** Negates the expression. */ + not?: PubkeySettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `signInRecordFailureFunction` relation. */ + signInRecordFailureFunction?: FunctionFilter; + /** A related `signInRecordFailureFunction` exists. */ + signInRecordFailureFunctionExists?: boolean; + /** Filter by the object’s `signInRequestChallengeFunction` relation. */ + signInRequestChallengeFunction?: FunctionFilter; + /** A related `signInRequestChallengeFunction` exists. */ + signInRequestChallengeFunctionExists?: boolean; + /** Filter by the object’s `signInWithChallengeFunction` relation. */ + signInWithChallengeFunction?: FunctionFilter; + /** A related `signInWithChallengeFunction` exists. */ + signInWithChallengeFunctionExists?: boolean; + /** Filter by the object’s `signUpWithKeyFunction` relation. */ + signUpWithKeyFunction?: FunctionFilter; + /** A related `signUpWithKeyFunction` exists. */ + signUpWithKeyFunctionExists?: boolean; +} +/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface WebauthnSettingFilter { + /** 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 `credentialsSchemaId` field. */ + credentialsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionsSchemaId` field. */ + sessionsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsSchemaId` field. */ + sessionSecretsSchemaId?: 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 `userFieldId` field. */ + userFieldId?: 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 `challengeExpirySeconds` field. */ + challengeExpirySeconds?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnSettingFilter[]; + /** Negates the expression. */ + not?: WebauthnSettingFilter; + /** Filter by the object’s `credentialsSchema` relation. */ + credentialsSchema?: SchemaFilter; + /** A related `credentialsSchema` exists. */ + credentialsSchemaExists?: boolean; + /** Filter by the object’s `credentialsTable` relation. */ + credentialsTable?: TableFilter; + /** A related `credentialsTable` exists. */ + credentialsTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `sessionCredentialsTable` relation. */ + sessionCredentialsTable?: TableFilter; + /** A related `sessionCredentialsTable` exists. */ + sessionCredentialsTableExists?: boolean; + /** Filter by the object’s `sessionSecretsSchema` relation. */ + sessionSecretsSchema?: SchemaFilter; + /** A related `sessionSecretsSchema` exists. */ + sessionSecretsSchemaExists?: boolean; + /** Filter by the object’s `sessionSecretsTable` relation. */ + sessionSecretsTable?: TableFilter; + /** A related `sessionSecretsTable` exists. */ + sessionSecretsTableExists?: boolean; + /** Filter by the object’s `sessionsSchema` relation. */ + sessionsSchema?: SchemaFilter; + /** A related `sessionsSchema` exists. */ + sessionsSchemaExists?: boolean; + /** Filter by the object’s `sessionsTable` relation. */ + sessionsTable?: TableFilter; + /** A related `sessionsTable` exists. */ + sessionsTableExists?: boolean; + /** Filter by the object’s `userField` relation. */ + userField?: FieldFilter; + /** A related `userField` exists. */ + userFieldExists?: boolean; +} +/** A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ */ +export interface MigrateFileFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; + /** Checks for all expressions in this list. */ + and?: MigrateFileFilter[]; + /** Checks for any expressions in this list. */ + or?: MigrateFileFilter[]; + /** Negates the expression. */ + not?: MigrateFileFilter; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; +} +/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ +export interface SqlActionFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlActionFilter[]; + /** Checks for any expressions in this list. */ + or?: SqlActionFilter[]; + /** Negates the expression. */ + not?: SqlActionFilter; +} +/** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */ +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + 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 AcceptDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +export interface CancelDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +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[]; +} +export interface ApplyRlsInput { + clientMutationId?: string; + tableId?: string; + grants?: unknown; + policyType?: string; + vars?: unknown; + fieldIds?: string[]; + permissive?: boolean; + name?: string; +} +export interface CreateUserDatabaseInput { + 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; +} +export interface CreateFunctionInput { + clientMutationId?: string; + /** The `Function` to be created by this mutation. */ + function: FunctionInput; +} +/** An input for mutations affecting `Function` */ +export interface FunctionInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; +} +export interface CreateViewTableInput { + clientMutationId?: string; + /** The `ViewTable` to be created by this mutation. */ + viewTable: ViewTableInput; +} +/** An input for mutations affecting `ViewTable` */ +export interface ViewTableInput { + id?: string; + viewId: string; + tableId: string; + joinOrder?: number; +} +export interface CreateApiSchemaInput { + clientMutationId?: string; + /** The `ApiSchema` to be created by this mutation. */ + apiSchema: ApiSchemaInput; +} +/** An input for mutations affecting `ApiSchema` */ +export interface ApiSchemaInput { + /** Unique identifier for this API-schema mapping */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Metaschema schema being exposed through the API */ + schemaId: string; + /** API that exposes this schema */ + apiId: string; +} +export interface CreateSiteThemeInput { + clientMutationId?: string; + /** The `SiteTheme` to be created by this mutation. */ + siteTheme: SiteThemeInput; +} +/** An input for mutations affecting `SiteTheme` */ +export interface SiteThemeInput { + /** Unique identifier for this theme record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this theme belongs to */ + siteId: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme: unknown; +} +export interface CreateViewRuleInput { + clientMutationId?: string; + /** The `ViewRule` to be created by this mutation. */ + viewRule: ViewRuleInput; +} +/** An input for mutations affecting `ViewRule` */ +export interface ViewRuleInput { + id?: string; + databaseId?: string; + viewId: string; + name: string; + /** INSERT, UPDATE, or DELETE */ + event: string; + /** NOTHING (for read-only) or custom action */ + action?: string; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + /** The `MigrateFile` to be created by this mutation. */ + migrateFile: MigrateFileInput; +} +/** An input for mutations affecting `MigrateFile` */ +export interface MigrateFileInput { + id?: string; + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; +} +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + /** The `DefaultPrivilege` to be created by this mutation. */ + defaultPrivilege: DefaultPrivilegeInput; +} +/** An input for mutations affecting `DefaultPrivilege` */ +export interface DefaultPrivilegeInput { + id?: string; + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + /** The `ViewGrant` to be created by this mutation. */ + viewGrant: ViewGrantInput; +} +/** An input for mutations affecting `ViewGrant` */ +export interface ViewGrantInput { + id?: string; + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; +} +export interface CreateApiInput { + clientMutationId?: string; + /** The `Api` to be created by this mutation. */ + api: ApiInput; +} +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Unique identifier for this API */ + id?: string; + /** Reference to the metaschema database this API serves */ + databaseId: string; + /** Unique name for this API within its database */ + name: string; + /** PostgreSQL database name to connect to */ + dbname?: string; + /** PostgreSQL role used for authenticated requests */ + roleName?: string; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean; +} +export interface CreateCorsSettingInput { + clientMutationId?: string; + /** The `CorsSetting` to be created by this mutation. */ + corsSetting: CorsSettingInput; +} +/** An input for mutations affecting `CorsSetting` */ +export interface CorsSettingInput { + /** Unique identifier for this CORS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[]; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + /** The `NodeTypeRegistry` to be created by this mutation. */ + nodeTypeRegistry: NodeTypeRegistryInput; +} +/** An input for mutations affecting `NodeTypeRegistry` */ +export interface NodeTypeRegistryInput { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: unknown; + tags?: string[]; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + /** The `ApiModule` to be created by this mutation. */ + apiModule: ApiModuleInput; +} +/** An input for mutations affecting `ApiModule` */ +export interface ApiModuleInput { + /** Unique identifier for this API module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API this module configuration belongs to */ + apiId: string; + /** Module name (e.g. auth, uploads, webhooks) */ + name: string; + /** JSON configuration data for this module */ + data: unknown; +} +export interface CreateSiteModuleInput { + clientMutationId?: string; + /** The `SiteModule` to be created by this mutation. */ + siteModule: SiteModuleInput; +} +/** An input for mutations affecting `SiteModule` */ +export interface SiteModuleInput { + /** Unique identifier for this site module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this module configuration belongs to */ + siteId: string; + /** Module name (e.g. user_auth_module, analytics) */ + name: string; + /** JSON configuration data for this module */ + data: unknown; +} +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + /** The `SiteMetadatum` to be created by this mutation. */ + siteMetadatum: SiteMetadatumInput; +} +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this metadata belongs to */ + siteId: string; + /** Page title for SEO (max 120 characters) */ + title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage; +} +export interface CreatePubkeySettingInput { + clientMutationId?: string; + /** The `PubkeySetting` to be created by this mutation. */ + pubkeySetting: PubkeySettingInput; +} +/** An input for mutations affecting `PubkeySetting` */ +export interface PubkeySettingInput { + /** Unique identifier for this pubkey settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string; + /** Field name used to identify the user in crypto auth functions */ + userField?: string; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string; +} +export interface CreateSchemaGrantInput { + clientMutationId?: string; + /** The `SchemaGrant` to be created by this mutation. */ + schemaGrant: SchemaGrantInput; +} +/** An input for mutations affecting `SchemaGrant` */ +export interface SchemaGrantInput { + id?: string; + databaseId?: string; + schemaId: string; + granteeName: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTriggerFunctionInput { + clientMutationId?: string; + /** The `TriggerFunction` to be created by this mutation. */ + triggerFunction: TriggerFunctionInput; +} +/** An input for mutations affecting `TriggerFunction` */ +export interface TriggerFunctionInput { + id?: string; + databaseId: string; + name: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateDatabaseInput { + clientMutationId?: string; + /** The `Database` to be created by this mutation. */ + database: DatabaseInput; +} +/** An input for mutations affecting `Database` */ +export interface DatabaseInput { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + /** The `TableGrant` to be created by this mutation. */ + tableGrant: TableGrantInput; +} +/** An input for mutations affecting `TableGrant` */ +export interface TableGrantInput { + id?: string; + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateDomainInput { + clientMutationId?: string; + /** The `Domain` to be created by this mutation. */ + domain: DomainInput; +} +/** An input for mutations affecting `Domain` */ +export interface DomainInput { + /** Unique identifier for this domain record */ + id?: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId: string; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname; +} +export interface CreateRlsSettingInput { + clientMutationId?: string; + /** The `RlsSetting` to be created by this mutation. */ + rlsSetting: RlsSettingInput; +} +/** An input for mutations affecting `RlsSetting` */ +export interface RlsSettingInput { + /** Unique identifier for this RLS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string; +} +export interface CreateFullTextSearchInput { + clientMutationId?: string; + /** The `FullTextSearch` to be created by this mutation. */ + fullTextSearch: FullTextSearchInput; +} +/** An input for mutations affecting `FullTextSearch` */ +export interface FullTextSearchInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + langColumn?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePartitionInput { + clientMutationId?: string; + /** The `Partition` to be created by this mutation. */ + partition: PartitionInput; +} +/** An input for mutations affecting `Partition` */ +export interface PartitionInput { + id?: string; + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateSqlActionInput { + clientMutationId?: string; + /** The `SqlAction` to be created by this mutation. */ + sqlAction: SqlActionInput; +} +/** An input for mutations affecting `SqlAction` */ +export interface SqlActionInput { + id?: number; + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: unknown; + content?: string; + revert?: string; + verify?: string; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} +export interface CreateDatabaseSettingInput { + clientMutationId?: string; + /** The `DatabaseSetting` to be created by this mutation. */ + databaseSetting: DatabaseSettingInput; +} +/** An input for mutations affecting `DatabaseSetting` */ +export interface DatabaseSettingInput { + /** Unique identifier for this settings record */ + id?: string; + /** Reference to the metaschema database these settings apply to */ + databaseId: string; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: unknown; +} +export interface CreateEnumInput { + clientMutationId?: string; + /** The `Enum` to be created by this mutation. */ + enum: EnumInput; +} +/** An input for mutations affecting `Enum` */ +export interface EnumInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; +} +export interface CreateViewInput { + clientMutationId?: string; + /** The `View` to be created by this mutation. */ + view: ViewInput; +} +/** An input for mutations affecting `View` */ +export interface ViewInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: unknown; + filterType?: string; + filterData?: unknown; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; +} +export interface CreateApiSettingInput { + clientMutationId?: string; + /** The `ApiSetting` to be created by this mutation. */ + apiSetting: ApiSettingInput; +} +/** An input for mutations affecting `ApiSetting` */ +export interface ApiSettingInput { + /** Unique identifier for this API settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API these settings override for */ + apiId: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: unknown; +} +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + /** The `DatabaseTransfer` to be created by this mutation. */ + databaseTransfer: DatabaseTransferInput; +} +/** An input for mutations affecting `DatabaseTransfer` */ +export interface DatabaseTransferInput { + id?: string; + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +export interface CreateAppInput { + clientMutationId?: string; + /** The `App` to be created by this mutation. */ + app: AppInput; +} +/** An input for mutations affecting `App` */ +export interface AppInput { + /** Unique identifier for this app */ + id?: string; + /** Reference to the metaschema database this app belongs to */ + databaseId: string; + /** Site this app is associated with (one app per site) */ + siteId: string; + /** Display name of the app */ + name?: string; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl; + /** Apple App Store application identifier */ + appStoreId?: string; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl; +} +export interface CreateSiteInput { + clientMutationId?: string; + /** The `Site` to be created by this mutation. */ + site: SiteInput; +} +/** An input for mutations affecting `Site` */ +export interface SiteInput { + /** Unique identifier for this site */ + id?: string; + /** Reference to the metaschema database this site belongs to */ + databaseId: string; + /** Display title for the site (max 120 characters) */ + title?: string; + /** Short description of the site (max 120 characters) */ + description?: string; + /** Open Graph image used for social media link previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Browser favicon attachment */ + favicon?: ConstructiveInternalTypeAttachment; + /** Apple touch icon for iOS home screen bookmarks */ + appleTouchIcon?: ConstructiveInternalTypeImage; + /** Primary logo image for the site */ + logo?: ConstructiveInternalTypeImage; + /** PostgreSQL database name this site connects to */ + dbname?: string; +} +export interface CreatePrimaryKeyConstraintInput { + clientMutationId?: string; + /** The `PrimaryKeyConstraint` to be created by this mutation. */ + primaryKeyConstraint: PrimaryKeyConstraintInput; +} +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTriggerInput { + clientMutationId?: string; + /** The `Trigger` to be created by this mutation. */ + trigger: TriggerInput; +} +/** An input for mutations affecting `Trigger` */ +export interface TriggerInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateCheckConstraintInput { + clientMutationId?: string; + /** The `CheckConstraint` to be created by this mutation. */ + checkConstraint: CheckConstraintInput; +} +/** An input for mutations affecting `CheckConstraint` */ +export interface CheckConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateUniqueConstraintInput { + clientMutationId?: string; + /** The `UniqueConstraint` to be created by this mutation. */ + uniqueConstraint: UniqueConstraintInput; +} +/** An input for mutations affecting `UniqueConstraint` */ +export interface UniqueConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateSpatialRelationInput { + clientMutationId?: string; + /** The `SpatialRelation` to be created by this mutation. */ + spatialRelation: SpatialRelationInput; +} +/** An input for mutations affecting `SpatialRelation` */ +export interface SpatialRelationInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + refTableId: string; + refFieldId: string; + name: string; + operator: string; + paramName?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePolicyInput { + clientMutationId?: string; + /** The `Policy` to be created by this mutation. */ + policy: PolicyInput; +} +/** An input for mutations affecting `Policy` */ +export interface PolicyInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateSchemaInput { + clientMutationId?: string; + /** The `Schema` to be created by this mutation. */ + schema: SchemaInput; +} +/** An input for mutations affecting `Schema` */ +export interface SchemaInput { + id?: string; + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateIndexInput { + clientMutationId?: string; + /** The `Index` to be created by this mutation. */ + index: IndexInput; +} +/** An input for mutations affecting `Index` */ +export interface IndexInput { + id?: string; + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: unknown; + whereClause?: unknown; + isUnique?: boolean; + options?: unknown; + opClasses?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + /** The `EmbeddingChunk` to be created by this mutation. */ + embeddingChunk: EmbeddingChunkInput; +} +/** An input for mutations affecting `EmbeddingChunk` */ +export interface EmbeddingChunkInput { + id?: string; + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: unknown; + searchIndexes?: unknown; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateForeignKeyConstraintInput { + clientMutationId?: string; + /** The `ForeignKeyConstraint` to be created by this mutation. */ + foreignKeyConstraint: ForeignKeyConstraintInput; +} +/** An input for mutations affecting `ForeignKeyConstraint` */ +export interface ForeignKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateWebauthnSettingInput { + clientMutationId?: string; + /** The `WebauthnSetting` to be created by this mutation. */ + webauthnSetting: WebauthnSettingInput; +} +/** An input for mutations affecting `WebauthnSetting` */ +export interface WebauthnSettingInput { + /** Unique identifier for this WebAuthn settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string; + /** WebAuthn Relying Party display name */ + rpName?: string; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[]; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string; + /** 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 CreateFieldInput { + clientMutationId?: string; + /** The `Field` to be created by this mutation. */ + field: FieldInput; +} +/** An input for mutations affecting `Field` */ +export interface FieldInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: unknown; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: unknown; + type: unknown; + fieldOrder?: number; + regexp?: string; + chk?: unknown; + chkExpr?: unknown; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTableInput { + clientMutationId?: string; + /** The `Table` to be created by this mutation. */ + table: TableInput; +} +/** An input for mutations affecting `Table` */ +export interface TableInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + inheritsId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateFunctionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Function` being updated. */ + functionPatch: FunctionPatch; +} +/** Represents an update to a `Function`. Fields that are set will be updated. */ +export interface FunctionPatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; +} +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ViewTable` being updated. */ + viewTablePatch: ViewTablePatch; +} +/** Represents an update to a `ViewTable`. Fields that are set will be updated. */ +export interface ViewTablePatch { + id?: string; + viewId?: string; + tableId?: string; + joinOrder?: number; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + /** Unique identifier for this API-schema mapping */ + id: string; + /** An object where the defined keys will be set on the `ApiSchema` being updated. */ + apiSchemaPatch: ApiSchemaPatch; +} +/** Represents an update to a `ApiSchema`. Fields that are set will be updated. */ +export interface ApiSchemaPatch { + /** Unique identifier for this API-schema mapping */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Metaschema schema being exposed through the API */ + schemaId?: string; + /** API that exposes this schema */ + apiId?: string; +} +export interface UpdateSiteThemeInput { + clientMutationId?: string; + /** Unique identifier for this theme record */ + id: string; + /** An object where the defined keys will be set on the `SiteTheme` being updated. */ + siteThemePatch: SiteThemePatch; +} +/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ +export interface SiteThemePatch { + /** Unique identifier for this theme record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this theme belongs to */ + siteId?: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: unknown; +} +export interface UpdateViewRuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ViewRule` being updated. */ + viewRulePatch: ViewRulePatch; +} +/** Represents an update to a `ViewRule`. Fields that are set will be updated. */ +export interface ViewRulePatch { + id?: string; + databaseId?: string; + viewId?: string; + name?: string; + /** INSERT, UPDATE, or DELETE */ + event?: string; + /** NOTHING (for read-only) or custom action */ + action?: string; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DefaultPrivilege` being updated. */ + defaultPrivilegePatch: DefaultPrivilegePatch; +} +/** Represents an update to a `DefaultPrivilege`. Fields that are set will be updated. */ +export interface DefaultPrivilegePatch { + id?: string; + databaseId?: string; + schemaId?: string; + objectType?: string; + privilege?: string; + granteeName?: string; + isGrant?: boolean; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ViewGrant` being updated. */ + viewGrantPatch: ViewGrantPatch; +} +/** Represents an update to a `ViewGrant`. Fields that are set will be updated. */ +export interface ViewGrantPatch { + id?: string; + databaseId?: string; + viewId?: string; + granteeName?: string; + privilege?: string; + withGrantOption?: boolean; + isGrant?: boolean; +} +export interface UpdateApiInput { + clientMutationId?: string; + /** Unique identifier for this API */ + id: string; + /** An object where the defined keys will be set on the `Api` being updated. */ + apiPatch: ApiPatch; +} +/** Represents an update to a `Api`. Fields that are set will be updated. */ +export interface ApiPatch { + /** Unique identifier for this API */ + id?: string; + /** Reference to the metaschema database this API serves */ + databaseId?: string; + /** Unique name for this API within its database */ + name?: string; + /** PostgreSQL database name to connect to */ + dbname?: string; + /** PostgreSQL role used for authenticated requests */ + roleName?: string; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean; +} +export interface UpdateCorsSettingInput { + clientMutationId?: string; + /** Unique identifier for this CORS settings record */ + id: string; + /** An object where the defined keys will be set on the `CorsSetting` being updated. */ + corsSettingPatch: CorsSettingPatch; +} +/** Represents an update to a `CorsSetting`. Fields that are set will be updated. */ +export interface CorsSettingPatch { + /** Unique identifier for this CORS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[]; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + /** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */ + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */ +export interface NodeTypeRegistryPatch { + name?: string; + slug?: string; + category?: string; + displayName?: string; + description?: string; + parameterSchema?: unknown; + tags?: string[]; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + /** Unique identifier for this API module record */ + id: string; + /** An object where the defined keys will be set on the `ApiModule` being updated. */ + apiModulePatch: ApiModulePatch; +} +/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ +export interface ApiModulePatch { + /** Unique identifier for this API module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** API this module configuration belongs to */ + apiId?: string; + /** Module name (e.g. auth, uploads, webhooks) */ + name?: string; + /** JSON configuration data for this module */ + data?: unknown; +} +export interface UpdateSiteModuleInput { + clientMutationId?: string; + /** Unique identifier for this site module record */ + id: string; + /** An object where the defined keys will be set on the `SiteModule` being updated. */ + siteModulePatch: SiteModulePatch; +} +/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ +export interface SiteModulePatch { + /** Unique identifier for this site module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this module configuration belongs to */ + siteId?: string; + /** Module name (e.g. user_auth_module, analytics) */ + name?: string; + /** JSON configuration data for this module */ + data?: unknown; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; + /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ + siteMetadatumPatch: SiteMetadatumPatch; +} +/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ +export interface SiteMetadatumPatch { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this metadata belongs to */ + siteId?: string; + /** Page title for SEO (max 120 characters) */ + title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Upload for Open Graph image for social media previews */ + ogImageUpload?: File; +} +export interface UpdatePubkeySettingInput { + clientMutationId?: string; + /** Unique identifier for this pubkey settings record */ + id: string; + /** An object where the defined keys will be set on the `PubkeySetting` being updated. */ + pubkeySettingPatch: PubkeySettingPatch; +} +/** Represents an update to a `PubkeySetting`. Fields that are set will be updated. */ +export interface PubkeySettingPatch { + /** Unique identifier for this pubkey settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string; + /** Field name used to identify the user in crypto auth functions */ + userField?: string; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SchemaGrant` being updated. */ + schemaGrantPatch: SchemaGrantPatch; +} +/** Represents an update to a `SchemaGrant`. Fields that are set will be updated. */ +export interface SchemaGrantPatch { + id?: string; + databaseId?: string; + schemaId?: string; + granteeName?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTriggerFunctionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TriggerFunction` being updated. */ + triggerFunctionPatch: TriggerFunctionPatch; +} +/** Represents an update to a `TriggerFunction`. Fields that are set will be updated. */ +export interface TriggerFunctionPatch { + id?: string; + databaseId?: string; + name?: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateDatabaseInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Database` being updated. */ + databasePatch: DatabasePatch; +} +/** Represents an update to a `Database`. Fields that are set will be updated. */ +export interface DatabasePatch { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTableGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TableGrant` being updated. */ + tableGrantPatch: TableGrantPatch; +} +/** Represents an update to a `TableGrant`. Fields that are set will be updated. */ +export interface TableGrantPatch { + id?: string; + databaseId?: string; + tableId?: string; + privilege?: string; + granteeName?: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateDomainInput { + clientMutationId?: string; + /** Unique identifier for this domain record */ + id: string; + /** An object where the defined keys will be set on the `Domain` being updated. */ + domainPatch: DomainPatch; +} +/** Represents an update to a `Domain`. Fields that are set will be updated. */ +export interface DomainPatch { + /** Unique identifier for this domain record */ + id?: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId?: string; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname; +} +export interface UpdateRlsSettingInput { + clientMutationId?: string; + /** Unique identifier for this RLS settings record */ + id: string; + /** An object where the defined keys will be set on the `RlsSetting` being updated. */ + rlsSettingPatch: RlsSettingPatch; +} +/** Represents an update to a `RlsSetting`. Fields that are set will be updated. */ +export interface RlsSettingPatch { + /** Unique identifier for this RLS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string; +} +export interface UpdateFullTextSearchInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `FullTextSearch` being updated. */ + fullTextSearchPatch: FullTextSearchPatch; +} +/** Represents an update to a `FullTextSearch`. Fields that are set will be updated. */ +export interface FullTextSearchPatch { + id?: string; + databaseId?: string; + tableId?: string; + fieldId?: string; + fieldIds?: string[]; + weights?: string[]; + langs?: string[]; + langColumn?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdatePartitionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Partition` being updated. */ + partitionPatch: PartitionPatch; +} +/** Represents an update to a `Partition`. Fields that are set will be updated. */ +export interface PartitionPatch { + id?: string; + databaseId?: string; + tableId?: string; + strategy?: string; + partitionKeyId?: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + /** Unique identifier for this settings record */ + id: string; + /** An object where the defined keys will be set on the `DatabaseSetting` being updated. */ + databaseSettingPatch: DatabaseSettingPatch; +} +/** Represents an update to a `DatabaseSetting`. Fields that are set will be updated. */ +export interface DatabaseSettingPatch { + /** Unique identifier for this settings record */ + id?: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: unknown; +} +export interface UpdateEnumInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Enum` being updated. */ + enumPatch: EnumPatch; +} +/** Represents an update to a `Enum`. Fields that are set will be updated. */ +export interface EnumPatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; +} +export interface UpdateViewInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `View` being updated. */ + viewPatch: ViewPatch; +} +/** Represents an update to a `View`. Fields that are set will be updated. */ +export interface ViewPatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; + tableId?: string; + viewType?: string; + data?: unknown; + filterType?: string; + filterData?: unknown; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; +} +export interface UpdateApiSettingInput { + clientMutationId?: string; + /** Unique identifier for this API settings record */ + id: string; + /** An object where the defined keys will be set on the `ApiSetting` being updated. */ + apiSettingPatch: ApiSettingPatch; +} +/** Represents an update to a `ApiSetting`. Fields that are set will be updated. */ +export interface ApiSettingPatch { + /** Unique identifier for this API settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** API these settings override for */ + apiId?: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: unknown; +} +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DatabaseTransfer` being updated. */ + databaseTransferPatch: DatabaseTransferPatch; +} +/** Represents an update to a `DatabaseTransfer`. Fields that are set will be updated. */ +export interface DatabaseTransferPatch { + id?: string; + databaseId?: string; + targetOwnerId?: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy?: string; + notes?: string; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +export interface UpdateAppInput { + clientMutationId?: string; + /** Unique identifier for this app */ + id: string; + /** An object where the defined keys will be set on the `App` being updated. */ + appPatch: AppPatch; +} +/** Represents an update to a `App`. Fields that are set will be updated. */ +export interface AppPatch { + /** Unique identifier for this app */ + id?: string; + /** Reference to the metaschema database this app belongs to */ + databaseId?: string; + /** Site this app is associated with (one app per site) */ + siteId?: string; + /** Display name of the app */ + name?: string; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl; + /** Apple App Store application identifier */ + appStoreId?: string; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl; + /** Upload for App icon or promotional image */ + appImageUpload?: File; +} +export interface UpdateSiteInput { + clientMutationId?: string; + /** Unique identifier for this site */ + id: string; + /** An object where the defined keys will be set on the `Site` being updated. */ + sitePatch: SitePatch; +} +/** Represents an update to a `Site`. Fields that are set will be updated. */ +export interface SitePatch { + /** Unique identifier for this site */ + id?: string; + /** Reference to the metaschema database this site belongs to */ + databaseId?: string; + /** Display title for the site (max 120 characters) */ + title?: string; + /** Short description of the site (max 120 characters) */ + description?: string; + /** Open Graph image used for social media link previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Browser favicon attachment */ + favicon?: ConstructiveInternalTypeAttachment; + /** Apple touch icon for iOS home screen bookmarks */ + appleTouchIcon?: ConstructiveInternalTypeImage; + /** Primary logo image for the site */ + logo?: ConstructiveInternalTypeImage; + /** PostgreSQL database name this site connects to */ + dbname?: string; + /** Upload for Open Graph image used for social media link previews */ + ogImageUpload?: File; + /** Upload for Browser favicon attachment */ + faviconUpload?: File; + /** Upload for Apple touch icon for iOS home screen bookmarks */ + appleTouchIconUpload?: File; + /** Upload for Primary logo image for the site */ + logoUpload?: File; +} +export interface UpdatePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PrimaryKeyConstraint` being updated. */ + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; +} +/** Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. */ +export interface PrimaryKeyConstraintPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + type?: string; + fieldIds?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTriggerInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Trigger` being updated. */ + triggerPatch: TriggerPatch; +} +/** Represents an update to a `Trigger`. Fields that are set will be updated. */ +export interface TriggerPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + event?: string; + functionName?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateCheckConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ + checkConstraintPatch: CheckConstraintPatch; +} +/** Represents an update to a `CheckConstraint`. Fields that are set will be updated. */ +export interface CheckConstraintPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + type?: string; + fieldIds?: string[]; + expr?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateUniqueConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UniqueConstraint` being updated. */ + uniqueConstraintPatch: UniqueConstraintPatch; +} +/** Represents an update to a `UniqueConstraint`. Fields that are set will be updated. */ +export interface UniqueConstraintPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateSpatialRelationInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SpatialRelation` being updated. */ + spatialRelationPatch: SpatialRelationPatch; +} +/** Represents an update to a `SpatialRelation`. Fields that are set will be updated. */ +export interface SpatialRelationPatch { + id?: string; + databaseId?: string; + tableId?: string; + fieldId?: string; + refTableId?: string; + refFieldId?: string; + name?: string; + operator?: string; + paramName?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdatePolicyInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Policy` being updated. */ + policyPatch: PolicyPatch; +} +/** Represents an update to a `Policy`. Fields that are set will be updated. */ +export interface PolicyPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Schema` being updated. */ + schemaPatch: SchemaPatch; +} +/** Represents an update to a `Schema`. Fields that are set will be updated. */ +export interface SchemaPatch { + id?: string; + databaseId?: string; + name?: string; + schemaName?: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateIndexInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Index` being updated. */ + indexPatch: IndexPatch; +} +/** Represents an update to a `Index`. Fields that are set will be updated. */ +export interface IndexPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: unknown; + whereClause?: unknown; + isUnique?: boolean; + options?: unknown; + opClasses?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `EmbeddingChunk` being updated. */ + embeddingChunkPatch: EmbeddingChunkPatch; +} +/** Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. */ +export interface EmbeddingChunkPatch { + id?: string; + databaseId?: string; + tableId?: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: unknown; + searchIndexes?: unknown; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateForeignKeyConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. */ + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +/** Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. */ +export interface ForeignKeyConstraintPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds?: string[]; + refTableId?: string; + refFieldIds?: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateWebauthnSettingInput { + clientMutationId?: string; + /** Unique identifier for this WebAuthn settings record */ + id: string; + /** An object where the defined keys will be set on the `WebauthnSetting` being updated. */ + webauthnSettingPatch: WebauthnSettingPatch; +} +/** Represents an update to a `WebauthnSetting`. Fields that are set will be updated. */ +export interface WebauthnSettingPatch { + /** Unique identifier for this WebAuthn settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string; + /** WebAuthn Relying Party display name */ + rpName?: string; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[]; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string; + /** Challenge TTL in seconds (default 300 = 5 minutes) */ + challengeExpirySeconds?: string; +} +export interface UpdateFieldInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Field` being updated. */ + fieldPatch: FieldPatch; +} +/** Represents an update to a `Field`. Fields that are set will be updated. */ +export interface FieldPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + label?: string; + description?: string; + smartTags?: unknown; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: unknown; + type?: unknown; + fieldOrder?: number; + regexp?: string; + chk?: unknown; + chkExpr?: unknown; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTableInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Table` being updated. */ + tablePatch: TablePatch; +} +/** Represents an update to a `Table`. Fields that are set will be updated. */ +export interface TablePatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + inheritsId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface DeleteFunctionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewTableInput { + clientMutationId?: string; + id: string; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + /** Unique identifier for this API-schema mapping */ + id: string; +} +export interface DeleteSiteThemeInput { + clientMutationId?: string; + /** Unique identifier for this theme record */ + id: string; +} +export interface DeleteViewRuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteApiInput { + clientMutationId?: string; + /** Unique identifier for this API */ + id: string; +} +export interface DeleteCorsSettingInput { + clientMutationId?: string; + /** Unique identifier for this CORS settings record */ + id: string; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} +export interface DeleteApiModuleInput { + clientMutationId?: string; + /** Unique identifier for this API module record */ + id: string; +} +export interface DeleteSiteModuleInput { + clientMutationId?: string; + /** Unique identifier for this site module record */ + id: string; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; +} +export interface DeletePubkeySettingInput { + clientMutationId?: string; + /** Unique identifier for this pubkey settings record */ + id: string; +} +export interface DeleteSchemaGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTriggerFunctionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDatabaseInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTableGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDomainInput { + clientMutationId?: string; + /** Unique identifier for this domain record */ + id: string; +} +export interface DeleteRlsSettingInput { + clientMutationId?: string; + /** Unique identifier for this RLS settings record */ + id: string; +} +export interface DeleteFullTextSearchInput { + clientMutationId?: string; + id: string; +} +export interface DeletePartitionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDatabaseSettingInput { + clientMutationId?: string; + /** Unique identifier for this settings record */ + id: string; +} +export interface DeleteEnumInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewInput { + clientMutationId?: string; + id: string; +} +export interface DeleteApiSettingInput { + clientMutationId?: string; + /** Unique identifier for this API settings record */ + id: string; +} +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppInput { + clientMutationId?: string; + /** Unique identifier for this app */ + id: string; +} +export interface DeleteSiteInput { + clientMutationId?: string; + /** Unique identifier for this site */ + id: string; +} +export interface DeletePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTriggerInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCheckConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUniqueConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSpatialRelationInput { + clientMutationId?: string; + id: string; +} +export interface DeletePolicyInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSchemaInput { + clientMutationId?: string; + id: string; +} +export interface DeleteIndexInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmbeddingChunkInput { + clientMutationId?: string; + id: string; +} +export interface DeleteForeignKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteWebauthnSettingInput { + clientMutationId?: string; + /** Unique identifier for this WebAuthn settings record */ + id: string; +} +export interface DeleteFieldInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTableInput { + clientMutationId?: string; + 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 `Function` values. */ +export interface FunctionConnection { + nodes: Function[]; + edges: FunctionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ViewTable` values. */ +export interface ViewTableConnection { + nodes: ViewTable[]; + edges: ViewTableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ApiSchema` values. */ +export interface ApiSchemaConnection { + nodes: ApiSchema[]; + edges: ApiSchemaEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SiteTheme` values. */ +export interface SiteThemeConnection { + nodes: SiteTheme[]; + edges: SiteThemeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ViewRule` values. */ +export interface ViewRuleConnection { + nodes: ViewRule[]; + edges: ViewRuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MigrateFile` values. */ +export interface MigrateFileConnection { + nodes: MigrateFile[]; + edges: MigrateFileEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DefaultPrivilege` values. */ +export interface DefaultPrivilegeConnection { + nodes: DefaultPrivilege[]; + edges: DefaultPrivilegeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ViewGrant` values. */ +export interface ViewGrantConnection { + nodes: ViewGrant[]; + edges: ViewGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Api` values. */ +export interface ApiConnection { + nodes: Api[]; + edges: ApiEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CorsSetting` values. */ +export interface CorsSettingConnection { + nodes: CorsSetting[]; + edges: CorsSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `NodeTypeRegistry` values. */ +export interface NodeTypeRegistryConnection { + nodes: NodeTypeRegistry[]; + edges: NodeTypeRegistryEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ApiModule` values. */ +export interface ApiModuleConnection { + nodes: ApiModule[]; + edges: ApiModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SiteModule` values. */ +export interface SiteModuleConnection { + nodes: SiteModule[]; + edges: SiteModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SiteMetadatum` values. */ +export interface SiteMetadatumConnection { + nodes: SiteMetadatum[]; + edges: SiteMetadatumEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PubkeySetting` values. */ +export interface PubkeySettingConnection { + nodes: PubkeySetting[]; + edges: PubkeySettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SchemaGrant` values. */ +export interface SchemaGrantConnection { + nodes: SchemaGrant[]; + edges: SchemaGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TriggerFunction` values. */ +export interface TriggerFunctionConnection { + nodes: TriggerFunction[]; + edges: TriggerFunctionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Database` values. */ +export interface DatabaseConnection { + nodes: Database[]; + edges: DatabaseEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TableGrant` values. */ +export interface TableGrantConnection { + nodes: TableGrant[]; + edges: TableGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Domain` values. */ +export interface DomainConnection { + nodes: Domain[]; + edges: DomainEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `RlsSetting` values. */ +export interface RlsSettingConnection { + nodes: RlsSetting[]; + edges: RlsSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `FullTextSearch` values. */ +export interface FullTextSearchConnection { + nodes: FullTextSearch[]; + edges: FullTextSearchEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Partition` values. */ +export interface PartitionConnection { + nodes: Partition[]; + edges: PartitionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SqlAction` values. */ +export interface SqlActionConnection { + nodes: SqlAction[]; + edges: SqlActionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseSetting` values. */ +export interface DatabaseSettingConnection { + nodes: DatabaseSetting[]; + edges: DatabaseSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Enum` values. */ +export interface EnumConnection { + nodes: Enum[]; + edges: EnumEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `View` values. */ +export interface ViewConnection { + nodes: View[]; + edges: ViewEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ApiSetting` values. */ +export interface ApiSettingConnection { + nodes: ApiSetting[]; + edges: ApiSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseTransfer` values. */ +export interface DatabaseTransferConnection { + nodes: DatabaseTransfer[]; + edges: DatabaseTransferEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `App` values. */ +export interface AppConnection { + nodes: App[]; + edges: AppEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Site` values. */ +export interface SiteConnection { + nodes: Site[]; + edges: SiteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PrimaryKeyConstraint` values. */ +export interface PrimaryKeyConstraintConnection { + nodes: PrimaryKeyConstraint[]; + edges: PrimaryKeyConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Trigger` values. */ +export interface TriggerConnection { + nodes: Trigger[]; + edges: TriggerEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CheckConstraint` values. */ +export interface CheckConstraintConnection { + nodes: CheckConstraint[]; + edges: CheckConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UniqueConstraint` values. */ +export interface UniqueConstraintConnection { + nodes: UniqueConstraint[]; + edges: UniqueConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SpatialRelation` values. */ +export interface SpatialRelationConnection { + nodes: SpatialRelation[]; + edges: SpatialRelationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Policy` values. */ +export interface PolicyConnection { + nodes: Policy[]; + edges: PolicyEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Schema` values. */ +export interface SchemaConnection { + nodes: Schema[]; + edges: SchemaEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Index` values. */ +export interface IndexConnection { + nodes: Index[]; + edges: IndexEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `EmbeddingChunk` values. */ +export interface EmbeddingChunkConnection { + nodes: EmbeddingChunk[]; + edges: EmbeddingChunkEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ForeignKeyConstraint` values. */ +export interface ForeignKeyConstraintConnection { + nodes: ForeignKeyConstraint[]; + edges: ForeignKeyConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `WebauthnSetting` values. */ +export interface WebauthnSettingConnection { + nodes: WebauthnSetting[]; + edges: WebauthnSettingEdge[]; + 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 `Field` values. */ +export interface FieldConnection { + nodes: Field[]; + edges: FieldEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Table` values. */ +export interface TableConnection { + nodes: Table[]; + edges: TableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface AcceptDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface CancelDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +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 { + clientMutationId?: string | null; + result?: string | null; +} +export interface CreateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was created by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export interface CreateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was created by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export interface CreateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was created by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export interface CreateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface CreateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was created by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface CreateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export interface CreatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was created by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was created by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface CreateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was created by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export interface CreateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was created by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export interface CreateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was created by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface CreateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was created by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was created by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface CreatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was created by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export interface CreateSqlActionPayload { + clientMutationId?: string | null; + /** The `SqlAction` that was created by this mutation. */ + sqlAction?: SqlAction | null; +} +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export interface CreateViewPayload { + clientMutationId?: string | null; + /** The `View` that was created by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export interface CreateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was created by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export interface CreateAppPayload { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export interface CreateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was created by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface CreateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface CreateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was created by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export interface CreatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface CreateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export interface CreateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was created by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export interface CreateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was created by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface CreateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was created by this mutation. */ + 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 CreateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was created by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface CreateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface UpdateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was updated by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was updated by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export interface UpdateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was updated by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export interface UpdateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface UpdateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was updated by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface UpdateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export interface UpdatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was updated by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was updated by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was updated by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was updated by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export interface UpdateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was updated by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface UpdateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was updated by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was updated by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface UpdatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was updated by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export interface UpdateViewPayload { + clientMutationId?: string | null; + /** The `View` that was updated by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export interface UpdateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was updated by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export interface UpdateAppPayload { + clientMutationId?: string | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export interface UpdateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface UpdatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was updated by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was updated by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface UpdateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was updated by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was updated by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export interface UpdateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was updated by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface UpdateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was updated by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export interface UpdateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was updated by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface UpdateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface DeleteFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was deleted by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was deleted by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export interface DeleteViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was deleted by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export interface DeleteApiPayload { + clientMutationId?: string | null; + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface DeleteCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was deleted by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface DeleteApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export interface DeletePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was deleted by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was deleted by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was deleted by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was deleted by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export interface DeleteDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was deleted by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface DeleteRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was deleted by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was deleted by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface DeletePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was deleted by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export interface DeleteViewPayload { + clientMutationId?: string | null; + /** The `View` that was deleted by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export interface DeleteApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was deleted by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export interface DeleteAppPayload { + clientMutationId?: string | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export interface DeleteSitePayload { + clientMutationId?: string | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface DeletePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was deleted by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was deleted by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface DeleteSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was deleted by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export interface DeletePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was deleted by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export interface DeleteIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was deleted by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface DeleteWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was deleted by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export interface DeleteFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was deleted by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface DeleteTablePayload { + clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | 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 `Function` edge in the connection. */ +export interface FunctionEdge { + cursor?: string | null; + /** The `Function` at the end of the edge. */ + node?: Function | 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 `ViewTable` edge in the connection. */ +export interface ViewTableEdge { + cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ + node?: ViewTable | null; +} +/** A `ApiSchema` edge in the connection. */ +export interface ApiSchemaEdge { + cursor?: string | null; + /** The `ApiSchema` at the end of the edge. */ + node?: ApiSchema | null; +} +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { + cursor?: string | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; +} +/** A `ViewRule` edge in the connection. */ +export interface ViewRuleEdge { + cursor?: string | null; + /** The `ViewRule` at the end of the edge. */ + node?: ViewRule | null; +} +/** A `MigrateFile` edge in the connection. */ +export interface MigrateFileEdge { + cursor?: string | null; + /** The `MigrateFile` at the end of the edge. */ + node?: MigrateFile | null; +} +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +/** A `ViewGrant` edge in the connection. */ +export interface ViewGrantEdge { + cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ + node?: ViewGrant | null; +} +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +/** A `CorsSetting` edge in the connection. */ +export interface CorsSettingEdge { + cursor?: string | null; + /** The `CorsSetting` at the end of the edge. */ + node?: CorsSetting | null; +} +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { + cursor?: string | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; +} +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ + node?: SiteMetadatum | null; +} +/** A `PubkeySetting` edge in the connection. */ +export interface PubkeySettingEdge { + cursor?: string | null; + /** The `PubkeySetting` at the end of the edge. */ + node?: PubkeySetting | null; +} +/** A `SchemaGrant` edge in the connection. */ +export interface SchemaGrantEdge { + cursor?: string | null; + /** The `SchemaGrant` at the end of the edge. */ + node?: SchemaGrant | null; +} +/** A `TriggerFunction` edge in the connection. */ +export interface TriggerFunctionEdge { + cursor?: string | null; + /** The `TriggerFunction` at the end of the edge. */ + node?: TriggerFunction | null; +} +/** A `Database` edge in the connection. */ +export interface DatabaseEdge { + cursor?: string | null; + /** The `Database` at the end of the edge. */ + node?: Database | null; +} +/** A `TableGrant` edge in the connection. */ +export interface TableGrantEdge { + cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ + node?: TableGrant | null; +} +/** A `Domain` edge in the connection. */ +export interface DomainEdge { + cursor?: string | null; + /** The `Domain` at the end of the edge. */ + node?: Domain | null; +} +/** A `RlsSetting` edge in the connection. */ +export interface RlsSettingEdge { + cursor?: string | null; + /** The `RlsSetting` at the end of the edge. */ + node?: RlsSetting | null; +} +/** A `FullTextSearch` edge in the connection. */ +export interface FullTextSearchEdge { + cursor?: string | null; + /** The `FullTextSearch` at the end of the edge. */ + node?: FullTextSearch | null; +} +/** A `Partition` edge in the connection. */ +export interface PartitionEdge { + cursor?: string | null; + /** The `Partition` at the end of the edge. */ + node?: Partition | null; +} +/** A `SqlAction` edge in the connection. */ +export interface SqlActionEdge { + cursor?: string | null; + /** The `SqlAction` at the end of the edge. */ + node?: SqlAction | null; +} +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} +/** A `View` edge in the connection. */ +export interface ViewEdge { + cursor?: string | null; + /** The `View` at the end of the edge. */ + node?: View | null; +} +/** A `ApiSetting` edge in the connection. */ +export interface ApiSettingEdge { + cursor?: string | null; + /** The `ApiSetting` at the end of the edge. */ + node?: ApiSetting | null; +} +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} +/** A `App` edge in the connection. */ +export interface AppEdge { + cursor?: string | null; + /** The `App` at the end of the edge. */ + node?: App | null; +} +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +/** A `PrimaryKeyConstraint` edge in the connection. */ +export interface PrimaryKeyConstraintEdge { + cursor?: string | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ + node?: PrimaryKeyConstraint | null; +} +/** A `Trigger` edge in the connection. */ +export interface TriggerEdge { + cursor?: string | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | null; +} +/** A `CheckConstraint` edge in the connection. */ +export interface CheckConstraintEdge { + cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ + node?: CheckConstraint | null; +} +/** A `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +/** A `SpatialRelation` edge in the connection. */ +export interface SpatialRelationEdge { + cursor?: string | null; + /** The `SpatialRelation` at the end of the edge. */ + node?: SpatialRelation | null; +} +/** A `Policy` edge in the connection. */ +export interface PolicyEdge { + cursor?: string | null; + /** The `Policy` at the end of the edge. */ + node?: Policy | null; +} +/** A `Schema` edge in the connection. */ +export interface SchemaEdge { + cursor?: string | null; + /** The `Schema` at the end of the edge. */ + node?: Schema | null; +} +/** A `Index` edge in the connection. */ +export interface IndexEdge { + cursor?: string | null; + /** The `Index` at the end of the edge. */ + node?: Index | null; +} +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} +/** A `ForeignKeyConstraint` edge in the connection. */ +export interface ForeignKeyConstraintEdge { + cursor?: string | null; + /** The `ForeignKeyConstraint` at the end of the edge. */ + node?: ForeignKeyConstraint | null; +} +/** A `WebauthnSetting` edge in the connection. */ +export interface WebauthnSettingEdge { + cursor?: string | null; + /** 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 `Field` edge in the connection. */ +export interface FieldEdge { + cursor?: string | null; + /** The `Field` at the end of the edge. */ + node?: Field | null; +} +/** A `Table` edge in the connection. */ +export interface TableEdge { + cursor?: string | null; + /** The `Table` at the end of the edge. */ + node?: Table | 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; +} +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; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; + isPrimaryKey: boolean; + isForeignKey: boolean; + description?: string | 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; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; + subtype?: string | null; +} +/** 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; +} diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts new file mode 100644 index 0000000000..80f613995e --- /dev/null +++ b/sdk/constructive-react/src/api/types.ts @@ -0,0 +1,814 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { ObjectCategory } from './schema-types'; +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; +export type ConstructiveInternalTypeUrl = unknown; +export interface Function { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; +} +export interface Schema { + id: string | null; + databaseId: string | null; + name: string | null; + schemaName: string | null; + label: string | null; + description: string | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + isPublic: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Table { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; + label: string | null; + description: string | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + useRls: boolean | null; + timestamps: boolean | null; + peoplestamps: boolean | null; + pluralName: string | null; + singularName: string | null; + tags: string[] | null; + partitioned: boolean | null; + partitionStrategy: string | null; + partitionKeyNames: string[] | null; + partitionKeyTypes: string[] | null; + inheritsId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface CheckConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + type: string | null; + fieldIds: string[] | null; + expr: unknown | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Field { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + label: string | null; + description: string | null; + smartTags: unknown | null; + isRequired: boolean | null; + apiRequired: boolean | null; + defaultValue: unknown | null; + type: unknown | null; + fieldOrder: number | null; + regexp: string | null; + chk: unknown | null; + chkExpr: unknown | null; + min: number | null; + max: number | null; + tags: string[] | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface SpatialRelation { + id: string | null; + databaseId: string | null; + tableId: string | null; + fieldId: string | null; + refTableId: string | null; + refFieldId: string | null; + name: string | null; + operator: string | null; + paramName: string | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface ForeignKeyConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + description: string | null; + smartTags: unknown | null; + type: string | null; + fieldIds: string[] | null; + refTableId: string | null; + refFieldIds: string[] | null; + deleteAction: string | null; + updateAction: string | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface FullTextSearch { + id: string | null; + databaseId: string | null; + tableId: string | null; + fieldId: string | null; + fieldIds: string[] | null; + weights: string[] | null; + langs: string[] | null; + langColumn: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Index { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + fieldIds: string[] | null; + includeFieldIds: string[] | null; + accessMethod: string | null; + indexParams: unknown | null; + whereClause: unknown | null; + isUnique: boolean | null; + options: unknown | null; + opClasses: string[] | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Policy { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + granteeName: string | null; + privilege: string | null; + permissive: boolean | null; + disabled: boolean | null; + policyType: string | null; + data: unknown | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface PrimaryKeyConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + type: string | null; + fieldIds: string[] | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface TableGrant { + id: string | null; + databaseId: string | null; + tableId: string | null; + privilege: string | null; + granteeName: string | null; + fieldIds: string[] | null; + isGrant: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Trigger { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + event: string | null; + functionName: string | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface UniqueConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + description: string | null; + smartTags: unknown | null; + type: string | null; + fieldIds: string[] | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface View { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; + tableId: string | null; + viewType: string | null; + data: unknown | null; + filterType: string | null; + filterData: unknown | null; + securityInvoker: boolean | null; + isReadOnly: boolean | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; +} +export interface ViewTable { + id: string | null; + viewId: string | null; + tableId: string | null; + joinOrder: number | null; +} +export interface ViewGrant { + id: string | null; + databaseId: string | null; + viewId: string | null; + granteeName: string | null; + privilege: string | null; + withGrantOption: boolean | null; + isGrant: boolean | null; +} +export interface ViewRule { + id: string | null; + databaseId: string | null; + viewId: string | null; + name: string | null; + event: string | null; + action: string | null; +} +export interface EmbeddingChunk { + id: string | null; + databaseId: string | null; + tableId: string | null; + embeddingFieldId: string | null; + chunksTableId: string | null; + chunksTableName: string | null; + contentFieldName: string | null; + dimensions: number | null; + metric: string | null; + chunkSize: number | null; + chunkOverlap: number | null; + chunkStrategy: string | null; + metadataFields: unknown | null; + searchIndexes: unknown | null; + enqueueChunkingJob: boolean | null; + chunkingTaskName: string | null; + embeddingModel: string | null; + embeddingProvider: string | null; + parentFkFieldId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface SchemaGrant { + id: string | null; + databaseId: string | null; + schemaId: string | null; + granteeName: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface DefaultPrivilege { + id: string | null; + databaseId: string | null; + schemaId: string | null; + objectType: string | null; + privilege: string | null; + granteeName: string | null; + isGrant: boolean | null; +} +export interface Enum { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; + label: string | null; + description: string | null; + values: string[] | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; +} +export interface ApiSchema { + id: string | null; + databaseId: string | null; + schemaId: string | null; + apiId: string | null; +} +export interface ApiModule { + id: string | null; + databaseId: string | null; + apiId: string | null; + name: string | null; + data: unknown | null; +} +export interface Domain { + id: string | null; + databaseId: string | null; + apiId: string | null; + siteId: string | null; + subdomain: ConstructiveInternalTypeHostname | null; + domain: ConstructiveInternalTypeHostname | null; +} +export interface SiteMetadatum { + id: string | null; + databaseId: string | null; + siteId: string | null; + title: string | null; + description: string | null; + ogImage: ConstructiveInternalTypeImage | null; +} +export interface SiteModule { + id: string | null; + databaseId: string | null; + siteId: string | null; + name: string | null; + data: unknown | null; +} +export interface SiteTheme { + id: string | null; + databaseId: string | null; + siteId: string | null; + theme: unknown | null; +} +export interface CorsSetting { + id: string | null; + databaseId: string | null; + apiId: string | null; + allowedOrigins: string[] | null; +} +export interface TriggerFunction { + id: string | null; + databaseId: string | null; + name: string | null; + code: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Partition { + id: string | null; + databaseId: string | null; + tableId: string | null; + strategy: string | null; + partitionKeyId: string | null; + interval: string | null; + retention: string | null; + retentionKeepTable: boolean | null; + premake: number | null; + namingPattern: string | null; + isParented: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface DatabaseTransfer { + id: string | null; + databaseId: string | null; + targetOwnerId: string | null; + sourceApproved: boolean | null; + targetApproved: boolean | null; + sourceApprovedAt: string | null; + targetApprovedAt: string | null; + status: string | null; + initiatedBy: string | null; + notes: string | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; + completedAt: string | null; +} +export interface Api { + id: string | null; + databaseId: string | null; + name: string | null; + dbname: string | null; + roleName: string | null; + anonRole: string | null; + isPublic: boolean | null; +} +export interface Site { + id: string | null; + databaseId: string | null; + title: string | null; + description: string | null; + ogImage: ConstructiveInternalTypeImage | null; + favicon: ConstructiveInternalTypeAttachment | null; + appleTouchIcon: ConstructiveInternalTypeImage | null; + logo: ConstructiveInternalTypeImage | null; + dbname: string | null; +} +export interface App { + id: string | null; + databaseId: string | null; + siteId: string | null; + name: string | null; + appImage: ConstructiveInternalTypeImage | null; + appStoreLink: ConstructiveInternalTypeUrl | null; + appStoreId: string | null; + appIdPrefix: string | null; + playStoreLink: ConstructiveInternalTypeUrl | null; +} +export interface ApiSetting { + id: string | null; + databaseId: string | null; + apiId: string | null; + enableAggregates: boolean | null; + enablePostgis: boolean | null; + enableSearch: boolean | null; + enableDirectUploads: boolean | null; + enablePresignedUploads: boolean | null; + enableManyToMany: boolean | null; + enableConnectionFilter: boolean | null; + enableLtree: boolean | null; + enableLlm: boolean | null; + enableRealtime: boolean | null; + enableBulk: boolean | null; + enableI18N: boolean | null; + options: unknown | null; +} +export interface MigrateFile { + id: string | null; + databaseId: string | null; + upload: ConstructiveInternalTypeUpload | null; +} +export interface NodeTypeRegistry { + name: string | null; + slug: string | null; + category: string | null; + displayName: string | null; + description: string | null; + parameterSchema: unknown | null; + tags: string[] | null; +} +export interface PubkeySetting { + id: string | null; + databaseId: string | null; + schemaId: string | null; + cryptoNetwork: string | null; + userField: string | null; + signUpWithKeyFunctionId: string | null; + signInRequestChallengeFunctionId: string | null; + signInRecordFailureFunctionId: string | null; + signInWithChallengeFunctionId: string | null; +} +export interface Database { + id: string | null; + ownerId: string | null; + schemaHash: string | null; + name: string | null; + label: string | null; + hash: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface RlsSetting { + id: string | null; + databaseId: string | null; + authenticateSchemaId: string | null; + roleSchemaId: string | null; + authenticateFunctionId: string | null; + authenticateStrictFunctionId: string | null; + currentRoleFunctionId: string | null; + currentRoleIdFunctionId: string | null; + currentUserAgentFunctionId: string | null; + currentIpAddressFunctionId: string | null; +} +export interface SqlAction { + id: number | null; + name: string | null; + databaseId: string | null; + deploy: string | null; + deps: string[] | null; + payload: unknown | null; + content: string | null; + revert: string | null; + verify: string | null; + createdAt: string | null; + action: string | null; + actionId: string | null; + actorId: string | null; +} +export interface DatabaseSetting { + id: string | null; + databaseId: string | null; + enableAggregates: boolean | null; + enablePostgis: boolean | null; + enableSearch: boolean | null; + enableDirectUploads: boolean | null; + enablePresignedUploads: boolean | null; + enableManyToMany: boolean | null; + enableConnectionFilter: boolean | null; + enableLtree: boolean | null; + enableLlm: boolean | null; + enableRealtime: boolean | null; + enableBulk: boolean | null; + enableI18N: boolean | null; + options: unknown | null; +} +export interface WebauthnSetting { + id: string | null; + databaseId: string | null; + schemaId: string | null; + credentialsSchemaId: string | null; + sessionsSchemaId: string | null; + sessionSecretsSchemaId: string | null; + credentialsTableId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + sessionSecretsTableId: string | null; + userFieldId: string | null; + rpId: string | null; + rpName: string | null; + originAllowlist: string[] | null; + attestationType: string | null; + requireUserVerification: boolean | null; + 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; + 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/index.ts b/sdk/constructive-react/src/index.ts index 4f0892d9e0..dca8c56ed3 100644 --- a/sdk/constructive-react/src/index.ts +++ b/sdk/constructive-react/src/index.ts @@ -7,6 +7,9 @@ * @generated by @constructive-io/graphql-codegen */ export * as admin from './admin'; +export * as agent from './agent'; +export * as api from './api'; export * as auth from './auth'; +export * as modules from './modules'; export * as objects from './objects'; -export * as public_ from './public'; +export * as usage from './usage'; diff --git a/sdk/constructive-react/src/modules/README.md b/sdk/constructive-react/src/modules/README.md new file mode 100644 index 0000000000..446d9eb24d --- /dev/null +++ b/sdk/constructive-react/src/modules/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 56 +- **Custom queries:** 2 +- **Custom mutations:** 10 + +**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/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md new file mode 100644 index 0000000000..16606ca502 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -0,0 +1,1750 @@ +# 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 | +|------|------|-------------| +| `useDefaultIdsModulesQuery` | Query | List all defaultIdsModules | +| `useDefaultIdsModuleQuery` | Query | Get one defaultIdsModule | +| `useCreateDefaultIdsModuleMutation` | Mutation | Create a defaultIdsModule | +| `useUpdateDefaultIdsModuleMutation` | Mutation | Update a defaultIdsModule | +| `useDeleteDefaultIdsModuleMutation` | Mutation | Delete a defaultIdsModule | +| `useMembershipTypesModulesQuery` | Query | List all membershipTypesModules | +| `useMembershipTypesModuleQuery` | Query | Get one membershipTypesModule | +| `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 | +| `useUpdateDevicesModuleMutation` | Mutation | Update a devicesModule | +| `useDeleteDevicesModuleMutation` | Mutation | Delete a devicesModule | +| `useI18nModulesQuery` | Query | List all i18nModules | +| `useI18NModuleQuery` | Query | Get one i18NModule | +| `useCreateI18NModuleMutation` | Mutation | Create a i18NModule | +| `useUpdateI18NModuleMutation` | Mutation | Update a i18NModule | +| `useDeleteI18NModuleMutation` | Mutation | Delete a i18NModule | +| `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. | +| `useUserCredentialsModuleQuery` | 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. | +| `useCreateUserCredentialsModuleMutation` | 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. | +| `useUpdateUserCredentialsModuleMutation` | 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. | +| `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 | +| `useIdentityProvidersModulesQuery` | Query | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | +| `useIdentityProvidersModuleQuery` | Query | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | +| `useCreateIdentityProvidersModuleMutation` | Mutation | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | +| `useUpdateIdentityProvidersModuleMutation` | Mutation | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | +| `useDeleteIdentityProvidersModuleMutation` | Mutation | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | +| `useConnectedAccountsModulesQuery` | Query | List all connectedAccountsModules | +| `useConnectedAccountsModuleQuery` | Query | Get one connectedAccountsModule | +| `useCreateConnectedAccountsModuleMutation` | Mutation | Create a connectedAccountsModule | +| `useUpdateConnectedAccountsModuleMutation` | Mutation | Update a connectedAccountsModule | +| `useDeleteConnectedAccountsModuleMutation` | Mutation | Delete a connectedAccountsModule | +| `useEmailsModulesQuery` | Query | List all emailsModules | +| `useEmailsModuleQuery` | Query | Get one emailsModule | +| `useCreateEmailsModuleMutation` | Mutation | Create a emailsModule | +| `useUpdateEmailsModuleMutation` | Mutation | Update a emailsModule | +| `useDeleteEmailsModuleMutation` | Mutation | Delete a emailsModule | +| `usePhoneNumbersModulesQuery` | Query | List all phoneNumbersModules | +| `usePhoneNumbersModuleQuery` | Query | Get one phoneNumbersModule | +| `useCreatePhoneNumbersModuleMutation` | Mutation | Create a phoneNumbersModule | +| `useUpdatePhoneNumbersModuleMutation` | Mutation | Update a phoneNumbersModule | +| `useDeletePhoneNumbersModuleMutation` | Mutation | Delete a phoneNumbersModule | +| `useRateLimitsModulesQuery` | Query | List all rateLimitsModules | +| `useRateLimitsModuleQuery` | Query | Get one rateLimitsModule | +| `useCreateRateLimitsModuleMutation` | Mutation | Create a rateLimitsModule | +| `useUpdateRateLimitsModuleMutation` | Mutation | Update a rateLimitsModule | +| `useDeleteRateLimitsModuleMutation` | Mutation | Delete a rateLimitsModule | +| `useUsersModulesQuery` | Query | List all usersModules | +| `useUsersModuleQuery` | Query | Get one usersModule | +| `useCreateUsersModuleMutation` | Mutation | Create a usersModule | +| `useUpdateUsersModuleMutation` | Mutation | Update a usersModule | +| `useDeleteUsersModuleMutation` | Mutation | Delete a usersModule | +| `useWebauthnCredentialsModulesQuery` | Query | 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. | +| `useWebauthnCredentialsModuleQuery` | Query | 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. | +| `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. | +| `useCryptoAddressesModulesQuery` | Query | List all cryptoAddressesModules | +| `useCryptoAddressesModuleQuery` | Query | Get one cryptoAddressesModule | +| `useCreateCryptoAddressesModuleMutation` | Mutation | Create a cryptoAddressesModule | +| `useUpdateCryptoAddressesModuleMutation` | Mutation | Update a cryptoAddressesModule | +| `useDeleteCryptoAddressesModuleMutation` | Mutation | Delete a cryptoAddressesModule | +| `useDenormalizedTableFieldsQuery` | Query | List all denormalizedTableFields | +| `useDenormalizedTableFieldQuery` | Query | Get one denormalizedTableField | +| `useCreateDenormalizedTableFieldMutation` | Mutation | Create a denormalizedTableField | +| `useUpdateDenormalizedTableFieldMutation` | Mutation | Update a denormalizedTableField | +| `useDeleteDenormalizedTableFieldMutation` | Mutation | Delete a denormalizedTableField | +| `useRlsModulesQuery` | Query | List all rlsModules | +| `useRlsModuleQuery` | Query | Get one rlsModule | +| `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | +| `useUpdateRlsModuleMutation` | Mutation | Update a rlsModule | +| `useDeleteRlsModuleMutation` | Mutation | Delete a rlsModule | +| `useBlueprintsQuery` | Query | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | +| `useBlueprintQuery` | Query | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | +| `useCreateBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | +| `useUpdateBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | +| `useDeleteBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | +| `useBlueprintTemplatesQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useBlueprintTemplateQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useCreateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useUpdateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useDeleteBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useBlueprintConstructionsQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | +| `useBlueprintConstructionQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | +| `useCreateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | +| `useUpdateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | +| `useDeleteBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | +| `useCryptoAuthModulesQuery` | Query | List all cryptoAuthModules | +| `useCryptoAuthModuleQuery` | Query | Get one cryptoAuthModule | +| `useCreateCryptoAuthModuleMutation` | Mutation | Create a cryptoAuthModule | +| `useUpdateCryptoAuthModuleMutation` | Mutation | Update a cryptoAuthModule | +| `useDeleteCryptoAuthModuleMutation` | Mutation | Delete a cryptoAuthModule | +| `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 | +| `useSessionsModulesQuery` | Query | List all sessionsModules | +| `useSessionsModuleQuery` | Query | Get one sessionsModule | +| `useCreateSessionsModuleMutation` | Mutation | Create a sessionsModule | +| `useUpdateSessionsModuleMutation` | Mutation | Update a sessionsModule | +| `useDeleteSessionsModuleMutation` | Mutation | Delete a sessionsModule | +| `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 | +| `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 | +| `useSecureTableProvisionsQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useSecureTableProvisionQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useCreateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useUpdateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useDeleteSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `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. | +| `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 | +| `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. | +| `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 | +| `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 | +| `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 | +| `useComputeLogModulesQuery` | Query | List all computeLogModules | +| `useComputeLogModuleQuery` | Query | Get one computeLogModule | +| `useCreateComputeLogModuleMutation` | Mutation | Create a computeLogModule | +| `useUpdateComputeLogModuleMutation` | Mutation | Update a computeLogModule | +| `useDeleteComputeLogModuleMutation` | Mutation | Delete a computeLogModule | +| `useInferenceLogModulesQuery` | Query | List all inferenceLogModules | +| `useInferenceLogModuleQuery` | Query | Get one inferenceLogModule | +| `useCreateInferenceLogModuleMutation` | Mutation | Create a inferenceLogModule | +| `useUpdateInferenceLogModuleMutation` | Mutation | Update a inferenceLogModule | +| `useDeleteInferenceLogModuleMutation` | Mutation | Delete a inferenceLogModule | +| `useStorageLogModulesQuery` | Query | List all storageLogModules | +| `useStorageLogModuleQuery` | Query | Get one storageLogModule | +| `useCreateStorageLogModuleMutation` | Mutation | Create a storageLogModule | +| `useUpdateStorageLogModuleMutation` | Mutation | Update a storageLogModule | +| `useDeleteStorageLogModuleMutation` | Mutation | Delete a storageLogModule | +| `useTransferLogModulesQuery` | Query | List all transferLogModules | +| `useTransferLogModuleQuery` | Query | Get one transferLogModule | +| `useCreateTransferLogModuleMutation` | Mutation | Create a transferLogModule | +| `useUpdateTransferLogModuleMutation` | Mutation | Update a transferLogModule | +| `useDeleteTransferLogModuleMutation` | Mutation | Delete a transferLogModule | +| `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 | +| `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 | +| `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 | +| `useHierarchyModulesQuery` | Query | List all hierarchyModules | +| `useHierarchyModuleQuery` | Query | Get one hierarchyModule | +| `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | +| `useUpdateHierarchyModuleMutation` | Mutation | Update a hierarchyModule | +| `useDeleteHierarchyModuleMutation` | Mutation | Delete a hierarchyModule | +| `useBillingModulesQuery` | Query | List all billingModules | +| `useBillingModuleQuery` | Query | Get one billingModule | +| `useCreateBillingModuleMutation` | Mutation | Create a billingModule | +| `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | +| `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | +| `useBillingProviderModulesQuery` | Query | List all billingProviderModules | +| `useBillingProviderModuleQuery` | Query | Get one billingProviderModule | +| `useCreateBillingProviderModuleMutation` | Mutation | Create a billingProviderModule | +| `useUpdateBillingProviderModuleMutation` | Mutation | Update a billingProviderModule | +| `useDeleteBillingProviderModuleMutation` | Mutation | Delete a billingProviderModule | +| `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 | +| `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 | +| `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. + - 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. | +| `useRelationProvisionQuery` | 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. + - 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. | +| `useCreateRelationProvisionMutation` | Mutation | 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. | +| `useUpdateRelationProvisionMutation` | Mutation | 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. | +| `useDeleteRelationProvisionMutation` | Mutation | 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. | +| `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 | +| `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 | +| `useAgentModulesQuery` | Query | List all agentModules | +| `useAgentModuleQuery` | Query | Get one agentModule | +| `useCreateAgentModuleMutation` | Mutation | Create a agentModule | +| `useUpdateAgentModuleMutation` | Mutation | Update a agentModule | +| `useDeleteAgentModuleMutation` | Mutation | Delete a agentModule | +| `useLimitsModulesQuery` | Query | List all limitsModules | +| `useLimitsModuleQuery` | Query | Get one limitsModule | +| `useCreateLimitsModuleMutation` | Mutation | Create a limitsModule | +| `useUpdateLimitsModuleMutation` | Mutation | Update a limitsModule | +| `useDeleteLimitsModuleMutation` | Mutation | Delete a limitsModule | +| `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 | +| `useStorageModulesQuery` | Query | List all storageModules | +| `useStorageModuleQuery` | Query | Get one storageModule | +| `useCreateStorageModuleMutation` | Mutation | Create a storageModule | +| `useUpdateStorageModuleMutation` | Mutation | Update a storageModule | +| `useDeleteStorageModuleMutation` | Mutation | Delete a storageModule | +| `useEventsModulesQuery` | Query | List all eventsModules | +| `useEventsModuleQuery` | Query | Get one eventsModule | +| `useCreateEventsModuleMutation` | Mutation | Create a eventsModule | +| `useUpdateEventsModuleMutation` | Mutation | Update a eventsModule | +| `useDeleteEventsModuleMutation` | Mutation | Delete a eventsModule | +| `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 + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. | +| `useEntityTypeProvisionQuery` | Query | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, + and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. | +| `useCreateEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, + and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. | +| `useUpdateEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, + and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. | +| `useDeleteEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, + and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. | +| `useResolveBlueprintFieldQuery` | Query | Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. | +| `useResolveBlueprintTableQuery` | Query | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | +| `useConstructBlueprintMutation` | Mutation | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | +| `useProvisionFullTextSearchMutation` | Mutation | Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. | +| `useProvisionIndexMutation` | Mutation | Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. | +| `useProvisionCheckConstraintMutation` | Mutation | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | +| `useProvisionUniqueConstraintMutation` | Mutation | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | +| `useCopyTemplateToBlueprintMutation` | Mutation | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | +| `useProvisionSpatialRelationMutation` | Mutation | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | +| `useProvisionTableMutation` | Mutation | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | +| `useProvisionRelationMutation` | Mutation | Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). | +| `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 + +### DefaultIdsModule + +```typescript +// List all defaultIdsModules +const { data, isLoading } = useDefaultIdsModulesQuery({ + selection: { fields: { id: true, databaseId: true } }, +}); + +// Get one defaultIdsModule +const { data: item } = useDefaultIdsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true } }, +}); + +// Create a defaultIdsModule +const { mutate: create } = useCreateDefaultIdsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '' }); +``` + +### MembershipTypesModule + +```typescript +// List all membershipTypesModules +const { data, isLoading } = useMembershipTypesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Get one membershipTypesModule +const { data: item } = useMembershipTypesModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Create a membershipTypesModule +const { mutate: create } = useCreateMembershipTypesModuleMutation({ + selection: { fields: { id: true } }, +}); +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 +// List all sessionSecretsModules +const { data, isLoading } = useSessionSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }, +}); + +// Get one sessionSecretsModule +const { data: item } = useSessionSecretsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }, +}); + +// Create a sessionSecretsModule +const { mutate: create } = useCreateSessionSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +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 +// List all devicesModules +const { data, isLoading } = useDevicesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, +}); + +// Get one devicesModule +const { data: item } = useDevicesModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, +}); + +// Create a devicesModule +const { mutate: create } = useCreateDevicesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); +``` + +### I18NModule + +```typescript +// List all i18nModules +const { data, isLoading } = useI18nModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }, +}); + +// Get one i18NModule +const { data: item } = useI18NModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }, +}); + +// Create a i18NModule +const { mutate: create } = useCreateI18NModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }); +``` + +### UserCredentialsModule + +```typescript +// List all userCredentialsModules +const { data, isLoading } = useUserCredentialsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one userCredentialsModule +const { data: item } = useUserCredentialsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a userCredentialsModule +const { mutate: create } = useCreateUserCredentialsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` + +### UserSettingsModule + +```typescript +// 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 userSettingsModule +const { data: item } = useUserSettingsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }, +}); + +// Create a userSettingsModule +const { mutate: create } = useCreateUserSettingsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }); +``` + +### ConfigSecretsUserModule + +```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 } }, +}); + +// Get one configSecretsUserModule +const { data: item } = useConfigSecretsUserModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }, +}); + +// Create a configSecretsUserModule +const { mutate: create } = useCreateConfigSecretsUserModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }); +``` + +### IdentityProvidersModule + +```typescript +// List all identityProvidersModules +const { data, isLoading } = useIdentityProvidersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one identityProvidersModule +const { data: item } = useIdentityProvidersModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a identityProvidersModule +const { mutate: create } = useCreateIdentityProvidersModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` + +### ConnectedAccountsModule + +```typescript +// List all connectedAccountsModules +const { data, isLoading } = useConnectedAccountsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one connectedAccountsModule +const { data: item } = useConnectedAccountsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a connectedAccountsModule +const { mutate: create } = useCreateConnectedAccountsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` + +### EmailsModule + +```typescript +// List all emailsModules +const { data, isLoading } = useEmailsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one emailsModule +const { data: item } = useEmailsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a emailsModule +const { mutate: create } = useCreateEmailsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` + +### PhoneNumbersModule + +```typescript +// List all phoneNumbersModules +const { data, isLoading } = usePhoneNumbersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one phoneNumbersModule +const { data: item } = usePhoneNumbersModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a phoneNumbersModule +const { mutate: create } = useCreatePhoneNumbersModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` + +### RateLimitsModule + +```typescript +// List all rateLimitsModules +const { data, isLoading } = useRateLimitsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, +}); + +// Get one rateLimitsModule +const { data: item } = useRateLimitsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, +}); + +// Create a rateLimitsModule +const { mutate: create } = useCreateRateLimitsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }); +``` + +### UsersModule + +```typescript +// List all usersModules +const { data, isLoading } = useUsersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one usersModule +const { data: item } = useUsersModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a usersModule +const { mutate: create } = useCreateUsersModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', apiName: '', privateApiName: '' }); +``` + +### WebauthnCredentialsModule + +```typescript +// List all webauthnCredentialsModules +const { data, isLoading } = useWebauthnCredentialsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one webauthnCredentialsModule +const { data: item } = useWebauthnCredentialsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a webauthnCredentialsModule +const { mutate: create } = useCreateWebauthnCredentialsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` + +### CryptoAddressesModule + +```typescript +// List all cryptoAddressesModules +const { data, isLoading } = useCryptoAddressesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }, +}); + +// Get one cryptoAddressesModule +const { data: item } = useCryptoAddressesModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }, +}); + +// Create a cryptoAddressesModule +const { mutate: create } = useCreateCryptoAddressesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }); +``` + +### DenormalizedTableField + +```typescript +// List all denormalizedTableFields +const { data, isLoading } = useDenormalizedTableFieldsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, +}); + +// Get one denormalizedTableField +const { data: item } = useDenormalizedTableFieldQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, +}); + +// Create a denormalizedTableField +const { mutate: create } = useCreateDenormalizedTableFieldMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); +``` + +### RlsModule + +```typescript +// List all rlsModules +const { data, isLoading } = useRlsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }, +}); + +// Get one rlsModule +const { data: item } = useRlsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }, +}); + +// Create a rlsModule +const { mutate: create } = useCreateRlsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', apiName: '', privateApiName: '' }); +``` + +### Blueprint + +```typescript +// List all blueprints +const { data, isLoading } = useBlueprintsQuery({ + selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); + +// Get one blueprint +const { data: item } = useBlueprintQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); + +// Create a blueprint +const { mutate: create } = useCreateBlueprintMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }); +``` + +### BlueprintTemplate + +```typescript +// List all blueprintTemplates +const { data, isLoading } = useBlueprintTemplatesQuery({ + selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); + +// Get one blueprintTemplate +const { data: item } = useBlueprintTemplateQuery({ + id: '', + selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); + +// Create a blueprintTemplate +const { mutate: create } = useCreateBlueprintTemplateMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }); +``` + +### BlueprintConstruction + +```typescript +// List all blueprintConstructions +const { data, isLoading } = useBlueprintConstructionsQuery({ + selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }, +}); + +// Get one blueprintConstruction +const { data: item } = useBlueprintConstructionQuery({ + id: '', + selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }, +}); + +// Create a blueprintConstruction +const { mutate: create } = useCreateBlueprintConstructionMutation({ + selection: { fields: { id: true } }, +}); +create({ blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }); +``` + +### CryptoAuthModule + +```typescript +// List all cryptoAuthModules +const { data, isLoading } = useCryptoAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, +}); + +// Get one cryptoAuthModule +const { data: item } = useCryptoAuthModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, +}); + +// Create a cryptoAuthModule +const { mutate: create } = useCreateCryptoAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); +``` + +### RateLimitMetersModule + +```typescript +// List all rateLimitMetersModules +const { data, isLoading } = useRateLimitMetersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one rateLimitMetersModule +const { data: item } = useRateLimitMetersModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a rateLimitMetersModule +const { mutate: create } = useCreateRateLimitMetersModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### SessionsModule + +```typescript +// List all sessionsModules +const { data, isLoading } = useSessionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, +}); + +// Get one sessionsModule +const { data: item } = useSessionsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, +}); + +// Create a sessionsModule +const { mutate: create } = useCreateSessionsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); +``` + +### MerkleStoreModule + +```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, databaseOwned: true, createdAt: true } }, +}); + +// Get one merkleStoreModule +const { data: item } = 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, databaseOwned: true, createdAt: true } }, +}); + +// Create a merkleStoreModule +const { mutate: create } = useCreateMerkleStoreModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', databaseOwned: '' }); +``` + +### GraphModule + +```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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, +}); + +// Get one graphModule +const { data: item } = useGraphModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, +}); + +// Create a graphModule +const { mutate: create } = useCreateGraphModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', databaseOwned: '', entityTableId: '', policies: '', provisions: '' }); +``` + +### SecureTableProvision + +```typescript +// List all secureTableProvisions +const { data, isLoading } = useSecureTableProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, +}); + +// Get one secureTableProvision +const { data: item } = useSecureTableProvisionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, +}); + +// Create a secureTableProvision +const { mutate: create } = useCreateSecureTableProvisionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }); +``` + +### ConfigSecretsModule + +```typescript +// List all configSecretsModules +const { data, isLoading } = useConfigSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, +}); + +// Get one configSecretsModule +const { data: item } = useConfigSecretsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, +}); + +// Create a configSecretsModule +const { mutate: create } = useCreateConfigSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); +``` + +### InvitesModule + +```typescript +// List all invitesModules +const { data, isLoading } = useInvitesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 invitesModule +const { data: item } = useInvitesModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 invitesModule +const { mutate: create } = useCreateInvitesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); +``` + +### DatabaseProvisionModule + +```typescript +// List all databaseProvisionModules +const { data, isLoading } = useDatabaseProvisionModulesQuery({ + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); + +// Get one databaseProvisionModule +const { data: item } = useDatabaseProvisionModuleQuery({ + id: '', + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); + +// Create a databaseProvisionModule +const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +``` + +### RealtimeModule + +```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 } }, +}); + +// Get one realtimeModule +const { data: item } = useRealtimeModuleQuery({ + 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 } }, +}); + +// Create a realtimeModule +const { mutate: create } = useCreateRealtimeModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }); +``` + +### WebauthnAuthModule + +```typescript +// List all webauthnAuthModules +const { data, isLoading } = useWebauthnAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }, +}); + +// Get one webauthnAuthModule +const { data: item } = useWebauthnAuthModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }, +}); + +// Create a webauthnAuthModule +const { mutate: create } = useCreateWebauthnAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }); +``` + +### NamespaceModule + +```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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +``` + +### ComputeLogModule + +```typescript +// List all computeLogModules +const { data, isLoading } = useComputeLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one computeLogModule +const { data: item } = useComputeLogModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a computeLogModule +const { mutate: create } = useCreateComputeLogModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### InferenceLogModule + +```typescript +// List all inferenceLogModules +const { data, isLoading } = useInferenceLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one inferenceLogModule +const { data: item } = useInferenceLogModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a inferenceLogModule +const { mutate: create } = useCreateInferenceLogModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### StorageLogModule + +```typescript +// List all storageLogModules +const { data, isLoading } = useStorageLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one storageLogModule +const { data: item } = useStorageLogModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a storageLogModule +const { mutate: create } = useCreateStorageLogModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### TransferLogModule + +```typescript +// List all transferLogModules +const { data, isLoading } = useTransferLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one transferLogModule +const { data: item } = useTransferLogModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a transferLogModule +const { mutate: create } = useCreateTransferLogModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### DbUsageModule + +```typescript +// List all dbUsageModules +const { data, isLoading } = useDbUsageModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one dbUsageModule +const { data: item } = useDbUsageModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a dbUsageModule +const { mutate: create } = useCreateDbUsageModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### NotificationsModule + +```typescript +// List all notificationsModules +const { data, isLoading } = useNotificationsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }, +}); + +// Get one notificationsModule +const { data: item } = useNotificationsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }, +}); + +// Create a notificationsModule +const { mutate: create } = useCreateNotificationsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }); +``` + +### PlansModule + +```typescript +// List all plansModules +const { data, isLoading } = usePlansModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 plansModule +const { data: item } = usePlansModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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 plansModule +const { mutate: create } = useCreatePlansModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### HierarchyModule + +```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, 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, 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: '' }); +``` + +### BillingModule + +```typescript +// List all billingModules +const { data, isLoading } = useBillingModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one billingModule +const { data: item } = useBillingModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a billingModule +const { mutate: create } = useCreateBillingModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### BillingProviderModule + +```typescript +// List all billingProviderModules +const { data, isLoading } = useBillingProviderModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Get one billingProviderModule +const { data: item } = useBillingProviderModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }, +}); + +// Create a billingProviderModule +const { mutate: create } = useCreateBillingProviderModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }); +``` + +### ProfilesModule + +```typescript +// List all profilesModules +const { data, isLoading } = useProfilesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); +``` + +### PermissionsModule + +```typescript +// List all permissionsModules +const { data, isLoading } = usePermissionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, schemaId: true, privateSchemaId: 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: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); +``` + +### RelationProvision + +```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 } }, +}); + +// Get one relationProvision +const { data: item } = useRelationProvisionQuery({ + 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 } }, +}); + +// Create a relationProvision +const { mutate: create } = useCreateRelationProvisionMutation({ + 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: '' }); +``` + +### FunctionModule + +```typescript +// List all functionModules +const { data, isLoading } = useFunctionModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, +}); + +// Create a functionModule +const { mutate: create } = useCreateFunctionModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +``` + +### UserAuthModule + +```typescript +// List all userAuthModules +const { data, isLoading } = useUserAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }, +}); + +// Get one userAuthModule +const { data: item } = useUserAuthModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }, +}); + +// Create a userAuthModule +const { mutate: create } = useCreateUserAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +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: '' }); +``` + +### AgentModule + +```typescript +// List all agentModules +const { data, isLoading } = useAgentModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }, +}); + +// Get one agentModule +const { data: item } = useAgentModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }, +}); + +// Create a agentModule +const { mutate: create } = useCreateAgentModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', planTableId: '', skillTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', planTableName: '', skillTableName: '', hasKnowledge: '', hasPlans: '', hasSkills: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', knowledgeConfig: '', skillsConfig: '', knowledgePolicies: '', provisions: '' }); +``` + +### LimitsModule + +```typescript +// List all limitsModules +const { data, isLoading } = useLimitsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', 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, 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, apiName: true, privateApiName: true } }, +}); + +// Get one membershipsModule +const { data: item } = useMembershipsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, apiName: true, privateApiName: true } }, +}); + +// Create a membershipsModule +const { mutate: create } = useCreateMembershipsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', 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: '', apiName: '', privateApiName: '' }); +``` + +### StorageModule + +```typescript +// List all storageModules +const { data, isLoading } = useStorageModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } }, +}); + +// Get one storageModule +const { data: item } = useStorageModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } }, +}); + +// Create a storageModule +const { mutate: create } = useCreateStorageModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', databaseOwned: '', 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: '', apiName: '', privateApiName: '' }); +``` + +### EventsModule + +```typescript +// List all eventsModules +const { data, isLoading } = useEventsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, +}); + +// Get one eventsModule +const { data: item } = useEventsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, +}); + +// Create a eventsModule +const { mutate: create } = useCreateEventsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', 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: '', databaseOwned: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); +``` + +### EntityTypeProvision + +```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); +``` + +## Custom Operation Hooks + +### `useResolveBlueprintFieldQuery` + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableId` | UUID | + | `fieldName` | String | + +### `useResolveBlueprintTableQuery` + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableName` | String | + | `schemaName` | String | + | `tableMap` | JSON | + | `defaultSchemaId` | UUID | + +### `useConstructBlueprintMutation` + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConstructBlueprintInput (required) | + +### `useProvisionFullTextSearchMutation` + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionFullTextSearchInput (required) | + +### `useProvisionIndexMutation` + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionIndexInput (required) | + +### `useProvisionCheckConstraintMutation` + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionCheckConstraintInput (required) | + +### `useProvisionUniqueConstraintMutation` + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionUniqueConstraintInput (required) | + +### `useCopyTemplateToBlueprintMutation` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + +### `useProvisionSpatialRelationMutation` + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSpatialRelationInput (required) | + +### `useProvisionTableMutation` + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionTableInput (required) | + +### `useProvisionRelationMutation` + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionRelationInput (required) | + +### `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/modules/hooks/client.ts b/sdk/constructive-react/src/modules/hooks/client.ts new file mode 100644 index 0000000000..47b9aa63f4 --- /dev/null +++ b/sdk/constructive-react/src/modules/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/modules/hooks/index.ts b/sdk/constructive-react/src/modules/hooks/index.ts new file mode 100644 index 0000000000..f5b1d9f919 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: DefaultIdsModule, MembershipTypesModule, UserStateModule, SessionSecretsModule, ConfigSecretsOrgModule, DevicesModule, I18NModule, UserCredentialsModule, UserSettingsModule, ConfigSecretsUserModule, IdentityProvidersModule, ConnectedAccountsModule, EmailsModule, PhoneNumbersModule, RateLimitsModule, UsersModule, WebauthnCredentialsModule, CryptoAddressesModule, DenormalizedTableField, RlsModule, Blueprint, BlueprintTemplate, BlueprintConstruction, CryptoAuthModule, RateLimitMetersModule, SessionsModule, MerkleStoreModule, GraphModule, SecureTableProvision, ConfigSecretsModule, InvitesModule, DatabaseProvisionModule, RealtimeModule, WebauthnAuthModule, NamespaceModule, ComputeLogModule, InferenceLogModule, StorageLogModule, TransferLogModule, DbUsageModule, NotificationsModule, PlansModule, HierarchyModule, BillingModule, BillingProviderModule, ProfilesModule, PermissionsModule, RelationProvision, FunctionModule, UserAuthModule, AgentModule, LimitsModule, MembershipsModule, StorageModule, EventsModule, EntityTypeProvision + * + * 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/modules/hooks/invalidation.ts b/sdk/constructive-react/src/modules/hooks/invalidation.ts new file mode 100644 index 0000000000..a3ad48b0d2 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/invalidation.ts @@ -0,0 +1,1502 @@ +/** + * 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 { + defaultIdsModuleKeys, + membershipTypesModuleKeys, + userStateModuleKeys, + sessionSecretsModuleKeys, + configSecretsOrgModuleKeys, + devicesModuleKeys, + i18NModuleKeys, + userCredentialsModuleKeys, + userSettingsModuleKeys, + configSecretsUserModuleKeys, + identityProvidersModuleKeys, + connectedAccountsModuleKeys, + emailsModuleKeys, + phoneNumbersModuleKeys, + rateLimitsModuleKeys, + usersModuleKeys, + webauthnCredentialsModuleKeys, + cryptoAddressesModuleKeys, + denormalizedTableFieldKeys, + rlsModuleKeys, + blueprintKeys, + blueprintTemplateKeys, + blueprintConstructionKeys, + cryptoAuthModuleKeys, + rateLimitMetersModuleKeys, + sessionsModuleKeys, + merkleStoreModuleKeys, + graphModuleKeys, + secureTableProvisionKeys, + configSecretsModuleKeys, + invitesModuleKeys, + databaseProvisionModuleKeys, + realtimeModuleKeys, + webauthnAuthModuleKeys, + namespaceModuleKeys, + computeLogModuleKeys, + inferenceLogModuleKeys, + storageLogModuleKeys, + transferLogModuleKeys, + dbUsageModuleKeys, + notificationsModuleKeys, + plansModuleKeys, + hierarchyModuleKeys, + billingModuleKeys, + billingProviderModuleKeys, + profilesModuleKeys, + permissionsModuleKeys, + relationProvisionKeys, + functionModuleKeys, + userAuthModuleKeys, + agentModuleKeys, + limitsModuleKeys, + membershipsModuleKeys, + storageModuleKeys, + eventsModuleKeys, + entityTypeProvisionKeys, +} 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 defaultIdsModule queries */ defaultIdsModule: { + /** Invalidate all defaultIdsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.all, + }), + /** Invalidate defaultIdsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.lists(), + }), + /** Invalidate a specific defaultIdsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.detail(id), + }), + }, + /** Invalidate membershipTypesModule queries */ membershipTypesModule: { + /** Invalidate all membershipTypesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.all, + }), + /** Invalidate membershipTypesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.lists(), + }), + /** Invalidate a specific membershipTypesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: sessionSecretsModuleKeys.all, + }), + /** Invalidate sessionSecretsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sessionSecretsModuleKeys.lists(), + }), + /** Invalidate a specific sessionSecretsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: devicesModuleKeys.all, + }), + /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: devicesModuleKeys.lists(), + }), + /** Invalidate a specific devicesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: devicesModuleKeys.detail(id), + }), + }, + /** Invalidate i18NModule queries */ i18NModule: { + /** Invalidate all i18NModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: i18NModuleKeys.all, + }), + /** Invalidate i18NModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: i18NModuleKeys.lists(), + }), + /** Invalidate a specific i18NModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: i18NModuleKeys.detail(id), + }), + }, + /** Invalidate userCredentialsModule queries */ userCredentialsModule: { + /** Invalidate all userCredentialsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userCredentialsModuleKeys.all, + }), + /** Invalidate userCredentialsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userCredentialsModuleKeys.lists(), + }), + /** Invalidate a specific userCredentialsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: userCredentialsModuleKeys.detail(id), + }), + }, + /** Invalidate userSettingsModule queries */ userSettingsModule: { + /** Invalidate all userSettingsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingsModuleKeys.all, + }), + /** Invalidate userSettingsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userSettingsModuleKeys.lists(), + }), + /** Invalidate a specific userSettingsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: userSettingsModuleKeys.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 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 connectedAccountsModule queries */ connectedAccountsModule: { + /** Invalidate all connectedAccountsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.all, + }), + /** Invalidate connectedAccountsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.lists(), + }), + /** Invalidate a specific connectedAccountsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.detail(id), + }), + }, + /** Invalidate emailsModule queries */ emailsModule: { + /** Invalidate all emailsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.all, + }), + /** Invalidate emailsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.lists(), + }), + /** Invalidate a specific emailsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.detail(id), + }), + }, + /** Invalidate phoneNumbersModule queries */ phoneNumbersModule: { + /** Invalidate all phoneNumbersModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.all, + }), + /** Invalidate phoneNumbersModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.lists(), + }), + /** Invalidate a specific phoneNumbersModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.detail(id), + }), + }, + /** Invalidate rateLimitsModule queries */ rateLimitsModule: { + /** Invalidate all rateLimitsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rateLimitsModuleKeys.all, + }), + /** Invalidate rateLimitsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rateLimitsModuleKeys.lists(), + }), + /** Invalidate a specific rateLimitsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: rateLimitsModuleKeys.detail(id), + }), + }, + /** Invalidate usersModule queries */ usersModule: { + /** Invalidate all usersModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.all, + }), + /** Invalidate usersModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.lists(), + }), + /** Invalidate a specific usersModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.detail(id), + }), + }, + /** Invalidate webauthnCredentialsModule queries */ webauthnCredentialsModule: { + /** Invalidate all webauthnCredentialsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webauthnCredentialsModuleKeys.all, + }), + /** Invalidate webauthnCredentialsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webauthnCredentialsModuleKeys.lists(), + }), + /** Invalidate a specific webauthnCredentialsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: webauthnCredentialsModuleKeys.detail(id), + }), + }, + /** Invalidate cryptoAddressesModule queries */ cryptoAddressesModule: { + /** Invalidate all cryptoAddressesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.all, + }), + /** Invalidate cryptoAddressesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.lists(), + }), + /** Invalidate a specific cryptoAddressesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.detail(id), + }), + }, + /** Invalidate denormalizedTableField queries */ denormalizedTableField: { + /** Invalidate all denormalizedTableField queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.all, + }), + /** Invalidate denormalizedTableField list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.lists(), + }), + /** Invalidate a specific denormalizedTableField */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.detail(id), + }), + }, + /** Invalidate rlsModule queries */ rlsModule: { + /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.all, + }), + /** Invalidate rlsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.lists(), + }), + /** Invalidate a specific rlsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.detail(id), + }), + }, + /** Invalidate blueprint queries */ blueprint: { + /** Invalidate all blueprint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintKeys.all, + }), + /** Invalidate blueprint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintKeys.lists(), + }), + /** Invalidate a specific blueprint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: blueprintKeys.detail(id), + }), + }, + /** Invalidate blueprintTemplate queries */ blueprintTemplate: { + /** Invalidate all blueprintTemplate queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintTemplateKeys.all, + }), + /** Invalidate blueprintTemplate list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintTemplateKeys.lists(), + }), + /** Invalidate a specific blueprintTemplate */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: blueprintTemplateKeys.detail(id), + }), + }, + /** Invalidate blueprintConstruction queries */ blueprintConstruction: { + /** Invalidate all blueprintConstruction queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintConstructionKeys.all, + }), + /** Invalidate blueprintConstruction list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintConstructionKeys.lists(), + }), + /** Invalidate a specific blueprintConstruction */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: blueprintConstructionKeys.detail(id), + }), + }, + /** Invalidate cryptoAuthModule queries */ cryptoAuthModule: { + /** Invalidate all cryptoAuthModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.all, + }), + /** Invalidate cryptoAuthModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.lists(), + }), + /** Invalidate a specific cryptoAuthModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.detail(id), + }), + }, + /** Invalidate rateLimitMetersModule queries */ rateLimitMetersModule: { + /** Invalidate all rateLimitMetersModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rateLimitMetersModuleKeys.all, + }), + /** Invalidate rateLimitMetersModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rateLimitMetersModuleKeys.lists(), + }), + /** Invalidate a specific rateLimitMetersModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: rateLimitMetersModuleKeys.detail(id), + }), + }, + /** Invalidate sessionsModule queries */ sessionsModule: { + /** Invalidate all sessionsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.all, + }), + /** Invalidate sessionsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.lists(), + }), + /** Invalidate a specific sessionsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.detail(id), + }), + }, + /** Invalidate merkleStoreModule queries */ merkleStoreModule: { + /** Invalidate all merkleStoreModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: merkleStoreModuleKeys.all, + }), + /** Invalidate merkleStoreModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: merkleStoreModuleKeys.lists(), + }), + /** Invalidate a specific merkleStoreModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: merkleStoreModuleKeys.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 secureTableProvision queries */ secureTableProvision: { + /** Invalidate all secureTableProvision queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.all, + }), + /** Invalidate secureTableProvision list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.lists(), + }), + /** Invalidate a specific secureTableProvision */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: secureTableProvisionKeys.detail(id), + }), + }, + /** Invalidate configSecretsModule queries */ configSecretsModule: { + /** Invalidate all configSecretsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsModuleKeys.all, + }), + /** Invalidate configSecretsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsModuleKeys.lists(), + }), + /** Invalidate a specific configSecretsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: configSecretsModuleKeys.detail(id), + }), + }, + /** Invalidate invitesModule queries */ invitesModule: { + /** Invalidate all invitesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.all, + }), + /** Invalidate invitesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.lists(), + }), + /** Invalidate a specific invitesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.detail(id), + }), + }, + /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { + /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.all, + }), + /** Invalidate databaseProvisionModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.lists(), + }), + /** Invalidate a specific databaseProvisionModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.detail(id), + }), + }, + /** Invalidate realtimeModule queries */ realtimeModule: { + /** Invalidate all realtimeModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: realtimeModuleKeys.all, + }), + /** Invalidate realtimeModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: realtimeModuleKeys.lists(), + }), + /** Invalidate a specific realtimeModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: realtimeModuleKeys.detail(id), + }), + }, + /** Invalidate webauthnAuthModule queries */ webauthnAuthModule: { + /** Invalidate all webauthnAuthModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webauthnAuthModuleKeys.all, + }), + /** Invalidate webauthnAuthModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: webauthnAuthModuleKeys.lists(), + }), + /** Invalidate a specific webauthnAuthModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: webauthnAuthModuleKeys.detail(id), + }), + }, + /** Invalidate namespaceModule queries */ namespaceModule: { + /** Invalidate all namespaceModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceModuleKeys.all, + }), + /** Invalidate namespaceModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceModuleKeys.lists(), + }), + /** Invalidate a specific namespaceModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: namespaceModuleKeys.detail(id), + }), + }, + /** Invalidate computeLogModule queries */ computeLogModule: { + /** Invalidate all computeLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.all, + }), + /** Invalidate computeLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.lists(), + }), + /** Invalidate a specific computeLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.detail(id), + }), + }, + /** Invalidate inferenceLogModule queries */ inferenceLogModule: { + /** Invalidate all inferenceLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.all, + }), + /** Invalidate inferenceLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.lists(), + }), + /** Invalidate a specific inferenceLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.detail(id), + }), + }, + /** Invalidate storageLogModule queries */ storageLogModule: { + /** Invalidate all storageLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.all, + }), + /** Invalidate storageLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.lists(), + }), + /** Invalidate a specific storageLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.detail(id), + }), + }, + /** Invalidate transferLogModule queries */ transferLogModule: { + /** Invalidate all transferLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.all, + }), + /** Invalidate transferLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.lists(), + }), + /** Invalidate a specific transferLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.detail(id), + }), + }, + /** Invalidate 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 notificationsModule queries */ notificationsModule: { + /** Invalidate all notificationsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: notificationsModuleKeys.all, + }), + /** Invalidate notificationsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: notificationsModuleKeys.lists(), + }), + /** Invalidate a specific notificationsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: notificationsModuleKeys.detail(id), + }), + }, + /** Invalidate plansModule queries */ plansModule: { + /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: plansModuleKeys.all, + }), + /** Invalidate plansModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: plansModuleKeys.lists(), + }), + /** Invalidate a specific plansModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: plansModuleKeys.detail(id), + }), + }, + /** Invalidate hierarchyModule queries */ hierarchyModule: { + /** Invalidate all hierarchyModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.all, + }), + /** Invalidate hierarchyModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.lists(), + }), + /** Invalidate a specific hierarchyModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.detail(id), + }), + }, + /** Invalidate billingModule queries */ billingModule: { + /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: billingModuleKeys.all, + }), + /** Invalidate billingModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: billingModuleKeys.lists(), + }), + /** Invalidate a specific billingModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: billingModuleKeys.detail(id), + }), + }, + /** Invalidate billingProviderModule queries */ billingProviderModule: { + /** Invalidate all billingProviderModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: billingProviderModuleKeys.all, + }), + /** Invalidate billingProviderModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: billingProviderModuleKeys.lists(), + }), + /** Invalidate a specific billingProviderModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: billingProviderModuleKeys.detail(id), + }), + }, + /** Invalidate profilesModule queries */ profilesModule: { + /** Invalidate all profilesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.all, + }), + /** Invalidate profilesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.lists(), + }), + /** Invalidate a specific profilesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.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 relationProvision queries */ relationProvision: { + /** Invalidate all relationProvision queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.all, + }), + /** Invalidate relationProvision list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.lists(), + }), + /** Invalidate a specific relationProvision */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: relationProvisionKeys.detail(id), + }), + }, + /** Invalidate functionModule queries */ functionModule: { + /** Invalidate all functionModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionModuleKeys.all, + }), + /** Invalidate functionModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionModuleKeys.lists(), + }), + /** Invalidate a specific functionModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: functionModuleKeys.detail(id), + }), + }, + /** Invalidate userAuthModule queries */ userAuthModule: { + /** Invalidate all userAuthModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.all, + }), + /** Invalidate userAuthModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.lists(), + }), + /** Invalidate a specific userAuthModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.detail(id), + }), + }, + /** Invalidate agentModule queries */ agentModule: { + /** Invalidate all agentModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentModuleKeys.all, + }), + /** Invalidate agentModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentModuleKeys.lists(), + }), + /** Invalidate a specific agentModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentModuleKeys.detail(id), + }), + }, + /** Invalidate limitsModule queries */ limitsModule: { + /** Invalidate all limitsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.all, + }), + /** Invalidate limitsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.lists(), + }), + /** Invalidate a specific limitsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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 storageModule queries */ storageModule: { + /** Invalidate all storageModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storageModuleKeys.all, + }), + /** Invalidate storageModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storageModuleKeys.lists(), + }), + /** Invalidate a specific storageModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: storageModuleKeys.detail(id), + }), + }, + /** Invalidate eventsModule queries */ eventsModule: { + /** Invalidate all eventsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: eventsModuleKeys.all, + }), + /** Invalidate eventsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: eventsModuleKeys.lists(), + }), + /** Invalidate a specific eventsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: eventsModuleKeys.detail(id), + }), + }, + /** Invalidate entityTypeProvision queries */ entityTypeProvision: { + /** Invalidate all entityTypeProvision queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: entityTypeProvisionKeys.all, + }), + /** Invalidate entityTypeProvision list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: entityTypeProvisionKeys.lists(), + }), + /** Invalidate a specific entityTypeProvision */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: entityTypeProvisionKeys.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 defaultIdsModule from cache */ defaultIdsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: defaultIdsModuleKeys.detail(id), + }); + }, + /** Remove membershipTypesModule from cache */ membershipTypesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + 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 + ) => { + queryClient.removeQueries({ + 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 + ) => { + queryClient.removeQueries({ + queryKey: devicesModuleKeys.detail(id), + }); + }, + /** Remove i18NModule from cache */ i18NModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: i18NModuleKeys.detail(id), + }); + }, + /** Remove userCredentialsModule from cache */ userCredentialsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: userCredentialsModuleKeys.detail(id), + }); + }, + /** Remove userSettingsModule from cache */ userSettingsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: userSettingsModuleKeys.detail(id), + }); + }, + /** Remove configSecretsUserModule from cache */ configSecretsUserModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: configSecretsUserModuleKeys.detail(id), + }); + }, + /** Remove identityProvidersModule from cache */ identityProvidersModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: identityProvidersModuleKeys.detail(id), + }); + }, + /** Remove connectedAccountsModule from cache */ connectedAccountsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: connectedAccountsModuleKeys.detail(id), + }); + }, + /** Remove emailsModule from cache */ emailsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: emailsModuleKeys.detail(id), + }); + }, + /** Remove phoneNumbersModule from cache */ phoneNumbersModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: phoneNumbersModuleKeys.detail(id), + }); + }, + /** Remove rateLimitsModule from cache */ rateLimitsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: rateLimitsModuleKeys.detail(id), + }); + }, + /** Remove usersModule from cache */ usersModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: usersModuleKeys.detail(id), + }); + }, + /** Remove webauthnCredentialsModule from cache */ webauthnCredentialsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: webauthnCredentialsModuleKeys.detail(id), + }); + }, + /** Remove cryptoAddressesModule from cache */ cryptoAddressesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: cryptoAddressesModuleKeys.detail(id), + }); + }, + /** Remove denormalizedTableField from cache */ denormalizedTableField: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: denormalizedTableFieldKeys.detail(id), + }); + }, + /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: rlsModuleKeys.detail(id), + }); + }, + /** Remove blueprint from cache */ blueprint: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: blueprintKeys.detail(id), + }); + }, + /** Remove blueprintTemplate from cache */ blueprintTemplate: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: blueprintTemplateKeys.detail(id), + }); + }, + /** Remove blueprintConstruction from cache */ blueprintConstruction: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: blueprintConstructionKeys.detail(id), + }); + }, + /** Remove cryptoAuthModule from cache */ cryptoAuthModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: cryptoAuthModuleKeys.detail(id), + }); + }, + /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: rateLimitMetersModuleKeys.detail(id), + }); + }, + /** Remove sessionsModule from cache */ sessionsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: sessionsModuleKeys.detail(id), + }); + }, + /** Remove merkleStoreModule from cache */ merkleStoreModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: merkleStoreModuleKeys.detail(id), + }); + }, + /** Remove graphModule from cache */ graphModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: graphModuleKeys.detail(id), + }); + }, + /** Remove secureTableProvision from cache */ secureTableProvision: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: secureTableProvisionKeys.detail(id), + }); + }, + /** Remove configSecretsModule from cache */ configSecretsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: configSecretsModuleKeys.detail(id), + }); + }, + /** Remove invitesModule from cache */ invitesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: invitesModuleKeys.detail(id), + }); + }, + /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseProvisionModuleKeys.detail(id), + }); + }, + /** Remove realtimeModule from cache */ realtimeModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: realtimeModuleKeys.detail(id), + }); + }, + /** Remove webauthnAuthModule from cache */ webauthnAuthModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: webauthnAuthModuleKeys.detail(id), + }); + }, + /** Remove namespaceModule from cache */ namespaceModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: namespaceModuleKeys.detail(id), + }); + }, + /** Remove computeLogModule from cache */ computeLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: computeLogModuleKeys.detail(id), + }); + }, + /** Remove inferenceLogModule from cache */ inferenceLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: inferenceLogModuleKeys.detail(id), + }); + }, + /** Remove storageLogModule from cache */ storageLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: storageLogModuleKeys.detail(id), + }); + }, + /** Remove transferLogModule from cache */ transferLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: transferLogModuleKeys.detail(id), + }); + }, + /** Remove dbUsageModule from cache */ dbUsageModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: dbUsageModuleKeys.detail(id), + }); + }, + /** Remove notificationsModule from cache */ notificationsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: notificationsModuleKeys.detail(id), + }); + }, + /** Remove plansModule from cache */ plansModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: plansModuleKeys.detail(id), + }); + }, + /** Remove hierarchyModule from cache */ hierarchyModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: hierarchyModuleKeys.detail(id), + }); + }, + /** Remove billingModule from cache */ billingModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: billingModuleKeys.detail(id), + }); + }, + /** Remove billingProviderModule from cache */ billingProviderModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: billingProviderModuleKeys.detail(id), + }); + }, + /** Remove profilesModule from cache */ profilesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: profilesModuleKeys.detail(id), + }); + }, + /** Remove permissionsModule from cache */ permissionsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: permissionsModuleKeys.detail(id), + }); + }, + /** Remove relationProvision from cache */ relationProvision: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: relationProvisionKeys.detail(id), + }); + }, + /** Remove functionModule from cache */ functionModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: functionModuleKeys.detail(id), + }); + }, + /** Remove userAuthModule from cache */ userAuthModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: userAuthModuleKeys.detail(id), + }); + }, + /** Remove agentModule from cache */ agentModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: agentModuleKeys.detail(id), + }); + }, + /** Remove limitsModule from cache */ limitsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: limitsModuleKeys.detail(id), + }); + }, + /** Remove membershipsModule from cache */ membershipsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: membershipsModuleKeys.detail(id), + }); + }, + /** Remove storageModule from cache */ storageModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: storageModuleKeys.detail(id), + }); + }, + /** Remove eventsModule from cache */ eventsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: eventsModuleKeys.detail(id), + }); + }, + /** Remove entityTypeProvision from cache */ entityTypeProvision: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: entityTypeProvisionKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/modules/hooks/mutation-keys.ts b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts new file mode 100644 index 0000000000..292b9e6bcc --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts @@ -0,0 +1,694 @@ +/** + * 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 defaultIdsModuleMutationKeys = { + /** All defaultIdsModule mutation keys */ all: ['mutation', 'defaultidsmodule'] as const, + /** Create defaultIdsModule mutation key */ create: () => + ['mutation', 'defaultidsmodule', 'create'] as const, + /** Update defaultIdsModule mutation key */ update: (id: string | number) => + ['mutation', 'defaultidsmodule', 'update', id] as const, + /** Delete defaultIdsModule mutation key */ delete: (id: string | number) => + ['mutation', 'defaultidsmodule', 'delete', id] as const, +} as const; +export const membershipTypesModuleMutationKeys = { + /** All membershipTypesModule mutation keys */ all: [ + 'mutation', + 'membershiptypesmodule', + ] as const, + /** Create membershipTypesModule mutation key */ create: () => + ['mutation', 'membershiptypesmodule', 'create'] as const, + /** Update membershipTypesModule mutation key */ update: (id: string | number) => + ['mutation', 'membershiptypesmodule', 'update', id] as const, + /** 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: () => + ['mutation', 'sessionsecretsmodule', 'create'] as const, + /** Update sessionSecretsModule mutation key */ update: (id: string | number) => + ['mutation', 'sessionsecretsmodule', 'update', id] as const, + /** 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: () => + ['mutation', 'devicesmodule', 'create'] as const, + /** Update devicesModule mutation key */ update: (id: string | number) => + ['mutation', 'devicesmodule', 'update', id] as const, + /** Delete devicesModule mutation key */ delete: (id: string | number) => + ['mutation', 'devicesmodule', 'delete', id] as const, +} as const; +export const i18NModuleMutationKeys = { + /** All i18NModule mutation keys */ all: ['mutation', 'i18nmodule'] as const, + /** Create i18NModule mutation key */ create: () => ['mutation', 'i18nmodule', 'create'] as const, + /** Update i18NModule mutation key */ update: (id: string | number) => + ['mutation', 'i18nmodule', 'update', id] as const, + /** 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: () => + ['mutation', 'usersettingsmodule', 'create'] as const, + /** Update userSettingsModule mutation key */ update: (id: string | number) => + ['mutation', 'usersettingsmodule', 'update', id] as const, + /** Delete userSettingsModule mutation key */ delete: (id: string | number) => + ['mutation', 'usersettingsmodule', '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 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 connectedAccountsModuleMutationKeys = { + /** All connectedAccountsModule mutation keys */ all: [ + 'mutation', + 'connectedaccountsmodule', + ] as const, + /** Create connectedAccountsModule mutation key */ create: () => + ['mutation', 'connectedaccountsmodule', 'create'] as const, + /** Update connectedAccountsModule mutation key */ update: (id: string | number) => + ['mutation', 'connectedaccountsmodule', 'update', id] as const, + /** Delete connectedAccountsModule mutation key */ delete: (id: string | number) => + ['mutation', 'connectedaccountsmodule', 'delete', id] as const, +} as const; +export const emailsModuleMutationKeys = { + /** All emailsModule mutation keys */ all: ['mutation', 'emailsmodule'] as const, + /** Create emailsModule mutation key */ create: () => + ['mutation', 'emailsmodule', 'create'] as const, + /** Update emailsModule mutation key */ update: (id: string | number) => + ['mutation', 'emailsmodule', 'update', id] as const, + /** Delete emailsModule mutation key */ delete: (id: string | number) => + ['mutation', 'emailsmodule', 'delete', id] as const, +} as const; +export const phoneNumbersModuleMutationKeys = { + /** All phoneNumbersModule mutation keys */ all: ['mutation', 'phonenumbersmodule'] as const, + /** Create phoneNumbersModule mutation key */ create: () => + ['mutation', 'phonenumbersmodule', 'create'] as const, + /** Update phoneNumbersModule mutation key */ update: (id: string | number) => + ['mutation', 'phonenumbersmodule', 'update', id] as const, + /** Delete phoneNumbersModule mutation key */ delete: (id: string | number) => + ['mutation', 'phonenumbersmodule', 'delete', id] as const, +} as const; +export const rateLimitsModuleMutationKeys = { + /** All rateLimitsModule mutation keys */ all: ['mutation', 'ratelimitsmodule'] as const, + /** Create rateLimitsModule mutation key */ create: () => + ['mutation', 'ratelimitsmodule', 'create'] as const, + /** Update rateLimitsModule mutation key */ update: (id: string | number) => + ['mutation', 'ratelimitsmodule', 'update', id] as const, + /** Delete rateLimitsModule mutation key */ delete: (id: string | number) => + ['mutation', 'ratelimitsmodule', 'delete', id] as const, +} as const; +export const usersModuleMutationKeys = { + /** All usersModule mutation keys */ all: ['mutation', 'usersmodule'] as const, + /** Create usersModule mutation key */ create: () => + ['mutation', 'usersmodule', 'create'] as const, + /** Update usersModule mutation key */ update: (id: string | number) => + ['mutation', 'usersmodule', 'update', id] as const, + /** Delete usersModule mutation key */ delete: (id: string | number) => + ['mutation', 'usersmodule', 'delete', id] as const, +} as const; +export const webauthnCredentialsModuleMutationKeys = { + /** All webauthnCredentialsModule mutation keys */ all: [ + 'mutation', + 'webauthncredentialsmodule', + ] as const, + /** Create webauthnCredentialsModule mutation key */ create: () => + ['mutation', 'webauthncredentialsmodule', 'create'] as const, + /** Update webauthnCredentialsModule mutation key */ update: (id: string | number) => + ['mutation', 'webauthncredentialsmodule', 'update', id] as const, + /** Delete webauthnCredentialsModule mutation key */ delete: (id: string | number) => + ['mutation', 'webauthncredentialsmodule', 'delete', id] as const, +} as const; +export const cryptoAddressesModuleMutationKeys = { + /** All cryptoAddressesModule mutation keys */ all: [ + 'mutation', + 'cryptoaddressesmodule', + ] as const, + /** Create cryptoAddressesModule mutation key */ create: () => + ['mutation', 'cryptoaddressesmodule', 'create'] as const, + /** Update cryptoAddressesModule mutation key */ update: (id: string | number) => + ['mutation', 'cryptoaddressesmodule', 'update', id] as const, + /** Delete cryptoAddressesModule mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoaddressesmodule', 'delete', id] as const, +} as const; +export const denormalizedTableFieldMutationKeys = { + /** All denormalizedTableField mutation keys */ all: [ + 'mutation', + 'denormalizedtablefield', + ] as const, + /** Create denormalizedTableField mutation key */ create: () => + ['mutation', 'denormalizedtablefield', 'create'] as const, + /** Update denormalizedTableField mutation key */ update: (id: string | number) => + ['mutation', 'denormalizedtablefield', 'update', id] as const, + /** Delete denormalizedTableField mutation key */ delete: (id: string | number) => + ['mutation', 'denormalizedtablefield', '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, + /** Update rlsModule mutation key */ update: (id: string | number) => + ['mutation', 'rlsmodule', 'update', id] as const, + /** Delete rlsModule mutation key */ delete: (id: string | number) => + ['mutation', 'rlsmodule', 'delete', id] as const, +} as const; +export const blueprintMutationKeys = { + /** All blueprint mutation keys */ all: ['mutation', 'blueprint'] as const, + /** Create blueprint mutation key */ create: () => ['mutation', 'blueprint', 'create'] as const, + /** Update blueprint mutation key */ update: (id: string | number) => + ['mutation', 'blueprint', 'update', id] as const, + /** Delete blueprint mutation key */ delete: (id: string | number) => + ['mutation', 'blueprint', 'delete', id] as const, +} as const; +export const blueprintTemplateMutationKeys = { + /** All blueprintTemplate mutation keys */ all: ['mutation', 'blueprinttemplate'] as const, + /** Create blueprintTemplate mutation key */ create: () => + ['mutation', 'blueprinttemplate', 'create'] as const, + /** Update blueprintTemplate mutation key */ update: (id: string | number) => + ['mutation', 'blueprinttemplate', 'update', id] as const, + /** Delete blueprintTemplate mutation key */ delete: (id: string | number) => + ['mutation', 'blueprinttemplate', 'delete', id] as const, +} as const; +export const blueprintConstructionMutationKeys = { + /** All blueprintConstruction mutation keys */ all: [ + 'mutation', + 'blueprintconstruction', + ] as const, + /** Create blueprintConstruction mutation key */ create: () => + ['mutation', 'blueprintconstruction', 'create'] as const, + /** Update blueprintConstruction mutation key */ update: (id: string | number) => + ['mutation', 'blueprintconstruction', 'update', id] as const, + /** Delete blueprintConstruction mutation key */ delete: (id: string | number) => + ['mutation', 'blueprintconstruction', 'delete', id] as const, +} as const; +export const cryptoAuthModuleMutationKeys = { + /** All cryptoAuthModule mutation keys */ all: ['mutation', 'cryptoauthmodule'] as const, + /** Create cryptoAuthModule mutation key */ create: () => + ['mutation', 'cryptoauthmodule', 'create'] as const, + /** Update cryptoAuthModule mutation key */ update: (id: string | number) => + ['mutation', 'cryptoauthmodule', 'update', id] as const, + /** Delete cryptoAuthModule mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoauthmodule', 'delete', id] as const, +} as const; +export const rateLimitMetersModuleMutationKeys = { + /** All rateLimitMetersModule mutation keys */ all: [ + 'mutation', + 'ratelimitmetersmodule', + ] as const, + /** Create rateLimitMetersModule mutation key */ create: () => + ['mutation', 'ratelimitmetersmodule', 'create'] as const, + /** Update rateLimitMetersModule mutation key */ update: (id: string | number) => + ['mutation', 'ratelimitmetersmodule', 'update', id] as const, + /** Delete rateLimitMetersModule mutation key */ delete: (id: string | number) => + ['mutation', 'ratelimitmetersmodule', 'delete', id] as const, +} as const; +export const sessionsModuleMutationKeys = { + /** All sessionsModule mutation keys */ all: ['mutation', 'sessionsmodule'] as const, + /** Create sessionsModule mutation key */ create: () => + ['mutation', 'sessionsmodule', 'create'] as const, + /** Update sessionsModule mutation key */ update: (id: string | number) => + ['mutation', 'sessionsmodule', 'update', id] as const, + /** Delete sessionsModule mutation key */ delete: (id: string | number) => + ['mutation', 'sessionsmodule', '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 graphModuleMutationKeys = { + /** All graphModule mutation keys */ all: ['mutation', 'graphmodule'] as const, + /** Create graphModule mutation key */ create: () => + ['mutation', 'graphmodule', 'create'] as const, + /** Update graphModule mutation key */ update: (id: string | number) => + ['mutation', 'graphmodule', 'update', id] as const, + /** Delete graphModule mutation key */ delete: (id: string | number) => + ['mutation', 'graphmodule', 'delete', id] as const, +} as const; +export const secureTableProvisionMutationKeys = { + /** All secureTableProvision mutation keys */ all: ['mutation', 'securetableprovision'] as const, + /** Create secureTableProvision mutation key */ create: () => + ['mutation', 'securetableprovision', 'create'] as const, + /** Update secureTableProvision mutation key */ update: (id: string | number) => + ['mutation', 'securetableprovision', 'update', id] as const, + /** Delete secureTableProvision mutation key */ delete: (id: string | number) => + ['mutation', 'securetableprovision', '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, +} as const; +export const invitesModuleMutationKeys = { + /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, + /** Create invitesModule mutation key */ create: () => + ['mutation', 'invitesmodule', 'create'] as const, + /** Update invitesModule mutation key */ update: (id: string | number) => + ['mutation', 'invitesmodule', 'update', id] as const, + /** Delete invitesModule mutation key */ delete: (id: string | number) => + ['mutation', 'invitesmodule', '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 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 webauthnAuthModuleMutationKeys = { + /** All webauthnAuthModule mutation keys */ all: ['mutation', 'webauthnauthmodule'] as const, + /** Create webauthnAuthModule mutation key */ create: () => + ['mutation', 'webauthnauthmodule', 'create'] as const, + /** Update webauthnAuthModule mutation key */ update: (id: string | number) => + ['mutation', 'webauthnauthmodule', 'update', id] as const, + /** Delete webauthnAuthModule mutation key */ delete: (id: string | number) => + ['mutation', 'webauthnauthmodule', '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 computeLogModuleMutationKeys = { + /** All computeLogModule mutation keys */ all: ['mutation', 'computelogmodule'] as const, + /** Create computeLogModule mutation key */ create: () => + ['mutation', 'computelogmodule', 'create'] as const, + /** Update computeLogModule mutation key */ update: (id: string | number) => + ['mutation', 'computelogmodule', 'update', id] as const, + /** Delete computeLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'computelogmodule', 'delete', id] as const, +} as const; +export const inferenceLogModuleMutationKeys = { + /** All inferenceLogModule mutation keys */ all: ['mutation', 'inferencelogmodule'] as const, + /** Create inferenceLogModule mutation key */ create: () => + ['mutation', 'inferencelogmodule', 'create'] as const, + /** Update inferenceLogModule mutation key */ update: (id: string | number) => + ['mutation', 'inferencelogmodule', 'update', id] as const, + /** Delete inferenceLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'inferencelogmodule', 'delete', id] as const, +} as const; +export const storageLogModuleMutationKeys = { + /** All storageLogModule mutation keys */ all: ['mutation', 'storagelogmodule'] as const, + /** Create storageLogModule mutation key */ create: () => + ['mutation', 'storagelogmodule', 'create'] as const, + /** Update storageLogModule mutation key */ update: (id: string | number) => + ['mutation', 'storagelogmodule', 'update', id] as const, + /** Delete storageLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'storagelogmodule', 'delete', id] as const, +} as const; +export const transferLogModuleMutationKeys = { + /** All transferLogModule mutation keys */ all: ['mutation', 'transferlogmodule'] as const, + /** Create transferLogModule mutation key */ create: () => + ['mutation', 'transferlogmodule', 'create'] as const, + /** Update transferLogModule mutation key */ update: (id: string | number) => + ['mutation', 'transferlogmodule', 'update', id] as const, + /** Delete transferLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'transferlogmodule', 'delete', id] as const, +} as const; +export const 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 notificationsModuleMutationKeys = { + /** All notificationsModule mutation keys */ all: ['mutation', 'notificationsmodule'] as const, + /** Create notificationsModule mutation key */ create: () => + ['mutation', 'notificationsmodule', 'create'] as const, + /** Update notificationsModule mutation key */ update: (id: string | number) => + ['mutation', 'notificationsmodule', 'update', id] as const, + /** Delete notificationsModule mutation key */ delete: (id: string | number) => + ['mutation', 'notificationsmodule', '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 hierarchyModuleMutationKeys = { + /** All hierarchyModule mutation keys */ all: ['mutation', 'hierarchymodule'] as const, + /** Create hierarchyModule mutation key */ create: () => + ['mutation', 'hierarchymodule', 'create'] as const, + /** Update hierarchyModule mutation key */ update: (id: string | number) => + ['mutation', 'hierarchymodule', 'update', id] as const, + /** Delete hierarchyModule mutation key */ delete: (id: string | number) => + ['mutation', 'hierarchymodule', 'delete', id] as const, +} as const; +export const billingModuleMutationKeys = { + /** All billingModule mutation keys */ all: ['mutation', 'billingmodule'] as const, + /** Create billingModule mutation key */ create: () => + ['mutation', 'billingmodule', 'create'] as const, + /** Update billingModule mutation key */ update: (id: string | number) => + ['mutation', 'billingmodule', 'update', id] as const, + /** Delete billingModule mutation key */ delete: (id: string | number) => + ['mutation', 'billingmodule', 'delete', id] as const, +} as const; +export const billingProviderModuleMutationKeys = { + /** All billingProviderModule mutation keys */ all: [ + 'mutation', + 'billingprovidermodule', + ] as const, + /** Create billingProviderModule mutation key */ create: () => + ['mutation', 'billingprovidermodule', 'create'] as const, + /** Update billingProviderModule mutation key */ update: (id: string | number) => + ['mutation', 'billingprovidermodule', 'update', id] as const, + /** Delete billingProviderModule mutation key */ delete: (id: string | number) => + ['mutation', 'billingprovidermodule', 'delete', id] as const, +} as const; +export const profilesModuleMutationKeys = { + /** All profilesModule mutation keys */ all: ['mutation', 'profilesmodule'] as const, + /** Create profilesModule mutation key */ create: () => + ['mutation', 'profilesmodule', 'create'] as const, + /** Update profilesModule mutation key */ update: (id: string | number) => + ['mutation', 'profilesmodule', 'update', id] as const, + /** Delete profilesModule mutation key */ delete: (id: string | number) => + ['mutation', 'profilesmodule', '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 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 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 userAuthModuleMutationKeys = { + /** All userAuthModule mutation keys */ all: ['mutation', 'userauthmodule'] as const, + /** Create userAuthModule mutation key */ create: () => + ['mutation', 'userauthmodule', 'create'] as const, + /** Update userAuthModule mutation key */ update: (id: string | number) => + ['mutation', 'userauthmodule', 'update', id] as const, + /** Delete userAuthModule mutation key */ delete: (id: string | number) => + ['mutation', 'userauthmodule', 'delete', id] as const, +} as const; +export const agentModuleMutationKeys = { + /** All agentModule mutation keys */ all: ['mutation', 'agentmodule'] as const, + /** Create agentModule mutation key */ create: () => + ['mutation', 'agentmodule', 'create'] as const, + /** Update agentModule mutation key */ update: (id: string | number) => + ['mutation', 'agentmodule', 'update', id] as const, + /** Delete agentModule mutation key */ delete: (id: string | number) => + ['mutation', 'agentmodule', 'delete', id] as const, +} as const; +export const limitsModuleMutationKeys = { + /** All limitsModule mutation keys */ all: ['mutation', 'limitsmodule'] as const, + /** Create limitsModule mutation key */ create: () => + ['mutation', 'limitsmodule', 'create'] as const, + /** Update limitsModule mutation key */ update: (id: string | number) => + ['mutation', 'limitsmodule', 'update', id] as const, + /** 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 storageModuleMutationKeys = { + /** All storageModule mutation keys */ all: ['mutation', 'storagemodule'] as const, + /** Create storageModule mutation key */ create: () => + ['mutation', 'storagemodule', 'create'] as const, + /** Update storageModule mutation key */ update: (id: string | number) => + ['mutation', 'storagemodule', 'update', id] as const, + /** Delete storageModule mutation key */ delete: (id: string | number) => + ['mutation', 'storagemodule', 'delete', id] as const, +} as const; +export const eventsModuleMutationKeys = { + /** All eventsModule mutation keys */ all: ['mutation', 'eventsmodule'] as const, + /** Create eventsModule mutation key */ create: () => + ['mutation', 'eventsmodule', 'create'] as const, + /** Update eventsModule mutation key */ update: (id: string | number) => + ['mutation', 'eventsmodule', 'update', id] as const, + /** Delete eventsModule mutation key */ delete: (id: string | number) => + ['mutation', 'eventsmodule', 'delete', id] as const, +} as const; +export const entityTypeProvisionMutationKeys = { + /** All entityTypeProvision mutation keys */ all: ['mutation', 'entitytypeprovision'] as const, + /** Create entityTypeProvision mutation key */ create: () => + ['mutation', 'entitytypeprovision', 'create'] as const, + /** Update entityTypeProvision mutation key */ update: (id: string | number) => + ['mutation', 'entitytypeprovision', 'update', id] as const, + /** Delete entityTypeProvision mutation key */ delete: (id: string | number) => + ['mutation', 'entitytypeprovision', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for constructBlueprint */ constructBlueprint: (identifier?: string) => + identifier + ? (['mutation', 'constructBlueprint', identifier] as const) + : (['mutation', 'constructBlueprint'] as const), + /** Mutation key for provisionFullTextSearch */ provisionFullTextSearch: (identifier?: string) => + identifier + ? (['mutation', 'provisionFullTextSearch', identifier] as const) + : (['mutation', 'provisionFullTextSearch'] as const), + /** Mutation key for provisionIndex */ provisionIndex: (identifier?: string) => + identifier + ? (['mutation', 'provisionIndex', identifier] as const) + : (['mutation', 'provisionIndex'] as const), + /** Mutation key for provisionCheckConstraint */ provisionCheckConstraint: ( + identifier?: string + ) => + identifier + ? (['mutation', 'provisionCheckConstraint', identifier] as const) + : (['mutation', 'provisionCheckConstraint'] as const), + /** Mutation key for provisionUniqueConstraint */ provisionUniqueConstraint: ( + identifier?: string + ) => + identifier + ? (['mutation', 'provisionUniqueConstraint', identifier] as const) + : (['mutation', 'provisionUniqueConstraint'] as const), + /** Mutation key for copyTemplateToBlueprint */ copyTemplateToBlueprint: (identifier?: string) => + identifier + ? (['mutation', 'copyTemplateToBlueprint', identifier] as const) + : (['mutation', 'copyTemplateToBlueprint'] as const), + /** Mutation key for provisionSpatialRelation */ provisionSpatialRelation: ( + identifier?: string + ) => + identifier + ? (['mutation', 'provisionSpatialRelation', identifier] as const) + : (['mutation', 'provisionSpatialRelation'] as const), + /** Mutation key for provisionTable */ provisionTable: (identifier?: string) => + identifier + ? (['mutation', 'provisionTable', identifier] as const) + : (['mutation', 'provisionTable'] as const), + /** Mutation key for provisionRelation */ provisionRelation: (identifier?: string) => + identifier + ? (['mutation', 'provisionRelation', identifier] as const) + : (['mutation', 'provisionRelation'] 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 = { + defaultIdsModule: defaultIdsModuleMutationKeys, + membershipTypesModule: membershipTypesModuleMutationKeys, + userStateModule: userStateModuleMutationKeys, + sessionSecretsModule: sessionSecretsModuleMutationKeys, + configSecretsOrgModule: configSecretsOrgModuleMutationKeys, + devicesModule: devicesModuleMutationKeys, + i18NModule: i18NModuleMutationKeys, + userCredentialsModule: userCredentialsModuleMutationKeys, + userSettingsModule: userSettingsModuleMutationKeys, + configSecretsUserModule: configSecretsUserModuleMutationKeys, + identityProvidersModule: identityProvidersModuleMutationKeys, + connectedAccountsModule: connectedAccountsModuleMutationKeys, + emailsModule: emailsModuleMutationKeys, + phoneNumbersModule: phoneNumbersModuleMutationKeys, + rateLimitsModule: rateLimitsModuleMutationKeys, + usersModule: usersModuleMutationKeys, + webauthnCredentialsModule: webauthnCredentialsModuleMutationKeys, + cryptoAddressesModule: cryptoAddressesModuleMutationKeys, + denormalizedTableField: denormalizedTableFieldMutationKeys, + rlsModule: rlsModuleMutationKeys, + blueprint: blueprintMutationKeys, + blueprintTemplate: blueprintTemplateMutationKeys, + blueprintConstruction: blueprintConstructionMutationKeys, + cryptoAuthModule: cryptoAuthModuleMutationKeys, + rateLimitMetersModule: rateLimitMetersModuleMutationKeys, + sessionsModule: sessionsModuleMutationKeys, + merkleStoreModule: merkleStoreModuleMutationKeys, + graphModule: graphModuleMutationKeys, + secureTableProvision: secureTableProvisionMutationKeys, + configSecretsModule: configSecretsModuleMutationKeys, + invitesModule: invitesModuleMutationKeys, + databaseProvisionModule: databaseProvisionModuleMutationKeys, + realtimeModule: realtimeModuleMutationKeys, + webauthnAuthModule: webauthnAuthModuleMutationKeys, + namespaceModule: namespaceModuleMutationKeys, + computeLogModule: computeLogModuleMutationKeys, + inferenceLogModule: inferenceLogModuleMutationKeys, + storageLogModule: storageLogModuleMutationKeys, + transferLogModule: transferLogModuleMutationKeys, + dbUsageModule: dbUsageModuleMutationKeys, + notificationsModule: notificationsModuleMutationKeys, + plansModule: plansModuleMutationKeys, + hierarchyModule: hierarchyModuleMutationKeys, + billingModule: billingModuleMutationKeys, + billingProviderModule: billingProviderModuleMutationKeys, + profilesModule: profilesModuleMutationKeys, + permissionsModule: permissionsModuleMutationKeys, + relationProvision: relationProvisionMutationKeys, + functionModule: functionModuleMutationKeys, + userAuthModule: userAuthModuleMutationKeys, + agentModule: agentModuleMutationKeys, + limitsModule: limitsModuleMutationKeys, + membershipsModule: membershipsModuleMutationKeys, + storageModule: storageModuleMutationKeys, + eventsModule: eventsModuleMutationKeys, + entityTypeProvision: entityTypeProvisionMutationKeys, + 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 new file mode 100644 index 0000000000..fbc88ec95f --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/index.ts @@ -0,0 +1,183 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateDefaultIdsModuleMutation'; +export * from './useUpdateDefaultIdsModuleMutation'; +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 './useCreateIdentityProvidersModuleMutation'; +export * from './useUpdateIdentityProvidersModuleMutation'; +export * from './useDeleteIdentityProvidersModuleMutation'; +export * from './useCreateConnectedAccountsModuleMutation'; +export * from './useUpdateConnectedAccountsModuleMutation'; +export * from './useDeleteConnectedAccountsModuleMutation'; +export * from './useCreateEmailsModuleMutation'; +export * from './useUpdateEmailsModuleMutation'; +export * from './useDeleteEmailsModuleMutation'; +export * from './useCreatePhoneNumbersModuleMutation'; +export * from './useUpdatePhoneNumbersModuleMutation'; +export * from './useDeletePhoneNumbersModuleMutation'; +export * from './useCreateRateLimitsModuleMutation'; +export * from './useUpdateRateLimitsModuleMutation'; +export * from './useDeleteRateLimitsModuleMutation'; +export * from './useCreateUsersModuleMutation'; +export * from './useUpdateUsersModuleMutation'; +export * from './useDeleteUsersModuleMutation'; +export * from './useCreateWebauthnCredentialsModuleMutation'; +export * from './useUpdateWebauthnCredentialsModuleMutation'; +export * from './useDeleteWebauthnCredentialsModuleMutation'; +export * from './useCreateCryptoAddressesModuleMutation'; +export * from './useUpdateCryptoAddressesModuleMutation'; +export * from './useDeleteCryptoAddressesModuleMutation'; +export * from './useCreateDenormalizedTableFieldMutation'; +export * from './useUpdateDenormalizedTableFieldMutation'; +export * from './useDeleteDenormalizedTableFieldMutation'; +export * from './useCreateRlsModuleMutation'; +export * from './useUpdateRlsModuleMutation'; +export * from './useDeleteRlsModuleMutation'; +export * from './useCreateBlueprintMutation'; +export * from './useUpdateBlueprintMutation'; +export * from './useDeleteBlueprintMutation'; +export * from './useCreateBlueprintTemplateMutation'; +export * from './useUpdateBlueprintTemplateMutation'; +export * from './useDeleteBlueprintTemplateMutation'; +export * from './useCreateBlueprintConstructionMutation'; +export * from './useUpdateBlueprintConstructionMutation'; +export * from './useDeleteBlueprintConstructionMutation'; +export * from './useCreateCryptoAuthModuleMutation'; +export * from './useUpdateCryptoAuthModuleMutation'; +export * from './useDeleteCryptoAuthModuleMutation'; +export * from './useCreateRateLimitMetersModuleMutation'; +export * from './useUpdateRateLimitMetersModuleMutation'; +export * from './useDeleteRateLimitMetersModuleMutation'; +export * from './useCreateSessionsModuleMutation'; +export * from './useUpdateSessionsModuleMutation'; +export * from './useDeleteSessionsModuleMutation'; +export * from './useCreateMerkleStoreModuleMutation'; +export * from './useUpdateMerkleStoreModuleMutation'; +export * from './useDeleteMerkleStoreModuleMutation'; +export * from './useCreateGraphModuleMutation'; +export * from './useUpdateGraphModuleMutation'; +export * from './useDeleteGraphModuleMutation'; +export * from './useCreateSecureTableProvisionMutation'; +export * from './useUpdateSecureTableProvisionMutation'; +export * from './useDeleteSecureTableProvisionMutation'; +export * from './useCreateConfigSecretsModuleMutation'; +export * from './useUpdateConfigSecretsModuleMutation'; +export * from './useDeleteConfigSecretsModuleMutation'; +export * from './useCreateInvitesModuleMutation'; +export * from './useUpdateInvitesModuleMutation'; +export * from './useDeleteInvitesModuleMutation'; +export * from './useCreateDatabaseProvisionModuleMutation'; +export * from './useUpdateDatabaseProvisionModuleMutation'; +export * from './useDeleteDatabaseProvisionModuleMutation'; +export * from './useCreateRealtimeModuleMutation'; +export * from './useUpdateRealtimeModuleMutation'; +export * from './useDeleteRealtimeModuleMutation'; +export * from './useCreateWebauthnAuthModuleMutation'; +export * from './useUpdateWebauthnAuthModuleMutation'; +export * from './useDeleteWebauthnAuthModuleMutation'; +export * from './useCreateNamespaceModuleMutation'; +export * from './useUpdateNamespaceModuleMutation'; +export * from './useDeleteNamespaceModuleMutation'; +export * from './useCreateComputeLogModuleMutation'; +export * from './useUpdateComputeLogModuleMutation'; +export * from './useDeleteComputeLogModuleMutation'; +export * from './useCreateInferenceLogModuleMutation'; +export * from './useUpdateInferenceLogModuleMutation'; +export * from './useDeleteInferenceLogModuleMutation'; +export * from './useCreateStorageLogModuleMutation'; +export * from './useUpdateStorageLogModuleMutation'; +export * from './useDeleteStorageLogModuleMutation'; +export * from './useCreateTransferLogModuleMutation'; +export * from './useUpdateTransferLogModuleMutation'; +export * from './useDeleteTransferLogModuleMutation'; +export * from './useCreateDbUsageModuleMutation'; +export * from './useUpdateDbUsageModuleMutation'; +export * from './useDeleteDbUsageModuleMutation'; +export * from './useCreateNotificationsModuleMutation'; +export * from './useUpdateNotificationsModuleMutation'; +export * from './useDeleteNotificationsModuleMutation'; +export * from './useCreatePlansModuleMutation'; +export * from './useUpdatePlansModuleMutation'; +export * from './useDeletePlansModuleMutation'; +export * from './useCreateHierarchyModuleMutation'; +export * from './useUpdateHierarchyModuleMutation'; +export * from './useDeleteHierarchyModuleMutation'; +export * from './useCreateBillingModuleMutation'; +export * from './useUpdateBillingModuleMutation'; +export * from './useDeleteBillingModuleMutation'; +export * from './useCreateBillingProviderModuleMutation'; +export * from './useUpdateBillingProviderModuleMutation'; +export * from './useDeleteBillingProviderModuleMutation'; +export * from './useCreateProfilesModuleMutation'; +export * from './useUpdateProfilesModuleMutation'; +export * from './useDeleteProfilesModuleMutation'; +export * from './useCreatePermissionsModuleMutation'; +export * from './useUpdatePermissionsModuleMutation'; +export * from './useDeletePermissionsModuleMutation'; +export * from './useCreateRelationProvisionMutation'; +export * from './useUpdateRelationProvisionMutation'; +export * from './useDeleteRelationProvisionMutation'; +export * from './useCreateFunctionModuleMutation'; +export * from './useUpdateFunctionModuleMutation'; +export * from './useDeleteFunctionModuleMutation'; +export * from './useCreateUserAuthModuleMutation'; +export * from './useUpdateUserAuthModuleMutation'; +export * from './useDeleteUserAuthModuleMutation'; +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 './useCreateStorageModuleMutation'; +export * from './useUpdateStorageModuleMutation'; +export * from './useDeleteStorageModuleMutation'; +export * from './useCreateEventsModuleMutation'; +export * from './useUpdateEventsModuleMutation'; +export * from './useDeleteEventsModuleMutation'; +export * from './useCreateEntityTypeProvisionMutation'; +export * from './useUpdateEntityTypeProvisionMutation'; +export * from './useDeleteEntityTypeProvisionMutation'; +export * from './useConstructBlueprintMutation'; +export * from './useProvisionFullTextSearchMutation'; +export * from './useProvisionIndexMutation'; +export * from './useProvisionCheckConstraintMutation'; +export * from './useProvisionUniqueConstraintMutation'; +export * from './useCopyTemplateToBlueprintMutation'; +export * from './useProvisionSpatialRelationMutation'; +export * from './useProvisionTableMutation'; +export * from './useProvisionRelationMutation'; +export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useConstructBlueprintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useConstructBlueprintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useConstructBlueprintMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useConstructBlueprintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCopyTemplateToBlueprintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCopyTemplateToBlueprintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCopyTemplateToBlueprintMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCopyTemplateToBlueprintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateAgentModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateAgentModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateAgentModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBillingModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBillingModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateBillingModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateBillingModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBillingProviderModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBillingProviderModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateBillingProviderModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateBillingProviderModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintConstructionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintTemplateMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintTemplateMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintTemplateMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintTemplateMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateComputeLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateComputeLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateComputeLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateComputeLogModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsModuleMutation.ts new file mode 100644 index 0000000000..8aee21b224 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsModuleMutation.ts @@ -0,0 +1,95 @@ +/** + * 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/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateCryptoAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateCryptoAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDbUsageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbUsageModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDbUsageModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateDbUsageModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDefaultIdsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateDefaultIdsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDevicesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDevicesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateDevicesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateDevicesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateEmailsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateEmailsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEntityTypeProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateEntityTypeProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateEntityTypeProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateEntityTypeProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEventsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateEventsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateEventsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateEventsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateFunctionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateFunctionModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateFunctionModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateFunctionModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateGraphModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateGraphModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateGraphModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateGraphModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateHierarchyModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateHierarchyModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateI18NModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateI18NModuleMutation.ts new file mode 100644 index 0000000000..2e3cf26dcc --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateI18NModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for I18NModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { i18NModuleKeys } from '../query-keys'; +import { i18NModuleMutationKeys } from '../mutation-keys'; +import type { + I18NModuleSelect, + I18NModuleWithRelations, + CreateI18NModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + I18NModuleSelect, + I18NModuleWithRelations, + CreateI18NModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a I18NModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateI18NModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateI18NModuleMutation( + params: { + selection: { + fields: S & I18NModuleSelect; + } & HookStrictSelect, I18NModuleSelect>; + } & Omit< + UseMutationOptions< + { + createI18NModule: { + i18NModule: InferSelectResult; + }; + }, + Error, + CreateI18NModuleInput['i18NModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createI18NModule: { + i18NModule: InferSelectResult; + }; + }, + Error, + CreateI18NModuleInput['i18NModule'] +>; +export function useCreateI18NModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: i18NModuleMutationKeys.create(), + mutationFn: (data: CreateI18NModuleInput['i18NModule']) => + getClient() + .i18NModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: i18NModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInferenceLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateInferenceLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInvitesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateInvitesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateLimitsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateLimitsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateMembershipTypesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateMembershipTypesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateMembershipsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateMembershipsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMerkleStoreModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateMerkleStoreModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateMerkleStoreModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateMerkleStoreModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateNamespaceModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateNamespaceModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateNamespaceModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateNamespaceModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateNotificationsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateNotificationsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateNotificationsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateNotificationsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreatePermissionsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreatePermissionsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePlansModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreatePlansModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreatePlansModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreatePlansModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateProfilesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateProfilesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRateLimitMetersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRateLimitMetersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateRateLimitMetersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateRateLimitMetersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRateLimitsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRateLimitsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateRateLimitsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateRateLimitsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRealtimeModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRealtimeModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateRealtimeModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateRealtimeModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRelationProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateRelationProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateRelationProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRlsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateRlsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateRlsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateRlsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateSecureTableProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSecureTableProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateSecureTableProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSessionSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateSessionSecretsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSessionSecretsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateSessionSecretsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateSessionsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateSessionsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateStorageLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateStorageLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateStorageLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateStorageLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateStorageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateStorageModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateStorageModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateStorageModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTransferLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateTransferLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateTransferLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateTransferLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateUserAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserCredentialsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserCredentialsModuleMutation.ts new file mode 100644 index 0000000000..0211ebe168 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserCredentialsModuleMutation.ts @@ -0,0 +1,95 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userCredentialsModuleKeys } from '../query-keys'; +import { userCredentialsModuleMutationKeys } from '../mutation-keys'; +import type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, + CreateUserCredentialsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, + CreateUserCredentialsModuleInput, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserCredentialsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserCredentialsModuleMutation( + params: { + selection: { + fields: S & UserCredentialsModuleSelect; + } & HookStrictSelect, UserCredentialsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }, + Error, + CreateUserCredentialsModuleInput['userCredentialsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }, + Error, + CreateUserCredentialsModuleInput['userCredentialsModule'] +>; +export function useCreateUserCredentialsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userCredentialsModuleMutationKeys.create(), + mutationFn: (data: CreateUserCredentialsModuleInput['userCredentialsModule']) => + getClient() + .userCredentialsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userCredentialsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserSettingsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserSettingsModuleMutation.ts new file mode 100644 index 0000000000..c22cdb20a2 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserSettingsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for UserSettingsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userSettingsModuleKeys } from '../query-keys'; +import { userSettingsModuleMutationKeys } from '../mutation-keys'; +import type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, + CreateUserSettingsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, + CreateUserSettingsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a UserSettingsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserSettingsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserSettingsModuleMutation( + params: { + selection: { + fields: S & UserSettingsModuleSelect; + } & HookStrictSelect, UserSettingsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }, + Error, + CreateUserSettingsModuleInput['userSettingsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }, + Error, + CreateUserSettingsModuleInput['userSettingsModule'] +>; +export function useCreateUserSettingsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingsModuleMutationKeys.create(), + mutationFn: (data: CreateUserSettingsModuleInput['userSettingsModule']) => + getClient() + .userSettingsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userSettingsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserStateModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUserStateModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateUserStateModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateUserStateModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUsersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateUsersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateUsersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateUsersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateWebauthnAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateWebauthnAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteAgentModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteAgentModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBillingModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteBillingModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingProviderModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBillingProviderModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingProviderModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteBillingProviderModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintConstructionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintTemplateMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintTemplateMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintTemplateMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintTemplateMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteComputeLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteComputeLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteComputeLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteComputeLogModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsModuleMutation.ts new file mode 100644 index 0000000000..f79581ba13 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsModuleMutation.ts @@ -0,0 +1,108 @@ +/** + * 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/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDbUsageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbUsageModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDbUsageModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbUsageModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDevicesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDevicesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteDevicesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteDevicesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEmailsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteEmailsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteEntityTypeProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEventsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteEventsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteEventsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteEventsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteFunctionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteFunctionModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteFunctionModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteFunctionModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteGraphModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteGraphModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteGraphModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteGraphModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteHierarchyModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteHierarchyModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteI18NModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteI18NModuleMutation.ts new file mode 100644 index 0000000000..e6b7fb6682 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteI18NModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for I18NModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { i18NModuleKeys } from '../query-keys'; +import { i18NModuleMutationKeys } from '../mutation-keys'; +import type { I18NModuleSelect, I18NModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { I18NModuleSelect, I18NModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a I18NModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteI18NModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteI18NModuleMutation( + params: { + selection: { + fields: S & I18NModuleSelect; + } & HookStrictSelect, I18NModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteI18NModule: { + i18NModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteI18NModule: { + i18NModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteI18NModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: i18NModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .i18NModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: i18NModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: i18NModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInferenceLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteInferenceLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInvitesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteInvitesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteLimitsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteLimitsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteMembershipsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteMembershipsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMerkleStoreModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteMerkleStoreModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteMerkleStoreModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteMerkleStoreModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteNamespaceModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteNamespaceModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteNamespaceModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteNamespaceModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteNotificationsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteNotificationsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteNotificationsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteNotificationsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeletePermissionsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeletePermissionsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePlansModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeletePlansModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeletePlansModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeletePlansModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteProfilesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteProfilesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRateLimitMetersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteRateLimitMetersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRateLimitsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRateLimitsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteRateLimitsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteRateLimitsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRealtimeModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRealtimeModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteRealtimeModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteRealtimeModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRelationProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteRelationProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteRelationProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteRlsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteRlsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteSecureTableProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSecureTableProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteSecureTableProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteSessionSecretsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteSessionSecretsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteSessionsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteSessionsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteStorageLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteStorageLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteStorageLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteStorageLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteStorageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteStorageModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteStorageModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteStorageModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTransferLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteTransferLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteTransferLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteTransferLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserCredentialsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserCredentialsModuleMutation.ts new file mode 100644 index 0000000000..0f3504a5b9 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserCredentialsModuleMutation.ts @@ -0,0 +1,108 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userCredentialsModuleKeys } from '../query-keys'; +import { userCredentialsModuleMutationKeys } from '../mutation-keys'; +import type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserCredentialsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserCredentialsModuleMutation( + params: { + selection: { + fields: S & UserCredentialsModuleSelect; + } & HookStrictSelect, UserCredentialsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserCredentialsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userCredentialsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .userCredentialsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userCredentialsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userCredentialsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserSettingsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserSettingsModuleMutation.ts new file mode 100644 index 0000000000..4d48555515 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserSettingsModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for UserSettingsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userSettingsModuleKeys } from '../query-keys'; +import { userSettingsModuleMutationKeys } from '../mutation-keys'; +import type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a UserSettingsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserSettingsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserSettingsModuleMutation( + params: { + selection: { + fields: S & UserSettingsModuleSelect; + } & HookStrictSelect, UserSettingsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserSettingsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .userSettingsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userSettingsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserStateModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserStateModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteUserStateModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteUserStateModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteUsersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteUsersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteWebauthnAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteWebauthnAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionBucketMutation.ts new file mode 100644 index 0000000000..2613680e69 --- /dev/null +++ b/sdk/constructive-react/src/modules/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/public/hooks/mutations/useProvisionCheckConstraintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionCheckConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionCheckConstraintMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useProvisionCheckConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionFullTextSearchMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionFullTextSearchMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionFullTextSearchMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useProvisionFullTextSearchMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionIndexMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionIndexMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionIndexMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useProvisionIndexMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionRelationMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionRelationMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionRelationMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useProvisionRelationMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionSpatialRelationMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionSpatialRelationMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionSpatialRelationMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useProvisionSpatialRelationMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionTableMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionTableMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionTableMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useProvisionTableMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionUniqueConstraintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useProvisionUniqueConstraintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useProvisionUniqueConstraintMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useProvisionUniqueConstraintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateAgentModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateAgentModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBillingModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateBillingModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingProviderModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBillingProviderModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingProviderModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateBillingProviderModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintConstructionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintTemplateMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintTemplateMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintTemplateMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintTemplateMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateComputeLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateComputeLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateComputeLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateComputeLogModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsModuleMutation.ts new file mode 100644 index 0000000000..5d3a1d3916 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsModuleMutation.ts @@ -0,0 +1,120 @@ +/** + * 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/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDbUsageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbUsageModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDbUsageModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbUsageModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDevicesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDevicesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateDevicesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateDevicesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEmailsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateEmailsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateEntityTypeProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEventsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateEventsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateEventsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateEventsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateFunctionModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateFunctionModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateFunctionModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateFunctionModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateGraphModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateGraphModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateGraphModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateGraphModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateHierarchyModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateHierarchyModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateI18NModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateI18NModuleMutation.ts new file mode 100644 index 0000000000..2b54188cad --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateI18NModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for I18NModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { i18NModuleKeys } from '../query-keys'; +import { i18NModuleMutationKeys } from '../mutation-keys'; +import type { + I18NModuleSelect, + I18NModuleWithRelations, + I18NModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + I18NModuleSelect, + I18NModuleWithRelations, + I18NModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a I18NModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateI18NModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', i18NModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateI18NModuleMutation( + params: { + selection: { + fields: S & I18NModuleSelect; + } & HookStrictSelect, I18NModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateI18NModule: { + i18NModule: InferSelectResult; + }; + }, + Error, + { + id: string; + i18NModulePatch: I18NModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateI18NModule: { + i18NModule: InferSelectResult; + }; + }, + Error, + { + id: string; + i18NModulePatch: I18NModulePatch; + } +>; +export function useUpdateI18NModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + i18NModulePatch: I18NModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: i18NModuleMutationKeys.all, + mutationFn: ({ id, i18NModulePatch }: { id: string; i18NModulePatch: I18NModulePatch }) => + getClient() + .i18NModule.update({ + where: { + id, + }, + data: i18NModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: i18NModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: i18NModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInferenceLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateInferenceLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInvitesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateInvitesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateLimitsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateLimitsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateMembershipsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateMembershipsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMerkleStoreModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateMerkleStoreModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateMerkleStoreModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateMerkleStoreModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNamespaceModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateNamespaceModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateNamespaceModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateNamespaceModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNotificationsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateNotificationsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateNotificationsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateNotificationsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdatePermissionsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdatePermissionsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePlansModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdatePlansModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdatePlansModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdatePlansModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateProfilesModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateProfilesModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRateLimitMetersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRateLimitMetersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateRateLimitMetersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateRateLimitMetersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRateLimitsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRateLimitsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateRateLimitsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateRateLimitsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRealtimeModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRealtimeModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateRealtimeModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateRealtimeModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRelationProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateRelationProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateRelationProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateRlsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateRlsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateSecureTableProvisionMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSecureTableProvisionMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateSecureTableProvisionMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateSessionSecretsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateSessionSecretsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateSessionsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateSessionsModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateStorageLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateStorageLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateStorageLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateStorageLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateStorageModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateStorageModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateStorageModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateStorageModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTransferLogModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateTransferLogModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateTransferLogModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateTransferLogModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserCredentialsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserCredentialsModuleMutation.ts new file mode 100644 index 0000000000..33a2efb1e8 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserCredentialsModuleMutation.ts @@ -0,0 +1,120 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userCredentialsModuleKeys } from '../query-keys'; +import { userCredentialsModuleMutationKeys } from '../mutation-keys'; +import type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, + UserCredentialsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, + UserCredentialsModulePatch, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserCredentialsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userCredentialsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserCredentialsModuleMutation( + params: { + selection: { + fields: S & UserCredentialsModuleSelect; + } & HookStrictSelect, UserCredentialsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userCredentialsModulePatch: UserCredentialsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userCredentialsModulePatch: UserCredentialsModulePatch; + } +>; +export function useUpdateUserCredentialsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userCredentialsModulePatch: UserCredentialsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userCredentialsModuleMutationKeys.all, + mutationFn: ({ + id, + userCredentialsModulePatch, + }: { + id: string; + userCredentialsModulePatch: UserCredentialsModulePatch; + }) => + getClient() + .userCredentialsModule.update({ + where: { + id, + }, + data: userCredentialsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userCredentialsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userCredentialsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserSettingsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserSettingsModuleMutation.ts new file mode 100644 index 0000000000..46d95c655f --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserSettingsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for UserSettingsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userSettingsModuleKeys } from '../query-keys'; +import { userSettingsModuleMutationKeys } from '../mutation-keys'; +import type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, + UserSettingsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, + UserSettingsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a UserSettingsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserSettingsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userSettingsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserSettingsModuleMutation( + params: { + selection: { + fields: S & UserSettingsModuleSelect; + } & HookStrictSelect, UserSettingsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingsModulePatch: UserSettingsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userSettingsModulePatch: UserSettingsModulePatch; + } +>; +export function useUpdateUserSettingsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userSettingsModulePatch: UserSettingsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userSettingsModuleMutationKeys.all, + mutationFn: ({ + id, + userSettingsModulePatch, + }: { + id: string; + userSettingsModulePatch: UserSettingsModulePatch; + }) => + getClient() + .userSettingsModule.update({ + where: { + id, + }, + data: userSettingsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userSettingsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userSettingsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserStateModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserStateModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateUserStateModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateUserStateModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateUsersModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateUsersModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateWebauthnAuthModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnAuthModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateWebauthnAuthModuleMutation.ts diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.ts rename to sdk/constructive-react/src/modules/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/index.ts b/sdk/constructive-react/src/modules/hooks/queries/index.ts new file mode 100644 index 0000000000..062b18518b --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/index.ts @@ -0,0 +1,119 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +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 './useIdentityProvidersModulesQuery'; +export * from './useIdentityProvidersModuleQuery'; +export * from './useConnectedAccountsModulesQuery'; +export * from './useConnectedAccountsModuleQuery'; +export * from './useEmailsModulesQuery'; +export * from './useEmailsModuleQuery'; +export * from './usePhoneNumbersModulesQuery'; +export * from './usePhoneNumbersModuleQuery'; +export * from './useRateLimitsModulesQuery'; +export * from './useRateLimitsModuleQuery'; +export * from './useUsersModulesQuery'; +export * from './useUsersModuleQuery'; +export * from './useWebauthnCredentialsModulesQuery'; +export * from './useWebauthnCredentialsModuleQuery'; +export * from './useCryptoAddressesModulesQuery'; +export * from './useCryptoAddressesModuleQuery'; +export * from './useDenormalizedTableFieldsQuery'; +export * from './useDenormalizedTableFieldQuery'; +export * from './useRlsModulesQuery'; +export * from './useRlsModuleQuery'; +export * from './useBlueprintsQuery'; +export * from './useBlueprintQuery'; +export * from './useBlueprintTemplatesQuery'; +export * from './useBlueprintTemplateQuery'; +export * from './useBlueprintConstructionsQuery'; +export * from './useBlueprintConstructionQuery'; +export * from './useCryptoAuthModulesQuery'; +export * from './useCryptoAuthModuleQuery'; +export * from './useRateLimitMetersModulesQuery'; +export * from './useRateLimitMetersModuleQuery'; +export * from './useSessionsModulesQuery'; +export * from './useSessionsModuleQuery'; +export * from './useMerkleStoreModulesQuery'; +export * from './useMerkleStoreModuleQuery'; +export * from './useGraphModulesQuery'; +export * from './useGraphModuleQuery'; +export * from './useSecureTableProvisionsQuery'; +export * from './useSecureTableProvisionQuery'; +export * from './useConfigSecretsModulesQuery'; +export * from './useConfigSecretsModuleQuery'; +export * from './useInvitesModulesQuery'; +export * from './useInvitesModuleQuery'; +export * from './useDatabaseProvisionModulesQuery'; +export * from './useDatabaseProvisionModuleQuery'; +export * from './useRealtimeModulesQuery'; +export * from './useRealtimeModuleQuery'; +export * from './useWebauthnAuthModulesQuery'; +export * from './useWebauthnAuthModuleQuery'; +export * from './useNamespaceModulesQuery'; +export * from './useNamespaceModuleQuery'; +export * from './useComputeLogModulesQuery'; +export * from './useComputeLogModuleQuery'; +export * from './useInferenceLogModulesQuery'; +export * from './useInferenceLogModuleQuery'; +export * from './useStorageLogModulesQuery'; +export * from './useStorageLogModuleQuery'; +export * from './useTransferLogModulesQuery'; +export * from './useTransferLogModuleQuery'; +export * from './useDbUsageModulesQuery'; +export * from './useDbUsageModuleQuery'; +export * from './useNotificationsModulesQuery'; +export * from './useNotificationsModuleQuery'; +export * from './usePlansModulesQuery'; +export * from './usePlansModuleQuery'; +export * from './useHierarchyModulesQuery'; +export * from './useHierarchyModuleQuery'; +export * from './useBillingModulesQuery'; +export * from './useBillingModuleQuery'; +export * from './useBillingProviderModulesQuery'; +export * from './useBillingProviderModuleQuery'; +export * from './useProfilesModulesQuery'; +export * from './useProfilesModuleQuery'; +export * from './usePermissionsModulesQuery'; +export * from './usePermissionsModuleQuery'; +export * from './useRelationProvisionsQuery'; +export * from './useRelationProvisionQuery'; +export * from './useFunctionModulesQuery'; +export * from './useFunctionModuleQuery'; +export * from './useUserAuthModulesQuery'; +export * from './useUserAuthModuleQuery'; +export * from './useAgentModulesQuery'; +export * from './useAgentModuleQuery'; +export * from './useLimitsModulesQuery'; +export * from './useLimitsModuleQuery'; +export * from './useMembershipsModulesQuery'; +export * from './useMembershipsModuleQuery'; +export * from './useStorageModulesQuery'; +export * from './useStorageModuleQuery'; +export * from './useEventsModulesQuery'; +export * from './useEventsModuleQuery'; +export * from './useEntityTypeProvisionsQuery'; +export * from './useEntityTypeProvisionQuery'; +export * from './useResolveBlueprintFieldQuery'; +export * from './useResolveBlueprintTableQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useAgentModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useAgentModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useAgentModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useAgentModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useAgentModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useAgentModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBillingModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBillingModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBillingModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBillingModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBillingModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBillingModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBillingModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBillingModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBillingProviderModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBillingProviderModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBillingProviderModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBillingProviderModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBillingProviderModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBillingProviderModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBillingProviderModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBillingProviderModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintConstructionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBlueprintConstructionQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintConstructionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBlueprintConstructionsQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBlueprintQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBlueprintQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplateQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintTemplateQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplateQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBlueprintTemplateQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplatesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintTemplatesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplatesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBlueprintTemplatesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useBlueprintsQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useBlueprintsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useComputeLogModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useComputeLogModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useComputeLogModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useComputeLogModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useComputeLogModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useComputeLogModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useComputeLogModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useComputeLogModulesQuery.ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModuleQuery.ts new file mode 100644 index 0000000000..09c4dd9ee0 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModuleQuery.ts @@ -0,0 +1,152 @@ +/** + * 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 new file mode 100644 index 0000000000..2bdf158e46 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModulesQuery.ts @@ -0,0 +1,182 @@ +/** + * 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/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsUserModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConnectedAccountsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useConnectedAccountsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConnectedAccountsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useConnectedAccountsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useCryptoAddressesModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useCryptoAddressesModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useCryptoAddressesModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useCryptoAddressesModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useCryptoAuthModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useCryptoAuthModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useCryptoAuthModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useCryptoAuthModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDatabaseProvisionModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDatabaseProvisionModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDatabaseProvisionModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDatabaseProvisionModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDbUsageModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbUsageModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDbUsageModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDbUsageModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDbUsageModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbUsageModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDbUsageModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDbUsageModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDefaultIdsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDefaultIdsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDefaultIdsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDefaultIdsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDenormalizedTableFieldQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDenormalizedTableFieldQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDenormalizedTableFieldsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDenormalizedTableFieldsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDevicesModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDevicesModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDevicesModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDevicesModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDevicesModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDevicesModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useDevicesModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useDevicesModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEmailsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEmailsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useEmailsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEmailsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEmailsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useEmailsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEntityTypeProvisionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEntityTypeProvisionQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEntityTypeProvisionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEntityTypeProvisionsQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useEntityTypeProvisionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEventsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEventsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEventsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useEventsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useEventsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useEventsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useEventsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useEventsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFunctionModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useFunctionModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFunctionModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useFunctionModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useFunctionModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useFunctionModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useFunctionModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useFunctionModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useGraphModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useGraphModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useGraphModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useGraphModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useGraphModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useGraphModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useGraphModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useGraphModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useHierarchyModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useHierarchyModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useHierarchyModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useHierarchyModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useHierarchyModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useHierarchyModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useHierarchyModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useHierarchyModulesQuery.ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useI18NModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useI18NModuleQuery.ts new file mode 100644 index 0000000000..6a10a0a801 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useI18NModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for I18NModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { i18NModuleKeys } from '../query-keys'; +import type { I18NModuleSelect, I18NModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { I18NModuleSelect, I18NModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const i18NModuleQueryKey = i18NModuleKeys.detail; +/** + * Query hook for fetching a single I18NModule + * + * @example + * ```tsx + * const { data, isLoading } = useI18NModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useI18NModuleQuery< + S extends I18NModuleSelect, + TData = { + i18NModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, I18NModuleSelect>; + } & Omit< + UseQueryOptions< + { + i18NModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useI18NModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: i18NModuleKeys.detail(params.id), + queryFn: () => + getClient() + .i18NModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single I18NModule without React hooks + * + * @example + * ```ts + * const data = await fetchI18NModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchI18NModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, I18NModuleSelect>; +}): Promise<{ + i18NModule: InferSelectResult | null; +}>; +export async function fetchI18NModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .i18NModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single I18NModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchI18NModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchI18NModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, I18NModuleSelect>; + } +): Promise; +export async function prefetchI18NModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: i18NModuleKeys.detail(params.id), + queryFn: () => + getClient() + .i18NModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useI18nModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useI18nModulesQuery.ts new file mode 100644 index 0000000000..4dc65e8ab4 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useI18nModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for I18NModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { i18NModuleKeys } from '../query-keys'; +import type { + I18NModuleSelect, + I18NModuleWithRelations, + I18NModuleFilter, + I18NModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + I18NModuleSelect, + I18NModuleWithRelations, + I18NModuleFilter, + I18NModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const i18nModulesQueryKey = i18NModuleKeys.list; +/** + * Query hook for fetching I18NModule list + * + * @example + * ```tsx + * const { data, isLoading } = useI18nModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useI18nModulesQuery< + S extends I18NModuleSelect, + TData = { + i18nModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, I18NModuleSelect>; + } & Omit< + UseQueryOptions< + { + i18nModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useI18nModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: i18NModuleKeys.list(args), + queryFn: () => getClient().i18NModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch I18NModule list without React hooks + * + * @example + * ```ts + * const data = await fetchI18nModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchI18nModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, I18NModuleSelect>; +}): Promise<{ + i18nModules: ConnectionResult>; +}>; +export async function fetchI18nModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().i18NModule.findMany(args).unwrap(); +} +/** + * Prefetch I18NModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchI18nModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchI18nModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, I18NModuleSelect>; + } +): Promise; +export async function prefetchI18nModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: i18NModuleKeys.list(args), + queryFn: () => getClient().i18NModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useIdentityProvidersModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useIdentityProvidersModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useIdentityProvidersModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useIdentityProvidersModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInferenceLogModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useInferenceLogModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInferenceLogModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useInferenceLogModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInvitesModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInvitesModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useInvitesModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useInvitesModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useInvitesModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInvitesModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useInvitesModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useInvitesModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useLimitsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useLimitsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useLimitsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useLimitsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useLimitsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useLimitsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMembershipTypesModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useMembershipTypesModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMembershipTypesModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useMembershipTypesModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMembershipsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMembershipsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useMembershipsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMembershipsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMembershipsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useMembershipsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMerkleStoreModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMerkleStoreModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMerkleStoreModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useMerkleStoreModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useMerkleStoreModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useMerkleStoreModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useMerkleStoreModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useMerkleStoreModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNamespaceModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useNamespaceModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useNamespaceModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useNamespaceModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNamespaceModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useNamespaceModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useNamespaceModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useNamespaceModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNotificationsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useNotificationsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useNotificationsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useNotificationsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNotificationsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useNotificationsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useNotificationsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useNotificationsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePermissionsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/usePermissionsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePermissionsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/usePermissionsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePermissionsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/usePermissionsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePermissionsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/usePermissionsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/usePhoneNumbersModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/usePhoneNumbersModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/usePhoneNumbersModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/usePhoneNumbersModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePlansModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/usePlansModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePlansModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/usePlansModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/usePlansModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/usePlansModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/usePlansModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/usePlansModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useProfilesModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useProfilesModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useProfilesModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useProfilesModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useProfilesModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useProfilesModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useProfilesModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useProfilesModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRateLimitMetersModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRateLimitMetersModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRateLimitMetersModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRateLimitMetersModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRateLimitMetersModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRateLimitMetersModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRateLimitMetersModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRateLimitMetersModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRateLimitsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRateLimitsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRateLimitsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRateLimitsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRateLimitsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRateLimitsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRateLimitsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRateLimitsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRealtimeModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRealtimeModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRealtimeModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRealtimeModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRealtimeModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRealtimeModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRealtimeModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRealtimeModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRelationProvisionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRelationProvisionQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRelationProvisionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRelationProvisionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRelationProvisionsQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRelationProvisionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useResolveBlueprintFieldQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintFieldQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useResolveBlueprintFieldQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintFieldQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useResolveBlueprintTableQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintTableQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useResolveBlueprintTableQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useResolveBlueprintTableQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRlsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRlsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRlsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRlsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRlsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useRlsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useRlsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useRlsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSecureTableProvisionsQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useSecureTableProvisionsQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSessionSecretsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSessionSecretsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSessionSecretsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useSessionSecretsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSessionSecretsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSessionSecretsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSessionSecretsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useSessionSecretsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSessionsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSessionsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSessionsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useSessionsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useSessionsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useSessionsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useSessionsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useSessionsModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useStorageLogModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useStorageLogModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useStorageLogModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useStorageLogModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useStorageLogModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useStorageLogModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useStorageLogModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useStorageLogModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useStorageModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useStorageModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useStorageModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useStorageModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useStorageModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useStorageModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useStorageModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useStorageModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTransferLogModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useTransferLogModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTransferLogModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useTransferLogModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useTransferLogModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useTransferLogModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useTransferLogModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useTransferLogModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserAuthModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserAuthModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUserAuthModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useUserAuthModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserAuthModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserAuthModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUserAuthModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useUserAuthModulesQuery.ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useUserCredentialsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserCredentialsModuleQuery.ts new file mode 100644 index 0000000000..cedf41fe2d --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useUserCredentialsModuleQuery.ts @@ -0,0 +1,154 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userCredentialsModuleKeys } from '../query-keys'; +import type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userCredentialsModuleQueryKey = userCredentialsModuleKeys.detail; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useUserCredentialsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserCredentialsModuleQuery< + S extends UserCredentialsModuleSelect, + TData = { + userCredentialsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserCredentialsModuleSelect>; + } & Omit< + UseQueryOptions< + { + userCredentialsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserCredentialsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userCredentialsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userCredentialsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchUserCredentialsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserCredentialsModuleQuery< + S extends UserCredentialsModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserCredentialsModuleSelect>; +}): Promise<{ + userCredentialsModule: InferSelectResult | null; +}>; +export async function fetchUserCredentialsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .userCredentialsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchUserCredentialsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserCredentialsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserCredentialsModuleSelect>; + } +): Promise; +export async function prefetchUserCredentialsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userCredentialsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userCredentialsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useUserCredentialsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserCredentialsModulesQuery.ts new file mode 100644 index 0000000000..f6a589c954 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useUserCredentialsModulesQuery.ts @@ -0,0 +1,188 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { userCredentialsModuleKeys } from '../query-keys'; +import type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UserCredentialsModuleSelect, + UserCredentialsModuleWithRelations, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userCredentialsModulesQueryKey = userCredentialsModuleKeys.list; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useUserCredentialsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUserCredentialsModulesQuery< + S extends UserCredentialsModuleSelect, + TData = { + userCredentialsModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserCredentialsModuleSelect>; + } & Omit< + UseQueryOptions< + { + userCredentialsModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserCredentialsModulesQuery( + params: { + selection: ListSelectionConfig< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userCredentialsModuleKeys.list(args), + queryFn: () => getClient().userCredentialsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchUserCredentialsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUserCredentialsModulesQuery< + S extends UserCredentialsModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserCredentialsModuleSelect>; +}): Promise<{ + userCredentialsModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchUserCredentialsModulesQuery(params: { + selection: ListSelectionConfig< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + >(params.selection); + return getClient().userCredentialsModule.findMany(args).unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchUserCredentialsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUserCredentialsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserCredentialsModuleSelect>; + } +): Promise; +export async function prefetchUserCredentialsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: userCredentialsModuleKeys.list(args), + queryFn: () => getClient().userCredentialsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsModuleQuery.ts new file mode 100644 index 0000000000..eff36dfe6a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for UserSettingsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { userSettingsModuleKeys } from '../query-keys'; +import type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingsModuleQueryKey = userSettingsModuleKeys.detail; +/** + * Query hook for fetching a single UserSettingsModule + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserSettingsModuleQuery< + S extends UserSettingsModuleSelect, + TData = { + userSettingsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsModuleSelect>; + } & Omit< + UseQueryOptions< + { + userSettingsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userSettingsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single UserSettingsModule without React hooks + * + * @example + * ```ts + * const data = await fetchUserSettingsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserSettingsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsModuleSelect>; +}): Promise<{ + userSettingsModule: InferSelectResult | null; +}>; +export async function fetchUserSettingsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .userSettingsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single UserSettingsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserSettingsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserSettingsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSettingsModuleSelect>; + } +): Promise; +export async function prefetchUserSettingsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userSettingsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userSettingsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsModulesQuery.ts new file mode 100644 index 0000000000..a4c636851c --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useUserSettingsModulesQuery.ts @@ -0,0 +1,171 @@ +/** + * List query hook for UserSettingsModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { userSettingsModuleKeys } from '../query-keys'; +import type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UserSettingsModuleSelect, + UserSettingsModuleWithRelations, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userSettingsModulesQueryKey = userSettingsModuleKeys.list; +/** + * Query hook for fetching UserSettingsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useUserSettingsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUserSettingsModulesQuery< + S extends UserSettingsModuleSelect, + TData = { + userSettingsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsModuleSelect>; + } & Omit< + UseQueryOptions< + { + userSettingsModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserSettingsModulesQuery( + params: { + selection: ListSelectionConfig< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userSettingsModuleKeys.list(args), + queryFn: () => getClient().userSettingsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch UserSettingsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchUserSettingsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUserSettingsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSettingsModuleSelect>; +}): Promise<{ + userSettingsModules: ConnectionResult>; +}>; +export async function fetchUserSettingsModulesQuery(params: { + selection: ListSelectionConfig< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + >(params.selection); + return getClient().userSettingsModule.findMany(args).unwrap(); +} +/** + * Prefetch UserSettingsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserSettingsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUserSettingsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, UserSettingsModuleSelect>; + } +): Promise; +export async function prefetchUserSettingsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: userSettingsModuleKeys.list(args), + queryFn: () => getClient().userSettingsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserStateModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserStateModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUserStateModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useUserStateModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserStateModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUserStateModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUserStateModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useUserStateModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsersModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUsersModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUsersModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useUsersModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsersModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useUsersModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useUsersModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useUsersModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnAuthModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useWebauthnAuthModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useWebauthnAuthModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useWebauthnAuthModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnAuthModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useWebauthnAuthModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useWebauthnAuthModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useWebauthnAuthModulesQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useWebauthnCredentialsModuleQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialsModuleQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useWebauthnCredentialsModuleQuery.ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useWebauthnCredentialsModulesQuery.ts similarity index 100% rename from sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialsModulesQuery.ts rename to sdk/constructive-react/src/modules/hooks/queries/useWebauthnCredentialsModulesQuery.ts diff --git a/sdk/constructive-react/src/modules/hooks/query-keys.ts b/sdk/constructive-react/src/modules/hooks/query-keys.ts new file mode 100644 index 0000000000..5b6175916e --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/query-keys.ts @@ -0,0 +1,619 @@ +/** + * 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 defaultIdsModuleKeys = { + /** All defaultIdsModule queries */ all: ['defaultidsmodule'] as const, + /** List query keys */ lists: () => [...defaultIdsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...defaultIdsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...defaultIdsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...defaultIdsModuleKeys.details(), id] as const, +} as const; +export const membershipTypesModuleKeys = { + /** All membershipTypesModule queries */ all: ['membershiptypesmodule'] as const, + /** List query keys */ lists: () => [...membershipTypesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...membershipTypesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypesModuleKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...sessionSecretsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...sessionSecretsModuleKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...devicesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...devicesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...devicesModuleKeys.details(), id] as const, +} as const; +export const i18NModuleKeys = { + /** All i18NModule queries */ all: ['i18nmodule'] as const, + /** List query keys */ lists: () => [...i18NModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...i18NModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...i18NModuleKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...userSettingsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userSettingsModuleKeys.all, 'detail'] as const, + /** 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, + /** 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 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 connectedAccountsModuleKeys = { + /** All connectedAccountsModule queries */ all: ['connectedaccountsmodule'] as const, + /** List query keys */ lists: () => [...connectedAccountsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...connectedAccountsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...connectedAccountsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...connectedAccountsModuleKeys.details(), id] as const, +} as const; +export const emailsModuleKeys = { + /** All emailsModule queries */ all: ['emailsmodule'] as const, + /** List query keys */ lists: () => [...emailsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailsModuleKeys.details(), id] as const, +} as const; +export const phoneNumbersModuleKeys = { + /** All phoneNumbersModule queries */ all: ['phonenumbersmodule'] as const, + /** List query keys */ lists: () => [...phoneNumbersModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...phoneNumbersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...phoneNumbersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...phoneNumbersModuleKeys.details(), id] as const, +} as const; +export const rateLimitsModuleKeys = { + /** All rateLimitsModule queries */ all: ['ratelimitsmodule'] as const, + /** List query keys */ lists: () => [...rateLimitsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...rateLimitsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...rateLimitsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...rateLimitsModuleKeys.details(), id] as const, +} as const; +export const usersModuleKeys = { + /** All usersModule queries */ all: ['usersmodule'] as const, + /** List query keys */ lists: () => [...usersModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...usersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...usersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...usersModuleKeys.details(), id] as const, +} as const; +export const webauthnCredentialsModuleKeys = { + /** All webauthnCredentialsModule queries */ all: ['webauthncredentialsmodule'] as const, + /** List query keys */ lists: () => [...webauthnCredentialsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...webauthnCredentialsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...webauthnCredentialsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...webauthnCredentialsModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAddressesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAddressesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAddressesModuleKeys.details(), id] as const, +} as const; +export const denormalizedTableFieldKeys = { + /** All denormalizedTableField queries */ all: ['denormalizedtablefield'] as const, + /** List query keys */ lists: () => [...denormalizedTableFieldKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...denormalizedTableFieldKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...denormalizedTableFieldKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...denormalizedTableFieldKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...rlsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...rlsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...rlsModuleKeys.details(), id] as const, +} as const; +export const blueprintKeys = { + /** All blueprint queries */ all: ['blueprint'] as const, + /** List query keys */ lists: () => [...blueprintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...blueprintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...blueprintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...blueprintKeys.details(), id] as const, +} as const; +export const blueprintTemplateKeys = { + /** All blueprintTemplate queries */ all: ['blueprinttemplate'] as const, + /** List query keys */ lists: () => [...blueprintTemplateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...blueprintTemplateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...blueprintTemplateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...blueprintTemplateKeys.details(), id] as const, +} as const; +export const blueprintConstructionKeys = { + /** All blueprintConstruction queries */ all: ['blueprintconstruction'] as const, + /** List query keys */ lists: () => [...blueprintConstructionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...blueprintConstructionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...blueprintConstructionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...blueprintConstructionKeys.details(), id] as const, +} as const; +export const cryptoAuthModuleKeys = { + /** All cryptoAuthModule queries */ all: ['cryptoauthmodule'] as const, + /** List query keys */ lists: () => [...cryptoAuthModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAuthModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAuthModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAuthModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...rateLimitMetersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...rateLimitMetersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...rateLimitMetersModuleKeys.details(), id] as const, +} as const; +export const sessionsModuleKeys = { + /** All sessionsModule queries */ all: ['sessionsmodule'] as const, + /** List query keys */ lists: () => [...sessionsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...sessionsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...sessionsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...sessionsModuleKeys.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 graphModuleKeys = { + /** All graphModule queries */ all: ['graphmodule'] as const, + /** List query keys */ lists: () => [...graphModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...graphModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...graphModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...graphModuleKeys.details(), id] as const, +} as const; +export const secureTableProvisionKeys = { + /** All secureTableProvision queries */ all: ['securetableprovision'] as const, + /** List query keys */ lists: () => [...secureTableProvisionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...secureTableProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...secureTableProvisionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...secureTableProvisionKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...configSecretsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...configSecretsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...configSecretsModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...invitesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...invitesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...invitesModuleKeys.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 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 webauthnAuthModuleKeys = { + /** All webauthnAuthModule queries */ all: ['webauthnauthmodule'] as const, + /** List query keys */ lists: () => [...webauthnAuthModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...webauthnAuthModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...webauthnAuthModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...webauthnAuthModuleKeys.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 computeLogModuleKeys = { + /** All computeLogModule queries */ all: ['computelogmodule'] as const, + /** List query keys */ lists: () => [...computeLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...computeLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...computeLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...computeLogModuleKeys.details(), id] as const, +} as const; +export const inferenceLogModuleKeys = { + /** All inferenceLogModule queries */ all: ['inferencelogmodule'] as const, + /** List query keys */ lists: () => [...inferenceLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...inferenceLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...inferenceLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...inferenceLogModuleKeys.details(), id] as const, +} as const; +export const storageLogModuleKeys = { + /** All storageLogModule queries */ all: ['storagelogmodule'] as const, + /** List query keys */ lists: () => [...storageLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...storageLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...storageLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...storageLogModuleKeys.details(), id] as const, +} as const; +export const transferLogModuleKeys = { + /** All transferLogModule queries */ all: ['transferlogmodule'] as const, + /** List query keys */ lists: () => [...transferLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...transferLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...transferLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...transferLogModuleKeys.details(), id] as const, +} as const; +export const 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 notificationsModuleKeys = { + /** All notificationsModule queries */ all: ['notificationsmodule'] as const, + /** List query keys */ lists: () => [...notificationsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...notificationsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...notificationsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...notificationsModuleKeys.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 hierarchyModuleKeys = { + /** All hierarchyModule queries */ all: ['hierarchymodule'] as const, + /** List query keys */ lists: () => [...hierarchyModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...hierarchyModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...hierarchyModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...hierarchyModuleKeys.details(), id] as const, +} as const; +export const billingModuleKeys = { + /** All billingModule queries */ all: ['billingmodule'] as const, + /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...billingModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...billingModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...billingModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...billingProviderModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...billingProviderModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...billingProviderModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...profilesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...profilesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...profilesModuleKeys.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 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 functionModuleKeys = { + /** All functionModule queries */ all: ['functionmodule'] as const, + /** List query keys */ lists: () => [...functionModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...functionModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...functionModuleKeys.details(), id] as const, +} as const; +export const userAuthModuleKeys = { + /** All userAuthModule queries */ all: ['userauthmodule'] as const, + /** List query keys */ lists: () => [...userAuthModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...userAuthModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userAuthModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userAuthModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...agentModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentModuleKeys.details(), id] as const, +} as const; +export const limitsModuleKeys = { + /** All limitsModule queries */ all: ['limitsmodule'] as const, + /** List query keys */ lists: () => [...limitsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...limitsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...limitsModuleKeys.all, 'detail'] as const, + /** 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 storageModuleKeys = { + /** All storageModule queries */ all: ['storagemodule'] as const, + /** List query keys */ lists: () => [...storageModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...storageModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...storageModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...storageModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...eventsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...eventsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...eventsModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...entityTypeProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...entityTypeProvisionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...entityTypeProvisionKeys.details(), id] as const, +} as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for resolveBlueprintField */ resolveBlueprintField: (variables?: object) => + ['resolveBlueprintField', variables] as const, + /** Query key for resolveBlueprintTable */ resolveBlueprintTable: (variables?: object) => + ['resolveBlueprintTable', variables] as const, +} as const; +/** + +// ============================================================================ +// 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 = { + defaultIdsModule: defaultIdsModuleKeys, + membershipTypesModule: membershipTypesModuleKeys, + userStateModule: userStateModuleKeys, + sessionSecretsModule: sessionSecretsModuleKeys, + configSecretsOrgModule: configSecretsOrgModuleKeys, + devicesModule: devicesModuleKeys, + i18NModule: i18NModuleKeys, + userCredentialsModule: userCredentialsModuleKeys, + userSettingsModule: userSettingsModuleKeys, + configSecretsUserModule: configSecretsUserModuleKeys, + identityProvidersModule: identityProvidersModuleKeys, + connectedAccountsModule: connectedAccountsModuleKeys, + emailsModule: emailsModuleKeys, + phoneNumbersModule: phoneNumbersModuleKeys, + rateLimitsModule: rateLimitsModuleKeys, + usersModule: usersModuleKeys, + webauthnCredentialsModule: webauthnCredentialsModuleKeys, + cryptoAddressesModule: cryptoAddressesModuleKeys, + denormalizedTableField: denormalizedTableFieldKeys, + rlsModule: rlsModuleKeys, + blueprint: blueprintKeys, + blueprintTemplate: blueprintTemplateKeys, + blueprintConstruction: blueprintConstructionKeys, + cryptoAuthModule: cryptoAuthModuleKeys, + rateLimitMetersModule: rateLimitMetersModuleKeys, + sessionsModule: sessionsModuleKeys, + merkleStoreModule: merkleStoreModuleKeys, + graphModule: graphModuleKeys, + secureTableProvision: secureTableProvisionKeys, + configSecretsModule: configSecretsModuleKeys, + invitesModule: invitesModuleKeys, + databaseProvisionModule: databaseProvisionModuleKeys, + realtimeModule: realtimeModuleKeys, + webauthnAuthModule: webauthnAuthModuleKeys, + namespaceModule: namespaceModuleKeys, + computeLogModule: computeLogModuleKeys, + inferenceLogModule: inferenceLogModuleKeys, + storageLogModule: storageLogModuleKeys, + transferLogModule: transferLogModuleKeys, + dbUsageModule: dbUsageModuleKeys, + notificationsModule: notificationsModuleKeys, + plansModule: plansModuleKeys, + hierarchyModule: hierarchyModuleKeys, + billingModule: billingModuleKeys, + billingProviderModule: billingProviderModuleKeys, + profilesModule: profilesModuleKeys, + permissionsModule: permissionsModuleKeys, + relationProvision: relationProvisionKeys, + functionModule: functionModuleKeys, + userAuthModule: userAuthModuleKeys, + agentModule: agentModuleKeys, + limitsModule: limitsModuleKeys, + membershipsModule: membershipsModuleKeys, + storageModule: storageModuleKeys, + eventsModule: eventsModuleKeys, + entityTypeProvision: entityTypeProvisionKeys, + custom: customQueryKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/modules/hooks/selection.ts b/sdk/constructive-react/src/modules/hooks/selection.ts new file mode 100644 index 0000000000..2952aab647 --- /dev/null +++ b/sdk/constructive-react/src/modules/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/modules/index.ts b/sdk/constructive-react/src/modules/index.ts new file mode 100644 index 0000000000..2b8402539a --- /dev/null +++ b/sdk/constructive-react/src/modules/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/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md new file mode 100644 index 0000000000..ee91d16d18 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -0,0 +1,2763 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `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 | +| `identityProvidersModule` | 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 | +| `cryptoAddressesModule` | findMany, findOne, create, update, delete | +| `denormalizedTableField` | findMany, findOne, create, update, delete | +| `rlsModule` | findMany, findOne, create, update, delete | +| `blueprint` | findMany, findOne, create, update, delete | +| `blueprintTemplate` | findMany, findOne, create, update, delete | +| `blueprintConstruction` | findMany, findOne, create, update, delete | +| `cryptoAuthModule` | findMany, findOne, create, update, delete | +| `rateLimitMetersModule` | findMany, findOne, create, update, delete | +| `sessionsModule` | findMany, findOne, create, update, delete | +| `merkleStoreModule` | findMany, findOne, create, update, delete | +| `graphModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | +| `configSecretsModule` | findMany, findOne, create, update, delete | +| `invitesModule` | findMany, findOne, create, update, delete | +| `databaseProvisionModule` | findMany, findOne, create, update, delete | +| `realtimeModule` | findMany, findOne, create, update, delete | +| `webauthnAuthModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | +| `computeLogModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | +| `storageLogModule` | findMany, findOne, create, update, delete | +| `transferLogModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | +| `notificationsModule` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | +| `hierarchyModule` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | +| `billingProviderModule` | findMany, findOne, create, update, delete | +| `profilesModule` | findMany, findOne, create, update, delete | +| `permissionsModule` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | +| `functionModule` | findMany, findOne, create, update, delete | +| `userAuthModule` | findMany, findOne, create, update, delete | +| `agentModule` | findMany, findOne, create, update, delete | +| `limitsModule` | findMany, findOne, create, update, delete | +| `membershipsModule` | findMany, findOne, create, update, delete | +| `storageModule` | findMany, findOne, create, update, delete | +| `eventsModule` | findMany, findOne, create, update, delete | +| `entityTypeProvision` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.defaultIdsModule` + +CRUD operations for DefaultIdsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all defaultIdsModule records +const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); + +// Create +const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipTypesModule` + +CRUD operations for MembershipTypesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all membershipTypesModule records +const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `sessionsTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all sessionSecretsModule records +const items = await db.sessionSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); + +// Get one by id +const item = await db.sessionSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); + +// Create +const created = await db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | Yes | + +**Operations:** + +```typescript +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); + +// Get one by id +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); + +// Create +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.i18NModule` + +CRUD operations for I18NModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `settingsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all i18NModule records +const items = await db.i18NModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.i18NModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.i18NModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.i18NModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userCredentialsModule` + +CRUD operations for UserCredentialsModule 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 userCredentialsModule records +const items = await db.userCredentialsModule.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.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.userCredentialsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userSettingsModule` + +CRUD operations for UserSettingsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | 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(); + +// 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(); + +// Create +const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.configSecretsUserModule` + +CRUD operations for ConfigSecretsUserModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | 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(); + +// 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(); + +// Create +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', 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.identityProvidersModule` + +CRUD operations for IdentityProvidersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, 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.connectedAccountsModule` + +CRUD operations for ConnectedAccountsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all connectedAccountsModule records +const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailsModule` + +CRUD operations for EmailsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all emailsModule records +const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.phoneNumbersModule` + +CRUD operations for PhoneNumbersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all phoneNumbersModule records +const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitsModule` + +CRUD operations for RateLimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `rateLimitSettingsTableId` | UUID | Yes | +| `ipRateLimitsTableId` | UUID | Yes | +| `rateLimitsTableId` | UUID | Yes | +| `rateLimitSettingsTable` | String | Yes | +| `ipRateLimitsTable` | String | Yes | +| `rateLimitsTable` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitsModule records +const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Get one by id +const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Create +const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.usersModule` + +CRUD operations for UsersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `typeTableId` | UUID | Yes | +| `typeTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all usersModule records +const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.webauthnCredentialsModule` + +CRUD operations for WebauthnCredentialsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all webauthnCredentialsModule records +const items = await db.webauthnCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.webauthnCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAddressesModule` + +CRUD operations for CryptoAddressesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `cryptoNetwork` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAddressesModule records +const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.denormalizedTableField` + +CRUD operations for DenormalizedTableField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `setIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `refIds` | UUID | Yes | +| `useUpdates` | Boolean | Yes | +| `updateDefaults` | Boolean | Yes | +| `funcName` | String | Yes | +| `funcOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all denormalizedTableField records +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Get one by id +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Create +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +``` + +### `db.rlsModule` + +CRUD operations for RlsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rlsModule records +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprint` + +CRUD operations for Blueprint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `definition` | JSON | Yes | +| `templateId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprint records +const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintTemplate` + +CRUD operations for BlueprintTemplate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `version` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `ownerId` | UUID | Yes | +| `visibility` | String | Yes | +| `categories` | String | Yes | +| `tags` | String | Yes | +| `definition` | JSON | Yes | +| `definitionSchemaVersion` | String | Yes | +| `source` | String | Yes | +| `complexity` | String | Yes | +| `copyCount` | Int | Yes | +| `forkCount` | Int | Yes | +| `forkedFromId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprintTemplate records +const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintConstruction` + +CRUD operations for BlueprintConstruction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `blueprintId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `status` | String | Yes | +| `errorDetails` | String | Yes | +| `tableMap` | JSON | Yes | +| `constructedDefinition` | JSON | Yes | +| `constructedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprintConstruction records +const items = await db.blueprintConstruction.findMany({ select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprintConstruction.findOne({ id: '', select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprintConstruction.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAuthModule` + +CRUD operations for CryptoAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `addressesTableId` | UUID | Yes | +| `userField` | String | Yes | +| `cryptoNetwork` | String | Yes | +| `signInRequestChallenge` | String | Yes | +| `signInRecordFailure` | String | Yes | +| `signUpWithKey` | String | Yes | +| `signInWithChallenge` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAuthModule records +const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); + +// Get one by id +const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); + +// Create +const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitMetersModule` + +CRUD operations for RateLimitMetersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `rateLimitStateTableId` | UUID | Yes | +| `rateLimitStateTableName` | String | Yes | +| `rateLimitOverridesTableId` | UUID | Yes | +| `rateLimitOverridesTableName` | String | Yes | +| `rateWindowLimitsTableId` | UUID | Yes | +| `rateWindowLimitsTableName` | String | Yes | +| `checkRateLimitFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitMetersModule records +const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.sessionsModule` + +CRUD operations for SessionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `authSettingsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `sessionsDefaultExpiration` | Interval | Yes | +| `sessionsTable` | String | Yes | +| `sessionCredentialsTable` | String | Yes | +| `authSettingsTable` | String | Yes | + +**Operations:** + +```typescript +// List all sessionsModule records +const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Get one by id +const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Create +const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.merkleStoreModule` + +CRUD operations for MerkleStoreModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `objectTableId` | UUID | Yes | +| `storeTableId` | UUID | Yes | +| `commitTableId` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `databaseOwned` | Boolean | 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, databaseOwned: 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, databaseOwned: true, createdAt: true } }).execute(); + +// Create +const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', databaseOwned: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.graphModule` + +CRUD operations for GraphModule 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 | +| `executionsTableId` | UUID | Yes | +| `outputsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `createdAt` | 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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: 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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); + +// Create +const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', databaseOwned: '', entityTableId: '', policies: '', provisions: '' }, 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.secureTableProvision` + +CRUD operations for SecureTableProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `nodes` | JSON | Yes | +| `useRls` | Boolean | Yes | +| `fields` | JSON | Yes | +| `grants` | JSON | Yes | +| `policies` | JSON | Yes | +| `outFields` | UUID | Yes | + +**Operations:** + +```typescript +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); + +// Get one by id +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); + +// Create +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.configSecretsModule` + +CRUD operations for ConfigSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | 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, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); + +// Get one by id +const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); + +// Create +const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.invitesModule` + +CRUD operations for InvitesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseProvisionModule` + +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 | +| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseProvisionModule records +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Get one by id +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Create +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.realtimeModule` + +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.webauthnAuthModule` + +CRUD operations for WebauthnAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `credentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionSecretsTableId` | UUID | Yes | +| `authSettingsTableId` | UUID | Yes | +| `rpId` | String | Yes | +| `rpName` | String | Yes | +| `originAllowlist` | String | Yes | +| `attestationType` | String | Yes | +| `requireUserVerification` | Boolean | Yes | +| `residentKey` | String | Yes | +| `challengeExpiry` | Interval | Yes | + +**Operations:** + +```typescript +// List all webauthnAuthModule records +const items = await db.webauthnAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); + +// Get one by id +const item = await db.webauthnAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); + +// Create +const created = await db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceModule` + +CRUD operations for NamespaceModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `namespacesTableId` | UUID | Yes | +| `namespaceEventsTableId` | UUID | Yes | +| `namespacesTableName` | String | Yes | +| `namespaceEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.computeLogModule` + +CRUD operations for ComputeLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.inferenceLogModule` + +CRUD operations for InferenceLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `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, 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.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.storageLogModule` + +CRUD operations for StorageLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, 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, 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.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', 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(); + +// Delete +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.transferLogModule` + +CRUD operations for TransferLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, 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, 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.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', 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(); + +// Delete +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbUsageModule` + +CRUD operations for DbUsageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `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, 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, 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', 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.notificationsModule` + +CRUD operations for NotificationsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | 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 | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.plansModule` + +CRUD operations for PlansModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 | + +**Operations:** + +```typescript +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.hierarchyModule` + +CRUD operations for HierarchyModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `chartEdgesTableId` | UUID | Yes | +| `chartEdgesTableName` | String | Yes | +| `hierarchySprtTableId` | UUID | Yes | +| `hierarchySprtTableName` | String | Yes | +| `chartEdgeGrantsTableId` | UUID | Yes | +| `chartEdgeGrantsTableName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `privateSchemaName` | String | Yes | +| `sprtTableName` | String | Yes | +| `rebuildHierarchyFunction` | String | Yes | +| `getSubordinatesFunction` | String | Yes | +| `getManagersFunction` | String | Yes | +| `isManagerOfFunction` | String | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```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, 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, 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: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.billingModule` + +CRUD operations for BillingModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `meterDefaultsTableId` | UUID | Yes | +| `meterDefaultsTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.billingProviderModule` + +CRUD operations for BillingProviderModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `provider` | String | Yes | +| `productsTableId` | UUID | Yes | +| `pricesTableId` | UUID | Yes | +| `subscriptionsTableId` | UUID | Yes | +| `billingCustomersTableId` | UUID | Yes | +| `billingCustomersTableName` | String | Yes | +| `billingProductsTableId` | UUID | Yes | +| `billingProductsTableName` | String | Yes | +| `billingPricesTableId` | UUID | Yes | +| `billingPricesTableName` | String | Yes | +| `billingSubscriptionsTableId` | UUID | Yes | +| `billingSubscriptionsTableName` | String | Yes | +| `billingWebhookEventsTableId` | UUID | Yes | +| `billingWebhookEventsTableName` | String | Yes | +| `processBillingEventFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all billingProviderModule records +const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.profilesModule` + +CRUD operations for ProfilesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `profilePermissionsTableId` | UUID | Yes | +| `profilePermissionsTableName` | String | Yes | +| `profileGrantsTableId` | UUID | Yes | +| `profileGrantsTableName` | String | Yes | +| `profileDefinitionGrantsTableId` | UUID | Yes | +| `profileDefinitionGrantsTableName` | String | Yes | +| `profileTemplatesTableId` | UUID | Yes | +| `profileTemplatesTableName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `membershipsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all profilesModule records +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', 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(); + +// Delete +const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.permissionsModule` + +CRUD operations for PermissionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.relationProvision` + +CRUD operations for RelationProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `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 | +| `policies` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | 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(); + +// 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(); + +// 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(); + +// Update +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionModule` + +CRUD operations for FunctionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `definitionsTableId` | UUID | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `secretDefinitionsTableId` | UUID | Yes | +| `requirementsTableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `configRequirementsTableId` | UUID | Yes | +| `definitionsTableName` | String | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | +| `secretDefinitionsTableName` | String | Yes | +| `requirementsTableName` | String | Yes | +| `configRequirementsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userAuthModule` + +CRUD operations for UserAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `encryptedTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `auditsTableId` | UUID | Yes | +| `auditsTableName` | String | Yes | +| `signInFunction` | String | Yes | +| `signUpFunction` | String | Yes | +| `signOutFunction` | String | Yes | +| `setPasswordFunction` | String | Yes | +| `resetPasswordFunction` | String | Yes | +| `forgotPasswordFunction` | String | Yes | +| `sendVerificationEmailFunction` | String | Yes | +| `verifyEmailFunction` | String | Yes | +| `verifyPasswordFunction` | String | Yes | +| `checkPasswordFunction` | String | Yes | +| `sendAccountDeletionEmailFunction` | String | Yes | +| `deleteAccountFunction` | String | Yes | +| `signInCrossOriginFunction` | String | Yes | +| `requestCrossOriginTokenFunction` | String | Yes | +| `extendTokenExpires` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all userAuthModule records +const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.userAuthModule.create({ data: { 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: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentModule` + +CRUD operations for AgentModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `threadTableId` | UUID | Yes | +| `messageTableId` | UUID | Yes | +| `taskTableId` | UUID | Yes | +| `promptsTableId` | UUID | Yes | +| `knowledgeTableId` | UUID | Yes | +| `planTableId` | UUID | Yes | +| `skillTableId` | UUID | Yes | +| `threadTableName` | String | Yes | +| `messageTableName` | String | Yes | +| `taskTableName` | String | Yes | +| `promptsTableName` | String | Yes | +| `knowledgeTableName` | String | Yes | +| `planTableName` | String | Yes | +| `skillTableName` | String | Yes | +| `hasKnowledge` | Boolean | Yes | +| `hasPlans` | Boolean | Yes | +| `hasSkills` | Boolean | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `knowledgeConfig` | JSON | Yes | +| `skillsConfig` | JSON | Yes | +| `knowledgePolicies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all agentModule records +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }).execute(); + +// Create +const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', planTableId: '', skillTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', planTableName: '', skillTableName: '', hasKnowledge: '', hasPlans: '', hasSkills: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', knowledgeConfig: '', skillsConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.limitsModule` + +CRUD operations for LimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `limitIncrementFunction` | String | Yes | +| `limitDecrementFunction` | String | Yes | +| `limitIncrementTrigger` | String | Yes | +| `limitDecrementTrigger` | String | Yes | +| `limitUpdateTrigger` | String | Yes | +| `limitCheckFunction` | String | Yes | +| `limitCreditsTableId` | UUID | Yes | +| `eventsTableId` | UUID | Yes | +| `creditCodesTableId` | UUID | Yes | +| `creditCodeItemsTableId` | UUID | Yes | +| `creditRedemptionsTableId` | UUID | Yes | +| `aggregateTableId` | UUID | Yes | +| `limitCapsTableId` | UUID | Yes | +| `limitCapsDefaultsTableId` | UUID | Yes | +| `capCheckTrigger` | String | Yes | +| `resolveCapFunction` | String | Yes | +| `limitWarningsTableId` | UUID | Yes | +| `limitWarningStateTableId` | UUID | Yes | +| `limitCheckSoftFunction` | String | Yes | +| `limitAggregateCheckSoftFunction` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all limitsModule records +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', 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(); + +// Delete +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 | +| `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 | +| `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, 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, 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', 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.storageModule` + +CRUD operations for StorageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `bucketsTableId` | UUID | Yes | +| `filesTableId` | UUID | Yes | +| `bucketsTableName` | String | Yes | +| `filesTableName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `entityTableId` | UUID | Yes | +| `endpoint` | String | Yes | +| `publicUrlPrefix` | String | Yes | +| `provider` | String | Yes | +| `allowedOrigins` | String | Yes | +| `restrictReads` | Boolean | Yes | +| `hasPathShares` | Boolean | Yes | +| `pathSharesTableId` | UUID | Yes | +| `uploadUrlExpirySeconds` | Int | Yes | +| `downloadUrlExpirySeconds` | Int | Yes | +| `defaultMaxFileSize` | BigInt | Yes | +| `maxFilenameLength` | Int | Yes | +| `cacheTtlSeconds` | Int | Yes | +| `maxBulkFiles` | Int | Yes | +| `maxBulkTotalSize` | BigInt | Yes | +| `hasVersioning` | Boolean | Yes | +| `hasContentHash` | Boolean | Yes | +| `hasCustomKeys` | Boolean | Yes | +| `hasAuditLog` | Boolean | Yes | +| `hasConfirmUpload` | Boolean | Yes | +| `confirmUploadDelay` | Interval | Yes | +| `fileEventsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all storageModule records +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, 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, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', databaseOwned: '', 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: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.eventsModule` + +CRUD operations for EventsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `eventsTableId` | UUID | Yes | +| `eventsTableName` | String | Yes | +| `eventAggregatesTableId` | UUID | Yes | +| `eventAggregatesTableName` | String | Yes | +| `eventTypesTableId` | UUID | Yes | +| `eventTypesTableName` | String | Yes | +| `levelsTableId` | UUID | Yes | +| `levelsTableName` | String | Yes | +| `levelRequirementsTableId` | UUID | Yes | +| `levelRequirementsTableName` | String | Yes | +| `levelGrantsTableId` | UUID | Yes | +| `levelGrantsTableName` | String | Yes | +| `achievementRewardsTableId` | UUID | Yes | +| `achievementRewardsTableName` | String | Yes | +| `recordEvent` | String | Yes | +| `removeEvent` | String | Yes | +| `tgEvent` | String | Yes | +| `tgEventToggle` | String | Yes | +| `tgEventToggleBool` | String | Yes | +| `tgEventBool` | String | Yes | +| `upsertAggregate` | String | Yes | +| `tgUpdateAggregates` | String | Yes | +| `pruneEvents` | String | Yes | +| `stepsRequired` | String | Yes | +| `levelAchieved` | String | Yes | +| `tgCheckAchievements` | String | Yes | +| `grantAchievement` | String | Yes | +| `tgAchievementReward` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all eventsModule records +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: 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, 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', databaseOwned: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.entityTypeProvision` + +CRUD operations for EntityTypeProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `prefix` | String | Yes | +| `description` | String | Yes | +| `parentEntity` | String | Yes | +| `tableName` | String | Yes | +| `isVisible` | Boolean | Yes | +| `hasLimits` | Boolean | Yes | +| `hasProfiles` | Boolean | Yes | +| `hasLevels` | Boolean | Yes | +| `hasInvites` | Boolean | Yes | +| `hasInviteAchievements` | Boolean | Yes | +| `storage` | JSON | Yes | +| `namespaces` | JSON | Yes | +| `functions` | JSON | Yes | +| `graphs` | JSON | Yes | +| `agents` | JSON | Yes | +| `skipEntityPolicies` | Boolean | Yes | +| `tableProvision` | JSON | Yes | +| `outMembershipType` | Int | Yes | +| `outEntityTableId` | UUID | Yes | +| `outEntityTableName` | String | Yes | +| `outInstalledModules` | String | Yes | +| `outStorageModuleId` | UUID | Yes | +| `outBucketsTableId` | UUID | Yes | +| `outFilesTableId` | UUID | Yes | +| `outPathSharesTableId` | UUID | Yes | +| `outInvitesModuleId` | UUID | Yes | +| `outNamespaceModuleId` | UUID | Yes | +| `outNamespacesTableId` | UUID | Yes | +| `outNamespaceEventsTableId` | UUID | Yes | +| `outFunctionModuleId` | UUID | Yes | +| `outDefinitionsTableId` | UUID | Yes | +| `outInvocationsTableId` | UUID | Yes | +| `outExecutionLogsTableId` | UUID | Yes | +| `outSecretDefinitionsTableId` | UUID | Yes | +| `outRequirementsTableId` | UUID | Yes | +| `outConfigRequirementsTableId` | UUID | Yes | +| `outGraphModuleId` | UUID | Yes | +| `outGraphsTableId` | UUID | Yes | +| `outAgentModuleId` | UUID | Yes | + +**Operations:** + +```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.resolveBlueprintField` + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableId` | UUID | + | `fieldName` | String | + +```typescript +const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); +``` + +### `db.query.resolveBlueprintTable` + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableName` | String | + | `schemaName` | String | + | `tableMap` | JSON | + | `defaultSchemaId` | UUID | + +```typescript +const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); +``` + +### `db.mutation.constructBlueprint` + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConstructBlueprintInput (required) | + +```typescript +const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); +``` + +### `db.mutation.provisionFullTextSearch` + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionFullTextSearchInput (required) | + +```typescript +const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionIndex` + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionIndexInput (required) | + +```typescript +const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionCheckConstraint` + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionCheckConstraintInput (required) | + +```typescript +const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionUniqueConstraint` + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionUniqueConstraintInput (required) | + +```typescript +const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.copyTemplateToBlueprint` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + +```typescript +const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); +``` + +### `db.mutation.provisionSpatialRelation` + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSpatialRelationInput (required) | + +```typescript +const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); +``` + +### `db.mutation.provisionTable` + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionTableInput (required) | + +```typescript +const result = await db.mutation.provisionTable({ input: '' }).execute(); +``` + +### `db.mutation.provisionRelation` + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionRelationInput (required) | + +```typescript +const result = await db.mutation.provisionRelation({ input: '' }).execute(); +``` + +### `db.mutation.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/modules/orm/client.ts b/sdk/constructive-react/src/modules/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-react/src/modules/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/modules/orm/index.ts b/sdk/constructive-react/src/modules/orm/index.ts new file mode 100644 index 0000000000..a7029f3b07 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/index.ts @@ -0,0 +1,158 @@ +/** + * 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 { 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 { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +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 { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; +import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; +import { RlsModuleModel } from './models/rlsModule'; +import { BlueprintModel } from './models/blueprint'; +import { BlueprintTemplateModel } from './models/blueprintTemplate'; +import { BlueprintConstructionModel } from './models/blueprintConstruction'; +import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; +import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; +import { SessionsModuleModel } from './models/sessionsModule'; +import { MerkleStoreModuleModel } from './models/merkleStoreModule'; +import { GraphModuleModel } from './models/graphModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; +import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { InvitesModuleModel } from './models/invitesModule'; +import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; +import { RealtimeModuleModel } from './models/realtimeModule'; +import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; +import { ComputeLogModuleModel } from './models/computeLogModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; +import { StorageLogModuleModel } from './models/storageLogModule'; +import { TransferLogModuleModel } from './models/transferLogModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; +import { NotificationsModuleModel } from './models/notificationsModule'; +import { PlansModuleModel } from './models/plansModule'; +import { HierarchyModuleModel } from './models/hierarchyModule'; +import { BillingModuleModel } from './models/billingModule'; +import { BillingProviderModuleModel } from './models/billingProviderModule'; +import { ProfilesModuleModel } from './models/profilesModule'; +import { PermissionsModuleModel } from './models/permissionsModule'; +import { RelationProvisionModel } from './models/relationProvision'; +import { FunctionModuleModel } from './models/functionModule'; +import { UserAuthModuleModel } from './models/userAuthModule'; +import { AgentModuleModel } from './models/agentModule'; +import { LimitsModuleModel } from './models/limitsModule'; +import { MembershipsModuleModel } from './models/membershipsModule'; +import { StorageModuleModel } from './models/storageModule'; +import { EventsModuleModel } from './models/eventsModule'; +import { EntityTypeProvisionModel } from './models/entityTypeProvision'; +import { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @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 { + 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), + identityProvidersModule: new IdentityProvidersModuleModel(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), + cryptoAddressesModule: new CryptoAddressesModuleModel(client), + denormalizedTableField: new DenormalizedTableFieldModel(client), + rlsModule: new RlsModuleModel(client), + blueprint: new BlueprintModel(client), + blueprintTemplate: new BlueprintTemplateModel(client), + blueprintConstruction: new BlueprintConstructionModel(client), + cryptoAuthModule: new CryptoAuthModuleModel(client), + rateLimitMetersModule: new RateLimitMetersModuleModel(client), + sessionsModule: new SessionsModuleModel(client), + merkleStoreModule: new MerkleStoreModuleModel(client), + graphModule: new GraphModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), + configSecretsModule: new ConfigSecretsModuleModel(client), + invitesModule: new InvitesModuleModel(client), + databaseProvisionModule: new DatabaseProvisionModuleModel(client), + realtimeModule: new RealtimeModuleModel(client), + webauthnAuthModule: new WebauthnAuthModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), + computeLogModule: new ComputeLogModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), + storageLogModule: new StorageLogModuleModel(client), + transferLogModule: new TransferLogModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), + notificationsModule: new NotificationsModuleModel(client), + plansModule: new PlansModuleModel(client), + hierarchyModule: new HierarchyModuleModel(client), + billingModule: new BillingModuleModel(client), + billingProviderModule: new BillingProviderModuleModel(client), + profilesModule: new ProfilesModuleModel(client), + permissionsModule: new PermissionsModuleModel(client), + relationProvision: new RelationProvisionModel(client), + functionModule: new FunctionModuleModel(client), + userAuthModule: new UserAuthModuleModel(client), + agentModule: new AgentModuleModel(client), + limitsModule: new LimitsModuleModel(client), + membershipsModule: new MembershipsModuleModel(client), + storageModule: new StorageModuleModel(client), + eventsModule: new EventsModuleModel(client), + entityTypeProvision: new EntityTypeProvisionModel(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 new file mode 100644 index 0000000000..a2b2f9680f --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -0,0 +1,13842 @@ +/** + * 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 DefaultIdsModule { + id: string; + databaseId?: string | null; +} +export interface MembershipTypesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + 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; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + /** 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; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface I18NModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + settingsTableId?: string | null; + 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 { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UserSettingsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; +} +export interface ConfigSecretsUserModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + configDefinitionsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. */ +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; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ConnectedAccountsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EmailsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface PhoneNumbersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface RateLimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +export interface UsersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** 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. */ +export interface WebauthnCredentialsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface CryptoAddressesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DenormalizedTableField { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface RlsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ +export interface Blueprint { + /** Unique identifier for this blueprint. */ + id: string; + /** The user who owns this blueprint. */ + ownerId?: string | null; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId?: string | null; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string | null; + /** Human-readable display name for the blueprint. */ + displayName?: string | null; + /** Optional description of the blueprint. */ + description?: string | null; + /** 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?: Record | null; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string | null; + /** 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 | null; + /** 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?: Record | null; + /** Timestamp when this blueprint was created. */ + createdAt?: string | null; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string | null; +} +/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ +export interface BlueprintTemplate { + /** Unique identifier for this template. */ + id: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string | null; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string | null; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string | null; + /** Optional description of what the template provisions. */ + description?: string | null; + /** The user who created or published this template. */ + ownerId?: string | null; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string | null; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[] | null; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[] | null; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: Record | null; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string | null; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string | null; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string | null; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number | null; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number | null; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string | null; + /** 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?: string | null; + /** 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?: Record | null; + /** Timestamp when this template was created. */ + createdAt?: string | null; + /** Timestamp when this template was last modified. */ + updatedAt?: string | null; +} +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ +export interface BlueprintConstruction { + /** Unique identifier for this construction attempt. */ + id: string; + /** The blueprint that was constructed. */ + blueprintId?: string | null; + /** The database the blueprint was constructed into. */ + databaseId?: string | null; + /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ + schemaId?: string | null; + /** 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 | null; + /** Error message from a failed construction attempt. NULL unless status is failed. */ + errorDetails?: string | null; + /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + tableMap?: Record | null; + /** 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?: Record | null; + /** Timestamp when construction successfully completed. NULL until constructed. */ + constructedAt?: string | null; + /** Timestamp when this construction attempt was created. */ + createdAt?: string | null; + /** Timestamp when this construction attempt was last modified. */ + updatedAt?: string | null; +} +export interface CryptoAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface SessionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: string | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface MerkleStoreModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + createdAt?: string | null; +} +export interface GraphModule { + id: string; + databaseId?: string | null; + publicSchemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + scope?: string | null; + prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; + executionsTableId?: string | null; + outputsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + createdAt?: string | null; +} +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database this provision belongs to. Required. */ + databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string | null; + /** 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 | null; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: Record | null; + /** 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 | null; + /** 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?: Record[] | null; + /** 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?: Record | null; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: Record | null; + /** 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; +} +/** + * 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. + */ +export interface ConfigSecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface InvitesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: 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 | 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; +} +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; +} +export interface WebauthnAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + authSettingsTableId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpiry?: string | null; +} +export interface NamespaceModule { + id: string; + 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; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface ComputeLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface StorageLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface TransferLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface NotificationsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 HierarchyModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + createdAt?: string | null; +} +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface BillingProviderModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ProfilesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 PermissionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; +} +/** + * 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. */ + databaseId?: string | null; + /** + * 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 | null; + /** + * 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?: string | null; + /** + * 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?: string | null; + /** + * 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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?: string | null; + /** 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 | null; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string | null; + /** 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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?: Record | null; + /** 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?: Record | null; + /** + * 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?: Record | null; + /** 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?: string | null; + /** 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?: string | null; + /** 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?: string | null; + /** 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 FunctionModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + secretDefinitionsTableId?: string | null; + requirementsTableId?: string | null; + configDefinitionsTableId?: string | null; + configRequirementsTableId?: string | null; + definitionsTableName?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + secretDefinitionsTableName?: string | null; + requirementsTableName?: string | null; + configRequirementsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UserAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInCrossOriginFunction?: string | null; + requestCrossOriginTokenFunction?: string | null; + extendTokenExpires?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface AgentModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + threadTableId?: string | null; + messageTableId?: string | null; + taskTableId?: string | null; + promptsTableId?: string | null; + knowledgeTableId?: string | null; + planTableId?: string | null; + skillTableId?: string | null; + threadTableName?: string | null; + messageTableName?: string | null; + taskTableName?: string | null; + promptsTableName?: string | null; + knowledgeTableName?: string | null; + planTableName?: string | null; + skillTableName?: string | null; + hasKnowledge?: boolean | null; + hasPlans?: boolean | null; + hasSkills?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + knowledgeConfig?: Record | null; + skillsConfig?: Record | null; + knowledgePolicies?: Record | null; + provisions?: Record | null; +} +export interface LimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + limitCreditsTableId?: string | null; + eventsTableId?: string | null; + creditCodesTableId?: string | null; + creditCodeItemsTableId?: string | null; + creditRedemptionsTableId?: string | null; + aggregateTableId?: string | null; + limitCapsTableId?: string | null; + limitCapsDefaultsTableId?: string | null; + capCheckTrigger?: string | null; + resolveCapFunction?: string | null; + limitWarningsTableId?: string | null; + limitWarningStateTableId?: string | null; + limitCheckSoftFunction?: string | null; + limitAggregateCheckSoftFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface MembershipsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + apiName?: string | null; + privateApiName?: string | null; +} +export interface StorageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; + fileEventsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EventsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: 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). + * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + * Set table_provision to a single jsonb object (using the same shape as provision_table() / + * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + * as an escape hatch to apply zero policies. + */ +export interface EntityTypeProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database to provision this entity type in. Required. */ + databaseId?: string | null; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name?: string | null; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix?: string | null; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string | null; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string | null; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string | null; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean | null; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean | null; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean | null; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean | null; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean | null; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean | null; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: Record | null; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: Record | null; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: Record | null; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: Record | null; + agents?: Record | null; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean | null; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: Record | null; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number | null; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string | null; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string | null; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[] | null; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string | null; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string | null; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string | null; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string | null; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string | null; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outRequirementsTableId?: string | null; + outConfigRequirementsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: 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 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 IdentityProvidersModuleRelations {} +export interface ConnectedAccountsModuleRelations {} +export interface EmailsModuleRelations {} +export interface PhoneNumbersModuleRelations {} +export interface RateLimitsModuleRelations {} +export interface UsersModuleRelations {} +export interface WebauthnCredentialsModuleRelations {} +export interface CryptoAddressesModuleRelations {} +export interface DenormalizedTableFieldRelations {} +export interface RlsModuleRelations {} +export interface BlueprintRelations { + template?: BlueprintTemplate | null; + blueprintConstructions?: ConnectionResult; +} +export interface BlueprintTemplateRelations { + forkedFrom?: BlueprintTemplate | null; + blueprintTemplatesByForkedFromId?: ConnectionResult; + blueprintsByTemplateId?: ConnectionResult; +} +export interface BlueprintConstructionRelations { + blueprint?: Blueprint | null; +} +export interface CryptoAuthModuleRelations {} +export interface RateLimitMetersModuleRelations {} +export interface SessionsModuleRelations {} +export interface MerkleStoreModuleRelations { + graphModules?: ConnectionResult; +} +export interface GraphModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} +export interface SecureTableProvisionRelations {} +export interface ConfigSecretsModuleRelations {} +export interface InvitesModuleRelations {} +export interface DatabaseProvisionModuleRelations {} +export interface RealtimeModuleRelations {} +export interface WebauthnAuthModuleRelations {} +export interface NamespaceModuleRelations {} +export interface ComputeLogModuleRelations {} +export interface InferenceLogModuleRelations {} +export interface StorageLogModuleRelations {} +export interface TransferLogModuleRelations {} +export interface DbUsageModuleRelations {} +export interface NotificationsModuleRelations {} +export interface PlansModuleRelations {} +export interface HierarchyModuleRelations {} +export interface BillingModuleRelations {} +export interface BillingProviderModuleRelations {} +export interface ProfilesModuleRelations {} +export interface PermissionsModuleRelations {} +export interface RelationProvisionRelations {} +export interface FunctionModuleRelations {} +export interface UserAuthModuleRelations {} +export interface AgentModuleRelations {} +export interface LimitsModuleRelations {} +export interface MembershipsModuleRelations {} +export interface StorageModuleRelations {} +export interface EventsModuleRelations {} +export interface EntityTypeProvisionRelations {} +// ============ 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 UserCredentialsModuleWithRelations = UserCredentialsModule & + UserCredentialsModuleRelations; +export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; +export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & + ConnectedAccountsModuleRelations; +export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; +export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; +export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; +export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; +export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & + WebauthnCredentialsModuleRelations; +export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & + CryptoAddressesModuleRelations; +export type DenormalizedTableFieldWithRelations = DenormalizedTableField & + DenormalizedTableFieldRelations; +export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type BlueprintWithRelations = Blueprint & BlueprintRelations; +export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; +export type BlueprintConstructionWithRelations = BlueprintConstruction & + BlueprintConstructionRelations; +export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; +export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & + RateLimitMetersModuleRelations; +export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; +export type SecureTableProvisionWithRelations = SecureTableProvision & + SecureTableProvisionRelations; +export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & + DatabaseProvisionModuleRelations; +export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; +export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; +export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; +export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; +export type BillingProviderModuleWithRelations = BillingProviderModule & + BillingProviderModuleRelations; +export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; +export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; +export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; +export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; +export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; +export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; +export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; +// ============ Entity Select Types ============ +export type DefaultIdsModuleSelect = { + id?: boolean; + databaseId?: boolean; +}; +export type MembershipTypesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; +export type UserStateModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; +export type SessionSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + 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; + schemaId?: boolean; + userDevicesTableId?: boolean; + deviceSettingsTableId?: boolean; + userDevicesTable?: boolean; + deviceSettingsTable?: boolean; +}; +export type I18NModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + settingsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type UserCredentialsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type UserSettingsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; +}; +export type ConfigSecretsUserModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + configDefinitionsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type IdentityProvidersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type ConnectedAccountsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EmailsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PhoneNumbersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type RateLimitsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + rateLimitSettingsTableId?: boolean; + ipRateLimitsTableId?: boolean; + rateLimitsTableId?: boolean; + rateLimitSettingsTable?: boolean; + ipRateLimitsTable?: boolean; + rateLimitsTable?: boolean; +}; +export type UsersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + typeTableId?: boolean; + typeTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type WebauthnCredentialsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type CryptoAddressesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + cryptoNetwork?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DenormalizedTableFieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + setIds?: boolean; + refTableId?: boolean; + refFieldId?: boolean; + refIds?: boolean; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: boolean; + funcOrder?: boolean; +}; +export type RlsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + sessionCredentialsTableId?: boolean; + sessionsTableId?: boolean; + usersTableId?: boolean; + authenticate?: boolean; + authenticateStrict?: boolean; + currentRole?: boolean; + currentRoleId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type BlueprintSelect = { + id?: boolean; + ownerId?: boolean; + databaseId?: boolean; + name?: boolean; + displayName?: boolean; + description?: boolean; + definition?: boolean; + templateId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + template?: { + select: BlueprintTemplateSelect; + }; + blueprintConstructions?: { + select: BlueprintConstructionSelect; + first?: number; + filter?: BlueprintConstructionFilter; + orderBy?: BlueprintConstructionOrderBy[]; + }; +}; +export type BlueprintTemplateSelect = { + id?: boolean; + name?: boolean; + version?: boolean; + displayName?: boolean; + description?: boolean; + ownerId?: boolean; + visibility?: boolean; + categories?: boolean; + tags?: boolean; + definition?: boolean; + definitionSchemaVersion?: boolean; + source?: boolean; + complexity?: boolean; + copyCount?: boolean; + forkCount?: boolean; + forkedFromId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + forkedFrom?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplatesByForkedFromId?: { + select: BlueprintTemplateSelect; + first?: number; + filter?: BlueprintTemplateFilter; + orderBy?: BlueprintTemplateOrderBy[]; + }; + blueprintsByTemplateId?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; + }; +}; +export type BlueprintConstructionSelect = { + id?: boolean; + blueprintId?: boolean; + databaseId?: boolean; + schemaId?: boolean; + status?: boolean; + errorDetails?: boolean; + tableMap?: boolean; + constructedDefinition?: boolean; + constructedAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + blueprint?: { + select: BlueprintSelect; + }; +}; +export type CryptoAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + addressesTableId?: boolean; + userField?: boolean; + cryptoNetwork?: boolean; + signInRequestChallenge?: boolean; + signInRecordFailure?: boolean; + signUpWithKey?: boolean; + signInWithChallenge?: boolean; +}; +export type RateLimitMetersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + rateLimitStateTableId?: boolean; + rateLimitStateTableName?: boolean; + rateLimitOverridesTableId?: boolean; + rateLimitOverridesTableName?: boolean; + rateWindowLimitsTableId?: boolean; + rateWindowLimitsTableName?: boolean; + checkRateLimitFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type SessionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + authSettingsTableId?: boolean; + usersTableId?: boolean; + sessionsDefaultExpiration?: boolean; + sessionsTable?: boolean; + sessionCredentialsTable?: boolean; + authSettingsTable?: boolean; +}; +export type MerkleStoreModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + objectTableId?: boolean; + storeTableId?: boolean; + commitTableId?: boolean; + refTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; + databaseOwned?: boolean; + createdAt?: boolean; + graphModules?: { + select: GraphModuleSelect; + first?: number; + filter?: GraphModuleFilter; + orderBy?: GraphModuleOrderBy[]; + }; +}; +export type GraphModuleSelect = { + id?: boolean; + databaseId?: boolean; + publicSchemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + scope?: boolean; + prefix?: boolean; + merkleStoreModuleId?: boolean; + graphsTableId?: boolean; + executionsTableId?: boolean; + outputsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; + databaseOwned?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + createdAt?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; +}; +export type SecureTableProvisionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + nodes?: boolean; + useRls?: boolean; + fields?: boolean; + grants?: boolean; + policies?: boolean; + outFields?: boolean; +}; +export type ConfigSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + configDefinitionsTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + hasConfig?: boolean; +}; +export type InvitesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DatabaseProvisionModuleSelect = { + 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; +}; +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 WebauthnAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + usersTableId?: boolean; + credentialsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + sessionSecretsTableId?: boolean; + authSettingsTableId?: boolean; + rpId?: boolean; + rpName?: boolean; + originAllowlist?: boolean; + attestationType?: boolean; + requireUserVerification?: boolean; + residentKey?: boolean; + challengeExpiry?: boolean; +}; +export type NamespaceModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + namespacesTableId?: boolean; + namespaceEventsTableId?: boolean; + namespacesTableName?: boolean; + namespaceEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type ComputeLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type StorageLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type TransferLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type NotificationsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + notificationsTableId?: boolean; + readStateTableId?: boolean; + preferencesTableId?: boolean; + channelsTableId?: boolean; + deliveryLogTableId?: boolean; + ownerTableId?: boolean; + userSettingsTableId?: boolean; + organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PlansModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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; +}; +export type HierarchyModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + chartEdgesTableId?: boolean; + chartEdgesTableName?: boolean; + hierarchySprtTableId?: boolean; + hierarchySprtTableName?: boolean; + chartEdgeGrantsTableId?: boolean; + chartEdgeGrantsTableName?: boolean; + entityTableId?: boolean; + usersTableId?: boolean; + scope?: boolean; + prefix?: boolean; + privateSchemaName?: boolean; + sprtTableName?: boolean; + rebuildHierarchyFunction?: boolean; + getSubordinatesFunction?: boolean; + getManagersFunction?: boolean; + isManagerOfFunction?: boolean; + createdAt?: boolean; +}; +export type BillingModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + meterDefaultsTableId?: boolean; + meterDefaultsTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type BillingProviderModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + provider?: boolean; + productsTableId?: boolean; + pricesTableId?: boolean; + subscriptionsTableId?: boolean; + billingCustomersTableId?: boolean; + billingCustomersTableName?: boolean; + billingProductsTableId?: boolean; + billingProductsTableName?: boolean; + billingPricesTableId?: boolean; + billingPricesTableName?: boolean; + billingSubscriptionsTableId?: boolean; + billingSubscriptionsTableName?: boolean; + billingWebhookEventsTableId?: boolean; + billingWebhookEventsTableName?: boolean; + processBillingEventFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type ProfilesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + profilePermissionsTableId?: boolean; + profilePermissionsTableName?: boolean; + profileGrantsTableId?: boolean; + profileGrantsTableName?: boolean; + profileDefinitionGrantsTableId?: boolean; + profileDefinitionGrantsTableName?: boolean; + profileTemplatesTableId?: boolean; + profileTemplatesTableName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + permissionsTableId?: boolean; + membershipsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PermissionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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 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 FunctionModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + definitionsTableId?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + secretDefinitionsTableId?: boolean; + requirementsTableId?: boolean; + configDefinitionsTableId?: boolean; + configRequirementsTableId?: boolean; + definitionsTableName?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; + secretDefinitionsTableName?: boolean; + requirementsTableName?: boolean; + configRequirementsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type UserAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + encryptedTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + auditsTableId?: boolean; + auditsTableName?: boolean; + signInFunction?: boolean; + signUpFunction?: boolean; + signOutFunction?: boolean; + setPasswordFunction?: boolean; + resetPasswordFunction?: boolean; + forgotPasswordFunction?: boolean; + sendVerificationEmailFunction?: boolean; + verifyEmailFunction?: boolean; + verifyPasswordFunction?: boolean; + checkPasswordFunction?: boolean; + sendAccountDeletionEmailFunction?: boolean; + deleteAccountFunction?: boolean; + signInCrossOriginFunction?: boolean; + requestCrossOriginTokenFunction?: boolean; + extendTokenExpires?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type AgentModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + threadTableId?: boolean; + messageTableId?: boolean; + taskTableId?: boolean; + promptsTableId?: boolean; + knowledgeTableId?: boolean; + planTableId?: boolean; + skillTableId?: boolean; + threadTableName?: boolean; + messageTableName?: boolean; + taskTableName?: boolean; + promptsTableName?: boolean; + knowledgeTableName?: boolean; + planTableName?: boolean; + skillTableName?: boolean; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + knowledgeConfig?: boolean; + skillsConfig?: boolean; + knowledgePolicies?: boolean; + provisions?: boolean; +}; +export type LimitsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + limitIncrementFunction?: boolean; + limitDecrementFunction?: boolean; + limitIncrementTrigger?: boolean; + limitDecrementTrigger?: boolean; + limitUpdateTrigger?: boolean; + limitCheckFunction?: boolean; + limitCreditsTableId?: boolean; + eventsTableId?: boolean; + creditCodesTableId?: boolean; + creditCodeItemsTableId?: boolean; + creditRedemptionsTableId?: boolean; + aggregateTableId?: boolean; + limitCapsTableId?: boolean; + limitCapsDefaultsTableId?: boolean; + capCheckTrigger?: boolean; + resolveCapFunction?: boolean; + limitWarningsTableId?: boolean; + limitWarningStateTableId?: boolean; + limitCheckSoftFunction?: boolean; + limitAggregateCheckSoftFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type MembershipsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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; + apiName?: boolean; + privateApiName?: boolean; +}; +export type StorageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + bucketsTableId?: boolean; + filesTableId?: boolean; + bucketsTableName?: boolean; + filesTableName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + policies?: boolean; + provisions?: boolean; + entityTableId?: boolean; + endpoint?: boolean; + publicUrlPrefix?: boolean; + provider?: boolean; + allowedOrigins?: boolean; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: boolean; + uploadUrlExpirySeconds?: boolean; + downloadUrlExpirySeconds?: boolean; + defaultMaxFileSize?: boolean; + maxFilenameLength?: boolean; + cacheTtlSeconds?: boolean; + maxBulkFiles?: boolean; + maxBulkTotalSize?: boolean; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: boolean; + fileEventsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EventsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + eventsTableId?: boolean; + eventsTableName?: boolean; + eventAggregatesTableId?: boolean; + eventAggregatesTableName?: boolean; + eventTypesTableId?: boolean; + eventTypesTableName?: boolean; + levelsTableId?: boolean; + levelsTableName?: boolean; + levelRequirementsTableId?: boolean; + levelRequirementsTableName?: boolean; + levelGrantsTableId?: boolean; + levelGrantsTableName?: boolean; + achievementRewardsTableId?: boolean; + achievementRewardsTableName?: boolean; + recordEvent?: boolean; + removeEvent?: boolean; + tgEvent?: boolean; + tgEventToggle?: boolean; + tgEventToggleBool?: boolean; + tgEventBool?: boolean; + upsertAggregate?: boolean; + tgUpdateAggregates?: boolean; + pruneEvents?: boolean; + stepsRequired?: boolean; + levelAchieved?: boolean; + tgCheckAchievements?: boolean; + grantAchievement?: boolean; + tgAchievementReward?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EntityTypeProvisionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + prefix?: boolean; + description?: boolean; + parentEntity?: boolean; + tableName?: boolean; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: boolean; + namespaces?: boolean; + functions?: boolean; + graphs?: boolean; + agents?: boolean; + skipEntityPolicies?: boolean; + tableProvision?: boolean; + outMembershipType?: boolean; + outEntityTableId?: boolean; + outEntityTableName?: boolean; + outInstalledModules?: boolean; + outStorageModuleId?: boolean; + outBucketsTableId?: boolean; + outFilesTableId?: boolean; + outPathSharesTableId?: boolean; + outInvitesModuleId?: boolean; + outNamespaceModuleId?: boolean; + outNamespacesTableId?: boolean; + outNamespaceEventsTableId?: boolean; + outFunctionModuleId?: boolean; + outDefinitionsTableId?: boolean; + outInvocationsTableId?: boolean; + outExecutionLogsTableId?: boolean; + outSecretDefinitionsTableId?: boolean; + outRequirementsTableId?: boolean; + outConfigRequirementsTableId?: boolean; + outGraphModuleId?: boolean; + outGraphsTableId?: boolean; + outAgentModuleId?: boolean; +}; +// ============ Table Filter Types ============ +export interface DefaultIdsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DefaultIdsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultIdsModuleFilter[]; + /** Negates the expression. */ + not?: DefaultIdsModuleFilter; +} +export interface MembershipTypesModuleFilter { + /** 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?: MembershipTypesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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; + /** 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; +} +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 { + /** 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 `userDevicesTableId` field. */ + userDevicesTableId?: UUIDFilter; + /** Filter by the object’s `deviceSettingsTableId` field. */ + deviceSettingsTableId?: UUIDFilter; + /** Filter by the object’s `userDevicesTable` field. */ + userDevicesTable?: StringFilter; + /** Filter by the object’s `deviceSettingsTable` field. */ + deviceSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DevicesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DevicesModuleFilter[]; + /** Negates the expression. */ + not?: DevicesModuleFilter; +} +export interface I18NModuleFilter { + /** 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 `settingsTableId` field. */ + settingsTableId?: 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?: I18NModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: I18NModuleFilter[]; + /** Negates the expression. */ + not?: I18NModuleFilter; +} +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 `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?: UserCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserCredentialsModuleFilter[]; + /** Negates the expression. */ + not?: UserCredentialsModuleFilter; +} +export interface UserSettingsModuleFilter { + /** 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 `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[]; + /** Checks for any expressions in this list. */ + or?: UserSettingsModuleFilter[]; + /** Negates the expression. */ + not?: UserSettingsModuleFilter; +} +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 `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[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} +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 `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?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} +export interface ConnectedAccountsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConnectedAccountsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConnectedAccountsModuleFilter[]; + /** Negates the expression. */ + not?: ConnectedAccountsModuleFilter; +} +export interface EmailsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EmailsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailsModuleFilter[]; + /** Negates the expression. */ + not?: EmailsModuleFilter; +} +export interface PhoneNumbersModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PhoneNumbersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PhoneNumbersModuleFilter[]; + /** Negates the expression. */ + not?: PhoneNumbersModuleFilter; +} +export interface RateLimitsModuleFilter { + /** 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 `rateLimitSettingsTableId` field. */ + rateLimitSettingsTableId?: UUIDFilter; + /** Filter by the object’s `ipRateLimitsTableId` field. */ + ipRateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitsTableId` field. */ + rateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitSettingsTable` field. */ + rateLimitSettingsTable?: StringFilter; + /** Filter by the object’s `ipRateLimitsTable` field. */ + ipRateLimitsTable?: StringFilter; + /** Filter by the object’s `rateLimitsTable` field. */ + rateLimitsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitsModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitsModuleFilter; +} +export interface UsersModuleFilter { + /** 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 `typeTableId` field. */ + typeTableId?: UUIDFilter; + /** Filter by the object’s `typeTableName` field. */ + typeTableName?: 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?: UsersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UsersModuleFilter[]; + /** Negates the expression. */ + not?: UsersModuleFilter; +} +export interface WebauthnCredentialsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnCredentialsModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnCredentialsModuleFilter; +} +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; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAddressesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressesModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAddressesModuleFilter; +} +export interface DenormalizedTableFieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `setIds` field. */ + setIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `refIds` field. */ + refIds?: UUIDListFilter; + /** Filter by the object’s `useUpdates` field. */ + useUpdates?: BooleanFilter; + /** Filter by the object’s `updateDefaults` field. */ + updateDefaults?: BooleanFilter; + /** Filter by the object’s `funcName` field. */ + funcName?: StringFilter; + /** Filter by the object’s `funcOrder` field. */ + funcOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: DenormalizedTableFieldFilter[]; + /** Checks for any expressions in this list. */ + or?: DenormalizedTableFieldFilter[]; + /** Negates the expression. */ + not?: DenormalizedTableFieldFilter; +} +export interface 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[]; + /** Negates the expression. */ + not?: RlsModuleFilter; +} +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; + /** Filter by the object’s `blueprintConstructions` relation. */ + blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; + /** `blueprintConstructions` exist. */ + blueprintConstructionsExist?: boolean; +} +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +export interface CryptoAuthModuleFilter { + /** 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 `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `addressesTableId` field. */ + addressesTableId?: UUIDFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `signInRequestChallenge` field. */ + signInRequestChallenge?: StringFilter; + /** Filter by the object’s `signInRecordFailure` field. */ + signInRecordFailure?: StringFilter; + /** Filter by the object’s `signUpWithKey` field. */ + signUpWithKey?: StringFilter; + /** Filter by the object’s `signInWithChallenge` field. */ + signInWithChallenge?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAuthModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAuthModuleFilter; +} +export interface RateLimitMetersModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; +} +export interface SessionsModuleFilter { + /** 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 `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsDefaultExpiration` field. */ + sessionsDefaultExpiration?: IntervalFilter; + /** Filter by the object’s `sessionsTable` field. */ + sessionsTable?: StringFilter; + /** Filter by the object’s `sessionCredentialsTable` field. */ + sessionCredentialsTable?: StringFilter; + /** Filter by the object’s `authSettingsTable` field. */ + authSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SessionsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SessionsModuleFilter[]; + /** Negates the expression. */ + not?: SessionsModuleFilter; +} +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 `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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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; +} +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 `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 `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: GraphModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: GraphModuleFilter[]; + /** Negates the expression. */ + not?: GraphModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} +export interface SecureTableProvisionFilter { + /** 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 `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; + /** Checks for all expressions in this list. */ + and?: SecureTableProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: SecureTableProvisionFilter[]; + /** Negates the expression. */ + not?: SecureTableProvisionFilter; +} +export interface ConfigSecretsModuleFilter { + /** 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 `configDefinitionsTableId` field. */ + configDefinitionsTableId?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `hasConfig` field. */ + hasConfig?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `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?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +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 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; +} +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[]; + /** Checks for any expressions in this list. */ + or?: WebauthnAuthModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnAuthModuleFilter; +} +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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +export interface ComputeLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; +} +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; +} +export interface StorageLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; +} +export interface TransferLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; +} +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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 NotificationsModuleFilter { + /** 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 `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 `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 `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; +} +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 `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; +} +export interface HierarchyModuleFilter { + /** 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 `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 `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; +} +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: 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?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; +} +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; +} +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 `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 `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `profilePermissionsTableId` field. */ + profilePermissionsTableId?: UUIDFilter; + /** Filter by the object’s `profilePermissionsTableName` field. */ + profilePermissionsTableName?: StringFilter; + /** Filter by the object’s `profileGrantsTableId` field. */ + profileGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileGrantsTableName` field. */ + profileGrantsTableName?: StringFilter; + /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ + profileDefinitionGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ + profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: 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 `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: 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?: ProfilesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ProfilesModuleFilter[]; + /** Negates the expression. */ + not?: ProfilesModuleFilter; +} +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 `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 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 FunctionModuleFilter { + /** 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 `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `requirementsTableId` field. */ + requirementsTableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `configRequirementsTableId` field. */ + configRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `requirementsTableName` field. */ + requirementsTableName?: StringFilter; + /** Filter by the object’s `configRequirementsTableName` field. */ + configRequirementsTableName?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface UserAuthModuleFilter { + /** 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 `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `encryptedTableId` field. */ + encryptedTableId?: 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 `auditsTableName` field. */ + auditsTableName?: StringFilter; + /** Filter by the object’s `signInFunction` field. */ + signInFunction?: StringFilter; + /** Filter by the object’s `signUpFunction` field. */ + signUpFunction?: StringFilter; + /** Filter by the object’s `signOutFunction` field. */ + signOutFunction?: StringFilter; + /** Filter by the object’s `setPasswordFunction` field. */ + setPasswordFunction?: StringFilter; + /** Filter by the object’s `resetPasswordFunction` field. */ + resetPasswordFunction?: StringFilter; + /** Filter by the object’s `forgotPasswordFunction` field. */ + forgotPasswordFunction?: StringFilter; + /** Filter by the object’s `sendVerificationEmailFunction` field. */ + sendVerificationEmailFunction?: StringFilter; + /** Filter by the object’s `verifyEmailFunction` field. */ + verifyEmailFunction?: StringFilter; + /** Filter by the object’s `verifyPasswordFunction` field. */ + verifyPasswordFunction?: StringFilter; + /** Filter by the object’s `checkPasswordFunction` field. */ + checkPasswordFunction?: StringFilter; + /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ + sendAccountDeletionEmailFunction?: StringFilter; + /** Filter by the object’s `deleteAccountFunction` field. */ + deleteAccountFunction?: StringFilter; + /** Filter by the object’s `signInCrossOriginFunction` field. */ + signInCrossOriginFunction?: StringFilter; + /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ + requestCrossOriginTokenFunction?: StringFilter; + /** Filter by the object’s `extendTokenExpires` field. */ + extendTokenExpires?: 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?: UserAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserAuthModuleFilter[]; + /** Negates the expression. */ + not?: UserAuthModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `knowledgeTableId` field. */ + knowledgeTableId?: UUIDFilter; + /** Filter by the object’s `planTableId` field. */ + planTableId?: UUIDFilter; + /** Filter by the object’s `skillTableId` field. */ + skillTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `promptsTableName` field. */ + promptsTableName?: StringFilter; + /** Filter by the object’s `knowledgeTableName` field. */ + knowledgeTableName?: StringFilter; + /** Filter by the object’s `planTableName` field. */ + planTableName?: StringFilter; + /** Filter by the object’s `skillTableName` field. */ + skillTableName?: StringFilter; + /** Filter by the object’s `hasKnowledge` field. */ + hasKnowledge?: BooleanFilter; + /** Filter by the object’s `hasPlans` field. */ + hasPlans?: BooleanFilter; + /** Filter by the object’s `hasSkills` field. */ + hasSkills?: BooleanFilter; + /** 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `knowledgeConfig` field. */ + knowledgeConfig?: JSONFilter; + /** Filter by the object’s `skillsConfig` field. */ + skillsConfig?: JSONFilter; + /** Filter by the object’s `knowledgePolicies` field. */ + knowledgePolicies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentModuleFilter[]; + /** Negates the expression. */ + not?: AgentModuleFilter; +} +export interface LimitsModuleFilter { + /** 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 `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 `limitIncrementFunction` field. */ + limitIncrementFunction?: StringFilter; + /** Filter by the object’s `limitDecrementFunction` field. */ + limitDecrementFunction?: StringFilter; + /** Filter by the object’s `limitIncrementTrigger` field. */ + limitIncrementTrigger?: StringFilter; + /** Filter by the object’s `limitDecrementTrigger` field. */ + limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitUpdateTrigger` field. */ + limitUpdateTrigger?: StringFilter; + /** Filter by the object’s `limitCheckFunction` field. */ + limitCheckFunction?: StringFilter; + /** Filter by the object’s `limitCreditsTableId` field. */ + limitCreditsTableId?: UUIDFilter; + /** Filter by the object’s `eventsTableId` field. */ + eventsTableId?: UUIDFilter; + /** Filter by the object’s `creditCodesTableId` field. */ + creditCodesTableId?: UUIDFilter; + /** Filter by the object’s `creditCodeItemsTableId` field. */ + creditCodeItemsTableId?: UUIDFilter; + /** Filter by the object’s `creditRedemptionsTableId` field. */ + creditRedemptionsTableId?: UUIDFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsTableId` field. */ + limitCapsTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsDefaultsTableId` field. */ + limitCapsDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `capCheckTrigger` field. */ + capCheckTrigger?: 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; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: LimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 `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 `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 StorageModuleFilter { + /** 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 `bucketsTableId` field. */ + bucketsTableId?: UUIDFilter; + /** Filter by the object’s `filesTableId` field. */ + filesTableId?: UUIDFilter; + /** Filter by the object’s `bucketsTableName` field. */ + bucketsTableName?: StringFilter; + /** Filter by the object’s `filesTableName` field. */ + filesTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `endpoint` field. */ + endpoint?: StringFilter; + /** Filter by the object’s `publicUrlPrefix` field. */ + publicUrlPrefix?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; + /** Filter by the object’s `hasPathShares` field. */ + hasPathShares?: BooleanFilter; + /** Filter by the object’s `pathSharesTableId` field. */ + pathSharesTableId?: UUIDFilter; + /** Filter by the object’s `uploadUrlExpirySeconds` field. */ + uploadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `downloadUrlExpirySeconds` field. */ + downloadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `defaultMaxFileSize` field. */ + defaultMaxFileSize?: BigIntFilter; + /** Filter by the object’s `maxFilenameLength` field. */ + maxFilenameLength?: IntFilter; + /** Filter by the object’s `cacheTtlSeconds` field. */ + cacheTtlSeconds?: IntFilter; + /** Filter by the object’s `maxBulkFiles` field. */ + maxBulkFiles?: IntFilter; + /** Filter by the object’s `maxBulkTotalSize` field. */ + maxBulkTotalSize?: BigIntFilter; + /** Filter by the object’s `hasVersioning` field. */ + hasVersioning?: BooleanFilter; + /** Filter by the object’s `hasContentHash` field. */ + hasContentHash?: BooleanFilter; + /** Filter by the object’s `hasCustomKeys` field. */ + hasCustomKeys?: BooleanFilter; + /** Filter by the object’s `hasAuditLog` field. */ + hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; + /** Filter by the object’s `fileEventsTableId` field. */ + fileEventsTableId?: 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?: StorageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageModuleFilter[]; + /** Negates the expression. */ + not?: StorageModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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; + /** Filter by the object’s `removeEvent` field. */ + removeEvent?: StringFilter; + /** Filter by the object’s `tgEvent` field. */ + tgEvent?: StringFilter; + /** Filter by the object’s `tgEventToggle` field. */ + tgEventToggle?: StringFilter; + /** Filter by the object’s `tgEventToggleBool` field. */ + tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgEventBool` field. */ + tgEventBool?: StringFilter; + /** Filter by the object’s `upsertAggregate` field. */ + 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. */ + levelAchieved?: StringFilter; + /** Filter by the object’s `tgCheckAchievements` field. */ + tgCheckAchievements?: StringFilter; + /** Filter by the object’s `grantAchievement` field. */ + grantAchievement?: StringFilter; + /** Filter by the object’s `tgAchievementReward` field. */ + tgAchievementReward?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EventsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EventsModuleFilter[]; + /** Negates the expression. */ + not?: EventsModuleFilter; +} +export interface EntityTypeProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + 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 `outRequirementsTableId` field. */ + outRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outConfigRequirementsTableId` field. */ + outConfigRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} +// ============ OrderBy Types ============ +export type DefaultIdsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type MembershipTypesModuleOrderBy = + | '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 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' + | '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'; +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' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +export type I18NModuleOrderBy = + | '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' + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type UserCredentialsModuleOrderBy = + | '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 UserSettingsModuleOrderBy = + | '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' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC'; +export type ConfigSecretsUserModuleOrderBy = + | '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' + | '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 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' + | '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 ConnectedAccountsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 EmailsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 PhoneNumbersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 RateLimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' + | 'IP_RATE_LIMITS_TABLE_ID_ASC' + | 'IP_RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMITS_TABLE_ID_ASC' + | 'RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_DESC' + | 'IP_RATE_LIMITS_TABLE_ASC' + | 'IP_RATE_LIMITS_TABLE_DESC' + | 'RATE_LIMITS_TABLE_ASC' + | 'RATE_LIMITS_TABLE_DESC'; +export type UsersModuleOrderBy = + | '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' + | 'TYPE_TABLE_ID_ASC' + | 'TYPE_TABLE_ID_DESC' + | 'TYPE_TABLE_NAME_ASC' + | 'TYPE_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type WebauthnCredentialsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 CryptoAddressesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type DenormalizedTableFieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'SET_IDS_ASC' + | 'SET_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'REF_IDS_ASC' + | 'REF_IDS_DESC' + | 'USE_UPDATES_ASC' + | 'USE_UPDATES_DESC' + | 'UPDATE_DEFAULTS_ASC' + | 'UPDATE_DEFAULTS_DESC' + | 'FUNC_NAME_ASC' + | 'FUNC_NAME_DESC' + | 'FUNC_ORDER_ASC' + | 'FUNC_ORDER_DESC'; +export type RlsModuleOrderBy = + | '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' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'AUTHENTICATE_ASC' + | 'AUTHENTICATE_DESC' + | 'AUTHENTICATE_STRICT_ASC' + | 'AUTHENTICATE_STRICT_DESC' + | 'CURRENT_ROLE_ASC' + | 'CURRENT_ROLE_DESC' + | 'CURRENT_ROLE_ID_ASC' + | 'CURRENT_ROLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type BlueprintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type BlueprintTemplateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'CATEGORIES_ASC' + | 'CATEGORIES_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DEFINITION_SCHEMA_VERSION_ASC' + | 'DEFINITION_SCHEMA_VERSION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'COMPLEXITY_ASC' + | 'COMPLEXITY_DESC' + | 'COPY_COUNT_ASC' + | 'COPY_COUNT_DESC' + | 'FORK_COUNT_ASC' + | 'FORK_COUNT_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type BlueprintConstructionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'BLUEPRINT_ID_ASC' + | 'BLUEPRINT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_DETAILS_ASC' + | 'ERROR_DETAILS_DESC' + | 'TABLE_MAP_ASC' + | 'TABLE_MAP_DESC' + | 'CONSTRUCTED_DEFINITION_ASC' + | 'CONSTRUCTED_DEFINITION_DESC' + | 'CONSTRUCTED_AT_ASC' + | 'CONSTRUCTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAuthModuleOrderBy = + | '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' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'ADDRESSES_TABLE_ID_ASC' + | 'ADDRESSES_TABLE_ID_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_DESC' + | 'SIGN_IN_RECORD_FAILURE_ASC' + | 'SIGN_IN_RECORD_FAILURE_DESC' + | 'SIGN_UP_WITH_KEY_ASC' + | 'SIGN_UP_WITH_KEY_DESC' + | 'SIGN_IN_WITH_CHALLENGE_ASC' + | 'SIGN_IN_WITH_CHALLENGE_DESC'; +export type RateLimitMetersModuleOrderBy = + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type SessionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUTH_SETTINGS_TABLE_ID_ASC' + | 'AUTH_SETTINGS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_DEFAULT_EXPIRATION_ASC' + | 'SESSIONS_DEFAULT_EXPIRATION_DESC' + | 'SESSIONS_TABLE_ASC' + | 'SESSIONS_TABLE_DESC' + | 'SESSION_CREDENTIALS_TABLE_ASC' + | 'SESSION_CREDENTIALS_TABLE_DESC' + | 'AUTH_SETTINGS_TABLE_ASC' + | 'AUTH_SETTINGS_TABLE_DESC'; +export type MerkleStoreModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +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' + | 'EXECUTIONS_TABLE_ID_ASC' + | 'EXECUTIONS_TABLE_ID_DESC' + | 'OUTPUTS_TABLE_ID_ASC' + | 'OUTPUTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type SecureTableProvisionOrderBy = + | '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' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +export type ConfigSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | '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'; +export type InvitesModuleOrderBy = + | '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' + | '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'; +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'; +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 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'; +export type NamespaceModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type StorageLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | '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' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type NotificationsModuleOrderBy = + | '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' + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type PlansModuleOrderBy = + | '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' + | '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'; +export type HierarchyModuleOrderBy = + | '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' + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type BillingModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | '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' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +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'; +export type ProfilesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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'; +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' + | '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 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 FunctionModuleOrderBy = + | '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' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'REQUIREMENTS_TABLE_ID_ASC' + | 'REQUIREMENTS_TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'REQUIREMENTS_TABLE_NAME_ASC' + | 'REQUIREMENTS_TABLE_NAME_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +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'; +export type AgentModuleOrderBy = + | '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' + | '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' + | 'KNOWLEDGE_TABLE_ID_ASC' + | 'KNOWLEDGE_TABLE_ID_DESC' + | 'PLAN_TABLE_ID_ASC' + | 'PLAN_TABLE_ID_DESC' + | 'SKILL_TABLE_ID_ASC' + | 'SKILL_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' + | 'KNOWLEDGE_TABLE_NAME_ASC' + | 'KNOWLEDGE_TABLE_NAME_DESC' + | 'PLAN_TABLE_NAME_ASC' + | 'PLAN_TABLE_NAME_DESC' + | 'SKILL_TABLE_NAME_ASC' + | 'SKILL_TABLE_NAME_DESC' + | 'HAS_KNOWLEDGE_ASC' + | 'HAS_KNOWLEDGE_DESC' + | 'HAS_PLANS_ASC' + | 'HAS_PLANS_DESC' + | 'HAS_SKILLS_ASC' + | 'HAS_SKILLS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'KNOWLEDGE_CONFIG_ASC' + | 'KNOWLEDGE_CONFIG_DESC' + | 'SKILLS_CONFIG_ASC' + | 'SKILLS_CONFIG_DESC' + | 'KNOWLEDGE_POLICIES_ASC' + | 'KNOWLEDGE_POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type LimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type StorageModuleOrderBy = + | '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' + | 'BUCKETS_TABLE_ID_ASC' + | 'BUCKETS_TABLE_ID_DESC' + | 'FILES_TABLE_ID_ASC' + | 'FILES_TABLE_ID_DESC' + | 'BUCKETS_TABLE_NAME_ASC' + | 'BUCKETS_TABLE_NAME_DESC' + | 'FILES_TABLE_NAME_ASC' + | 'FILES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENDPOINT_ASC' + | 'ENDPOINT_DESC' + | 'PUBLIC_URL_PREFIX_ASC' + | 'PUBLIC_URL_PREFIX_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' + | 'HAS_PATH_SHARES_ASC' + | 'HAS_PATH_SHARES_DESC' + | 'PATH_SHARES_TABLE_ID_ASC' + | 'PATH_SHARES_TABLE_ID_DESC' + | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' + | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DEFAULT_MAX_FILE_SIZE_ASC' + | 'DEFAULT_MAX_FILE_SIZE_DESC' + | 'MAX_FILENAME_LENGTH_ASC' + | 'MAX_FILENAME_LENGTH_DESC' + | 'CACHE_TTL_SECONDS_ASC' + | 'CACHE_TTL_SECONDS_DESC' + | 'MAX_BULK_FILES_ASC' + | 'MAX_BULK_FILES_DESC' + | 'MAX_BULK_TOTAL_SIZE_ASC' + | 'MAX_BULK_TOTAL_SIZE_DESC' + | 'HAS_VERSIONING_ASC' + | 'HAS_VERSIONING_DESC' + | 'HAS_CONTENT_HASH_ASC' + | 'HAS_CONTENT_HASH_DESC' + | 'HAS_CUSTOM_KEYS_ASC' + | 'HAS_CUSTOM_KEYS_DESC' + | 'HAS_AUDIT_LOG_ASC' + | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' + | 'FILE_EVENTS_TABLE_ID_ASC' + | 'FILE_EVENTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type EventsModuleOrderBy = + | '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' + | 'EVENTS_TABLE_ID_ASC' + | 'EVENTS_TABLE_ID_DESC' + | 'EVENTS_TABLE_NAME_ASC' + | 'EVENTS_TABLE_NAME_DESC' + | 'EVENT_AGGREGATES_TABLE_ID_ASC' + | 'EVENT_AGGREGATES_TABLE_ID_DESC' + | 'EVENT_AGGREGATES_TABLE_NAME_ASC' + | 'EVENT_AGGREGATES_TABLE_NAME_DESC' + | 'EVENT_TYPES_TABLE_ID_ASC' + | 'EVENT_TYPES_TABLE_ID_DESC' + | 'EVENT_TYPES_TABLE_NAME_ASC' + | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'LEVELS_TABLE_ID_ASC' + | 'LEVELS_TABLE_ID_DESC' + | 'LEVELS_TABLE_NAME_ASC' + | 'LEVELS_TABLE_NAME_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' + | 'LEVEL_GRANTS_TABLE_ID_ASC' + | 'LEVEL_GRANTS_TABLE_ID_DESC' + | 'LEVEL_GRANTS_TABLE_NAME_ASC' + | 'LEVEL_GRANTS_TABLE_NAME_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' + | 'RECORD_EVENT_ASC' + | 'RECORD_EVENT_DESC' + | 'REMOVE_EVENT_ASC' + | 'REMOVE_EVENT_DESC' + | 'TG_EVENT_ASC' + | 'TG_EVENT_DESC' + | 'TG_EVENT_TOGGLE_ASC' + | 'TG_EVENT_TOGGLE_DESC' + | 'TG_EVENT_TOGGLE_BOOL_ASC' + | 'TG_EVENT_TOGGLE_BOOL_DESC' + | 'TG_EVENT_BOOL_ASC' + | 'TG_EVENT_BOOL_DESC' + | 'UPSERT_AGGREGATE_ASC' + | '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' + | 'LEVEL_ACHIEVED_DESC' + | 'TG_CHECK_ACHIEVEMENTS_ASC' + | 'TG_CHECK_ACHIEVEMENTS_DESC' + | 'GRANT_ACHIEVEMENT_ASC' + | 'GRANT_ACHIEVEMENT_DESC' + | 'TG_ACHIEVEMENT_REWARD_ASC' + | 'TG_ACHIEVEMENT_REWARD_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_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'; +export type EntityTypeProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | '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_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateDefaultIdsModuleInput { + clientMutationId?: string; + defaultIdsModule: { + databaseId: string; + }; +} +export interface DefaultIdsModulePatch { + databaseId?: string | null; +} +export interface UpdateDefaultIdsModuleInput { + clientMutationId?: string; + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; +} +export interface DeleteDefaultIdsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + membershipTypesModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface MembershipTypesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; +} +export interface DeleteMembershipTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface 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 { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + sessionsTableId?: string | null; +} +export interface UpdateSessionSecretsModuleInput { + clientMutationId?: string; + id: string; + sessionSecretsModulePatch: SessionSecretsModulePatch; +} +export interface DeleteSessionSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateI18NModuleInput { + clientMutationId?: string; + i18NModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface I18NModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + settingsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateI18NModuleInput { + clientMutationId?: string; + id: string; + i18NModulePatch: I18NModulePatch; +} +export interface DeleteI18NModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserCredentialsModuleInput { + clientMutationId?: string; + userCredentialsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface UserCredentialsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUserCredentialsModuleInput { + clientMutationId?: string; + id: string; + userCredentialsModulePatch: UserCredentialsModulePatch; +} +export interface DeleteUserCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserSettingsModuleInput { + clientMutationId?: string; + userSettingsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + }; +} +export interface UserSettingsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; +} +export interface UpdateUserSettingsModuleInput { + clientMutationId?: string; + id: string; + userSettingsModulePatch: UserSettingsModulePatch; +} +export interface DeleteUserSettingsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConfigSecretsUserModuleInput { + clientMutationId?: string; + configSecretsUserModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsUserModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + configDefinitionsTableId?: 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 CreateIdentityProvidersModuleInput { + clientMutationId?: string; + identityProvidersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountsModuleInput { + clientMutationId?: string; + connectedAccountsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConnectedAccountsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; +} +export interface DeleteConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailsModuleInput { + clientMutationId?: string; + emailsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface EmailsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateEmailsModuleInput { + clientMutationId?: string; + id: string; + emailsModulePatch: EmailsModulePatch; +} +export interface DeleteEmailsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePhoneNumbersModuleInput { + clientMutationId?: string; + phoneNumbersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface PhoneNumbersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdatePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; +} +export interface DeletePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRateLimitsModuleInput { + clientMutationId?: string; + rateLimitsModule: { + databaseId: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; + }; +} +export interface RateLimitsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +export interface UpdateRateLimitsModuleInput { + clientMutationId?: string; + id: string; + rateLimitsModulePatch: RateLimitsModulePatch; +} +export interface DeleteRateLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUsersModuleInput { + clientMutationId?: string; + usersModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface UsersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUsersModuleInput { + clientMutationId?: string; + id: string; + usersModulePatch: UsersModulePatch; +} +export interface DeleteUsersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnCredentialsModuleInput { + clientMutationId?: string; + webauthnCredentialsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface WebauthnCredentialsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; + webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; +} +export interface DeleteWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAddressesModuleInput { + clientMutationId?: string; + cryptoAddressesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface CryptoAddressesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; +} +export interface DeleteCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDenormalizedTableFieldInput { + clientMutationId?: string; + denormalizedTableField: { + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; + }; +} +export interface DenormalizedTableFieldPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface UpdateDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; +} +export interface DeleteDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RlsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRlsModuleInput { + clientMutationId?: string; + id: string; + rlsModulePatch: RlsModulePatch; +} +export interface DeleteRlsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintInput { + clientMutationId?: string; + blueprint: { + ownerId: string; + databaseId: string; + name: string; + displayName: string; + description?: string; + definition: Record; + templateId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintPatch { + ownerId?: string | null; + databaseId?: string | null; + name?: string | null; + displayName?: string | null; + description?: string | null; + definition?: Record | null; + templateId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintInput { + clientMutationId?: string; + id: string; + blueprintPatch: BlueprintPatch; +} +export interface DeleteBlueprintInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + blueprintTemplate: { + name: string; + version?: string; + displayName: string; + description?: string; + ownerId: string; + visibility?: string; + categories?: string[]; + tags?: string[]; + definition: Record; + definitionSchemaVersion?: string; + source?: string; + complexity?: string; + copyCount?: number; + forkCount?: number; + forkedFromId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintTemplatePatch { + name?: string | null; + version?: string | null; + displayName?: string | null; + description?: string | null; + ownerId?: string | null; + visibility?: string | null; + categories?: string[] | null; + tags?: string[] | null; + definition?: Record | null; + definitionSchemaVersion?: string | null; + source?: string | null; + complexity?: string | null; + copyCount?: number | null; + forkCount?: number | null; + forkedFromId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintTemplateInput { + clientMutationId?: string; + id: string; + blueprintTemplatePatch: BlueprintTemplatePatch; +} +export interface DeleteBlueprintTemplateInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintConstructionInput { + clientMutationId?: string; + blueprintConstruction: { + blueprintId: string; + databaseId: string; + schemaId?: string; + status?: string; + errorDetails?: string; + tableMap?: Record; + constructedDefinition?: Record; + constructedAt?: string; + }; +} +export interface BlueprintConstructionPatch { + blueprintId?: string | null; + databaseId?: string | null; + schemaId?: string | null; + status?: string | null; + errorDetails?: string | null; + tableMap?: Record | null; + constructedDefinition?: Record | null; + constructedAt?: string | null; +} +export interface UpdateBlueprintConstructionInput { + clientMutationId?: string; + id: string; + blueprintConstructionPatch: BlueprintConstructionPatch; +} +export interface DeleteBlueprintConstructionInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAuthModuleInput { + clientMutationId?: string; + cryptoAuthModule: { + 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; + }; +} +export interface CryptoAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface UpdateCryptoAuthModuleInput { + clientMutationId?: string; + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; +} +export interface DeleteCryptoAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRateLimitMetersModuleInput { + clientMutationId?: string; + rateLimitMetersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RateLimitMetersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; + rateLimitMetersModulePatch: RateLimitMetersModulePatch; +} +export interface DeleteRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSessionsModuleInput { + clientMutationId?: string; + sessionsModule: { + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; + }; +} +export interface SessionsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: IntervalInput | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface UpdateSessionsModuleInput { + clientMutationId?: string; + id: string; + sessionsModulePatch: SessionsModulePatch; +} +export interface DeleteSessionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMerkleStoreModuleInput { + clientMutationId?: string; + merkleStoreModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + }; +} +export interface MerkleStoreModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; +} +export interface UpdateMerkleStoreModuleInput { + clientMutationId?: string; + id: string; + merkleStoreModulePatch: MerkleStoreModulePatch; +} +export interface DeleteMerkleStoreModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateGraphModuleInput { + clientMutationId?: string; + graphModule: { + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface GraphModulePatch { + databaseId?: string | null; + publicSchemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + scope?: string | null; + prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; + executionsTableId?: string | null; + outputsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateGraphModuleInput { + clientMutationId?: string; + id: string; + graphModulePatch: GraphModulePatch; +} +export interface DeleteGraphModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodes?: Record; + useRls?: boolean; + fields?: Record[]; + grants?: Record; + policies?: Record; + outFields?: string[]; + }; +} +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 CreateConfigSecretsModuleInput { + clientMutationId?: string; + configSecretsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + hasConfig?: boolean; + }; +} +export interface ConfigSecretsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface UpdateConfigSecretsModuleInput { + clientMutationId?: string; + id: string; + configSecretsModulePatch: ConfigSecretsModulePatch; +} +export interface DeleteConfigSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + invitesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface InvitesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + invitesModulePatch: InvitesModulePatch; +} +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseProvisionModuleInput { + 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; + }; +} +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; + databaseId?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; +} +export interface DeleteDatabaseProvisionModuleInput { + 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; + 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 UpdateRealtimeModuleInput { + clientMutationId?: string; + id: string; + realtimeModulePatch: RealtimeModulePatch; +} +export interface DeleteRealtimeModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnAuthModuleInput { + clientMutationId?: string; + webauthnAuthModule: { + 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; + }; +} +export interface WebauthnAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + authSettingsTableId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpiry?: IntervalInput | null; +} +export interface UpdateWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; + webauthnAuthModulePatch: WebauthnAuthModulePatch; +} +export interface DeleteWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceModuleInput { + clientMutationId?: string; + namespaceModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface NamespaceModulePatch { + 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; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateNamespaceModuleInput { + clientMutationId?: string; + id: string; + namespaceModulePatch: NamespaceModulePatch; +} +export interface DeleteNamespaceModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + computeLogModulePatch: ComputeLogModulePatch; +} +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + storageLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface StorageLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + storageLogModulePatch: StorageLogModulePatch; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + dbUsageModulePatch: DbUsageModulePatch; +} +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNotificationsModuleInput { + clientMutationId?: string; + notificationsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: string; + privateApiName?: string; + }; +} +export interface NotificationsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateNotificationsModuleInput { + clientMutationId?: string; + id: string; + notificationsModulePatch: NotificationsModulePatch; +} +export interface DeleteNotificationsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlansModuleInput { + clientMutationId?: string; + plansModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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 PlansModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 UpdatePlansModuleInput { + clientMutationId?: string; + id: string; + plansModulePatch: PlansModulePatch; +} +export interface DeletePlansModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateHierarchyModuleInput { + clientMutationId?: string; + hierarchyModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + }; +} +export interface HierarchyModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + hierarchyModulePatch: HierarchyModulePatch; +} +export interface DeleteHierarchyModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingModuleInput { + clientMutationId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + billingModulePatch: BillingModulePatch; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingProviderModuleInput { + clientMutationId?: string; + billingProviderModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingProviderModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingProviderModuleInput { + clientMutationId?: string; + id: string; + billingProviderModulePatch: BillingProviderModulePatch; +} +export interface DeleteBillingProviderModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateProfilesModuleInput { + clientMutationId?: string; + profilesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ProfilesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + profilesModulePatch: ProfilesModulePatch; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + 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 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 CreateFunctionModuleInput { + clientMutationId?: string; + functionModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + secretDefinitionsTableId?: string; + requirementsTableId?: string; + configDefinitionsTableId?: string; + configRequirementsTableId?: string; + definitionsTableName?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + secretDefinitionsTableName?: string; + requirementsTableName?: string; + configRequirementsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface FunctionModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + secretDefinitionsTableId?: string | null; + requirementsTableId?: string | null; + configDefinitionsTableId?: string | null; + configRequirementsTableId?: string | null; + definitionsTableName?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + secretDefinitionsTableName?: string | null; + requirementsTableName?: string | null; + configRequirementsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateFunctionModuleInput { + clientMutationId?: string; + id: string; + functionModulePatch: FunctionModulePatch; +} +export interface DeleteFunctionModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserAuthModuleInput { + clientMutationId?: string; + userAuthModule: { + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + 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; + }; +} +export interface UserAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInCrossOriginFunction?: string | null; + requestCrossOriginTokenFunction?: string | null; + extendTokenExpires?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + userAuthModulePatch: UserAuthModulePatch; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentModuleInput { + clientMutationId?: string; + agentModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + knowledgeTableId?: string; + planTableId?: string; + skillTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + knowledgeTableName?: string; + planTableName?: string; + skillTableName?: string; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + knowledgeConfig?: Record; + skillsConfig?: Record; + knowledgePolicies?: Record; + provisions?: Record; + }; +} +export interface AgentModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + threadTableId?: string | null; + messageTableId?: string | null; + taskTableId?: string | null; + promptsTableId?: string | null; + knowledgeTableId?: string | null; + planTableId?: string | null; + skillTableId?: string | null; + threadTableName?: string | null; + messageTableName?: string | null; + taskTableName?: string | null; + promptsTableName?: string | null; + knowledgeTableName?: string | null; + planTableName?: string | null; + skillTableName?: string | null; + hasKnowledge?: boolean | null; + hasPlans?: boolean | null; + hasSkills?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + knowledgeConfig?: Record | null; + skillsConfig?: Record | null; + knowledgePolicies?: Record | null; + provisions?: Record | null; +} +export interface UpdateAgentModuleInput { + clientMutationId?: string; + id: string; + agentModulePatch: AgentModulePatch; +} +export interface DeleteAgentModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateLimitsModuleInput { + clientMutationId?: string; + limitsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface LimitsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + limitCreditsTableId?: string | null; + eventsTableId?: string | null; + creditCodesTableId?: string | null; + creditCodeItemsTableId?: string | null; + creditRedemptionsTableId?: string | null; + aggregateTableId?: string | null; + limitCapsTableId?: string | null; + limitCapsDefaultsTableId?: string | null; + capCheckTrigger?: string | null; + resolveCapFunction?: string | null; + limitWarningsTableId?: string | null; + limitWarningStateTableId?: string | null; + limitCheckSoftFunction?: string | null; + limitAggregateCheckSoftFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateLimitsModuleInput { + clientMutationId?: string; + id: string; + limitsModulePatch: LimitsModulePatch; +} +export interface DeleteLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + membershipsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + apiName?: string; + privateApiName?: string; + }; +} +export interface MembershipsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + membershipsModulePatch: MembershipsModulePatch; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageModuleInput { + clientMutationId?: string; + storageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + policies?: Record; + provisions?: Record; + 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; + apiName?: string; + privateApiName?: string; + }; +} +export interface StorageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: IntervalInput | null; + fileEventsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateStorageModuleInput { + clientMutationId?: string; + id: string; + storageModulePatch: StorageModulePatch; +} +export interface DeleteStorageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEventsModuleInput { + clientMutationId?: string; + eventsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface EventsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateEventsModuleInput { + clientMutationId?: string; + id: string; + eventsModulePatch: EventsModulePatch; +} +export interface DeleteEventsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEntityTypeProvisionInput { + clientMutationId?: string; + entityTypeProvision: { + databaseId: string; + name: string; + prefix: string; + description?: string; + parentEntity?: string; + tableName?: string; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: Record; + namespaces?: Record; + functions?: Record; + graphs?: Record; + agents?: Record; + skipEntityPolicies?: boolean; + tableProvision?: Record; + outMembershipType?: number; + outEntityTableId?: string; + outEntityTableName?: string; + outInstalledModules?: string[]; + outStorageModuleId?: string; + outBucketsTableId?: string; + outFilesTableId?: string; + outPathSharesTableId?: string; + outInvitesModuleId?: string; + outNamespaceModuleId?: string; + outNamespacesTableId?: string; + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outRequirementsTableId?: string; + outConfigRequirementsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; + }; +} +export interface EntityTypeProvisionPatch { + databaseId?: string | null; + name?: string | null; + prefix?: string | null; + description?: string | null; + parentEntity?: string | null; + tableName?: string | null; + isVisible?: boolean | null; + hasLimits?: boolean | null; + hasProfiles?: boolean | null; + hasLevels?: boolean | null; + hasInvites?: boolean | null; + hasInviteAchievements?: boolean | null; + storage?: Record | null; + namespaces?: Record | null; + functions?: Record | null; + graphs?: Record | null; + agents?: Record | null; + skipEntityPolicies?: boolean | null; + tableProvision?: Record | null; + outMembershipType?: number | null; + outEntityTableId?: string | null; + outEntityTableName?: string | null; + outInstalledModules?: string[] | null; + outStorageModuleId?: string | null; + outBucketsTableId?: string | null; + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + outInvitesModuleId?: string | null; + outNamespaceModuleId?: string | null; + outNamespacesTableId?: string | null; + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outRequirementsTableId?: string | null; + outConfigRequirementsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: string | null; +} +export interface UpdateEntityTypeProvisionInput { + clientMutationId?: string; + id: string; + entityTypeProvisionPatch: EntityTypeProvisionPatch; +} +export interface DeleteEntityTypeProvisionInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Blueprint: { + blueprintConstructions: 'BlueprintConstruction', + }, + BlueprintTemplate: { + blueprintTemplatesByForkedFromId: 'BlueprintTemplate', + blueprintsByTemplateId: 'Blueprint', + }, + MerkleStoreModule: { + graphModules: 'GraphModule', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ConstructBlueprintInput { + clientMutationId?: string; + blueprintId?: string; + schemaId?: string; +} +export interface ProvisionFullTextSearchInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionIndexInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionCheckConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionUniqueConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} +export interface ProvisionSpatialRelationInput { + clientMutationId?: string; + pDatabaseId?: string; + pSourceTableId?: string; + pSourceFieldId?: string; + pTargetTableId?: string; + pTargetFieldId?: string; + pName?: string; + pOperator?: string; + pParamName?: string; +} +export interface ProvisionTableInput { + clientMutationId?: string; + databaseId?: string; + schemaId?: string; + tableName?: string; + tableId?: string; + nodes?: Record; + fields?: Record; + policies?: Record; + grants?: Record; + useRls?: boolean; + indexes?: Record; + fullTextSearches?: Record; + uniqueConstraints?: Record; + description?: string; +} +export interface ProvisionRelationInput { + clientMutationId?: string; + databaseId?: string; + relationType?: string; + sourceTableId?: string; + targetTableId?: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + createIndex?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; +} +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintToManyBlueprintConstructionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintConstructionFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintConstructionFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintConstructionFilter; +} +/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintTemplateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintTemplateFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintTemplateFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintTemplateFilter; +} +/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintFilter; +} +/** 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; +} +/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +export interface 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 filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ +export interface JSONListFilter { + /** 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[]; + /** 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 list of values. */ + contains?: Record[]; + /** Contained by the specified list of values. */ + containedBy?: Record[]; + /** Overlaps the specified list of values. */ + overlaps?: Record[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: Record; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: Record; + /** Any array item is less than the specified value. */ + anyLessThan?: Record; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: Record; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: Record; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: Record; +} +/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; + /** Filter by the object’s `blueprintConstructions` relation. */ + blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; + /** `blueprintConstructions` exist. */ + blueprintConstructionsExist?: boolean; +} +/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: GraphModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: GraphModuleFilter[]; + /** Negates the expression. */ + not?: GraphModuleFilter; + /** 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). */ + 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface ConstructBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ConstructBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionFullTextSearchPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionIndexPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionIndexPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionCheckConstraintPayload { + clientMutationId?: string | null; +} +export type ProvisionCheckConstraintPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ProvisionUniqueConstraintPayload { + clientMutationId?: string | null; +} +export type ProvisionUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; +}; +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyTemplateToBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionSpatialRelationPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionTablePayload { + clientMutationId?: string | null; + result?: ProvisionTableRecord[] | null; +} +export type ProvisionTablePayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ProvisionTableRecordSelect; + }; +}; +export interface ProvisionRelationPayload { + clientMutationId?: string | null; + result?: ProvisionRelationRecord[] | null; +} +export type ProvisionRelationPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ProvisionRelationRecordSelect; + }; +}; +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 CreateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was created by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type CreateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was updated by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type UpdateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was deleted by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type DeleteDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was created by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type CreateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was updated by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type UpdateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was deleted by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type DeleteMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was created by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type CreateUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +export interface UpdateUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was updated by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type UpdateUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +export interface DeleteUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was deleted by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type DeleteUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +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 CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface 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 CreateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was created by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type CreateUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +export interface UpdateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was updated by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type UpdateUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +export interface DeleteUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was deleted by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type DeleteUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +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 CreateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type CreateConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type UpdateConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type DeleteConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type CreateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type UpdateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type DeleteIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type CreateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type UpdateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type DeleteConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type CreateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type UpdateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type DeleteEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type CreatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type UpdatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type DeletePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface CreateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type CreateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface 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 UpdateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type UpdateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface DeleteUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type DeleteUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface CreateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was created by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type CreateWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was updated by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type UpdateWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type DeleteWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface CreateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type CreateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type UpdateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type DeleteCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type CreateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type UpdateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type DeleteDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type CreateRlsModulePayloadSelect = { + clientMutationId?: boolean; + 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; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type UpdateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type DeleteBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface CreateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type CreateBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface UpdateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type UpdateBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface DeleteBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type DeleteBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface CreateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was created by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type CreateBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface UpdateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was updated by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type UpdateBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface DeleteBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was deleted by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type DeleteBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type CreateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type UpdateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type DeleteCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +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 CreateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type CreateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type UpdateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type DeleteSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface CreateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was created by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type CreateMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +export interface UpdateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was updated by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type UpdateMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +export interface DeleteMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was deleted by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type DeleteMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +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 DeleteGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type CreateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type UpdateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type DeleteSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface CreateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type CreateConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type UpdateConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type DeleteConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type CreateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type UpdateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type DeleteDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +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 { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type CreateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type UpdateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type DeleteWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +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 CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type CreateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type UpdateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type DeleteComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type CreateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type UpdateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type DeleteStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type CreateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type UpdateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type DeleteTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type UpdateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type DeleteDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface CreateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type CreateNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +export interface UpdateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type UpdateNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +export interface DeleteNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type DeleteNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +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 CreateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was created by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type CreateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was updated by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type UpdateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was deleted by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type DeleteHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface CreateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type CreateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type UpdateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface DeleteBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type DeleteBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface CreateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type CreateBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface UpdateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type UpdateBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface DeleteBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type DeleteBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type CreateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was updated by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type UpdateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was deleted by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type DeleteProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +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 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 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 CreateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was created by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type CreateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + 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 CreateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was created by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type CreateAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface UpdateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was updated by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type UpdateAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface DeleteAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was deleted by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type DeleteAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type CreateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was updated by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type UpdateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was deleted by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type DeleteLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + 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 CreateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was created by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type CreateStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface UpdateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was updated by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type UpdateStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface DeleteStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was deleted by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type DeleteStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface CreateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was created by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type CreateEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface UpdateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was updated by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type UpdateEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface DeleteEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was deleted by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type DeleteEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type CreateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type UpdateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type DeleteEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface ProvisionTableRecord { + outTableId?: string | null; + outFields?: string[] | null; +} +export type ProvisionTableRecordSelect = { + outTableId?: boolean; + outFields?: boolean; +}; +export interface ProvisionRelationRecord { + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export type ProvisionRelationRecordSelect = { + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; +/** A `DefaultIdsModule` edge in the connection. */ +export interface DefaultIdsModuleEdge { + cursor?: string | null; + /** The `DefaultIdsModule` at the end of the edge. */ + node?: DefaultIdsModule | null; +} +export type DefaultIdsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultIdsModuleSelect; + }; +}; +/** A `MembershipTypesModule` edge in the connection. */ +export interface MembershipTypesModuleEdge { + cursor?: string | null; + /** The `MembershipTypesModule` at the end of the edge. */ + node?: MembershipTypesModule | null; +} +export type MembershipTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `SessionSecretsModule` at the end of the edge. */ + node?: SessionSecretsModule | null; +} +export type SessionSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; +} +export type DevicesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DevicesModuleSelect; + }; +}; +/** A `I18NModule` edge in the connection. */ +export interface I18NModuleEdge { + cursor?: string | null; + /** The `I18NModule` at the end of the edge. */ + node?: I18NModule | null; +} +export type I18NModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `UserSettingsModule` at the end of the edge. */ + node?: UserSettingsModule | null; +} +export type UserSettingsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsModuleSelect; + }; +}; +/** 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 `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 `ConnectedAccountsModule` edge in the connection. */ +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + /** The `ConnectedAccountsModule` at the end of the edge. */ + node?: ConnectedAccountsModule | null; +} +export type ConnectedAccountsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountsModuleSelect; + }; +}; +/** A `EmailsModule` edge in the connection. */ +export interface EmailsModuleEdge { + cursor?: string | null; + /** The `EmailsModule` at the end of the edge. */ + node?: EmailsModule | null; +} +export type EmailsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailsModuleSelect; + }; +}; +/** A `PhoneNumbersModule` edge in the connection. */ +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + /** The `PhoneNumbersModule` at the end of the edge. */ + node?: PhoneNumbersModule | null; +} +export type PhoneNumbersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumbersModuleSelect; + }; +}; +/** A `RateLimitsModule` edge in the connection. */ +export interface RateLimitsModuleEdge { + cursor?: string | null; + /** The `RateLimitsModule` at the end of the edge. */ + node?: RateLimitsModule | null; +} +export type RateLimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitsModuleSelect; + }; +}; +/** A `UsersModule` edge in the connection. */ +export interface UsersModuleEdge { + cursor?: string | null; + /** The `UsersModule` at the end of the edge. */ + node?: UsersModule | null; +} +export type UsersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UsersModuleSelect; + }; +}; +/** A `WebauthnCredentialsModule` edge in the connection. */ +export interface WebauthnCredentialsModuleEdge { + cursor?: string | null; + /** The `WebauthnCredentialsModule` at the end of the edge. */ + node?: WebauthnCredentialsModule | null; +} +export type WebauthnCredentialsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnCredentialsModuleSelect; + }; +}; +/** A `CryptoAddressesModule` edge in the connection. */ +export interface CryptoAddressesModuleEdge { + cursor?: string | null; + /** The `CryptoAddressesModule` at the end of the edge. */ + node?: CryptoAddressesModule | null; +} +export type CryptoAddressesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressesModuleSelect; + }; +}; +/** A `DenormalizedTableField` edge in the connection. */ +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + /** The `DenormalizedTableField` at the end of the edge. */ + node?: DenormalizedTableField | null; +} +export type DenormalizedTableFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DenormalizedTableFieldSelect; + }; +}; +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { + cursor?: string | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; +} +export type RlsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsModuleSelect; + }; +}; +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} +export type BlueprintEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintSelect; + }; +}; +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { + cursor?: string | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; +} +export type BlueprintTemplateEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintTemplateSelect; + }; +}; +/** A `BlueprintConstruction` edge in the connection. */ +export interface BlueprintConstructionEdge { + cursor?: string | null; + /** The `BlueprintConstruction` at the end of the edge. */ + node?: BlueprintConstruction | null; +} +export type BlueprintConstructionEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintConstructionSelect; + }; +}; +/** A `CryptoAuthModule` edge in the connection. */ +export interface CryptoAuthModuleEdge { + cursor?: string | null; + /** The `CryptoAuthModule` at the end of the edge. */ + node?: CryptoAuthModule | null; +} +export type CryptoAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAuthModuleSelect; + }; +}; +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; +} +export type RateLimitMetersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitMetersModuleSelect; + }; +}; +/** A `SessionsModule` edge in the connection. */ +export interface SessionsModuleEdge { + cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ + node?: SessionsModule | null; +} +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +/** 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 `GraphModule` edge in the connection. */ +export interface GraphModuleEdge { + cursor?: string | null; + /** The `GraphModule` at the end of the edge. */ + node?: GraphModule | null; +} +export type GraphModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: GraphModuleSelect; + }; +}; +/** 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 `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | null; +} +export type ConfigSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsModuleSelect; + }; +}; +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; +} +export type DatabaseProvisionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseProvisionModuleSelect; + }; +}; +/** 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: RealtimeModuleSelect; + }; +}; +/** A `WebauthnAuthModule` edge in the connection. */ +export interface WebauthnAuthModuleEdge { + cursor?: string | null; + /** The `WebauthnAuthModule` at the end of the edge. */ + node?: WebauthnAuthModule | null; +} +export type WebauthnAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnAuthModuleSelect; + }; +}; +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { + cursor?: string | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; +} +export type NamespaceModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceModuleSelect; + }; +}; +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +export type ComputeLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ComputeLogModuleSelect; + }; +}; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +export type StorageLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageLogModuleSelect; + }; +}; +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; +} +export type TransferLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TransferLogModuleSelect; + }; +}; +/** A `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 `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { + cursor?: string | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; +} +export type NotificationsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NotificationsModuleSelect; + }; +}; +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; +} +export type PlansModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlansModuleSelect; + }; +}; +/** A `HierarchyModule` edge in the connection. */ +export interface HierarchyModuleEdge { + cursor?: string | null; + /** The `HierarchyModule` at the end of the edge. */ + node?: HierarchyModule | null; +} +export type HierarchyModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: HierarchyModuleSelect; + }; +}; +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { + cursor?: string | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; +} +export type BillingModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: BillingModuleSelect; + }; +}; +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { + cursor?: string | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; +} +export type BillingProviderModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: BillingProviderModuleSelect; + }; +}; +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { + cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; +} +export type ProfilesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ProfilesModuleSelect; + }; +}; +/** 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 `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 `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +export type FunctionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionModuleSelect; + }; +}; +/** A `UserAuthModule` edge in the connection. */ +export interface UserAuthModuleEdge { + cursor?: string | null; + /** The `UserAuthModule` at the end of the edge. */ + node?: UserAuthModule | null; +} +export type UserAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserAuthModuleSelect; + }; +}; +/** A `AgentModule` edge in the connection. */ +export interface AgentModuleEdge { + cursor?: string | null; + /** The `AgentModule` at the end of the edge. */ + node?: AgentModule | null; +} +export type AgentModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentModuleSelect; + }; +}; +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { + cursor?: string | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; +} +export type LimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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 `StorageModule` edge in the connection. */ +export interface StorageModuleEdge { + cursor?: string | null; + /** The `StorageModule` at the end of the edge. */ + node?: StorageModule | null; +} +export type StorageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageModuleSelect; + }; +}; +/** A `EventsModule` edge in the connection. */ +export interface EventsModuleEdge { + cursor?: string | null; + /** The `EventsModule` at the end of the edge. */ + node?: EventsModule | null; +} +export type EventsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EventsModuleSelect; + }; +}; +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | null; +} +export type EntityTypeProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: EntityTypeProvisionSelect; + }; +}; diff --git a/sdk/constructive-react/src/public/orm/models/agentModule.ts b/sdk/constructive-react/src/modules/orm/models/agentModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/agentModule.ts rename to sdk/constructive-react/src/modules/orm/models/agentModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/billingModule.ts b/sdk/constructive-react/src/modules/orm/models/billingModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/billingModule.ts rename to sdk/constructive-react/src/modules/orm/models/billingModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/billingProviderModule.ts b/sdk/constructive-react/src/modules/orm/models/billingProviderModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/billingProviderModule.ts rename to sdk/constructive-react/src/modules/orm/models/billingProviderModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/blueprint.ts b/sdk/constructive-react/src/modules/orm/models/blueprint.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/blueprint.ts rename to sdk/constructive-react/src/modules/orm/models/blueprint.ts diff --git a/sdk/constructive-react/src/public/orm/models/blueprintConstruction.ts b/sdk/constructive-react/src/modules/orm/models/blueprintConstruction.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/blueprintConstruction.ts rename to sdk/constructive-react/src/modules/orm/models/blueprintConstruction.ts diff --git a/sdk/constructive-react/src/public/orm/models/blueprintTemplate.ts b/sdk/constructive-react/src/modules/orm/models/blueprintTemplate.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/blueprintTemplate.ts rename to sdk/constructive-react/src/modules/orm/models/blueprintTemplate.ts diff --git a/sdk/constructive-react/src/public/orm/models/computeLogModule.ts b/sdk/constructive-react/src/modules/orm/models/computeLogModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/computeLogModule.ts rename to sdk/constructive-react/src/modules/orm/models/computeLogModule.ts diff --git a/sdk/constructive-react/src/modules/orm/models/configSecretsModule.ts b/sdk/constructive-react/src/modules/orm/models/configSecretsModule.ts new file mode 100644 index 0000000000..5d482c9ccf --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/configSecretsModule.ts @@ -0,0 +1,244 @@ +/** + * ConfigSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsModule, + ConfigSecretsModuleWithRelations, + ConfigSecretsModuleSelect, + ConfigSecretsModuleFilter, + ConfigSecretsModuleOrderBy, + CreateConfigSecretsModuleInput, + UpdateConfigSecretsModuleInput, + ConfigSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModule', + document, + variables, + transform: (data: { + configSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModule', + document, + variables, + transform: (data: { + configSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsModule', + 'createConfigSecretsModule', + 'configSecretsModule', + args.select, + args.data, + 'CreateConfigSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'createConfigSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsModule', + 'updateConfigSecretsModule', + 'configSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsModuleInput', + 'id', + 'configSecretsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'updateConfigSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsModule', + 'deleteConfigSecretsModule', + 'configSecretsModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'deleteConfigSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-react/src/modules/orm/models/configSecretsOrgModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts rename to sdk/constructive-react/src/modules/orm/models/configSecretsOrgModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-react/src/modules/orm/models/configSecretsUserModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts rename to sdk/constructive-react/src/modules/orm/models/configSecretsUserModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/connectedAccountsModule.ts b/sdk/constructive-react/src/modules/orm/models/connectedAccountsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/connectedAccountsModule.ts rename to sdk/constructive-react/src/modules/orm/models/connectedAccountsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/cryptoAddressesModule.ts b/sdk/constructive-react/src/modules/orm/models/cryptoAddressesModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/cryptoAddressesModule.ts rename to sdk/constructive-react/src/modules/orm/models/cryptoAddressesModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/cryptoAuthModule.ts b/sdk/constructive-react/src/modules/orm/models/cryptoAuthModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/cryptoAuthModule.ts rename to sdk/constructive-react/src/modules/orm/models/cryptoAuthModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/databaseProvisionModule.ts b/sdk/constructive-react/src/modules/orm/models/databaseProvisionModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/databaseProvisionModule.ts rename to sdk/constructive-react/src/modules/orm/models/databaseProvisionModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/dbUsageModule.ts b/sdk/constructive-react/src/modules/orm/models/dbUsageModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/dbUsageModule.ts rename to sdk/constructive-react/src/modules/orm/models/dbUsageModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/defaultIdsModule.ts b/sdk/constructive-react/src/modules/orm/models/defaultIdsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/defaultIdsModule.ts rename to sdk/constructive-react/src/modules/orm/models/defaultIdsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/denormalizedTableField.ts b/sdk/constructive-react/src/modules/orm/models/denormalizedTableField.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/denormalizedTableField.ts rename to sdk/constructive-react/src/modules/orm/models/denormalizedTableField.ts diff --git a/sdk/constructive-react/src/public/orm/models/devicesModule.ts b/sdk/constructive-react/src/modules/orm/models/devicesModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/devicesModule.ts rename to sdk/constructive-react/src/modules/orm/models/devicesModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/emailsModule.ts b/sdk/constructive-react/src/modules/orm/models/emailsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/emailsModule.ts rename to sdk/constructive-react/src/modules/orm/models/emailsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/entityTypeProvision.ts b/sdk/constructive-react/src/modules/orm/models/entityTypeProvision.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/entityTypeProvision.ts rename to sdk/constructive-react/src/modules/orm/models/entityTypeProvision.ts diff --git a/sdk/constructive-react/src/public/orm/models/eventsModule.ts b/sdk/constructive-react/src/modules/orm/models/eventsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/eventsModule.ts rename to sdk/constructive-react/src/modules/orm/models/eventsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/functionModule.ts b/sdk/constructive-react/src/modules/orm/models/functionModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/functionModule.ts rename to sdk/constructive-react/src/modules/orm/models/functionModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/graphModule.ts b/sdk/constructive-react/src/modules/orm/models/graphModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/graphModule.ts rename to sdk/constructive-react/src/modules/orm/models/graphModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/hierarchyModule.ts b/sdk/constructive-react/src/modules/orm/models/hierarchyModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/hierarchyModule.ts rename to sdk/constructive-react/src/modules/orm/models/hierarchyModule.ts diff --git a/sdk/constructive-react/src/modules/orm/models/i18NModule.ts b/sdk/constructive-react/src/modules/orm/models/i18NModule.ts new file mode 100644 index 0000000000..a1162a5f5f --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/i18NModule.ts @@ -0,0 +1,244 @@ +/** + * I18NModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + I18NModule, + I18NModuleWithRelations, + I18NModuleSelect, + I18NModuleFilter, + I18NModuleOrderBy, + CreateI18NModuleInput, + UpdateI18NModuleInput, + I18NModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class I18NModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18nModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18nModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18NModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18NModule', + document, + variables, + transform: (data: { + i18nModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + i18NModule: data.i18nModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18NModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18NModule', + document, + variables, + transform: (data: { + i18nModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + i18NModule: data.i18nModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'I18NModule', + 'createI18NModule', + 'i18NModule', + args.select, + args.data, + 'CreateI18NModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'createI18NModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + I18NModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'I18NModule', + 'updateI18NModule', + 'i18NModule', + args.select, + args.where.id, + args.data, + 'UpdateI18NModuleInput', + 'id', + 'i18NModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'updateI18NModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'I18NModule', + 'deleteI18NModule', + 'i18NModule', + { + id: args.where.id, + }, + 'DeleteI18NModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'deleteI18NModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/identityProvidersModule.ts b/sdk/constructive-react/src/modules/orm/models/identityProvidersModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/identityProvidersModule.ts rename to sdk/constructive-react/src/modules/orm/models/identityProvidersModule.ts diff --git a/sdk/constructive-react/src/modules/orm/models/index.ts b/sdk/constructive-react/src/modules/orm/models/index.ts new file mode 100644 index 0000000000..2e379a9cce --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/index.ts @@ -0,0 +1,61 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +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 { IdentityProvidersModuleModel } from './identityProvidersModule'; +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 { CryptoAddressesModuleModel } from './cryptoAddressesModule'; +export { DenormalizedTableFieldModel } from './denormalizedTableField'; +export { RlsModuleModel } from './rlsModule'; +export { BlueprintModel } from './blueprint'; +export { BlueprintTemplateModel } from './blueprintTemplate'; +export { BlueprintConstructionModel } from './blueprintConstruction'; +export { CryptoAuthModuleModel } from './cryptoAuthModule'; +export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; +export { SessionsModuleModel } from './sessionsModule'; +export { MerkleStoreModuleModel } from './merkleStoreModule'; +export { GraphModuleModel } from './graphModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; +export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { InvitesModuleModel } from './invitesModule'; +export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; +export { RealtimeModuleModel } from './realtimeModule'; +export { WebauthnAuthModuleModel } from './webauthnAuthModule'; +export { NamespaceModuleModel } from './namespaceModule'; +export { ComputeLogModuleModel } from './computeLogModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; +export { StorageLogModuleModel } from './storageLogModule'; +export { TransferLogModuleModel } from './transferLogModule'; +export { DbUsageModuleModel } from './dbUsageModule'; +export { NotificationsModuleModel } from './notificationsModule'; +export { PlansModuleModel } from './plansModule'; +export { HierarchyModuleModel } from './hierarchyModule'; +export { BillingModuleModel } from './billingModule'; +export { BillingProviderModuleModel } from './billingProviderModule'; +export { ProfilesModuleModel } from './profilesModule'; +export { PermissionsModuleModel } from './permissionsModule'; +export { RelationProvisionModel } from './relationProvision'; +export { FunctionModuleModel } from './functionModule'; +export { UserAuthModuleModel } from './userAuthModule'; +export { AgentModuleModel } from './agentModule'; +export { LimitsModuleModel } from './limitsModule'; +export { MembershipsModuleModel } from './membershipsModule'; +export { StorageModuleModel } from './storageModule'; +export { EventsModuleModel } from './eventsModule'; +export { EntityTypeProvisionModel } from './entityTypeProvision'; diff --git a/sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-react/src/modules/orm/models/inferenceLogModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts rename to sdk/constructive-react/src/modules/orm/models/inferenceLogModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/invitesModule.ts b/sdk/constructive-react/src/modules/orm/models/invitesModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/invitesModule.ts rename to sdk/constructive-react/src/modules/orm/models/invitesModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/limitsModule.ts b/sdk/constructive-react/src/modules/orm/models/limitsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/limitsModule.ts rename to sdk/constructive-react/src/modules/orm/models/limitsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/membershipTypesModule.ts b/sdk/constructive-react/src/modules/orm/models/membershipTypesModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/membershipTypesModule.ts rename to sdk/constructive-react/src/modules/orm/models/membershipTypesModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/membershipsModule.ts b/sdk/constructive-react/src/modules/orm/models/membershipsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/membershipsModule.ts rename to sdk/constructive-react/src/modules/orm/models/membershipsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/merkleStoreModule.ts b/sdk/constructive-react/src/modules/orm/models/merkleStoreModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/merkleStoreModule.ts rename to sdk/constructive-react/src/modules/orm/models/merkleStoreModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/namespaceModule.ts b/sdk/constructive-react/src/modules/orm/models/namespaceModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/namespaceModule.ts rename to sdk/constructive-react/src/modules/orm/models/namespaceModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/notificationsModule.ts b/sdk/constructive-react/src/modules/orm/models/notificationsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/notificationsModule.ts rename to sdk/constructive-react/src/modules/orm/models/notificationsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/permissionsModule.ts b/sdk/constructive-react/src/modules/orm/models/permissionsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/permissionsModule.ts rename to sdk/constructive-react/src/modules/orm/models/permissionsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/phoneNumbersModule.ts b/sdk/constructive-react/src/modules/orm/models/phoneNumbersModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/phoneNumbersModule.ts rename to sdk/constructive-react/src/modules/orm/models/phoneNumbersModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/plansModule.ts b/sdk/constructive-react/src/modules/orm/models/plansModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/plansModule.ts rename to sdk/constructive-react/src/modules/orm/models/plansModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/profilesModule.ts b/sdk/constructive-react/src/modules/orm/models/profilesModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/profilesModule.ts rename to sdk/constructive-react/src/modules/orm/models/profilesModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/rateLimitMetersModule.ts b/sdk/constructive-react/src/modules/orm/models/rateLimitMetersModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/rateLimitMetersModule.ts rename to sdk/constructive-react/src/modules/orm/models/rateLimitMetersModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/rateLimitsModule.ts b/sdk/constructive-react/src/modules/orm/models/rateLimitsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/rateLimitsModule.ts rename to sdk/constructive-react/src/modules/orm/models/rateLimitsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/realtimeModule.ts b/sdk/constructive-react/src/modules/orm/models/realtimeModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/realtimeModule.ts rename to sdk/constructive-react/src/modules/orm/models/realtimeModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/relationProvision.ts b/sdk/constructive-react/src/modules/orm/models/relationProvision.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/relationProvision.ts rename to sdk/constructive-react/src/modules/orm/models/relationProvision.ts diff --git a/sdk/constructive-react/src/public/orm/models/rlsModule.ts b/sdk/constructive-react/src/modules/orm/models/rlsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/rlsModule.ts rename to sdk/constructive-react/src/modules/orm/models/rlsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/secureTableProvision.ts b/sdk/constructive-react/src/modules/orm/models/secureTableProvision.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/secureTableProvision.ts rename to sdk/constructive-react/src/modules/orm/models/secureTableProvision.ts diff --git a/sdk/constructive-react/src/public/orm/models/sessionSecretsModule.ts b/sdk/constructive-react/src/modules/orm/models/sessionSecretsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/sessionSecretsModule.ts rename to sdk/constructive-react/src/modules/orm/models/sessionSecretsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/sessionsModule.ts b/sdk/constructive-react/src/modules/orm/models/sessionsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/sessionsModule.ts rename to sdk/constructive-react/src/modules/orm/models/sessionsModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/storageLogModule.ts b/sdk/constructive-react/src/modules/orm/models/storageLogModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/storageLogModule.ts rename to sdk/constructive-react/src/modules/orm/models/storageLogModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/storageModule.ts b/sdk/constructive-react/src/modules/orm/models/storageModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/storageModule.ts rename to sdk/constructive-react/src/modules/orm/models/storageModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/transferLogModule.ts b/sdk/constructive-react/src/modules/orm/models/transferLogModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/transferLogModule.ts rename to sdk/constructive-react/src/modules/orm/models/transferLogModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/userAuthModule.ts b/sdk/constructive-react/src/modules/orm/models/userAuthModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/userAuthModule.ts rename to sdk/constructive-react/src/modules/orm/models/userAuthModule.ts diff --git a/sdk/constructive-react/src/modules/orm/models/userCredentialsModule.ts b/sdk/constructive-react/src/modules/orm/models/userCredentialsModule.ts new file mode 100644 index 0000000000..90ada31d7a --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/userCredentialsModule.ts @@ -0,0 +1,246 @@ +/** + * UserCredentialsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + UserCredentialsModule, + UserCredentialsModuleWithRelations, + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy, + CreateUserCredentialsModuleInput, + UpdateUserCredentialsModuleInput, + UserCredentialsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserCredentialsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModule', + document, + variables, + transform: (data: { + userCredentialsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userCredentialsModule: data.userCredentialsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModule', + document, + variables, + transform: (data: { + userCredentialsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userCredentialsModule: data.userCredentialsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserCredentialsModule', + 'createUserCredentialsModule', + 'userCredentialsModule', + args.select, + args.data, + 'CreateUserCredentialsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'createUserCredentialsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserCredentialsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserCredentialsModule', + 'updateUserCredentialsModule', + 'userCredentialsModule', + args.select, + args.where.id, + args.data, + 'UpdateUserCredentialsModuleInput', + 'id', + 'userCredentialsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'updateUserCredentialsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserCredentialsModule', + 'deleteUserCredentialsModule', + 'userCredentialsModule', + { + id: args.where.id, + }, + 'DeleteUserCredentialsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'deleteUserCredentialsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/userSettingsModule.ts b/sdk/constructive-react/src/modules/orm/models/userSettingsModule.ts new file mode 100644 index 0000000000..5a905d30b4 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/userSettingsModule.ts @@ -0,0 +1,244 @@ +/** + * UserSettingsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + UserSettingsModule, + UserSettingsModuleWithRelations, + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy, + CreateUserSettingsModuleInput, + UpdateUserSettingsModuleInput, + UserSettingsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModule', + document, + variables, + transform: (data: { + userSettingsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsModule: data.userSettingsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModule', + document, + variables, + transform: (data: { + userSettingsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsModule: data.userSettingsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsModule', + 'createUserSettingsModule', + 'userSettingsModule', + args.select, + args.data, + 'CreateUserSettingsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'createUserSettingsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsModule', + 'updateUserSettingsModule', + 'userSettingsModule', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsModuleInput', + 'id', + 'userSettingsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'updateUserSettingsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsModule', + 'deleteUserSettingsModule', + 'userSettingsModule', + { + id: args.where.id, + }, + 'DeleteUserSettingsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'deleteUserSettingsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/userStateModule.ts b/sdk/constructive-react/src/modules/orm/models/userStateModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/userStateModule.ts rename to sdk/constructive-react/src/modules/orm/models/userStateModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/usersModule.ts b/sdk/constructive-react/src/modules/orm/models/usersModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/usersModule.ts rename to sdk/constructive-react/src/modules/orm/models/usersModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/webauthnAuthModule.ts b/sdk/constructive-react/src/modules/orm/models/webauthnAuthModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/webauthnAuthModule.ts rename to sdk/constructive-react/src/modules/orm/models/webauthnAuthModule.ts diff --git a/sdk/constructive-react/src/public/orm/models/webauthnCredentialsModule.ts b/sdk/constructive-react/src/modules/orm/models/webauthnCredentialsModule.ts similarity index 100% rename from sdk/constructive-react/src/public/orm/models/webauthnCredentialsModule.ts rename to sdk/constructive-react/src/modules/orm/models/webauthnCredentialsModule.ts diff --git a/sdk/constructive-react/src/modules/orm/mutation/index.ts b/sdk/constructive-react/src/modules/orm/mutation/index.ts new file mode 100644 index 0000000000..0882daa1dd --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/mutation/index.ts @@ -0,0 +1,408 @@ +/** + * 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 { + ConstructBlueprintInput, + ProvisionFullTextSearchInput, + ProvisionIndexInput, + ProvisionCheckConstraintInput, + ProvisionUniqueConstraintInput, + CopyTemplateToBlueprintInput, + ProvisionSpatialRelationInput, + ProvisionTableInput, + ProvisionRelationInput, + ProvisionBucketInput, + ConstructBlueprintPayload, + ProvisionFullTextSearchPayload, + ProvisionIndexPayload, + ProvisionCheckConstraintPayload, + ProvisionUniqueConstraintPayload, + CopyTemplateToBlueprintPayload, + ProvisionSpatialRelationPayload, + ProvisionTablePayload, + ProvisionRelationPayload, + ProvisionBucketPayload, + ConstructBlueprintPayloadSelect, + ProvisionFullTextSearchPayloadSelect, + ProvisionIndexPayloadSelect, + ProvisionCheckConstraintPayloadSelect, + ProvisionUniqueConstraintPayloadSelect, + CopyTemplateToBlueprintPayloadSelect, + ProvisionSpatialRelationPayloadSelect, + ProvisionTablePayloadSelect, + ProvisionRelationPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for constructBlueprint + * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + */ +export interface ConstructBlueprintVariables { + input: ConstructBlueprintInput; +} +/** + * Variables for provisionFullTextSearch + * Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + */ +export interface ProvisionFullTextSearchVariables { + input: ProvisionFullTextSearchInput; +} +/** + * Variables for provisionIndex + * Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + */ +export interface ProvisionIndexVariables { + input: ProvisionIndexInput; +} +/** + * Variables for provisionCheckConstraint + * Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + */ +export interface ProvisionCheckConstraintVariables { + input: ProvisionCheckConstraintInput; +} +/** + * Variables for provisionUniqueConstraint + * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + */ +export interface ProvisionUniqueConstraintVariables { + input: ProvisionUniqueConstraintInput; +} +/** + * Variables for copyTemplateToBlueprint + * 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. + */ +export interface CopyTemplateToBlueprintVariables { + input: CopyTemplateToBlueprintInput; +} +/** + * Variables for provisionSpatialRelation + * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + */ +export interface ProvisionSpatialRelationVariables { + input: ProvisionSpatialRelationInput; +} +/** + * Variables for provisionTable + * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + */ +export interface ProvisionTableVariables { + input: ProvisionTableInput; +} +/** + * Variables for provisionRelation + * Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + */ +export interface ProvisionRelationVariables { + input: ProvisionRelationInput; +} +/** + * Variables for 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 { + constructBlueprint: ( + args: ConstructBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + constructBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConstructBlueprint', + fieldName: 'constructBlueprint', + ...buildCustomDocument( + 'mutation', + 'ConstructBlueprint', + 'constructBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'ConstructBlueprintInput!', + }, + ], + connectionFieldsMap, + 'ConstructBlueprintPayload' + ), + }), + provisionFullTextSearch: ( + args: ProvisionFullTextSearchVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionFullTextSearch: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionFullTextSearch', + fieldName: 'provisionFullTextSearch', + ...buildCustomDocument( + 'mutation', + 'ProvisionFullTextSearch', + 'provisionFullTextSearch', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionFullTextSearchInput!', + }, + ], + connectionFieldsMap, + 'ProvisionFullTextSearchPayload' + ), + }), + provisionIndex: ( + args: ProvisionIndexVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionIndex: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionIndex', + fieldName: 'provisionIndex', + ...buildCustomDocument( + 'mutation', + 'ProvisionIndex', + 'provisionIndex', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionIndexInput!', + }, + ], + connectionFieldsMap, + 'ProvisionIndexPayload' + ), + }), + provisionCheckConstraint: ( + args: ProvisionCheckConstraintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionCheckConstraint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionCheckConstraint', + fieldName: 'provisionCheckConstraint', + ...buildCustomDocument( + 'mutation', + 'ProvisionCheckConstraint', + 'provisionCheckConstraint', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionCheckConstraintInput!', + }, + ], + connectionFieldsMap, + 'ProvisionCheckConstraintPayload' + ), + }), + provisionUniqueConstraint: ( + args: ProvisionUniqueConstraintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionUniqueConstraint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionUniqueConstraint', + fieldName: 'provisionUniqueConstraint', + ...buildCustomDocument( + 'mutation', + 'ProvisionUniqueConstraint', + 'provisionUniqueConstraint', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionUniqueConstraintInput!', + }, + ], + connectionFieldsMap, + 'ProvisionUniqueConstraintPayload' + ), + }), + copyTemplateToBlueprint: ( + args: CopyTemplateToBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + copyTemplateToBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CopyTemplateToBlueprint', + fieldName: 'copyTemplateToBlueprint', + ...buildCustomDocument( + 'mutation', + 'CopyTemplateToBlueprint', + 'copyTemplateToBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'CopyTemplateToBlueprintInput!', + }, + ], + connectionFieldsMap, + 'CopyTemplateToBlueprintPayload' + ), + }), + provisionSpatialRelation: ( + args: ProvisionSpatialRelationVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionSpatialRelation: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionSpatialRelation', + fieldName: 'provisionSpatialRelation', + ...buildCustomDocument( + 'mutation', + 'ProvisionSpatialRelation', + 'provisionSpatialRelation', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionSpatialRelationInput!', + }, + ], + connectionFieldsMap, + 'ProvisionSpatialRelationPayload' + ), + }), + provisionTable: ( + args: ProvisionTableVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionTable: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', + ...buildCustomDocument( + 'mutation', + 'ProvisionTable', + 'provisionTable', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionTableInput!', + }, + ], + connectionFieldsMap, + 'ProvisionTablePayload' + ), + }), + provisionRelation: ( + args: ProvisionRelationVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionRelation: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionRelation', + fieldName: 'provisionRelation', + ...buildCustomDocument( + 'mutation', + 'ProvisionRelation', + 'provisionRelation', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionRelationInput!', + }, + ], + connectionFieldsMap, + 'ProvisionRelationPayload' + ), + }), + 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/modules/orm/query-builder.ts b/sdk/constructive-react/src/modules/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/modules/orm/query/index.ts b/sdk/constructive-react/src/modules/orm/query/index.ts new file mode 100644 index 0000000000..391bf65929 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/query/index.ts @@ -0,0 +1,115 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for resolveBlueprintField + * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + */ +export interface ResolveBlueprintFieldVariables { + databaseId?: string; + tableId?: string; + fieldName?: string; +} +/** + * Variables for resolveBlueprintTable + * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + */ +export interface ResolveBlueprintTableVariables { + databaseId?: string; + tableName?: string; + schemaName?: string; + tableMap?: unknown; + defaultSchemaId?: string; +} +export function createQueryOperations(client: OrmClient) { + return { + resolveBlueprintField: ( + args: ResolveBlueprintFieldVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveBlueprintField: string | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveBlueprintField', + fieldName: 'resolveBlueprintField', + ...buildCustomDocument( + 'query', + 'ResolveBlueprintField', + 'resolveBlueprintField', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'tableId', + type: 'UUID', + }, + { + name: 'fieldName', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + resolveBlueprintTable: ( + args: ResolveBlueprintTableVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveBlueprintTable: string | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveBlueprintTable', + fieldName: 'resolveBlueprintTable', + ...buildCustomDocument( + 'query', + 'ResolveBlueprintTable', + 'resolveBlueprintTable', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'tableName', + type: 'String', + }, + { + name: 'schemaName', + type: 'String', + }, + { + name: 'tableMap', + type: 'JSON', + }, + { + name: 'defaultSchemaId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/modules/orm/realtime.ts b/sdk/constructive-react/src/modules/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-react/src/modules/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/modules/orm/select-types.ts b/sdk/constructive-react/src/modules/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-react/src/modules/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/modules/orm/types.ts b/sdk/constructive-react/src/modules/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-react/src/modules/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/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts new file mode 100644 index 0000000000..c534f93897 --- /dev/null +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -0,0 +1,10458 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + AgentModule, + BillingModule, + BillingProviderModule, + Blueprint, + BlueprintConstruction, + BlueprintTemplate, + ComputeLogModule, + ConfigSecretsModule, + ConfigSecretsOrgModule, + ConfigSecretsUserModule, + ConnectedAccountsModule, + CryptoAddressesModule, + CryptoAuthModule, + DatabaseProvisionModule, + DbUsageModule, + DefaultIdsModule, + DenormalizedTableField, + DevicesModule, + EmailsModule, + EntityTypeProvision, + EventsModule, + FunctionModule, + GraphModule, + HierarchyModule, + I18NModule, + IdentityProvidersModule, + InferenceLogModule, + InvitesModule, + LimitsModule, + MembershipTypesModule, + MembershipsModule, + MerkleStoreModule, + NamespaceModule, + NotificationsModule, + PermissionsModule, + PhoneNumbersModule, + PlansModule, + ProfilesModule, + RateLimitMetersModule, + RateLimitsModule, + RealtimeModule, + RelationProvision, + RlsModule, + SecureTableProvision, + SessionSecretsModule, + SessionsModule, + StorageLogModule, + StorageModule, + TransferLogModule, + UserAuthModule, + UserCredentialsModule, + UserSettingsModule, + UserStateModule, + UsersModule, + WebauthnAuthModule, + WebauthnCredentialsModule, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, + VectorFilter, +} from './types'; +/** Methods to use when ordering `DefaultIdsModule`. */ +export type DefaultIdsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `MembershipTypesModule`. */ +export type MembershipTypesModuleOrderBy = + | '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 `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' + | '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'; +/** 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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +/** Methods to use when ordering `I18NModule`. */ +export type I18NModuleOrderBy = + | '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' + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `UserCredentialsModule`. */ +export type UserCredentialsModuleOrderBy = + | '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 `UserSettingsModule`. */ +export type UserSettingsModuleOrderBy = + | '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' + | '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 = + | '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' + | '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 `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' + | '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 `ConnectedAccountsModule`. */ +export type ConnectedAccountsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 `EmailsModule`. */ +export type EmailsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 `PhoneNumbersModule`. */ +export type PhoneNumbersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 `RateLimitsModule`. */ +export type RateLimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' + | 'IP_RATE_LIMITS_TABLE_ID_ASC' + | 'IP_RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMITS_TABLE_ID_ASC' + | 'RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_DESC' + | 'IP_RATE_LIMITS_TABLE_ASC' + | 'IP_RATE_LIMITS_TABLE_DESC' + | 'RATE_LIMITS_TABLE_ASC' + | 'RATE_LIMITS_TABLE_DESC'; +/** Methods to use when ordering `UsersModule`. */ +export type UsersModuleOrderBy = + | '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' + | 'TYPE_TABLE_ID_ASC' + | 'TYPE_TABLE_ID_DESC' + | 'TYPE_TABLE_NAME_ASC' + | 'TYPE_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `WebauthnCredentialsModule`. */ +export type WebauthnCredentialsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 `CryptoAddressesModule`. */ +export type CryptoAddressesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `DenormalizedTableField`. */ +export type DenormalizedTableFieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'SET_IDS_ASC' + | 'SET_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'REF_IDS_ASC' + | 'REF_IDS_DESC' + | 'USE_UPDATES_ASC' + | 'USE_UPDATES_DESC' + | 'UPDATE_DEFAULTS_ASC' + | 'UPDATE_DEFAULTS_DESC' + | 'FUNC_NAME_ASC' + | 'FUNC_NAME_DESC' + | 'FUNC_ORDER_ASC' + | 'FUNC_ORDER_DESC'; +/** Methods to use when ordering `RlsModule`. */ +export type RlsModuleOrderBy = + | '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' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'AUTHENTICATE_ASC' + | 'AUTHENTICATE_DESC' + | 'AUTHENTICATE_STRICT_ASC' + | 'AUTHENTICATE_STRICT_DESC' + | 'CURRENT_ROLE_ASC' + | 'CURRENT_ROLE_DESC' + | 'CURRENT_ROLE_ID_ASC' + | 'CURRENT_ROLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `BlueprintTemplate`. */ +export type BlueprintTemplateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'CATEGORIES_ASC' + | 'CATEGORIES_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DEFINITION_SCHEMA_VERSION_ASC' + | 'DEFINITION_SCHEMA_VERSION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'COMPLEXITY_ASC' + | 'COMPLEXITY_DESC' + | 'COPY_COUNT_ASC' + | 'COPY_COUNT_DESC' + | 'FORK_COUNT_ASC' + | 'FORK_COUNT_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Blueprint`. */ +export type BlueprintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `BlueprintConstruction`. */ +export type BlueprintConstructionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'BLUEPRINT_ID_ASC' + | 'BLUEPRINT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_DETAILS_ASC' + | 'ERROR_DETAILS_DESC' + | 'TABLE_MAP_ASC' + | 'TABLE_MAP_DESC' + | 'CONSTRUCTED_DEFINITION_ASC' + | 'CONSTRUCTED_DEFINITION_DESC' + | 'CONSTRUCTED_AT_ASC' + | 'CONSTRUCTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `CryptoAuthModule`. */ +export type CryptoAuthModuleOrderBy = + | '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' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'ADDRESSES_TABLE_ID_ASC' + | 'ADDRESSES_TABLE_ID_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_DESC' + | 'SIGN_IN_RECORD_FAILURE_ASC' + | 'SIGN_IN_RECORD_FAILURE_DESC' + | 'SIGN_UP_WITH_KEY_ASC' + | 'SIGN_UP_WITH_KEY_DESC' + | 'SIGN_IN_WITH_CHALLENGE_ASC' + | 'SIGN_IN_WITH_CHALLENGE_DESC'; +/** Methods to use when ordering `RateLimitMetersModule`. */ +export type RateLimitMetersModuleOrderBy = + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `SessionsModule`. */ +export type SessionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUTH_SETTINGS_TABLE_ID_ASC' + | 'AUTH_SETTINGS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_DEFAULT_EXPIRATION_ASC' + | 'SESSIONS_DEFAULT_EXPIRATION_DESC' + | 'SESSIONS_TABLE_ASC' + | 'SESSIONS_TABLE_DESC' + | 'SESSION_CREDENTIALS_TABLE_ASC' + | 'SESSION_CREDENTIALS_TABLE_DESC' + | 'AUTH_SETTINGS_TABLE_ASC' + | 'AUTH_SETTINGS_TABLE_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' + | 'EXECUTIONS_TABLE_ID_ASC' + | 'EXECUTIONS_TABLE_ID_DESC' + | 'OUTPUTS_TABLE_ID_ASC' + | 'OUTPUTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_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 `MerkleStoreModule`. */ +export type MerkleStoreModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `SecureTableProvision`. */ +export type SecureTableProvisionOrderBy = + | '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' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +/** Methods to use when ordering `ConfigSecretsModule`. */ +export type ConfigSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | '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 `InvitesModule`. */ +export type InvitesModuleOrderBy = + | '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' + | '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 `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 `RealtimeModule`. */ +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'; +/** 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 `NamespaceModule`. */ +export type NamespaceModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +/** Methods to use when ordering `ComputeLogModule`. */ +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `InferenceLogModule`. */ +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | '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' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `TransferLogModule`. */ +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | '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' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_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' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `PlansModule`. */ +export type PlansModuleOrderBy = + | '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' + | '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'; +/** 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' + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `BillingModule`. */ +export type BillingModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | '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' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** 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 `ProfilesModule`. */ +export type ProfilesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 `PermissionsModule`. */ +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' + | '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'; +/** Methods to use when ordering `RelationProvision`. */ +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'; +/** Methods to use when ordering `FunctionModule`. */ +export type FunctionModuleOrderBy = + | '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' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'REQUIREMENTS_TABLE_ID_ASC' + | 'REQUIREMENTS_TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'REQUIREMENTS_TABLE_NAME_ASC' + | 'REQUIREMENTS_TABLE_NAME_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_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 `AgentModule`. */ +export type AgentModuleOrderBy = + | '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' + | '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' + | 'KNOWLEDGE_TABLE_ID_ASC' + | 'KNOWLEDGE_TABLE_ID_DESC' + | 'PLAN_TABLE_ID_ASC' + | 'PLAN_TABLE_ID_DESC' + | 'SKILL_TABLE_ID_ASC' + | 'SKILL_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' + | 'KNOWLEDGE_TABLE_NAME_ASC' + | 'KNOWLEDGE_TABLE_NAME_DESC' + | 'PLAN_TABLE_NAME_ASC' + | 'PLAN_TABLE_NAME_DESC' + | 'SKILL_TABLE_NAME_ASC' + | 'SKILL_TABLE_NAME_DESC' + | 'HAS_KNOWLEDGE_ASC' + | 'HAS_KNOWLEDGE_DESC' + | 'HAS_PLANS_ASC' + | 'HAS_PLANS_DESC' + | 'HAS_SKILLS_ASC' + | 'HAS_SKILLS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'KNOWLEDGE_CONFIG_ASC' + | 'KNOWLEDGE_CONFIG_DESC' + | 'SKILLS_CONFIG_ASC' + | 'SKILLS_CONFIG_DESC' + | 'KNOWLEDGE_POLICIES_ASC' + | 'KNOWLEDGE_POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +/** Methods to use when ordering `LimitsModule`. */ +export type LimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `StorageModule`. */ +export type StorageModuleOrderBy = + | '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' + | 'BUCKETS_TABLE_ID_ASC' + | 'BUCKETS_TABLE_ID_DESC' + | 'FILES_TABLE_ID_ASC' + | 'FILES_TABLE_ID_DESC' + | 'BUCKETS_TABLE_NAME_ASC' + | 'BUCKETS_TABLE_NAME_DESC' + | 'FILES_TABLE_NAME_ASC' + | 'FILES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENDPOINT_ASC' + | 'ENDPOINT_DESC' + | 'PUBLIC_URL_PREFIX_ASC' + | 'PUBLIC_URL_PREFIX_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' + | 'HAS_PATH_SHARES_ASC' + | 'HAS_PATH_SHARES_DESC' + | 'PATH_SHARES_TABLE_ID_ASC' + | 'PATH_SHARES_TABLE_ID_DESC' + | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' + | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DEFAULT_MAX_FILE_SIZE_ASC' + | 'DEFAULT_MAX_FILE_SIZE_DESC' + | 'MAX_FILENAME_LENGTH_ASC' + | 'MAX_FILENAME_LENGTH_DESC' + | 'CACHE_TTL_SECONDS_ASC' + | 'CACHE_TTL_SECONDS_DESC' + | 'MAX_BULK_FILES_ASC' + | 'MAX_BULK_FILES_DESC' + | 'MAX_BULK_TOTAL_SIZE_ASC' + | 'MAX_BULK_TOTAL_SIZE_DESC' + | 'HAS_VERSIONING_ASC' + | 'HAS_VERSIONING_DESC' + | 'HAS_CONTENT_HASH_ASC' + | 'HAS_CONTENT_HASH_DESC' + | 'HAS_CUSTOM_KEYS_ASC' + | 'HAS_CUSTOM_KEYS_DESC' + | 'HAS_AUDIT_LOG_ASC' + | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' + | 'FILE_EVENTS_TABLE_ID_ASC' + | 'FILE_EVENTS_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' + | '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' + | 'EVENTS_TABLE_ID_ASC' + | 'EVENTS_TABLE_ID_DESC' + | 'EVENTS_TABLE_NAME_ASC' + | 'EVENTS_TABLE_NAME_DESC' + | 'EVENT_AGGREGATES_TABLE_ID_ASC' + | 'EVENT_AGGREGATES_TABLE_ID_DESC' + | 'EVENT_AGGREGATES_TABLE_NAME_ASC' + | 'EVENT_AGGREGATES_TABLE_NAME_DESC' + | 'EVENT_TYPES_TABLE_ID_ASC' + | 'EVENT_TYPES_TABLE_ID_DESC' + | 'EVENT_TYPES_TABLE_NAME_ASC' + | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'LEVELS_TABLE_ID_ASC' + | 'LEVELS_TABLE_ID_DESC' + | 'LEVELS_TABLE_NAME_ASC' + | 'LEVELS_TABLE_NAME_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' + | 'LEVEL_GRANTS_TABLE_ID_ASC' + | 'LEVEL_GRANTS_TABLE_ID_DESC' + | 'LEVEL_GRANTS_TABLE_NAME_ASC' + | 'LEVEL_GRANTS_TABLE_NAME_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' + | 'RECORD_EVENT_ASC' + | 'RECORD_EVENT_DESC' + | 'REMOVE_EVENT_ASC' + | 'REMOVE_EVENT_DESC' + | 'TG_EVENT_ASC' + | 'TG_EVENT_DESC' + | 'TG_EVENT_TOGGLE_ASC' + | 'TG_EVENT_TOGGLE_DESC' + | 'TG_EVENT_TOGGLE_BOOL_ASC' + | 'TG_EVENT_TOGGLE_BOOL_DESC' + | 'TG_EVENT_BOOL_ASC' + | 'TG_EVENT_BOOL_DESC' + | 'UPSERT_AGGREGATE_ASC' + | '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' + | 'LEVEL_ACHIEVED_DESC' + | 'TG_CHECK_ACHIEVEMENTS_ASC' + | 'TG_CHECK_ACHIEVEMENTS_DESC' + | 'GRANT_ACHIEVEMENT_ASC' + | 'GRANT_ACHIEVEMENT_DESC' + | 'TG_ACHIEVEMENT_REWARD_ASC' + | 'TG_ACHIEVEMENT_REWARD_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_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'; +/** Methods to use when ordering `EntityTypeProvision`. */ +export type EntityTypeProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | '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_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; +/** A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultIdsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DefaultIdsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultIdsModuleFilter[]; + /** Negates the expression. */ + not?: DefaultIdsModuleFilter; +} +/** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypesModuleFilter { + /** 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?: MembershipTypesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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. */ + 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; +} +/** 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. */ + 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 `userDevicesTableId` field. */ + userDevicesTableId?: UUIDFilter; + /** Filter by the object’s `deviceSettingsTableId` field. */ + deviceSettingsTableId?: UUIDFilter; + /** Filter by the object’s `userDevicesTable` field. */ + userDevicesTable?: StringFilter; + /** Filter by the object’s `deviceSettingsTable` field. */ + deviceSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DevicesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DevicesModuleFilter[]; + /** Negates the expression. */ + not?: DevicesModuleFilter; +} +/** A filter to be used against `I18NModule` object types. All fields are combined with a logical ‘and.’ */ +export interface I18NModuleFilter { + /** 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 `settingsTableId` field. */ + settingsTableId?: 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?: I18NModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 { + /** 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?: UserCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserCredentialsModuleFilter[]; + /** Negates the expression. */ + not?: 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. */ + 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 `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[]; + /** Checks for any expressions in this list. */ + or?: UserSettingsModuleFilter[]; + /** Negates the expression. */ + not?: UserSettingsModuleFilter; +} +/** 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 `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[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} +/** 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 `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?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} +/** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConnectedAccountsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConnectedAccountsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConnectedAccountsModuleFilter[]; + /** Negates the expression. */ + not?: ConnectedAccountsModuleFilter; +} +/** A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EmailsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailsModuleFilter[]; + /** Negates the expression. */ + not?: EmailsModuleFilter; +} +/** A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PhoneNumbersModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PhoneNumbersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PhoneNumbersModuleFilter[]; + /** Negates the expression. */ + not?: PhoneNumbersModuleFilter; +} +/** A filter to be used against `RateLimitsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RateLimitsModuleFilter { + /** 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 `rateLimitSettingsTableId` field. */ + rateLimitSettingsTableId?: UUIDFilter; + /** Filter by the object’s `ipRateLimitsTableId` field. */ + ipRateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitsTableId` field. */ + rateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitSettingsTable` field. */ + rateLimitSettingsTable?: StringFilter; + /** Filter by the object’s `ipRateLimitsTable` field. */ + ipRateLimitsTable?: StringFilter; + /** Filter by the object’s `rateLimitsTable` field. */ + rateLimitsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitsModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitsModuleFilter; +} +/** A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UsersModuleFilter { + /** 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 `typeTableId` field. */ + typeTableId?: UUIDFilter; + /** Filter by the object’s `typeTableName` field. */ + typeTableName?: 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?: UsersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UsersModuleFilter[]; + /** Negates the expression. */ + not?: UsersModuleFilter; +} +/** A filter to be used against `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface WebauthnCredentialsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 { + /** 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; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAddressesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressesModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAddressesModuleFilter; +} +/** A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ +export interface DenormalizedTableFieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `setIds` field. */ + setIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `refIds` field. */ + refIds?: UUIDListFilter; + /** Filter by the object’s `useUpdates` field. */ + useUpdates?: BooleanFilter; + /** Filter by the object’s `updateDefaults` field. */ + updateDefaults?: BooleanFilter; + /** Filter by the object’s `funcName` field. */ + funcName?: StringFilter; + /** Filter by the object’s `funcOrder` field. */ + funcOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: DenormalizedTableFieldFilter[]; + /** Checks for any expressions in this list. */ + or?: DenormalizedTableFieldFilter[]; + /** Negates the expression. */ + not?: DenormalizedTableFieldFilter; +} +/** 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. */ + 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[]; + /** Negates the expression. */ + not?: RlsModuleFilter; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintTemplateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintTemplateFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintTemplateFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintTemplateFilter; +} +/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintFilter; +} +/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; + /** Filter by the object’s `blueprintConstructions` relation. */ + blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; + /** `blueprintConstructions` exist. */ + blueprintConstructionsExist?: boolean; +} +/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintToManyBlueprintConstructionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintConstructionFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintConstructionFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintConstructionFilter; +} +/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +/** A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAuthModuleFilter { + /** 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 `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `addressesTableId` field. */ + addressesTableId?: UUIDFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `signInRequestChallenge` field. */ + signInRequestChallenge?: StringFilter; + /** Filter by the object’s `signInRecordFailure` field. */ + signInRecordFailure?: StringFilter; + /** Filter by the object’s `signUpWithKey` field. */ + signUpWithKey?: StringFilter; + /** Filter by the object’s `signInWithChallenge` field. */ + signInWithChallenge?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAuthModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAuthModuleFilter; +} +/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RateLimitMetersModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; +} +/** A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SessionsModuleFilter { + /** 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 `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsDefaultExpiration` field. */ + sessionsDefaultExpiration?: IntervalFilter; + /** Filter by the object’s `sessionsTable` field. */ + sessionsTable?: StringFilter; + /** Filter by the object’s `sessionCredentialsTable` field. */ + sessionCredentialsTable?: StringFilter; + /** Filter by the object’s `authSettingsTable` field. */ + authSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SessionsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SessionsModuleFilter[]; + /** Negates the expression. */ + not?: SessionsModuleFilter; +} +/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: GraphModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: GraphModuleFilter[]; + /** Negates the expression. */ + not?: GraphModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} +/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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; +} +/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +export interface 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 filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ +export interface SecureTableProvisionFilter { + /** 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 `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; + /** Checks for all expressions in this list. */ + and?: SecureTableProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: SecureTableProvisionFilter[]; + /** Negates the expression. */ + not?: SecureTableProvisionFilter; +} +/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ +export interface JSONListFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: unknown[]; + /** Not equal to the specified value. */ + notEqualTo?: unknown[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: unknown[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: unknown[]; + /** Less than the specified value. */ + lessThan?: unknown[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: unknown[]; + /** Greater than the specified value. */ + greaterThan?: unknown[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: unknown[]; + /** Contains the specified list of values. */ + contains?: unknown[]; + /** Contained by the specified list of values. */ + containedBy?: unknown[]; + /** Overlaps the specified list of values. */ + overlaps?: unknown[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: unknown; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: unknown; + /** Any array item is less than the specified value. */ + anyLessThan?: unknown; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: unknown; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: unknown; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: unknown; +} +/** A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsModuleFilter { + /** 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 `configDefinitionsTableId` field. */ + configDefinitionsTableId?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `hasConfig` field. */ + hasConfig?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsModuleFilter; +} +/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `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?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +/** 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 `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; +} +/** 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 `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ +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[]; + /** Checks for any expressions in this list. */ + or?: WebauthnAuthModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnAuthModuleFilter; +} +/** 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ComputeLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; +} +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; +} +/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; +} +/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TransferLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; +} +/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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 `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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `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 `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; +} +/** 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 `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 `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ +export interface HierarchyModuleFilter { + /** 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 `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 `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; +} +/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: 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?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; +} +/** 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 `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 `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 `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `profilePermissionsTableId` field. */ + profilePermissionsTableId?: UUIDFilter; + /** Filter by the object’s `profilePermissionsTableName` field. */ + profilePermissionsTableName?: StringFilter; + /** Filter by the object’s `profileGrantsTableId` field. */ + profileGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileGrantsTableName` field. */ + profileGrantsTableName?: StringFilter; + /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ + profileDefinitionGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ + profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: 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 `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: 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?: ProfilesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ProfilesModuleFilter[]; + /** Negates the expression. */ + not?: ProfilesModuleFilter; +} +/** 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 `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 `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 `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 `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 `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `requirementsTableId` field. */ + requirementsTableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `configRequirementsTableId` field. */ + configRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `requirementsTableName` field. */ + requirementsTableName?: StringFilter; + /** Filter by the object’s `configRequirementsTableName` field. */ + configRequirementsTableName?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +/** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UserAuthModuleFilter { + /** 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 `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `encryptedTableId` field. */ + encryptedTableId?: 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 `auditsTableName` field. */ + auditsTableName?: StringFilter; + /** Filter by the object’s `signInFunction` field. */ + signInFunction?: StringFilter; + /** Filter by the object’s `signUpFunction` field. */ + signUpFunction?: StringFilter; + /** Filter by the object’s `signOutFunction` field. */ + signOutFunction?: StringFilter; + /** Filter by the object’s `setPasswordFunction` field. */ + setPasswordFunction?: StringFilter; + /** Filter by the object’s `resetPasswordFunction` field. */ + resetPasswordFunction?: StringFilter; + /** Filter by the object’s `forgotPasswordFunction` field. */ + forgotPasswordFunction?: StringFilter; + /** Filter by the object’s `sendVerificationEmailFunction` field. */ + sendVerificationEmailFunction?: StringFilter; + /** Filter by the object’s `verifyEmailFunction` field. */ + verifyEmailFunction?: StringFilter; + /** Filter by the object’s `verifyPasswordFunction` field. */ + verifyPasswordFunction?: StringFilter; + /** Filter by the object’s `checkPasswordFunction` field. */ + checkPasswordFunction?: StringFilter; + /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ + sendAccountDeletionEmailFunction?: StringFilter; + /** Filter by the object’s `deleteAccountFunction` field. */ + deleteAccountFunction?: StringFilter; + /** Filter by the object’s `signInCrossOriginFunction` field. */ + signInCrossOriginFunction?: StringFilter; + /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ + requestCrossOriginTokenFunction?: StringFilter; + /** Filter by the object’s `extendTokenExpires` field. */ + extendTokenExpires?: 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?: UserAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserAuthModuleFilter[]; + /** Negates the expression. */ + not?: UserAuthModuleFilter; +} +/** 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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `knowledgeTableId` field. */ + knowledgeTableId?: UUIDFilter; + /** Filter by the object’s `planTableId` field. */ + planTableId?: UUIDFilter; + /** Filter by the object’s `skillTableId` field. */ + skillTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `promptsTableName` field. */ + promptsTableName?: StringFilter; + /** Filter by the object’s `knowledgeTableName` field. */ + knowledgeTableName?: StringFilter; + /** Filter by the object’s `planTableName` field. */ + planTableName?: StringFilter; + /** Filter by the object’s `skillTableName` field. */ + skillTableName?: StringFilter; + /** Filter by the object’s `hasKnowledge` field. */ + hasKnowledge?: BooleanFilter; + /** Filter by the object’s `hasPlans` field. */ + hasPlans?: BooleanFilter; + /** Filter by the object’s `hasSkills` field. */ + hasSkills?: BooleanFilter; + /** 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `knowledgeConfig` field. */ + knowledgeConfig?: JSONFilter; + /** Filter by the object’s `skillsConfig` field. */ + skillsConfig?: JSONFilter; + /** Filter by the object’s `knowledgePolicies` field. */ + knowledgePolicies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentModuleFilter[]; + /** Negates the expression. */ + not?: AgentModuleFilter; +} +/** A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface LimitsModuleFilter { + /** Filter by the object’s `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 `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 `limitIncrementFunction` field. */ + limitIncrementFunction?: StringFilter; + /** Filter by the object’s `limitDecrementFunction` field. */ + limitDecrementFunction?: StringFilter; + /** Filter by the object’s `limitIncrementTrigger` field. */ + limitIncrementTrigger?: StringFilter; + /** Filter by the object’s `limitDecrementTrigger` field. */ + limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitUpdateTrigger` field. */ + limitUpdateTrigger?: StringFilter; + /** Filter by the object’s `limitCheckFunction` field. */ + limitCheckFunction?: StringFilter; + /** Filter by the object’s `limitCreditsTableId` field. */ + limitCreditsTableId?: UUIDFilter; + /** Filter by the object’s `eventsTableId` field. */ + eventsTableId?: UUIDFilter; + /** Filter by the object’s `creditCodesTableId` field. */ + creditCodesTableId?: UUIDFilter; + /** Filter by the object’s `creditCodeItemsTableId` field. */ + creditCodeItemsTableId?: UUIDFilter; + /** Filter by the object’s `creditRedemptionsTableId` field. */ + creditRedemptionsTableId?: UUIDFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsTableId` field. */ + limitCapsTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsDefaultsTableId` field. */ + limitCapsDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `capCheckTrigger` field. */ + capCheckTrigger?: 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; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: LimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 `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 `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 `StorageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageModuleFilter { + /** 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 `bucketsTableId` field. */ + bucketsTableId?: UUIDFilter; + /** Filter by the object’s `filesTableId` field. */ + filesTableId?: UUIDFilter; + /** Filter by the object’s `bucketsTableName` field. */ + bucketsTableName?: StringFilter; + /** Filter by the object’s `filesTableName` field. */ + filesTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `endpoint` field. */ + endpoint?: StringFilter; + /** Filter by the object’s `publicUrlPrefix` field. */ + publicUrlPrefix?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; + /** Filter by the object’s `hasPathShares` field. */ + hasPathShares?: BooleanFilter; + /** Filter by the object’s `pathSharesTableId` field. */ + pathSharesTableId?: UUIDFilter; + /** Filter by the object’s `uploadUrlExpirySeconds` field. */ + uploadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `downloadUrlExpirySeconds` field. */ + downloadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `defaultMaxFileSize` field. */ + defaultMaxFileSize?: BigIntFilter; + /** Filter by the object’s `maxFilenameLength` field. */ + maxFilenameLength?: IntFilter; + /** Filter by the object’s `cacheTtlSeconds` field. */ + cacheTtlSeconds?: IntFilter; + /** Filter by the object’s `maxBulkFiles` field. */ + maxBulkFiles?: IntFilter; + /** Filter by the object’s `maxBulkTotalSize` field. */ + maxBulkTotalSize?: BigIntFilter; + /** Filter by the object’s `hasVersioning` field. */ + hasVersioning?: BooleanFilter; + /** Filter by the object’s `hasContentHash` field. */ + hasContentHash?: BooleanFilter; + /** Filter by the object’s `hasCustomKeys` field. */ + hasCustomKeys?: BooleanFilter; + /** Filter by the object’s `hasAuditLog` field. */ + hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; + /** Filter by the object’s `fileEventsTableId` field. */ + fileEventsTableId?: 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?: StorageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 { + /** 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 `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; + /** Filter by the object’s `removeEvent` field. */ + removeEvent?: StringFilter; + /** Filter by the object’s `tgEvent` field. */ + tgEvent?: StringFilter; + /** Filter by the object’s `tgEventToggle` field. */ + tgEventToggle?: StringFilter; + /** Filter by the object’s `tgEventToggleBool` field. */ + tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgEventBool` field. */ + tgEventBool?: StringFilter; + /** Filter by the object’s `upsertAggregate` field. */ + 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. */ + levelAchieved?: StringFilter; + /** Filter by the object’s `tgCheckAchievements` field. */ + tgCheckAchievements?: StringFilter; + /** Filter by the object’s `grantAchievement` field. */ + grantAchievement?: StringFilter; + /** Filter by the object’s `tgAchievementReward` field. */ + tgAchievementReward?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EventsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EventsModuleFilter[]; + /** Negates the expression. */ + not?: EventsModuleFilter; +} +/** 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. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + 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 `outRequirementsTableId` field. */ + outRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outConfigRequirementsTableId` field. */ + outConfigRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} +export interface ConstructBlueprintInput { + clientMutationId?: string; + blueprintId?: string; + schemaId?: string; +} +export interface ProvisionFullTextSearchInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: unknown; +} +export interface ProvisionIndexInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: unknown; +} +export interface ProvisionCheckConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: unknown; +} +export interface ProvisionUniqueConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: unknown; +} +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} +export interface ProvisionSpatialRelationInput { + clientMutationId?: string; + pDatabaseId?: string; + pSourceTableId?: string; + pSourceFieldId?: string; + pTargetTableId?: string; + pTargetFieldId?: string; + pName?: string; + pOperator?: string; + pParamName?: string; +} +export interface ProvisionTableInput { + clientMutationId?: string; + databaseId?: string; + schemaId?: string; + tableName?: string; + tableId?: string; + nodes?: unknown; + fields?: unknown; + policies?: unknown; + grants?: unknown; + useRls?: boolean; + indexes?: unknown; + fullTextSearches?: unknown; + uniqueConstraints?: unknown; + description?: string; +} +export interface ProvisionRelationInput { + clientMutationId?: string; + databaseId?: string; + relationType?: string; + sourceTableId?: string; + targetTableId?: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + createIndex?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + exposeInApi?: boolean; + nodes?: unknown; + grants?: unknown; + policies?: unknown; +} +export interface CreateDefaultIdsModuleInput { + clientMutationId?: string; + /** The `DefaultIdsModule` to be created by this mutation. */ + defaultIdsModule: DefaultIdsModuleInput; +} +/** An input for mutations affecting `DefaultIdsModule` */ +export interface DefaultIdsModuleInput { + id?: string; + databaseId: string; +} +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + /** The `MembershipTypesModule` to be created by this mutation. */ + membershipTypesModule: MembershipTypesModuleInput; +} +/** An input for mutations affecting `MembershipTypesModule` */ +export interface MembershipTypesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + 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. */ + sessionSecretsModule: SessionSecretsModuleInput; +} +/** 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; +} +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. */ + devicesModule: DevicesModuleInput; +} +/** An input for mutations affecting `DevicesModule` */ +export interface DevicesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; +} +export interface CreateI18NModuleInput { + clientMutationId?: string; + /** The `I18NModule` to be created by this mutation. */ + i18NModule: I18NModuleInput; +} +/** An input for mutations affecting `I18NModule` */ +export interface I18NModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateUserCredentialsModuleInput { + clientMutationId?: string; + /** The `UserCredentialsModule` to be created by this mutation. */ + userCredentialsModule: UserCredentialsModuleInput; +} +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateUserSettingsModuleInput { + clientMutationId?: string; + /** The `UserSettingsModule` to be created by this mutation. */ + userSettingsModule: UserSettingsModuleInput; +} +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: 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; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; +} +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; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateConnectedAccountsModuleInput { + clientMutationId?: string; + /** The `ConnectedAccountsModule` to be created by this mutation. */ + connectedAccountsModule: ConnectedAccountsModuleInput; +} +/** An input for mutations affecting `ConnectedAccountsModule` */ +export interface ConnectedAccountsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateEmailsModuleInput { + clientMutationId?: string; + /** The `EmailsModule` to be created by this mutation. */ + emailsModule: EmailsModuleInput; +} +/** An input for mutations affecting `EmailsModule` */ +export interface EmailsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +export interface CreatePhoneNumbersModuleInput { + clientMutationId?: string; + /** The `PhoneNumbersModule` to be created by this mutation. */ + phoneNumbersModule: PhoneNumbersModuleInput; +} +/** An input for mutations affecting `PhoneNumbersModule` */ +export interface PhoneNumbersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateRateLimitsModuleInput { + clientMutationId?: string; + /** The `RateLimitsModule` to be created by this mutation. */ + rateLimitsModule: RateLimitsModuleInput; +} +/** An input for mutations affecting `RateLimitsModule` */ +export interface RateLimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; +} +export interface CreateUsersModuleInput { + clientMutationId?: string; + /** The `UsersModule` to be created by this mutation. */ + usersModule: UsersModuleInput; +} +/** An input for mutations affecting `UsersModule` */ +export interface UsersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateWebauthnCredentialsModuleInput { + clientMutationId?: string; + /** The `WebauthnCredentialsModule` to be created by this mutation. */ + webauthnCredentialsModule: WebauthnCredentialsModuleInput; +} +/** An input for mutations affecting `WebauthnCredentialsModule` */ +export interface WebauthnCredentialsModuleInput { + 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 CreateCryptoAddressesModuleInput { + clientMutationId?: string; + /** The `CryptoAddressesModule` to be created by this mutation. */ + cryptoAddressesModule: CryptoAddressesModuleInput; +} +/** An input for mutations affecting `CryptoAddressesModule` */ +export interface CryptoAddressesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateDenormalizedTableFieldInput { + clientMutationId?: string; + /** The `DenormalizedTableField` to be created by this mutation. */ + denormalizedTableField: DenormalizedTableFieldInput; +} +/** An input for mutations affecting `DenormalizedTableField` */ +export interface DenormalizedTableFieldInput { + 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 CreateRlsModuleInput { + clientMutationId?: string; + /** The `RlsModule` to be created by this mutation. */ + rlsModule: RlsModuleInput; +} +/** An input for mutations affecting `RlsModule` */ +export interface RlsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateBlueprintInput { + clientMutationId?: string; + /** The `Blueprint` to be created by this mutation. */ + blueprint: BlueprintInput; +} +/** An input for mutations affecting `Blueprint` */ +export interface BlueprintInput { + /** 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; + /** 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 CreateCryptoAuthModuleInput { + clientMutationId?: string; + /** The `CryptoAuthModule` to be created by this mutation. */ + cryptoAuthModule: CryptoAuthModuleInput; +} +/** An input for mutations affecting `CryptoAuthModule` */ +export interface CryptoAuthModuleInput { + 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; +} +export interface CreateRateLimitMetersModuleInput { + clientMutationId?: string; + /** The `RateLimitMetersModule` to be created by this mutation. */ + rateLimitMetersModule: RateLimitMetersModuleInput; +} +/** An input for mutations affecting `RateLimitMetersModule` */ +export interface RateLimitMetersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateBlueprintConstructionInput { + clientMutationId?: string; + /** The `BlueprintConstruction` to be created by this mutation. */ + blueprintConstruction: BlueprintConstructionInput; +} +/** An input for mutations affecting `BlueprintConstruction` */ +export interface BlueprintConstructionInput { + /** 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; + /** 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 CreateSessionsModuleInput { + clientMutationId?: string; + /** The `SessionsModule` to be created by this mutation. */ + sessionsModule: SessionsModuleInput; +} +/** An input for mutations affecting `SessionsModule` */ +export interface SessionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: 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; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + createdAt?: string; +} +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + /** The `SecureTableProvision` to be created by this mutation. */ + secureTableProvision: SecureTableProvisionInput; +} +/** An input for mutations affecting `SecureTableProvision` */ +export interface SecureTableProvisionInput { + /** 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; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: unknown; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ + useRls?: boolean; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: unknown[]; + /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ + grants?: unknown; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} +export interface CreateConfigSecretsModuleInput { + clientMutationId?: string; + /** The `ConfigSecretsModule` to be created by this mutation. */ + configSecretsModule: ConfigSecretsModuleInput; +} +/** An input for mutations affecting `ConfigSecretsModule` */ +export interface ConfigSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + hasConfig?: boolean; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + /** The `InvitesModule` to be created by this mutation. */ + invitesModule: InvitesModuleInput; +} +/** An input for mutations affecting `InvitesModule` */ +export interface InvitesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: 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 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 CreateWebauthnAuthModuleInput { + clientMutationId?: string; + /** The `WebauthnAuthModule` to be created by this mutation. */ + webauthnAuthModule: WebauthnAuthModuleInput; +} +/** An input for mutations affecting `WebauthnAuthModule` */ +export interface WebauthnAuthModuleInput { + id?: string; + 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; +} +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; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + /** The `ComputeLogModule` to be created by this mutation. */ + computeLogModule: ComputeLogModuleInput; +} +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + /** The `InferenceLogModule` to be created by this mutation. */ + inferenceLogModule: InferenceLogModuleInput; +} +/** An input for mutations affecting `InferenceLogModule` */ +export interface InferenceLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + /** The `StorageLogModule` to be created by this mutation. */ + storageLogModule: StorageLogModuleInput; +} +/** An input for mutations affecting `StorageLogModule` */ +export interface StorageLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + /** The `TransferLogModule` to be created by this mutation. */ + transferLogModule: TransferLogModuleInput; +} +/** An input for mutations affecting `TransferLogModule` */ +export interface TransferLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + 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; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateGraphModuleInput { + clientMutationId?: string; + /** The `GraphModule` to be created by this mutation. */ + graphModule: GraphModuleInput; +} +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + createdAt?: 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 { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: string; + privateApiName?: 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; + 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 CreateHierarchyModuleInput { + clientMutationId?: string; + /** The `HierarchyModule` to be created by this mutation. */ + hierarchyModule: HierarchyModuleInput; +} +/** An input for mutations affecting `HierarchyModule` */ +export interface HierarchyModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + createdAt?: 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; + 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; + apiName?: string; + privateApiName?: string; +} +export interface CreateBillingProviderModuleInput { + clientMutationId?: string; + /** The `BillingProviderModule` to be created by this mutation. */ + billingProviderModule: BillingProviderModuleInput; +} +/** An input for mutations affecting `BillingProviderModule` */ +export interface BillingProviderModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + 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; + 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 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; + schemaId?: string; + privateSchemaId?: 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 CreateRelationProvisionInput { + clientMutationId?: string; + /** The `RelationProvision` to be created by this mutation. */ + relationProvision: RelationProvisionInput; +} +/** An input for mutations affecting `RelationProvision` */ +export interface RelationProvisionInput { + /** 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. */ + databaseId: 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: string; + /** + * 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: string; + /** + * 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?: string; + /** 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?: string; + /** 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?: unknown; + /** 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?: unknown; + /** + * 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?: unknown; + /** 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?: string; + /** 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?: string; + /** 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?: string; + /** 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; +} +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + /** The `BlueprintTemplate` to be created by this mutation. */ + blueprintTemplate: BlueprintTemplateInput; +} +/** An input for mutations affecting `BlueprintTemplate` */ +export interface BlueprintTemplateInput { + /** Unique identifier for this template. */ + id?: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name: string; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName: string; + /** Optional description of what the template provisions. */ + description?: string; + /** The user who created or published this template. */ + ownerId: string; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[]; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[]; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition: unknown; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** 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?: string; + /** 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?: unknown; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + 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; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + secretDefinitionsTableId?: string; + requirementsTableId?: string; + configDefinitionsTableId?: string; + configRequirementsTableId?: string; + definitionsTableName?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + secretDefinitionsTableName?: string; + requirementsTableName?: string; + configRequirementsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; +} +export interface CreateUserAuthModuleInput { + clientMutationId?: string; + /** The `UserAuthModule` to be created by this mutation. */ + userAuthModule: UserAuthModuleInput; +} +/** An input for mutations affecting `UserAuthModule` */ +export interface UserAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + 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; +} +export interface CreateAgentModuleInput { + clientMutationId?: string; + /** The `AgentModule` to be created by this mutation. */ + agentModule: AgentModuleInput; +} +/** An input for mutations affecting `AgentModule` */ +export interface AgentModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + knowledgeTableId?: string; + planTableId?: string; + skillTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + knowledgeTableName?: string; + planTableName?: string; + skillTableName?: string; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + knowledgeConfig?: unknown; + skillsConfig?: unknown; + knowledgePolicies?: unknown; + provisions?: unknown; +} +export interface CreateLimitsModuleInput { + clientMutationId?: string; + /** The `LimitsModule` to be created by this mutation. */ + limitsModule: LimitsModuleInput; +} +/** An input for mutations affecting `LimitsModule` */ +export interface LimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: 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; + schemaId?: string; + privateSchemaId?: 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; + apiName?: string; + privateApiName?: string; +} +export interface CreateStorageModuleInput { + clientMutationId?: string; + /** The `StorageModule` to be created by this mutation. */ + storageModule: StorageModuleInput; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + databaseOwned?: boolean; + 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; + 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; + schemaId?: string; + privateSchemaId?: 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; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateEntityTypeProvisionInput { + clientMutationId?: string; + /** The `EntityTypeProvision` to be created by this mutation. */ + entityTypeProvision: EntityTypeProvisionInput; +} +/** An input for mutations affecting `EntityTypeProvision` */ +export interface EntityTypeProvisionInput { + /** Unique identifier for this provision row. */ + id?: string; + /** The database to provision this entity type in. Required. */ + databaseId: string; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name: string; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix: string; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: unknown; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: unknown; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: unknown; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: unknown; + agents?: unknown; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: unknown; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[]; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string; + outPathSharesTableId?: string; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outRequirementsTableId?: string; + outConfigRequirementsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: 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 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; + 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 UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. */ + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +/** Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. */ +export interface ConfigSecretsOrgModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: 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 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; + schemaId?: string; + tableId?: string; + tableName?: 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 UpdateConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. */ + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; +} +/** Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. */ +export interface ConfigSecretsUserModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */ + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ +export interface IdentityProvidersModulePatch { + 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; + tableId?: string; + tableName?: string; + apiName?: 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; + id: string; + /** An object where the defined keys will be set on the `EmailsModule` being updated. */ + emailsModulePatch: EmailsModulePatch; +} +/** Represents an update to a `EmailsModule`. Fields that are set will be updated. */ +export interface EmailsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdatePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PhoneNumbersModule` being updated. */ + phoneNumbersModulePatch: PhoneNumbersModulePatch; +} +/** Represents an update to a `PhoneNumbersModule`. Fields that are set will be updated. */ +export interface PhoneNumbersModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: 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 { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UsersModule` being updated. */ + usersModulePatch: UsersModulePatch; +} +/** 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 UpdateWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `WebauthnCredentialsModule` being updated. */ + webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; +} +/** 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 UpdateCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `CryptoAddressesModule` being updated. */ + cryptoAddressesModulePatch: CryptoAddressesModulePatch; +} +/** 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 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 UpdateRlsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RlsModule` being updated. */ + rlsModulePatch: RlsModulePatch; +} +/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ +export interface RlsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateBlueprintInput { + 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; +} +/** 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; + /** 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 UpdateCryptoAuthModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `CryptoAuthModule` being updated. */ + cryptoAuthModulePatch: CryptoAuthModulePatch; +} +/** Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. */ +export interface CryptoAuthModulePatch { + 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; +} +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; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateBlueprintConstructionInput { + 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; +} +/** 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; + /** 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 UpdateSessionsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SessionsModule` being updated. */ + sessionsModulePatch: SessionsModulePatch; +} +/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ +export interface SessionsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} +export interface UpdateMerkleStoreModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MerkleStoreModule` being updated. */ + merkleStoreModulePatch: MerkleStoreModulePatch; +} +/** Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. */ +export interface MerkleStoreModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + createdAt?: string; +} +export interface UpdateSecureTableProvisionInput { + 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; +} +/** 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; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: unknown; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ + useRls?: boolean; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: unknown[]; + /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ + grants?: unknown; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} +export interface UpdateConfigSecretsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConfigSecretsModule` being updated. */ + configSecretsModulePatch: ConfigSecretsModulePatch; +} +/** Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. */ +export interface ConfigSecretsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + hasConfig?: boolean; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `InvitesModule` being updated. */ + invitesModulePatch: InvitesModulePatch; +} +/** Represents an update to a `InvitesModule`. Fields that are set will be updated. */ +export interface InvitesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. */ + databaseProvisionModulePatch: DatabaseProvisionModulePatch; +} +/** 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 ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: 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; +} +export interface UpdateWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `WebauthnAuthModule` being updated. */ + webauthnAuthModulePatch: WebauthnAuthModulePatch; +} +/** 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; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpiry?: IntervalInput; +} +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; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; +} +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ComputeLogModule` being updated. */ + computeLogModulePatch: ComputeLogModulePatch; +} +/** Represents an update to a `ComputeLogModule`. Fields that are set will be updated. */ +export interface ComputeLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `InferenceLogModule` being updated. */ + inferenceLogModulePatch: InferenceLogModulePatch; +} +/** Represents an update to a `InferenceLogModule`. Fields that are set will be updated. */ +export interface InferenceLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `StorageLogModule` being updated. */ + storageLogModulePatch: StorageLogModulePatch; +} +/** Represents an update to a `StorageLogModule`. Fields that are set will be updated. */ +export interface StorageLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TransferLogModule` being updated. */ + transferLogModulePatch: TransferLogModulePatch; +} +/** Represents an update to a `TransferLogModule`. Fields that are set will be updated. */ +export interface TransferLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + 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; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateGraphModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `GraphModule` being updated. */ + graphModulePatch: GraphModulePatch; +} +/** Represents an update to a `GraphModule`. Fields that are set will be updated. */ +export interface GraphModulePatch { + id?: string; + databaseId?: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId?: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + createdAt?: string; +} +export interface UpdateNotificationsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ + notificationsModulePatch: NotificationsModulePatch; +} +/** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */ +export interface NotificationsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: string; + privateApiName?: 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; + 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 UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `HierarchyModule` being updated. */ + hierarchyModulePatch: HierarchyModulePatch; +} +/** Represents an update to a `HierarchyModule`. Fields that are set will be updated. */ +export interface HierarchyModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId?: string; + usersTableId?: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + createdAt?: 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; + 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; + apiName?: string; + privateApiName?: string; +} +export interface UpdateBillingProviderModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `BillingProviderModule` being updated. */ + billingProviderModulePatch: BillingProviderModulePatch; +} +/** Represents an update to a `BillingProviderModule`. Fields that are set will be updated. */ +export interface BillingProviderModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + 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; + 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 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; + 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 UpdateRelationProvisionInput { + clientMutationId?: string; + /** Unique identifier for this relation provision row. */ + id: string; + /** An object where the defined keys will be set on the `RelationProvision` being updated. */ + relationProvisionPatch: RelationProvisionPatch; +} +/** Represents an update to a `RelationProvision`. Fields that are set will be updated. */ +export interface RelationProvisionPatch { + /** 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. */ + databaseId?: 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?: string; + /** + * 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?: string; + /** + * 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?: string; + /** 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?: string; + /** 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?: unknown; + /** 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?: unknown; + /** + * 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?: unknown; + /** 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?: string; + /** 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?: string; + /** 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?: string; + /** 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; +} +export interface UpdateBlueprintTemplateInput { + clientMutationId?: string; + /** Unique identifier for this template. */ + id: string; + /** An object where the defined keys will be set on the `BlueprintTemplate` being updated. */ + blueprintTemplatePatch: BlueprintTemplatePatch; +} +/** Represents an update to a `BlueprintTemplate`. Fields that are set will be updated. */ +export interface BlueprintTemplatePatch { + /** Unique identifier for this template. */ + id?: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string; + /** Optional description of what the template provisions. */ + description?: string; + /** The user who created or published this template. */ + ownerId?: string; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[]; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[]; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: unknown; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** 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?: string; + /** 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?: unknown; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + updatedAt?: 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; + invocationsTableId?: string; + executionLogsTableId?: string; + secretDefinitionsTableId?: string; + requirementsTableId?: string; + configDefinitionsTableId?: string; + configRequirementsTableId?: string; + definitionsTableName?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + secretDefinitionsTableName?: string; + requirementsTableName?: string; + configRequirementsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; +} +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserAuthModule` being updated. */ + userAuthModulePatch: UserAuthModulePatch; +} +/** Represents an update to a `UserAuthModule`. Fields that are set will be updated. */ +export interface UserAuthModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + 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; +} +export interface UpdateAgentModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentModule` being updated. */ + agentModulePatch: AgentModulePatch; +} +/** Represents an update to a `AgentModule`. Fields that are set will be updated. */ +export interface AgentModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + knowledgeTableId?: string; + planTableId?: string; + skillTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + knowledgeTableName?: string; + planTableName?: string; + skillTableName?: string; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: unknown; + knowledgeConfig?: unknown; + skillsConfig?: unknown; + knowledgePolicies?: unknown; + provisions?: unknown; +} +export interface UpdateLimitsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `LimitsModule` being updated. */ + limitsModulePatch: LimitsModulePatch; +} +/** Represents an update to a `LimitsModule`. Fields that are set will be updated. */ +export interface LimitsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + 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; + 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; + apiName?: string; + privateApiName?: string; +} +export interface UpdateStorageModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `StorageModule` being updated. */ + storageModulePatch: StorageModulePatch; +} +/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ +export interface StorageModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + databaseOwned?: boolean; + 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; + apiName?: string; + privateApiName?: string; +} +export interface UpdateEventsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `EventsModule` being updated. */ + eventsModulePatch: EventsModulePatch; +} +/** Represents an update to a `EventsModule`. Fields that are set will be updated. */ +export interface EventsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: 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; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateEntityTypeProvisionInput { + clientMutationId?: string; + /** Unique identifier for this provision row. */ + id: string; + /** An object where the defined keys will be set on the `EntityTypeProvision` being updated. */ + entityTypeProvisionPatch: EntityTypeProvisionPatch; +} +/** Represents an update to a `EntityTypeProvision`. Fields that are set will be updated. */ +export interface EntityTypeProvisionPatch { + /** Unique identifier for this provision row. */ + id?: string; + /** The database to provision this entity type in. Required. */ + databaseId?: string; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name?: string; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix?: string; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: unknown; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: unknown; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: unknown; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: unknown; + agents?: unknown; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: unknown; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[]; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string; + outPathSharesTableId?: string; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outRequirementsTableId?: string; + outConfigRequirementsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; +} +export interface DeleteDefaultIdsModuleInput { + clientMutationId?: string; + id: string; +} +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; +} +export interface DeleteI18NModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUserCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUserSettingsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmailsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeletePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRateLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUsersModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRlsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteBlueprintInput { + clientMutationId?: string; + /** Unique identifier for this blueprint. */ + id: string; +} +export interface DeleteCryptoAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteBlueprintConstructionInput { + clientMutationId?: string; + /** Unique identifier for this construction attempt. */ + id: string; +} +export interface DeleteSessionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteMerkleStoreModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + /** Unique identifier for this provision row. */ + id: string; +} +export interface DeleteConfigSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRealtimeModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteNamespaceModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteGraphModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteNotificationsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlansModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteHierarchyModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteBillingProviderModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeletePermissionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + /** Unique identifier for this relation provision row. */ + id: string; +} +export interface DeleteBlueprintTemplateInput { + clientMutationId?: string; + /** Unique identifier for this template. */ + id: string; +} +export interface DeleteFunctionModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteStorageModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEventsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEntityTypeProvisionInput { + clientMutationId?: string; + /** Unique identifier for this provision row. */ + 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 `DefaultIdsModule` values. */ +export interface DefaultIdsModuleConnection { + nodes: DefaultIdsModule[]; + edges: DefaultIdsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MembershipTypesModule` values. */ +export interface MembershipTypesModuleConnection { + nodes: MembershipTypesModule[]; + edges: MembershipTypesModuleEdge[]; + 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[]; + edges: SessionSecretsModuleEdge[]; + 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[]; + edges: DevicesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `I18NModule` values. */ +export interface I18NModuleConnection { + nodes: I18NModule[]; + edges: I18NModuleEdge[]; + 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[]; + edges: UserSettingsModuleEdge[]; + 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 `IdentityProvidersModule` values. */ +export interface IdentityProvidersModuleConnection { + nodes: IdentityProvidersModule[]; + edges: IdentityProvidersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ConnectedAccountsModule` values. */ +export interface ConnectedAccountsModuleConnection { + nodes: ConnectedAccountsModule[]; + edges: ConnectedAccountsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `EmailsModule` values. */ +export interface EmailsModuleConnection { + nodes: EmailsModule[]; + edges: EmailsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PhoneNumbersModule` values. */ +export interface PhoneNumbersModuleConnection { + nodes: PhoneNumbersModule[]; + edges: PhoneNumbersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `RateLimitsModule` values. */ +export interface RateLimitsModuleConnection { + nodes: RateLimitsModule[]; + edges: RateLimitsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UsersModule` values. */ +export interface UsersModuleConnection { + nodes: UsersModule[]; + edges: UsersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `WebauthnCredentialsModule` values. */ +export interface WebauthnCredentialsModuleConnection { + nodes: WebauthnCredentialsModule[]; + edges: WebauthnCredentialsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CryptoAddressesModule` values. */ +export interface CryptoAddressesModuleConnection { + nodes: CryptoAddressesModule[]; + edges: CryptoAddressesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DenormalizedTableField` values. */ +export interface DenormalizedTableFieldConnection { + nodes: DenormalizedTableField[]; + edges: DenormalizedTableFieldEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `RlsModule` values. */ +export interface RlsModuleConnection { + nodes: RlsModule[]; + edges: RlsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Blueprint` values. */ +export interface BlueprintConnection { + nodes: Blueprint[]; + edges: BlueprintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CryptoAuthModule` values. */ +export interface CryptoAuthModuleConnection { + nodes: CryptoAuthModule[]; + edges: CryptoAuthModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `RateLimitMetersModule` values. */ +export interface RateLimitMetersModuleConnection { + nodes: RateLimitMetersModule[]; + edges: RateLimitMetersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `BlueprintConstruction` values. */ +export interface BlueprintConstructionConnection { + nodes: BlueprintConstruction[]; + edges: BlueprintConstructionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SessionsModule` values. */ +export interface SessionsModuleConnection { + nodes: SessionsModule[]; + edges: SessionsModuleEdge[]; + 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 `SecureTableProvision` values. */ +export interface SecureTableProvisionConnection { + nodes: SecureTableProvision[]; + edges: SecureTableProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ConfigSecretsModule` values. */ +export interface ConfigSecretsModuleConnection { + nodes: ConfigSecretsModule[]; + edges: ConfigSecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InvitesModule` values. */ +export interface InvitesModuleConnection { + nodes: InvitesModule[]; + edges: InvitesModuleEdge[]; + 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 `RealtimeModule` values. */ +export interface RealtimeModuleConnection { + nodes: RealtimeModule[]; + edges: RealtimeModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `WebauthnAuthModule` values. */ +export interface WebauthnAuthModuleConnection { + nodes: WebauthnAuthModule[]; + edges: WebauthnAuthModuleEdge[]; + 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 `ComputeLogModule` values. */ +export interface ComputeLogModuleConnection { + nodes: ComputeLogModule[]; + edges: ComputeLogModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InferenceLogModule` values. */ +export interface InferenceLogModuleConnection { + nodes: InferenceLogModule[]; + edges: InferenceLogModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `StorageLogModule` values. */ +export interface StorageLogModuleConnection { + nodes: StorageLogModule[]; + edges: StorageLogModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TransferLogModule` values. */ +export interface TransferLogModuleConnection { + nodes: TransferLogModule[]; + edges: TransferLogModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `GraphModule` values. */ +export interface GraphModuleConnection { + nodes: GraphModule[]; + edges: GraphModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `NotificationsModule` values. */ +export interface NotificationsModuleConnection { + nodes: NotificationsModule[]; + edges: NotificationsModuleEdge[]; + 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 `HierarchyModule` values. */ +export interface HierarchyModuleConnection { + nodes: HierarchyModule[]; + edges: HierarchyModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `BillingModule` values. */ +export interface BillingModuleConnection { + nodes: BillingModule[]; + edges: BillingModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `BillingProviderModule` values. */ +export interface BillingProviderModuleConnection { + nodes: BillingProviderModule[]; + edges: BillingProviderModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ProfilesModule` values. */ +export interface ProfilesModuleConnection { + nodes: ProfilesModule[]; + edges: ProfilesModuleEdge[]; + 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 `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 `FunctionModule` values. */ +export interface FunctionModuleConnection { + nodes: FunctionModule[]; + edges: FunctionModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UserAuthModule` values. */ +export interface UserAuthModuleConnection { + nodes: UserAuthModule[]; + edges: UserAuthModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AgentModule` values. */ +export interface AgentModuleConnection { + nodes: AgentModule[]; + edges: AgentModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `LimitsModule` values. */ +export interface LimitsModuleConnection { + nodes: LimitsModule[]; + edges: LimitsModuleEdge[]; + 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 `StorageModule` values. */ +export interface StorageModuleConnection { + nodes: StorageModule[]; + edges: StorageModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `EventsModule` values. */ +export interface EventsModuleConnection { + nodes: EventsModule[]; + edges: EventsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `EntityTypeProvision` values. */ +export interface EntityTypeProvisionConnection { + nodes: EntityTypeProvision[]; + edges: EntityTypeProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface ConstructBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ProvisionFullTextSearchPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ProvisionIndexPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ProvisionCheckConstraintPayload { + clientMutationId?: string | null; +} +export interface ProvisionUniqueConstraintPayload { + clientMutationId?: string | null; +} +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ProvisionSpatialRelationPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ProvisionTablePayload { + clientMutationId?: string | null; + result?: ProvisionTableRecord[] | null; +} +export interface ProvisionRelationPayload { + clientMutationId?: string | null; + result?: ProvisionRelationRecord[] | null; +} +export interface CreateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was created by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was created by this mutation. */ + 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. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export interface CreateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was created by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export interface CreateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export interface CreateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was created by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface CreateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was created by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export interface CreateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface CreateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export interface CreateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was created by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export interface CreateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export interface CreateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was created by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export interface CreateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface CreateRealtimeModulePayload { + clientMutationId?: string | null; + /** The `RealtimeModule` that was created by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; +} +export interface CreateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export interface CreateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export interface CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export interface CreateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was created by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export interface CreateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export interface CreatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} +export interface CreateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was created by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface CreateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export interface CreateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface CreatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | 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 CreateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export interface CreateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was created by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface CreateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was created by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was created by this mutation. */ + 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 CreateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was created by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export interface CreateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was created by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was updated by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was updated by this mutation. */ + 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. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export interface UpdateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was updated by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export interface UpdateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface UpdateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was updated by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export interface UpdateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface UpdateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export interface UpdateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was updated by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export interface UpdateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was updated by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export interface UpdateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface UpdateRealtimeModulePayload { + clientMutationId?: string | null; + /** The `RealtimeModule` that was updated by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; +} +export interface UpdateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export interface UpdateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export interface UpdateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was updated by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export interface UpdateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export interface UpdatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was updated by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export interface UpdateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was updated by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface UpdatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | 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 UpdateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was updated by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface UpdateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was updated by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was updated by this mutation. */ + 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 UpdateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was updated by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export interface UpdateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was updated by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was deleted by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was deleted by this mutation. */ + 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. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export interface DeleteI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was deleted by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export interface DeleteUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface DeleteWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface DeleteRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export interface DeleteBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was deleted by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export interface DeleteMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was deleted by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export interface DeleteConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface DeleteRealtimeModulePayload { + clientMutationId?: string | null; + /** The `RealtimeModule` that was deleted by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; +} +export interface DeleteWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export interface DeleteNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export interface DeleteGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was deleted by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export interface DeleteNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export interface DeletePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was deleted by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface DeleteBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export interface DeleteBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was deleted by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface DeletePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | 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 DeleteFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was deleted by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface DeleteAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was deleted by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was deleted by this mutation. */ + 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 DeleteStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was deleted by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export interface DeleteEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was deleted by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | 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 `DefaultIdsModule` edge in the connection. */ +export interface DefaultIdsModuleEdge { + cursor?: string | null; + /** The `DefaultIdsModule` at the end of the edge. */ + node?: DefaultIdsModule | 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 `MembershipTypesModule` edge in the connection. */ +export interface MembershipTypesModuleEdge { + cursor?: string | null; + /** 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; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; +} +/** A `I18NModule` edge in the connection. */ +export interface I18NModuleEdge { + cursor?: string | null; + /** 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 { + cursor?: string | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | 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 `ConnectedAccountsModule` edge in the connection. */ +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + /** The `ConnectedAccountsModule` at the end of the edge. */ + node?: ConnectedAccountsModule | null; +} +/** A `EmailsModule` edge in the connection. */ +export interface EmailsModuleEdge { + cursor?: string | null; + /** The `EmailsModule` at the end of the edge. */ + node?: EmailsModule | null; +} +/** A `PhoneNumbersModule` edge in the connection. */ +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + /** The `PhoneNumbersModule` at the end of the edge. */ + node?: PhoneNumbersModule | null; +} +/** A `RateLimitsModule` edge in the connection. */ +export interface RateLimitsModuleEdge { + cursor?: string | null; + /** The `RateLimitsModule` at the end of the edge. */ + node?: RateLimitsModule | null; +} +/** A `UsersModule` edge in the connection. */ +export interface UsersModuleEdge { + cursor?: string | null; + /** The `UsersModule` at the end of the edge. */ + node?: UsersModule | null; +} +/** A `WebauthnCredentialsModule` edge in the connection. */ +export interface WebauthnCredentialsModuleEdge { + cursor?: string | null; + /** The `WebauthnCredentialsModule` at the end of the edge. */ + node?: WebauthnCredentialsModule | null; +} +/** A `CryptoAddressesModule` edge in the connection. */ +export interface CryptoAddressesModuleEdge { + cursor?: string | null; + /** The `CryptoAddressesModule` at the end of the edge. */ + node?: CryptoAddressesModule | null; +} +/** A `DenormalizedTableField` edge in the connection. */ +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + /** The `DenormalizedTableField` at the end of the edge. */ + node?: DenormalizedTableField | null; +} +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { + cursor?: string | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; +} +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} +/** A `CryptoAuthModule` edge in the connection. */ +export interface CryptoAuthModuleEdge { + cursor?: string | null; + /** The `CryptoAuthModule` at the end of the edge. */ + node?: CryptoAuthModule | null; +} +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; +} +/** A `BlueprintConstruction` edge in the connection. */ +export interface BlueprintConstructionEdge { + cursor?: string | null; + /** The `BlueprintConstruction` at the end of the edge. */ + node?: BlueprintConstruction | null; +} +/** A `SessionsModule` edge in the connection. */ +export interface SessionsModuleEdge { + cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ + node?: SessionsModule | 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 `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} +/** A `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | 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 `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; +} +/** A `RealtimeModule` edge in the connection. */ +export interface RealtimeModuleEdge { + cursor?: string | null; + /** The `RealtimeModule` at the end of the edge. */ + node?: RealtimeModule | null; +} +/** A `WebauthnAuthModule` edge in the connection. */ +export interface WebauthnAuthModuleEdge { + cursor?: string | null; + /** The `WebauthnAuthModule` at the end of the edge. */ + node?: WebauthnAuthModule | 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 `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; +} +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | 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 `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { + cursor?: string | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | 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 `HierarchyModule` edge in the connection. */ +export interface HierarchyModuleEdge { + cursor?: string | null; + /** The `HierarchyModule` at the end of the edge. */ + node?: HierarchyModule | null; +} +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { + cursor?: string | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; +} +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { + cursor?: string | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; +} +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { + cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | 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 `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 `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +/** A `UserAuthModule` edge in the connection. */ +export interface UserAuthModuleEdge { + cursor?: string | null; + /** The `UserAuthModule` at the end of the edge. */ + node?: UserAuthModule | null; +} +/** A `AgentModule` edge in the connection. */ +export interface AgentModuleEdge { + cursor?: string | null; + /** The `AgentModule` at the end of the edge. */ + node?: AgentModule | null; +} +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { + cursor?: string | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; +} +/** A `MembershipsModule` edge in the connection. */ +export interface MembershipsModuleEdge { + cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ + node?: MembershipsModule | null; +} +/** A `StorageModule` edge in the connection. */ +export interface StorageModuleEdge { + cursor?: string | null; + /** The `StorageModule` at the end of the edge. */ + node?: StorageModule | null; +} +/** A `EventsModule` edge in the connection. */ +export interface EventsModuleEdge { + cursor?: string | null; + /** The `EventsModule` at the end of the edge. */ + node?: EventsModule | null; +} +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | 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; +} +export interface ProvisionTableRecord { + outTableId?: string | null; + outFields?: string[] | null; +} +export interface ProvisionRelationRecord { + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | 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; +} +/** 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; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; + subtype?: string | null; +} +/** 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; +} diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts new file mode 100644 index 0000000000..f53ece346e --- /dev/null +++ b/sdk/constructive-react/src/modules/types.ts @@ -0,0 +1,1254 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface DefaultIdsModule { + id: string | null; + databaseId: string | null; +} +export interface MembershipTypesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + 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; + schemaId: string | null; + tableId: string | null; + 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; + schemaId: string | null; + userDevicesTableId: string | null; + deviceSettingsTableId: string | null; + userDevicesTable: string | null; + deviceSettingsTable: string | null; +} +export interface I18NModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + settingsTableId: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface UserCredentialsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface UserSettingsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + apiName: string | null; +} +export interface ConfigSecretsUserModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + configDefinitionsTableId: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface IdentityProvidersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface ConnectedAccountsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface EmailsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface PhoneNumbersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface RateLimitsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + rateLimitSettingsTableId: string | null; + ipRateLimitsTableId: string | null; + rateLimitsTableId: string | null; + rateLimitSettingsTable: string | null; + ipRateLimitsTable: string | null; + rateLimitsTable: string | null; +} +export interface UsersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + typeTableId: string | null; + typeTableName: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface WebauthnCredentialsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface CryptoAddressesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + cryptoNetwork: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface DenormalizedTableField { + id: string | null; + databaseId: string | null; + tableId: string | null; + fieldId: string | null; + setIds: string[] | null; + refTableId: string | null; + refFieldId: string | null; + refIds: string[] | null; + useUpdates: boolean | null; + updateDefaults: boolean | null; + funcName: string | null; + funcOrder: number | null; +} +export interface RlsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + sessionCredentialsTableId: string | null; + sessionsTableId: string | null; + usersTableId: string | null; + authenticate: string | null; + authenticateStrict: string | null; + currentRole: string | null; + currentRoleId: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface Blueprint { + id: string | null; + ownerId: string | null; + databaseId: string | null; + name: string | null; + displayName: string | null; + description: string | null; + definition: unknown | null; + templateId: string | null; + definitionHash: string | null; + tableHashes: unknown | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface BlueprintTemplate { + id: string | null; + name: string | null; + version: string | null; + displayName: string | null; + description: string | null; + ownerId: string | null; + visibility: string | null; + categories: string[] | null; + tags: string[] | null; + definition: unknown | null; + definitionSchemaVersion: string | null; + source: string | null; + complexity: string | null; + copyCount: number | null; + forkCount: number | null; + forkedFromId: string | null; + definitionHash: string | null; + tableHashes: unknown | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface BlueprintConstruction { + id: string | null; + blueprintId: string | null; + databaseId: string | null; + schemaId: string | null; + status: string | null; + errorDetails: string | null; + tableMap: unknown | null; + constructedDefinition: unknown | null; + constructedAt: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface CryptoAuthModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + usersTableId: string | null; + secretsTableId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + addressesTableId: string | null; + userField: string | null; + cryptoNetwork: string | null; + signInRequestChallenge: string | null; + signInRecordFailure: string | null; + signUpWithKey: string | null; + signInWithChallenge: string | null; +} +export interface RateLimitMetersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + rateLimitStateTableId: string | null; + rateLimitStateTableName: string | null; + rateLimitOverridesTableId: string | null; + rateLimitOverridesTableName: string | null; + rateWindowLimitsTableId: string | null; + rateWindowLimitsTableName: string | null; + checkRateLimitFunction: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface SessionsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + authSettingsTableId: string | null; + usersTableId: string | null; + sessionsDefaultExpiration: string | null; + sessionsTable: string | null; + sessionCredentialsTable: string | null; + authSettingsTable: string | null; +} +export interface MerkleStoreModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + objectTableId: string | null; + storeTableId: string | null; + commitTableId: string | null; + refTableId: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; + databaseOwned: boolean | null; + createdAt: string | null; +} +export interface GraphModule { + id: string | null; + databaseId: string | null; + publicSchemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + scope: string | null; + prefix: string | null; + merkleStoreModuleId: string | null; + graphsTableId: string | null; + executionsTableId: string | null; + outputsTableId: string | null; + apiName: string | null; + privateApiName: string | null; + databaseOwned: boolean | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; + createdAt: string | null; +} +export interface SecureTableProvision { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + nodes: unknown | null; + useRls: boolean | null; + fields: unknown[] | null; + grants: unknown | null; + policies: unknown | null; + outFields: string[] | null; +} +export interface ConfigSecretsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + configDefinitionsTableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + databaseOwned: boolean | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; + hasConfig: boolean | null; +} +export interface InvitesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: 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; + prefix: string | null; + entityTableId: string | null; + apiName: string | null; + privateApiName: 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; + databaseId: string | null; + createdAt: string | null; + updatedAt: string | null; + completedAt: 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 WebauthnAuthModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + usersTableId: string | null; + credentialsTableId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + sessionSecretsTableId: string | null; + authSettingsTableId: string | null; + rpId: string | null; + rpName: string | null; + originAllowlist: string[] | null; + attestationType: string | null; + requireUserVerification: boolean | null; + residentKey: string | null; + challengeExpiry: 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; + databaseOwned: boolean | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; +} +export interface ComputeLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + computeLogTableId: string | null; + computeLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface InferenceLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + inferenceLogTableId: string | null; + inferenceLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface StorageLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + storageLogTableId: string | null; + storageLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface TransferLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + transferLogTableId: string | null; + transferLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface DbUsageModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableStatsLogTableId: string | null; + tableStatsLogTableName: string | null; + tableStatsDailyTableId: string | null; + tableStatsDailyTableName: string | null; + queryStatsLogTableId: string | null; + queryStatsLogTableName: string | null; + queryStatsDailyTableId: string | null; + queryStatsDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface NotificationsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + notificationsTableId: string | null; + readStateTableId: string | null; + preferencesTableId: string | null; + channelsTableId: string | null; + deliveryLogTableId: string | null; + ownerTableId: string | null; + userSettingsTableId: string | null; + organizationSettingsTableId: string | null; + hasChannels: boolean | null; + hasPreferences: boolean | null; + hasSettingsExtension: boolean | null; + hasDigestMetadata: boolean | null; + hasSubscriptions: boolean | null; + apiName: string | null; + privateApiName: string | null; +} +export interface PlansModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: 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 HierarchyModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + chartEdgesTableId: string | null; + chartEdgesTableName: string | null; + hierarchySprtTableId: string | null; + hierarchySprtTableName: string | null; + chartEdgeGrantsTableId: string | null; + chartEdgeGrantsTableName: string | null; + entityTableId: string | null; + usersTableId: string | null; + scope: string | null; + prefix: string | null; + privateSchemaName: string | null; + sprtTableName: string | null; + rebuildHierarchyFunction: string | null; + getSubordinatesFunction: string | null; + getManagersFunction: string | null; + isManagerOfFunction: string | null; + createdAt: string | null; +} +export interface BillingModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + metersTableId: string | null; + metersTableName: string | null; + planSubscriptionsTableId: string | null; + planSubscriptionsTableName: string | null; + ledgerTableId: string | null; + ledgerTableName: string | null; + balancesTableId: string | null; + balancesTableName: string | null; + meterCreditsTableId: string | null; + meterCreditsTableName: string | null; + meterSourcesTableId: string | null; + meterSourcesTableName: string | null; + meterDefaultsTableId: string | null; + meterDefaultsTableName: string | null; + recordUsageFunction: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface BillingProviderModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + provider: string | null; + productsTableId: string | null; + pricesTableId: string | null; + subscriptionsTableId: string | null; + billingCustomersTableId: string | null; + billingCustomersTableName: string | null; + billingProductsTableId: string | null; + billingProductsTableName: string | null; + billingPricesTableId: string | null; + billingPricesTableName: string | null; + billingSubscriptionsTableId: string | null; + billingSubscriptionsTableName: string | null; + billingWebhookEventsTableId: string | null; + billingWebhookEventsTableName: string | null; + processBillingEventFunction: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface ProfilesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: 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 PermissionsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: 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 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 FunctionModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + definitionsTableId: string | null; + invocationsTableId: string | null; + executionLogsTableId: string | null; + secretDefinitionsTableId: string | null; + requirementsTableId: string | null; + configDefinitionsTableId: string | null; + configRequirementsTableId: string | null; + definitionsTableName: string | null; + invocationsTableName: string | null; + executionLogsTableName: string | null; + secretDefinitionsTableName: string | null; + requirementsTableName: string | null; + configRequirementsTableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + databaseOwned: boolean | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; +} +export interface UserAuthModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + emailsTableId: string | null; + usersTableId: string | null; + secretsTableId: string | null; + encryptedTableId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + auditsTableId: string | null; + auditsTableName: string | null; + signInFunction: string | null; + signUpFunction: string | null; + signOutFunction: string | null; + setPasswordFunction: string | null; + resetPasswordFunction: string | null; + forgotPasswordFunction: string | null; + sendVerificationEmailFunction: string | null; + verifyEmailFunction: string | null; + verifyPasswordFunction: string | null; + checkPasswordFunction: string | null; + sendAccountDeletionEmailFunction: string | null; + deleteAccountFunction: string | null; + signInCrossOriginFunction: string | null; + requestCrossOriginTokenFunction: string | null; + extendTokenExpires: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface AgentModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + threadTableId: string | null; + messageTableId: string | null; + taskTableId: string | null; + promptsTableId: string | null; + knowledgeTableId: string | null; + planTableId: string | null; + skillTableId: string | null; + threadTableName: string | null; + messageTableName: string | null; + taskTableName: string | null; + promptsTableName: string | null; + knowledgeTableName: string | null; + planTableName: string | null; + skillTableName: string | null; + hasKnowledge: boolean | null; + hasPlans: boolean | null; + hasSkills: boolean | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + databaseOwned: boolean | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + knowledgeConfig: unknown | null; + skillsConfig: unknown | null; + knowledgePolicies: unknown | null; + provisions: unknown | null; +} +export interface LimitsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + tableName: string | null; + defaultTableId: string | null; + defaultTableName: string | null; + limitIncrementFunction: string | null; + limitDecrementFunction: string | null; + limitIncrementTrigger: string | null; + limitDecrementTrigger: string | null; + limitUpdateTrigger: string | null; + limitCheckFunction: string | null; + limitCreditsTableId: string | null; + eventsTableId: string | null; + creditCodesTableId: string | null; + creditCodeItemsTableId: string | null; + creditRedemptionsTableId: string | null; + aggregateTableId: string | null; + limitCapsTableId: string | null; + limitCapsDefaultsTableId: string | null; + capCheckTrigger: string | null; + resolveCapFunction: string | null; + limitWarningsTableId: string | null; + limitWarningStateTableId: string | null; + limitCheckSoftFunction: string | null; + limitAggregateCheckSoftFunction: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + actorTableId: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface MembershipsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: 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; + apiName: string | null; + privateApiName: string | null; +} +export interface StorageModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + bucketsTableId: string | null; + filesTableId: string | null; + bucketsTableName: string | null; + filesTableName: string | null; + scope: string | null; + databaseOwned: boolean | null; + prefix: string | null; + policies: unknown | null; + provisions: unknown | null; + entityTableId: string | null; + endpoint: string | null; + publicUrlPrefix: string | null; + provider: string | null; + allowedOrigins: string[] | null; + restrictReads: boolean | null; + hasPathShares: boolean | null; + pathSharesTableId: string | null; + uploadUrlExpirySeconds: number | null; + downloadUrlExpirySeconds: number | null; + defaultMaxFileSize: string | null; + maxFilenameLength: number | null; + cacheTtlSeconds: number | null; + maxBulkFiles: number | null; + maxBulkTotalSize: string | null; + hasVersioning: boolean | null; + hasContentHash: boolean | null; + hasCustomKeys: boolean | null; + hasAuditLog: boolean | null; + hasConfirmUpload: boolean | null; + confirmUploadDelay: string | null; + fileEventsTableId: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface EventsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + eventsTableId: string | null; + eventsTableName: string | null; + eventAggregatesTableId: string | null; + eventAggregatesTableName: string | null; + eventTypesTableId: string | null; + eventTypesTableName: string | null; + levelsTableId: string | null; + levelsTableName: string | null; + levelRequirementsTableId: string | null; + levelRequirementsTableName: string | null; + levelGrantsTableId: string | null; + levelGrantsTableName: string | null; + achievementRewardsTableId: string | null; + achievementRewardsTableName: string | null; + recordEvent: string | null; + removeEvent: string | null; + tgEvent: string | null; + tgEventToggle: string | null; + tgEventToggleBool: string | null; + tgEventBool: string | null; + upsertAggregate: string | null; + tgUpdateAggregates: string | null; + pruneEvents: string | null; + stepsRequired: string | null; + levelAchieved: string | null; + tgCheckAchievements: string | null; + grantAchievement: string | null; + tgAchievementReward: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + databaseOwned: boolean | null; + prefix: string | null; + entityTableId: string | null; + actorTableId: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface EntityTypeProvision { + id: string | null; + databaseId: string | null; + name: string | null; + prefix: string | null; + description: string | null; + parentEntity: string | null; + tableName: string | null; + isVisible: boolean | null; + hasLimits: boolean | null; + hasProfiles: boolean | null; + hasLevels: boolean | null; + hasInvites: boolean | null; + hasInviteAchievements: boolean | null; + storage: unknown | null; + namespaces: unknown | null; + functions: unknown | null; + graphs: unknown | null; + agents: unknown | null; + skipEntityPolicies: boolean | null; + tableProvision: unknown | null; + outMembershipType: number | null; + outEntityTableId: string | null; + outEntityTableName: string | null; + outInstalledModules: string[] | null; + outStorageModuleId: string | null; + outBucketsTableId: string | null; + outFilesTableId: string | null; + outPathSharesTableId: string | null; + outInvitesModuleId: string | null; + outNamespaceModuleId: string | null; + outNamespacesTableId: string | null; + outNamespaceEventsTableId: string | null; + outFunctionModuleId: string | null; + outDefinitionsTableId: string | null; + outInvocationsTableId: string | null; + outExecutionLogsTableId: string | null; + outSecretDefinitionsTableId: string | null; + outRequirementsTableId: string | null; + outConfigRequirementsTableId: string | null; + outGraphModuleId: string | null; + outGraphsTableId: string | null; + outAgentModuleId: 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/objects/README.md b/sdk/constructive-react/src/objects/README.md index ee41f2e400..e83f78ee5e 100644 --- a/sdk/constructive-react/src/objects/README.md +++ b/sdk/constructive-react/src/objects/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 5 -- **Custom queries:** 4 -- **Custom mutations:** 9 +- **Custom queries:** 0 +- **Custom mutations:** 4 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 56cbbcb51c..646b83d985 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -34,38 +34,29 @@ function App() { |------|------|-------------| | `useGetAllQuery` | Query | List all getAll | | `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | -| `useObjectsQuery` | Query | List all objects | -| `useObjectQuery` | Query | Get one object | -| `useCreateObjectMutation` | Mutation | Create a object | -| `useUpdateObjectMutation` | Mutation | Update a object | -| `useDeleteObjectMutation` | Mutation | Delete a object | -| `useRefsQuery` | Query | A ref is a data structure for pointing to a commit. | -| `useRefQuery` | Query | A ref is a data structure for pointing to a commit. | -| `useCreateRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | -| `useUpdateRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | -| `useDeleteRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | -| `useStoresQuery` | Query | A store represents an isolated object repository within a database. | -| `useStoreQuery` | Query | A store represents an isolated object repository within a database. | -| `useCreateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | -| `useUpdateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | -| `useDeleteStoreMutation` | Mutation | A store represents an isolated object repository within a database. | -| `useCommitsQuery` | Query | A commit records changes to the repository. | -| `useCommitQuery` | Query | A commit records changes to the repository. | -| `useCreateCommitMutation` | Mutation | A commit records changes to the repository. | -| `useUpdateCommitMutation` | Mutation | A commit records changes to the repository. | -| `useDeleteCommitMutation` | Mutation | A commit records changes to the repository. | -| `useRevParseQuery` | Query | revParse | -| `useGetAllObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | -| `useGetPathObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | -| `useGetObjectAtPathQuery` | Query | getObjectAtPath | -| `useFreezeObjectsMutation` | Mutation | freezeObjects | +| `useRefsQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useRefQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useCreateRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useUpdateRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useDeleteRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useStoresQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useStoreQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useCreateStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useUpdateStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useDeleteStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useCreateObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useUpdateObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useDeleteObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useCommitsQuery` | Query | Commit history — each commit snapshots a tree root for a store | +| `useCommitQuery` | Query | Commit history — each commit snapshots a tree root for a store | +| `useCreateCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | +| `useUpdateCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | +| `useDeleteCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | -| `useRemoveNodeAtPathMutation` | Mutation | removeNodeAtPath | | `useSetDataAtPathMutation` | Mutation | setDataAtPath | -| `useSetPropsAndCommitMutation` | Mutation | setPropsAndCommit | | `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | -| `useUpdateNodeAtPathMutation` | Mutation | updateNodeAtPath | -| `useSetAndCommitMutation` | Mutation | setAndCommit | | `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, @@ -88,27 +79,6 @@ const { mutate: create } = useCreateGetAllRecordMutation({ create({ path: '', data: '' }); ``` -### Object - -```typescript -// List all objects -const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Get one object -const { data: item } = useObjectQuery({ - id: '', - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Create a object -const { mutate: create } = useCreateObjectMutation({ - selection: { fields: { id: true } }, -}); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); -``` - ### Ref ```typescript @@ -151,6 +121,27 @@ const { mutate: create } = useCreateStoreMutation({ create({ name: '', databaseId: '', hash: '' }); ``` +### Object + +```typescript +// List all objects +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); + +// Get one object +const { data: item } = useObjectQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); + +// Create a object +const { mutate: create } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', kids: '', ktree: '', data: '' }); +``` + ### Commit ```typescript @@ -174,75 +165,6 @@ create({ message: '', databaseId: '', storeId: '', parentIds ## Custom Operation Hooks -### `useRevParseQuery` - -revParse - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `refname` | String | - -### `useGetAllObjectsFromRootQuery` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -### `useGetPathObjectsFromRootQuery` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -### `useGetObjectAtPathQuery` - -getObjectAtPath - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | - -### `useFreezeObjectsMutation` - -freezeObjects - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | FreezeObjectsInput (required) | - ### `useInitEmptyRepoMutation` initEmptyRepo @@ -254,17 +176,6 @@ initEmptyRepo |----------|------| | `input` | InitEmptyRepoInput (required) | -### `useRemoveNodeAtPathMutation` - -removeNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RemoveNodeAtPathInput (required) | - ### `useSetDataAtPathMutation` setDataAtPath @@ -276,17 +187,6 @@ setDataAtPath |----------|------| | `input` | SetDataAtPathInput (required) | -### `useSetPropsAndCommitMutation` - -setPropsAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPropsAndCommitInput (required) | - ### `useInsertNodeAtPathMutation` insertNodeAtPath @@ -298,28 +198,6 @@ insertNodeAtPath |----------|------| | `input` | InsertNodeAtPathInput (required) | -### `useUpdateNodeAtPathMutation` - -updateNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | UpdateNodeAtPathInput (required) | - -### `useSetAndCommitMutation` - -setAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetAndCommitInput (required) | - ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/objects/hooks/index.ts b/sdk/constructive-react/src/objects/hooks/index.ts index d2615956fb..265ce17702 100644 --- a/sdk/constructive-react/src/objects/hooks/index.ts +++ b/sdk/constructive-react/src/objects/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: GetAllRecord, Object, Ref, Store, Commit + * Tables: GetAllRecord, Ref, Store, Object, Commit * * Usage: * diff --git a/sdk/constructive-react/src/objects/hooks/invalidation.ts b/sdk/constructive-react/src/objects/hooks/invalidation.ts index f05662b38e..16cf4aaad9 100644 --- a/sdk/constructive-react/src/objects/hooks/invalidation.ts +++ b/sdk/constructive-react/src/objects/hooks/invalidation.ts @@ -14,7 +14,7 @@ // ============================================================================ import type { QueryClient } from '@tanstack/react-query'; -import { getAllRecordKeys, objectKeys, refKeys, storeKeys, commitKeys } from './query-keys'; +import { getAllRecordKeys, refKeys, storeKeys, objectKeys, commitKeys } from './query-keys'; /** // ============================================================================ // Invalidation Helpers @@ -52,20 +52,6 @@ export const invalidate = { queryKey: getAllRecordKeys.detail(id), }), }, - /** Invalidate object queries */ object: { - /** Invalidate all object queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.all, - }), - /** Invalidate object list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.lists(), - }), - /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: objectKeys.detail(id), - }), - }, /** Invalidate ref queries */ ref: { /** Invalidate all ref queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -94,6 +80,20 @@ export const invalidate = { queryKey: storeKeys.detail(id), }), }, + /** Invalidate object queries */ object: { + /** Invalidate all object queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.all, + }), + /** Invalidate object list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }), + /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(id), + }), + }, /** Invalidate commit queries */ commit: { /** Invalidate all commit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -129,11 +129,6 @@ export const remove = { queryKey: getAllRecordKeys.detail(id), }); }, - /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: objectKeys.detail(id), - }); - }, /** Remove ref from cache */ ref: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: refKeys.detail(id), @@ -144,6 +139,11 @@ export const remove = { queryKey: storeKeys.detail(id), }); }, + /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(id), + }); + }, /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: commitKeys.detail(id), diff --git a/sdk/constructive-react/src/objects/hooks/mutation-keys.ts b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts index d8fd8d1382..6a4e1dc154 100644 --- a/sdk/constructive-react/src/objects/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts @@ -27,14 +27,6 @@ export const getAllRecordMutationKeys = { /** Delete getAllRecord mutation key */ delete: (id: string | number) => ['mutation', 'getallrecord', 'delete', id] as const, } as const; -export const objectMutationKeys = { - /** All object mutation keys */ all: ['mutation', 'object'] as const, - /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, - /** Update object mutation key */ update: (id: string | number) => - ['mutation', 'object', 'update', id] as const, - /** Delete object mutation key */ delete: (id: string | number) => - ['mutation', 'object', 'delete', id] as const, -} as const; export const refMutationKeys = { /** All ref mutation keys */ all: ['mutation', 'ref'] as const, /** Create ref mutation key */ create: () => ['mutation', 'ref', 'create'] as const, @@ -51,6 +43,14 @@ export const storeMutationKeys = { /** Delete store mutation key */ delete: (id: string | number) => ['mutation', 'store', 'delete', id] as const, } as const; +export const objectMutationKeys = { + /** All object mutation keys */ all: ['mutation', 'object'] as const, + /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, + /** Update object mutation key */ update: (id: string | number) => + ['mutation', 'object', 'update', id] as const, + /** Delete object mutation key */ delete: (id: string | number) => + ['mutation', 'object', 'delete', id] as const, +} as const; export const commitMutationKeys = { /** All commit mutation keys */ all: ['mutation', 'commit'] as const, /** Create commit mutation key */ create: () => ['mutation', 'commit', 'create'] as const, @@ -65,38 +65,18 @@ export const commitMutationKeys = { // ============================================================================ export const customMutationKeys = { - /** Mutation key for freezeObjects */ freezeObjects: (identifier?: string) => - identifier - ? (['mutation', 'freezeObjects', identifier] as const) - : (['mutation', 'freezeObjects'] as const), /** Mutation key for initEmptyRepo */ initEmptyRepo: (identifier?: string) => identifier ? (['mutation', 'initEmptyRepo', identifier] as const) : (['mutation', 'initEmptyRepo'] as const), - /** Mutation key for removeNodeAtPath */ removeNodeAtPath: (identifier?: string) => - identifier - ? (['mutation', 'removeNodeAtPath', identifier] as const) - : (['mutation', 'removeNodeAtPath'] as const), /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => identifier ? (['mutation', 'setDataAtPath', identifier] as const) : (['mutation', 'setDataAtPath'] as const), - /** Mutation key for setPropsAndCommit */ setPropsAndCommit: (identifier?: string) => - identifier - ? (['mutation', 'setPropsAndCommit', identifier] as const) - : (['mutation', 'setPropsAndCommit'] as const), /** Mutation key for insertNodeAtPath */ insertNodeAtPath: (identifier?: string) => identifier ? (['mutation', 'insertNodeAtPath', identifier] as const) : (['mutation', 'insertNodeAtPath'] as const), - /** Mutation key for updateNodeAtPath */ updateNodeAtPath: (identifier?: string) => - identifier - ? (['mutation', 'updateNodeAtPath', identifier] as const) - : (['mutation', 'updateNodeAtPath'] as const), - /** Mutation key for setAndCommit */ setAndCommit: (identifier?: string) => - identifier - ? (['mutation', 'setAndCommit', identifier] as const) - : (['mutation', 'setAndCommit'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -126,9 +106,9 @@ export const customMutationKeys = { */ export const mutationKeys = { getAllRecord: getAllRecordMutationKeys, - object: objectMutationKeys, ref: refMutationKeys, store: storeMutationKeys, + object: objectMutationKeys, commit: commitMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/index.ts b/sdk/constructive-react/src/objects/hooks/mutations/index.ts index 747168b413..828cbf53b0 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/index.ts @@ -4,24 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ export * from './useCreateGetAllRecordMutation'; -export * from './useCreateObjectMutation'; -export * from './useUpdateObjectMutation'; -export * from './useDeleteObjectMutation'; export * from './useCreateRefMutation'; export * from './useUpdateRefMutation'; export * from './useDeleteRefMutation'; export * from './useCreateStoreMutation'; export * from './useUpdateStoreMutation'; export * from './useDeleteStoreMutation'; +export * from './useCreateObjectMutation'; +export * from './useUpdateObjectMutation'; +export * from './useDeleteObjectMutation'; export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; -export * from './useFreezeObjectsMutation'; export * from './useInitEmptyRepoMutation'; -export * from './useRemoveNodeAtPathMutation'; export * from './useSetDataAtPathMutation'; -export * from './useSetPropsAndCommitMutation'; export * from './useInsertNodeAtPathMutation'; -export * from './useUpdateNodeAtPathMutation'; -export * from './useSetAndCommitMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts index 6caa479018..c35be05129 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts @@ -1,5 +1,5 @@ /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts index c9d4c98286..ad92e1f7c6 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Object + * 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 */ @@ -15,7 +15,7 @@ import type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Object + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts index 01677f8d6b..93cda72e86 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts @@ -1,5 +1,5 @@ /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts index 29ff8c86ab..6f37fd67d0 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts @@ -1,5 +1,5 @@ /** - * A store represents an isolated object repository within a database. + * 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 */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts index ed07d6d48a..2b2513585a 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts @@ -1,5 +1,5 @@ /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts index c1027ecd6e..bd423f9659 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Object + * 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 */ @@ -15,7 +15,7 @@ import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Object with typed selection + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts index c6620e71a1..12bcafdccb 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts @@ -1,5 +1,5 @@ /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts index 5b6700bdb3..b3f8aa9126 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts @@ -1,5 +1,5 @@ /** - * A store represents an isolated object repository within a database. + * 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 */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useFreezeObjectsMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useFreezeObjectsMutation.ts deleted file mode 100644 index 334bdcf312..0000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useFreezeObjectsMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for freezeObjects - * @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 { FreezeObjectsVariables } from '../../orm/mutation'; -import type { FreezeObjectsPayloadSelect, FreezeObjectsPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { FreezeObjectsVariables } from '../../orm/mutation'; -export type { FreezeObjectsPayloadSelect } from '../../orm/input-types'; -export function useFreezeObjectsMutation( - params: { - selection: { - fields: S & FreezeObjectsPayloadSelect; - } & HookStrictSelect, FreezeObjectsPayloadSelect>; - } & Omit< - UseMutationOptions< - { - freezeObjects: InferSelectResult | null; - }, - Error, - FreezeObjectsVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - freezeObjects: InferSelectResult | null; - }, - Error, - FreezeObjectsVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.freezeObjects(), - mutationFn: (variables: FreezeObjectsVariables) => - getClient() - .mutation.freezeObjects(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts deleted file mode 100644 index e44daf6bfe..0000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for removeNodeAtPath - * @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 { RemoveNodeAtPathVariables } from '../../orm/mutation'; -import type { RemoveNodeAtPathPayloadSelect, RemoveNodeAtPathPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { RemoveNodeAtPathVariables } from '../../orm/mutation'; -export type { RemoveNodeAtPathPayloadSelect } from '../../orm/input-types'; -export function useRemoveNodeAtPathMutation( - params: { - selection: { - fields: S & RemoveNodeAtPathPayloadSelect; - } & HookStrictSelect, RemoveNodeAtPathPayloadSelect>; - } & Omit< - UseMutationOptions< - { - removeNodeAtPath: InferSelectResult | null; - }, - Error, - RemoveNodeAtPathVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - removeNodeAtPath: InferSelectResult | null; - }, - Error, - RemoveNodeAtPathVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.removeNodeAtPath(), - mutationFn: (variables: RemoveNodeAtPathVariables) => - getClient() - .mutation.removeNodeAtPath(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts deleted file mode 100644 index efbed76921..0000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for setAndCommit - * @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 { SetAndCommitVariables } from '../../orm/mutation'; -import type { SetAndCommitPayloadSelect, SetAndCommitPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SetAndCommitVariables } from '../../orm/mutation'; -export type { SetAndCommitPayloadSelect } from '../../orm/input-types'; -export function useSetAndCommitMutation( - params: { - selection: { - fields: S & SetAndCommitPayloadSelect; - } & HookStrictSelect, SetAndCommitPayloadSelect>; - } & Omit< - UseMutationOptions< - { - setAndCommit: InferSelectResult | null; - }, - Error, - SetAndCommitVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - setAndCommit: InferSelectResult | null; - }, - Error, - SetAndCommitVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.setAndCommit(), - mutationFn: (variables: SetAndCommitVariables) => - getClient() - .mutation.setAndCommit(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts deleted file mode 100644 index 49e6bbcd08..0000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for setPropsAndCommit - * @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 { SetPropsAndCommitVariables } from '../../orm/mutation'; -import type { - SetPropsAndCommitPayloadSelect, - SetPropsAndCommitPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SetPropsAndCommitVariables } from '../../orm/mutation'; -export type { SetPropsAndCommitPayloadSelect } from '../../orm/input-types'; -export function useSetPropsAndCommitMutation( - params: { - selection: { - fields: S & SetPropsAndCommitPayloadSelect; - } & HookStrictSelect, SetPropsAndCommitPayloadSelect>; - } & Omit< - UseMutationOptions< - { - setPropsAndCommit: InferSelectResult | null; - }, - Error, - SetPropsAndCommitVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - setPropsAndCommit: InferSelectResult | null; - }, - Error, - SetPropsAndCommitVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.setPropsAndCommit(), - mutationFn: (variables: SetPropsAndCommitVariables) => - getClient() - .mutation.setPropsAndCommit(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts index 7ecb53f390..d29f980cfd 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts @@ -1,5 +1,5 @@ /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts deleted file mode 100644 index 79e3ebe21e..0000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for updateNodeAtPath - * @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 { UpdateNodeAtPathVariables } from '../../orm/mutation'; -import type { UpdateNodeAtPathPayloadSelect, UpdateNodeAtPathPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { UpdateNodeAtPathVariables } from '../../orm/mutation'; -export type { UpdateNodeAtPathPayloadSelect } from '../../orm/input-types'; -export function useUpdateNodeAtPathMutation( - params: { - selection: { - fields: S & UpdateNodeAtPathPayloadSelect; - } & HookStrictSelect, UpdateNodeAtPathPayloadSelect>; - } & Omit< - UseMutationOptions< - { - updateNodeAtPath: InferSelectResult | null; - }, - Error, - UpdateNodeAtPathVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - updateNodeAtPath: InferSelectResult | null; - }, - Error, - UpdateNodeAtPathVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.updateNodeAtPath(), - mutationFn: (variables: UpdateNodeAtPathVariables) => - getClient() - .mutation.updateNodeAtPath(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts index 3c60807deb..29dd75e3f0 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Object + * 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 */ @@ -15,7 +15,7 @@ import type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Object + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts index c17f92f308..bbf199a716 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts @@ -1,5 +1,5 @@ /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts index 885b552366..79e5989ec9 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts @@ -1,5 +1,5 @@ /** - * A store represents an isolated object repository within a database. + * 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 */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/queries/index.ts b/sdk/constructive-react/src/objects/hooks/queries/index.ts index 39e7edd6ad..4cc4a9afb7 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/index.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/index.ts @@ -4,15 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ export * from './useGetAllQuery'; -export * from './useObjectsQuery'; -export * from './useObjectQuery'; export * from './useRefsQuery'; export * from './useRefQuery'; export * from './useStoresQuery'; export * from './useStoreQuery'; +export * from './useObjectsQuery'; +export * from './useObjectQuery'; export * from './useCommitsQuery'; export * from './useCommitQuery'; -export * from './useRevParseQuery'; -export * from './useGetAllObjectsFromRootQuery'; -export * from './useGetPathObjectsFromRootQuery'; -export * from './useGetObjectAtPathQuery'; diff --git a/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts index 4a2de0f061..cc1f20df4d 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts @@ -1,5 +1,5 @@ /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const commitQueryKey = commitKeys.detail; /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```tsx @@ -70,7 +70,7 @@ export function useCommitQuery( }); } /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchCommitQuery(params: { .unwrap(); } /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts index 0d25aaa453..55ce979e2c 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts @@ -1,5 +1,5 @@ /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * @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 commitsQueryKey = commitKeys.list; /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```tsx @@ -82,7 +82,7 @@ export function useCommitsQuery( }); } /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchCommitsQuery(params: { return getClient().commit.findMany(args).unwrap(); } /** - * A commit records changes to the repository. + * Commit history — each commit snapshots a tree root for a store * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts deleted file mode 100644 index 250ee6c188..0000000000 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for getAllObjectsFromRoot - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { GetAllObjectsFromRootVariables } from '../../orm/query'; -import type { ObjectConnection } from '../../orm/input-types'; -export type { GetAllObjectsFromRootVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const getAllObjectsFromRootQueryKey = customQueryKeys.getAllObjectsFromRoot; -/** - * Reads and enables pagination through a set of `Object`. - * - * @example - * ```tsx - * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); - * - * if (data?.getAllObjectsFromRoot) { - * console.log(data.getAllObjectsFromRoot); - * } - * ``` - */ -export function useGetAllObjectsFromRootQuery< - TData = { - getAllObjectsFromRoot: ObjectConnection | null; - }, ->( - params?: { - variables?: GetAllObjectsFromRootVariables; - } & Omit< - UseQueryOptions< - { - getAllObjectsFromRoot: ObjectConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useGetAllObjectsFromRootQuery< - TData = { - getAllObjectsFromRoot: ObjectConnection | null; - }, ->( - params?: { - variables?: GetAllObjectsFromRootVariables; - } & Omit< - UseQueryOptions< - { - getAllObjectsFromRoot: ObjectConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: getAllObjectsFromRootQueryKey(variables), - queryFn: () => getClient().query.getAllObjectsFromRoot(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch getAllObjectsFromRoot without React hooks - * - * @example - * ```ts - * const data = await fetchGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); - * ``` - */ -export async function fetchGetAllObjectsFromRootQuery(params?: { - variables?: GetAllObjectsFromRootVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.getAllObjectsFromRoot(variables).unwrap(); -} -/** - * Prefetch getAllObjectsFromRoot for SSR or cache warming - * - * @example - * ```ts - * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { databaseId, id, first, offset, after } }); - * ``` - */ -export async function prefetchGetAllObjectsFromRootQuery( - queryClient: QueryClient, - params?: { - variables?: GetAllObjectsFromRootVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: getAllObjectsFromRootQueryKey(variables), - queryFn: () => getClient().query.getAllObjectsFromRoot(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts deleted file mode 100644 index f36831e832..0000000000 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Custom query hook for getObjectAtPath - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { GetObjectAtPathVariables } from '../../orm/query'; -import type { ObjectSelect, Object } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { GetObjectAtPathVariables } from '../../orm/query'; -export type { ObjectSelect } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const getObjectAtPathQueryKey = customQueryKeys.getObjectAtPath; -/** - * Query hook for getObjectAtPath - * - * @example - * ```tsx - * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); - * - * if (data?.getObjectAtPath) { - * console.log(data.getObjectAtPath); - * } - * ``` - */ -export function useGetObjectAtPathQuery< - S extends ObjectSelect, - TData = { - getObjectAtPath: InferSelectResult | null; - }, ->( - params: { - variables?: GetObjectAtPathVariables; - selection: { - fields: S & ObjectSelect; - } & HookStrictSelect, ObjectSelect>; - } & Omit< - UseQueryOptions< - { - getObjectAtPath: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useGetObjectAtPathQuery( - params: { - variables?: GetObjectAtPathVariables; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - const { variables: _variables, selection: _selection, ...queryOptions } = params ?? {}; - void _variables; - void _selection; - return useQuery({ - queryKey: getObjectAtPathQueryKey(variables), - queryFn: () => - getClient() - .query.getObjectAtPath(variables, { - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch getObjectAtPath without React hooks - * - * @example - * ```ts - * const data = await fetchGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); - * ``` - */ -export async function fetchGetObjectAtPathQuery(params: { - variables?: GetObjectAtPathVariables; - selection: { - fields: S & ObjectSelect; - } & HookStrictSelect, ObjectSelect>; -}): Promise<{ - getObjectAtPath: InferSelectResult | null; -}>; -export async function fetchGetObjectAtPathQuery(params: { - variables?: GetObjectAtPathVariables; - selection: SelectionConfig; -}) { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - return getClient() - .query.getObjectAtPath(variables, { - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch getObjectAtPath for SSR or cache warming - * - * @example - * ```ts - * await prefetchGetObjectAtPathQuery(queryClient, { variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchGetObjectAtPathQuery( - queryClient: QueryClient, - params: { - variables?: GetObjectAtPathVariables; - selection: { - fields: S & ObjectSelect; - } & HookStrictSelect, ObjectSelect>; - } -): Promise; -export async function prefetchGetObjectAtPathQuery( - queryClient: QueryClient, - params: { - variables?: GetObjectAtPathVariables; - selection: SelectionConfig; - } -): Promise { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: getObjectAtPathQueryKey(variables), - queryFn: () => - getClient() - .query.getObjectAtPath(variables, { - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts deleted file mode 100644 index 32bb021f83..0000000000 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for getPathObjectsFromRoot - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { GetPathObjectsFromRootVariables } from '../../orm/query'; -import type { ObjectConnection } from '../../orm/input-types'; -export type { GetPathObjectsFromRootVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const getPathObjectsFromRootQueryKey = customQueryKeys.getPathObjectsFromRoot; -/** - * Reads and enables pagination through a set of `Object`. - * - * @example - * ```tsx - * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); - * - * if (data?.getPathObjectsFromRoot) { - * console.log(data.getPathObjectsFromRoot); - * } - * ``` - */ -export function useGetPathObjectsFromRootQuery< - TData = { - getPathObjectsFromRoot: ObjectConnection | null; - }, ->( - params?: { - variables?: GetPathObjectsFromRootVariables; - } & Omit< - UseQueryOptions< - { - getPathObjectsFromRoot: ObjectConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useGetPathObjectsFromRootQuery< - TData = { - getPathObjectsFromRoot: ObjectConnection | null; - }, ->( - params?: { - variables?: GetPathObjectsFromRootVariables; - } & Omit< - UseQueryOptions< - { - getPathObjectsFromRoot: ObjectConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: getPathObjectsFromRootQueryKey(variables), - queryFn: () => getClient().query.getPathObjectsFromRoot(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch getPathObjectsFromRoot without React hooks - * - * @example - * ```ts - * const data = await fetchGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); - * ``` - */ -export async function fetchGetPathObjectsFromRootQuery(params?: { - variables?: GetPathObjectsFromRootVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.getPathObjectsFromRoot(variables).unwrap(); -} -/** - * Prefetch getPathObjectsFromRoot for SSR or cache warming - * - * @example - * ```ts - * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { databaseId, id, path, first, offset, after } }); - * ``` - */ -export async function prefetchGetPathObjectsFromRootQuery( - queryClient: QueryClient, - params?: { - variables?: GetPathObjectsFromRootVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: getPathObjectsFromRootQueryKey(variables), - queryFn: () => getClient().query.getPathObjectsFromRoot(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts index 088612d28d..e396c58320 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Object + * 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 */ @@ -16,7 +16,7 @@ export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const getNodeAtPathQueryKey = objectKeys.detail; /** - * Query hook for fetching a single Object + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```tsx @@ -70,7 +70,7 @@ export function useObjectQuery( }); } /** - * Fetch a single Object without React hooks + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchObjectQuery(params: { .unwrap(); } /** - * Prefetch a single Object for SSR or cache warming + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts index 963b611add..64d260b538 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Object + * 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 */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const objectsQueryKey = objectKeys.list; /** - * Query hook for fetching Object list + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```tsx @@ -82,7 +82,7 @@ export function useObjectsQuery( }); } /** - * Fetch Object list without React hooks + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchObjectsQuery(params: { return getClient().object.findMany(args).unwrap(); } /** - * Prefetch Object list for SSR or cache warming + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts index fd95711338..6ec9182b55 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts @@ -1,5 +1,5 @@ /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const refQueryKey = refKeys.detail; /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```tsx @@ -70,7 +70,7 @@ export function useRefQuery( }); } /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchRefQuery(params: { .unwrap(); } /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts index f5ae8938e1..b0aff9df3c 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts @@ -1,5 +1,5 @@ /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../o /** Query key factory - re-exported from query-keys.ts */ export const refsQueryKey = refKeys.list; /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```tsx @@ -72,7 +72,7 @@ export function useRefsQuery( }); } /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchRefsQuery(params: { return getClient().ref.findMany(args).unwrap(); } /** - * A ref is a data structure for pointing to a commit. + * Branch heads — mutable pointers into the commit chain * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts deleted file mode 100644 index d8b6226fbc..0000000000 --- a/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for revParse - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { RevParseVariables } from '../../orm/query'; -export type { RevParseVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const revParseQueryKey = customQueryKeys.revParse; -/** - * Query hook for revParse - * - * @example - * ```tsx - * const { data, isLoading } = useRevParseQuery({ variables: { dbId, storeId, refname } }); - * - * if (data?.revParse) { - * console.log(data.revParse); - * } - * ``` - */ -export function useRevParseQuery< - TData = { - revParse: string | null; - }, ->( - params?: { - variables?: RevParseVariables; - } & Omit< - UseQueryOptions< - { - revParse: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useRevParseQuery< - TData = { - revParse: string | null; - }, ->( - params?: { - variables?: RevParseVariables; - } & Omit< - UseQueryOptions< - { - revParse: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: revParseQueryKey(variables), - queryFn: () => getClient().query.revParse(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch revParse without React hooks - * - * @example - * ```ts - * const data = await fetchRevParseQuery({ variables: { dbId, storeId, refname } }); - * ``` - */ -export async function fetchRevParseQuery(params?: { variables?: RevParseVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.revParse(variables).unwrap(); -} -/** - * Prefetch revParse for SSR or cache warming - * - * @example - * ```ts - * await prefetchRevParseQuery(queryClient, { variables: { dbId, storeId, refname } }); - * ``` - */ -export async function prefetchRevParseQuery( - queryClient: QueryClient, - params?: { - variables?: RevParseVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: revParseQueryKey(variables), - queryFn: () => getClient().query.revParse(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts index 4002a74e19..5a0e159c01 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts @@ -1,5 +1,5 @@ /** - * A store represents an isolated object repository within a database. + * 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 */ @@ -16,7 +16,7 @@ export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const storeQueryKey = storeKeys.detail; /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useStoreQuery( }); } /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchStoreQuery(params: { .unwrap(); } /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts index 192f926bd6..579205fe4a 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts @@ -1,5 +1,5 @@ /** - * A store represents an isolated object repository within a database. + * 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 */ @@ -31,7 +31,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const storesQueryKey = storeKeys.list; /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```tsx @@ -82,7 +82,7 @@ export function useStoresQuery( }); } /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchStoresQuery(params: { return getClient().store.findMany(args).unwrap(); } /** - * A store represents an isolated object repository within a database. + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/query-keys.ts b/sdk/constructive-react/src/objects/hooks/query-keys.ts index 33724a9e82..371cc85ffd 100644 --- a/sdk/constructive-react/src/objects/hooks/query-keys.ts +++ b/sdk/constructive-react/src/objects/hooks/query-keys.ts @@ -28,15 +28,6 @@ export const getAllRecordKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...getAllRecordKeys.details(), id] as const, } as const; -export const objectKeys = { - /** All object queries */ all: ['object'] as const, - /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...objectKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...objectKeys.details(), id] as const, -} as const; export const refKeys = { /** All ref queries */ all: ['ref'] as const, /** List query keys */ lists: () => [...refKeys.all, 'list'] as const, @@ -55,6 +46,15 @@ export const storeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...storeKeys.details(), id] as const, } as const; +export const objectKeys = { + /** All object queries */ all: ['object'] as const, + /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...objectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...objectKeys.details(), id] as const, +} as const; export const commitKeys = { /** All commit queries */ all: ['commit'] as const, /** List query keys */ lists: () => [...commitKeys.all, 'list'] as const, @@ -64,20 +64,6 @@ export const commitKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...commitKeys.details(), id] as const, } as const; - -// ============================================================================ -// Custom Query Keys -// ============================================================================ - -export const customQueryKeys = { - /** Query key for revParse */ revParse: (variables?: object) => ['revParse', variables] as const, - /** Query key for getAllObjectsFromRoot */ getAllObjectsFromRoot: (variables?: object) => - ['getAllObjectsFromRoot', variables] as const, - /** Query key for getPathObjectsFromRoot */ getPathObjectsFromRoot: (variables?: object) => - ['getPathObjectsFromRoot', variables] as const, - /** Query key for getObjectAtPath */ getObjectAtPath: (variables?: object) => - ['getObjectAtPath', variables] as const, -} as const; /** // ============================================================================ @@ -102,11 +88,10 @@ export const customQueryKeys = { */ export const queryKeys = { getAllRecord: getAllRecordKeys, - object: objectKeys, ref: refKeys, store: storeKeys, + object: objectKeys, commit: commitKeys, - custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 94b8dc0860..a2c6eee79f 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `getAllRecord` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | ## Table Operations @@ -59,45 +59,42 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.ref` -CRUD operations for Object records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | +| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.store` -CRUD operations for Ref records. +CRUD operations for Store records. **Fields:** @@ -106,59 +103,60 @@ CRUD operations for Ref records. | `id` | UUID | No | | `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.object` -CRUD operations for Store records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -200,95 +198,6 @@ const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ## Custom Operations -### `db.query.revParse` - -revParse - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `refname` | String | - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` - -### `db.query.getAllObjectsFromRoot` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.getPathObjectsFromRoot` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.getObjectAtPath` - -getObjectAtPath - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` - -### `db.mutation.freezeObjects` - -freezeObjects - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | FreezeObjectsInput (required) | - -```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); -``` - ### `db.mutation.initEmptyRepo` initEmptyRepo @@ -301,22 +210,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); -``` - -### `db.mutation.removeNodeAtPath` - -removeNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RemoveNodeAtPathInput (required) | - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,22 +225,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); -``` - -### `db.mutation.setPropsAndCommit` - -setPropsAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPropsAndCommitInput (required) | - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -364,36 +243,6 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` -### `db.mutation.updateNodeAtPath` - -updateNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | UpdateNodeAtPathInput (required) | - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` - -### `db.mutation.setAndCommit` - -setAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetAndCommitInput (required) | - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/objects/orm/index.ts b/sdk/constructive-react/src/objects/orm/index.ts index f06a6d3b7a..4288141eaa 100644 --- a/sdk/constructive-react/src/objects/orm/index.ts +++ b/sdk/constructive-react/src/objects/orm/index.ts @@ -6,18 +6,16 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { GetAllRecordModel } from './models/getAllRecord'; -import { ObjectModel } from './models/object'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; +import { ObjectModel } from './models/object'; import { CommitModel } from './models/commit'; -import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -46,11 +44,10 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { getAllRecord: new GetAllRecordModel(client), - object: new ObjectModel(client), ref: new RefModel(client), store: new StoreModel(client), + object: new ObjectModel(client), commit: new CommitModel(client), - query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index 8fcc221ef8..c68287aede 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -235,55 +235,66 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} -/** A ref is a data structure for pointing to a commit. */ +/** Branch heads — mutable pointers into the commit chain */ export interface Ref { - /** The primary unique identifier for the ref. */ + /** Unique ref identifier */ id: string; - /** The name of the ref or branch */ + /** Ref name (e.g. HEAD, main) */ 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; } -/** A store represents an isolated object repository within a database. */ +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ export interface Store { - /** The primary unique identifier for the store. */ + /** Unique store identifier */ id: string; - /** The name of the store (e.g., metaschema, migrations). */ + /** Human-readable store name */ name?: string | null; - /** The database this store belongs to. */ + /** Database scope for multi-tenant isolation */ databaseId?: string | null; - /** The current head tree_id for this store. */ + /** 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 Object { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Database scope for multi-tenant isolation */ + databaseId?: 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; } -/** A commit records changes to the repository. */ +/** Commit history — each commit snapshots a tree root for a store */ export interface Commit { - /** The primary unique identifier for the commit. */ + /** Unique commit identifier */ id: string; - /** The commit message */ + /** Optional commit message */ message?: string | null; - /** The repository identifier */ + /** Database scope for multi-tenant isolation */ databaseId?: string | null; + /** Store this commit belongs to */ storeId?: string | null; - /** Parent commits */ + /** Parent commit IDs (supports merge commits) */ parentIds?: string[] | null; - /** The author of the commit */ + /** User who authored the changes */ authorId?: string | null; - /** The committer of the commit */ + /** User who committed (may differ from author) */ committerId?: string | null; - /** The root of the tree */ + /** Root object ID of the tree snapshot at this commit */ treeId?: string | null; + /** Commit timestamp */ date?: string | null; } // ============ Relation Helper Types ============ @@ -300,31 +311,21 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface GetAllRecordRelations {} -export interface ObjectRelations {} export interface RefRelations {} export interface StoreRelations {} +export interface ObjectRelations {} export interface CommitRelations {} // ============ Entity Types With Relations ============ export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type CommitWithRelations = Commit & CommitRelations; // ============ Entity Select Types ============ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type RefSelect = { id?: boolean; name?: boolean; @@ -339,6 +340,14 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; +export type ObjectSelect = { + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -358,28 +367,6 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface RefFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -416,6 +403,26 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -451,24 +458,6 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type RefOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -497,6 +486,22 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -540,32 +545,6 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -612,6 +591,30 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface ObjectPatch { + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -647,65 +650,27 @@ export interface DeleteCommitInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } -export interface RemoveNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; -} export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } -export interface SetPropsAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: Record; -} export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; kids?: string[]; ktree?: string[]; } -export interface UpdateNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; -} -export interface SetAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -715,46 +680,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface FreezeObjectsPayload { - clientMutationId?: string | null; -} -export type FreezeObjectsPayloadSelect = { - clientMutationId?: boolean; -}; export interface InitEmptyRepoPayload { clientMutationId?: string | null; } export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; -export interface RemoveNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RemoveNodeAtPathPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -763,14 +695,6 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SetPropsAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SetPropsAndCommitPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -779,22 +703,6 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface UpdateNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type UpdateNodeAtPathPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SetAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SetAndCommitPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -817,51 +725,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -952,6 +815,51 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -997,35 +905,6 @@ export type DeleteCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; -} -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; -}; -/** 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; -} -export type PageInfoSelect = { - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; - endCursor?: boolean; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -1050,6 +929,18 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/objects/orm/models/index.ts b/sdk/constructive-react/src/objects/orm/models/index.ts index c842d83414..92a768974c 100644 --- a/sdk/constructive-react/src/objects/orm/models/index.ts +++ b/sdk/constructive-react/src/objects/orm/models/index.ts @@ -4,7 +4,7 @@ * DO NOT EDIT - changes will be overwritten */ export { GetAllRecordModel } from './getAllRecord'; -export { ObjectModel } from './object'; export { RefModel } from './ref'; export { StoreModel } from './store'; +export { ObjectModel } from './object'; export { CommitModel } from './commit'; diff --git a/sdk/constructive-react/src/objects/orm/mutation/index.ts b/sdk/constructive-react/src/objects/orm/mutation/index.ts index 97d4456b48..60faf5871a 100644 --- a/sdk/constructive-react/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-react/src/objects/orm/mutation/index.ts @@ -7,59 +7,29 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - FreezeObjectsInput, InitEmptyRepoInput, - RemoveNodeAtPathInput, SetDataAtPathInput, - SetPropsAndCommitInput, InsertNodeAtPathInput, - UpdateNodeAtPathInput, - SetAndCommitInput, ProvisionBucketInput, - FreezeObjectsPayload, InitEmptyRepoPayload, - RemoveNodeAtPathPayload, SetDataAtPathPayload, - SetPropsAndCommitPayload, InsertNodeAtPathPayload, - UpdateNodeAtPathPayload, - SetAndCommitPayload, ProvisionBucketPayload, - FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, - RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, - SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, - UpdateNodeAtPathPayloadSelect, - SetAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface FreezeObjectsVariables { - input: FreezeObjectsInput; -} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } -export interface RemoveNodeAtPathVariables { - input: RemoveNodeAtPathInput; -} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } -export interface SetPropsAndCommitVariables { - input: SetPropsAndCommitInput; -} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } -export interface UpdateNodeAtPathVariables { - input: UpdateNodeAtPathInput; -} -export interface SetAndCommitVariables { - input: SetAndCommitInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -72,35 +42,6 @@ export interface ProvisionBucketVariables { } export function createMutationOperations(client: OrmClient) { return { - freezeObjects: ( - args: FreezeObjectsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - freezeObjects: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'FreezeObjects', - fieldName: 'freezeObjects', - ...buildCustomDocument( - 'mutation', - 'FreezeObjects', - 'freezeObjects', - options.select, - args, - [ - { - name: 'input', - type: 'FreezeObjectsInput!', - }, - ], - connectionFieldsMap, - 'FreezeObjectsPayload' - ), - }), initEmptyRepo: ( args: InitEmptyRepoVariables, options: { @@ -130,35 +71,6 @@ export function createMutationOperations(client: OrmClient) { 'InitEmptyRepoPayload' ), }), - removeNodeAtPath: ( - args: RemoveNodeAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - removeNodeAtPath: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RemoveNodeAtPath', - fieldName: 'removeNodeAtPath', - ...buildCustomDocument( - 'mutation', - 'RemoveNodeAtPath', - 'removeNodeAtPath', - options.select, - args, - [ - { - name: 'input', - type: 'RemoveNodeAtPathInput!', - }, - ], - connectionFieldsMap, - 'RemoveNodeAtPathPayload' - ), - }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -188,35 +100,6 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), - setPropsAndCommit: ( - args: SetPropsAndCommitVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setPropsAndCommit: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetPropsAndCommit', - fieldName: 'setPropsAndCommit', - ...buildCustomDocument( - 'mutation', - 'SetPropsAndCommit', - 'setPropsAndCommit', - options.select, - args, - [ - { - name: 'input', - type: 'SetPropsAndCommitInput!', - }, - ], - connectionFieldsMap, - 'SetPropsAndCommitPayload' - ), - }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { @@ -246,64 +129,6 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), - updateNodeAtPath: ( - args: UpdateNodeAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - updateNodeAtPath: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'UpdateNodeAtPath', - fieldName: 'updateNodeAtPath', - ...buildCustomDocument( - 'mutation', - 'UpdateNodeAtPath', - 'updateNodeAtPath', - options.select, - args, - [ - { - name: 'input', - type: 'UpdateNodeAtPathInput!', - }, - ], - connectionFieldsMap, - 'UpdateNodeAtPathPayload' - ), - }), - setAndCommit: ( - args: SetAndCommitVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setAndCommit: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetAndCommit', - fieldName: 'setAndCommit', - ...buildCustomDocument( - 'mutation', - 'SetAndCommit', - 'setAndCommit', - options.select, - args, - [ - { - name: 'input', - type: 'SetAndCommitInput!', - }, - ], - connectionFieldsMap, - 'SetAndCommitPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-react/src/objects/orm/query/index.ts b/sdk/constructive-react/src/objects/orm/query/index.ts deleted file mode 100644 index ce1f8680dc..0000000000 --- a/sdk/constructive-react/src/objects/orm/query/index.ts +++ /dev/null @@ -1,224 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface RevParseVariables { - dbId?: string; - storeId?: string; - refname?: string; -} -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - revParse: ( - args: RevParseVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - revParse: string | null; - }>({ - client, - operation: 'query', - operationName: 'RevParse', - fieldName: 'revParse', - ...buildCustomDocument( - 'query', - 'RevParse', - 'revParse', - options?.select, - args, - [ - { - name: 'dbId', - type: 'UUID', - }, - { - name: 'storeId', - type: 'UUID', - }, - { - name: 'refname', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; - }>({ - client, - operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', - ...buildCustomDocument( - 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; - }>({ - client, - operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', - ...buildCustomDocument( - 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', - ...buildCustomDocument( - 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, - args, - [ - { - name: 'dbId', - type: 'UUID', - }, - { - name: 'storeId', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', - }, - { - name: 'refname', - type: 'String', - }, - ], - connectionFieldsMap, - 'Object' - ), - }), - }; -} diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index d094a19a92..ae4206929a 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -58,6 +58,23 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +/** Methods to use when ordering `Object`. */ +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; /** Methods to use when ordering `Commit`. */ export type CommitOrderBy = | 'NATURAL' @@ -81,25 +98,6 @@ export type CommitOrderBy = | 'TREE_ID_DESC' | 'DATE_ASC' | 'DATE_DESC'; -/** Methods to use when ordering `Object`. */ -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; /** A filter to be used against `Ref` object types. All fields are combined with a logical ‘and.’ */ export interface RefFilter { /** Filter by the object’s `id` field. */ @@ -138,6 +136,27 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } +/** A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ */ +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} /** A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ */ export interface CommitFilter { /** Filter by the object’s `id` field. */ @@ -165,88 +184,27 @@ export interface CommitFilter { /** Negates the expression. */ not?: CommitFilter; } -/** A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ */ -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } -export interface RemoveNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; -} export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; } -export interface SetPropsAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: unknown; -} export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; kids?: string[]; ktree?: string[]; } -export interface UpdateNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; - data?: unknown; - kids?: string[]; - ktree?: string[]; -} -export interface SetAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: unknown; - kids?: string[]; - ktree?: string[]; -} export interface CreateRefInput { clientMutationId?: string; /** The `Ref` to be created by this mutation. */ @@ -254,12 +212,15 @@ export interface CreateRefInput { } /** An input for mutations affecting `Ref` */ export interface RefInput { - /** The primary unique identifier for the ref. */ + /** Unique ref identifier */ id?: string; - /** The name of the ref or branch */ + /** 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 interface CreateStoreInput { @@ -269,14 +230,35 @@ export interface CreateStoreInput { } /** An input for mutations affecting `Store` */ export interface StoreInput { - /** The primary unique identifier for the store. */ + /** Unique store identifier */ id?: string; - /** The name of the store (e.g., metaschema, migrations). */ + /** Human-readable store name */ name: string; - /** The database this store belongs to. */ + /** Database scope for multi-tenant isolation */ databaseId: string; - /** The current head tree_id for this store. */ + /** Current root object hash of this store */ hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +export interface CreateObjectInput { + clientMutationId?: string; + /** The `Object` to be created by this mutation. */ + object: ObjectInput; +} +/** An input for mutations affecting `Object` */ +export interface ObjectInput { + /** 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?: unknown; + /** Timestamp of object creation */ createdAt?: string; } export interface CreateCommitInput { @@ -286,141 +268,145 @@ export interface CreateCommitInput { } /** An input for mutations affecting `Commit` */ export interface CommitInput { - /** The primary unique identifier for the commit. */ + /** Unique commit identifier */ id?: string; - /** The commit message */ + /** Optional commit message */ message?: string; - /** The repository identifier */ + /** Database scope for multi-tenant isolation */ databaseId: string; + /** Store this commit belongs to */ storeId: string; - /** Parent commits */ + /** Parent commit IDs (supports merge commits) */ parentIds?: string[]; - /** The author of the commit */ + /** User who authored the changes */ authorId?: string; - /** The committer of the commit */ + /** User who committed (may differ from author) */ committerId?: string; - /** The root of the tree */ + /** Root object ID of the tree snapshot at this commit */ treeId?: string; + /** Commit timestamp */ date?: string; } -export interface CreateObjectInput { - clientMutationId?: string; - /** The `Object` to be created by this mutation. */ - object: ObjectInput; -} -/** An input for mutations affecting `Object` */ -export interface ObjectInput { - id: string; - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} export interface UpdateRefInput { clientMutationId?: string; - /** The primary unique identifier for the ref. */ + /** Unique ref identifier */ id: string; + /** Database scope for multi-tenant isolation */ databaseId: string; /** An object where the defined keys will be set on the `Ref` being updated. */ refPatch: RefPatch; } /** Represents an update to a `Ref`. Fields that are set will be updated. */ export interface RefPatch { - /** The primary unique identifier for the ref. */ + /** Unique ref identifier */ id?: string; - /** The name of the ref or branch */ + /** 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 interface UpdateStoreInput { clientMutationId?: string; - /** The primary unique identifier for the store. */ + /** Unique store identifier */ id: string; /** An object where the defined keys will be set on the `Store` being updated. */ storePatch: StorePatch; } /** Represents an update to a `Store`. Fields that are set will be updated. */ export interface StorePatch { - /** The primary unique identifier for the store. */ + /** Unique store identifier */ id?: string; - /** The name of the store (e.g., metaschema, migrations). */ + /** Human-readable store name */ name?: string; - /** The database this store belongs to. */ + /** Database scope for multi-tenant isolation */ databaseId?: string; - /** The current head tree_id for this store. */ + /** Current root object hash of this store */ hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +export interface UpdateObjectInput { + clientMutationId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** An object where the defined keys will be set on the `Object` being updated. */ + objectPatch: ObjectPatch; +} +/** Represents an update to a `Object`. Fields that are set will be updated. */ +export interface ObjectPatch { + /** 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?: unknown; + /** Timestamp of object creation */ createdAt?: string; } export interface UpdateCommitInput { clientMutationId?: string; - /** The primary unique identifier for the commit. */ + /** Unique commit identifier */ id: string; - /** The repository identifier */ + /** Database scope for multi-tenant isolation */ databaseId: string; /** An object where the defined keys will be set on the `Commit` being updated. */ commitPatch: CommitPatch; } /** Represents an update to a `Commit`. Fields that are set will be updated. */ export interface CommitPatch { - /** The primary unique identifier for the commit. */ + /** Unique commit identifier */ id?: string; - /** The commit message */ + /** Optional commit message */ message?: string; - /** The repository identifier */ + /** Database scope for multi-tenant isolation */ databaseId?: string; + /** Store this commit belongs to */ storeId?: string; - /** Parent commits */ + /** Parent commit IDs (supports merge commits) */ parentIds?: string[]; - /** The author of the commit */ + /** User who authored the changes */ authorId?: string; - /** The committer of the commit */ + /** User who committed (may differ from author) */ committerId?: string; - /** The root of the tree */ + /** Root object ID of the tree snapshot at this commit */ treeId?: string; + /** Commit timestamp */ date?: string; } -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - databaseId: string; - /** An object where the defined keys will be set on the `Object` being updated. */ - objectPatch: ObjectPatch; -} -/** Represents an update to a `Object`. Fields that are set will be updated. */ -export interface ObjectPatch { - id?: string; - databaseId?: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} export interface DeleteRefInput { clientMutationId?: string; - /** The primary unique identifier for the ref. */ + /** Unique ref identifier */ id: string; + /** Database scope for multi-tenant isolation */ databaseId: string; } export interface DeleteStoreInput { clientMutationId?: string; - /** The primary unique identifier for the store. */ + /** Unique store identifier */ id: string; } -export interface DeleteCommitInput { +export interface DeleteObjectInput { clientMutationId?: string; - /** The primary unique identifier for the commit. */ + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** The repository identifier */ + /** Database scope for multi-tenant isolation */ databaseId: string; } -export interface DeleteObjectInput { +export interface DeleteCommitInput { clientMutationId?: string; + /** Unique commit identifier */ id: string; + /** Database scope for multi-tenant isolation */ databaseId: string; } export interface ProvisionBucketInput { @@ -439,13 +425,6 @@ export interface GetAllConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Ref` values. */ export interface RefConnection { nodes: Ref[]; @@ -460,6 +439,13 @@ export interface StoreConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Commit` values. */ export interface CommitConnection { nodes: Commit[]; @@ -471,36 +457,17 @@ export interface CommitConnection { export interface MetaSchema { tables: MetaTable[]; } -export interface FreezeObjectsPayload { - clientMutationId?: string | null; -} export interface InitEmptyRepoPayload { clientMutationId?: string | null; } -export interface RemoveNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } -export interface SetPropsAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; } -export interface UpdateNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface SetAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -513,18 +480,18 @@ export interface CreateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface CreateCommitPayload { - clientMutationId?: string | null; - /** The `Commit` that was created by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} export interface CreateObjectPayload { clientMutationId?: string | null; /** The `Object` that was created by this mutation. */ object?: Object | null; objectEdge?: ObjectEdge | null; } +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} export interface UpdateRefPayload { clientMutationId?: string | null; /** The `Ref` that was updated by this mutation. */ @@ -537,18 +504,18 @@ export interface UpdateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface UpdateCommitPayload { - clientMutationId?: string | null; - /** The `Commit` that was updated by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} export interface UpdateObjectPayload { clientMutationId?: string | null; /** The `Object` that was updated by this mutation. */ object?: Object | null; objectEdge?: ObjectEdge | null; } +export interface UpdateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} export interface DeleteRefPayload { clientMutationId?: string | null; /** The `Ref` that was deleted by this mutation. */ @@ -561,18 +528,18 @@ export interface DeleteStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface DeleteCommitPayload { - clientMutationId?: string | null; - /** The `Commit` that was deleted by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} export interface DeleteObjectPayload { clientMutationId?: string | null; /** The `Object` that was deleted by this mutation. */ object?: Object | null; objectEdge?: ObjectEdge | null; } +export interface DeleteCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -604,12 +571,6 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; -} /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -622,6 +583,12 @@ export interface StoreEdge { /** The `Store` at the end of the edge. */ node?: Store | null; } +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/objects/types.ts b/sdk/constructive-react/src/objects/types.ts index 304a6206d1..7e6d4b85c0 100644 --- a/sdk/constructive-react/src/objects/types.ts +++ b/sdk/constructive-react/src/objects/types.ts @@ -7,16 +7,6 @@ export interface GetAllRecord { path: string[] | null; data: unknown | null; } -export interface Object { - hashUuid: string | null; - id: string | null; - databaseId: string | null; - kids: string[] | null; - ktree: string[] | null; - data: unknown | null; - frzn: boolean | null; - createdAt: string | null; -} export interface Ref { id: string | null; name: string | null; @@ -31,6 +21,14 @@ export interface Store { hash: string | null; createdAt: string | null; } +export interface Object { + id: string | null; + databaseId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; + createdAt: string | null; +} export interface Commit { id: string | null; message: string | null; diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md deleted file mode 100644 index 001c2a3f09..0000000000 --- a/sdk/constructive-react/src/public/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# Generated GraphQL SDK - -

- -

- - - -## Overview - -- **Tables:** 150 -- **Custom queries:** 17 -- **Custom mutations:** 41 - -**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/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md deleted file mode 100644 index 5df03e136e..0000000000 --- a/sdk/constructive-react/src/public/hooks/README.md +++ /dev/null @@ -1,4725 +0,0 @@ -# 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 | -|------|------|-------------| -| `useOrgGetManagersQuery` | Query | List all orgGetManagers | -| `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | -| `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | -| `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | -| `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useUpdateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useDeleteAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useOrgPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useOrgPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useCreateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useUpdateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useDeleteOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useDatabasesQuery` | Query | List all databases | -| `useDatabaseQuery` | Query | Get one database | -| `useCreateDatabaseMutation` | Mutation | Create a database | -| `useUpdateDatabaseMutation` | Mutation | Update a database | -| `useDeleteDatabaseMutation` | Mutation | Delete a database | -| `useSchemasQuery` | Query | List all schemas | -| `useSchemaQuery` | Query | Get one schema | -| `useCreateSchemaMutation` | Mutation | Create a schema | -| `useUpdateSchemaMutation` | Mutation | Update a schema | -| `useDeleteSchemaMutation` | Mutation | Delete a schema | -| `useTablesQuery` | Query | List all tables | -| `useTableQuery` | Query | Get one table | -| `useCreateTableMutation` | Mutation | Create a table | -| `useUpdateTableMutation` | Mutation | Update a table | -| `useDeleteTableMutation` | Mutation | Delete a table | -| `useCheckConstraintsQuery` | Query | List all checkConstraints | -| `useCheckConstraintQuery` | Query | Get one checkConstraint | -| `useCreateCheckConstraintMutation` | Mutation | Create a checkConstraint | -| `useUpdateCheckConstraintMutation` | Mutation | Update a checkConstraint | -| `useDeleteCheckConstraintMutation` | Mutation | Delete a checkConstraint | -| `useFieldsQuery` | Query | List all fields | -| `useFieldQuery` | Query | Get one field | -| `useCreateFieldMutation` | Mutation | Create a field | -| `useUpdateFieldMutation` | Mutation | Update a field | -| `useDeleteFieldMutation` | Mutation | Delete a field | -| `useSpatialRelationsQuery` | Query | List all spatialRelations | -| `useSpatialRelationQuery` | Query | Get one spatialRelation | -| `useCreateSpatialRelationMutation` | Mutation | Create a spatialRelation | -| `useUpdateSpatialRelationMutation` | Mutation | Update a spatialRelation | -| `useDeleteSpatialRelationMutation` | Mutation | Delete a spatialRelation | -| `useForeignKeyConstraintsQuery` | Query | List all foreignKeyConstraints | -| `useForeignKeyConstraintQuery` | Query | Get one foreignKeyConstraint | -| `useCreateForeignKeyConstraintMutation` | Mutation | Create a foreignKeyConstraint | -| `useUpdateForeignKeyConstraintMutation` | Mutation | Update a foreignKeyConstraint | -| `useDeleteForeignKeyConstraintMutation` | Mutation | Delete a foreignKeyConstraint | -| `useFullTextSearchesQuery` | Query | List all fullTextSearches | -| `useFullTextSearchQuery` | Query | Get one fullTextSearch | -| `useCreateFullTextSearchMutation` | Mutation | Create a fullTextSearch | -| `useUpdateFullTextSearchMutation` | Mutation | Update a fullTextSearch | -| `useDeleteFullTextSearchMutation` | Mutation | Delete a fullTextSearch | -| `useIndicesQuery` | Query | List all indices | -| `useIndexQuery` | Query | Get one index | -| `useCreateIndexMutation` | Mutation | Create a index | -| `useUpdateIndexMutation` | Mutation | Update a index | -| `useDeleteIndexMutation` | Mutation | Delete a index | -| `usePoliciesQuery` | Query | List all policies | -| `usePolicyQuery` | Query | Get one policy | -| `useCreatePolicyMutation` | Mutation | Create a policy | -| `useUpdatePolicyMutation` | Mutation | Update a policy | -| `useDeletePolicyMutation` | Mutation | Delete a policy | -| `usePrimaryKeyConstraintsQuery` | Query | List all primaryKeyConstraints | -| `usePrimaryKeyConstraintQuery` | Query | Get one primaryKeyConstraint | -| `useCreatePrimaryKeyConstraintMutation` | Mutation | Create a primaryKeyConstraint | -| `useUpdatePrimaryKeyConstraintMutation` | Mutation | Update a primaryKeyConstraint | -| `useDeletePrimaryKeyConstraintMutation` | Mutation | Delete a primaryKeyConstraint | -| `useTableGrantsQuery` | Query | List all tableGrants | -| `useTableGrantQuery` | Query | Get one tableGrant | -| `useCreateTableGrantMutation` | Mutation | Create a tableGrant | -| `useUpdateTableGrantMutation` | Mutation | Update a tableGrant | -| `useDeleteTableGrantMutation` | Mutation | Delete a tableGrant | -| `useTriggersQuery` | Query | List all triggers | -| `useTriggerQuery` | Query | Get one trigger | -| `useCreateTriggerMutation` | Mutation | Create a trigger | -| `useUpdateTriggerMutation` | Mutation | Update a trigger | -| `useDeleteTriggerMutation` | Mutation | Delete a trigger | -| `useUniqueConstraintsQuery` | Query | List all uniqueConstraints | -| `useUniqueConstraintQuery` | Query | Get one uniqueConstraint | -| `useCreateUniqueConstraintMutation` | Mutation | Create a uniqueConstraint | -| `useUpdateUniqueConstraintMutation` | Mutation | Update a uniqueConstraint | -| `useDeleteUniqueConstraintMutation` | Mutation | Delete a uniqueConstraint | -| `useViewsQuery` | Query | List all views | -| `useViewQuery` | Query | Get one view | -| `useCreateViewMutation` | Mutation | Create a view | -| `useUpdateViewMutation` | Mutation | Update a view | -| `useDeleteViewMutation` | Mutation | Delete a view | -| `useViewTablesQuery` | Query | Junction table linking views to their joined tables for referential integrity | -| `useViewTableQuery` | Query | Junction table linking views to their joined tables for referential integrity | -| `useCreateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | -| `useUpdateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | -| `useDeleteViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | -| `useViewGrantsQuery` | Query | List all viewGrants | -| `useViewGrantQuery` | Query | Get one viewGrant | -| `useCreateViewGrantMutation` | Mutation | Create a viewGrant | -| `useUpdateViewGrantMutation` | Mutation | Update a viewGrant | -| `useDeleteViewGrantMutation` | Mutation | Delete a viewGrant | -| `useViewRulesQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | -| `useViewRuleQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | -| `useCreateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | -| `useUpdateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | -| `useDeleteViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | -| `useEmbeddingChunksQuery` | Query | List all embeddingChunks | -| `useEmbeddingChunkQuery` | Query | Get one embeddingChunk | -| `useCreateEmbeddingChunkMutation` | Mutation | Create a embeddingChunk | -| `useUpdateEmbeddingChunkMutation` | Mutation | Update a embeddingChunk | -| `useDeleteEmbeddingChunkMutation` | Mutation | Delete a embeddingChunk | -| `useSecureTableProvisionsQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useSecureTableProvisionQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useCreateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useUpdateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useDeleteSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `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. - - 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. | -| `useRelationProvisionQuery` | 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. - - 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. | -| `useCreateRelationProvisionMutation` | Mutation | 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. | -| `useUpdateRelationProvisionMutation` | Mutation | 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. | -| `useDeleteRelationProvisionMutation` | Mutation | 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. | -| `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. | -| `useIdentityProvidersModulesQuery` | Query | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | -| `useIdentityProvidersModuleQuery` | Query | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | -| `useCreateIdentityProvidersModuleMutation` | Mutation | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | -| `useUpdateIdentityProvidersModuleMutation` | Mutation | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | -| `useDeleteIdentityProvidersModuleMutation` | Mutation | Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. | -| `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 | -| `useConfigSecretsOrgModulesQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useConfigSecretsOrgModuleQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useCreateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useUpdateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useDeleteConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useSchemaGrantsQuery` | Query | List all schemaGrants | -| `useSchemaGrantQuery` | Query | Get one schemaGrant | -| `useCreateSchemaGrantMutation` | Mutation | Create a schemaGrant | -| `useUpdateSchemaGrantMutation` | Mutation | Update a schemaGrant | -| `useDeleteSchemaGrantMutation` | Mutation | Delete a schemaGrant | -| `useDefaultPrivilegesQuery` | Query | List all defaultPrivileges | -| `useDefaultPrivilegeQuery` | Query | Get one defaultPrivilege | -| `useCreateDefaultPrivilegeMutation` | Mutation | Create a defaultPrivilege | -| `useUpdateDefaultPrivilegeMutation` | Mutation | Update a defaultPrivilege | -| `useDeleteDefaultPrivilegeMutation` | Mutation | Delete a defaultPrivilege | -| `useEnumsQuery` | Query | List all enums | -| `useEnumQuery` | Query | Get one enum | -| `useCreateEnumMutation` | Mutation | Create a enum | -| `useUpdateEnumMutation` | Mutation | Update a enum | -| `useDeleteEnumMutation` | Mutation | Delete a enum | -| `useFunctionsQuery` | Query | List all functions | -| `useFunctionQuery` | Query | Get one function | -| `useCreateFunctionMutation` | Mutation | Create a function | -| `useUpdateFunctionMutation` | Mutation | Update a function | -| `useDeleteFunctionMutation` | Mutation | Delete a function | -| `useApiSchemasQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | -| `useApiSchemaQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | -| `useCreateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | -| `useUpdateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | -| `useDeleteApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | -| `useApiModulesQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | -| `useApiModuleQuery` | Query | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | -| `useCreateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | -| `useUpdateApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | -| `useDeleteApiModuleMutation` | Mutation | Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server | -| `useDomainsQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | -| `useDomainQuery` | Query | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | -| `useCreateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | -| `useUpdateDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | -| `useDeleteDomainMutation` | Mutation | DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site | -| `useSiteMetadataQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | -| `useSiteMetadatumQuery` | Query | SEO and social sharing metadata for a site: page title, description, and Open Graph image | -| `useCreateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | -| `useUpdateSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | -| `useDeleteSiteMetadatumMutation` | Mutation | SEO and social sharing metadata for a site: page title, description, and Open Graph image | -| `useSiteModulesQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | -| `useSiteModuleQuery` | Query | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | -| `useCreateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | -| `useUpdateSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | -| `useDeleteSiteModuleMutation` | Mutation | Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site | -| `useSiteThemesQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | -| `useSiteThemeQuery` | Query | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | -| `useCreateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | -| `useUpdateSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | -| `useDeleteSiteThemeMutation` | Mutation | Theme configuration for a site; stores design tokens, colors, and typography as JSONB | -| `useCorsSettingsQuery` | Query | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | -| `useCorsSettingQuery` | Query | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | -| `useCreateCorsSettingMutation` | Mutation | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | -| `useUpdateCorsSettingMutation` | Mutation | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | -| `useDeleteCorsSettingMutation` | Mutation | Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries | -| `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 | -| `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 | -| `useTriggerFunctionsQuery` | Query | List all triggerFunctions | -| `useTriggerFunctionQuery` | Query | Get one triggerFunction | -| `useCreateTriggerFunctionMutation` | Mutation | Create a triggerFunction | -| `useUpdateTriggerFunctionMutation` | Mutation | Update a triggerFunction | -| `useDeleteTriggerFunctionMutation` | Mutation | Delete a triggerFunction | -| `usePartitionsQuery` | Query | List all partitions | -| `usePartitionQuery` | Query | Get one partition | -| `useCreatePartitionMutation` | Mutation | Create a partition | -| `useUpdatePartitionMutation` | Mutation | Update a partition | -| `useDeletePartitionMutation` | Mutation | Delete a partition | -| `useDatabaseTransfersQuery` | Query | List all databaseTransfers | -| `useDatabaseTransferQuery` | Query | Get one databaseTransfer | -| `useCreateDatabaseTransferMutation` | Mutation | Create a databaseTransfer | -| `useUpdateDatabaseTransferMutation` | Mutation | Update a databaseTransfer | -| `useDeleteDatabaseTransferMutation` | Mutation | Delete a databaseTransfer | -| `useApisQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | -| `useApiQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | -| `useCreateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | -| `useUpdateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | -| `useDeleteApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | -| `useSitesQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | -| `useSiteQuery` | Query | Top-level site configuration: branding assets, title, and description for a deployed application | -| `useCreateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | -| `useUpdateSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | -| `useDeleteSiteMutation` | Mutation | Top-level site configuration: branding assets, title, and description for a deployed application | -| `useAppsQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | -| `useAppQuery` | Query | Mobile and native app configuration linked to a site, including store links and identifiers | -| `useCreateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | -| `useUpdateAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | -| `useDeleteAppMutation` | Mutation | Mobile and native app configuration linked to a site, including store links and identifiers | -| `useApiSettingsQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | -| `useApiSettingQuery` | Query | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | -| `useCreateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | -| `useUpdateApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | -| `useDeleteApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default | -| `useConnectedAccountsModulesQuery` | Query | List all connectedAccountsModules | -| `useConnectedAccountsModuleQuery` | Query | Get one connectedAccountsModule | -| `useCreateConnectedAccountsModuleMutation` | Mutation | Create a connectedAccountsModule | -| `useUpdateConnectedAccountsModuleMutation` | Mutation | Update a connectedAccountsModule | -| `useDeleteConnectedAccountsModuleMutation` | Mutation | Delete a connectedAccountsModule | -| `useCryptoAddressesModulesQuery` | Query | List all cryptoAddressesModules | -| `useCryptoAddressesModuleQuery` | Query | Get one cryptoAddressesModule | -| `useCreateCryptoAddressesModuleMutation` | Mutation | Create a cryptoAddressesModule | -| `useUpdateCryptoAddressesModuleMutation` | Mutation | Update a cryptoAddressesModule | -| `useDeleteCryptoAddressesModuleMutation` | Mutation | Delete a cryptoAddressesModule | -| `useCryptoAuthModulesQuery` | Query | List all cryptoAuthModules | -| `useCryptoAuthModuleQuery` | Query | Get one cryptoAuthModule | -| `useCreateCryptoAuthModuleMutation` | Mutation | Create a cryptoAuthModule | -| `useUpdateCryptoAuthModuleMutation` | Mutation | Update a cryptoAuthModule | -| `useDeleteCryptoAuthModuleMutation` | Mutation | Delete a cryptoAuthModule | -| `useDefaultIdsModulesQuery` | Query | List all defaultIdsModules | -| `useDefaultIdsModuleQuery` | Query | Get one defaultIdsModule | -| `useCreateDefaultIdsModuleMutation` | Mutation | Create a defaultIdsModule | -| `useUpdateDefaultIdsModuleMutation` | Mutation | Update a defaultIdsModule | -| `useDeleteDefaultIdsModuleMutation` | Mutation | Delete a defaultIdsModule | -| `useDenormalizedTableFieldsQuery` | Query | List all denormalizedTableFields | -| `useDenormalizedTableFieldQuery` | Query | Get one denormalizedTableField | -| `useCreateDenormalizedTableFieldMutation` | Mutation | Create a denormalizedTableField | -| `useUpdateDenormalizedTableFieldMutation` | Mutation | Update a denormalizedTableField | -| `useDeleteDenormalizedTableFieldMutation` | Mutation | Delete a denormalizedTableField | -| `useEmailsModulesQuery` | Query | List all emailsModules | -| `useEmailsModuleQuery` | Query | Get one emailsModule | -| `useCreateEmailsModuleMutation` | Mutation | Create a emailsModule | -| `useUpdateEmailsModuleMutation` | Mutation | Update a emailsModule | -| `useDeleteEmailsModuleMutation` | Mutation | Delete a emailsModule | -| `useConfigSecretsUserModulesQuery` | Query | List all configSecretsUserModules | -| `useConfigSecretsUserModuleQuery` | Query | Get one configSecretsUserModule | -| `useCreateConfigSecretsUserModuleMutation` | Mutation | Create a configSecretsUserModule | -| `useUpdateConfigSecretsUserModuleMutation` | Mutation | Update a configSecretsUserModule | -| `useDeleteConfigSecretsUserModuleMutation` | Mutation | Delete a configSecretsUserModule | -| `useInvitesModulesQuery` | Query | List all invitesModules | -| `useInvitesModuleQuery` | Query | Get one invitesModule | -| `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | -| `useUpdateInvitesModuleMutation` | Mutation | Update a invitesModule | -| `useDeleteInvitesModuleMutation` | Mutation | Delete a invitesModule | -| `useEventsModulesQuery` | Query | List all eventsModules | -| `useEventsModuleQuery` | Query | Get one eventsModule | -| `useCreateEventsModuleMutation` | Mutation | Create a eventsModule | -| `useUpdateEventsModuleMutation` | Mutation | Update a eventsModule | -| `useDeleteEventsModuleMutation` | Mutation | Delete a eventsModule | -| `useLimitsModulesQuery` | Query | List all limitsModules | -| `useLimitsModuleQuery` | Query | Get one limitsModule | -| `useCreateLimitsModuleMutation` | Mutation | Create a limitsModule | -| `useUpdateLimitsModuleMutation` | Mutation | Update a limitsModule | -| `useDeleteLimitsModuleMutation` | Mutation | Delete a limitsModule | -| `useMembershipTypesModulesQuery` | Query | List all membershipTypesModules | -| `useMembershipTypesModuleQuery` | Query | Get one membershipTypesModule | -| `useCreateMembershipTypesModuleMutation` | Mutation | Create a membershipTypesModule | -| `useUpdateMembershipTypesModuleMutation` | Mutation | Update a membershipTypesModule | -| `useDeleteMembershipTypesModuleMutation` | Mutation | Delete a membershipTypesModule | -| `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 | -| `usePermissionsModulesQuery` | Query | List all permissionsModules | -| `usePermissionsModuleQuery` | Query | Get one permissionsModule | -| `useCreatePermissionsModuleMutation` | Mutation | Create a permissionsModule | -| `useUpdatePermissionsModuleMutation` | Mutation | Update a permissionsModule | -| `useDeletePermissionsModuleMutation` | Mutation | Delete a permissionsModule | -| `usePhoneNumbersModulesQuery` | Query | List all phoneNumbersModules | -| `usePhoneNumbersModuleQuery` | Query | Get one phoneNumbersModule | -| `useCreatePhoneNumbersModuleMutation` | Mutation | Create a phoneNumbersModule | -| `useUpdatePhoneNumbersModuleMutation` | Mutation | Update a phoneNumbersModule | -| `useDeletePhoneNumbersModuleMutation` | Mutation | Delete a phoneNumbersModule | -| `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 | -| `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 | -| `useSessionsModulesQuery` | Query | List all sessionsModules | -| `useSessionsModuleQuery` | Query | Get one sessionsModule | -| `useCreateSessionsModuleMutation` | Mutation | Create a sessionsModule | -| `useUpdateSessionsModuleMutation` | Mutation | Update a sessionsModule | -| `useDeleteSessionsModuleMutation` | Mutation | Delete a sessionsModule | -| `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 | -| `useUsersModulesQuery` | Query | List all usersModules | -| `useUsersModuleQuery` | Query | Get one usersModule | -| `useCreateUsersModuleMutation` | Mutation | Create a usersModule | -| `useUpdateUsersModuleMutation` | Mutation | Update a usersModule | -| `useDeleteUsersModuleMutation` | Mutation | Delete a usersModule | -| `useBlueprintsQuery` | Query | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | -| `useBlueprintQuery` | Query | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | -| `useCreateBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | -| `useUpdateBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | -| `useDeleteBlueprintMutation` | Mutation | An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. | -| `useBlueprintTemplatesQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | -| `useBlueprintTemplateQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | -| `useCreateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | -| `useUpdateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | -| `useDeleteBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | -| `useBlueprintConstructionsQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useBlueprintConstructionQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useCreateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useUpdateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useDeleteBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. | -| `useStorageModulesQuery` | Query | List all storageModules | -| `useStorageModuleQuery` | Query | Get one storageModule | -| `useCreateStorageModuleMutation` | Mutation | Create a storageModule | -| `useUpdateStorageModuleMutation` | Mutation | Update a storageModule | -| `useDeleteStorageModuleMutation` | Mutation | Delete a storageModule | -| `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 - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. | -| `useEntityTypeProvisionQuery` | Query | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. | -| `useCreateEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. | -| `useUpdateEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. | -| `useDeleteEntityTypeProvisionMutation` | Mutation | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. | -| `useWebauthnCredentialsModulesQuery` | Query | 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. | -| `useWebauthnCredentialsModuleQuery` | Query | 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. | -| `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. | -| `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 | -| `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 | -| `useInferenceLogModulesQuery` | Query | List all inferenceLogModules | -| `useInferenceLogModuleQuery` | Query | Get one inferenceLogModule | -| `useCreateInferenceLogModuleMutation` | Mutation | Create a inferenceLogModule | -| `useUpdateInferenceLogModuleMutation` | Mutation | Update a inferenceLogModule | -| `useDeleteInferenceLogModuleMutation` | Mutation | Delete a inferenceLogModule | -| `useComputeLogModulesQuery` | Query | List all computeLogModules | -| `useComputeLogModuleQuery` | Query | Get one computeLogModule | -| `useCreateComputeLogModuleMutation` | Mutation | Create a computeLogModule | -| `useUpdateComputeLogModuleMutation` | Mutation | Update a computeLogModule | -| `useDeleteComputeLogModuleMutation` | Mutation | Delete a computeLogModule | -| `useTransferLogModulesQuery` | Query | List all transferLogModules | -| `useTransferLogModuleQuery` | Query | Get one transferLogModule | -| `useCreateTransferLogModuleMutation` | Mutation | Create a transferLogModule | -| `useUpdateTransferLogModuleMutation` | Mutation | Update a transferLogModule | -| `useDeleteTransferLogModuleMutation` | Mutation | Delete a transferLogModule | -| `useStorageLogModulesQuery` | Query | List all storageLogModules | -| `useStorageLogModuleQuery` | Query | Get one storageLogModule | -| `useCreateStorageLogModuleMutation` | Mutation | Create a storageLogModule | -| `useUpdateStorageLogModuleMutation` | Mutation | Update a storageLogModule | -| `useDeleteStorageLogModuleMutation` | Mutation | Delete a storageLogModule | -| `useDbUsageModulesQuery` | Query | List all dbUsageModules | -| `useDbUsageModuleQuery` | Query | Get one dbUsageModule | -| `useCreateDbUsageModuleMutation` | Mutation | Create a dbUsageModule | -| `useUpdateDbUsageModuleMutation` | Mutation | Update a dbUsageModule | -| `useDeleteDbUsageModuleMutation` | Mutation | Delete a dbUsageModule | -| `useAgentModulesQuery` | Query | List all agentModules | -| `useAgentModuleQuery` | Query | Get one agentModule | -| `useCreateAgentModuleMutation` | Mutation | Create a agentModule | -| `useUpdateAgentModuleMutation` | Mutation | Update a agentModule | -| `useDeleteAgentModuleMutation` | Mutation | Delete a agentModule | -| `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 | -| `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 | -| `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. | -| `useAppAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | -| `useAppAdminGrantQuery` | Query | Records of admin role grants and revocations between members | -| `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useUpdateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useDeleteAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useAppOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | -| `useAppOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | -| `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | -| `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | -| `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useOrgMembersQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | -| `useOrgMemberQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | -| `useCreateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | -| `useUpdateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | -| `useDeleteOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | -| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | -| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | -| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | -| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | -| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useOrgMemberProfilesQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useOrgMemberProfileQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useCreateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useUpdateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useDeleteOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | -| `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | -| `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useAppLimitCreditsQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useAppLimitCreditQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useCreateAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useUpdateAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useDeleteAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useAppLimitCreditCodeItemsQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | -| `useAppLimitCreditCodeItemQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | -| `useCreateAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | -| `useUpdateAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | -| `useDeleteAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | -| `useAppLimitCreditRedemptionsQuery` | Query | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useAppLimitCreditRedemptionQuery` | Query | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useCreateAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useUpdateAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useDeleteAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | -| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useOrgLimitCreditsQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useOrgLimitCreditQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | -| `useCreateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useUpdateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useDeleteOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | -| `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useUpdateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useDeleteOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | -| `useOrgLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useOrgLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useCreateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUpdateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useDeleteOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | -| `useEmailQuery` | Query | User email addresses with verification and primary-email management | -| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | -| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | -| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | -| `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | -| `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | -| `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | -| `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | -| `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | -| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useWebauthnCredentialsQuery` | Query | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | -| `useWebauthnCredentialQuery` | Query | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | -| `useCreateWebauthnCredentialMutation` | Mutation | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | -| `useUpdateWebauthnCredentialMutation` | Mutation | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | -| `useDeleteWebauthnCredentialMutation` | Mutation | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | -| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useAppClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | -| `useAppClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | -| `useCreateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useUpdateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useDeleteAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | -| `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | -| `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useAuditLogAuthsQuery` | Query | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useAuditLogAuthQuery` | Query | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useCreateAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useUpdateAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useDeleteAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useIdentityProvidersQuery` | Query | List all identityProviders | -| `useCreateIdentityProviderMutation` | Mutation | Create a identityProvider | -| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useRoleTypesQuery` | Query | List all roleTypes | -| `useRoleTypeQuery` | Query | Get one roleType | -| `useCreateRoleTypeMutation` | Mutation | Create a roleType | -| `useUpdateRoleTypeMutation` | Mutation | Update a roleType | -| `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | -| `useMigrateFilesQuery` | Query | List all migrateFiles | -| `useMigrateFileQuery` | Query | Get one migrateFile | -| `useCreateMigrateFileMutation` | Mutation | Create a migrateFile | -| `useUpdateMigrateFileMutation` | Mutation | Update a migrateFile | -| `useDeleteMigrateFileMutation` | Mutation | Delete a migrateFile | -| `useDevicesModulesQuery` | Query | List all devicesModules | -| `useDevicesModuleQuery` | Query | Get one devicesModule | -| `useCreateDevicesModuleMutation` | Mutation | Create a devicesModule | -| `useUpdateDevicesModuleMutation` | Mutation | Update a devicesModule | -| `useDeleteDevicesModuleMutation` | Mutation | Delete a devicesModule | -| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | -| `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | -| `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | -| `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | -| `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | -| `useAppLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useAppLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useCreateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useUpdateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useDeleteAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useOrgLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useOrgLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useCreateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useUpdateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useDeleteOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | -| `useAppLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useAppLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useCreateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useUpdateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useDeleteAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useUserConnectedAccountsQuery` | Query | List all userConnectedAccounts | -| `useUserConnectedAccountQuery` | Query | Get one userConnectedAccount | -| `useCreateUserConnectedAccountMutation` | Mutation | Create a userConnectedAccount | -| `useUpdateUserConnectedAccountMutation` | Mutation | Update a userConnectedAccount | -| `useDeleteUserConnectedAccountMutation` | Mutation | Delete a userConnectedAccount | -| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `usePubkeySettingsQuery` | Query | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | -| `usePubkeySettingQuery` | Query | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | -| `useCreatePubkeySettingMutation` | Mutation | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | -| `useUpdatePubkeySettingMutation` | Mutation | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | -| `useDeletePubkeySettingMutation` | Mutation | Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries | -| `useRateLimitsModulesQuery` | Query | List all rateLimitsModules | -| `useRateLimitsModuleQuery` | Query | Get one rateLimitsModule | -| `useCreateRateLimitsModuleMutation` | Mutation | Create a rateLimitsModule | -| `useUpdateRateLimitsModuleMutation` | Mutation | Update a rateLimitsModule | -| `useDeleteRateLimitsModuleMutation` | Mutation | Delete a rateLimitsModule | -| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useRlsSettingsQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | -| `useRlsSettingQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | -| `useCreateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | -| `useUpdateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | -| `useDeleteRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | -| `useRlsModulesQuery` | Query | List all rlsModules | -| `useRlsModuleQuery` | Query | Get one rlsModule | -| `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | -| `useUpdateRlsModuleMutation` | Mutation | Update a rlsModule | -| `useDeleteRlsModuleMutation` | Mutation | Delete a rlsModule | -| `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 | -| `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 | -| `useSqlActionsQuery` | Query | List all sqlActions | -| `useSqlActionQuery` | Query | Get one sqlAction | -| `useCreateSqlActionMutation` | Mutation | Create a sqlAction | -| `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | -| `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | -| `useDatabaseSettingsQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useDatabaseSettingQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useCreateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useUpdateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useDeleteDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | -| `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | -| `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useAppLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useUpdateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useDeleteAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useUpdateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useDeleteOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useUsersQuery` | Query | List all users | -| `useUserQuery` | Query | Get one user | -| `useCreateUserMutation` | Mutation | Create a user | -| `useUpdateUserMutation` | Mutation | Update a user | -| `useDeleteUserMutation` | Mutation | Delete a user | -| `useAstMigrationsQuery` | Query | List all astMigrations | -| `useAstMigrationQuery` | Query | Get one astMigration | -| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | -| `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | -| `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | -| `useWebauthnSettingsQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useWebauthnSettingQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useCreateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useUpdateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useDeleteWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useBillingModulesQuery` | Query | List all billingModules | -| `useBillingModuleQuery` | Query | Get one billingModule | -| `useCreateBillingModuleMutation` | Mutation | Create a billingModule | -| `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | -| `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | -| `useBillingProviderModulesQuery` | Query | List all billingProviderModules | -| `useBillingProviderModuleQuery` | Query | Get one billingProviderModule | -| `useCreateBillingProviderModuleMutation` | Mutation | Create a billingProviderModule | -| `useUpdateBillingProviderModuleMutation` | Mutation | Update a billingProviderModule | -| `useDeleteBillingProviderModuleMutation` | Mutation | Delete a billingProviderModule | -| `useHierarchyModulesQuery` | Query | List all hierarchyModules | -| `useHierarchyModuleQuery` | Query | Get one hierarchyModule | -| `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | -| `useUpdateHierarchyModuleMutation` | Mutation | Update a hierarchyModule | -| `useDeleteHierarchyModuleMutation` | Mutation | Delete a hierarchyModule | -| `useCurrentUserIdQuery` | Query | currentUserId | -| `useCurrentUserAgentQuery` | Query | currentUserAgent | -| `useCurrentIpAddressQuery` | Query | currentIpAddress | -| `useRequireStepUpQuery` | Query | requireStepUp | -| `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | -| `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | -| `useApplyRegistryDefaultsQuery` | Query | applyRegistryDefaults | -| `useResolveBlueprintFieldQuery` | Query | Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. | -| `useResolveBlueprintTableQuery` | Query | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | -| `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | -| `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | -| `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | -| `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | -| `useOrgPermissionsGetMaskByNamesQuery` | Query | orgPermissionsGetMaskByNames | -| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | -| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | -| `useCurrentUserQuery` | Query | currentUser | -| `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | -| `useSignOutMutation` | Mutation | signOut | -| `useAcceptDatabaseTransferMutation` | Mutation | acceptDatabaseTransfer | -| `useCancelDatabaseTransferMutation` | Mutation | cancelDatabaseTransfer | -| `useRejectDatabaseTransferMutation` | Mutation | rejectDatabaseTransfer | -| `useDisconnectAccountMutation` | Mutation | disconnectAccount | -| `useRevokeApiKeyMutation` | Mutation | revokeApiKey | -| `useRevokeSessionMutation` | Mutation | revokeSession | -| `useVerifyPasswordMutation` | Mutation | verifyPassword | -| `useVerifyTotpMutation` | Mutation | verifyTotp | -| `useSubmitAppInviteCodeMutation` | Mutation | submitAppInviteCode | -| `useSubmitOrgInviteCodeMutation` | Mutation | submitOrgInviteCode | -| `useCheckPasswordMutation` | Mutation | checkPassword | -| `useConfirmDeleteAccountMutation` | Mutation | confirmDeleteAccount | -| `useSetPasswordMutation` | Mutation | setPassword | -| `useVerifyEmailMutation` | Mutation | verifyEmail | -| `useConstructBlueprintMutation` | Mutation | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | -| `useProvisionNewUserMutation` | Mutation | provisionNewUser | -| `useResetPasswordMutation` | Mutation | resetPassword | -| `useProvisionCheckConstraintMutation` | Mutation | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | -| `useProvisionUniqueConstraintMutation` | Mutation | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | -| `useProvisionFullTextSearchMutation` | Mutation | Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. | -| `useProvisionIndexMutation` | Mutation | Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. | -| `useCopyTemplateToBlueprintMutation` | Mutation | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | -| `useProvisionSpatialRelationMutation` | Mutation | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | -| `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | -| `useBootstrapUserMutation` | Mutation | bootstrapUser | -| `useSignUpMutation` | Mutation | signUp | -| `useSignInMutation` | Mutation | signIn | -| `useProvisionRelationMutation` | Mutation | Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). | -| `useSetFieldOrderMutation` | Mutation | setFieldOrder | -| `useApplyRlsMutation` | Mutation | applyRls | -| `useProvisionDatabaseWithUserMutation` | Mutation | provisionDatabaseWithUser | -| `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) - -Returns the database_id UUID of the newly created database. - -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 - | -| `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | -| `useCreateApiKeyMutation` | Mutation | createApiKey | -| `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | -| `useProvisionTableMutation` | Mutation | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | -| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | -| `useForgotPasswordMutation` | Mutation | forgotPassword | -| `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. -Reads the bucket config via RLS, then creates and configures -the S3 bucket with the appropriate privacy policies, CORS rules, -and lifecycle settings. | - -## Table Hooks - -### OrgGetManagersRecord - -```typescript -// List all orgGetManagers -const { data, isLoading } = useOrgGetManagersQuery({ - selection: { fields: { userId: true, depth: true } }, -}); - -// Create a orgGetManagersRecord -const { mutate: create } = useCreateOrgGetManagersRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ userId: '', depth: '' }); -``` - -### OrgGetSubordinatesRecord - -```typescript -// List all orgGetSubordinates -const { data, isLoading } = useOrgGetSubordinatesQuery({ - selection: { fields: { userId: true, depth: true } }, -}); - -// Create a orgGetSubordinatesRecord -const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ userId: '', depth: '' }); -``` - -### AppPermission - -```typescript -// List all appPermissions -const { data, isLoading } = useAppPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); - -// Get one appPermission -const { data: item } = useAppPermissionQuery({ - id: '', - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); - -// Create a appPermission -const { mutate: create } = useCreateAppPermissionMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', bitnum: '', bitstr: '', description: '' }); -``` - -### OrgPermission - -```typescript -// List all orgPermissions -const { data, isLoading } = useOrgPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); - -// Get one orgPermission -const { data: item } = useOrgPermissionQuery({ - id: '', - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, -}); - -// Create a orgPermission -const { mutate: create } = useCreateOrgPermissionMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', bitnum: '', bitstr: '', description: '' }); -``` - -### Database - -```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 } }, -}); - -// 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 } }, -}); - -// Create a database -const { mutate: create } = useCreateDatabaseMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); -``` - -### Schema - -```typescript -// List all schemas -const { data, isLoading } = useSchemasQuery({ - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, -}); - -// Get one schema -const { data: item } = useSchemaQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, -}); - -// Create a schema -const { mutate: create } = useCreateSchemaMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); -``` - -### Table - -```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a table -const { mutate: create } = useCreateTableMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); -``` - -### CheckConstraint - -```typescript -// List all checkConstraints -const { data, isLoading } = useCheckConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one checkConstraint -const { data: item } = useCheckConstraintQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a checkConstraint -const { mutate: create } = useCreateCheckConstraintMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - -### Field - -```typescript -// List all fields -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, module: true, scope: true, createdAt: true, updatedAt: true } }, -}); - -// Get one field -const { data: item } = 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, module: true, scope: 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: '', module: '', scope: '' }); -``` - -### SpatialRelation - -```typescript -// List all spatialRelations -const { data, isLoading } = useSpatialRelationsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one spatialRelation -const { data: item } = useSpatialRelationQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a spatialRelation -const { mutate: create } = useCreateSpatialRelationMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }); -``` - -### ForeignKeyConstraint - -```typescript -// List all foreignKeyConstraints -const { data, isLoading } = useForeignKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one foreignKeyConstraint -const { data: item } = useForeignKeyConstraintQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a foreignKeyConstraint -const { mutate: create } = useCreateForeignKeyConstraintMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); -``` - -### FullTextSearch - -```typescript -// List all fullTextSearches -const { data, isLoading } = useFullTextSearchesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, -}); - -// Get one fullTextSearch -const { data: item } = useFullTextSearchQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, -}); - -// Create a fullTextSearch -const { mutate: create } = useCreateFullTextSearchMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }); -``` - -### Index - -```typescript -// List all indices -const { data, isLoading } = useIndicesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one index -const { data: item } = useIndexQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a index -const { mutate: create } = useCreateIndexMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - -### Policy - -```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }); -``` - -### PrimaryKeyConstraint - -```typescript -// List all primaryKeyConstraints -const { data, isLoading } = usePrimaryKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one primaryKeyConstraint -const { data: item } = usePrimaryKeyConstraintQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a primaryKeyConstraint -const { mutate: create } = useCreatePrimaryKeyConstraintMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - -### TableGrant - -```typescript -// List all tableGrants -const { data, isLoading } = useTableGrantsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, -}); - -// Get one tableGrant -const { data: item } = useTableGrantQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, -}); - -// Create a tableGrant -const { mutate: create } = useCreateTableGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); -``` - -### Trigger - -```typescript -// List all triggers -const { data, isLoading } = useTriggersQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one trigger -const { data: item } = useTriggerQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a trigger -const { mutate: create } = useCreateTriggerMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - -### UniqueConstraint - -```typescript -// List all uniqueConstraints -const { data, isLoading } = useUniqueConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Get one uniqueConstraint -const { data: item } = useUniqueConstraintQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, -}); - -// Create a uniqueConstraint -const { mutate: create } = useCreateUniqueConstraintMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); -``` - -### View - -```typescript -// List all views -const { data, isLoading } = useViewsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, -}); - -// Get one view -const { data: item } = useViewQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, -}); - -// Create a view -const { mutate: create } = useCreateViewMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - -### ViewTable - -```typescript -// List all viewTables -const { data, isLoading } = useViewTablesQuery({ - selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, -}); - -// Get one viewTable -const { data: item } = useViewTableQuery({ - id: '', - selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, -}); - -// Create a viewTable -const { mutate: create } = useCreateViewTableMutation({ - selection: { fields: { id: true } }, -}); -create({ viewId: '', tableId: '', joinOrder: '' }); -``` - -### ViewGrant - -```typescript -// List all viewGrants -const { data, isLoading } = useViewGrantsQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, -}); - -// Get one viewGrant -const { data: item } = useViewGrantQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, -}); - -// Create a viewGrant -const { mutate: create } = useCreateViewGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); -``` - -### ViewRule - -```typescript -// List all viewRules -const { data, isLoading } = useViewRulesQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, -}); - -// Get one viewRule -const { data: item } = useViewRuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, -}); - -// Create a viewRule -const { mutate: create } = useCreateViewRuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', viewId: '', name: '', event: '', action: '' }); -``` - -### EmbeddingChunk - -```typescript -// List all embeddingChunks -const { data, isLoading } = useEmbeddingChunksQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one embeddingChunk -const { data: item } = useEmbeddingChunkQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a embeddingChunk -const { mutate: create } = useCreateEmbeddingChunkMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }); -``` - -### SecureTableProvision - -```typescript -// List all secureTableProvisions -const { data, isLoading } = useSecureTableProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, -}); - -// Get one secureTableProvision -const { data: item } = useSecureTableProvisionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, -}); - -// Create a secureTableProvision -const { mutate: create } = useCreateSecureTableProvisionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }); -``` - -### RelationProvision - -```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 } }, -}); - -// Get one relationProvision -const { data: item } = useRelationProvisionQuery({ - 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 } }, -}); - -// Create a relationProvision -const { mutate: create } = useCreateRelationProvisionMutation({ - 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: '' }); -``` - -### SessionSecretsModule - -```typescript -// List all sessionSecretsModules -const { data, isLoading } = useSessionSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }, -}); - -// Get one sessionSecretsModule -const { data: item } = useSessionSecretsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }, -}); - -// Create a sessionSecretsModule -const { mutate: create } = useCreateSessionSecretsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }); -``` - -### IdentityProvidersModule - -```typescript -// List all identityProvidersModules -const { data, isLoading } = useIdentityProvidersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }, -}); - -// Get one identityProvidersModule -const { data: item } = useIdentityProvidersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }, -}); - -// Create a identityProvidersModule -const { mutate: create } = useCreateIdentityProvidersModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '' }); -``` - -### RealtimeModule - -```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 } }, -}); - -// Get one realtimeModule -const { data: item } = useRealtimeModuleQuery({ - 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 } }, -}); - -// Create a realtimeModule -const { mutate: create } = useCreateRealtimeModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }); -``` - -### ConfigSecretsOrgModule - -```typescript -// List all configSecretsOrgModules -const { data, isLoading } = useConfigSecretsOrgModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); - -// Get one configSecretsOrgModule -const { data: item } = useConfigSecretsOrgModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); - -// Create a configSecretsOrgModule -const { mutate: create } = useCreateConfigSecretsOrgModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` - -### SchemaGrant - -```typescript -// List all schemaGrants -const { data, isLoading } = useSchemaGrantsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, -}); - -// Get one schemaGrant -const { data: item } = useSchemaGrantQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, -}); - -// Create a schemaGrant -const { mutate: create } = useCreateSchemaGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', granteeName: '' }); -``` - -### DefaultPrivilege - -```typescript -// List all defaultPrivileges -const { data, isLoading } = useDefaultPrivilegesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, -}); - -// Get one defaultPrivilege -const { data: item } = useDefaultPrivilegeQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, -}); - -// Create a defaultPrivilege -const { mutate: create } = useCreateDefaultPrivilegeMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); -``` - -### Enum - -```typescript -// List all enums -const { data, isLoading } = useEnumsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, -}); - -// Get one enum -const { data: item } = useEnumQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, -}); - -// Create a enum -const { mutate: create } = useCreateEnumMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); -``` - -### Function - -```typescript -// List all functions -const { data, isLoading } = useFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } }, -}); - -// Get one function -const { data: item } = useFunctionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true } }, -}); - -// Create a function -const { mutate: create } = useCreateFunctionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', name: '' }); -``` - -### ApiSchema - -```typescript -// List all apiSchemas -const { data, isLoading } = useApiSchemasQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, -}); - -// Get one apiSchema -const { data: item } = useApiSchemaQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, -}); - -// Create a apiSchema -const { mutate: create } = useCreateApiSchemaMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', apiId: '' }); -``` - -### ApiModule - -```typescript -// List all apiModules -const { data, isLoading } = useApiModulesQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, -}); - -// Get one apiModule -const { data: item } = useApiModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, -}); - -// Create a apiModule -const { mutate: create } = useCreateApiModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', apiId: '', name: '', data: '' }); -``` - -### Domain - -```typescript -// List all domains -const { data, isLoading } = useDomainsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, -}); - -// Get one domain -const { data: item } = useDomainQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, -}); - -// Create a domain -const { mutate: create } = useCreateDomainMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); -``` - -### SiteMetadatum - -```typescript -// List all siteMetadata -const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, -}); - -// Get one siteMetadatum -const { data: item } = useSiteMetadatumQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, -}); - -// Create a siteMetadatum -const { mutate: create } = useCreateSiteMetadatumMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); -``` - -### SiteModule - -```typescript -// List all siteModules -const { data, isLoading } = useSiteModulesQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, -}); - -// Get one siteModule -const { data: item } = useSiteModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, -}); - -// Create a siteModule -const { mutate: create } = useCreateSiteModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', siteId: '', name: '', data: '' }); -``` - -### SiteTheme - -```typescript -// List all siteThemes -const { data, isLoading } = useSiteThemesQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, -}); - -// Get one siteTheme -const { data: item } = useSiteThemeQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, -}); - -// Create a siteTheme -const { mutate: create } = useCreateSiteThemeMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', siteId: '', theme: '' }); -``` - -### CorsSetting - -```typescript -// List all corsSettings -const { data, isLoading } = useCorsSettingsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }, -}); - -// Get one corsSetting -const { data: item } = useCorsSettingQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }, -}); - -// Create a corsSetting -const { mutate: create } = useCreateCorsSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', apiId: '', allowedOrigins: '' }); -``` - -### MerkleStoreModule - -```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, scopeField: true, createdAt: true } }, -}); - -// Get one merkleStoreModule -const { data: item } = 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, scopeField: true, createdAt: true } }, -}); - -// Create a merkleStoreModule -const { mutate: create } = useCreateMerkleStoreModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scopeField: '' }); -``` - -### GraphModule - -```typescript -// List all graphModules -const { data, isLoading } = useGraphModulesQuery({ - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, -}); - -// Get one graphModule -const { data: item } = useGraphModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, -}); - -// Create a graphModule -const { mutate: create } = useCreateGraphModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', scopeField: '', membershipType: '', entityTableId: '', policies: '', provisions: '' }); -``` - -### TriggerFunction - -```typescript -// List all triggerFunctions -const { data, isLoading } = useTriggerFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, -}); - -// Get one triggerFunction -const { data: item } = useTriggerFunctionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, -}); - -// Create a triggerFunction -const { mutate: create } = useCreateTriggerFunctionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', name: '', code: '' }); -``` - -### Partition - -```typescript -// List all partitions -const { data, isLoading } = usePartitionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }, -}); - -// Get one partition -const { data: item } = usePartitionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }, -}); - -// Create a partition -const { mutate: create } = useCreatePartitionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }); -``` - -### DatabaseTransfer - -```typescript -// List all databaseTransfers -const { data, isLoading } = useDatabaseTransfersQuery({ - selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, -}); - -// Get one databaseTransfer -const { data: item } = useDatabaseTransferQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, -}); - -// Create a databaseTransfer -const { mutate: create } = useCreateDatabaseTransferMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }); -``` - -### Api - -```typescript -// List all apis -const { data, isLoading } = useApisQuery({ - selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, -}); - -// Get one api -const { data: item } = useApiQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, -}); - -// Create a api -const { mutate: create } = useCreateApiMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); -``` - -### Site - -```typescript -// List all sites -const { data, isLoading } = useSitesQuery({ - selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, -}); - -// Get one site -const { data: item } = useSiteQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, -}); - -// Create a site -const { mutate: create } = useCreateSiteMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); -``` - -### App - -```typescript -// List all apps -const { data, isLoading } = useAppsQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, -}); - -// Get one app -const { data: item } = useAppQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, -}); - -// Create a app -const { mutate: create } = useCreateAppMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); -``` - -### ApiSetting - -```typescript -// List all apiSettings -const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, -}); - -// Get one apiSetting -const { data: item } = useApiSettingQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, -}); - -// Create a apiSetting -const { mutate: create } = useCreateApiSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); -``` - -### ConnectedAccountsModule - -```typescript -// List all connectedAccountsModules -const { data, isLoading } = useConnectedAccountsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Get one connectedAccountsModule -const { data: item } = useConnectedAccountsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Create a connectedAccountsModule -const { mutate: create } = useCreateConnectedAccountsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` - -### CryptoAddressesModule - -```typescript -// List all cryptoAddressesModules -const { data, isLoading } = useCryptoAddressesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, -}); - -// Get one cryptoAddressesModule -const { data: item } = useCryptoAddressesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, -}); - -// Create a cryptoAddressesModule -const { mutate: create } = useCreateCryptoAddressesModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }); -``` - -### CryptoAuthModule - -```typescript -// List all cryptoAuthModules -const { data, isLoading } = useCryptoAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, -}); - -// Get one cryptoAuthModule -const { data: item } = useCryptoAuthModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, -}); - -// Create a cryptoAuthModule -const { mutate: create } = useCreateCryptoAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); -``` - -### DefaultIdsModule - -```typescript -// List all defaultIdsModules -const { data, isLoading } = useDefaultIdsModulesQuery({ - selection: { fields: { id: true, databaseId: true } }, -}); - -// Get one defaultIdsModule -const { data: item } = useDefaultIdsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true } }, -}); - -// Create a defaultIdsModule -const { mutate: create } = useCreateDefaultIdsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '' }); -``` - -### DenormalizedTableField - -```typescript -// List all denormalizedTableFields -const { data, isLoading } = useDenormalizedTableFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, -}); - -// Get one denormalizedTableField -const { data: item } = useDenormalizedTableFieldQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, -}); - -// Create a denormalizedTableField -const { mutate: create } = useCreateDenormalizedTableFieldMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); -``` - -### EmailsModule - -```typescript -// List all emailsModules -const { data, isLoading } = useEmailsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Get one emailsModule -const { data: item } = useEmailsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Create a emailsModule -const { mutate: create } = useCreateEmailsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` - -### ConfigSecretsUserModule - -```typescript -// List all configSecretsUserModules -const { data, isLoading } = useConfigSecretsUserModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true } }, -}); - -// Get one configSecretsUserModule -const { data: item } = useConfigSecretsUserModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true } }, -}); - -// Create a configSecretsUserModule -const { mutate: create } = useCreateConfigSecretsUserModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '' }); -``` - -### InvitesModule - -```typescript -// List all invitesModules -const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }, -}); - -// Get one invitesModule -const { data: item } = useInvitesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }, -}); - -// Create a invitesModule -const { mutate: create } = useCreateInvitesModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }); -``` - -### EventsModule - -```typescript -// List all eventsModules -const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); - -// Get one eventsModule -const { data: item } = useEventsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); - -// Create a eventsModule -const { mutate: create } = useCreateEventsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', 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: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); -``` - -### LimitsModule - -```typescript -// List all limitsModules -const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); - -// Get one limitsModule -const { data: item } = useLimitsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, -}); - -// Create a limitsModule -const { mutate: create } = useCreateLimitsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); -``` - -### MembershipTypesModule - -```typescript -// List all membershipTypesModules -const { data, isLoading } = useMembershipTypesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); - -// Get one membershipTypesModule -const { data: item } = useMembershipTypesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); - -// Create a membershipTypesModule -const { mutate: create } = useCreateMembershipTypesModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` - -### MembershipsModule - -```typescript -// List all membershipsModules -const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }, -}); - -// Get one membershipsModule -const { data: item } = useMembershipsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }, -}); - -// Create a membershipsModule -const { mutate: create } = useCreateMembershipsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '' }); -``` - -### PermissionsModule - -```typescript -// List all permissionsModules -const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }, -}); - -// Get one permissionsModule -const { data: item } = usePermissionsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }, -}); - -// Create a permissionsModule -const { mutate: create } = useCreatePermissionsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }); -``` - -### PhoneNumbersModule - -```typescript -// List all phoneNumbersModules -const { data, isLoading } = usePhoneNumbersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Get one phoneNumbersModule -const { data: item } = usePhoneNumbersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Create a phoneNumbersModule -const { mutate: create } = useCreatePhoneNumbersModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` - -### ProfilesModule - -```typescript -// List all profilesModules -const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, -}); - -// Get one profilesModule -const { data: item } = useProfilesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, -}); - -// Create a profilesModule -const { mutate: create } = useCreateProfilesModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); -``` - -### 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: '' }); -``` - -### SessionsModule - -```typescript -// List all sessionsModules -const { data, isLoading } = useSessionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, -}); - -// Get one sessionsModule -const { data: item } = useSessionsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, -}); - -// Create a sessionsModule -const { mutate: create } = useCreateSessionsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); -``` - -### UserAuthModule - -```typescript -// List all userAuthModules -const { data, isLoading } = useUserAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }, -}); - -// Get one userAuthModule -const { data: item } = useUserAuthModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }, -}); - -// Create a userAuthModule -const { mutate: create } = useCreateUserAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -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: '' }); -``` - -### UsersModule - -```typescript -// List all usersModules -const { data, isLoading } = useUsersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, -}); - -// Get one usersModule -const { data: item } = useUsersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, -}); - -// Create a usersModule -const { mutate: create } = useCreateUsersModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }); -``` - -### Blueprint - -```typescript -// List all blueprints -const { data, isLoading } = useBlueprintsQuery({ - selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, -}); - -// Get one blueprint -const { data: item } = useBlueprintQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, -}); - -// Create a blueprint -const { mutate: create } = useCreateBlueprintMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }); -``` - -### BlueprintTemplate - -```typescript -// List all blueprintTemplates -const { data, isLoading } = useBlueprintTemplatesQuery({ - selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, -}); - -// Get one blueprintTemplate -const { data: item } = useBlueprintTemplateQuery({ - id: '', - selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, -}); - -// Create a blueprintTemplate -const { mutate: create } = useCreateBlueprintTemplateMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }); -``` - -### BlueprintConstruction - -```typescript -// List all blueprintConstructions -const { data, isLoading } = useBlueprintConstructionsQuery({ - selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }, -}); - -// Get one blueprintConstruction -const { data: item } = useBlueprintConstructionQuery({ - id: '', - selection: { fields: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }, -}); - -// Create a blueprintConstruction -const { mutate: create } = useCreateBlueprintConstructionMutation({ - selection: { fields: { id: true } }, -}); -create({ blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }); -``` - -### StorageModule - -```typescript -// List all storageModules -const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }, -}); - -// Get one storageModule -const { data: item } = useStorageModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }, -}); - -// Create a storageModule -const { mutate: create } = useCreateStorageModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', key: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); -``` - -### EntityTypeProvision - -```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); -``` - -### WebauthnCredentialsModule - -```typescript -// List all webauthnCredentialsModules -const { data, isLoading } = useWebauthnCredentialsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Get one webauthnCredentialsModule -const { data: item } = useWebauthnCredentialsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, -}); - -// Create a webauthnCredentialsModule -const { mutate: create } = useCreateWebauthnCredentialsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); -``` - -### WebauthnAuthModule - -```typescript -// List all webauthnAuthModules -const { data, isLoading } = useWebauthnAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }, -}); - -// Get one webauthnAuthModule -const { data: item } = useWebauthnAuthModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }, -}); - -// Create a webauthnAuthModule -const { mutate: create } = useCreateWebauthnAuthModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }); -``` - -### NotificationsModule - -```typescript -// List all notificationsModules -const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }, -}); - -// Get one notificationsModule -const { data: item } = useNotificationsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }, -}); - -// Create a notificationsModule -const { mutate: create } = useCreateNotificationsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }); -``` - -### InferenceLogModule - -```typescript -// List all inferenceLogModules -const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Get one inferenceLogModule -const { data: item } = useInferenceLogModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Create a inferenceLogModule -const { mutate: create } = useCreateInferenceLogModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` - -### ComputeLogModule - -```typescript -// List all computeLogModules -const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Get one computeLogModule -const { data: item } = useComputeLogModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Create a computeLogModule -const { mutate: create } = useCreateComputeLogModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` - -### TransferLogModule - -```typescript -// List all transferLogModules -const { data, isLoading } = useTransferLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Get one transferLogModule -const { data: item } = useTransferLogModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Create a transferLogModule -const { mutate: create } = useCreateTransferLogModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` - -### StorageLogModule - -```typescript -// List all storageLogModules -const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Get one storageLogModule -const { data: item } = useStorageLogModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, -}); - -// Create a storageLogModule -const { mutate: create } = useCreateStorageLogModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); -``` - -### DbUsageModule - -```typescript -// List all dbUsageModules -const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }, -}); - -// Get one dbUsageModule -const { data: item } = useDbUsageModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }, -}); - -// Create a dbUsageModule -const { mutate: create } = useCreateDbUsageModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }); -``` - -### AgentModule - -```typescript -// List all agentModules -const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }, -}); - -// Get one agentModule -const { data: item } = useAgentModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }, -}); - -// Create a agentModule -const { mutate: create } = useCreateAgentModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', hasKnowledge: '', apiName: '', membershipType: '', key: '', entityTableId: '', policies: '', knowledgeConfig: '', knowledgePolicies: '', provisions: '' }); -``` - -### NamespaceModule - -```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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: 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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: true } }, -}); - -// Create a namespaceModule -const { mutate: create } = useCreateNamespaceModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', membershipType: '', key: '', entityTableId: '', policies: '', provisions: '' }); -``` - -### FunctionModule - -```typescript -// List all functionModules -const { data, isLoading } = useFunctionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: true } }, -}); - -// Create a functionModule -const { mutate: create } = useCreateFunctionModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', membershipType: '', prefix: '', key: '', entityTableId: '', policies: '', provisions: '' }); -``` - -### DatabaseProvisionModule - -```typescript -// List all databaseProvisionModules -const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, -}); - -// Get one databaseProvisionModule -const { data: item } = useDatabaseProvisionModuleQuery({ - id: '', - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, -}); - -// Create a databaseProvisionModule -const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); -``` - -### AppAdminGrant - -```typescript -// List all appAdminGrants -const { data, isLoading } = useAppAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one appAdminGrant -const { data: item } = useAppAdminGrantQuery({ - id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a appAdminGrant -const { mutate: create } = useCreateAppAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ isGrant: '', actorId: '', grantorId: '' }); -``` - -### AppOwnerGrant - -```typescript -// List all appOwnerGrants -const { data, isLoading } = useAppOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one appOwnerGrant -const { data: item } = useAppOwnerGrantQuery({ - id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a appOwnerGrant -const { mutate: create } = useCreateAppOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ isGrant: '', actorId: '', grantorId: '' }); -``` - -### AppGrant - -```typescript -// List all appGrants -const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one appGrant -const { data: item } = useAppGrantQuery({ - id: '', - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a appGrant -const { mutate: create } = useCreateAppGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); -``` - -### OrgMembership - -```typescript -// List all orgMemberships -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Get one orgMembership -const { data: item } = useOrgMembershipQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Create a orgMembership -const { mutate: create } = useCreateOrgMembershipMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); -``` - -### OrgMember - -```typescript -// List all orgMembers -const { data, isLoading } = useOrgMembersQuery({ - selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, -}); - -// Get one orgMember -const { data: item } = useOrgMemberQuery({ - id: '', - selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, -}); - -// Create a orgMember -const { mutate: create } = useCreateOrgMemberMutation({ - selection: { fields: { id: true } }, -}); -create({ isAdmin: '', actorId: '', entityId: '' }); -``` - -### OrgAdminGrant - -```typescript -// List all orgAdminGrants -const { data, isLoading } = useOrgAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one orgAdminGrant -const { data: item } = useOrgAdminGrantQuery({ - id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a orgAdminGrant -const { mutate: create } = useCreateOrgAdminGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` - -### OrgOwnerGrant - -```typescript -// List all orgOwnerGrants -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one orgOwnerGrant -const { data: item } = useOrgOwnerGrantQuery({ - id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a orgOwnerGrant -const { mutate: create } = useCreateOrgOwnerGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` - -### OrgMemberProfile - -```typescript -// List all orgMemberProfiles -const { data, isLoading } = useOrgMemberProfilesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Get one orgMemberProfile -const { data: item } = useOrgMemberProfileQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Create a orgMemberProfile -const { mutate: create } = useCreateOrgMemberProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); -``` - -### OrgGrant - -```typescript -// List all orgGrants -const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one orgGrant -const { data: item } = useOrgGrantQuery({ - id: '', - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a orgGrant -const { mutate: create } = useCreateOrgGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); -``` - -### OrgChartEdge - -```typescript -// List all orgChartEdges -const { data, isLoading } = useOrgChartEdgesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, -}); - -// Get one orgChartEdge -const { data: item } = useOrgChartEdgeQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, -}); - -// Create a orgChartEdge -const { mutate: create } = useCreateOrgChartEdgeMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); -``` - -### OrgChartEdgeGrant - -```typescript -// List all orgChartEdgeGrants -const { data, isLoading } = useOrgChartEdgeGrantsQuery({ - selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, -}); - -// Get one orgChartEdgeGrant -const { data: item } = useOrgChartEdgeGrantQuery({ - id: '', - selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, -}); - -// Create a orgChartEdgeGrant -const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); -``` - -### OrgPermissionDefault - -```typescript -// List all orgPermissionDefaults -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); - -// Get one orgPermissionDefault -const { data: item } = useOrgPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true, entityId: true } }, -}); - -// Create a orgPermissionDefault -const { mutate: create } = useCreateOrgPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '', entityId: '' }); -``` - -### AppLimit - -```typescript -// List all appLimits -const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, -}); - -// Get one appLimit -const { data: item } = useAppLimitQuery({ - id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, -}); - -// Create a appLimit -const { mutate: create } = useCreateAppLimitMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }); -``` - -### AppLimitCredit - -```typescript -// List all appLimitCredits -const { data, isLoading } = useAppLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, -}); - -// Get one appLimitCredit -const { data: item } = useAppLimitCreditQuery({ - id: '', - selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, -}); - -// Create a appLimitCredit -const { mutate: create } = useCreateAppLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -create({ defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }); -``` - -### AppLimitCreditCodeItem - -```typescript -// List all appLimitCreditCodeItems -const { data, isLoading } = useAppLimitCreditCodeItemsQuery({ - selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, -}); - -// Get one appLimitCreditCodeItem -const { data: item } = useAppLimitCreditCodeItemQuery({ - id: '', - selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, -}); - -// Create a appLimitCreditCodeItem -const { mutate: create } = useCreateAppLimitCreditCodeItemMutation({ - selection: { fields: { id: true } }, -}); -create({ creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }); -``` - -### AppLimitCreditRedemption - -```typescript -// List all appLimitCreditRedemptions -const { data, isLoading } = useAppLimitCreditRedemptionsQuery({ - selection: { fields: { id: true, creditCodeId: true, entityId: true } }, -}); - -// Get one appLimitCreditRedemption -const { data: item } = useAppLimitCreditRedemptionQuery({ - id: '', - selection: { fields: { id: true, creditCodeId: true, entityId: true } }, -}); - -// Create a appLimitCreditRedemption -const { mutate: create } = useCreateAppLimitCreditRedemptionMutation({ - selection: { fields: { id: true } }, -}); -create({ creditCodeId: '', entityId: '' }); -``` - -### OrgLimit - -```typescript -// List all orgLimits -const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, -}); - -// Get one orgLimit -const { data: item } = useOrgLimitQuery({ - id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, -}); - -// Create a orgLimit -const { mutate: create } = useCreateOrgLimitMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }); -``` - -### OrgLimitCredit - -```typescript -// List all orgLimitCredits -const { data, isLoading } = useOrgLimitCreditsQuery({ - selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }, -}); - -// Get one orgLimitCredit -const { data: item } = useOrgLimitCreditQuery({ - id: '', - selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }, -}); - -// Create a orgLimitCredit -const { mutate: create } = useCreateOrgLimitCreditMutation({ - selection: { fields: { id: true } }, -}); -create({ defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }); -``` - -### OrgLimitAggregate - -```typescript -// List all orgLimitAggregates -const { data, isLoading } = useOrgLimitAggregatesQuery({ - selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, -}); - -// Get one orgLimitAggregate -const { data: item } = useOrgLimitAggregateQuery({ - id: '', - selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, -}); - -// Create a orgLimitAggregate -const { mutate: create } = useCreateOrgLimitAggregateMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }); -``` - -### OrgLimitWarning - -```typescript -// List all orgLimitWarnings -const { data, isLoading } = useOrgLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, -}); - -// Get one orgLimitWarning -const { data: item } = useOrgLimitWarningQuery({ - id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, -}); - -// Create a orgLimitWarning -const { mutate: create } = useCreateOrgLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); -``` - -### Email - -```typescript -// List all emails -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); - -// Get one email -const { data: item } = useEmailQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); - -// Create a email -const { mutate: create } = useCreateEmailMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', email: '', isVerified: '', isPrimary: '', name: '' }); -``` - -### PhoneNumber - -```typescript -// List all phoneNumbers -const { data, isLoading } = usePhoneNumbersQuery({ - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); - -// Get one phoneNumber -const { data: item } = usePhoneNumberQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); - -// Create a phoneNumber -const { mutate: create } = useCreatePhoneNumberMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', name: '' }); -``` - -### CryptoAddress - -```typescript -// List all cryptoAddresses -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); - -// Get one cryptoAddress -const { data: item } = useCryptoAddressQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }, -}); - -// Create a cryptoAddress -const { mutate: create } = useCreateCryptoAddressMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', address: '', isVerified: '', isPrimary: '', name: '' }); -``` - -### WebauthnCredential - -```typescript -// List all webauthnCredentials -const { data, isLoading } = useWebauthnCredentialsQuery({ - selection: { fields: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }, -}); - -// Get one webauthnCredential -const { data: item } = useWebauthnCredentialQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }, -}); - -// Create a webauthnCredential -const { mutate: create } = useCreateWebauthnCredentialMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }); -``` - -### AppInvite - -```typescript -// List all appInvites -const { data, isLoading } = useAppInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); - -// Get one appInvite -const { data: item } = useAppInviteQuery({ - id: '', - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, -}); - -// Create a appInvite -const { mutate: create } = useCreateAppInviteMutation({ - selection: { fields: { id: true } }, -}); -create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); -``` - -### AppClaimedInvite - -```typescript -// List all appClaimedInvites -const { data, isLoading } = useAppClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, -}); - -// Get one appClaimedInvite -const { data: item } = useAppClaimedInviteQuery({ - id: '', - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, -}); - -// Create a appClaimedInvite -const { mutate: create } = useCreateAppClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', senderId: '', receiverId: '' }); -``` - -### OrgInvite - -```typescript -// List all orgInvites -const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, -}); - -// Get one orgInvite -const { data: item } = useOrgInviteQuery({ - id: '', - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, -}); - -// Create a orgInvite -const { mutate: create } = useCreateOrgInviteMutation({ - selection: { fields: { id: true } }, -}); -create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); -``` - -### OrgClaimedInvite - -```typescript -// List all orgClaimedInvites -const { data, isLoading } = useOrgClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, -}); - -// Get one orgClaimedInvite -const { data: item } = useOrgClaimedInviteQuery({ - id: '', - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, -}); - -// Create a orgClaimedInvite -const { mutate: create } = useCreateOrgClaimedInviteMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', senderId: '', receiverId: '', entityId: '' }); -``` - -### AuditLogAuth - -```typescript -// List all auditLogAuths -const { data, isLoading } = useAuditLogAuthsQuery({ - selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, -}); - -// Get one auditLogAuth -const { data: item } = useAuditLogAuthQuery({ - id: '', - selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, -}); - -// Create a auditLogAuth -const { mutate: create } = useCreateAuditLogAuthMutation({ - selection: { fields: { id: true } }, -}); -create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); -``` - -### IdentityProvider - -```typescript -// List all identityProviders -const { data, isLoading } = useIdentityProvidersQuery({ - selection: { fields: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }, -}); - -// Create a identityProvider -const { mutate: create } = useCreateIdentityProviderMutation({ - selection: { fields: { id: true } }, -}); -create({ slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }); -``` - -### AppPermissionDefault - -```typescript -// List all appPermissionDefaults -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, -}); - -// Get one appPermissionDefault -const { data: item } = useAppPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true } }, -}); - -// Create a appPermissionDefault -const { mutate: create } = useCreateAppPermissionDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ permissions: '' }); -``` - -### RoleType - -```typescript -// List all roleTypes -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, -}); - -// Get one roleType -const { data: item } = useRoleTypeQuery({ - id: '', - selection: { fields: { id: true, name: true } }, -}); - -// Create a roleType -const { mutate: create } = useCreateRoleTypeMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '' }); -``` - -### MigrateFile - -```typescript -// List all migrateFiles -const { data, isLoading } = useMigrateFilesQuery({ - selection: { fields: { id: true, databaseId: true, upload: true } }, -}); - -// Get one migrateFile -const { data: item } = useMigrateFileQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, upload: true } }, -}); - -// Create a migrateFile -const { mutate: create } = useCreateMigrateFileMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', upload: '' }); -``` - -### DevicesModule - -```typescript -// List all devicesModules -const { data, isLoading } = useDevicesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, -}); - -// Get one devicesModule -const { data: item } = useDevicesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, -}); - -// Create a devicesModule -const { mutate: create } = useCreateDevicesModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); -``` - -### AppMembershipDefault - -```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); -``` - -### OrgMembershipDefault - -```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, -}); - -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, -}); - -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); -``` - -### NodeTypeRegistry - -```typescript -// List all nodeTypeRegistries -const { data, isLoading } = useNodeTypeRegistriesQuery({ - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, -}); - -// Get one nodeTypeRegistry -const { data: item } = useNodeTypeRegistryQuery({ - name: '', - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, -}); - -// Create a nodeTypeRegistry -const { mutate: create } = useCreateNodeTypeRegistryMutation({ - selection: { fields: { name: true } }, -}); -create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); -``` - -### AppLimitCapsDefault - -```typescript -// List all appLimitCapsDefaults -const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Get one appLimitCapsDefault -const { data: item } = useAppLimitCapsDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Create a appLimitCapsDefault -const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '' }); -``` - -### OrgLimitCapsDefault - -```typescript -// List all orgLimitCapsDefaults -const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Get one orgLimitCapsDefault -const { data: item } = useOrgLimitCapsDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true } }, -}); - -// Create a orgLimitCapsDefault -const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '' }); -``` - -### AppLimitCap - -```typescript -// List all appLimitCaps -const { data, isLoading } = useAppLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Get one appLimitCap -const { data: item } = useAppLimitCapQuery({ - id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Create a appLimitCap -const { mutate: create } = useCreateAppLimitCapMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', entityId: '', max: '' }); -``` - -### OrgLimitCap - -```typescript -// List all orgLimitCaps -const { data, isLoading } = useOrgLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Get one orgLimitCap -const { data: item } = useOrgLimitCapQuery({ - id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); - -// Create a orgLimitCap -const { mutate: create } = useCreateOrgLimitCapMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', entityId: '', max: '' }); -``` - -### UserConnectedAccount - -```typescript -// List all userConnectedAccounts -const { data, isLoading } = useUserConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, -}); - -// Get one userConnectedAccount -const { data: item } = useUserConnectedAccountQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, -}); - -// Create a userConnectedAccount -const { mutate: create } = useCreateUserConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); -``` - -### AppLimitDefault - -```typescript -// List all appLimitDefaults -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Get one appLimitDefault -const { data: item } = useAppLimitDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Create a appLimitDefault -const { mutate: create } = useCreateAppLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '', softMax: '' }); -``` - -### OrgLimitDefault - -```typescript -// List all orgLimitDefaults -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Get one orgLimitDefault -const { data: item } = useOrgLimitDefaultQuery({ - id: '', - selection: { fields: { id: true, name: true, max: true, softMax: true } }, -}); - -// Create a orgLimitDefault -const { mutate: create } = useCreateOrgLimitDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', max: '', softMax: '' }); -``` - -### AppLimitCreditCode - -```typescript -// List all appLimitCreditCodes -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Get one appLimitCreditCode -const { data: item } = useAppLimitCreditCodeQuery({ - id: '', - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Create a appLimitCreditCode -const { mutate: create } = useCreateAppLimitCreditCodeMutation({ - selection: { fields: { id: true } }, -}); -create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); -``` - -### AppLimitWarning - -```typescript -// List all appLimitWarnings -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, -}); - -// Get one appLimitWarning -const { data: item } = useAppLimitWarningQuery({ - id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, -}); - -// Create a appLimitWarning -const { mutate: create } = useCreateAppLimitWarningMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); -``` - -### PubkeySetting - -```typescript -// List all pubkeySettings -const { data, isLoading } = usePubkeySettingsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }, -}); - -// Get one pubkeySetting -const { data: item } = usePubkeySettingQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }, -}); - -// Create a pubkeySetting -const { mutate: create } = useCreatePubkeySettingMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }); -``` - -### RateLimitsModule - -```typescript -// List all rateLimitsModules -const { data, isLoading } = useRateLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, -}); - -// Get one rateLimitsModule -const { data: item } = useRateLimitsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, -}); - -// Create a rateLimitsModule -const { mutate: create } = useCreateRateLimitsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }); -``` - -### MembershipType - -```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, -}); - -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, -}); - -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); -``` - -### RlsSetting - -```typescript -// List all rlsSettings -const { data, isLoading } = useRlsSettingsQuery({ - selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }, -}); - -// Get one rlsSetting -const { data: item } = useRlsSettingQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }, -}); - -// Create a rlsSetting -const { mutate: create } = useCreateRlsSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }); -``` - -### RlsModule - -```typescript -// List all rlsModules -const { data, isLoading } = useRlsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }, -}); - -// Get one rlsModule -const { data: item } = useRlsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }, -}); - -// Create a rlsModule -const { mutate: create } = useCreateRlsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); -``` - -### RateLimitMetersModule - -```typescript -// List all rateLimitMetersModules -const { data, isLoading } = useRateLimitMetersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }, -}); - -// Get one rateLimitMetersModule -const { data: item } = useRateLimitMetersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }, -}); - -// Create a rateLimitMetersModule -const { mutate: create } = useCreateRateLimitMetersModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '' }); -``` - -### PlansModule - -```typescript -// List all plansModules -const { data, isLoading } = usePlansModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }, -}); - -// Get one plansModule -const { data: item } = usePlansModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }, -}); - -// Create a plansModule -const { mutate: create } = useCreatePlansModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }); -``` - -### SqlAction - -```typescript -// List all sqlActions -const { data, isLoading } = useSqlActionsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); - -// Get one sqlAction -const { data: item } = useSqlActionQuery({ - id: '', - selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); - -// Create a sqlAction -const { mutate: create } = useCreateSqlActionMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); -``` - -### DatabaseSetting - -```typescript -// List all databaseSettings -const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, -}); - -// Get one databaseSetting -const { data: item } = useDatabaseSettingQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, -}); - -// Create a databaseSetting -const { mutate: create } = useCreateDatabaseSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); -``` - -### OrgMembershipSetting - -```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, -}); - -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, -}); - -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); -``` - -### AppLimitEvent - -```typescript -// List all appLimitEvents -const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); - -// Get one appLimitEvent -const { data: item } = useAppLimitEventQuery({ - id: '', - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); - -// Create a appLimitEvent -const { mutate: create } = useCreateAppLimitEventMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` - -### OrgLimitEvent - -```typescript -// List all orgLimitEvents -const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); - -// Get one orgLimitEvent -const { data: item } = useOrgLimitEventQuery({ - id: '', - selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); - -// Create a orgLimitEvent -const { mutate: create } = useCreateOrgLimitEventMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` - -### AppMembership - -```typescript -// List all appMemberships -const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, -}); - -// Get one appMembership -const { data: item } = useAppMembershipQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, -}); - -// Create a appMembership -const { mutate: create } = useCreateAppMembershipMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); -``` - -### User - -```typescript -// List all users -const { data, isLoading } = useUsersQuery({ - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }, -}); - -// Get one user -const { data: item } = useUserQuery({ - id: '', - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }, -}); - -// Create a user -const { mutate: create } = useCreateUserMutation({ - selection: { fields: { id: true } }, -}); -create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); -``` - -### AstMigration - -```typescript -// List all astMigrations -const { data, isLoading } = useAstMigrationsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); - -// Get one astMigration -const { data: item } = useAstMigrationQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, -}); - -// Create a astMigration -const { mutate: create } = useCreateAstMigrationMutation({ - selection: { fields: { id: true } }, -}); -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: '' }); -``` - -### BillingModule - -```typescript -// List all billingModules -const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }, -}); - -// Get one billingModule -const { data: item } = useBillingModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }, -}); - -// Create a billingModule -const { mutate: create } = useCreateBillingModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }); -``` - -### BillingProviderModule - -```typescript -// List all billingProviderModules -const { data, isLoading } = useBillingProviderModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }, -}); - -// Get one billingProviderModule -const { data: item } = useBillingProviderModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }, -}); - -// Create a billingProviderModule -const { mutate: create } = useCreateBillingProviderModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '' }); -``` - -### HierarchyModule - -```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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: 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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: 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: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); -``` - -## Custom Operation Hooks - -### `useCurrentUserIdQuery` - -currentUserId - -- **Type:** query -- **Arguments:** none - -### `useCurrentUserAgentQuery` - -currentUserAgent - -- **Type:** query -- **Arguments:** none - -### `useCurrentIpAddressQuery` - -currentIpAddress - -- **Type:** query -- **Arguments:** none - -### `useRequireStepUpQuery` - -requireStepUp - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `stepUpType` | String | - -### `useAppPermissionsGetPaddedMaskQuery` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -### `useOrgPermissionsGetPaddedMaskQuery` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -### `useApplyRegistryDefaultsQuery` - -applyRegistryDefaults - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `nodeType` | String | - | `data` | JSON | - -### `useResolveBlueprintFieldQuery` - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableId` | UUID | - | `fieldName` | String | - -### `useResolveBlueprintTableQuery` - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableName` | String | - | `schemaName` | String | - | `tableMap` | JSON | - | `defaultSchemaId` | UUID | - -### `useOrgIsManagerOfQuery` - -orgIsManagerOf - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `pEntityId` | UUID | - | `pManagerId` | UUID | - | `pUserId` | UUID | - | `pMaxDepth` | Int | - -### `useAppPermissionsGetMaskQuery` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -### `useOrgPermissionsGetMaskQuery` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -### `useAppPermissionsGetMaskByNamesQuery` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -### `useOrgPermissionsGetMaskByNamesQuery` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -### `useAppPermissionsGetByMaskQuery` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -### `useOrgPermissionsGetByMaskQuery` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -### `useCurrentUserQuery` - -currentUser - -- **Type:** query -- **Arguments:** none - -### `useSendAccountDeletionEmailMutation` - -sendAccountDeletionEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | - -### `useSignOutMutation` - -signOut - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignOutInput (required) | - -### `useAcceptDatabaseTransferMutation` - -acceptDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AcceptDatabaseTransferInput (required) | - -### `useCancelDatabaseTransferMutation` - -cancelDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CancelDatabaseTransferInput (required) | - -### `useRejectDatabaseTransferMutation` - -rejectDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RejectDatabaseTransferInput (required) | - -### `useDisconnectAccountMutation` - -disconnectAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | DisconnectAccountInput (required) | - -### `useRevokeApiKeyMutation` - -revokeApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeApiKeyInput (required) | - -### `useRevokeSessionMutation` - -revokeSession - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeSessionInput (required) | - -### `useVerifyPasswordMutation` - -verifyPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyPasswordInput (required) | - -### `useVerifyTotpMutation` - -verifyTotp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyTotpInput (required) | - -### `useSubmitAppInviteCodeMutation` - -submitAppInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitAppInviteCodeInput (required) | - -### `useSubmitOrgInviteCodeMutation` - -submitOrgInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | - -### `useCheckPasswordMutation` - -checkPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CheckPasswordInput (required) | - -### `useConfirmDeleteAccountMutation` - -confirmDeleteAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmDeleteAccountInput (required) | - -### `useSetPasswordMutation` - -setPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPasswordInput (required) | - -### `useVerifyEmailMutation` - -verifyEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyEmailInput (required) | - -### `useConstructBlueprintMutation` - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConstructBlueprintInput (required) | - -### `useProvisionNewUserMutation` - -provisionNewUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionNewUserInput (required) | - -### `useResetPasswordMutation` - -resetPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ResetPasswordInput (required) | - -### `useProvisionCheckConstraintMutation` - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -### `useProvisionUniqueConstraintMutation` - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - -### `useProvisionFullTextSearchMutation` - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -### `useProvisionIndexMutation` - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -### `useCopyTemplateToBlueprintMutation` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CopyTemplateToBlueprintInput (required) | - -### `useProvisionSpatialRelationMutation` - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -### `useSignInCrossOriginMutation` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -### `useBootstrapUserMutation` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - -### `useSignUpMutation` - -signUp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignUpInput (required) | - -### `useSignInMutation` - -signIn - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInInput (required) | - -### `useProvisionRelationMutation` - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -### `useSetFieldOrderMutation` - -setFieldOrder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetFieldOrderInput (required) | - -### `useApplyRlsMutation` - -applyRls - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ApplyRlsInput (required) | - -### `useProvisionDatabaseWithUserMutation` - -provisionDatabaseWithUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionDatabaseWithUserInput (required) | - -### `useCreateUserDatabaseMutation` - -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) - -Returns the database_id UUID of the newly created database. - -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 - - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateUserDatabaseInput (required) | - -### `useExtendTokenExpiresMutation` - -extendTokenExpires - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ExtendTokenExpiresInput (required) | - -### `useCreateApiKeyMutation` - -createApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateApiKeyInput (required) | - -### `useRequestCrossOriginTokenMutation` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - -### `useProvisionTableMutation` - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionTableInput (required) | - -### `useSendVerificationEmailMutation` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -### `useForgotPasswordMutation` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (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/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts deleted file mode 100644 index 127092023c..0000000000 --- a/sdk/constructive-react/src/public/hooks/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * GraphQL SDK - * @generated by @constructive-io/graphql-codegen - * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, ConfigSecretsOrgModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, MerkleStoreModule, GraphModule, TriggerFunction, Partition, DatabaseTransfer, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, ConfigSecretsUserModule, InvitesModule, EventsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, UserStateModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, InferenceLogModule, ComputeLogModule, TransferLogModule, StorageLogModule, DbUsageModule, AgentModule, NamespaceModule, FunctionModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, OrgLimitWarning, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLogAuth, IdentityProvider, AppPermissionDefault, RoleType, MigrateFile, DevicesModule, AppMembershipDefault, OrgMembershipDefault, NodeTypeRegistry, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, UserConnectedAccount, AppLimitDefault, OrgLimitDefault, AppLimitCreditCode, AppLimitWarning, PubkeySetting, RateLimitsModule, MembershipType, RlsSetting, RlsModule, RateLimitMetersModule, PlansModule, SqlAction, DatabaseSetting, OrgMembershipSetting, AppLimitEvent, OrgLimitEvent, AppMembership, User, AstMigration, WebauthnSetting, BillingModule, BillingProviderModule, HierarchyModule - * - * 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/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts deleted file mode 100644 index 586e23a4a1..0000000000 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ /dev/null @@ -1,3784 +0,0 @@ -/** - * 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 { - orgGetManagersRecordKeys, - orgGetSubordinatesRecordKeys, - appPermissionKeys, - orgPermissionKeys, - databaseKeys, - schemaKeys, - tableKeys, - checkConstraintKeys, - fieldKeys, - spatialRelationKeys, - foreignKeyConstraintKeys, - fullTextSearchKeys, - indexKeys, - policyKeys, - primaryKeyConstraintKeys, - tableGrantKeys, - triggerKeys, - uniqueConstraintKeys, - viewKeys, - viewTableKeys, - viewGrantKeys, - viewRuleKeys, - embeddingChunkKeys, - secureTableProvisionKeys, - relationProvisionKeys, - sessionSecretsModuleKeys, - identityProvidersModuleKeys, - realtimeModuleKeys, - configSecretsOrgModuleKeys, - schemaGrantKeys, - defaultPrivilegeKeys, - enumKeys, - functionKeys, - apiSchemaKeys, - apiModuleKeys, - domainKeys, - siteMetadatumKeys, - siteModuleKeys, - siteThemeKeys, - corsSettingKeys, - merkleStoreModuleKeys, - graphModuleKeys, - triggerFunctionKeys, - partitionKeys, - databaseTransferKeys, - apiKeys, - siteKeys, - appKeys, - apiSettingKeys, - connectedAccountsModuleKeys, - cryptoAddressesModuleKeys, - cryptoAuthModuleKeys, - defaultIdsModuleKeys, - denormalizedTableFieldKeys, - emailsModuleKeys, - configSecretsUserModuleKeys, - invitesModuleKeys, - eventsModuleKeys, - limitsModuleKeys, - membershipTypesModuleKeys, - membershipsModuleKeys, - permissionsModuleKeys, - phoneNumbersModuleKeys, - profilesModuleKeys, - userStateModuleKeys, - sessionsModuleKeys, - userAuthModuleKeys, - usersModuleKeys, - blueprintKeys, - blueprintTemplateKeys, - blueprintConstructionKeys, - storageModuleKeys, - entityTypeProvisionKeys, - webauthnCredentialsModuleKeys, - webauthnAuthModuleKeys, - notificationsModuleKeys, - inferenceLogModuleKeys, - computeLogModuleKeys, - transferLogModuleKeys, - storageLogModuleKeys, - dbUsageModuleKeys, - agentModuleKeys, - namespaceModuleKeys, - functionModuleKeys, - databaseProvisionModuleKeys, - appAdminGrantKeys, - appOwnerGrantKeys, - appGrantKeys, - orgMembershipKeys, - orgMemberKeys, - orgAdminGrantKeys, - orgOwnerGrantKeys, - orgMemberProfileKeys, - orgGrantKeys, - orgChartEdgeKeys, - orgChartEdgeGrantKeys, - orgPermissionDefaultKeys, - appLimitKeys, - appLimitCreditKeys, - appLimitCreditCodeItemKeys, - appLimitCreditRedemptionKeys, - orgLimitKeys, - orgLimitCreditKeys, - orgLimitAggregateKeys, - orgLimitWarningKeys, - emailKeys, - phoneNumberKeys, - cryptoAddressKeys, - webauthnCredentialKeys, - appInviteKeys, - appClaimedInviteKeys, - orgInviteKeys, - orgClaimedInviteKeys, - auditLogAuthKeys, - identityProviderKeys, - appPermissionDefaultKeys, - roleTypeKeys, - migrateFileKeys, - devicesModuleKeys, - appMembershipDefaultKeys, - orgMembershipDefaultKeys, - nodeTypeRegistryKeys, - appLimitCapsDefaultKeys, - orgLimitCapsDefaultKeys, - appLimitCapKeys, - orgLimitCapKeys, - userConnectedAccountKeys, - appLimitDefaultKeys, - orgLimitDefaultKeys, - appLimitCreditCodeKeys, - appLimitWarningKeys, - pubkeySettingKeys, - rateLimitsModuleKeys, - membershipTypeKeys, - rlsSettingKeys, - rlsModuleKeys, - rateLimitMetersModuleKeys, - plansModuleKeys, - sqlActionKeys, - databaseSettingKeys, - orgMembershipSettingKeys, - appLimitEventKeys, - orgLimitEventKeys, - appMembershipKeys, - userKeys, - astMigrationKeys, - webauthnSettingKeys, - billingModuleKeys, - billingProviderModuleKeys, - hierarchyModuleKeys, -} 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 orgGetManagersRecord queries */ orgGetManagersRecord: { - /** Invalidate all orgGetManagersRecord queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGetManagersRecordKeys.all, - }), - /** Invalidate orgGetManagersRecord list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGetManagersRecordKeys.lists(), - }), - /** Invalidate a specific orgGetManagersRecord */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgGetManagersRecordKeys.detail(id), - }), - }, - /** Invalidate orgGetSubordinatesRecord queries */ orgGetSubordinatesRecord: { - /** Invalidate all orgGetSubordinatesRecord queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGetSubordinatesRecordKeys.all, - }), - /** Invalidate orgGetSubordinatesRecord list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGetSubordinatesRecordKeys.lists(), - }), - /** Invalidate a specific orgGetSubordinatesRecord */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgGetSubordinatesRecordKeys.detail(id), - }), - }, - /** Invalidate appPermission queries */ appPermission: { - /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.all, - }), - /** Invalidate appPermission list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), - }), - /** Invalidate a specific appPermission */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.detail(id), - }), - }, - /** Invalidate orgPermission queries */ orgPermission: { - /** Invalidate all orgPermission queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.all, - }), - /** Invalidate orgPermission list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), - }), - /** Invalidate a specific orgPermission */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.detail(id), - }), - }, - /** Invalidate database queries */ database: { - /** Invalidate all database queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseKeys.all, - }), - /** Invalidate database list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseKeys.lists(), - }), - /** Invalidate a specific database */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: databaseKeys.detail(id), - }), - }, - /** Invalidate schema queries */ schema: { - /** Invalidate all schema queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: schemaKeys.all, - }), - /** Invalidate schema list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: schemaKeys.lists(), - }), - /** Invalidate a specific schema */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: schemaKeys.detail(id), - }), - }, - /** Invalidate table queries */ table: { - /** Invalidate all table queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: tableKeys.all, - }), - /** Invalidate table list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: tableKeys.lists(), - }), - /** Invalidate a specific table */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: tableKeys.detail(id), - }), - }, - /** Invalidate checkConstraint queries */ checkConstraint: { - /** Invalidate all checkConstraint queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: checkConstraintKeys.all, - }), - /** Invalidate checkConstraint list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: checkConstraintKeys.lists(), - }), - /** Invalidate a specific checkConstraint */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: checkConstraintKeys.detail(id), - }), - }, - /** Invalidate field queries */ field: { - /** Invalidate all field queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: fieldKeys.all, - }), - /** Invalidate field list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: fieldKeys.lists(), - }), - /** Invalidate a specific field */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: fieldKeys.detail(id), - }), - }, - /** Invalidate spatialRelation queries */ spatialRelation: { - /** Invalidate all spatialRelation queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: spatialRelationKeys.all, - }), - /** Invalidate spatialRelation list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: spatialRelationKeys.lists(), - }), - /** Invalidate a specific spatialRelation */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: spatialRelationKeys.detail(id), - }), - }, - /** Invalidate foreignKeyConstraint queries */ foreignKeyConstraint: { - /** Invalidate all foreignKeyConstraint queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: foreignKeyConstraintKeys.all, - }), - /** Invalidate foreignKeyConstraint list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: foreignKeyConstraintKeys.lists(), - }), - /** Invalidate a specific foreignKeyConstraint */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: foreignKeyConstraintKeys.detail(id), - }), - }, - /** Invalidate fullTextSearch queries */ fullTextSearch: { - /** Invalidate all fullTextSearch queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: fullTextSearchKeys.all, - }), - /** Invalidate fullTextSearch list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: fullTextSearchKeys.lists(), - }), - /** Invalidate a specific fullTextSearch */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: fullTextSearchKeys.detail(id), - }), - }, - /** Invalidate index queries */ index: { - /** Invalidate all index queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: indexKeys.all, - }), - /** Invalidate index list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: indexKeys.lists(), - }), - /** Invalidate a specific index */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: indexKeys.detail(id), - }), - }, - /** Invalidate policy queries */ policy: { - /** Invalidate all policy queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: policyKeys.all, - }), - /** Invalidate policy list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: policyKeys.lists(), - }), - /** Invalidate a specific policy */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: policyKeys.detail(id), - }), - }, - /** Invalidate primaryKeyConstraint queries */ primaryKeyConstraint: { - /** Invalidate all primaryKeyConstraint queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: primaryKeyConstraintKeys.all, - }), - /** Invalidate primaryKeyConstraint list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: primaryKeyConstraintKeys.lists(), - }), - /** Invalidate a specific primaryKeyConstraint */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: primaryKeyConstraintKeys.detail(id), - }), - }, - /** Invalidate tableGrant queries */ tableGrant: { - /** Invalidate all tableGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: tableGrantKeys.all, - }), - /** Invalidate tableGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: tableGrantKeys.lists(), - }), - /** Invalidate a specific tableGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: tableGrantKeys.detail(id), - }), - }, - /** Invalidate trigger queries */ trigger: { - /** Invalidate all trigger queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: triggerKeys.all, - }), - /** Invalidate trigger list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: triggerKeys.lists(), - }), - /** Invalidate a specific trigger */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: triggerKeys.detail(id), - }), - }, - /** Invalidate uniqueConstraint queries */ uniqueConstraint: { - /** Invalidate all uniqueConstraint queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: uniqueConstraintKeys.all, - }), - /** Invalidate uniqueConstraint list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: uniqueConstraintKeys.lists(), - }), - /** Invalidate a specific uniqueConstraint */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: uniqueConstraintKeys.detail(id), - }), - }, - /** Invalidate view queries */ view: { - /** Invalidate all view queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewKeys.all, - }), - /** Invalidate view list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewKeys.lists(), - }), - /** Invalidate a specific view */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: viewKeys.detail(id), - }), - }, - /** Invalidate viewTable queries */ viewTable: { - /** Invalidate all viewTable queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewTableKeys.all, - }), - /** Invalidate viewTable list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewTableKeys.lists(), - }), - /** Invalidate a specific viewTable */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: viewTableKeys.detail(id), - }), - }, - /** Invalidate viewGrant queries */ viewGrant: { - /** Invalidate all viewGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewGrantKeys.all, - }), - /** Invalidate viewGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewGrantKeys.lists(), - }), - /** Invalidate a specific viewGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: viewGrantKeys.detail(id), - }), - }, - /** Invalidate viewRule queries */ viewRule: { - /** Invalidate all viewRule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewRuleKeys.all, - }), - /** Invalidate viewRule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: viewRuleKeys.lists(), - }), - /** Invalidate a specific viewRule */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: viewRuleKeys.detail(id), - }), - }, - /** Invalidate embeddingChunk queries */ embeddingChunk: { - /** Invalidate all embeddingChunk queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: embeddingChunkKeys.all, - }), - /** Invalidate embeddingChunk list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: embeddingChunkKeys.lists(), - }), - /** Invalidate a specific embeddingChunk */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: embeddingChunkKeys.detail(id), - }), - }, - /** Invalidate secureTableProvision queries */ secureTableProvision: { - /** Invalidate all secureTableProvision queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: secureTableProvisionKeys.all, - }), - /** Invalidate secureTableProvision list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: secureTableProvisionKeys.lists(), - }), - /** Invalidate a specific secureTableProvision */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: secureTableProvisionKeys.detail(id), - }), - }, - /** Invalidate relationProvision queries */ relationProvision: { - /** Invalidate all relationProvision queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: relationProvisionKeys.all, - }), - /** Invalidate relationProvision list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: relationProvisionKeys.lists(), - }), - /** Invalidate a specific relationProvision */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: relationProvisionKeys.detail(id), - }), - }, - /** Invalidate sessionSecretsModule queries */ sessionSecretsModule: { - /** Invalidate all sessionSecretsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: sessionSecretsModuleKeys.all, - }), - /** Invalidate sessionSecretsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: sessionSecretsModuleKeys.lists(), - }), - /** Invalidate a specific sessionSecretsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: sessionSecretsModuleKeys.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 realtimeModule queries */ realtimeModule: { - /** Invalidate all realtimeModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: realtimeModuleKeys.all, - }), - /** Invalidate realtimeModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: realtimeModuleKeys.lists(), - }), - /** Invalidate a specific realtimeModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: realtimeModuleKeys.detail(id), - }), - }, - /** Invalidate configSecretsOrgModule queries */ configSecretsOrgModule: { - /** Invalidate all configSecretsOrgModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.all, - }), - /** Invalidate configSecretsOrgModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.lists(), - }), - /** Invalidate a specific configSecretsOrgModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.detail(id), - }), - }, - /** Invalidate schemaGrant queries */ schemaGrant: { - /** Invalidate all schemaGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: schemaGrantKeys.all, - }), - /** Invalidate schemaGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: schemaGrantKeys.lists(), - }), - /** Invalidate a specific schemaGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: schemaGrantKeys.detail(id), - }), - }, - /** Invalidate defaultPrivilege queries */ defaultPrivilege: { - /** Invalidate all defaultPrivilege queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: defaultPrivilegeKeys.all, - }), - /** Invalidate defaultPrivilege list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: defaultPrivilegeKeys.lists(), - }), - /** Invalidate a specific defaultPrivilege */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: defaultPrivilegeKeys.detail(id), - }), - }, - /** Invalidate enum queries */ enum: { - /** Invalidate all enum queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: enumKeys.all, - }), - /** Invalidate enum list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: enumKeys.lists(), - }), - /** Invalidate a specific enum */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: enumKeys.detail(id), - }), - }, - /** Invalidate function queries */ function: { - /** Invalidate all function queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: functionKeys.all, - }), - /** Invalidate function list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: functionKeys.lists(), - }), - /** Invalidate a specific function */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: functionKeys.detail(id), - }), - }, - /** Invalidate apiSchema queries */ apiSchema: { - /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiSchemaKeys.all, - }), - /** Invalidate apiSchema list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiSchemaKeys.lists(), - }), - /** Invalidate a specific apiSchema */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: apiSchemaKeys.detail(id), - }), - }, - /** Invalidate apiModule queries */ apiModule: { - /** Invalidate all apiModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiModuleKeys.all, - }), - /** Invalidate apiModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiModuleKeys.lists(), - }), - /** Invalidate a specific apiModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: apiModuleKeys.detail(id), - }), - }, - /** Invalidate domain queries */ domain: { - /** Invalidate all domain queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: domainKeys.all, - }), - /** Invalidate domain list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: domainKeys.lists(), - }), - /** Invalidate a specific domain */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: domainKeys.detail(id), - }), - }, - /** Invalidate siteMetadatum queries */ siteMetadatum: { - /** Invalidate all siteMetadatum queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteMetadatumKeys.all, - }), - /** Invalidate siteMetadatum list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteMetadatumKeys.lists(), - }), - /** Invalidate a specific siteMetadatum */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: siteMetadatumKeys.detail(id), - }), - }, - /** Invalidate siteModule queries */ siteModule: { - /** Invalidate all siteModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteModuleKeys.all, - }), - /** Invalidate siteModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteModuleKeys.lists(), - }), - /** Invalidate a specific siteModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: siteModuleKeys.detail(id), - }), - }, - /** Invalidate siteTheme queries */ siteTheme: { - /** Invalidate all siteTheme queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteThemeKeys.all, - }), - /** Invalidate siteTheme list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteThemeKeys.lists(), - }), - /** Invalidate a specific siteTheme */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: siteThemeKeys.detail(id), - }), - }, - /** Invalidate corsSetting queries */ corsSetting: { - /** Invalidate all corsSetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: corsSettingKeys.all, - }), - /** Invalidate corsSetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: corsSettingKeys.lists(), - }), - /** Invalidate a specific corsSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: corsSettingKeys.detail(id), - }), - }, - /** Invalidate merkleStoreModule queries */ merkleStoreModule: { - /** Invalidate all merkleStoreModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: merkleStoreModuleKeys.all, - }), - /** Invalidate merkleStoreModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: merkleStoreModuleKeys.lists(), - }), - /** Invalidate a specific merkleStoreModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: merkleStoreModuleKeys.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 triggerFunction queries */ triggerFunction: { - /** Invalidate all triggerFunction queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: triggerFunctionKeys.all, - }), - /** Invalidate triggerFunction list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: triggerFunctionKeys.lists(), - }), - /** Invalidate a specific triggerFunction */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: triggerFunctionKeys.detail(id), - }), - }, - /** Invalidate partition queries */ partition: { - /** Invalidate all partition queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: partitionKeys.all, - }), - /** Invalidate partition list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: partitionKeys.lists(), - }), - /** Invalidate a specific partition */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: partitionKeys.detail(id), - }), - }, - /** Invalidate databaseTransfer queries */ databaseTransfer: { - /** Invalidate all databaseTransfer queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseTransferKeys.all, - }), - /** Invalidate databaseTransfer list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseTransferKeys.lists(), - }), - /** Invalidate a specific databaseTransfer */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: databaseTransferKeys.detail(id), - }), - }, - /** Invalidate api queries */ api: { - /** Invalidate all api queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiKeys.all, - }), - /** Invalidate api list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiKeys.lists(), - }), - /** Invalidate a specific api */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: apiKeys.detail(id), - }), - }, - /** Invalidate site queries */ site: { - /** Invalidate all site queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteKeys.all, - }), - /** Invalidate site list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: siteKeys.lists(), - }), - /** Invalidate a specific site */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: siteKeys.detail(id), - }), - }, - /** Invalidate app queries */ app: { - /** Invalidate all app queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appKeys.all, - }), - /** Invalidate app list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appKeys.lists(), - }), - /** Invalidate a specific app */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appKeys.detail(id), - }), - }, - /** Invalidate apiSetting queries */ apiSetting: { - /** Invalidate all apiSetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiSettingKeys.all, - }), - /** Invalidate apiSetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: apiSettingKeys.lists(), - }), - /** Invalidate a specific apiSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: apiSettingKeys.detail(id), - }), - }, - /** Invalidate connectedAccountsModule queries */ connectedAccountsModule: { - /** Invalidate all connectedAccountsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: connectedAccountsModuleKeys.all, - }), - /** Invalidate connectedAccountsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: connectedAccountsModuleKeys.lists(), - }), - /** Invalidate a specific connectedAccountsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: connectedAccountsModuleKeys.detail(id), - }), - }, - /** Invalidate cryptoAddressesModule queries */ cryptoAddressesModule: { - /** Invalidate all cryptoAddressesModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressesModuleKeys.all, - }), - /** Invalidate cryptoAddressesModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressesModuleKeys.lists(), - }), - /** Invalidate a specific cryptoAddressesModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressesModuleKeys.detail(id), - }), - }, - /** Invalidate cryptoAuthModule queries */ cryptoAuthModule: { - /** Invalidate all cryptoAuthModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAuthModuleKeys.all, - }), - /** Invalidate cryptoAuthModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAuthModuleKeys.lists(), - }), - /** Invalidate a specific cryptoAuthModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: cryptoAuthModuleKeys.detail(id), - }), - }, - /** Invalidate defaultIdsModule queries */ defaultIdsModule: { - /** Invalidate all defaultIdsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: defaultIdsModuleKeys.all, - }), - /** Invalidate defaultIdsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: defaultIdsModuleKeys.lists(), - }), - /** Invalidate a specific defaultIdsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: defaultIdsModuleKeys.detail(id), - }), - }, - /** Invalidate denormalizedTableField queries */ denormalizedTableField: { - /** Invalidate all denormalizedTableField queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: denormalizedTableFieldKeys.all, - }), - /** Invalidate denormalizedTableField list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: denormalizedTableFieldKeys.lists(), - }), - /** Invalidate a specific denormalizedTableField */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: denormalizedTableFieldKeys.detail(id), - }), - }, - /** Invalidate emailsModule queries */ emailsModule: { - /** Invalidate all emailsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailsModuleKeys.all, - }), - /** Invalidate emailsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailsModuleKeys.lists(), - }), - /** Invalidate a specific emailsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: emailsModuleKeys.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 invitesModule queries */ invitesModule: { - /** Invalidate all invitesModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.all, - }), - /** Invalidate invitesModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.lists(), - }), - /** Invalidate a specific invitesModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.detail(id), - }), - }, - /** Invalidate eventsModule queries */ eventsModule: { - /** Invalidate all eventsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: eventsModuleKeys.all, - }), - /** Invalidate eventsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: eventsModuleKeys.lists(), - }), - /** Invalidate a specific eventsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: eventsModuleKeys.detail(id), - }), - }, - /** Invalidate limitsModule queries */ limitsModule: { - /** Invalidate all limitsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: limitsModuleKeys.all, - }), - /** Invalidate limitsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: limitsModuleKeys.lists(), - }), - /** Invalidate a specific limitsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: limitsModuleKeys.detail(id), - }), - }, - /** Invalidate membershipTypesModule queries */ membershipTypesModule: { - /** Invalidate all membershipTypesModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypesModuleKeys.all, - }), - /** Invalidate membershipTypesModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypesModuleKeys.lists(), - }), - /** Invalidate a specific membershipTypesModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: membershipTypesModuleKeys.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 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 phoneNumbersModule queries */ phoneNumbersModule: { - /** Invalidate all phoneNumbersModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: phoneNumbersModuleKeys.all, - }), - /** Invalidate phoneNumbersModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: phoneNumbersModuleKeys.lists(), - }), - /** Invalidate a specific phoneNumbersModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: phoneNumbersModuleKeys.detail(id), - }), - }, - /** Invalidate profilesModule queries */ profilesModule: { - /** Invalidate all profilesModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: profilesModuleKeys.all, - }), - /** Invalidate profilesModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: profilesModuleKeys.lists(), - }), - /** Invalidate a specific profilesModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: profilesModuleKeys.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 sessionsModule queries */ sessionsModule: { - /** Invalidate all sessionsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: sessionsModuleKeys.all, - }), - /** Invalidate sessionsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: sessionsModuleKeys.lists(), - }), - /** Invalidate a specific sessionsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: sessionsModuleKeys.detail(id), - }), - }, - /** Invalidate userAuthModule queries */ userAuthModule: { - /** Invalidate all userAuthModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userAuthModuleKeys.all, - }), - /** Invalidate userAuthModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userAuthModuleKeys.lists(), - }), - /** Invalidate a specific userAuthModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: userAuthModuleKeys.detail(id), - }), - }, - /** Invalidate usersModule queries */ usersModule: { - /** Invalidate all usersModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: usersModuleKeys.all, - }), - /** Invalidate usersModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: usersModuleKeys.lists(), - }), - /** Invalidate a specific usersModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: usersModuleKeys.detail(id), - }), - }, - /** Invalidate blueprint queries */ blueprint: { - /** Invalidate all blueprint queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: blueprintKeys.all, - }), - /** Invalidate blueprint list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: blueprintKeys.lists(), - }), - /** Invalidate a specific blueprint */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: blueprintKeys.detail(id), - }), - }, - /** Invalidate blueprintTemplate queries */ blueprintTemplate: { - /** Invalidate all blueprintTemplate queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: blueprintTemplateKeys.all, - }), - /** Invalidate blueprintTemplate list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: blueprintTemplateKeys.lists(), - }), - /** Invalidate a specific blueprintTemplate */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: blueprintTemplateKeys.detail(id), - }), - }, - /** Invalidate blueprintConstruction queries */ blueprintConstruction: { - /** Invalidate all blueprintConstruction queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: blueprintConstructionKeys.all, - }), - /** Invalidate blueprintConstruction list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: blueprintConstructionKeys.lists(), - }), - /** Invalidate a specific blueprintConstruction */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: blueprintConstructionKeys.detail(id), - }), - }, - /** Invalidate storageModule queries */ storageModule: { - /** Invalidate all storageModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: storageModuleKeys.all, - }), - /** Invalidate storageModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: storageModuleKeys.lists(), - }), - /** Invalidate a specific storageModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: storageModuleKeys.detail(id), - }), - }, - /** Invalidate entityTypeProvision queries */ entityTypeProvision: { - /** Invalidate all entityTypeProvision queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: entityTypeProvisionKeys.all, - }), - /** Invalidate entityTypeProvision list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: entityTypeProvisionKeys.lists(), - }), - /** Invalidate a specific entityTypeProvision */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: entityTypeProvisionKeys.detail(id), - }), - }, - /** Invalidate webauthnCredentialsModule queries */ webauthnCredentialsModule: { - /** Invalidate all webauthnCredentialsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnCredentialsModuleKeys.all, - }), - /** Invalidate webauthnCredentialsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnCredentialsModuleKeys.lists(), - }), - /** Invalidate a specific webauthnCredentialsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: webauthnCredentialsModuleKeys.detail(id), - }), - }, - /** Invalidate webauthnAuthModule queries */ webauthnAuthModule: { - /** Invalidate all webauthnAuthModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnAuthModuleKeys.all, - }), - /** Invalidate webauthnAuthModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnAuthModuleKeys.lists(), - }), - /** Invalidate a specific webauthnAuthModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: webauthnAuthModuleKeys.detail(id), - }), - }, - /** Invalidate notificationsModule queries */ notificationsModule: { - /** Invalidate all notificationsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.all, - }), - /** Invalidate notificationsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.lists(), - }), - /** Invalidate a specific notificationsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.detail(id), - }), - }, - /** Invalidate inferenceLogModule queries */ inferenceLogModule: { - /** Invalidate all inferenceLogModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: inferenceLogModuleKeys.all, - }), - /** Invalidate inferenceLogModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: inferenceLogModuleKeys.lists(), - }), - /** Invalidate a specific inferenceLogModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: inferenceLogModuleKeys.detail(id), - }), - }, - /** Invalidate computeLogModule queries */ computeLogModule: { - /** Invalidate all computeLogModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.all, - }), - /** Invalidate computeLogModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.lists(), - }), - /** Invalidate a specific computeLogModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.detail(id), - }), - }, - /** Invalidate transferLogModule queries */ transferLogModule: { - /** Invalidate all transferLogModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: transferLogModuleKeys.all, - }), - /** Invalidate transferLogModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: transferLogModuleKeys.lists(), - }), - /** Invalidate a specific transferLogModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: transferLogModuleKeys.detail(id), - }), - }, - /** Invalidate storageLogModule queries */ storageLogModule: { - /** Invalidate all storageLogModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: storageLogModuleKeys.all, - }), - /** Invalidate storageLogModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: storageLogModuleKeys.lists(), - }), - /** Invalidate a specific storageLogModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: storageLogModuleKeys.detail(id), - }), - }, - /** Invalidate dbUsageModule queries */ dbUsageModule: { - /** Invalidate all dbUsageModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.all, - }), - /** Invalidate dbUsageModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.lists(), - }), - /** Invalidate a specific dbUsageModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.detail(id), - }), - }, - /** Invalidate agentModule queries */ agentModule: { - /** Invalidate all agentModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: agentModuleKeys.all, - }), - /** Invalidate agentModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: agentModuleKeys.lists(), - }), - /** Invalidate a specific agentModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: agentModuleKeys.detail(id), - }), - }, - /** Invalidate namespaceModule queries */ namespaceModule: { - /** Invalidate all namespaceModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: namespaceModuleKeys.all, - }), - /** Invalidate namespaceModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: namespaceModuleKeys.lists(), - }), - /** Invalidate a specific namespaceModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: namespaceModuleKeys.detail(id), - }), - }, - /** Invalidate functionModule queries */ functionModule: { - /** Invalidate all functionModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: functionModuleKeys.all, - }), - /** Invalidate functionModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: functionModuleKeys.lists(), - }), - /** Invalidate a specific functionModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: functionModuleKeys.detail(id), - }), - }, - /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { - /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.all, - }), - /** Invalidate databaseProvisionModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.lists(), - }), - /** Invalidate a specific databaseProvisionModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.detail(id), - }), - }, - /** Invalidate appAdminGrant queries */ appAdminGrant: { - /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.all, - }), - /** Invalidate appAdminGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.lists(), - }), - /** Invalidate a specific appAdminGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.detail(id), - }), - }, - /** Invalidate appOwnerGrant queries */ appOwnerGrant: { - /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.all, - }), - /** Invalidate appOwnerGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.lists(), - }), - /** Invalidate a specific appOwnerGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.detail(id), - }), - }, - /** Invalidate appGrant queries */ appGrant: { - /** Invalidate all appGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appGrantKeys.all, - }), - /** Invalidate appGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appGrantKeys.lists(), - }), - /** Invalidate a specific appGrant */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appGrantKeys.detail(id), - }), - }, - /** Invalidate orgMembership queries */ orgMembership: { - /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.all, - }), - /** Invalidate orgMembership list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.lists(), - }), - /** Invalidate a specific orgMembership */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.detail(id), - }), - }, - /** Invalidate orgMember queries */ orgMember: { - /** Invalidate all orgMember queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberKeys.all, - }), - /** Invalidate orgMember list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberKeys.lists(), - }), - /** Invalidate a specific orgMember */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMemberKeys.detail(id), - }), - }, - /** Invalidate orgAdminGrant queries */ orgAdminGrant: { - /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.all, - }), - /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), - }), - /** Invalidate a specific orgAdminGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.detail(id), - }), - }, - /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { - /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.all, - }), - /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), - }), - /** Invalidate a specific orgOwnerGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.detail(id), - }), - }, - /** Invalidate orgMemberProfile queries */ orgMemberProfile: { - /** Invalidate all orgMemberProfile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.all, - }), - /** Invalidate orgMemberProfile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.lists(), - }), - /** Invalidate a specific orgMemberProfile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.detail(id), - }), - }, - /** Invalidate orgGrant queries */ orgGrant: { - /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.all, - }), - /** Invalidate orgGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.lists(), - }), - /** Invalidate a specific orgGrant */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.detail(id), - }), - }, - /** Invalidate orgChartEdge queries */ orgChartEdge: { - /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.all, - }), - /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.lists(), - }), - /** Invalidate a specific orgChartEdge */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.detail(id), - }), - }, - /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { - /** Invalidate all orgChartEdgeGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeGrantKeys.all, - }), - /** Invalidate orgChartEdgeGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeGrantKeys.lists(), - }), - /** Invalidate a specific orgChartEdgeGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgChartEdgeGrantKeys.detail(id), - }), - }, - /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { - /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.all, - }), - /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }), - /** Invalidate a specific orgPermissionDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.detail(id), - }), - }, - /** Invalidate appLimit queries */ appLimit: { - /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.all, - }), - /** Invalidate appLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.lists(), - }), - /** Invalidate a specific appLimit */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.detail(id), - }), - }, - /** Invalidate appLimitCredit queries */ appLimitCredit: { - /** Invalidate all appLimitCredit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.all, - }), - /** Invalidate appLimitCredit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.lists(), - }), - /** Invalidate a specific appLimitCredit */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.detail(id), - }), - }, - /** Invalidate appLimitCreditCodeItem queries */ appLimitCreditCodeItem: { - /** Invalidate all appLimitCreditCodeItem queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.all, - }), - /** Invalidate appLimitCreditCodeItem list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.lists(), - }), - /** Invalidate a specific appLimitCreditCodeItem */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.detail(id), - }), - }, - /** Invalidate appLimitCreditRedemption queries */ appLimitCreditRedemption: { - /** Invalidate all appLimitCreditRedemption queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.all, - }), - /** Invalidate appLimitCreditRedemption list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.lists(), - }), - /** Invalidate a specific appLimitCreditRedemption */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.detail(id), - }), - }, - /** Invalidate orgLimit queries */ orgLimit: { - /** Invalidate all orgLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.all, - }), - /** Invalidate orgLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.lists(), - }), - /** Invalidate a specific orgLimit */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.detail(id), - }), - }, - /** Invalidate orgLimitCredit queries */ orgLimitCredit: { - /** Invalidate all orgLimitCredit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.all, - }), - /** Invalidate orgLimitCredit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.lists(), - }), - /** Invalidate a specific orgLimitCredit */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.detail(id), - }), - }, - /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { - /** Invalidate all orgLimitAggregate queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.all, - }), - /** Invalidate orgLimitAggregate list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.lists(), - }), - /** Invalidate a specific orgLimitAggregate */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.detail(id), - }), - }, - /** Invalidate orgLimitWarning queries */ orgLimitWarning: { - /** Invalidate all orgLimitWarning queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.all, - }), - /** Invalidate orgLimitWarning list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.lists(), - }), - /** Invalidate a specific orgLimitWarning */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.detail(id), - }), - }, - /** Invalidate email queries */ email: { - /** Invalidate all email queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.all, - }), - /** Invalidate email list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }), - /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: emailKeys.detail(id), - }), - }, - /** Invalidate phoneNumber queries */ phoneNumber: { - /** Invalidate all phoneNumber queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.all, - }), - /** Invalidate phoneNumber list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.lists(), - }), - /** Invalidate a specific phoneNumber */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.detail(id), - }), - }, - /** Invalidate cryptoAddress queries */ cryptoAddress: { - /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.all, - }), - /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }), - /** Invalidate a specific cryptoAddress */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.detail(id), - }), - }, - /** Invalidate webauthnCredential queries */ webauthnCredential: { - /** Invalidate all webauthnCredential queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnCredentialKeys.all, - }), - /** Invalidate webauthnCredential list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnCredentialKeys.lists(), - }), - /** Invalidate a specific webauthnCredential */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: webauthnCredentialKeys.detail(id), - }), - }, - /** Invalidate appInvite queries */ appInvite: { - /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.all, - }), - /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), - }), - /** Invalidate a specific appInvite */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.detail(id), - }), - }, - /** Invalidate appClaimedInvite queries */ appClaimedInvite: { - /** Invalidate all appClaimedInvite queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.all, - }), - /** Invalidate appClaimedInvite list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.lists(), - }), - /** Invalidate a specific appClaimedInvite */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.detail(id), - }), - }, - /** Invalidate orgInvite queries */ orgInvite: { - /** Invalidate all orgInvite queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgInviteKeys.all, - }), - /** Invalidate orgInvite list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgInviteKeys.lists(), - }), - /** Invalidate a specific orgInvite */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgInviteKeys.detail(id), - }), - }, - /** Invalidate orgClaimedInvite queries */ orgClaimedInvite: { - /** Invalidate all orgClaimedInvite queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgClaimedInviteKeys.all, - }), - /** Invalidate orgClaimedInvite list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgClaimedInviteKeys.lists(), - }), - /** Invalidate a specific orgClaimedInvite */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgClaimedInviteKeys.detail(id), - }), - }, - /** Invalidate auditLogAuth queries */ auditLogAuth: { - /** Invalidate all auditLogAuth queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: auditLogAuthKeys.all, - }), - /** Invalidate auditLogAuth list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: auditLogAuthKeys.lists(), - }), - /** Invalidate a specific auditLogAuth */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: auditLogAuthKeys.detail(id), - }), - }, - /** Invalidate identityProvider queries */ identityProvider: { - /** Invalidate all identityProvider queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: identityProviderKeys.all, - }), - /** Invalidate identityProvider list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: identityProviderKeys.lists(), - }), - /** Invalidate a specific identityProvider */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: identityProviderKeys.detail(id), - }), - }, - /** Invalidate appPermissionDefault queries */ appPermissionDefault: { - /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.all, - }), - /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }), - /** Invalidate a specific appPermissionDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(id), - }), - }, - /** Invalidate roleType queries */ roleType: { - /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.all, - }), - /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.lists(), - }), - /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.detail(id), - }), - }, - /** Invalidate migrateFile queries */ migrateFile: { - /** Invalidate all migrateFile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: migrateFileKeys.all, - }), - /** Invalidate migrateFile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: migrateFileKeys.lists(), - }), - /** Invalidate a specific migrateFile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: migrateFileKeys.detail(id), - }), - }, - /** Invalidate devicesModule queries */ devicesModule: { - /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.all, - }), - /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.lists(), - }), - /** Invalidate a specific devicesModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.detail(id), - }), - }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, - }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), - }), - /** Invalidate a specific appMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), - }), - }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, - }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), - }), - /** Invalidate a specific orgMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), - }), - }, - /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { - /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.all, - }), - /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.lists(), - }), - /** Invalidate a specific nodeTypeRegistry */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.detail(id), - }), - }, - /** Invalidate appLimitCapsDefault queries */ appLimitCapsDefault: { - /** Invalidate all appLimitCapsDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.all, - }), - /** Invalidate appLimitCapsDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.lists(), - }), - /** Invalidate a specific appLimitCapsDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.detail(id), - }), - }, - /** Invalidate orgLimitCapsDefault queries */ orgLimitCapsDefault: { - /** Invalidate all orgLimitCapsDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.all, - }), - /** Invalidate orgLimitCapsDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.lists(), - }), - /** Invalidate a specific orgLimitCapsDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(id), - }), - }, - /** Invalidate appLimitCap queries */ appLimitCap: { - /** Invalidate all appLimitCap queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.all, - }), - /** Invalidate appLimitCap list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.lists(), - }), - /** Invalidate a specific appLimitCap */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.detail(id), - }), - }, - /** Invalidate orgLimitCap queries */ orgLimitCap: { - /** Invalidate all orgLimitCap queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.all, - }), - /** Invalidate orgLimitCap list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.lists(), - }), - /** Invalidate a specific orgLimitCap */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.detail(id), - }), - }, - /** Invalidate userConnectedAccount queries */ userConnectedAccount: { - /** Invalidate all userConnectedAccount queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.all, - }), - /** Invalidate userConnectedAccount list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.lists(), - }), - /** Invalidate a specific userConnectedAccount */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.detail(id), - }), - }, - /** Invalidate appLimitDefault queries */ appLimitDefault: { - /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.all, - }), - /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), - }), - /** Invalidate a specific appLimitDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.detail(id), - }), - }, - /** Invalidate orgLimitDefault queries */ orgLimitDefault: { - /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.all, - }), - /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), - }), - /** Invalidate a specific orgLimitDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.detail(id), - }), - }, - /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { - /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.all, - }), - /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), - }), - /** Invalidate a specific appLimitCreditCode */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), - }), - }, - /** Invalidate appLimitWarning queries */ appLimitWarning: { - /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.all, - }), - /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), - }), - /** Invalidate a specific appLimitWarning */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.detail(id), - }), - }, - /** Invalidate pubkeySetting queries */ pubkeySetting: { - /** Invalidate all pubkeySetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: pubkeySettingKeys.all, - }), - /** Invalidate pubkeySetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: pubkeySettingKeys.lists(), - }), - /** Invalidate a specific pubkeySetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: pubkeySettingKeys.detail(id), - }), - }, - /** Invalidate rateLimitsModule queries */ rateLimitsModule: { - /** Invalidate all rateLimitsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rateLimitsModuleKeys.all, - }), - /** Invalidate rateLimitsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rateLimitsModuleKeys.lists(), - }), - /** Invalidate a specific rateLimitsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: rateLimitsModuleKeys.detail(id), - }), - }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, - }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), - }), - /** Invalidate a specific membershipType */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), - }), - }, - /** Invalidate rlsSetting queries */ rlsSetting: { - /** Invalidate all rlsSetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rlsSettingKeys.all, - }), - /** Invalidate rlsSetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rlsSettingKeys.lists(), - }), - /** Invalidate a specific rlsSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: rlsSettingKeys.detail(id), - }), - }, - /** Invalidate rlsModule queries */ rlsModule: { - /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.all, - }), - /** Invalidate rlsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.lists(), - }), - /** Invalidate a specific rlsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.detail(id), - }), - }, - /** Invalidate rateLimitMetersModule queries */ rateLimitMetersModule: { - /** Invalidate all rateLimitMetersModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rateLimitMetersModuleKeys.all, - }), - /** Invalidate rateLimitMetersModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rateLimitMetersModuleKeys.lists(), - }), - /** Invalidate a specific rateLimitMetersModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: rateLimitMetersModuleKeys.detail(id), - }), - }, - /** Invalidate plansModule queries */ plansModule: { - /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: plansModuleKeys.all, - }), - /** Invalidate plansModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: plansModuleKeys.lists(), - }), - /** Invalidate a specific plansModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: plansModuleKeys.detail(id), - }), - }, - /** Invalidate sqlAction queries */ sqlAction: { - /** Invalidate all sqlAction queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: sqlActionKeys.all, - }), - /** Invalidate sqlAction list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: sqlActionKeys.lists(), - }), - /** Invalidate a specific sqlAction */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: sqlActionKeys.detail(id), - }), - }, - /** Invalidate databaseSetting queries */ databaseSetting: { - /** Invalidate all databaseSetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseSettingKeys.all, - }), - /** Invalidate databaseSetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseSettingKeys.lists(), - }), - /** Invalidate a specific databaseSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: databaseSettingKeys.detail(id), - }), - }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, - }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), - }), - /** Invalidate a specific orgMembershipSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), - }), - }, - /** Invalidate appLimitEvent queries */ appLimitEvent: { - /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.all, - }), - /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.lists(), - }), - /** Invalidate a specific appLimitEvent */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.detail(id), - }), - }, - /** Invalidate orgLimitEvent queries */ orgLimitEvent: { - /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.all, - }), - /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.lists(), - }), - /** Invalidate a specific orgLimitEvent */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.detail(id), - }), - }, - /** Invalidate appMembership queries */ appMembership: { - /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.all, - }), - /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), - }), - /** Invalidate a specific appMembership */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.detail(id), - }), - }, - /** Invalidate user queries */ user: { - /** Invalidate all user queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userKeys.all, - }), - /** Invalidate user list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userKeys.lists(), - }), - /** Invalidate a specific user */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: userKeys.detail(id), - }), - }, - /** Invalidate astMigration queries */ astMigration: { - /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: astMigrationKeys.all, - }), - /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: astMigrationKeys.lists(), - }), - /** Invalidate a specific astMigration */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: astMigrationKeys.detail(id), - }), - }, - /** Invalidate webauthnSetting queries */ webauthnSetting: { - /** Invalidate all webauthnSetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnSettingKeys.all, - }), - /** Invalidate webauthnSetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: webauthnSettingKeys.lists(), - }), - /** Invalidate a specific webauthnSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: webauthnSettingKeys.detail(id), - }), - }, - /** Invalidate billingModule queries */ billingModule: { - /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: billingModuleKeys.all, - }), - /** Invalidate billingModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: billingModuleKeys.lists(), - }), - /** Invalidate a specific billingModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: billingModuleKeys.detail(id), - }), - }, - /** Invalidate billingProviderModule queries */ billingProviderModule: { - /** Invalidate all billingProviderModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: billingProviderModuleKeys.all, - }), - /** Invalidate billingProviderModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: billingProviderModuleKeys.lists(), - }), - /** Invalidate a specific billingProviderModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: billingProviderModuleKeys.detail(id), - }), - }, - /** Invalidate hierarchyModule queries */ hierarchyModule: { - /** Invalidate all hierarchyModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: hierarchyModuleKeys.all, - }), - /** Invalidate hierarchyModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: hierarchyModuleKeys.lists(), - }), - /** Invalidate a specific hierarchyModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: hierarchyModuleKeys.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 orgGetManagersRecord from cache */ orgGetManagersRecord: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgGetManagersRecordKeys.detail(id), - }); - }, - /** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgGetSubordinatesRecordKeys.detail(id), - }); - }, - /** Remove appPermission from cache */ appPermission: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appPermissionKeys.detail(id), - }); - }, - /** Remove orgPermission from cache */ orgPermission: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgPermissionKeys.detail(id), - }); - }, - /** Remove database from cache */ database: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: databaseKeys.detail(id), - }); - }, - /** Remove schema from cache */ schema: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: schemaKeys.detail(id), - }); - }, - /** Remove table from cache */ table: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: tableKeys.detail(id), - }); - }, - /** Remove checkConstraint from cache */ checkConstraint: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: checkConstraintKeys.detail(id), - }); - }, - /** Remove field from cache */ field: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: fieldKeys.detail(id), - }); - }, - /** Remove spatialRelation from cache */ spatialRelation: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: spatialRelationKeys.detail(id), - }); - }, - /** Remove foreignKeyConstraint from cache */ foreignKeyConstraint: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: foreignKeyConstraintKeys.detail(id), - }); - }, - /** Remove fullTextSearch from cache */ fullTextSearch: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: fullTextSearchKeys.detail(id), - }); - }, - /** Remove index from cache */ index: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: indexKeys.detail(id), - }); - }, - /** Remove policy from cache */ policy: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: policyKeys.detail(id), - }); - }, - /** Remove primaryKeyConstraint from cache */ primaryKeyConstraint: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: primaryKeyConstraintKeys.detail(id), - }); - }, - /** Remove tableGrant from cache */ tableGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: tableGrantKeys.detail(id), - }); - }, - /** Remove trigger from cache */ trigger: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: triggerKeys.detail(id), - }); - }, - /** Remove uniqueConstraint from cache */ uniqueConstraint: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: uniqueConstraintKeys.detail(id), - }); - }, - /** Remove view from cache */ view: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: viewKeys.detail(id), - }); - }, - /** Remove viewTable from cache */ viewTable: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: viewTableKeys.detail(id), - }); - }, - /** Remove viewGrant from cache */ viewGrant: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: viewGrantKeys.detail(id), - }); - }, - /** Remove viewRule from cache */ viewRule: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: viewRuleKeys.detail(id), - }); - }, - /** Remove embeddingChunk from cache */ embeddingChunk: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: embeddingChunkKeys.detail(id), - }); - }, - /** Remove secureTableProvision from cache */ secureTableProvision: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: secureTableProvisionKeys.detail(id), - }); - }, - /** Remove relationProvision from cache */ relationProvision: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: relationProvisionKeys.detail(id), - }); - }, - /** Remove sessionSecretsModule from cache */ sessionSecretsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: sessionSecretsModuleKeys.detail(id), - }); - }, - /** Remove identityProvidersModule from cache */ identityProvidersModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: identityProvidersModuleKeys.detail(id), - }); - }, - /** Remove realtimeModule from cache */ realtimeModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: realtimeModuleKeys.detail(id), - }); - }, - /** Remove configSecretsOrgModule from cache */ configSecretsOrgModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: configSecretsOrgModuleKeys.detail(id), - }); - }, - /** Remove schemaGrant from cache */ schemaGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: schemaGrantKeys.detail(id), - }); - }, - /** Remove defaultPrivilege from cache */ defaultPrivilege: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: defaultPrivilegeKeys.detail(id), - }); - }, - /** Remove enum from cache */ enum: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: enumKeys.detail(id), - }); - }, - /** Remove function from cache */ function: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: functionKeys.detail(id), - }); - }, - /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: apiSchemaKeys.detail(id), - }); - }, - /** Remove apiModule from cache */ apiModule: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: apiModuleKeys.detail(id), - }); - }, - /** Remove domain from cache */ domain: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: domainKeys.detail(id), - }); - }, - /** Remove siteMetadatum from cache */ siteMetadatum: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: siteMetadatumKeys.detail(id), - }); - }, - /** Remove siteModule from cache */ siteModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: siteModuleKeys.detail(id), - }); - }, - /** Remove siteTheme from cache */ siteTheme: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: siteThemeKeys.detail(id), - }); - }, - /** Remove corsSetting from cache */ corsSetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: corsSettingKeys.detail(id), - }); - }, - /** Remove merkleStoreModule from cache */ merkleStoreModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: merkleStoreModuleKeys.detail(id), - }); - }, - /** Remove graphModule from cache */ graphModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: graphModuleKeys.detail(id), - }); - }, - /** Remove triggerFunction from cache */ triggerFunction: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: triggerFunctionKeys.detail(id), - }); - }, - /** Remove partition from cache */ partition: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: partitionKeys.detail(id), - }); - }, - /** Remove databaseTransfer from cache */ databaseTransfer: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: databaseTransferKeys.detail(id), - }); - }, - /** Remove api from cache */ api: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: apiKeys.detail(id), - }); - }, - /** Remove site from cache */ site: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: siteKeys.detail(id), - }); - }, - /** Remove app from cache */ app: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appKeys.detail(id), - }); - }, - /** Remove apiSetting from cache */ apiSetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: apiSettingKeys.detail(id), - }); - }, - /** Remove connectedAccountsModule from cache */ connectedAccountsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: connectedAccountsModuleKeys.detail(id), - }); - }, - /** Remove cryptoAddressesModule from cache */ cryptoAddressesModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: cryptoAddressesModuleKeys.detail(id), - }); - }, - /** Remove cryptoAuthModule from cache */ cryptoAuthModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: cryptoAuthModuleKeys.detail(id), - }); - }, - /** Remove defaultIdsModule from cache */ defaultIdsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: defaultIdsModuleKeys.detail(id), - }); - }, - /** Remove denormalizedTableField from cache */ denormalizedTableField: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: denormalizedTableFieldKeys.detail(id), - }); - }, - /** Remove emailsModule from cache */ emailsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: emailsModuleKeys.detail(id), - }); - }, - /** Remove configSecretsUserModule from cache */ configSecretsUserModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: configSecretsUserModuleKeys.detail(id), - }); - }, - /** Remove invitesModule from cache */ invitesModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: invitesModuleKeys.detail(id), - }); - }, - /** Remove eventsModule from cache */ eventsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: eventsModuleKeys.detail(id), - }); - }, - /** Remove limitsModule from cache */ limitsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: limitsModuleKeys.detail(id), - }); - }, - /** Remove membershipTypesModule from cache */ membershipTypesModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: membershipTypesModuleKeys.detail(id), - }); - }, - /** Remove membershipsModule from cache */ membershipsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: membershipsModuleKeys.detail(id), - }); - }, - /** Remove permissionsModule from cache */ permissionsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: permissionsModuleKeys.detail(id), - }); - }, - /** Remove phoneNumbersModule from cache */ phoneNumbersModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: phoneNumbersModuleKeys.detail(id), - }); - }, - /** Remove profilesModule from cache */ profilesModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: profilesModuleKeys.detail(id), - }); - }, - /** Remove userStateModule from cache */ userStateModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: userStateModuleKeys.detail(id), - }); - }, - /** Remove sessionsModule from cache */ sessionsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: sessionsModuleKeys.detail(id), - }); - }, - /** Remove userAuthModule from cache */ userAuthModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: userAuthModuleKeys.detail(id), - }); - }, - /** Remove usersModule from cache */ usersModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: usersModuleKeys.detail(id), - }); - }, - /** Remove blueprint from cache */ blueprint: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: blueprintKeys.detail(id), - }); - }, - /** Remove blueprintTemplate from cache */ blueprintTemplate: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: blueprintTemplateKeys.detail(id), - }); - }, - /** Remove blueprintConstruction from cache */ blueprintConstruction: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: blueprintConstructionKeys.detail(id), - }); - }, - /** Remove storageModule from cache */ storageModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: storageModuleKeys.detail(id), - }); - }, - /** Remove entityTypeProvision from cache */ entityTypeProvision: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: entityTypeProvisionKeys.detail(id), - }); - }, - /** Remove webauthnCredentialsModule from cache */ webauthnCredentialsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: webauthnCredentialsModuleKeys.detail(id), - }); - }, - /** Remove webauthnAuthModule from cache */ webauthnAuthModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: webauthnAuthModuleKeys.detail(id), - }); - }, - /** Remove notificationsModule from cache */ notificationsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: notificationsModuleKeys.detail(id), - }); - }, - /** Remove inferenceLogModule from cache */ inferenceLogModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: inferenceLogModuleKeys.detail(id), - }); - }, - /** Remove computeLogModule from cache */ computeLogModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: computeLogModuleKeys.detail(id), - }); - }, - /** Remove transferLogModule from cache */ transferLogModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: transferLogModuleKeys.detail(id), - }); - }, - /** Remove storageLogModule from cache */ storageLogModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: storageLogModuleKeys.detail(id), - }); - }, - /** Remove dbUsageModule from cache */ dbUsageModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: dbUsageModuleKeys.detail(id), - }); - }, - /** Remove agentModule from cache */ agentModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: agentModuleKeys.detail(id), - }); - }, - /** Remove namespaceModule from cache */ namespaceModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: namespaceModuleKeys.detail(id), - }); - }, - /** Remove functionModule from cache */ functionModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: functionModuleKeys.detail(id), - }); - }, - /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: databaseProvisionModuleKeys.detail(id), - }); - }, - /** Remove appAdminGrant from cache */ appAdminGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appAdminGrantKeys.detail(id), - }); - }, - /** Remove appOwnerGrant from cache */ appOwnerGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appOwnerGrantKeys.detail(id), - }); - }, - /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appGrantKeys.detail(id), - }); - }, - /** Remove orgMembership from cache */ orgMembership: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMembershipKeys.detail(id), - }); - }, - /** Remove orgMember from cache */ orgMember: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: orgMemberKeys.detail(id), - }); - }, - /** Remove orgAdminGrant from cache */ orgAdminGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(id), - }); - }, - /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgOwnerGrantKeys.detail(id), - }); - }, - /** Remove orgMemberProfile from cache */ orgMemberProfile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMemberProfileKeys.detail(id), - }); - }, - /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: orgGrantKeys.detail(id), - }); - }, - /** Remove orgChartEdge from cache */ orgChartEdge: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgChartEdgeKeys.detail(id), - }); - }, - /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgChartEdgeGrantKeys.detail(id), - }); - }, - /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgPermissionDefaultKeys.detail(id), - }); - }, - /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appLimitKeys.detail(id), - }); - }, - /** Remove appLimitCredit from cache */ appLimitCredit: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCreditKeys.detail(id), - }); - }, - /** Remove appLimitCreditCodeItem from cache */ appLimitCreditCodeItem: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCreditCodeItemKeys.detail(id), - }); - }, - /** Remove appLimitCreditRedemption from cache */ appLimitCreditRedemption: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCreditRedemptionKeys.detail(id), - }); - }, - /** Remove orgLimit from cache */ orgLimit: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: orgLimitKeys.detail(id), - }); - }, - /** Remove orgLimitCredit from cache */ orgLimitCredit: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitCreditKeys.detail(id), - }); - }, - /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitAggregateKeys.detail(id), - }); - }, - /** Remove orgLimitWarning from cache */ orgLimitWarning: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitWarningKeys.detail(id), - }); - }, - /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: emailKeys.detail(id), - }); - }, - /** Remove phoneNumber from cache */ phoneNumber: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: phoneNumberKeys.detail(id), - }); - }, - /** Remove cryptoAddress from cache */ cryptoAddress: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: cryptoAddressKeys.detail(id), - }); - }, - /** Remove webauthnCredential from cache */ webauthnCredential: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: webauthnCredentialKeys.detail(id), - }); - }, - /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appInviteKeys.detail(id), - }); - }, - /** Remove appClaimedInvite from cache */ appClaimedInvite: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appClaimedInviteKeys.detail(id), - }); - }, - /** Remove orgInvite from cache */ orgInvite: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: orgInviteKeys.detail(id), - }); - }, - /** Remove orgClaimedInvite from cache */ orgClaimedInvite: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgClaimedInviteKeys.detail(id), - }); - }, - /** Remove auditLogAuth from cache */ auditLogAuth: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: auditLogAuthKeys.detail(id), - }); - }, - /** Remove identityProvider from cache */ identityProvider: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: identityProviderKeys.detail(id), - }); - }, - /** Remove appPermissionDefault from cache */ appPermissionDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(id), - }); - }, - /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: roleTypeKeys.detail(id), - }); - }, - /** Remove migrateFile from cache */ migrateFile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: migrateFileKeys.detail(id), - }); - }, - /** Remove devicesModule from cache */ devicesModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: devicesModuleKeys.detail(id), - }); - }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), - }); - }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), - }); - }, - /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: nodeTypeRegistryKeys.detail(id), - }); - }, - /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCapsDefaultKeys.detail(id), - }); - }, - /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(id), - }); - }, - /** Remove appLimitCap from cache */ appLimitCap: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCapKeys.detail(id), - }); - }, - /** Remove orgLimitCap from cache */ orgLimitCap: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitCapKeys.detail(id), - }); - }, - /** Remove userConnectedAccount from cache */ userConnectedAccount: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: userConnectedAccountKeys.detail(id), - }); - }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), - }); - }, - /** Remove orgLimitDefault from cache */ orgLimitDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(id), - }); - }, - /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), - }); - }, - /** Remove appLimitWarning from cache */ appLimitWarning: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitWarningKeys.detail(id), - }); - }, - /** Remove pubkeySetting from cache */ pubkeySetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: pubkeySettingKeys.detail(id), - }); - }, - /** Remove rateLimitsModule from cache */ rateLimitsModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: rateLimitsModuleKeys.detail(id), - }); - }, - /** Remove membershipType from cache */ membershipType: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), - }); - }, - /** Remove rlsSetting from cache */ rlsSetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: rlsSettingKeys.detail(id), - }); - }, - /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: rlsModuleKeys.detail(id), - }); - }, - /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: rateLimitMetersModuleKeys.detail(id), - }); - }, - /** Remove plansModule from cache */ plansModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: plansModuleKeys.detail(id), - }); - }, - /** Remove sqlAction from cache */ sqlAction: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: sqlActionKeys.detail(id), - }); - }, - /** Remove databaseSetting from cache */ databaseSetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: databaseSettingKeys.detail(id), - }); - }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), - }); - }, - /** Remove appLimitEvent from cache */ appLimitEvent: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appLimitEventKeys.detail(id), - }); - }, - /** Remove orgLimitEvent from cache */ orgLimitEvent: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgLimitEventKeys.detail(id), - }); - }, - /** Remove appMembership from cache */ appMembership: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: appMembershipKeys.detail(id), - }); - }, - /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: userKeys.detail(id), - }); - }, - /** Remove astMigration from cache */ astMigration: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: astMigrationKeys.detail(id), - }); - }, - /** Remove webauthnSetting from cache */ webauthnSetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: webauthnSettingKeys.detail(id), - }); - }, - /** Remove billingModule from cache */ billingModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: billingModuleKeys.detail(id), - }); - }, - /** Remove billingProviderModule from cache */ billingProviderModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: billingProviderModuleKeys.detail(id), - }); - }, - /** Remove hierarchyModule from cache */ hierarchyModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: hierarchyModuleKeys.detail(id), - }); - }, -} as const; diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts deleted file mode 100644 index 5032b7947b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ /dev/null @@ -1,1729 +0,0 @@ -/** - * 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 orgGetManagersRecordMutationKeys = { - /** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'] as const, - /** Create orgGetManagersRecord mutation key */ create: () => - ['mutation', 'orggetmanagersrecord', 'create'] as const, - /** Update orgGetManagersRecord mutation key */ update: (id: string | number) => - ['mutation', 'orggetmanagersrecord', 'update', id] as const, - /** Delete orgGetManagersRecord mutation key */ delete: (id: string | number) => - ['mutation', 'orggetmanagersrecord', 'delete', id] as const, -} as const; -export const orgGetSubordinatesRecordMutationKeys = { - /** All orgGetSubordinatesRecord mutation keys */ all: [ - 'mutation', - 'orggetsubordinatesrecord', - ] as const, - /** Create orgGetSubordinatesRecord mutation key */ create: () => - ['mutation', 'orggetsubordinatesrecord', 'create'] as const, - /** Update orgGetSubordinatesRecord mutation key */ update: (id: string | number) => - ['mutation', 'orggetsubordinatesrecord', 'update', id] as const, - /** Delete orgGetSubordinatesRecord mutation key */ delete: (id: string | number) => - ['mutation', 'orggetsubordinatesrecord', 'delete', id] as const, -} as const; -export const appPermissionMutationKeys = { - /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, - /** Create appPermission mutation key */ create: () => - ['mutation', 'apppermission', 'create'] as const, - /** Update appPermission mutation key */ update: (id: string | number) => - ['mutation', 'apppermission', 'update', id] as const, - /** Delete appPermission mutation key */ delete: (id: string | number) => - ['mutation', 'apppermission', 'delete', id] as const, -} as const; -export const orgPermissionMutationKeys = { - /** All orgPermission mutation keys */ all: ['mutation', 'orgpermission'] as const, - /** Create orgPermission mutation key */ create: () => - ['mutation', 'orgpermission', 'create'] as const, - /** Update orgPermission mutation key */ update: (id: string | number) => - ['mutation', 'orgpermission', 'update', id] as const, - /** Delete orgPermission mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermission', 'delete', id] as const, -} as const; -export const databaseMutationKeys = { - /** All database mutation keys */ all: ['mutation', 'database'] as const, - /** Create database mutation key */ create: () => ['mutation', 'database', 'create'] as const, - /** Update database mutation key */ update: (id: string | number) => - ['mutation', 'database', 'update', id] as const, - /** Delete database mutation key */ delete: (id: string | number) => - ['mutation', 'database', 'delete', id] as const, -} as const; -export const schemaMutationKeys = { - /** All schema mutation keys */ all: ['mutation', 'schema'] as const, - /** Create schema mutation key */ create: () => ['mutation', 'schema', 'create'] as const, - /** Update schema mutation key */ update: (id: string | number) => - ['mutation', 'schema', 'update', id] as const, - /** Delete schema mutation key */ delete: (id: string | number) => - ['mutation', 'schema', 'delete', id] as const, -} as const; -export const tableMutationKeys = { - /** All table mutation keys */ all: ['mutation', 'table'] as const, - /** Create table mutation key */ create: () => ['mutation', 'table', 'create'] as const, - /** Update table mutation key */ update: (id: string | number) => - ['mutation', 'table', 'update', id] as const, - /** Delete table mutation key */ delete: (id: string | number) => - ['mutation', 'table', 'delete', id] as const, -} as const; -export const checkConstraintMutationKeys = { - /** All checkConstraint mutation keys */ all: ['mutation', 'checkconstraint'] as const, - /** Create checkConstraint mutation key */ create: () => - ['mutation', 'checkconstraint', 'create'] as const, - /** Update checkConstraint mutation key */ update: (id: string | number) => - ['mutation', 'checkconstraint', 'update', id] as const, - /** Delete checkConstraint mutation key */ delete: (id: string | number) => - ['mutation', 'checkconstraint', 'delete', id] as const, -} as const; -export const fieldMutationKeys = { - /** All field mutation keys */ all: ['mutation', 'field'] as const, - /** Create field mutation key */ create: () => ['mutation', 'field', 'create'] as const, - /** Update field mutation key */ update: (id: string | number) => - ['mutation', 'field', 'update', id] as const, - /** Delete field mutation key */ delete: (id: string | number) => - ['mutation', 'field', 'delete', id] as const, -} as const; -export const spatialRelationMutationKeys = { - /** All spatialRelation mutation keys */ all: ['mutation', 'spatialrelation'] as const, - /** Create spatialRelation mutation key */ create: () => - ['mutation', 'spatialrelation', 'create'] as const, - /** Update spatialRelation mutation key */ update: (id: string | number) => - ['mutation', 'spatialrelation', 'update', id] as const, - /** Delete spatialRelation mutation key */ delete: (id: string | number) => - ['mutation', 'spatialrelation', 'delete', id] as const, -} as const; -export const foreignKeyConstraintMutationKeys = { - /** All foreignKeyConstraint mutation keys */ all: ['mutation', 'foreignkeyconstraint'] as const, - /** Create foreignKeyConstraint mutation key */ create: () => - ['mutation', 'foreignkeyconstraint', 'create'] as const, - /** Update foreignKeyConstraint mutation key */ update: (id: string | number) => - ['mutation', 'foreignkeyconstraint', 'update', id] as const, - /** Delete foreignKeyConstraint mutation key */ delete: (id: string | number) => - ['mutation', 'foreignkeyconstraint', 'delete', id] as const, -} as const; -export const fullTextSearchMutationKeys = { - /** All fullTextSearch mutation keys */ all: ['mutation', 'fulltextsearch'] as const, - /** Create fullTextSearch mutation key */ create: () => - ['mutation', 'fulltextsearch', 'create'] as const, - /** Update fullTextSearch mutation key */ update: (id: string | number) => - ['mutation', 'fulltextsearch', 'update', id] as const, - /** Delete fullTextSearch mutation key */ delete: (id: string | number) => - ['mutation', 'fulltextsearch', 'delete', id] as const, -} as const; -export const indexMutationKeys = { - /** All index mutation keys */ all: ['mutation', 'index'] as const, - /** Create index mutation key */ create: () => ['mutation', 'index', 'create'] as const, - /** Update index mutation key */ update: (id: string | number) => - ['mutation', 'index', 'update', id] as const, - /** Delete index mutation key */ delete: (id: string | number) => - ['mutation', 'index', 'delete', id] as const, -} as const; -export const policyMutationKeys = { - /** All policy mutation keys */ all: ['mutation', 'policy'] as const, - /** Create policy mutation key */ create: () => ['mutation', 'policy', 'create'] as const, - /** Update policy mutation key */ update: (id: string | number) => - ['mutation', 'policy', 'update', id] as const, - /** Delete policy mutation key */ delete: (id: string | number) => - ['mutation', 'policy', 'delete', id] as const, -} as const; -export const primaryKeyConstraintMutationKeys = { - /** All primaryKeyConstraint mutation keys */ all: ['mutation', 'primarykeyconstraint'] as const, - /** Create primaryKeyConstraint mutation key */ create: () => - ['mutation', 'primarykeyconstraint', 'create'] as const, - /** Update primaryKeyConstraint mutation key */ update: (id: string | number) => - ['mutation', 'primarykeyconstraint', 'update', id] as const, - /** Delete primaryKeyConstraint mutation key */ delete: (id: string | number) => - ['mutation', 'primarykeyconstraint', 'delete', id] as const, -} as const; -export const tableGrantMutationKeys = { - /** All tableGrant mutation keys */ all: ['mutation', 'tablegrant'] as const, - /** Create tableGrant mutation key */ create: () => ['mutation', 'tablegrant', 'create'] as const, - /** Update tableGrant mutation key */ update: (id: string | number) => - ['mutation', 'tablegrant', 'update', id] as const, - /** Delete tableGrant mutation key */ delete: (id: string | number) => - ['mutation', 'tablegrant', 'delete', id] as const, -} as const; -export const triggerMutationKeys = { - /** All trigger mutation keys */ all: ['mutation', 'trigger'] as const, - /** Create trigger mutation key */ create: () => ['mutation', 'trigger', 'create'] as const, - /** Update trigger mutation key */ update: (id: string | number) => - ['mutation', 'trigger', 'update', id] as const, - /** Delete trigger mutation key */ delete: (id: string | number) => - ['mutation', 'trigger', 'delete', id] as const, -} as const; -export const uniqueConstraintMutationKeys = { - /** All uniqueConstraint mutation keys */ all: ['mutation', 'uniqueconstraint'] as const, - /** Create uniqueConstraint mutation key */ create: () => - ['mutation', 'uniqueconstraint', 'create'] as const, - /** Update uniqueConstraint mutation key */ update: (id: string | number) => - ['mutation', 'uniqueconstraint', 'update', id] as const, - /** Delete uniqueConstraint mutation key */ delete: (id: string | number) => - ['mutation', 'uniqueconstraint', 'delete', id] as const, -} as const; -export const viewMutationKeys = { - /** All view mutation keys */ all: ['mutation', 'view'] as const, - /** Create view mutation key */ create: () => ['mutation', 'view', 'create'] as const, - /** Update view mutation key */ update: (id: string | number) => - ['mutation', 'view', 'update', id] as const, - /** Delete view mutation key */ delete: (id: string | number) => - ['mutation', 'view', 'delete', id] as const, -} as const; -export const viewTableMutationKeys = { - /** All viewTable mutation keys */ all: ['mutation', 'viewtable'] as const, - /** Create viewTable mutation key */ create: () => ['mutation', 'viewtable', 'create'] as const, - /** Update viewTable mutation key */ update: (id: string | number) => - ['mutation', 'viewtable', 'update', id] as const, - /** Delete viewTable mutation key */ delete: (id: string | number) => - ['mutation', 'viewtable', 'delete', id] as const, -} as const; -export const viewGrantMutationKeys = { - /** All viewGrant mutation keys */ all: ['mutation', 'viewgrant'] as const, - /** Create viewGrant mutation key */ create: () => ['mutation', 'viewgrant', 'create'] as const, - /** Update viewGrant mutation key */ update: (id: string | number) => - ['mutation', 'viewgrant', 'update', id] as const, - /** Delete viewGrant mutation key */ delete: (id: string | number) => - ['mutation', 'viewgrant', 'delete', id] as const, -} as const; -export const viewRuleMutationKeys = { - /** All viewRule mutation keys */ all: ['mutation', 'viewrule'] as const, - /** Create viewRule mutation key */ create: () => ['mutation', 'viewrule', 'create'] as const, - /** Update viewRule mutation key */ update: (id: string | number) => - ['mutation', 'viewrule', 'update', id] as const, - /** Delete viewRule mutation key */ delete: (id: string | number) => - ['mutation', 'viewrule', 'delete', id] as const, -} as const; -export const embeddingChunkMutationKeys = { - /** All embeddingChunk mutation keys */ all: ['mutation', 'embeddingchunk'] as const, - /** Create embeddingChunk mutation key */ create: () => - ['mutation', 'embeddingchunk', 'create'] as const, - /** Update embeddingChunk mutation key */ update: (id: string | number) => - ['mutation', 'embeddingchunk', 'update', id] as const, - /** Delete embeddingChunk mutation key */ delete: (id: string | number) => - ['mutation', 'embeddingchunk', 'delete', id] as const, -} as const; -export const secureTableProvisionMutationKeys = { - /** All secureTableProvision mutation keys */ all: ['mutation', 'securetableprovision'] as const, - /** Create secureTableProvision mutation key */ create: () => - ['mutation', 'securetableprovision', 'create'] as const, - /** Update secureTableProvision mutation key */ update: (id: string | number) => - ['mutation', 'securetableprovision', 'update', id] as const, - /** Delete secureTableProvision mutation key */ delete: (id: string | number) => - ['mutation', 'securetableprovision', '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 sessionSecretsModuleMutationKeys = { - /** All sessionSecretsModule mutation keys */ all: ['mutation', 'sessionsecretsmodule'] as const, - /** Create sessionSecretsModule mutation key */ create: () => - ['mutation', 'sessionsecretsmodule', 'create'] as const, - /** Update sessionSecretsModule mutation key */ update: (id: string | number) => - ['mutation', 'sessionsecretsmodule', 'update', id] as const, - /** Delete sessionSecretsModule mutation key */ delete: (id: string | number) => - ['mutation', 'sessionsecretsmodule', '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 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 configSecretsOrgModuleMutationKeys = { - /** All configSecretsOrgModule mutation keys */ all: [ - 'mutation', - 'configsecretsorgmodule', - ] as const, - /** Create configSecretsOrgModule mutation key */ create: () => - ['mutation', 'configsecretsorgmodule', 'create'] as const, - /** Update configSecretsOrgModule mutation key */ update: (id: string | number) => - ['mutation', 'configsecretsorgmodule', 'update', id] as const, - /** Delete configSecretsOrgModule mutation key */ delete: (id: string | number) => - ['mutation', 'configsecretsorgmodule', 'delete', id] as const, -} as const; -export const schemaGrantMutationKeys = { - /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'] as const, - /** Create schemaGrant mutation key */ create: () => - ['mutation', 'schemagrant', 'create'] as const, - /** Update schemaGrant mutation key */ update: (id: string | number) => - ['mutation', 'schemagrant', 'update', id] as const, - /** Delete schemaGrant mutation key */ delete: (id: string | number) => - ['mutation', 'schemagrant', 'delete', id] as const, -} as const; -export const defaultPrivilegeMutationKeys = { - /** All defaultPrivilege mutation keys */ all: ['mutation', 'defaultprivilege'] as const, - /** Create defaultPrivilege mutation key */ create: () => - ['mutation', 'defaultprivilege', 'create'] as const, - /** Update defaultPrivilege mutation key */ update: (id: string | number) => - ['mutation', 'defaultprivilege', 'update', id] as const, - /** Delete defaultPrivilege mutation key */ delete: (id: string | number) => - ['mutation', 'defaultprivilege', 'delete', id] as const, -} as const; -export const enumMutationKeys = { - /** All enum mutation keys */ all: ['mutation', 'enum'] as const, - /** Create enum mutation key */ create: () => ['mutation', 'enum', 'create'] as const, - /** Update enum mutation key */ update: (id: string | number) => - ['mutation', 'enum', 'update', id] as const, - /** Delete enum mutation key */ delete: (id: string | number) => - ['mutation', 'enum', 'delete', id] as const, -} as const; -export const functionMutationKeys = { - /** All function mutation keys */ all: ['mutation', 'function'] as const, - /** Create function mutation key */ create: () => ['mutation', 'function', 'create'] as const, - /** Update function mutation key */ update: (id: string | number) => - ['mutation', 'function', 'update', id] as const, - /** Delete function mutation key */ delete: (id: string | number) => - ['mutation', 'function', 'delete', id] as const, -} as const; -export const apiSchemaMutationKeys = { - /** All apiSchema mutation keys */ all: ['mutation', 'apischema'] as const, - /** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'] as const, - /** Update apiSchema mutation key */ update: (id: string | number) => - ['mutation', 'apischema', 'update', id] as const, - /** Delete apiSchema mutation key */ delete: (id: string | number) => - ['mutation', 'apischema', 'delete', id] as const, -} as const; -export const apiModuleMutationKeys = { - /** All apiModule mutation keys */ all: ['mutation', 'apimodule'] as const, - /** Create apiModule mutation key */ create: () => ['mutation', 'apimodule', 'create'] as const, - /** Update apiModule mutation key */ update: (id: string | number) => - ['mutation', 'apimodule', 'update', id] as const, - /** Delete apiModule mutation key */ delete: (id: string | number) => - ['mutation', 'apimodule', 'delete', id] as const, -} as const; -export const domainMutationKeys = { - /** All domain mutation keys */ all: ['mutation', 'domain'] as const, - /** Create domain mutation key */ create: () => ['mutation', 'domain', 'create'] as const, - /** Update domain mutation key */ update: (id: string | number) => - ['mutation', 'domain', 'update', id] as const, - /** Delete domain mutation key */ delete: (id: string | number) => - ['mutation', 'domain', 'delete', id] as const, -} as const; -export const siteMetadatumMutationKeys = { - /** All siteMetadatum mutation keys */ all: ['mutation', 'sitemetadatum'] as const, - /** Create siteMetadatum mutation key */ create: () => - ['mutation', 'sitemetadatum', 'create'] as const, - /** Update siteMetadatum mutation key */ update: (id: string | number) => - ['mutation', 'sitemetadatum', 'update', id] as const, - /** Delete siteMetadatum mutation key */ delete: (id: string | number) => - ['mutation', 'sitemetadatum', 'delete', id] as const, -} as const; -export const siteModuleMutationKeys = { - /** All siteModule mutation keys */ all: ['mutation', 'sitemodule'] as const, - /** Create siteModule mutation key */ create: () => ['mutation', 'sitemodule', 'create'] as const, - /** Update siteModule mutation key */ update: (id: string | number) => - ['mutation', 'sitemodule', 'update', id] as const, - /** Delete siteModule mutation key */ delete: (id: string | number) => - ['mutation', 'sitemodule', 'delete', id] as const, -} as const; -export const siteThemeMutationKeys = { - /** All siteTheme mutation keys */ all: ['mutation', 'sitetheme'] as const, - /** Create siteTheme mutation key */ create: () => ['mutation', 'sitetheme', 'create'] as const, - /** Update siteTheme mutation key */ update: (id: string | number) => - ['mutation', 'sitetheme', 'update', id] as const, - /** Delete siteTheme mutation key */ delete: (id: string | number) => - ['mutation', 'sitetheme', 'delete', id] as const, -} as const; -export const corsSettingMutationKeys = { - /** All corsSetting mutation keys */ all: ['mutation', 'corssetting'] as const, - /** Create corsSetting mutation key */ create: () => - ['mutation', 'corssetting', 'create'] as const, - /** Update corsSetting mutation key */ update: (id: string | number) => - ['mutation', 'corssetting', 'update', id] as const, - /** Delete corsSetting mutation key */ delete: (id: string | number) => - ['mutation', 'corssetting', '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 graphModuleMutationKeys = { - /** All graphModule mutation keys */ all: ['mutation', 'graphmodule'] as const, - /** Create graphModule mutation key */ create: () => - ['mutation', 'graphmodule', 'create'] as const, - /** Update graphModule mutation key */ update: (id: string | number) => - ['mutation', 'graphmodule', 'update', id] as const, - /** Delete graphModule mutation key */ delete: (id: string | number) => - ['mutation', 'graphmodule', 'delete', id] as const, -} as const; -export const triggerFunctionMutationKeys = { - /** All triggerFunction mutation keys */ all: ['mutation', 'triggerfunction'] as const, - /** Create triggerFunction mutation key */ create: () => - ['mutation', 'triggerfunction', 'create'] as const, - /** Update triggerFunction mutation key */ update: (id: string | number) => - ['mutation', 'triggerfunction', 'update', id] as const, - /** Delete triggerFunction mutation key */ delete: (id: string | number) => - ['mutation', 'triggerfunction', 'delete', id] as const, -} as const; -export const partitionMutationKeys = { - /** All partition mutation keys */ all: ['mutation', 'partition'] as const, - /** Create partition mutation key */ create: () => ['mutation', 'partition', 'create'] as const, - /** Update partition mutation key */ update: (id: string | number) => - ['mutation', 'partition', 'update', id] as const, - /** Delete partition mutation key */ delete: (id: string | number) => - ['mutation', 'partition', 'delete', id] as const, -} as const; -export const databaseTransferMutationKeys = { - /** All databaseTransfer mutation keys */ all: ['mutation', 'databasetransfer'] as const, - /** Create databaseTransfer mutation key */ create: () => - ['mutation', 'databasetransfer', 'create'] as const, - /** Update databaseTransfer mutation key */ update: (id: string | number) => - ['mutation', 'databasetransfer', 'update', id] as const, - /** Delete databaseTransfer mutation key */ delete: (id: string | number) => - ['mutation', 'databasetransfer', 'delete', id] as const, -} as const; -export const apiMutationKeys = { - /** All api mutation keys */ all: ['mutation', 'api'] as const, - /** Create api mutation key */ create: () => ['mutation', 'api', 'create'] as const, - /** Update api mutation key */ update: (id: string | number) => - ['mutation', 'api', 'update', id] as const, - /** Delete api mutation key */ delete: (id: string | number) => - ['mutation', 'api', 'delete', id] as const, -} as const; -export const siteMutationKeys = { - /** All site mutation keys */ all: ['mutation', 'site'] as const, - /** Create site mutation key */ create: () => ['mutation', 'site', 'create'] as const, - /** Update site mutation key */ update: (id: string | number) => - ['mutation', 'site', 'update', id] as const, - /** Delete site mutation key */ delete: (id: string | number) => - ['mutation', 'site', 'delete', id] as const, -} as const; -export const appMutationKeys = { - /** All app mutation keys */ all: ['mutation', 'app'] as const, - /** Create app mutation key */ create: () => ['mutation', 'app', 'create'] as const, - /** Update app mutation key */ update: (id: string | number) => - ['mutation', 'app', 'update', id] as const, - /** Delete app mutation key */ delete: (id: string | number) => - ['mutation', 'app', 'delete', id] as const, -} as const; -export const apiSettingMutationKeys = { - /** All apiSetting mutation keys */ all: ['mutation', 'apisetting'] as const, - /** Create apiSetting mutation key */ create: () => ['mutation', 'apisetting', 'create'] as const, - /** Update apiSetting mutation key */ update: (id: string | number) => - ['mutation', 'apisetting', 'update', id] as const, - /** Delete apiSetting mutation key */ delete: (id: string | number) => - ['mutation', 'apisetting', 'delete', id] as const, -} as const; -export const connectedAccountsModuleMutationKeys = { - /** All connectedAccountsModule mutation keys */ all: [ - 'mutation', - 'connectedaccountsmodule', - ] as const, - /** Create connectedAccountsModule mutation key */ create: () => - ['mutation', 'connectedaccountsmodule', 'create'] as const, - /** Update connectedAccountsModule mutation key */ update: (id: string | number) => - ['mutation', 'connectedaccountsmodule', 'update', id] as const, - /** Delete connectedAccountsModule mutation key */ delete: (id: string | number) => - ['mutation', 'connectedaccountsmodule', 'delete', id] as const, -} as const; -export const cryptoAddressesModuleMutationKeys = { - /** All cryptoAddressesModule mutation keys */ all: [ - 'mutation', - 'cryptoaddressesmodule', - ] as const, - /** Create cryptoAddressesModule mutation key */ create: () => - ['mutation', 'cryptoaddressesmodule', 'create'] as const, - /** Update cryptoAddressesModule mutation key */ update: (id: string | number) => - ['mutation', 'cryptoaddressesmodule', 'update', id] as const, - /** Delete cryptoAddressesModule mutation key */ delete: (id: string | number) => - ['mutation', 'cryptoaddressesmodule', 'delete', id] as const, -} as const; -export const cryptoAuthModuleMutationKeys = { - /** All cryptoAuthModule mutation keys */ all: ['mutation', 'cryptoauthmodule'] as const, - /** Create cryptoAuthModule mutation key */ create: () => - ['mutation', 'cryptoauthmodule', 'create'] as const, - /** Update cryptoAuthModule mutation key */ update: (id: string | number) => - ['mutation', 'cryptoauthmodule', 'update', id] as const, - /** Delete cryptoAuthModule mutation key */ delete: (id: string | number) => - ['mutation', 'cryptoauthmodule', 'delete', id] as const, -} as const; -export const defaultIdsModuleMutationKeys = { - /** All defaultIdsModule mutation keys */ all: ['mutation', 'defaultidsmodule'] as const, - /** Create defaultIdsModule mutation key */ create: () => - ['mutation', 'defaultidsmodule', 'create'] as const, - /** Update defaultIdsModule mutation key */ update: (id: string | number) => - ['mutation', 'defaultidsmodule', 'update', id] as const, - /** Delete defaultIdsModule mutation key */ delete: (id: string | number) => - ['mutation', 'defaultidsmodule', 'delete', id] as const, -} as const; -export const denormalizedTableFieldMutationKeys = { - /** All denormalizedTableField mutation keys */ all: [ - 'mutation', - 'denormalizedtablefield', - ] as const, - /** Create denormalizedTableField mutation key */ create: () => - ['mutation', 'denormalizedtablefield', 'create'] as const, - /** Update denormalizedTableField mutation key */ update: (id: string | number) => - ['mutation', 'denormalizedtablefield', 'update', id] as const, - /** Delete denormalizedTableField mutation key */ delete: (id: string | number) => - ['mutation', 'denormalizedtablefield', 'delete', id] as const, -} as const; -export const emailsModuleMutationKeys = { - /** All emailsModule mutation keys */ all: ['mutation', 'emailsmodule'] as const, - /** Create emailsModule mutation key */ create: () => - ['mutation', 'emailsmodule', 'create'] as const, - /** Update emailsModule mutation key */ update: (id: string | number) => - ['mutation', 'emailsmodule', 'update', id] as const, - /** Delete emailsModule mutation key */ delete: (id: string | number) => - ['mutation', 'emailsmodule', '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 invitesModuleMutationKeys = { - /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, - /** Create invitesModule mutation key */ create: () => - ['mutation', 'invitesmodule', 'create'] as const, - /** Update invitesModule mutation key */ update: (id: string | number) => - ['mutation', 'invitesmodule', 'update', id] as const, - /** Delete invitesModule mutation key */ delete: (id: string | number) => - ['mutation', 'invitesmodule', 'delete', id] as const, -} as const; -export const eventsModuleMutationKeys = { - /** All eventsModule mutation keys */ all: ['mutation', 'eventsmodule'] as const, - /** Create eventsModule mutation key */ create: () => - ['mutation', 'eventsmodule', 'create'] as const, - /** Update eventsModule mutation key */ update: (id: string | number) => - ['mutation', 'eventsmodule', 'update', id] as const, - /** Delete eventsModule mutation key */ delete: (id: string | number) => - ['mutation', 'eventsmodule', 'delete', id] as const, -} as const; -export const limitsModuleMutationKeys = { - /** All limitsModule mutation keys */ all: ['mutation', 'limitsmodule'] as const, - /** Create limitsModule mutation key */ create: () => - ['mutation', 'limitsmodule', 'create'] as const, - /** Update limitsModule mutation key */ update: (id: string | number) => - ['mutation', 'limitsmodule', 'update', id] as const, - /** Delete limitsModule mutation key */ delete: (id: string | number) => - ['mutation', 'limitsmodule', 'delete', id] as const, -} as const; -export const membershipTypesModuleMutationKeys = { - /** All membershipTypesModule mutation keys */ all: [ - 'mutation', - 'membershiptypesmodule', - ] as const, - /** Create membershipTypesModule mutation key */ create: () => - ['mutation', 'membershiptypesmodule', 'create'] as const, - /** Update membershipTypesModule mutation key */ update: (id: string | number) => - ['mutation', 'membershiptypesmodule', 'update', id] as const, - /** Delete membershipTypesModule mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptypesmodule', '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 permissionsModuleMutationKeys = { - /** All permissionsModule mutation keys */ all: ['mutation', 'permissionsmodule'] as const, - /** Create permissionsModule mutation key */ create: () => - ['mutation', 'permissionsmodule', 'create'] as const, - /** Update permissionsModule mutation key */ update: (id: string | number) => - ['mutation', 'permissionsmodule', 'update', id] as const, - /** Delete permissionsModule mutation key */ delete: (id: string | number) => - ['mutation', 'permissionsmodule', 'delete', id] as const, -} as const; -export const phoneNumbersModuleMutationKeys = { - /** All phoneNumbersModule mutation keys */ all: ['mutation', 'phonenumbersmodule'] as const, - /** Create phoneNumbersModule mutation key */ create: () => - ['mutation', 'phonenumbersmodule', 'create'] as const, - /** Update phoneNumbersModule mutation key */ update: (id: string | number) => - ['mutation', 'phonenumbersmodule', 'update', id] as const, - /** Delete phoneNumbersModule mutation key */ delete: (id: string | number) => - ['mutation', 'phonenumbersmodule', 'delete', id] as const, -} as const; -export const profilesModuleMutationKeys = { - /** All profilesModule mutation keys */ all: ['mutation', 'profilesmodule'] as const, - /** Create profilesModule mutation key */ create: () => - ['mutation', 'profilesmodule', 'create'] as const, - /** Update profilesModule mutation key */ update: (id: string | number) => - ['mutation', 'profilesmodule', 'update', id] as const, - /** Delete profilesModule mutation key */ delete: (id: string | number) => - ['mutation', 'profilesmodule', '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 sessionsModuleMutationKeys = { - /** All sessionsModule mutation keys */ all: ['mutation', 'sessionsmodule'] as const, - /** Create sessionsModule mutation key */ create: () => - ['mutation', 'sessionsmodule', 'create'] as const, - /** Update sessionsModule mutation key */ update: (id: string | number) => - ['mutation', 'sessionsmodule', 'update', id] as const, - /** Delete sessionsModule mutation key */ delete: (id: string | number) => - ['mutation', 'sessionsmodule', 'delete', id] as const, -} as const; -export const userAuthModuleMutationKeys = { - /** All userAuthModule mutation keys */ all: ['mutation', 'userauthmodule'] as const, - /** Create userAuthModule mutation key */ create: () => - ['mutation', 'userauthmodule', 'create'] as const, - /** Update userAuthModule mutation key */ update: (id: string | number) => - ['mutation', 'userauthmodule', 'update', id] as const, - /** Delete userAuthModule mutation key */ delete: (id: string | number) => - ['mutation', 'userauthmodule', 'delete', id] as const, -} as const; -export const usersModuleMutationKeys = { - /** All usersModule mutation keys */ all: ['mutation', 'usersmodule'] as const, - /** Create usersModule mutation key */ create: () => - ['mutation', 'usersmodule', 'create'] as const, - /** Update usersModule mutation key */ update: (id: string | number) => - ['mutation', 'usersmodule', 'update', id] as const, - /** Delete usersModule mutation key */ delete: (id: string | number) => - ['mutation', 'usersmodule', 'delete', id] as const, -} as const; -export const blueprintMutationKeys = { - /** All blueprint mutation keys */ all: ['mutation', 'blueprint'] as const, - /** Create blueprint mutation key */ create: () => ['mutation', 'blueprint', 'create'] as const, - /** Update blueprint mutation key */ update: (id: string | number) => - ['mutation', 'blueprint', 'update', id] as const, - /** Delete blueprint mutation key */ delete: (id: string | number) => - ['mutation', 'blueprint', 'delete', id] as const, -} as const; -export const blueprintTemplateMutationKeys = { - /** All blueprintTemplate mutation keys */ all: ['mutation', 'blueprinttemplate'] as const, - /** Create blueprintTemplate mutation key */ create: () => - ['mutation', 'blueprinttemplate', 'create'] as const, - /** Update blueprintTemplate mutation key */ update: (id: string | number) => - ['mutation', 'blueprinttemplate', 'update', id] as const, - /** Delete blueprintTemplate mutation key */ delete: (id: string | number) => - ['mutation', 'blueprinttemplate', 'delete', id] as const, -} as const; -export const blueprintConstructionMutationKeys = { - /** All blueprintConstruction mutation keys */ all: [ - 'mutation', - 'blueprintconstruction', - ] as const, - /** Create blueprintConstruction mutation key */ create: () => - ['mutation', 'blueprintconstruction', 'create'] as const, - /** Update blueprintConstruction mutation key */ update: (id: string | number) => - ['mutation', 'blueprintconstruction', 'update', id] as const, - /** Delete blueprintConstruction mutation key */ delete: (id: string | number) => - ['mutation', 'blueprintconstruction', 'delete', id] as const, -} as const; -export const storageModuleMutationKeys = { - /** All storageModule mutation keys */ all: ['mutation', 'storagemodule'] as const, - /** Create storageModule mutation key */ create: () => - ['mutation', 'storagemodule', 'create'] as const, - /** Update storageModule mutation key */ update: (id: string | number) => - ['mutation', 'storagemodule', 'update', id] as const, - /** Delete storageModule mutation key */ delete: (id: string | number) => - ['mutation', 'storagemodule', 'delete', id] as const, -} as const; -export const entityTypeProvisionMutationKeys = { - /** All entityTypeProvision mutation keys */ all: ['mutation', 'entitytypeprovision'] as const, - /** Create entityTypeProvision mutation key */ create: () => - ['mutation', 'entitytypeprovision', 'create'] as const, - /** Update entityTypeProvision mutation key */ update: (id: string | number) => - ['mutation', 'entitytypeprovision', 'update', id] as const, - /** Delete entityTypeProvision mutation key */ delete: (id: string | number) => - ['mutation', 'entitytypeprovision', 'delete', id] as const, -} as const; -export const webauthnCredentialsModuleMutationKeys = { - /** All webauthnCredentialsModule mutation keys */ all: [ - 'mutation', - 'webauthncredentialsmodule', - ] as const, - /** Create webauthnCredentialsModule mutation key */ create: () => - ['mutation', 'webauthncredentialsmodule', 'create'] as const, - /** Update webauthnCredentialsModule mutation key */ update: (id: string | number) => - ['mutation', 'webauthncredentialsmodule', 'update', id] as const, - /** Delete webauthnCredentialsModule mutation key */ delete: (id: string | number) => - ['mutation', 'webauthncredentialsmodule', 'delete', id] as const, -} as const; -export const webauthnAuthModuleMutationKeys = { - /** All webauthnAuthModule mutation keys */ all: ['mutation', 'webauthnauthmodule'] as const, - /** Create webauthnAuthModule mutation key */ create: () => - ['mutation', 'webauthnauthmodule', 'create'] as const, - /** Update webauthnAuthModule mutation key */ update: (id: string | number) => - ['mutation', 'webauthnauthmodule', 'update', id] as const, - /** Delete webauthnAuthModule mutation key */ delete: (id: string | number) => - ['mutation', 'webauthnauthmodule', 'delete', id] as const, -} as const; -export const notificationsModuleMutationKeys = { - /** All notificationsModule mutation keys */ all: ['mutation', 'notificationsmodule'] as const, - /** Create notificationsModule mutation key */ create: () => - ['mutation', 'notificationsmodule', 'create'] as const, - /** Update notificationsModule mutation key */ update: (id: string | number) => - ['mutation', 'notificationsmodule', 'update', id] as const, - /** Delete notificationsModule mutation key */ delete: (id: string | number) => - ['mutation', 'notificationsmodule', 'delete', id] as const, -} as const; -export const inferenceLogModuleMutationKeys = { - /** All inferenceLogModule mutation keys */ all: ['mutation', 'inferencelogmodule'] as const, - /** Create inferenceLogModule mutation key */ create: () => - ['mutation', 'inferencelogmodule', 'create'] as const, - /** Update inferenceLogModule mutation key */ update: (id: string | number) => - ['mutation', 'inferencelogmodule', 'update', id] as const, - /** Delete inferenceLogModule mutation key */ delete: (id: string | number) => - ['mutation', 'inferencelogmodule', 'delete', id] as const, -} as const; -export const computeLogModuleMutationKeys = { - /** All computeLogModule mutation keys */ all: ['mutation', 'computelogmodule'] as const, - /** Create computeLogModule mutation key */ create: () => - ['mutation', 'computelogmodule', 'create'] as const, - /** Update computeLogModule mutation key */ update: (id: string | number) => - ['mutation', 'computelogmodule', 'update', id] as const, - /** Delete computeLogModule mutation key */ delete: (id: string | number) => - ['mutation', 'computelogmodule', 'delete', id] as const, -} as const; -export const transferLogModuleMutationKeys = { - /** All transferLogModule mutation keys */ all: ['mutation', 'transferlogmodule'] as const, - /** Create transferLogModule mutation key */ create: () => - ['mutation', 'transferlogmodule', 'create'] as const, - /** Update transferLogModule mutation key */ update: (id: string | number) => - ['mutation', 'transferlogmodule', 'update', id] as const, - /** Delete transferLogModule mutation key */ delete: (id: string | number) => - ['mutation', 'transferlogmodule', 'delete', id] as const, -} as const; -export const storageLogModuleMutationKeys = { - /** All storageLogModule mutation keys */ all: ['mutation', 'storagelogmodule'] as const, - /** Create storageLogModule mutation key */ create: () => - ['mutation', 'storagelogmodule', 'create'] as const, - /** Update storageLogModule mutation key */ update: (id: string | number) => - ['mutation', 'storagelogmodule', 'update', id] as const, - /** Delete storageLogModule mutation key */ delete: (id: string | number) => - ['mutation', 'storagelogmodule', 'delete', id] as const, -} as const; -export const dbUsageModuleMutationKeys = { - /** All dbUsageModule mutation keys */ all: ['mutation', 'dbusagemodule'] as const, - /** Create dbUsageModule mutation key */ create: () => - ['mutation', 'dbusagemodule', 'create'] as const, - /** Update dbUsageModule mutation key */ update: (id: string | number) => - ['mutation', 'dbusagemodule', 'update', id] as const, - /** Delete dbUsageModule mutation key */ delete: (id: string | number) => - ['mutation', 'dbusagemodule', 'delete', id] as const, -} as const; -export const agentModuleMutationKeys = { - /** All agentModule mutation keys */ all: ['mutation', 'agentmodule'] as const, - /** Create agentModule mutation key */ create: () => - ['mutation', 'agentmodule', 'create'] as const, - /** Update agentModule mutation key */ update: (id: string | number) => - ['mutation', 'agentmodule', 'update', id] as const, - /** Delete agentModule mutation key */ delete: (id: string | number) => - ['mutation', 'agentmodule', '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 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 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 appAdminGrantMutationKeys = { - /** All appAdminGrant mutation keys */ all: ['mutation', 'appadmingrant'] as const, - /** Create appAdminGrant mutation key */ create: () => - ['mutation', 'appadmingrant', 'create'] as const, - /** Update appAdminGrant mutation key */ update: (id: string | number) => - ['mutation', 'appadmingrant', 'update', id] as const, - /** Delete appAdminGrant mutation key */ delete: (id: string | number) => - ['mutation', 'appadmingrant', 'delete', id] as const, -} as const; -export const appOwnerGrantMutationKeys = { - /** All appOwnerGrant mutation keys */ all: ['mutation', 'appownergrant'] as const, - /** Create appOwnerGrant mutation key */ create: () => - ['mutation', 'appownergrant', 'create'] as const, - /** Update appOwnerGrant mutation key */ update: (id: string | number) => - ['mutation', 'appownergrant', 'update', id] as const, - /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => - ['mutation', 'appownergrant', 'delete', id] as const, -} as const; -export const appGrantMutationKeys = { - /** All appGrant mutation keys */ all: ['mutation', 'appgrant'] as const, - /** Create appGrant mutation key */ create: () => ['mutation', 'appgrant', 'create'] as const, - /** Update appGrant mutation key */ update: (id: string | number) => - ['mutation', 'appgrant', 'update', id] as const, - /** Delete appGrant mutation key */ delete: (id: string | number) => - ['mutation', 'appgrant', 'delete', id] as const, -} as const; -export const orgMembershipMutationKeys = { - /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, - /** Create orgMembership mutation key */ create: () => - ['mutation', 'orgmembership', 'create'] as const, - /** Update orgMembership mutation key */ update: (id: string | number) => - ['mutation', 'orgmembership', 'update', id] as const, - /** Delete orgMembership mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembership', 'delete', id] as const, -} as const; -export const orgMemberMutationKeys = { - /** All orgMember mutation keys */ all: ['mutation', 'orgmember'] as const, - /** Create orgMember mutation key */ create: () => ['mutation', 'orgmember', 'create'] as const, - /** Update orgMember mutation key */ update: (id: string | number) => - ['mutation', 'orgmember', 'update', id] as const, - /** Delete orgMember mutation key */ delete: (id: string | number) => - ['mutation', 'orgmember', 'delete', id] as const, -} as const; -export const orgAdminGrantMutationKeys = { - /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, - /** Create orgAdminGrant mutation key */ create: () => - ['mutation', 'orgadmingrant', 'create'] as const, - /** Update orgAdminGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgadmingrant', 'update', id] as const, - /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgadmingrant', 'delete', id] as const, -} as const; -export const orgOwnerGrantMutationKeys = { - /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, - /** Create orgOwnerGrant mutation key */ create: () => - ['mutation', 'orgownergrant', 'create'] as const, - /** Update orgOwnerGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgownergrant', 'update', id] as const, - /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgownergrant', 'delete', id] as const, -} as const; -export const orgMemberProfileMutationKeys = { - /** All orgMemberProfile mutation keys */ all: ['mutation', 'orgmemberprofile'] as const, - /** Create orgMemberProfile mutation key */ create: () => - ['mutation', 'orgmemberprofile', 'create'] as const, - /** Update orgMemberProfile mutation key */ update: (id: string | number) => - ['mutation', 'orgmemberprofile', 'update', id] as const, - /** Delete orgMemberProfile mutation key */ delete: (id: string | number) => - ['mutation', 'orgmemberprofile', 'delete', id] as const, -} as const; -export const orgGrantMutationKeys = { - /** All orgGrant mutation keys */ all: ['mutation', 'orggrant'] as const, - /** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'] as const, - /** Update orgGrant mutation key */ update: (id: string | number) => - ['mutation', 'orggrant', 'update', id] as const, - /** Delete orgGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orggrant', 'delete', id] as const, -} as const; -export const orgChartEdgeMutationKeys = { - /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, - /** Create orgChartEdge mutation key */ create: () => - ['mutation', 'orgchartedge', 'create'] as const, - /** Update orgChartEdge mutation key */ update: (id: string | number) => - ['mutation', 'orgchartedge', 'update', id] as const, - /** Delete orgChartEdge mutation key */ delete: (id: string | number) => - ['mutation', 'orgchartedge', 'delete', id] as const, -} as const; -export const orgChartEdgeGrantMutationKeys = { - /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, - /** Create orgChartEdgeGrant mutation key */ create: () => - ['mutation', 'orgchartedgegrant', 'create'] as const, - /** Update orgChartEdgeGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgchartedgegrant', 'update', id] as const, - /** Delete orgChartEdgeGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgchartedgegrant', 'delete', id] as const, -} as const; -export const orgPermissionDefaultMutationKeys = { - /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, - /** Create orgPermissionDefault mutation key */ create: () => - ['mutation', 'orgpermissiondefault', 'create'] as const, - /** Update orgPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'update', id] as const, - /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'delete', id] as const, -} as const; -export const appLimitMutationKeys = { - /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, - /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, - /** Update appLimit mutation key */ update: (id: string | number) => - ['mutation', 'applimit', 'update', id] as const, - /** Delete appLimit mutation key */ delete: (id: string | number) => - ['mutation', 'applimit', 'delete', id] as const, -} as const; -export const appLimitCreditMutationKeys = { - /** All appLimitCredit mutation keys */ all: ['mutation', 'applimitcredit'] as const, - /** Create appLimitCredit mutation key */ create: () => - ['mutation', 'applimitcredit', 'create'] as const, - /** Update appLimitCredit mutation key */ update: (id: string | number) => - ['mutation', 'applimitcredit', 'update', id] as const, - /** Delete appLimitCredit mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcredit', 'delete', id] as const, -} as const; -export const appLimitCreditCodeItemMutationKeys = { - /** All appLimitCreditCodeItem mutation keys */ all: [ - 'mutation', - 'applimitcreditcodeitem', - ] as const, - /** Create appLimitCreditCodeItem mutation key */ create: () => - ['mutation', 'applimitcreditcodeitem', 'create'] as const, - /** Update appLimitCreditCodeItem mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcodeitem', 'update', id] as const, - /** Delete appLimitCreditCodeItem mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcodeitem', 'delete', id] as const, -} as const; -export const appLimitCreditRedemptionMutationKeys = { - /** All appLimitCreditRedemption mutation keys */ all: [ - 'mutation', - 'applimitcreditredemption', - ] as const, - /** Create appLimitCreditRedemption mutation key */ create: () => - ['mutation', 'applimitcreditredemption', 'create'] as const, - /** Update appLimitCreditRedemption mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditredemption', 'update', id] as const, - /** Delete appLimitCreditRedemption mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditredemption', 'delete', id] as const, -} as const; -export const orgLimitMutationKeys = { - /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, - /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, - /** Update orgLimit mutation key */ update: (id: string | number) => - ['mutation', 'orglimit', 'update', id] as const, - /** Delete orgLimit mutation key */ delete: (id: string | number) => - ['mutation', 'orglimit', 'delete', id] as const, -} as const; -export const orgLimitCreditMutationKeys = { - /** All orgLimitCredit mutation keys */ all: ['mutation', 'orglimitcredit'] as const, - /** Create orgLimitCredit mutation key */ create: () => - ['mutation', 'orglimitcredit', 'create'] as const, - /** Update orgLimitCredit mutation key */ update: (id: string | number) => - ['mutation', 'orglimitcredit', 'update', id] as const, - /** Delete orgLimitCredit mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitcredit', 'delete', id] as const, -} as const; -export const orgLimitAggregateMutationKeys = { - /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, - /** Create orgLimitAggregate mutation key */ create: () => - ['mutation', 'orglimitaggregate', 'create'] as const, - /** Update orgLimitAggregate mutation key */ update: (id: string | number) => - ['mutation', 'orglimitaggregate', 'update', id] as const, - /** Delete orgLimitAggregate mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitaggregate', 'delete', id] as const, -} as const; -export const orgLimitWarningMutationKeys = { - /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'] as const, - /** Create orgLimitWarning mutation key */ create: () => - ['mutation', 'orglimitwarning', 'create'] as const, - /** Update orgLimitWarning mutation key */ update: (id: string | number) => - ['mutation', 'orglimitwarning', 'update', id] as const, - /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitwarning', 'delete', id] as const, -} as const; -export const emailMutationKeys = { - /** All email mutation keys */ all: ['mutation', 'email'] as const, - /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, - /** Update email mutation key */ update: (id: string | number) => - ['mutation', 'email', 'update', id] as const, - /** Delete email mutation key */ delete: (id: string | number) => - ['mutation', 'email', 'delete', id] as const, -} as const; -export const phoneNumberMutationKeys = { - /** All phoneNumber mutation keys */ all: ['mutation', 'phonenumber'] as const, - /** Create phoneNumber mutation key */ create: () => - ['mutation', 'phonenumber', 'create'] as const, - /** Update phoneNumber mutation key */ update: (id: string | number) => - ['mutation', 'phonenumber', 'update', id] as const, - /** Delete phoneNumber mutation key */ delete: (id: string | number) => - ['mutation', 'phonenumber', 'delete', id] as const, -} as const; -export const cryptoAddressMutationKeys = { - /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, - /** Create cryptoAddress mutation key */ create: () => - ['mutation', 'cryptoaddress', 'create'] as const, - /** Update cryptoAddress mutation key */ update: (id: string | number) => - ['mutation', 'cryptoaddress', 'update', id] as const, - /** Delete cryptoAddress mutation key */ delete: (id: string | number) => - ['mutation', 'cryptoaddress', 'delete', id] as const, -} as const; -export const webauthnCredentialMutationKeys = { - /** All webauthnCredential mutation keys */ all: ['mutation', 'webauthncredential'] as const, - /** Create webauthnCredential mutation key */ create: () => - ['mutation', 'webauthncredential', 'create'] as const, - /** Update webauthnCredential mutation key */ update: (id: string | number) => - ['mutation', 'webauthncredential', 'update', id] as const, - /** Delete webauthnCredential mutation key */ delete: (id: string | number) => - ['mutation', 'webauthncredential', 'delete', id] as const, -} as const; -export const appInviteMutationKeys = { - /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, - /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, - /** Update appInvite mutation key */ update: (id: string | number) => - ['mutation', 'appinvite', 'update', id] as const, - /** Delete appInvite mutation key */ delete: (id: string | number) => - ['mutation', 'appinvite', 'delete', id] as const, -} as const; -export const appClaimedInviteMutationKeys = { - /** All appClaimedInvite mutation keys */ all: ['mutation', 'appclaimedinvite'] as const, - /** Create appClaimedInvite mutation key */ create: () => - ['mutation', 'appclaimedinvite', 'create'] as const, - /** Update appClaimedInvite mutation key */ update: (id: string | number) => - ['mutation', 'appclaimedinvite', 'update', id] as const, - /** Delete appClaimedInvite mutation key */ delete: (id: string | number) => - ['mutation', 'appclaimedinvite', 'delete', id] as const, -} as const; -export const orgInviteMutationKeys = { - /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, - /** Create orgInvite mutation key */ create: () => ['mutation', 'orginvite', 'create'] as const, - /** Update orgInvite mutation key */ update: (id: string | number) => - ['mutation', 'orginvite', 'update', id] as const, - /** Delete orgInvite mutation key */ delete: (id: string | number) => - ['mutation', 'orginvite', 'delete', id] as const, -} as const; -export const orgClaimedInviteMutationKeys = { - /** All orgClaimedInvite mutation keys */ all: ['mutation', 'orgclaimedinvite'] as const, - /** Create orgClaimedInvite mutation key */ create: () => - ['mutation', 'orgclaimedinvite', 'create'] as const, - /** Update orgClaimedInvite mutation key */ update: (id: string | number) => - ['mutation', 'orgclaimedinvite', 'update', id] as const, - /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => - ['mutation', 'orgclaimedinvite', 'delete', id] as const, -} as const; -export const auditLogAuthMutationKeys = { - /** All auditLogAuth mutation keys */ all: ['mutation', 'auditlogauth'] as const, - /** Create auditLogAuth mutation key */ create: () => - ['mutation', 'auditlogauth', 'create'] as const, - /** Update auditLogAuth mutation key */ update: (id: string | number) => - ['mutation', 'auditlogauth', 'update', id] as const, - /** Delete auditLogAuth mutation key */ delete: (id: string | number) => - ['mutation', 'auditlogauth', 'delete', id] as const, -} as const; -export const identityProviderMutationKeys = { - /** All identityProvider mutation keys */ all: ['mutation', 'identityprovider'] as const, - /** Create identityProvider mutation key */ create: () => - ['mutation', 'identityprovider', 'create'] as const, - /** Update identityProvider mutation key */ update: (id: string | number) => - ['mutation', 'identityprovider', 'update', id] as const, - /** Delete identityProvider mutation key */ delete: (id: string | number) => - ['mutation', 'identityprovider', 'delete', id] as const, -} as const; -export const appPermissionDefaultMutationKeys = { - /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, - /** Create appPermissionDefault mutation key */ create: () => - ['mutation', 'apppermissiondefault', 'create'] as const, - /** Update appPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'apppermissiondefault', 'update', id] as const, - /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'apppermissiondefault', 'delete', id] as const, -} as const; -export const roleTypeMutationKeys = { - /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, - /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, - /** Update roleType mutation key */ update: (id: string | number) => - ['mutation', 'roletype', 'update', id] as const, - /** Delete roleType mutation key */ delete: (id: string | number) => - ['mutation', 'roletype', 'delete', id] as const, -} as const; -export const migrateFileMutationKeys = { - /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'] as const, - /** Create migrateFile mutation key */ create: () => - ['mutation', 'migratefile', 'create'] as const, - /** Update migrateFile mutation key */ update: (id: string | number) => - ['mutation', 'migratefile', 'update', id] as const, - /** Delete migrateFile mutation key */ delete: (id: string | number) => - ['mutation', 'migratefile', 'delete', id] as const, -} as const; -export const devicesModuleMutationKeys = { - /** All devicesModule mutation keys */ all: ['mutation', 'devicesmodule'] as const, - /** Create devicesModule mutation key */ create: () => - ['mutation', 'devicesmodule', 'create'] as const, - /** Update devicesModule mutation key */ update: (id: string | number) => - ['mutation', 'devicesmodule', 'update', id] as const, - /** Delete devicesModule mutation key */ delete: (id: string | number) => - ['mutation', 'devicesmodule', 'delete', id] as const, -} as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, -} as const; -export const orgMembershipDefaultMutationKeys = { - /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, - /** Create orgMembershipDefault mutation key */ create: () => - ['mutation', 'orgmembershipdefault', 'create'] as const, - /** Update orgMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'update', id] as const, - /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'delete', id] as const, -} as const; -export const nodeTypeRegistryMutationKeys = { - /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, - /** Create nodeTypeRegistry mutation key */ create: () => - ['mutation', 'nodetyperegistry', 'create'] as const, - /** Update nodeTypeRegistry mutation key */ update: (id: string | number) => - ['mutation', 'nodetyperegistry', 'update', id] as const, - /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => - ['mutation', 'nodetyperegistry', 'delete', id] as const, -} as const; -export const appLimitCapsDefaultMutationKeys = { - /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'] as const, - /** Create appLimitCapsDefault mutation key */ create: () => - ['mutation', 'applimitcapsdefault', 'create'] as const, - /** Update appLimitCapsDefault mutation key */ update: (id: string | number) => - ['mutation', 'applimitcapsdefault', 'update', id] as const, - /** Delete appLimitCapsDefault mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcapsdefault', 'delete', id] as const, -} as const; -export const orgLimitCapsDefaultMutationKeys = { - /** All orgLimitCapsDefault mutation keys */ all: ['mutation', 'orglimitcapsdefault'] as const, - /** Create orgLimitCapsDefault mutation key */ create: () => - ['mutation', 'orglimitcapsdefault', 'create'] as const, - /** Update orgLimitCapsDefault mutation key */ update: (id: string | number) => - ['mutation', 'orglimitcapsdefault', 'update', id] as const, - /** Delete orgLimitCapsDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitcapsdefault', 'delete', id] as const, -} as const; -export const appLimitCapMutationKeys = { - /** All appLimitCap mutation keys */ all: ['mutation', 'applimitcap'] as const, - /** Create appLimitCap mutation key */ create: () => - ['mutation', 'applimitcap', 'create'] as const, - /** Update appLimitCap mutation key */ update: (id: string | number) => - ['mutation', 'applimitcap', 'update', id] as const, - /** Delete appLimitCap mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcap', 'delete', id] as const, -} as const; -export const orgLimitCapMutationKeys = { - /** All orgLimitCap mutation keys */ all: ['mutation', 'orglimitcap'] as const, - /** Create orgLimitCap mutation key */ create: () => - ['mutation', 'orglimitcap', 'create'] as const, - /** Update orgLimitCap mutation key */ update: (id: string | number) => - ['mutation', 'orglimitcap', 'update', id] as const, - /** Delete orgLimitCap mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitcap', 'delete', id] as const, -} as const; -export const userConnectedAccountMutationKeys = { - /** All userConnectedAccount mutation keys */ all: ['mutation', 'userconnectedaccount'] as const, - /** Create userConnectedAccount mutation key */ create: () => - ['mutation', 'userconnectedaccount', 'create'] as const, - /** Update userConnectedAccount mutation key */ update: (id: string | number) => - ['mutation', 'userconnectedaccount', 'update', id] as const, - /** Delete userConnectedAccount mutation key */ delete: (id: string | number) => - ['mutation', 'userconnectedaccount', 'delete', id] as const, -} as const; -export const appLimitDefaultMutationKeys = { - /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, - /** Create appLimitDefault mutation key */ create: () => - ['mutation', 'applimitdefault', 'create'] as const, - /** Update appLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'applimitdefault', 'update', id] as const, - /** Delete appLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'applimitdefault', 'delete', id] as const, -} as const; -export const orgLimitDefaultMutationKeys = { - /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, - /** Create orgLimitDefault mutation key */ create: () => - ['mutation', 'orglimitdefault', 'create'] as const, - /** Update orgLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'orglimitdefault', 'update', id] as const, - /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitdefault', 'delete', id] as const, -} as const; -export const appLimitCreditCodeMutationKeys = { - /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, - /** Create appLimitCreditCode mutation key */ create: () => - ['mutation', 'applimitcreditcode', 'create'] as const, - /** Update appLimitCreditCode mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcode', 'update', id] as const, - /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcode', 'delete', id] as const, -} as const; -export const appLimitWarningMutationKeys = { - /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, - /** Create appLimitWarning mutation key */ create: () => - ['mutation', 'applimitwarning', 'create'] as const, - /** Update appLimitWarning mutation key */ update: (id: string | number) => - ['mutation', 'applimitwarning', 'update', id] as const, - /** Delete appLimitWarning mutation key */ delete: (id: string | number) => - ['mutation', 'applimitwarning', 'delete', id] as const, -} as const; -export const pubkeySettingMutationKeys = { - /** All pubkeySetting mutation keys */ all: ['mutation', 'pubkeysetting'] as const, - /** Create pubkeySetting mutation key */ create: () => - ['mutation', 'pubkeysetting', 'create'] as const, - /** Update pubkeySetting mutation key */ update: (id: string | number) => - ['mutation', 'pubkeysetting', 'update', id] as const, - /** Delete pubkeySetting mutation key */ delete: (id: string | number) => - ['mutation', 'pubkeysetting', 'delete', id] as const, -} as const; -export const rateLimitsModuleMutationKeys = { - /** All rateLimitsModule mutation keys */ all: ['mutation', 'ratelimitsmodule'] as const, - /** Create rateLimitsModule mutation key */ create: () => - ['mutation', 'ratelimitsmodule', 'create'] as const, - /** Update rateLimitsModule mutation key */ update: (id: string | number) => - ['mutation', 'ratelimitsmodule', 'update', id] as const, - /** Delete rateLimitsModule mutation key */ delete: (id: string | number) => - ['mutation', 'ratelimitsmodule', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, -} as const; -export const rlsSettingMutationKeys = { - /** All rlsSetting mutation keys */ all: ['mutation', 'rlssetting'] as const, - /** Create rlsSetting mutation key */ create: () => ['mutation', 'rlssetting', 'create'] as const, - /** Update rlsSetting mutation key */ update: (id: string | number) => - ['mutation', 'rlssetting', 'update', id] as const, - /** Delete rlsSetting mutation key */ delete: (id: string | number) => - ['mutation', 'rlssetting', '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, - /** Update rlsModule mutation key */ update: (id: string | number) => - ['mutation', 'rlsmodule', 'update', id] as const, - /** Delete rlsModule mutation key */ delete: (id: string | number) => - ['mutation', 'rlsmodule', 'delete', id] as const, -} as const; -export const rateLimitMetersModuleMutationKeys = { - /** All rateLimitMetersModule mutation keys */ all: [ - 'mutation', - 'ratelimitmetersmodule', - ] as const, - /** Create rateLimitMetersModule mutation key */ create: () => - ['mutation', 'ratelimitmetersmodule', 'create'] as const, - /** Update rateLimitMetersModule mutation key */ update: (id: string | number) => - ['mutation', 'ratelimitmetersmodule', 'update', id] as const, - /** Delete rateLimitMetersModule mutation key */ delete: (id: string | number) => - ['mutation', 'ratelimitmetersmodule', '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 sqlActionMutationKeys = { - /** All sqlAction mutation keys */ all: ['mutation', 'sqlaction'] as const, - /** Create sqlAction mutation key */ create: () => ['mutation', 'sqlaction', 'create'] as const, - /** Update sqlAction mutation key */ update: (id: string | number) => - ['mutation', 'sqlaction', 'update', id] as const, - /** Delete sqlAction mutation key */ delete: (id: string | number) => - ['mutation', 'sqlaction', 'delete', id] as const, -} as const; -export const databaseSettingMutationKeys = { - /** All databaseSetting mutation keys */ all: ['mutation', 'databasesetting'] as const, - /** Create databaseSetting mutation key */ create: () => - ['mutation', 'databasesetting', 'create'] as const, - /** Update databaseSetting mutation key */ update: (id: string | number) => - ['mutation', 'databasesetting', 'update', id] as const, - /** Delete databaseSetting mutation key */ delete: (id: string | number) => - ['mutation', 'databasesetting', 'delete', id] as const, -} as const; -export const orgMembershipSettingMutationKeys = { - /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, - /** Create orgMembershipSetting mutation key */ create: () => - ['mutation', 'orgmembershipsetting', 'create'] as const, - /** Update orgMembershipSetting mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'update', id] as const, - /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'delete', id] as const, -} as const; -export const appLimitEventMutationKeys = { - /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, - /** Create appLimitEvent mutation key */ create: () => - ['mutation', 'applimitevent', 'create'] as const, - /** Update appLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'applimitevent', 'update', id] as const, - /** Delete appLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'applimitevent', 'delete', id] as const, -} as const; -export const orgLimitEventMutationKeys = { - /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, - /** Create orgLimitEvent mutation key */ create: () => - ['mutation', 'orglimitevent', 'create'] as const, - /** Update orgLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'orglimitevent', 'update', id] as const, - /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitevent', 'delete', id] as const, -} as const; -export const appMembershipMutationKeys = { - /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, - /** Create appMembership mutation key */ create: () => - ['mutation', 'appmembership', 'create'] as const, - /** Update appMembership mutation key */ update: (id: string | number) => - ['mutation', 'appmembership', 'update', id] as const, - /** Delete appMembership mutation key */ delete: (id: string | number) => - ['mutation', 'appmembership', 'delete', id] as const, -} as const; -export const userMutationKeys = { - /** All user mutation keys */ all: ['mutation', 'user'] as const, - /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, - /** Update user mutation key */ update: (id: string | number) => - ['mutation', 'user', 'update', id] as const, - /** Delete user mutation key */ delete: (id: string | number) => - ['mutation', 'user', 'delete', id] as const, -} as const; -export const astMigrationMutationKeys = { - /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, - /** Create astMigration mutation key */ create: () => - ['mutation', 'astmigration', 'create'] as const, - /** Update astMigration mutation key */ update: (id: string | number) => - ['mutation', 'astmigration', 'update', id] as const, - /** Delete astMigration mutation key */ delete: (id: string | number) => - ['mutation', 'astmigration', 'delete', id] as const, -} 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 billingModuleMutationKeys = { - /** All billingModule mutation keys */ all: ['mutation', 'billingmodule'] as const, - /** Create billingModule mutation key */ create: () => - ['mutation', 'billingmodule', 'create'] as const, - /** Update billingModule mutation key */ update: (id: string | number) => - ['mutation', 'billingmodule', 'update', id] as const, - /** Delete billingModule mutation key */ delete: (id: string | number) => - ['mutation', 'billingmodule', 'delete', id] as const, -} as const; -export const billingProviderModuleMutationKeys = { - /** All billingProviderModule mutation keys */ all: [ - 'mutation', - 'billingprovidermodule', - ] as const, - /** Create billingProviderModule mutation key */ create: () => - ['mutation', 'billingprovidermodule', 'create'] as const, - /** Update billingProviderModule mutation key */ update: (id: string | number) => - ['mutation', 'billingprovidermodule', 'update', id] as const, - /** Delete billingProviderModule mutation key */ delete: (id: string | number) => - ['mutation', 'billingprovidermodule', 'delete', id] as const, -} as const; -export const hierarchyModuleMutationKeys = { - /** All hierarchyModule mutation keys */ all: ['mutation', 'hierarchymodule'] as const, - /** Create hierarchyModule mutation key */ create: () => - ['mutation', 'hierarchymodule', 'create'] as const, - /** Update hierarchyModule mutation key */ update: (id: string | number) => - ['mutation', 'hierarchymodule', 'update', id] as const, - /** Delete hierarchyModule mutation key */ delete: (id: string | number) => - ['mutation', 'hierarchymodule', 'delete', id] as const, -} as const; - -// ============================================================================ -// Custom Mutation Keys -// ============================================================================ - -export const customMutationKeys = { - /** Mutation key for sendAccountDeletionEmail */ sendAccountDeletionEmail: ( - identifier?: string - ) => - identifier - ? (['mutation', 'sendAccountDeletionEmail', identifier] as const) - : (['mutation', 'sendAccountDeletionEmail'] as const), - /** Mutation key for signOut */ signOut: (identifier?: string) => - identifier - ? (['mutation', 'signOut', identifier] as const) - : (['mutation', 'signOut'] as const), - /** Mutation key for acceptDatabaseTransfer */ acceptDatabaseTransfer: (identifier?: string) => - identifier - ? (['mutation', 'acceptDatabaseTransfer', identifier] as const) - : (['mutation', 'acceptDatabaseTransfer'] as const), - /** Mutation key for cancelDatabaseTransfer */ cancelDatabaseTransfer: (identifier?: string) => - identifier - ? (['mutation', 'cancelDatabaseTransfer', identifier] as const) - : (['mutation', 'cancelDatabaseTransfer'] as const), - /** Mutation key for rejectDatabaseTransfer */ rejectDatabaseTransfer: (identifier?: string) => - identifier - ? (['mutation', 'rejectDatabaseTransfer', identifier] as const) - : (['mutation', 'rejectDatabaseTransfer'] as const), - /** Mutation key for disconnectAccount */ disconnectAccount: (identifier?: string) => - identifier - ? (['mutation', 'disconnectAccount', identifier] as const) - : (['mutation', 'disconnectAccount'] as const), - /** Mutation key for revokeApiKey */ revokeApiKey: (identifier?: string) => - identifier - ? (['mutation', 'revokeApiKey', identifier] as const) - : (['mutation', 'revokeApiKey'] as const), - /** Mutation key for revokeSession */ revokeSession: (identifier?: string) => - identifier - ? (['mutation', 'revokeSession', identifier] as const) - : (['mutation', 'revokeSession'] as const), - /** Mutation key for verifyPassword */ verifyPassword: (identifier?: string) => - identifier - ? (['mutation', 'verifyPassword', identifier] as const) - : (['mutation', 'verifyPassword'] as const), - /** Mutation key for verifyTotp */ verifyTotp: (identifier?: string) => - identifier - ? (['mutation', 'verifyTotp', identifier] as const) - : (['mutation', 'verifyTotp'] as const), - /** Mutation key for submitAppInviteCode */ submitAppInviteCode: (identifier?: string) => - identifier - ? (['mutation', 'submitAppInviteCode', identifier] as const) - : (['mutation', 'submitAppInviteCode'] as const), - /** Mutation key for submitOrgInviteCode */ submitOrgInviteCode: (identifier?: string) => - identifier - ? (['mutation', 'submitOrgInviteCode', identifier] as const) - : (['mutation', 'submitOrgInviteCode'] as const), - /** Mutation key for checkPassword */ checkPassword: (identifier?: string) => - identifier - ? (['mutation', 'checkPassword', identifier] as const) - : (['mutation', 'checkPassword'] as const), - /** Mutation key for confirmDeleteAccount */ confirmDeleteAccount: (identifier?: string) => - identifier - ? (['mutation', 'confirmDeleteAccount', identifier] as const) - : (['mutation', 'confirmDeleteAccount'] as const), - /** Mutation key for setPassword */ setPassword: (identifier?: string) => - identifier - ? (['mutation', 'setPassword', identifier] as const) - : (['mutation', 'setPassword'] as const), - /** Mutation key for verifyEmail */ verifyEmail: (identifier?: string) => - identifier - ? (['mutation', 'verifyEmail', identifier] as const) - : (['mutation', 'verifyEmail'] as const), - /** Mutation key for constructBlueprint */ constructBlueprint: (identifier?: string) => - identifier - ? (['mutation', 'constructBlueprint', identifier] as const) - : (['mutation', 'constructBlueprint'] as const), - /** Mutation key for provisionNewUser */ provisionNewUser: (identifier?: string) => - identifier - ? (['mutation', 'provisionNewUser', identifier] as const) - : (['mutation', 'provisionNewUser'] as const), - /** Mutation key for resetPassword */ resetPassword: (identifier?: string) => - identifier - ? (['mutation', 'resetPassword', identifier] as const) - : (['mutation', 'resetPassword'] as const), - /** Mutation key for provisionCheckConstraint */ provisionCheckConstraint: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionCheckConstraint', identifier] as const) - : (['mutation', 'provisionCheckConstraint'] as const), - /** Mutation key for provisionUniqueConstraint */ provisionUniqueConstraint: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionUniqueConstraint', identifier] as const) - : (['mutation', 'provisionUniqueConstraint'] as const), - /** Mutation key for provisionFullTextSearch */ provisionFullTextSearch: (identifier?: string) => - identifier - ? (['mutation', 'provisionFullTextSearch', identifier] as const) - : (['mutation', 'provisionFullTextSearch'] as const), - /** Mutation key for provisionIndex */ provisionIndex: (identifier?: string) => - identifier - ? (['mutation', 'provisionIndex', identifier] as const) - : (['mutation', 'provisionIndex'] as const), - /** Mutation key for copyTemplateToBlueprint */ copyTemplateToBlueprint: (identifier?: string) => - identifier - ? (['mutation', 'copyTemplateToBlueprint', identifier] as const) - : (['mutation', 'copyTemplateToBlueprint'] as const), - /** Mutation key for provisionSpatialRelation */ provisionSpatialRelation: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionSpatialRelation', identifier] as const) - : (['mutation', 'provisionSpatialRelation'] as const), - /** Mutation key for signInCrossOrigin */ signInCrossOrigin: (identifier?: string) => - identifier - ? (['mutation', 'signInCrossOrigin', identifier] as const) - : (['mutation', 'signInCrossOrigin'] as const), - /** Mutation key for bootstrapUser */ bootstrapUser: (identifier?: string) => - identifier - ? (['mutation', 'bootstrapUser', identifier] as const) - : (['mutation', 'bootstrapUser'] as const), - /** Mutation key for signUp */ signUp: (identifier?: string) => - identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), - /** Mutation key for signIn */ signIn: (identifier?: string) => - identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), - /** Mutation key for provisionRelation */ provisionRelation: (identifier?: string) => - identifier - ? (['mutation', 'provisionRelation', identifier] as const) - : (['mutation', 'provisionRelation'] as const), - /** Mutation key for setFieldOrder */ setFieldOrder: (identifier?: string) => - identifier - ? (['mutation', 'setFieldOrder', identifier] as const) - : (['mutation', 'setFieldOrder'] as const), - /** Mutation key for applyRls */ applyRls: (identifier?: string) => - identifier - ? (['mutation', 'applyRls', identifier] as const) - : (['mutation', 'applyRls'] as const), - /** Mutation key for provisionDatabaseWithUser */ provisionDatabaseWithUser: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionDatabaseWithUser', identifier] as const) - : (['mutation', 'provisionDatabaseWithUser'] as const), - /** Mutation key for createUserDatabase */ createUserDatabase: (identifier?: string) => - identifier - ? (['mutation', 'createUserDatabase', identifier] as const) - : (['mutation', 'createUserDatabase'] as const), - /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => - identifier - ? (['mutation', 'extendTokenExpires', identifier] as const) - : (['mutation', 'extendTokenExpires'] as const), - /** Mutation key for createApiKey */ createApiKey: (identifier?: string) => - identifier - ? (['mutation', 'createApiKey', identifier] as const) - : (['mutation', 'createApiKey'] as const), - /** Mutation key for requestCrossOriginToken */ requestCrossOriginToken: (identifier?: string) => - identifier - ? (['mutation', 'requestCrossOriginToken', identifier] as const) - : (['mutation', 'requestCrossOriginToken'] as const), - /** Mutation key for provisionTable */ provisionTable: (identifier?: string) => - identifier - ? (['mutation', 'provisionTable', identifier] as const) - : (['mutation', 'provisionTable'] as const), - /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => - identifier - ? (['mutation', 'sendVerificationEmail', identifier] as const) - : (['mutation', 'sendVerificationEmail'] as const), - /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => - identifier - ? (['mutation', 'forgotPassword', identifier] as const) - : (['mutation', 'forgotPassword'] as const), - /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => - identifier - ? (['mutation', 'provisionBucket', identifier] as const) - : (['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 = { - orgGetManagersRecord: orgGetManagersRecordMutationKeys, - orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, - appPermission: appPermissionMutationKeys, - orgPermission: orgPermissionMutationKeys, - database: databaseMutationKeys, - schema: schemaMutationKeys, - table: tableMutationKeys, - checkConstraint: checkConstraintMutationKeys, - field: fieldMutationKeys, - spatialRelation: spatialRelationMutationKeys, - foreignKeyConstraint: foreignKeyConstraintMutationKeys, - fullTextSearch: fullTextSearchMutationKeys, - index: indexMutationKeys, - policy: policyMutationKeys, - primaryKeyConstraint: primaryKeyConstraintMutationKeys, - tableGrant: tableGrantMutationKeys, - trigger: triggerMutationKeys, - uniqueConstraint: uniqueConstraintMutationKeys, - view: viewMutationKeys, - viewTable: viewTableMutationKeys, - viewGrant: viewGrantMutationKeys, - viewRule: viewRuleMutationKeys, - embeddingChunk: embeddingChunkMutationKeys, - secureTableProvision: secureTableProvisionMutationKeys, - relationProvision: relationProvisionMutationKeys, - sessionSecretsModule: sessionSecretsModuleMutationKeys, - identityProvidersModule: identityProvidersModuleMutationKeys, - realtimeModule: realtimeModuleMutationKeys, - configSecretsOrgModule: configSecretsOrgModuleMutationKeys, - schemaGrant: schemaGrantMutationKeys, - defaultPrivilege: defaultPrivilegeMutationKeys, - enum: enumMutationKeys, - function: functionMutationKeys, - apiSchema: apiSchemaMutationKeys, - apiModule: apiModuleMutationKeys, - domain: domainMutationKeys, - siteMetadatum: siteMetadatumMutationKeys, - siteModule: siteModuleMutationKeys, - siteTheme: siteThemeMutationKeys, - corsSetting: corsSettingMutationKeys, - merkleStoreModule: merkleStoreModuleMutationKeys, - graphModule: graphModuleMutationKeys, - triggerFunction: triggerFunctionMutationKeys, - partition: partitionMutationKeys, - databaseTransfer: databaseTransferMutationKeys, - api: apiMutationKeys, - site: siteMutationKeys, - app: appMutationKeys, - apiSetting: apiSettingMutationKeys, - connectedAccountsModule: connectedAccountsModuleMutationKeys, - cryptoAddressesModule: cryptoAddressesModuleMutationKeys, - cryptoAuthModule: cryptoAuthModuleMutationKeys, - defaultIdsModule: defaultIdsModuleMutationKeys, - denormalizedTableField: denormalizedTableFieldMutationKeys, - emailsModule: emailsModuleMutationKeys, - configSecretsUserModule: configSecretsUserModuleMutationKeys, - invitesModule: invitesModuleMutationKeys, - eventsModule: eventsModuleMutationKeys, - limitsModule: limitsModuleMutationKeys, - membershipTypesModule: membershipTypesModuleMutationKeys, - membershipsModule: membershipsModuleMutationKeys, - permissionsModule: permissionsModuleMutationKeys, - phoneNumbersModule: phoneNumbersModuleMutationKeys, - profilesModule: profilesModuleMutationKeys, - userStateModule: userStateModuleMutationKeys, - sessionsModule: sessionsModuleMutationKeys, - userAuthModule: userAuthModuleMutationKeys, - usersModule: usersModuleMutationKeys, - blueprint: blueprintMutationKeys, - blueprintTemplate: blueprintTemplateMutationKeys, - blueprintConstruction: blueprintConstructionMutationKeys, - storageModule: storageModuleMutationKeys, - entityTypeProvision: entityTypeProvisionMutationKeys, - webauthnCredentialsModule: webauthnCredentialsModuleMutationKeys, - webauthnAuthModule: webauthnAuthModuleMutationKeys, - notificationsModule: notificationsModuleMutationKeys, - inferenceLogModule: inferenceLogModuleMutationKeys, - computeLogModule: computeLogModuleMutationKeys, - transferLogModule: transferLogModuleMutationKeys, - storageLogModule: storageLogModuleMutationKeys, - dbUsageModule: dbUsageModuleMutationKeys, - agentModule: agentModuleMutationKeys, - namespaceModule: namespaceModuleMutationKeys, - functionModule: functionModuleMutationKeys, - databaseProvisionModule: databaseProvisionModuleMutationKeys, - appAdminGrant: appAdminGrantMutationKeys, - appOwnerGrant: appOwnerGrantMutationKeys, - appGrant: appGrantMutationKeys, - orgMembership: orgMembershipMutationKeys, - orgMember: orgMemberMutationKeys, - orgAdminGrant: orgAdminGrantMutationKeys, - orgOwnerGrant: orgOwnerGrantMutationKeys, - orgMemberProfile: orgMemberProfileMutationKeys, - orgGrant: orgGrantMutationKeys, - orgChartEdge: orgChartEdgeMutationKeys, - orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, - orgPermissionDefault: orgPermissionDefaultMutationKeys, - appLimit: appLimitMutationKeys, - appLimitCredit: appLimitCreditMutationKeys, - appLimitCreditCodeItem: appLimitCreditCodeItemMutationKeys, - appLimitCreditRedemption: appLimitCreditRedemptionMutationKeys, - orgLimit: orgLimitMutationKeys, - orgLimitCredit: orgLimitCreditMutationKeys, - orgLimitAggregate: orgLimitAggregateMutationKeys, - orgLimitWarning: orgLimitWarningMutationKeys, - email: emailMutationKeys, - phoneNumber: phoneNumberMutationKeys, - cryptoAddress: cryptoAddressMutationKeys, - webauthnCredential: webauthnCredentialMutationKeys, - appInvite: appInviteMutationKeys, - appClaimedInvite: appClaimedInviteMutationKeys, - orgInvite: orgInviteMutationKeys, - orgClaimedInvite: orgClaimedInviteMutationKeys, - auditLogAuth: auditLogAuthMutationKeys, - identityProvider: identityProviderMutationKeys, - appPermissionDefault: appPermissionDefaultMutationKeys, - roleType: roleTypeMutationKeys, - migrateFile: migrateFileMutationKeys, - devicesModule: devicesModuleMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, - orgMembershipDefault: orgMembershipDefaultMutationKeys, - nodeTypeRegistry: nodeTypeRegistryMutationKeys, - appLimitCapsDefault: appLimitCapsDefaultMutationKeys, - orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, - appLimitCap: appLimitCapMutationKeys, - orgLimitCap: orgLimitCapMutationKeys, - userConnectedAccount: userConnectedAccountMutationKeys, - appLimitDefault: appLimitDefaultMutationKeys, - orgLimitDefault: orgLimitDefaultMutationKeys, - appLimitCreditCode: appLimitCreditCodeMutationKeys, - appLimitWarning: appLimitWarningMutationKeys, - pubkeySetting: pubkeySettingMutationKeys, - rateLimitsModule: rateLimitsModuleMutationKeys, - membershipType: membershipTypeMutationKeys, - rlsSetting: rlsSettingMutationKeys, - rlsModule: rlsModuleMutationKeys, - rateLimitMetersModule: rateLimitMetersModuleMutationKeys, - plansModule: plansModuleMutationKeys, - sqlAction: sqlActionMutationKeys, - databaseSetting: databaseSettingMutationKeys, - orgMembershipSetting: orgMembershipSettingMutationKeys, - appLimitEvent: appLimitEventMutationKeys, - orgLimitEvent: orgLimitEventMutationKeys, - appMembership: appMembershipMutationKeys, - user: userMutationKeys, - astMigration: astMigrationMutationKeys, - webauthnSetting: webauthnSettingMutationKeys, - billingModule: billingModuleMutationKeys, - billingProviderModule: billingProviderModuleMutationKeys, - hierarchyModule: hierarchyModuleMutationKeys, - custom: customMutationKeys, -} as const; diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts deleted file mode 100644 index d0d0be6834..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ /dev/null @@ -1,482 +0,0 @@ -/** - * Mutation hooks barrel export - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -export * from './useCreateOrgGetManagersRecordMutation'; -export * from './useCreateOrgGetSubordinatesRecordMutation'; -export * from './useCreateAppPermissionMutation'; -export * from './useUpdateAppPermissionMutation'; -export * from './useDeleteAppPermissionMutation'; -export * from './useCreateOrgPermissionMutation'; -export * from './useUpdateOrgPermissionMutation'; -export * from './useDeleteOrgPermissionMutation'; -export * from './useCreateDatabaseMutation'; -export * from './useUpdateDatabaseMutation'; -export * from './useDeleteDatabaseMutation'; -export * from './useCreateSchemaMutation'; -export * from './useUpdateSchemaMutation'; -export * from './useDeleteSchemaMutation'; -export * from './useCreateTableMutation'; -export * from './useUpdateTableMutation'; -export * from './useDeleteTableMutation'; -export * from './useCreateCheckConstraintMutation'; -export * from './useUpdateCheckConstraintMutation'; -export * from './useDeleteCheckConstraintMutation'; -export * from './useCreateFieldMutation'; -export * from './useUpdateFieldMutation'; -export * from './useDeleteFieldMutation'; -export * from './useCreateSpatialRelationMutation'; -export * from './useUpdateSpatialRelationMutation'; -export * from './useDeleteSpatialRelationMutation'; -export * from './useCreateForeignKeyConstraintMutation'; -export * from './useUpdateForeignKeyConstraintMutation'; -export * from './useDeleteForeignKeyConstraintMutation'; -export * from './useCreateFullTextSearchMutation'; -export * from './useUpdateFullTextSearchMutation'; -export * from './useDeleteFullTextSearchMutation'; -export * from './useCreateIndexMutation'; -export * from './useUpdateIndexMutation'; -export * from './useDeleteIndexMutation'; -export * from './useCreatePolicyMutation'; -export * from './useUpdatePolicyMutation'; -export * from './useDeletePolicyMutation'; -export * from './useCreatePrimaryKeyConstraintMutation'; -export * from './useUpdatePrimaryKeyConstraintMutation'; -export * from './useDeletePrimaryKeyConstraintMutation'; -export * from './useCreateTableGrantMutation'; -export * from './useUpdateTableGrantMutation'; -export * from './useDeleteTableGrantMutation'; -export * from './useCreateTriggerMutation'; -export * from './useUpdateTriggerMutation'; -export * from './useDeleteTriggerMutation'; -export * from './useCreateUniqueConstraintMutation'; -export * from './useUpdateUniqueConstraintMutation'; -export * from './useDeleteUniqueConstraintMutation'; -export * from './useCreateViewMutation'; -export * from './useUpdateViewMutation'; -export * from './useDeleteViewMutation'; -export * from './useCreateViewTableMutation'; -export * from './useUpdateViewTableMutation'; -export * from './useDeleteViewTableMutation'; -export * from './useCreateViewGrantMutation'; -export * from './useUpdateViewGrantMutation'; -export * from './useDeleteViewGrantMutation'; -export * from './useCreateViewRuleMutation'; -export * from './useUpdateViewRuleMutation'; -export * from './useDeleteViewRuleMutation'; -export * from './useCreateEmbeddingChunkMutation'; -export * from './useUpdateEmbeddingChunkMutation'; -export * from './useDeleteEmbeddingChunkMutation'; -export * from './useCreateSecureTableProvisionMutation'; -export * from './useUpdateSecureTableProvisionMutation'; -export * from './useDeleteSecureTableProvisionMutation'; -export * from './useCreateRelationProvisionMutation'; -export * from './useUpdateRelationProvisionMutation'; -export * from './useDeleteRelationProvisionMutation'; -export * from './useCreateSessionSecretsModuleMutation'; -export * from './useUpdateSessionSecretsModuleMutation'; -export * from './useDeleteSessionSecretsModuleMutation'; -export * from './useCreateIdentityProvidersModuleMutation'; -export * from './useUpdateIdentityProvidersModuleMutation'; -export * from './useDeleteIdentityProvidersModuleMutation'; -export * from './useCreateRealtimeModuleMutation'; -export * from './useUpdateRealtimeModuleMutation'; -export * from './useDeleteRealtimeModuleMutation'; -export * from './useCreateConfigSecretsOrgModuleMutation'; -export * from './useUpdateConfigSecretsOrgModuleMutation'; -export * from './useDeleteConfigSecretsOrgModuleMutation'; -export * from './useCreateSchemaGrantMutation'; -export * from './useUpdateSchemaGrantMutation'; -export * from './useDeleteSchemaGrantMutation'; -export * from './useCreateDefaultPrivilegeMutation'; -export * from './useUpdateDefaultPrivilegeMutation'; -export * from './useDeleteDefaultPrivilegeMutation'; -export * from './useCreateEnumMutation'; -export * from './useUpdateEnumMutation'; -export * from './useDeleteEnumMutation'; -export * from './useCreateFunctionMutation'; -export * from './useUpdateFunctionMutation'; -export * from './useDeleteFunctionMutation'; -export * from './useCreateApiSchemaMutation'; -export * from './useUpdateApiSchemaMutation'; -export * from './useDeleteApiSchemaMutation'; -export * from './useCreateApiModuleMutation'; -export * from './useUpdateApiModuleMutation'; -export * from './useDeleteApiModuleMutation'; -export * from './useCreateDomainMutation'; -export * from './useUpdateDomainMutation'; -export * from './useDeleteDomainMutation'; -export * from './useCreateSiteMetadatumMutation'; -export * from './useUpdateSiteMetadatumMutation'; -export * from './useDeleteSiteMetadatumMutation'; -export * from './useCreateSiteModuleMutation'; -export * from './useUpdateSiteModuleMutation'; -export * from './useDeleteSiteModuleMutation'; -export * from './useCreateSiteThemeMutation'; -export * from './useUpdateSiteThemeMutation'; -export * from './useDeleteSiteThemeMutation'; -export * from './useCreateCorsSettingMutation'; -export * from './useUpdateCorsSettingMutation'; -export * from './useDeleteCorsSettingMutation'; -export * from './useCreateMerkleStoreModuleMutation'; -export * from './useUpdateMerkleStoreModuleMutation'; -export * from './useDeleteMerkleStoreModuleMutation'; -export * from './useCreateGraphModuleMutation'; -export * from './useUpdateGraphModuleMutation'; -export * from './useDeleteGraphModuleMutation'; -export * from './useCreateTriggerFunctionMutation'; -export * from './useUpdateTriggerFunctionMutation'; -export * from './useDeleteTriggerFunctionMutation'; -export * from './useCreatePartitionMutation'; -export * from './useUpdatePartitionMutation'; -export * from './useDeletePartitionMutation'; -export * from './useCreateDatabaseTransferMutation'; -export * from './useUpdateDatabaseTransferMutation'; -export * from './useDeleteDatabaseTransferMutation'; -export * from './useCreateApiMutation'; -export * from './useUpdateApiMutation'; -export * from './useDeleteApiMutation'; -export * from './useCreateSiteMutation'; -export * from './useUpdateSiteMutation'; -export * from './useDeleteSiteMutation'; -export * from './useCreateAppMutation'; -export * from './useUpdateAppMutation'; -export * from './useDeleteAppMutation'; -export * from './useCreateApiSettingMutation'; -export * from './useUpdateApiSettingMutation'; -export * from './useDeleteApiSettingMutation'; -export * from './useCreateConnectedAccountsModuleMutation'; -export * from './useUpdateConnectedAccountsModuleMutation'; -export * from './useDeleteConnectedAccountsModuleMutation'; -export * from './useCreateCryptoAddressesModuleMutation'; -export * from './useUpdateCryptoAddressesModuleMutation'; -export * from './useDeleteCryptoAddressesModuleMutation'; -export * from './useCreateCryptoAuthModuleMutation'; -export * from './useUpdateCryptoAuthModuleMutation'; -export * from './useDeleteCryptoAuthModuleMutation'; -export * from './useCreateDefaultIdsModuleMutation'; -export * from './useUpdateDefaultIdsModuleMutation'; -export * from './useDeleteDefaultIdsModuleMutation'; -export * from './useCreateDenormalizedTableFieldMutation'; -export * from './useUpdateDenormalizedTableFieldMutation'; -export * from './useDeleteDenormalizedTableFieldMutation'; -export * from './useCreateEmailsModuleMutation'; -export * from './useUpdateEmailsModuleMutation'; -export * from './useDeleteEmailsModuleMutation'; -export * from './useCreateConfigSecretsUserModuleMutation'; -export * from './useUpdateConfigSecretsUserModuleMutation'; -export * from './useDeleteConfigSecretsUserModuleMutation'; -export * from './useCreateInvitesModuleMutation'; -export * from './useUpdateInvitesModuleMutation'; -export * from './useDeleteInvitesModuleMutation'; -export * from './useCreateEventsModuleMutation'; -export * from './useUpdateEventsModuleMutation'; -export * from './useDeleteEventsModuleMutation'; -export * from './useCreateLimitsModuleMutation'; -export * from './useUpdateLimitsModuleMutation'; -export * from './useDeleteLimitsModuleMutation'; -export * from './useCreateMembershipTypesModuleMutation'; -export * from './useUpdateMembershipTypesModuleMutation'; -export * from './useDeleteMembershipTypesModuleMutation'; -export * from './useCreateMembershipsModuleMutation'; -export * from './useUpdateMembershipsModuleMutation'; -export * from './useDeleteMembershipsModuleMutation'; -export * from './useCreatePermissionsModuleMutation'; -export * from './useUpdatePermissionsModuleMutation'; -export * from './useDeletePermissionsModuleMutation'; -export * from './useCreatePhoneNumbersModuleMutation'; -export * from './useUpdatePhoneNumbersModuleMutation'; -export * from './useDeletePhoneNumbersModuleMutation'; -export * from './useCreateProfilesModuleMutation'; -export * from './useUpdateProfilesModuleMutation'; -export * from './useDeleteProfilesModuleMutation'; -export * from './useCreateUserStateModuleMutation'; -export * from './useUpdateUserStateModuleMutation'; -export * from './useDeleteUserStateModuleMutation'; -export * from './useCreateSessionsModuleMutation'; -export * from './useUpdateSessionsModuleMutation'; -export * from './useDeleteSessionsModuleMutation'; -export * from './useCreateUserAuthModuleMutation'; -export * from './useUpdateUserAuthModuleMutation'; -export * from './useDeleteUserAuthModuleMutation'; -export * from './useCreateUsersModuleMutation'; -export * from './useUpdateUsersModuleMutation'; -export * from './useDeleteUsersModuleMutation'; -export * from './useCreateBlueprintMutation'; -export * from './useUpdateBlueprintMutation'; -export * from './useDeleteBlueprintMutation'; -export * from './useCreateBlueprintTemplateMutation'; -export * from './useUpdateBlueprintTemplateMutation'; -export * from './useDeleteBlueprintTemplateMutation'; -export * from './useCreateBlueprintConstructionMutation'; -export * from './useUpdateBlueprintConstructionMutation'; -export * from './useDeleteBlueprintConstructionMutation'; -export * from './useCreateStorageModuleMutation'; -export * from './useUpdateStorageModuleMutation'; -export * from './useDeleteStorageModuleMutation'; -export * from './useCreateEntityTypeProvisionMutation'; -export * from './useUpdateEntityTypeProvisionMutation'; -export * from './useDeleteEntityTypeProvisionMutation'; -export * from './useCreateWebauthnCredentialsModuleMutation'; -export * from './useUpdateWebauthnCredentialsModuleMutation'; -export * from './useDeleteWebauthnCredentialsModuleMutation'; -export * from './useCreateWebauthnAuthModuleMutation'; -export * from './useUpdateWebauthnAuthModuleMutation'; -export * from './useDeleteWebauthnAuthModuleMutation'; -export * from './useCreateNotificationsModuleMutation'; -export * from './useUpdateNotificationsModuleMutation'; -export * from './useDeleteNotificationsModuleMutation'; -export * from './useCreateInferenceLogModuleMutation'; -export * from './useUpdateInferenceLogModuleMutation'; -export * from './useDeleteInferenceLogModuleMutation'; -export * from './useCreateComputeLogModuleMutation'; -export * from './useUpdateComputeLogModuleMutation'; -export * from './useDeleteComputeLogModuleMutation'; -export * from './useCreateTransferLogModuleMutation'; -export * from './useUpdateTransferLogModuleMutation'; -export * from './useDeleteTransferLogModuleMutation'; -export * from './useCreateStorageLogModuleMutation'; -export * from './useUpdateStorageLogModuleMutation'; -export * from './useDeleteStorageLogModuleMutation'; -export * from './useCreateDbUsageModuleMutation'; -export * from './useUpdateDbUsageModuleMutation'; -export * from './useDeleteDbUsageModuleMutation'; -export * from './useCreateAgentModuleMutation'; -export * from './useUpdateAgentModuleMutation'; -export * from './useDeleteAgentModuleMutation'; -export * from './useCreateNamespaceModuleMutation'; -export * from './useUpdateNamespaceModuleMutation'; -export * from './useDeleteNamespaceModuleMutation'; -export * from './useCreateFunctionModuleMutation'; -export * from './useUpdateFunctionModuleMutation'; -export * from './useDeleteFunctionModuleMutation'; -export * from './useCreateDatabaseProvisionModuleMutation'; -export * from './useUpdateDatabaseProvisionModuleMutation'; -export * from './useDeleteDatabaseProvisionModuleMutation'; -export * from './useCreateAppAdminGrantMutation'; -export * from './useUpdateAppAdminGrantMutation'; -export * from './useDeleteAppAdminGrantMutation'; -export * from './useCreateAppOwnerGrantMutation'; -export * from './useUpdateAppOwnerGrantMutation'; -export * from './useDeleteAppOwnerGrantMutation'; -export * from './useCreateAppGrantMutation'; -export * from './useUpdateAppGrantMutation'; -export * from './useDeleteAppGrantMutation'; -export * from './useCreateOrgMembershipMutation'; -export * from './useUpdateOrgMembershipMutation'; -export * from './useDeleteOrgMembershipMutation'; -export * from './useCreateOrgMemberMutation'; -export * from './useUpdateOrgMemberMutation'; -export * from './useDeleteOrgMemberMutation'; -export * from './useCreateOrgAdminGrantMutation'; -export * from './useUpdateOrgAdminGrantMutation'; -export * from './useDeleteOrgAdminGrantMutation'; -export * from './useCreateOrgOwnerGrantMutation'; -export * from './useUpdateOrgOwnerGrantMutation'; -export * from './useDeleteOrgOwnerGrantMutation'; -export * from './useCreateOrgMemberProfileMutation'; -export * from './useUpdateOrgMemberProfileMutation'; -export * from './useDeleteOrgMemberProfileMutation'; -export * from './useCreateOrgGrantMutation'; -export * from './useUpdateOrgGrantMutation'; -export * from './useDeleteOrgGrantMutation'; -export * from './useCreateOrgChartEdgeMutation'; -export * from './useUpdateOrgChartEdgeMutation'; -export * from './useDeleteOrgChartEdgeMutation'; -export * from './useCreateOrgChartEdgeGrantMutation'; -export * from './useUpdateOrgChartEdgeGrantMutation'; -export * from './useDeleteOrgChartEdgeGrantMutation'; -export * from './useCreateOrgPermissionDefaultMutation'; -export * from './useUpdateOrgPermissionDefaultMutation'; -export * from './useDeleteOrgPermissionDefaultMutation'; -export * from './useCreateAppLimitMutation'; -export * from './useUpdateAppLimitMutation'; -export * from './useDeleteAppLimitMutation'; -export * from './useCreateAppLimitCreditMutation'; -export * from './useUpdateAppLimitCreditMutation'; -export * from './useDeleteAppLimitCreditMutation'; -export * from './useCreateAppLimitCreditCodeItemMutation'; -export * from './useUpdateAppLimitCreditCodeItemMutation'; -export * from './useDeleteAppLimitCreditCodeItemMutation'; -export * from './useCreateAppLimitCreditRedemptionMutation'; -export * from './useUpdateAppLimitCreditRedemptionMutation'; -export * from './useDeleteAppLimitCreditRedemptionMutation'; -export * from './useCreateOrgLimitMutation'; -export * from './useUpdateOrgLimitMutation'; -export * from './useDeleteOrgLimitMutation'; -export * from './useCreateOrgLimitCreditMutation'; -export * from './useUpdateOrgLimitCreditMutation'; -export * from './useDeleteOrgLimitCreditMutation'; -export * from './useCreateOrgLimitAggregateMutation'; -export * from './useUpdateOrgLimitAggregateMutation'; -export * from './useDeleteOrgLimitAggregateMutation'; -export * from './useCreateOrgLimitWarningMutation'; -export * from './useUpdateOrgLimitWarningMutation'; -export * from './useDeleteOrgLimitWarningMutation'; -export * from './useCreateEmailMutation'; -export * from './useUpdateEmailMutation'; -export * from './useDeleteEmailMutation'; -export * from './useCreatePhoneNumberMutation'; -export * from './useUpdatePhoneNumberMutation'; -export * from './useDeletePhoneNumberMutation'; -export * from './useCreateCryptoAddressMutation'; -export * from './useUpdateCryptoAddressMutation'; -export * from './useDeleteCryptoAddressMutation'; -export * from './useCreateWebauthnCredentialMutation'; -export * from './useUpdateWebauthnCredentialMutation'; -export * from './useDeleteWebauthnCredentialMutation'; -export * from './useCreateAppInviteMutation'; -export * from './useUpdateAppInviteMutation'; -export * from './useDeleteAppInviteMutation'; -export * from './useCreateAppClaimedInviteMutation'; -export * from './useUpdateAppClaimedInviteMutation'; -export * from './useDeleteAppClaimedInviteMutation'; -export * from './useCreateOrgInviteMutation'; -export * from './useUpdateOrgInviteMutation'; -export * from './useDeleteOrgInviteMutation'; -export * from './useCreateOrgClaimedInviteMutation'; -export * from './useUpdateOrgClaimedInviteMutation'; -export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateAuditLogAuthMutation'; -export * from './useUpdateAuditLogAuthMutation'; -export * from './useDeleteAuditLogAuthMutation'; -export * from './useCreateIdentityProviderMutation'; -export * from './useCreateAppPermissionDefaultMutation'; -export * from './useUpdateAppPermissionDefaultMutation'; -export * from './useDeleteAppPermissionDefaultMutation'; -export * from './useCreateRoleTypeMutation'; -export * from './useUpdateRoleTypeMutation'; -export * from './useDeleteRoleTypeMutation'; -export * from './useCreateMigrateFileMutation'; -export * from './useCreateDevicesModuleMutation'; -export * from './useUpdateDevicesModuleMutation'; -export * from './useDeleteDevicesModuleMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; -export * from './useCreateOrgMembershipDefaultMutation'; -export * from './useUpdateOrgMembershipDefaultMutation'; -export * from './useDeleteOrgMembershipDefaultMutation'; -export * from './useCreateNodeTypeRegistryMutation'; -export * from './useUpdateNodeTypeRegistryMutation'; -export * from './useDeleteNodeTypeRegistryMutation'; -export * from './useCreateAppLimitCapsDefaultMutation'; -export * from './useUpdateAppLimitCapsDefaultMutation'; -export * from './useDeleteAppLimitCapsDefaultMutation'; -export * from './useCreateOrgLimitCapsDefaultMutation'; -export * from './useUpdateOrgLimitCapsDefaultMutation'; -export * from './useDeleteOrgLimitCapsDefaultMutation'; -export * from './useCreateAppLimitCapMutation'; -export * from './useUpdateAppLimitCapMutation'; -export * from './useDeleteAppLimitCapMutation'; -export * from './useCreateOrgLimitCapMutation'; -export * from './useUpdateOrgLimitCapMutation'; -export * from './useDeleteOrgLimitCapMutation'; -export * from './useCreateUserConnectedAccountMutation'; -export * from './useCreateAppLimitDefaultMutation'; -export * from './useUpdateAppLimitDefaultMutation'; -export * from './useDeleteAppLimitDefaultMutation'; -export * from './useCreateOrgLimitDefaultMutation'; -export * from './useUpdateOrgLimitDefaultMutation'; -export * from './useDeleteOrgLimitDefaultMutation'; -export * from './useCreateAppLimitCreditCodeMutation'; -export * from './useUpdateAppLimitCreditCodeMutation'; -export * from './useDeleteAppLimitCreditCodeMutation'; -export * from './useCreateAppLimitWarningMutation'; -export * from './useUpdateAppLimitWarningMutation'; -export * from './useDeleteAppLimitWarningMutation'; -export * from './useCreatePubkeySettingMutation'; -export * from './useUpdatePubkeySettingMutation'; -export * from './useDeletePubkeySettingMutation'; -export * from './useCreateRateLimitsModuleMutation'; -export * from './useUpdateRateLimitsModuleMutation'; -export * from './useDeleteRateLimitsModuleMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; -export * from './useCreateRlsSettingMutation'; -export * from './useUpdateRlsSettingMutation'; -export * from './useDeleteRlsSettingMutation'; -export * from './useCreateRlsModuleMutation'; -export * from './useUpdateRlsModuleMutation'; -export * from './useDeleteRlsModuleMutation'; -export * from './useCreateRateLimitMetersModuleMutation'; -export * from './useUpdateRateLimitMetersModuleMutation'; -export * from './useDeleteRateLimitMetersModuleMutation'; -export * from './useCreatePlansModuleMutation'; -export * from './useUpdatePlansModuleMutation'; -export * from './useDeletePlansModuleMutation'; -export * from './useCreateSqlActionMutation'; -export * from './useCreateDatabaseSettingMutation'; -export * from './useUpdateDatabaseSettingMutation'; -export * from './useDeleteDatabaseSettingMutation'; -export * from './useCreateOrgMembershipSettingMutation'; -export * from './useUpdateOrgMembershipSettingMutation'; -export * from './useDeleteOrgMembershipSettingMutation'; -export * from './useCreateAppLimitEventMutation'; -export * from './useUpdateAppLimitEventMutation'; -export * from './useDeleteAppLimitEventMutation'; -export * from './useCreateOrgLimitEventMutation'; -export * from './useUpdateOrgLimitEventMutation'; -export * from './useDeleteOrgLimitEventMutation'; -export * from './useCreateAppMembershipMutation'; -export * from './useUpdateAppMembershipMutation'; -export * from './useDeleteAppMembershipMutation'; -export * from './useCreateUserMutation'; -export * from './useUpdateUserMutation'; -export * from './useDeleteUserMutation'; -export * from './useCreateAstMigrationMutation'; -export * from './useCreateWebauthnSettingMutation'; -export * from './useUpdateWebauthnSettingMutation'; -export * from './useDeleteWebauthnSettingMutation'; -export * from './useCreateBillingModuleMutation'; -export * from './useUpdateBillingModuleMutation'; -export * from './useDeleteBillingModuleMutation'; -export * from './useCreateBillingProviderModuleMutation'; -export * from './useUpdateBillingProviderModuleMutation'; -export * from './useDeleteBillingProviderModuleMutation'; -export * from './useCreateHierarchyModuleMutation'; -export * from './useUpdateHierarchyModuleMutation'; -export * from './useDeleteHierarchyModuleMutation'; -export * from './useSendAccountDeletionEmailMutation'; -export * from './useSignOutMutation'; -export * from './useAcceptDatabaseTransferMutation'; -export * from './useCancelDatabaseTransferMutation'; -export * from './useRejectDatabaseTransferMutation'; -export * from './useDisconnectAccountMutation'; -export * from './useRevokeApiKeyMutation'; -export * from './useRevokeSessionMutation'; -export * from './useVerifyPasswordMutation'; -export * from './useVerifyTotpMutation'; -export * from './useSubmitAppInviteCodeMutation'; -export * from './useSubmitOrgInviteCodeMutation'; -export * from './useCheckPasswordMutation'; -export * from './useConfirmDeleteAccountMutation'; -export * from './useSetPasswordMutation'; -export * from './useVerifyEmailMutation'; -export * from './useConstructBlueprintMutation'; -export * from './useProvisionNewUserMutation'; -export * from './useResetPasswordMutation'; -export * from './useProvisionCheckConstraintMutation'; -export * from './useProvisionUniqueConstraintMutation'; -export * from './useProvisionFullTextSearchMutation'; -export * from './useProvisionIndexMutation'; -export * from './useCopyTemplateToBlueprintMutation'; -export * from './useProvisionSpatialRelationMutation'; -export * from './useSignInCrossOriginMutation'; -export * from './useBootstrapUserMutation'; -export * from './useSignUpMutation'; -export * from './useSignInMutation'; -export * from './useProvisionRelationMutation'; -export * from './useSetFieldOrderMutation'; -export * from './useApplyRlsMutation'; -export * from './useProvisionDatabaseWithUserMutation'; -export * from './useCreateUserDatabaseMutation'; -export * from './useExtendTokenExpiresMutation'; -export * from './useCreateApiKeyMutation'; -export * from './useRequestCrossOriginTokenMutation'; -export * from './useProvisionTableMutation'; -export * from './useSendVerificationEmailMutation'; -export * from './useForgotPasswordMutation'; -export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCheckPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCheckPasswordMutation.ts deleted file mode 100644 index 36b79e2fed..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCheckPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for checkPassword - * @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 { CheckPasswordVariables } from '../../orm/mutation'; -import type { CheckPasswordPayloadSelect, CheckPasswordPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { CheckPasswordVariables } from '../../orm/mutation'; -export type { CheckPasswordPayloadSelect } from '../../orm/input-types'; -export function useCheckPasswordMutation( - params: { - selection: { - fields: S & CheckPasswordPayloadSelect; - } & HookStrictSelect, CheckPasswordPayloadSelect>; - } & Omit< - UseMutationOptions< - { - checkPassword: InferSelectResult | null; - }, - Error, - CheckPasswordVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - checkPassword: InferSelectResult | null; - }, - Error, - CheckPasswordVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.checkPassword(), - mutationFn: (variables: CheckPasswordVariables) => - getClient() - .mutation.checkPassword(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts deleted file mode 100644 index 2a430d07ac..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for confirmDeleteAccount - * @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 { ConfirmDeleteAccountVariables } from '../../orm/mutation'; -import type { - ConfirmDeleteAccountPayloadSelect, - ConfirmDeleteAccountPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ConfirmDeleteAccountVariables } from '../../orm/mutation'; -export type { ConfirmDeleteAccountPayloadSelect } from '../../orm/input-types'; -export function useConfirmDeleteAccountMutation( - params: { - selection: { - fields: S & ConfirmDeleteAccountPayloadSelect; - } & HookStrictSelect, ConfirmDeleteAccountPayloadSelect>; - } & Omit< - UseMutationOptions< - { - confirmDeleteAccount: InferSelectResult | null; - }, - Error, - ConfirmDeleteAccountVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - confirmDeleteAccount: InferSelectResult | null; - }, - Error, - ConfirmDeleteAccountVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.confirmDeleteAccount(), - mutationFn: (variables: ConfirmDeleteAccountVariables) => - getClient() - .mutation.confirmDeleteAccount(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiKeyMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiKeyMutation.ts deleted file mode 100644 index bd74ac134f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiKeyMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for createApiKey - * @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 { CreateApiKeyVariables } from '../../orm/mutation'; -import type { CreateApiKeyPayloadSelect, CreateApiKeyPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { CreateApiKeyVariables } from '../../orm/mutation'; -export type { CreateApiKeyPayloadSelect } from '../../orm/input-types'; -export function useCreateApiKeyMutation( - params: { - selection: { - fields: S & CreateApiKeyPayloadSelect; - } & HookStrictSelect, CreateApiKeyPayloadSelect>; - } & Omit< - UseMutationOptions< - { - createApiKey: InferSelectResult | null; - }, - Error, - CreateApiKeyVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - createApiKey: InferSelectResult | null; - }, - Error, - CreateApiKeyVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.createApiKey(), - mutationFn: (variables: CreateApiKeyVariables) => - getClient() - .mutation.createApiKey(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts deleted file mode 100644 index 3c9af35db9..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appAdminGrantKeys } from '../query-keys'; -import { appAdminGrantMutationKeys } from '../mutation-keys'; -import type { - AppAdminGrantSelect, - AppAdminGrantWithRelations, - CreateAppAdminGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppAdminGrantSelect, - AppAdminGrantWithRelations, - CreateAppAdminGrantInput, -} from '../../orm/input-types'; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppAdminGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppAdminGrantMutation( - params: { - selection: { - fields: S & AppAdminGrantSelect; - } & HookStrictSelect, AppAdminGrantSelect>; - } & Omit< - UseMutationOptions< - { - createAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }, - Error, - CreateAppAdminGrantInput['appAdminGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }, - Error, - CreateAppAdminGrantInput['appAdminGrant'] ->; -export function useCreateAppAdminGrantMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appAdminGrantMutationKeys.create(), - mutationFn: (data: CreateAppAdminGrantInput['appAdminGrant']) => - getClient() - .appAdminGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppClaimedInviteMutation.ts deleted file mode 100644 index 07d7274462..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppClaimedInviteMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appClaimedInviteKeys } from '../query-keys'; -import { appClaimedInviteMutationKeys } from '../mutation-keys'; -import type { - AppClaimedInviteSelect, - AppClaimedInviteWithRelations, - CreateAppClaimedInviteInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppClaimedInviteSelect, - AppClaimedInviteWithRelations, - CreateAppClaimedInviteInput, -} from '../../orm/input-types'; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppClaimedInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppClaimedInviteMutation( - params: { - selection: { - fields: S & AppClaimedInviteSelect; - } & HookStrictSelect, AppClaimedInviteSelect>; - } & Omit< - UseMutationOptions< - { - createAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }, - Error, - CreateAppClaimedInviteInput['appClaimedInvite'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }, - Error, - CreateAppClaimedInviteInput['appClaimedInvite'] ->; -export function useCreateAppClaimedInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appClaimedInviteMutationKeys.create(), - mutationFn: (data: CreateAppClaimedInviteInput['appClaimedInvite']) => - getClient() - .appClaimedInvite.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts deleted file mode 100644 index c3ae518e14..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appGrantKeys } from '../query-keys'; -import { appGrantMutationKeys } from '../mutation-keys'; -import type { - AppGrantSelect, - AppGrantWithRelations, - CreateAppGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppGrantSelect, - AppGrantWithRelations, - CreateAppGrantInput, -} from '../../orm/input-types'; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppGrantMutation( - params: { - selection: { - fields: S & AppGrantSelect; - } & HookStrictSelect, AppGrantSelect>; - } & Omit< - UseMutationOptions< - { - createAppGrant: { - appGrant: InferSelectResult; - }; - }, - Error, - CreateAppGrantInput['appGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppGrant: { - appGrant: InferSelectResult; - }; - }, - Error, - CreateAppGrantInput['appGrant'] ->; -export function useCreateAppGrantMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appGrantMutationKeys.create(), - mutationFn: (data: CreateAppGrantInput['appGrant']) => - getClient() - .appGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppInviteMutation.ts deleted file mode 100644 index 7feb9317d0..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppInviteMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appInviteKeys } from '../query-keys'; -import { appInviteMutationKeys } from '../mutation-keys'; -import type { - AppInviteSelect, - AppInviteWithRelations, - CreateAppInviteInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppInviteSelect, - AppInviteWithRelations, - CreateAppInviteInput, -} from '../../orm/input-types'; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppInviteMutation( - params: { - selection: { - fields: S & AppInviteSelect; - } & HookStrictSelect, AppInviteSelect>; - } & Omit< - UseMutationOptions< - { - createAppInvite: { - appInvite: InferSelectResult; - }; - }, - Error, - CreateAppInviteInput['appInvite'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppInvite: { - appInvite: InferSelectResult; - }; - }, - Error, - CreateAppInviteInput['appInvite'] ->; -export function useCreateAppInviteMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appInviteMutationKeys.create(), - mutationFn: (data: CreateAppInviteInput['appInvite']) => - getClient() - .appInvite.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCapMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCapMutation.ts deleted file mode 100644 index 057ed1bda8..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCapMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapKeys } from '../query-keys'; -import { appLimitCapMutationKeys } from '../mutation-keys'; -import type { - AppLimitCapSelect, - AppLimitCapWithRelations, - CreateAppLimitCapInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCapSelect, - AppLimitCapWithRelations, - CreateAppLimitCapInput, -} from '../../orm/input-types'; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitCapMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitCapMutation( - params: { - selection: { - fields: S & AppLimitCapSelect; - } & HookStrictSelect, AppLimitCapSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }, - Error, - CreateAppLimitCapInput['appLimitCap'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }, - Error, - CreateAppLimitCapInput['appLimitCap'] ->; -export function useCreateAppLimitCapMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCapMutationKeys.create(), - mutationFn: (data: CreateAppLimitCapInput['appLimitCap']) => - getClient() - .appLimitCap.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCapsDefaultMutation.ts deleted file mode 100644 index deb3d56ba4..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCapsDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapsDefaultKeys } from '../query-keys'; -import { appLimitCapsDefaultMutationKeys } from '../mutation-keys'; -import type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, - CreateAppLimitCapsDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, - CreateAppLimitCapsDefaultInput, -} from '../../orm/input-types'; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitCapsDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitCapsDefaultMutation( - params: { - selection: { - fields: S & AppLimitCapsDefaultSelect; - } & HookStrictSelect, AppLimitCapsDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }, - Error, - CreateAppLimitCapsDefaultInput['appLimitCapsDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }, - Error, - CreateAppLimitCapsDefaultInput['appLimitCapsDefault'] ->; -export function useCreateAppLimitCapsDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCapsDefaultMutationKeys.create(), - mutationFn: (data: CreateAppLimitCapsDefaultInput['appLimitCapsDefault']) => - getClient() - .appLimitCapsDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditCodeItemMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditCodeItemMutation.ts deleted file mode 100644 index 5babc7b229..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditCodeItemMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Items within a credit code — each row grants credits for a specific limit definition - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeItemKeys } from '../query-keys'; -import { appLimitCreditCodeItemMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, - CreateAppLimitCreditCodeItemInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, - CreateAppLimitCreditCodeItemInput, -} from '../../orm/input-types'; -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitCreditCodeItemMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitCreditCodeItemMutation( - params: { - selection: { - fields: S & AppLimitCreditCodeItemSelect; - } & HookStrictSelect, AppLimitCreditCodeItemSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditCodeItemInput['appLimitCreditCodeItem'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditCodeItemInput['appLimitCreditCodeItem'] ->; -export function useCreateAppLimitCreditCodeItemMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditCodeItemMutationKeys.create(), - mutationFn: (data: CreateAppLimitCreditCodeItemInput['appLimitCreditCodeItem']) => - getClient() - .appLimitCreditCodeItem.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts deleted file mode 100644 index 0fd950f9a0..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Redeemable credit codes managed by admins with the add_credits permission - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeKeys } from '../query-keys'; -import { appLimitCreditCodeMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, - CreateAppLimitCreditCodeInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, - CreateAppLimitCreditCodeInput, -} from '../../orm/input-types'; -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitCreditCodeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitCreditCodeMutation( - params: { - selection: { - fields: S & AppLimitCreditCodeSelect; - } & HookStrictSelect, AppLimitCreditCodeSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditCodeInput['appLimitCreditCode'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditCodeInput['appLimitCreditCode'] ->; -export function useCreateAppLimitCreditCodeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditCodeMutationKeys.create(), - mutationFn: (data: CreateAppLimitCreditCodeInput['appLimitCreditCode']) => - getClient() - .appLimitCreditCode.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditMutation.ts deleted file mode 100644 index 0b731bf137..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditKeys } from '../query-keys'; -import { appLimitCreditMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditSelect, - AppLimitCreditWithRelations, - CreateAppLimitCreditInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditSelect, - AppLimitCreditWithRelations, - CreateAppLimitCreditInput, -} from '../../orm/input-types'; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitCreditMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitCreditMutation( - params: { - selection: { - fields: S & AppLimitCreditSelect; - } & HookStrictSelect, AppLimitCreditSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditInput['appLimitCredit'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditInput['appLimitCredit'] ->; -export function useCreateAppLimitCreditMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditMutationKeys.create(), - mutationFn: (data: CreateAppLimitCreditInput['appLimitCredit']) => - getClient() - .appLimitCredit.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditRedemptionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditRedemptionMutation.ts deleted file mode 100644 index b745e34f44..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitCreditRedemptionMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditRedemptionKeys } from '../query-keys'; -import { appLimitCreditRedemptionMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, - CreateAppLimitCreditRedemptionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, - CreateAppLimitCreditRedemptionInput, -} from '../../orm/input-types'; -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitCreditRedemptionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitCreditRedemptionMutation( - params: { - selection: { - fields: S & AppLimitCreditRedemptionSelect; - } & HookStrictSelect, AppLimitCreditRedemptionSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditRedemptionInput['appLimitCreditRedemption'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }, - Error, - CreateAppLimitCreditRedemptionInput['appLimitCreditRedemption'] ->; -export function useCreateAppLimitCreditRedemptionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditRedemptionMutationKeys.create(), - mutationFn: (data: CreateAppLimitCreditRedemptionInput['appLimitCreditRedemption']) => - getClient() - .appLimitCreditRedemption.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts deleted file mode 100644 index 5e39d5c933..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitDefaultKeys } from '../query-keys'; -import { appLimitDefaultMutationKeys } from '../mutation-keys'; -import type { - AppLimitDefaultSelect, - AppLimitDefaultWithRelations, - CreateAppLimitDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitDefaultSelect, - AppLimitDefaultWithRelations, - CreateAppLimitDefaultInput, -} from '../../orm/input-types'; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitDefaultMutation( - params: { - selection: { - fields: S & AppLimitDefaultSelect; - } & HookStrictSelect, AppLimitDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }, - Error, - CreateAppLimitDefaultInput['appLimitDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }, - Error, - CreateAppLimitDefaultInput['appLimitDefault'] ->; -export function useCreateAppLimitDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitDefaultMutationKeys.create(), - mutationFn: (data: CreateAppLimitDefaultInput['appLimitDefault']) => - getClient() - .appLimitDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitEventMutation.ts deleted file mode 100644 index b34aef46fa..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitEventMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitEventKeys } from '../query-keys'; -import { appLimitEventMutationKeys } from '../mutation-keys'; -import type { - AppLimitEventSelect, - AppLimitEventWithRelations, - CreateAppLimitEventInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitEventSelect, - AppLimitEventWithRelations, - CreateAppLimitEventInput, -} from '../../orm/input-types'; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitEventMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitEventMutation( - params: { - selection: { - fields: S & AppLimitEventSelect; - } & HookStrictSelect, AppLimitEventSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }, - Error, - CreateAppLimitEventInput['appLimitEvent'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }, - Error, - CreateAppLimitEventInput['appLimitEvent'] ->; -export function useCreateAppLimitEventMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitEventMutationKeys.create(), - mutationFn: (data: CreateAppLimitEventInput['appLimitEvent']) => - getClient() - .appLimitEvent.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts deleted file mode 100644 index 4831101f29..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitKeys } from '../query-keys'; -import { appLimitMutationKeys } from '../mutation-keys'; -import type { - AppLimitSelect, - AppLimitWithRelations, - CreateAppLimitInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitSelect, - AppLimitWithRelations, - CreateAppLimitInput, -} from '../../orm/input-types'; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitMutation( - params: { - selection: { - fields: S & AppLimitSelect; - } & HookStrictSelect, AppLimitSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimit: { - appLimit: InferSelectResult; - }; - }, - Error, - CreateAppLimitInput['appLimit'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimit: { - appLimit: InferSelectResult; - }; - }, - Error, - CreateAppLimitInput['appLimit'] ->; -export function useCreateAppLimitMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitMutationKeys.create(), - mutationFn: (data: CreateAppLimitInput['appLimit']) => - getClient() - .appLimit.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitWarningMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitWarningMutation.ts deleted file mode 100644 index 69d99a63f7..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitWarningMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitWarningKeys } from '../query-keys'; -import { appLimitWarningMutationKeys } from '../mutation-keys'; -import type { - AppLimitWarningSelect, - AppLimitWarningWithRelations, - CreateAppLimitWarningInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitWarningSelect, - AppLimitWarningWithRelations, - CreateAppLimitWarningInput, -} from '../../orm/input-types'; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppLimitWarningMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppLimitWarningMutation( - params: { - selection: { - fields: S & AppLimitWarningSelect; - } & HookStrictSelect, AppLimitWarningSelect>; - } & Omit< - UseMutationOptions< - { - createAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }, - Error, - CreateAppLimitWarningInput['appLimitWarning'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }, - Error, - CreateAppLimitWarningInput['appLimitWarning'] ->; -export function useCreateAppLimitWarningMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitWarningMutationKeys.create(), - mutationFn: (data: CreateAppLimitWarningInput['appLimitWarning']) => - getClient() - .appLimitWarning.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts deleted file mode 100644 index cc66d20abe..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipDefaultKeys } from '../query-keys'; -import { appMembershipDefaultMutationKeys } from '../mutation-keys'; -import type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, - CreateAppMembershipDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, - CreateAppMembershipDefaultInput, -} from '../../orm/input-types'; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppMembershipDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppMembershipDefaultMutation( - params: { - selection: { - fields: S & AppMembershipDefaultSelect; - } & HookStrictSelect, AppMembershipDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }, - Error, - CreateAppMembershipDefaultInput['appMembershipDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }, - Error, - CreateAppMembershipDefaultInput['appMembershipDefault'] ->; -export function useCreateAppMembershipDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipDefaultMutationKeys.create(), - mutationFn: (data: CreateAppMembershipDefaultInput['appMembershipDefault']) => - getClient() - .appMembershipDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts deleted file mode 100644 index e991ed8fd6..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipKeys } from '../query-keys'; -import { appMembershipMutationKeys } from '../mutation-keys'; -import type { - AppMembershipSelect, - AppMembershipWithRelations, - CreateAppMembershipInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipSelect, - AppMembershipWithRelations, - CreateAppMembershipInput, -} from '../../orm/input-types'; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppMembershipMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppMembershipMutation( - params: { - selection: { - fields: S & AppMembershipSelect; - } & HookStrictSelect, AppMembershipSelect>; - } & Omit< - UseMutationOptions< - { - createAppMembership: { - appMembership: InferSelectResult; - }; - }, - Error, - CreateAppMembershipInput['appMembership'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppMembership: { - appMembership: InferSelectResult; - }; - }, - Error, - CreateAppMembershipInput['appMembership'] ->; -export function useCreateAppMembershipMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipMutationKeys.create(), - mutationFn: (data: CreateAppMembershipInput['appMembership']) => - getClient() - .appMembership.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts deleted file mode 100644 index 3f5a3413d0..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appOwnerGrantKeys } from '../query-keys'; -import { appOwnerGrantMutationKeys } from '../mutation-keys'; -import type { - AppOwnerGrantSelect, - AppOwnerGrantWithRelations, - CreateAppOwnerGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppOwnerGrantSelect, - AppOwnerGrantWithRelations, - CreateAppOwnerGrantInput, -} from '../../orm/input-types'; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppOwnerGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppOwnerGrantMutation( - params: { - selection: { - fields: S & AppOwnerGrantSelect; - } & HookStrictSelect, AppOwnerGrantSelect>; - } & Omit< - UseMutationOptions< - { - createAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }, - Error, - CreateAppOwnerGrantInput['appOwnerGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }, - Error, - CreateAppOwnerGrantInput['appOwnerGrant'] ->; -export function useCreateAppOwnerGrantMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appOwnerGrantMutationKeys.create(), - mutationFn: (data: CreateAppOwnerGrantInput['appOwnerGrant']) => - getClient() - .appOwnerGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts deleted file mode 100644 index 1246a1892d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionDefaultKeys } from '../query-keys'; -import { appPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - CreateAppPermissionDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - CreateAppPermissionDefaultInput, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppPermissionDefaultMutation( - params: { - selection: { - fields: S & AppPermissionDefaultSelect; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateAppPermissionDefaultInput['appPermissionDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateAppPermissionDefaultInput['appPermissionDefault'] ->; -export function useCreateAppPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultMutationKeys.create(), - mutationFn: (data: CreateAppPermissionDefaultInput['appPermissionDefault']) => - getClient() - .appPermissionDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts deleted file mode 100644 index c76e9081ad..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionKeys } from '../query-keys'; -import { appPermissionMutationKeys } from '../mutation-keys'; -import type { - AppPermissionSelect, - AppPermissionWithRelations, - CreateAppPermissionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionSelect, - AppPermissionWithRelations, - CreateAppPermissionInput, -} from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppPermissionMutation( - params: { - selection: { - fields: S & AppPermissionSelect; - } & HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseMutationOptions< - { - createAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - CreateAppPermissionInput['appPermission'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - CreateAppPermissionInput['appPermission'] ->; -export function useCreateAppPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionMutationKeys.create(), - mutationFn: (data: CreateAppPermissionInput['appPermission']) => - getClient() - .appPermission.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogAuthMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogAuthMutation.ts deleted file mode 100644 index c4243ed469..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogAuthMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { auditLogAuthKeys } from '../query-keys'; -import { auditLogAuthMutationKeys } from '../mutation-keys'; -import type { - AuditLogAuthSelect, - AuditLogAuthWithRelations, - CreateAuditLogAuthInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AuditLogAuthSelect, - AuditLogAuthWithRelations, - CreateAuditLogAuthInput, -} from '../../orm/input-types'; -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAuditLogAuthMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAuditLogAuthMutation( - params: { - selection: { - fields: S & AuditLogAuthSelect; - } & HookStrictSelect, AuditLogAuthSelect>; - } & Omit< - UseMutationOptions< - { - createAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }, - Error, - CreateAuditLogAuthInput['auditLogAuth'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }, - Error, - CreateAuditLogAuthInput['auditLogAuth'] ->; -export function useCreateAuditLogAuthMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: auditLogAuthMutationKeys.create(), - mutationFn: (data: CreateAuditLogAuthInput['auditLogAuth']) => - getClient() - .auditLogAuth.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: auditLogAuthKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts deleted file mode 100644 index deda73055f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { cryptoAddressKeys } from '../query-keys'; -import { cryptoAddressMutationKeys } from '../mutation-keys'; -import type { - CryptoAddressSelect, - CryptoAddressWithRelations, - CreateCryptoAddressInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - CryptoAddressSelect, - CryptoAddressWithRelations, - CreateCryptoAddressInput, -} from '../../orm/input-types'; -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateCryptoAddressMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateCryptoAddressMutation( - params: { - selection: { - fields: S & CryptoAddressSelect; - } & HookStrictSelect, CryptoAddressSelect>; - } & Omit< - UseMutationOptions< - { - createCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }, - Error, - CreateCryptoAddressInput['cryptoAddress'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }, - Error, - CreateCryptoAddressInput['cryptoAddress'] ->; -export function useCreateCryptoAddressMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: cryptoAddressMutationKeys.create(), - mutationFn: (data: CreateCryptoAddressInput['cryptoAddress']) => - getClient() - .cryptoAddress.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts deleted file mode 100644 index 3adbfe3b33..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * User email addresses with verification and primary-email management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { emailKeys } from '../query-keys'; -import { emailMutationKeys } from '../mutation-keys'; -import type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; -/** - * User email addresses with verification and primary-email management - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateEmailMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateEmailMutation( - params: { - selection: { - fields: S & EmailSelect; - } & HookStrictSelect, EmailSelect>; - } & Omit< - UseMutationOptions< - { - createEmail: { - email: InferSelectResult; - }; - }, - Error, - CreateEmailInput['email'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createEmail: { - email: InferSelectResult; - }; - }, - Error, - CreateEmailInput['email'] ->; -export function useCreateEmailMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: emailMutationKeys.create(), - mutationFn: (data: CreateEmailInput['email']) => - getClient() - .email.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateIdentityProviderMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateIdentityProviderMutation.ts deleted file mode 100644 index 157d07d899..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateIdentityProviderMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for IdentityProvider - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { identityProviderKeys } from '../query-keys'; -import { identityProviderMutationKeys } from '../mutation-keys'; -import type { - IdentityProviderSelect, - IdentityProviderWithRelations, - CreateIdentityProviderInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - IdentityProviderSelect, - IdentityProviderWithRelations, - CreateIdentityProviderInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a IdentityProvider - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateIdentityProviderMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateIdentityProviderMutation( - params: { - selection: { - fields: S & IdentityProviderSelect; - } & HookStrictSelect, IdentityProviderSelect>; - } & Omit< - UseMutationOptions< - { - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }, - Error, - CreateIdentityProviderInput['identityProvider'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }, - Error, - CreateIdentityProviderInput['identityProvider'] ->; -export function useCreateIdentityProviderMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: identityProviderMutationKeys.create(), - mutationFn: (data: CreateIdentityProviderInput['identityProvider']) => - getClient() - .identityProvider.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: identityProviderKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts deleted file mode 100644 index 91c696e683..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { membershipTypeKeys } from '../query-keys'; -import { membershipTypeMutationKeys } from '../mutation-keys'; -import type { - MembershipTypeSelect, - MembershipTypeWithRelations, - CreateMembershipTypeInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MembershipTypeSelect, - MembershipTypeWithRelations, - CreateMembershipTypeInput, -} from '../../orm/input-types'; -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMembershipTypeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMembershipTypeMutation( - params: { - selection: { - fields: S & MembershipTypeSelect; - } & HookStrictSelect, MembershipTypeSelect>; - } & Omit< - UseMutationOptions< - { - createMembershipType: { - membershipType: InferSelectResult; - }; - }, - Error, - CreateMembershipTypeInput['membershipType'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMembershipType: { - membershipType: InferSelectResult; - }; - }, - Error, - CreateMembershipTypeInput['membershipType'] ->; -export function useCreateMembershipTypeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: membershipTypeMutationKeys.create(), - mutationFn: (data: CreateMembershipTypeInput['membershipType']) => - getClient() - .membershipType.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts deleted file mode 100644 index 1f160dd1d4..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgAdminGrantKeys } from '../query-keys'; -import { orgAdminGrantMutationKeys } from '../mutation-keys'; -import type { - OrgAdminGrantSelect, - OrgAdminGrantWithRelations, - CreateOrgAdminGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgAdminGrantSelect, - OrgAdminGrantWithRelations, - CreateOrgAdminGrantInput, -} from '../../orm/input-types'; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgAdminGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgAdminGrantMutation( - params: { - selection: { - fields: S & OrgAdminGrantSelect; - } & HookStrictSelect, OrgAdminGrantSelect>; - } & Omit< - UseMutationOptions< - { - createOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }, - Error, - CreateOrgAdminGrantInput['orgAdminGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }, - Error, - CreateOrgAdminGrantInput['orgAdminGrant'] ->; -export function useCreateOrgAdminGrantMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgAdminGrantMutationKeys.create(), - mutationFn: (data: CreateOrgAdminGrantInput['orgAdminGrant']) => - getClient() - .orgAdminGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts deleted file mode 100644 index 2b41241033..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeGrantMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeGrantKeys } from '../query-keys'; -import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; -import type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, - CreateOrgChartEdgeGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, - CreateOrgChartEdgeGrantInput, -} from '../../orm/input-types'; -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgChartEdgeGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgChartEdgeGrantMutation( - params: { - selection: { - fields: S & OrgChartEdgeGrantSelect; - } & HookStrictSelect, OrgChartEdgeGrantSelect>; - } & Omit< - UseMutationOptions< - { - createOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }, - Error, - CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }, - Error, - CreateOrgChartEdgeGrantInput['orgChartEdgeGrant'] ->; -export function useCreateOrgChartEdgeGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgChartEdgeGrantMutationKeys.create(), - mutationFn: (data: CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']) => - getClient() - .orgChartEdgeGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgChartEdgeGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts deleted file mode 100644 index e5562dc1fb..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgChartEdgeMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeKeys } from '../query-keys'; -import { orgChartEdgeMutationKeys } from '../mutation-keys'; -import type { - OrgChartEdgeSelect, - OrgChartEdgeWithRelations, - CreateOrgChartEdgeInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgChartEdgeSelect, - OrgChartEdgeWithRelations, - CreateOrgChartEdgeInput, -} from '../../orm/input-types'; -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgChartEdgeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgChartEdgeMutation( - params: { - selection: { - fields: S & OrgChartEdgeSelect; - } & HookStrictSelect, OrgChartEdgeSelect>; - } & Omit< - UseMutationOptions< - { - createOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }, - Error, - CreateOrgChartEdgeInput['orgChartEdge'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }, - Error, - CreateOrgChartEdgeInput['orgChartEdge'] ->; -export function useCreateOrgChartEdgeMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgChartEdgeMutationKeys.create(), - mutationFn: (data: CreateOrgChartEdgeInput['orgChartEdge']) => - getClient() - .orgChartEdge.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts deleted file mode 100644 index f08114d376..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgClaimedInviteKeys } from '../query-keys'; -import { orgClaimedInviteMutationKeys } from '../mutation-keys'; -import type { - OrgClaimedInviteSelect, - OrgClaimedInviteWithRelations, - CreateOrgClaimedInviteInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgClaimedInviteSelect, - OrgClaimedInviteWithRelations, - CreateOrgClaimedInviteInput, -} from '../../orm/input-types'; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgClaimedInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgClaimedInviteMutation( - params: { - selection: { - fields: S & OrgClaimedInviteSelect; - } & HookStrictSelect, OrgClaimedInviteSelect>; - } & Omit< - UseMutationOptions< - { - createOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }, - Error, - CreateOrgClaimedInviteInput['orgClaimedInvite'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }, - Error, - CreateOrgClaimedInviteInput['orgClaimedInvite'] ->; -export function useCreateOrgClaimedInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgClaimedInviteMutationKeys.create(), - mutationFn: (data: CreateOrgClaimedInviteInput['orgClaimedInvite']) => - getClient() - .orgClaimedInvite.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgClaimedInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts deleted file mode 100644 index 949ce41041..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for OrgGetManagersRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGetManagersRecordKeys } from '../query-keys'; -import { orgGetManagersRecordMutationKeys } from '../mutation-keys'; -import type { - OrgGetManagersRecordSelect, - OrgGetManagersRecordWithRelations, - CreateOrgGetManagersRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgGetManagersRecordSelect, - OrgGetManagersRecordWithRelations, - CreateOrgGetManagersRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a OrgGetManagersRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgGetManagersRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgGetManagersRecordMutation( - params: { - selection: { - fields: S & OrgGetManagersRecordSelect; - } & HookStrictSelect, OrgGetManagersRecordSelect>; - } & Omit< - UseMutationOptions< - { - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetManagersRecordInput['orgGetManagersRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetManagersRecordInput['orgGetManagersRecord'] ->; -export function useCreateOrgGetManagersRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgGetManagersRecordMutationKeys.create(), - mutationFn: (data: CreateOrgGetManagersRecordInput['orgGetManagersRecord']) => - getClient() - .orgGetManagersRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgGetManagersRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts deleted file mode 100644 index 237f47a7e3..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for OrgGetSubordinatesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGetSubordinatesRecordKeys } from '../query-keys'; -import { orgGetSubordinatesRecordMutationKeys } from '../mutation-keys'; -import type { - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordWithRelations, - CreateOrgGetSubordinatesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordWithRelations, - CreateOrgGetSubordinatesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a OrgGetSubordinatesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgGetSubordinatesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgGetSubordinatesRecordMutation( - params: { - selection: { - fields: S & OrgGetSubordinatesRecordSelect; - } & HookStrictSelect, OrgGetSubordinatesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }, - Error, - CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord'] ->; -export function useCreateOrgGetSubordinatesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgGetSubordinatesRecordMutationKeys.create(), - mutationFn: (data: CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']) => - getClient() - .orgGetSubordinatesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgGetSubordinatesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts deleted file mode 100644 index 7dc4d3025e..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGrantKeys } from '../query-keys'; -import { orgGrantMutationKeys } from '../mutation-keys'; -import type { - OrgGrantSelect, - OrgGrantWithRelations, - CreateOrgGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgGrantSelect, - OrgGrantWithRelations, - CreateOrgGrantInput, -} from '../../orm/input-types'; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgGrantMutation( - params: { - selection: { - fields: S & OrgGrantSelect; - } & HookStrictSelect, OrgGrantSelect>; - } & Omit< - UseMutationOptions< - { - createOrgGrant: { - orgGrant: InferSelectResult; - }; - }, - Error, - CreateOrgGrantInput['orgGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgGrant: { - orgGrant: InferSelectResult; - }; - }, - Error, - CreateOrgGrantInput['orgGrant'] ->; -export function useCreateOrgGrantMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgGrantMutationKeys.create(), - mutationFn: (data: CreateOrgGrantInput['orgGrant']) => - getClient() - .orgGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts deleted file mode 100644 index a81a94a9dd..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgInviteKeys } from '../query-keys'; -import { orgInviteMutationKeys } from '../mutation-keys'; -import type { - OrgInviteSelect, - OrgInviteWithRelations, - CreateOrgInviteInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgInviteSelect, - OrgInviteWithRelations, - CreateOrgInviteInput, -} from '../../orm/input-types'; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgInviteMutation( - params: { - selection: { - fields: S & OrgInviteSelect; - } & HookStrictSelect, OrgInviteSelect>; - } & Omit< - UseMutationOptions< - { - createOrgInvite: { - orgInvite: InferSelectResult; - }; - }, - Error, - CreateOrgInviteInput['orgInvite'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgInvite: { - orgInvite: InferSelectResult; - }; - }, - Error, - CreateOrgInviteInput['orgInvite'] ->; -export function useCreateOrgInviteMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgInviteMutationKeys.create(), - mutationFn: (data: CreateOrgInviteInput['orgInvite']) => - getClient() - .orgInvite.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitAggregateMutation.ts deleted file mode 100644 index c3f671b70a..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitAggregateMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitAggregateKeys } from '../query-keys'; -import { orgLimitAggregateMutationKeys } from '../mutation-keys'; -import type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, - CreateOrgLimitAggregateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, - CreateOrgLimitAggregateInput, -} from '../../orm/input-types'; -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitAggregateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitAggregateMutation( - params: { - selection: { - fields: S & OrgLimitAggregateSelect; - } & HookStrictSelect, OrgLimitAggregateSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }, - Error, - CreateOrgLimitAggregateInput['orgLimitAggregate'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }, - Error, - CreateOrgLimitAggregateInput['orgLimitAggregate'] ->; -export function useCreateOrgLimitAggregateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitAggregateMutationKeys.create(), - mutationFn: (data: CreateOrgLimitAggregateInput['orgLimitAggregate']) => - getClient() - .orgLimitAggregate.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCapMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCapMutation.ts deleted file mode 100644 index b9379cd911..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCapMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapKeys } from '../query-keys'; -import { orgLimitCapMutationKeys } from '../mutation-keys'; -import type { - OrgLimitCapSelect, - OrgLimitCapWithRelations, - CreateOrgLimitCapInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCapSelect, - OrgLimitCapWithRelations, - CreateOrgLimitCapInput, -} from '../../orm/input-types'; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitCapMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitCapMutation( - params: { - selection: { - fields: S & OrgLimitCapSelect; - } & HookStrictSelect, OrgLimitCapSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }, - Error, - CreateOrgLimitCapInput['orgLimitCap'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }, - Error, - CreateOrgLimitCapInput['orgLimitCap'] ->; -export function useCreateOrgLimitCapMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCapMutationKeys.create(), - mutationFn: (data: CreateOrgLimitCapInput['orgLimitCap']) => - getClient() - .orgLimitCap.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCapsDefaultMutation.ts deleted file mode 100644 index 02eadbe20f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCapsDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapsDefaultKeys } from '../query-keys'; -import { orgLimitCapsDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, - CreateOrgLimitCapsDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, - CreateOrgLimitCapsDefaultInput, -} from '../../orm/input-types'; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitCapsDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitCapsDefaultMutation( - params: { - selection: { - fields: S & OrgLimitCapsDefaultSelect; - } & HookStrictSelect, OrgLimitCapsDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }, - Error, - CreateOrgLimitCapsDefaultInput['orgLimitCapsDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }, - Error, - CreateOrgLimitCapsDefaultInput['orgLimitCapsDefault'] ->; -export function useCreateOrgLimitCapsDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCapsDefaultMutationKeys.create(), - mutationFn: (data: CreateOrgLimitCapsDefaultInput['orgLimitCapsDefault']) => - getClient() - .orgLimitCapsDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCreditMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCreditMutation.ts deleted file mode 100644 index fc986c1249..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitCreditMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCreditKeys } from '../query-keys'; -import { orgLimitCreditMutationKeys } from '../mutation-keys'; -import type { - OrgLimitCreditSelect, - OrgLimitCreditWithRelations, - CreateOrgLimitCreditInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCreditSelect, - OrgLimitCreditWithRelations, - CreateOrgLimitCreditInput, -} from '../../orm/input-types'; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitCreditMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitCreditMutation( - params: { - selection: { - fields: S & OrgLimitCreditSelect; - } & HookStrictSelect, OrgLimitCreditSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }, - Error, - CreateOrgLimitCreditInput['orgLimitCredit'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }, - Error, - CreateOrgLimitCreditInput['orgLimitCredit'] ->; -export function useCreateOrgLimitCreditMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCreditMutationKeys.create(), - mutationFn: (data: CreateOrgLimitCreditInput['orgLimitCredit']) => - getClient() - .orgLimitCredit.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts deleted file mode 100644 index 42e50f62dd..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitDefaultKeys } from '../query-keys'; -import { orgLimitDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgLimitDefaultSelect, - OrgLimitDefaultWithRelations, - CreateOrgLimitDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitDefaultSelect, - OrgLimitDefaultWithRelations, - CreateOrgLimitDefaultInput, -} from '../../orm/input-types'; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitDefaultMutation( - params: { - selection: { - fields: S & OrgLimitDefaultSelect; - } & HookStrictSelect, OrgLimitDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }, - Error, - CreateOrgLimitDefaultInput['orgLimitDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }, - Error, - CreateOrgLimitDefaultInput['orgLimitDefault'] ->; -export function useCreateOrgLimitDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitDefaultMutationKeys.create(), - mutationFn: (data: CreateOrgLimitDefaultInput['orgLimitDefault']) => - getClient() - .orgLimitDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitEventMutation.ts deleted file mode 100644 index 48f74d4a9e..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitEventMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitEventKeys } from '../query-keys'; -import { orgLimitEventMutationKeys } from '../mutation-keys'; -import type { - OrgLimitEventSelect, - OrgLimitEventWithRelations, - CreateOrgLimitEventInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitEventSelect, - OrgLimitEventWithRelations, - CreateOrgLimitEventInput, -} from '../../orm/input-types'; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitEventMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitEventMutation( - params: { - selection: { - fields: S & OrgLimitEventSelect; - } & HookStrictSelect, OrgLimitEventSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }, - Error, - CreateOrgLimitEventInput['orgLimitEvent'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }, - Error, - CreateOrgLimitEventInput['orgLimitEvent'] ->; -export function useCreateOrgLimitEventMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitEventMutationKeys.create(), - mutationFn: (data: CreateOrgLimitEventInput['orgLimitEvent']) => - getClient() - .orgLimitEvent.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts deleted file mode 100644 index d284edca95..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitKeys } from '../query-keys'; -import { orgLimitMutationKeys } from '../mutation-keys'; -import type { - OrgLimitSelect, - OrgLimitWithRelations, - CreateOrgLimitInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitSelect, - OrgLimitWithRelations, - CreateOrgLimitInput, -} from '../../orm/input-types'; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitMutation( - params: { - selection: { - fields: S & OrgLimitSelect; - } & HookStrictSelect, OrgLimitSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimit: { - orgLimit: InferSelectResult; - }; - }, - Error, - CreateOrgLimitInput['orgLimit'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimit: { - orgLimit: InferSelectResult; - }; - }, - Error, - CreateOrgLimitInput['orgLimit'] ->; -export function useCreateOrgLimitMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitMutationKeys.create(), - mutationFn: (data: CreateOrgLimitInput['orgLimit']) => - getClient() - .orgLimit.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitWarningMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitWarningMutation.ts deleted file mode 100644 index 6ea71590d6..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitWarningMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitWarningKeys } from '../query-keys'; -import { orgLimitWarningMutationKeys } from '../mutation-keys'; -import type { - OrgLimitWarningSelect, - OrgLimitWarningWithRelations, - CreateOrgLimitWarningInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitWarningSelect, - OrgLimitWarningWithRelations, - CreateOrgLimitWarningInput, -} from '../../orm/input-types'; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgLimitWarningMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgLimitWarningMutation( - params: { - selection: { - fields: S & OrgLimitWarningSelect; - } & HookStrictSelect, OrgLimitWarningSelect>; - } & Omit< - UseMutationOptions< - { - createOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }, - Error, - CreateOrgLimitWarningInput['orgLimitWarning'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }, - Error, - CreateOrgLimitWarningInput['orgLimitWarning'] ->; -export function useCreateOrgLimitWarningMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitWarningMutationKeys.create(), - mutationFn: (data: CreateOrgLimitWarningInput['orgLimitWarning']) => - getClient() - .orgLimitWarning.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts deleted file mode 100644 index 14c7550f50..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberKeys } from '../query-keys'; -import { orgMemberMutationKeys } from '../mutation-keys'; -import type { - OrgMemberSelect, - OrgMemberWithRelations, - CreateOrgMemberInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMemberSelect, - OrgMemberWithRelations, - CreateOrgMemberInput, -} from '../../orm/input-types'; -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgMemberMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgMemberMutation( - params: { - selection: { - fields: S & OrgMemberSelect; - } & HookStrictSelect, OrgMemberSelect>; - } & Omit< - UseMutationOptions< - { - createOrgMember: { - orgMember: InferSelectResult; - }; - }, - Error, - CreateOrgMemberInput['orgMember'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgMember: { - orgMember: InferSelectResult; - }; - }, - Error, - CreateOrgMemberInput['orgMember'] ->; -export function useCreateOrgMemberMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMemberMutationKeys.create(), - mutationFn: (data: CreateOrgMemberInput['orgMember']) => - getClient() - .orgMember.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgMemberKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberProfileMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberProfileMutation.ts deleted file mode 100644 index 90480b1ccf..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberProfileMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberProfileKeys } from '../query-keys'; -import { orgMemberProfileMutationKeys } from '../mutation-keys'; -import type { - OrgMemberProfileSelect, - OrgMemberProfileWithRelations, - CreateOrgMemberProfileInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMemberProfileSelect, - OrgMemberProfileWithRelations, - CreateOrgMemberProfileInput, -} from '../../orm/input-types'; -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgMemberProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgMemberProfileMutation( - params: { - selection: { - fields: S & OrgMemberProfileSelect; - } & HookStrictSelect, OrgMemberProfileSelect>; - } & Omit< - UseMutationOptions< - { - createOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }, - Error, - CreateOrgMemberProfileInput['orgMemberProfile'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }, - Error, - CreateOrgMemberProfileInput['orgMemberProfile'] ->; -export function useCreateOrgMemberProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMemberProfileMutationKeys.create(), - mutationFn: (data: CreateOrgMemberProfileInput['orgMemberProfile']) => - getClient() - .orgMemberProfile.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts deleted file mode 100644 index b043e29d78..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipDefaultKeys } from '../query-keys'; -import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, - CreateOrgMembershipDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, - CreateOrgMembershipDefaultInput, -} from '../../orm/input-types'; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgMembershipDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgMembershipDefaultMutation( - params: { - selection: { - fields: S & OrgMembershipDefaultSelect; - } & HookStrictSelect, OrgMembershipDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipDefaultInput['orgMembershipDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipDefaultInput['orgMembershipDefault'] ->; -export function useCreateOrgMembershipDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipDefaultMutationKeys.create(), - mutationFn: (data: CreateOrgMembershipDefaultInput['orgMembershipDefault']) => - getClient() - .orgMembershipDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts deleted file mode 100644 index 84633ad1d6..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipKeys } from '../query-keys'; -import { orgMembershipMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipSelect, - OrgMembershipWithRelations, - CreateOrgMembershipInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipSelect, - OrgMembershipWithRelations, - CreateOrgMembershipInput, -} from '../../orm/input-types'; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgMembershipMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgMembershipMutation( - params: { - selection: { - fields: S & OrgMembershipSelect; - } & HookStrictSelect, OrgMembershipSelect>; - } & Omit< - UseMutationOptions< - { - createOrgMembership: { - orgMembership: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipInput['orgMembership'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgMembership: { - orgMembership: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipInput['orgMembership'] ->; -export function useCreateOrgMembershipMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipMutationKeys.create(), - mutationFn: (data: CreateOrgMembershipInput['orgMembership']) => - getClient() - .orgMembership.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipSettingMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipSettingMutation.ts deleted file mode 100644 index 46710df8fe..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipSettingMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Per-entity settings for the memberships 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 { orgMembershipSettingKeys } from '../query-keys'; -import { orgMembershipSettingMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, - CreateOrgMembershipSettingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, - CreateOrgMembershipSettingInput, -} from '../../orm/input-types'; -/** - * Per-entity settings for the memberships module - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgMembershipSettingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgMembershipSettingMutation( - params: { - selection: { - fields: S & OrgMembershipSettingSelect; - } & HookStrictSelect, OrgMembershipSettingSelect>; - } & Omit< - UseMutationOptions< - { - createOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipSettingInput['orgMembershipSetting'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }, - Error, - CreateOrgMembershipSettingInput['orgMembershipSetting'] ->; -export function useCreateOrgMembershipSettingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipSettingMutationKeys.create(), - mutationFn: (data: CreateOrgMembershipSettingInput['orgMembershipSetting']) => - getClient() - .orgMembershipSetting.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts deleted file mode 100644 index 974ac34305..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgOwnerGrantKeys } from '../query-keys'; -import { orgOwnerGrantMutationKeys } from '../mutation-keys'; -import type { - OrgOwnerGrantSelect, - OrgOwnerGrantWithRelations, - CreateOrgOwnerGrantInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgOwnerGrantSelect, - OrgOwnerGrantWithRelations, - CreateOrgOwnerGrantInput, -} from '../../orm/input-types'; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgOwnerGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgOwnerGrantMutation( - params: { - selection: { - fields: S & OrgOwnerGrantSelect; - } & HookStrictSelect, OrgOwnerGrantSelect>; - } & Omit< - UseMutationOptions< - { - createOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }, - Error, - CreateOrgOwnerGrantInput['orgOwnerGrant'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }, - Error, - CreateOrgOwnerGrantInput['orgOwnerGrant'] ->; -export function useCreateOrgOwnerGrantMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgOwnerGrantMutationKeys.create(), - mutationFn: (data: CreateOrgOwnerGrantInput['orgOwnerGrant']) => - getClient() - .orgOwnerGrant.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts deleted file mode 100644 index 1870514760..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionDefaultKeys } from '../query-keys'; -import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - CreateOrgPermissionDefaultInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - CreateOrgPermissionDefaultInput, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgPermissionDefaultMutation( - params: { - selection: { - fields: S & OrgPermissionDefaultSelect; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionDefaultInput['orgPermissionDefault'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionDefaultInput['orgPermissionDefault'] ->; -export function useCreateOrgPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultMutationKeys.create(), - mutationFn: (data: CreateOrgPermissionDefaultInput['orgPermissionDefault']) => - getClient() - .orgPermissionDefault.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts deleted file mode 100644 index 8c597cb085..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionKeys } from '../query-keys'; -import { orgPermissionMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionSelect, - OrgPermissionWithRelations, - CreateOrgPermissionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionSelect, - OrgPermissionWithRelations, - CreateOrgPermissionInput, -} from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgPermissionMutation( - params: { - selection: { - fields: S & OrgPermissionSelect; - } & HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseMutationOptions< - { - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionInput['orgPermission'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - CreateOrgPermissionInput['orgPermission'] ->; -export function useCreateOrgPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionMutationKeys.create(), - mutationFn: (data: CreateOrgPermissionInput['orgPermission']) => - getClient() - .orgPermission.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts deleted file mode 100644 index 7ccbf6084b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * User phone numbers with country code, verification, and primary-number management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { phoneNumberKeys } from '../query-keys'; -import { phoneNumberMutationKeys } from '../mutation-keys'; -import type { - PhoneNumberSelect, - PhoneNumberWithRelations, - CreatePhoneNumberInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PhoneNumberSelect, - PhoneNumberWithRelations, - CreatePhoneNumberInput, -} from '../../orm/input-types'; -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePhoneNumberMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePhoneNumberMutation( - params: { - selection: { - fields: S & PhoneNumberSelect; - } & HookStrictSelect, PhoneNumberSelect>; - } & Omit< - UseMutationOptions< - { - createPhoneNumber: { - phoneNumber: InferSelectResult; - }; - }, - Error, - CreatePhoneNumberInput['phoneNumber'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPhoneNumber: { - phoneNumber: InferSelectResult; - }; - }, - Error, - CreatePhoneNumberInput['phoneNumber'] ->; -export function useCreatePhoneNumberMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: phoneNumberMutationKeys.create(), - mutationFn: (data: CreatePhoneNumberInput['phoneNumber']) => - getClient() - .phoneNumber.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateRoleTypeMutation.ts deleted file mode 100644 index 212be3f451..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateRoleTypeMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for RoleType - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; -import { roleTypeMutationKeys } from '../mutation-keys'; -import type { - RoleTypeSelect, - RoleTypeWithRelations, - CreateRoleTypeInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - RoleTypeSelect, - RoleTypeWithRelations, - CreateRoleTypeInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a RoleType - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateRoleTypeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateRoleTypeMutation( - params: { - selection: { - fields: S & RoleTypeSelect; - } & HookStrictSelect, RoleTypeSelect>; - } & Omit< - UseMutationOptions< - { - createRoleType: { - roleType: InferSelectResult; - }; - }, - Error, - CreateRoleTypeInput['roleType'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createRoleType: { - roleType: InferSelectResult; - }; - }, - Error, - CreateRoleTypeInput['roleType'] ->; -export function useCreateRoleTypeMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: roleTypeMutationKeys.create(), - mutationFn: (data: CreateRoleTypeInput['roleType']) => - getClient() - .roleType.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserConnectedAccountMutation.ts deleted file mode 100644 index 6c0f3a5194..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserConnectedAccountMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for UserConnectedAccount - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userConnectedAccountKeys } from '../query-keys'; -import { userConnectedAccountMutationKeys } from '../mutation-keys'; -import type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, - CreateUserConnectedAccountInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, - CreateUserConnectedAccountInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a UserConnectedAccount - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateUserConnectedAccountMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateUserConnectedAccountMutation( - params: { - selection: { - fields: S & UserConnectedAccountSelect; - } & HookStrictSelect, UserConnectedAccountSelect>; - } & Omit< - UseMutationOptions< - { - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }, - Error, - CreateUserConnectedAccountInput['userConnectedAccount'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }, - Error, - CreateUserConnectedAccountInput['userConnectedAccount'] ->; -export function useCreateUserConnectedAccountMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: userConnectedAccountMutationKeys.create(), - mutationFn: (data: CreateUserConnectedAccountInput['userConnectedAccount']) => - getClient() - .userConnectedAccount.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserMutation.ts deleted file mode 100644 index 0d5bfff47e..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Create mutation hook for User - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; -import { userMutationKeys } from '../mutation-keys'; -import type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; -/** - * Mutation hook for creating a User - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateUserMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateUserMutation( - params: { - selection: { - fields: S & UserSelect; - } & HookStrictSelect, UserSelect>; - } & Omit< - UseMutationOptions< - { - createUser: { - user: InferSelectResult; - }; - }, - Error, - CreateUserInput['user'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createUser: { - user: InferSelectResult; - }; - }, - Error, - CreateUserInput['user'] ->; -export function useCreateUserMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: userMutationKeys.create(), - mutationFn: (data: CreateUserInput['user']) => - getClient() - .user.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: userKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnCredentialMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnCredentialMutation.ts deleted file mode 100644 index 74dc8c6b9b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateWebauthnCredentialMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { webauthnCredentialKeys } from '../query-keys'; -import { webauthnCredentialMutationKeys } from '../mutation-keys'; -import type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, - CreateWebauthnCredentialInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, - CreateWebauthnCredentialInput, -} from '../../orm/input-types'; -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateWebauthnCredentialMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateWebauthnCredentialMutation( - params: { - selection: { - fields: S & WebauthnCredentialSelect; - } & HookStrictSelect, WebauthnCredentialSelect>; - } & Omit< - UseMutationOptions< - { - createWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }, - Error, - CreateWebauthnCredentialInput['webauthnCredential'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }, - Error, - CreateWebauthnCredentialInput['webauthnCredential'] ->; -export function useCreateWebauthnCredentialMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: webauthnCredentialMutationKeys.create(), - mutationFn: (data: CreateWebauthnCredentialInput['webauthnCredential']) => - getClient() - .webauthnCredential.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: webauthnCredentialKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts deleted file mode 100644 index 1962f80e9a..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appAdminGrantKeys } from '../query-keys'; -import { appAdminGrantMutationKeys } from '../mutation-keys'; -import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppAdminGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppAdminGrantMutation( - params: { - selection: { - fields: S & AppAdminGrantSelect; - } & HookStrictSelect, AppAdminGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppAdminGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appAdminGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appAdminGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appAdminGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppClaimedInviteMutation.ts deleted file mode 100644 index b1b6f9da85..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppClaimedInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appClaimedInviteKeys } from '../query-keys'; -import { appClaimedInviteMutationKeys } from '../mutation-keys'; -import type { AppClaimedInviteSelect, AppClaimedInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppClaimedInviteSelect, AppClaimedInviteWithRelations } from '../../orm/input-types'; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppClaimedInviteMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppClaimedInviteMutation( - params: { - selection: { - fields: S & AppClaimedInviteSelect; - } & HookStrictSelect, AppClaimedInviteSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppClaimedInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appClaimedInviteMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appClaimedInvite.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appClaimedInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts deleted file mode 100644 index 16814431f7..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appGrantKeys } from '../query-keys'; -import { appGrantMutationKeys } from '../mutation-keys'; -import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppGrantMutation( - params: { - selection: { - fields: S & AppGrantSelect; - } & HookStrictSelect, AppGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppGrant: { - appGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppGrant: { - appGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppInviteMutation.ts deleted file mode 100644 index bb948cdda6..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appInviteKeys } from '../query-keys'; -import { appInviteMutationKeys } from '../mutation-keys'; -import type { AppInviteSelect, AppInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppInviteSelect, AppInviteWithRelations } from '../../orm/input-types'; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppInviteMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppInviteMutation( - params: { - selection: { - fields: S & AppInviteSelect; - } & HookStrictSelect, AppInviteSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppInvite: { - appInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppInvite: { - appInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appInviteMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appInvite.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCapMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCapMutation.ts deleted file mode 100644 index 0e569e8eab..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCapMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapKeys } from '../query-keys'; -import { appLimitCapMutationKeys } from '../mutation-keys'; -import type { AppLimitCapSelect, AppLimitCapWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitCapSelect, AppLimitCapWithRelations } from '../../orm/input-types'; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitCapMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitCapMutation( - params: { - selection: { - fields: S & AppLimitCapSelect; - } & HookStrictSelect, AppLimitCapSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitCapMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCapMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitCap.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitCapKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCapsDefaultMutation.ts deleted file mode 100644 index ce11fa0780..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCapsDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapsDefaultKeys } from '../query-keys'; -import { appLimitCapsDefaultMutationKeys } from '../mutation-keys'; -import type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitCapsDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitCapsDefaultMutation( - params: { - selection: { - fields: S & AppLimitCapsDefaultSelect; - } & HookStrictSelect, AppLimitCapsDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitCapsDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCapsDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitCapsDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitCapsDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditCodeItemMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditCodeItemMutation.ts deleted file mode 100644 index 22f5ce1ad1..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditCodeItemMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Items within a credit code — each row grants credits for a specific limit definition - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeItemKeys } from '../query-keys'; -import { appLimitCreditCodeItemMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, -} from '../../orm/input-types'; -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitCreditCodeItemMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitCreditCodeItemMutation( - params: { - selection: { - fields: S & AppLimitCreditCodeItemSelect; - } & HookStrictSelect, AppLimitCreditCodeItemSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitCreditCodeItemMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditCodeItemMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitCreditCodeItem.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitCreditCodeItemKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts deleted file mode 100644 index 0d9e7d8351..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Redeemable credit codes managed by admins with the add_credits permission - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeKeys } from '../query-keys'; -import { appLimitCreditCodeMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, -} from '../../orm/input-types'; -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitCreditCodeMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitCreditCodeMutation( - params: { - selection: { - fields: S & AppLimitCreditCodeSelect; - } & HookStrictSelect, AppLimitCreditCodeSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitCreditCodeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditCodeMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitCreditCode.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitCreditCodeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditMutation.ts deleted file mode 100644 index 49998d5fc1..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditKeys } from '../query-keys'; -import { appLimitCreditMutationKeys } from '../mutation-keys'; -import type { AppLimitCreditSelect, AppLimitCreditWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitCreditSelect, AppLimitCreditWithRelations } from '../../orm/input-types'; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitCreditMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitCreditMutation( - params: { - selection: { - fields: S & AppLimitCreditSelect; - } & HookStrictSelect, AppLimitCreditSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitCreditMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitCredit.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitCreditKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditRedemptionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditRedemptionMutation.ts deleted file mode 100644 index 98cb4c2e0f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitCreditRedemptionMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditRedemptionKeys } from '../query-keys'; -import { appLimitCreditRedemptionMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, -} from '../../orm/input-types'; -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitCreditRedemptionMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitCreditRedemptionMutation( - params: { - selection: { - fields: S & AppLimitCreditRedemptionSelect; - } & HookStrictSelect, AppLimitCreditRedemptionSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitCreditRedemptionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditRedemptionMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitCreditRedemption.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitCreditRedemptionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts deleted file mode 100644 index d248f2be24..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitDefaultKeys } from '../query-keys'; -import { appLimitDefaultMutationKeys } from '../mutation-keys'; -import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitDefaultMutation( - params: { - selection: { - fields: S & AppLimitDefaultSelect; - } & HookStrictSelect, AppLimitDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts deleted file mode 100644 index 2c97fe2946..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitEventKeys } from '../query-keys'; -import { appLimitEventMutationKeys } from '../mutation-keys'; -import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitEventMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitEventMutation( - params: { - selection: { - fields: S & AppLimitEventSelect; - } & HookStrictSelect, AppLimitEventSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitEventMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitEventMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitEvent.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitEventKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts deleted file mode 100644 index 42ca8b532f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitKeys } from '../query-keys'; -import { appLimitMutationKeys } from '../mutation-keys'; -import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitMutation( - params: { - selection: { - fields: S & AppLimitSelect; - } & HookStrictSelect, AppLimitSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimit: { - appLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimit: { - appLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimit.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitWarningMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitWarningMutation.ts deleted file mode 100644 index d3339d24bf..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitWarningMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitWarningKeys } from '../query-keys'; -import { appLimitWarningMutationKeys } from '../mutation-keys'; -import type { AppLimitWarningSelect, AppLimitWarningWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitWarningSelect, AppLimitWarningWithRelations } from '../../orm/input-types'; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppLimitWarningMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppLimitWarningMutation( - params: { - selection: { - fields: S & AppLimitWarningSelect; - } & HookStrictSelect, AppLimitWarningSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppLimitWarningMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitWarningMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appLimitWarning.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appLimitWarningKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts deleted file mode 100644 index c01ff2054a..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipDefaultKeys } from '../query-keys'; -import { appMembershipDefaultMutationKeys } from '../mutation-keys'; -import type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppMembershipDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppMembershipDefaultMutation( - params: { - selection: { - fields: S & AppMembershipDefaultSelect; - } & HookStrictSelect, AppMembershipDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppMembershipDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appMembershipDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts deleted file mode 100644 index 03a601e74f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipKeys } from '../query-keys'; -import { appMembershipMutationKeys } from '../mutation-keys'; -import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppMembershipMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppMembershipMutation( - params: { - selection: { - fields: S & AppMembershipSelect; - } & HookStrictSelect, AppMembershipSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppMembership: { - appMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppMembership: { - appMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppMembershipMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appMembership.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appMembershipKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts deleted file mode 100644 index 836d241e12..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appOwnerGrantKeys } from '../query-keys'; -import { appOwnerGrantMutationKeys } from '../mutation-keys'; -import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppOwnerGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppOwnerGrantMutation( - params: { - selection: { - fields: S & AppOwnerGrantSelect; - } & HookStrictSelect, AppOwnerGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppOwnerGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appOwnerGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appOwnerGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appOwnerGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts deleted file mode 100644 index a9b23c7473..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionDefaultKeys } from '../query-keys'; -import { appPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppPermissionDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppPermissionDefaultMutation( - params: { - selection: { - fields: S & AppPermissionDefaultSelect; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appPermissionDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts deleted file mode 100644 index b50268261e..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionKeys } from '../query-keys'; -import { appPermissionMutationKeys } from '../mutation-keys'; -import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAppPermissionMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAppPermissionMutation( - params: { - selection: { - fields: S & AppPermissionSelect; - } & HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseMutationOptions< - { - deleteAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAppPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .appPermission.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: appPermissionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogAuthMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogAuthMutation.ts deleted file mode 100644 index 6ccb6a99bf..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogAuthMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { auditLogAuthKeys } from '../query-keys'; -import { auditLogAuthMutationKeys } from '../mutation-keys'; -import type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAuditLogAuthMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAuditLogAuthMutation( - params: { - selection: { - fields: S & AuditLogAuthSelect; - } & HookStrictSelect, AuditLogAuthSelect>; - } & Omit< - UseMutationOptions< - { - deleteAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAuditLogAuthMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: auditLogAuthMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .auditLogAuth.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: auditLogAuthKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: auditLogAuthKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts deleted file mode 100644 index 34ad5f33d4..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { cryptoAddressKeys } from '../query-keys'; -import { cryptoAddressMutationKeys } from '../mutation-keys'; -import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteCryptoAddressMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteCryptoAddressMutation( - params: { - selection: { - fields: S & CryptoAddressSelect; - } & HookStrictSelect, CryptoAddressSelect>; - } & Omit< - UseMutationOptions< - { - deleteCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteCryptoAddressMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: cryptoAddressMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .cryptoAddress.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: cryptoAddressKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts deleted file mode 100644 index ee92590236..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * User email addresses with verification and primary-email management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { emailKeys } from '../query-keys'; -import { emailMutationKeys } from '../mutation-keys'; -import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; -/** - * User email addresses with verification and primary-email management - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteEmailMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteEmailMutation( - params: { - selection: { - fields: S & EmailSelect; - } & HookStrictSelect, EmailSelect>; - } & Omit< - UseMutationOptions< - { - deleteEmail: { - email: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteEmail: { - email: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteEmailMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: emailMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .email.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: emailKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts deleted file mode 100644 index 71e81ffa9d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { membershipTypeKeys } from '../query-keys'; -import { membershipTypeMutationKeys } from '../mutation-keys'; -import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteMembershipTypeMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 123 }); - * ``` - */ -export function useDeleteMembershipTypeMutation( - params: { - selection: { - fields: S & MembershipTypeSelect; - } & HookStrictSelect, MembershipTypeSelect>; - } & Omit< - UseMutationOptions< - { - deleteMembershipType: { - membershipType: InferSelectResult; - }; - }, - Error, - { - id: number; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteMembershipType: { - membershipType: InferSelectResult; - }; - }, - Error, - { - id: number; - } ->; -export function useDeleteMembershipTypeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: number; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: membershipTypeMutationKeys.all, - mutationFn: ({ id }: { id: number }) => - getClient() - .membershipType.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts deleted file mode 100644 index dfd89d90e2..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgAdminGrantKeys } from '../query-keys'; -import { orgAdminGrantMutationKeys } from '../mutation-keys'; -import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgAdminGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgAdminGrantMutation( - params: { - selection: { - fields: S & OrgAdminGrantSelect; - } & HookStrictSelect, OrgAdminGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgAdminGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgAdminGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgAdminGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts deleted file mode 100644 index 42b7b9e254..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeGrantKeys } from '../query-keys'; -import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; -import type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, -} from '../../orm/input-types'; -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgChartEdgeGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgChartEdgeGrantMutation( - params: { - selection: { - fields: S & OrgChartEdgeGrantSelect; - } & HookStrictSelect, OrgChartEdgeGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgChartEdgeGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgChartEdgeGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgChartEdgeGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgChartEdgeGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgChartEdgeGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts deleted file mode 100644 index 3aad832ca0..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgChartEdgeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeKeys } from '../query-keys'; -import { orgChartEdgeMutationKeys } from '../mutation-keys'; -import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgChartEdgeMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgChartEdgeMutation( - params: { - selection: { - fields: S & OrgChartEdgeSelect; - } & HookStrictSelect, OrgChartEdgeSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgChartEdgeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgChartEdgeMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgChartEdge.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgChartEdgeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts deleted file mode 100644 index ecc7fc6301..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgClaimedInviteKeys } from '../query-keys'; -import { orgClaimedInviteMutationKeys } from '../mutation-keys'; -import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgClaimedInviteMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgClaimedInviteMutation( - params: { - selection: { - fields: S & OrgClaimedInviteSelect; - } & HookStrictSelect, OrgClaimedInviteSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgClaimedInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgClaimedInviteMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgClaimedInvite.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgClaimedInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgClaimedInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts deleted file mode 100644 index 3a1d1d9678..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGrantKeys } from '../query-keys'; -import { orgGrantMutationKeys } from '../mutation-keys'; -import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgGrantMutation( - params: { - selection: { - fields: S & OrgGrantSelect; - } & HookStrictSelect, OrgGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgGrant: { - orgGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgGrant: { - orgGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts deleted file mode 100644 index 34ba212366..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgInviteKeys } from '../query-keys'; -import { orgInviteMutationKeys } from '../mutation-keys'; -import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgInviteMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgInviteMutation( - params: { - selection: { - fields: S & OrgInviteSelect; - } & HookStrictSelect, OrgInviteSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgInvite: { - orgInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgInvite: { - orgInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgInviteMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgInvite.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts deleted file mode 100644 index a946d49dec..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitAggregateKeys } from '../query-keys'; -import { orgLimitAggregateMutationKeys } from '../mutation-keys'; -import type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, -} from '../../orm/input-types'; -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitAggregateMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitAggregateMutation( - params: { - selection: { - fields: S & OrgLimitAggregateSelect; - } & HookStrictSelect, OrgLimitAggregateSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitAggregateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitAggregateMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimitAggregate.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitAggregateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCapMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCapMutation.ts deleted file mode 100644 index 83d7ac5981..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCapMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapKeys } from '../query-keys'; -import { orgLimitCapMutationKeys } from '../mutation-keys'; -import type { OrgLimitCapSelect, OrgLimitCapWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitCapSelect, OrgLimitCapWithRelations } from '../../orm/input-types'; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitCapMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitCapMutation( - params: { - selection: { - fields: S & OrgLimitCapSelect; - } & HookStrictSelect, OrgLimitCapSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitCapMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCapMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimitCap.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitCapKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCapsDefaultMutation.ts deleted file mode 100644 index f1d705fc26..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCapsDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapsDefaultKeys } from '../query-keys'; -import { orgLimitCapsDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitCapsDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitCapsDefaultMutation( - params: { - selection: { - fields: S & OrgLimitCapsDefaultSelect; - } & HookStrictSelect, OrgLimitCapsDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitCapsDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCapsDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimitCapsDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCreditMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCreditMutation.ts deleted file mode 100644 index 339bba9bd1..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitCreditMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCreditKeys } from '../query-keys'; -import { orgLimitCreditMutationKeys } from '../mutation-keys'; -import type { OrgLimitCreditSelect, OrgLimitCreditWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitCreditSelect, OrgLimitCreditWithRelations } from '../../orm/input-types'; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitCreditMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitCreditMutation( - params: { - selection: { - fields: S & OrgLimitCreditSelect; - } & HookStrictSelect, OrgLimitCreditSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitCreditMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCreditMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimitCredit.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitCreditKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts deleted file mode 100644 index b7614b66f3..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitDefaultKeys } from '../query-keys'; -import { orgLimitDefaultMutationKeys } from '../mutation-keys'; -import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitDefaultMutation( - params: { - selection: { - fields: S & OrgLimitDefaultSelect; - } & HookStrictSelect, OrgLimitDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimitDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts deleted file mode 100644 index a0a4a3b2a7..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitEventKeys } from '../query-keys'; -import { orgLimitEventMutationKeys } from '../mutation-keys'; -import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitEventMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitEventMutation( - params: { - selection: { - fields: S & OrgLimitEventSelect; - } & HookStrictSelect, OrgLimitEventSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitEventMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitEventMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimitEvent.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitEventKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts deleted file mode 100644 index 340ecce1fc..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitKeys } from '../query-keys'; -import { orgLimitMutationKeys } from '../mutation-keys'; -import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitMutation( - params: { - selection: { - fields: S & OrgLimitSelect; - } & HookStrictSelect, OrgLimitSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimit: { - orgLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimit: { - orgLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimit.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitWarningMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitWarningMutation.ts deleted file mode 100644 index e0f7517a00..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitWarningMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitWarningKeys } from '../query-keys'; -import { orgLimitWarningMutationKeys } from '../mutation-keys'; -import type { OrgLimitWarningSelect, OrgLimitWarningWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitWarningSelect, OrgLimitWarningWithRelations } from '../../orm/input-types'; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgLimitWarningMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgLimitWarningMutation( - params: { - selection: { - fields: S & OrgLimitWarningSelect; - } & HookStrictSelect, OrgLimitWarningSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgLimitWarningMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitWarningMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgLimitWarning.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgLimitWarningKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts deleted file mode 100644 index ed6a257612..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberKeys } from '../query-keys'; -import { orgMemberMutationKeys } from '../mutation-keys'; -import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgMemberMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgMemberMutation( - params: { - selection: { - fields: S & OrgMemberSelect; - } & HookStrictSelect, OrgMemberSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgMember: { - orgMember: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgMember: { - orgMember: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgMemberMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMemberMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgMember.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgMemberKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMemberKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberProfileMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberProfileMutation.ts deleted file mode 100644 index ce00294d4f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberProfileMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberProfileKeys } from '../query-keys'; -import { orgMemberProfileMutationKeys } from '../mutation-keys'; -import type { OrgMemberProfileSelect, OrgMemberProfileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgMemberProfileSelect, OrgMemberProfileWithRelations } from '../../orm/input-types'; -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgMemberProfileMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgMemberProfileMutation( - params: { - selection: { - fields: S & OrgMemberProfileSelect; - } & HookStrictSelect, OrgMemberProfileSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgMemberProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMemberProfileMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgMemberProfile.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgMemberProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts deleted file mode 100644 index 50fd076364..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipDefaultKeys } from '../query-keys'; -import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgMembershipDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgMembershipDefaultMutation( - params: { - selection: { - fields: S & OrgMembershipDefaultSelect; - } & HookStrictSelect, OrgMembershipDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgMembershipDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgMembershipDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts deleted file mode 100644 index 62654c7ee2..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipKeys } from '../query-keys'; -import { orgMembershipMutationKeys } from '../mutation-keys'; -import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgMembershipMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgMembershipMutation( - params: { - selection: { - fields: S & OrgMembershipSelect; - } & HookStrictSelect, OrgMembershipSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgMembership: { - orgMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgMembership: { - orgMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgMembershipMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgMembership.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgMembershipKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.ts deleted file mode 100644 index 3d0695cf00..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipSettingMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Per-entity settings for the memberships 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 { orgMembershipSettingKeys } from '../query-keys'; -import { orgMembershipSettingMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, -} from '../../orm/input-types'; -/** - * Per-entity settings for the memberships module - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgMembershipSettingMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgMembershipSettingMutation( - params: { - selection: { - fields: S & OrgMembershipSettingSelect; - } & HookStrictSelect, OrgMembershipSettingSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgMembershipSettingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipSettingMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgMembershipSetting.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts deleted file mode 100644 index 834c27ca6d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgOwnerGrantKeys } from '../query-keys'; -import { orgOwnerGrantMutationKeys } from '../mutation-keys'; -import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgOwnerGrantMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgOwnerGrantMutation( - params: { - selection: { - fields: S & OrgOwnerGrantSelect; - } & HookStrictSelect, OrgOwnerGrantSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgOwnerGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgOwnerGrantMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgOwnerGrant.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgOwnerGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts deleted file mode 100644 index a811eca533..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionDefaultKeys } from '../query-keys'; -import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgPermissionDefaultMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgPermissionDefaultMutation( - params: { - selection: { - fields: S & OrgPermissionDefaultSelect; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgPermissionDefault.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgPermissionDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts deleted file mode 100644 index 1c02a813ab..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionKeys } from '../query-keys'; -import { orgPermissionMutationKeys } from '../mutation-keys'; -import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteOrgPermissionMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteOrgPermissionMutation( - params: { - selection: { - fields: S & OrgPermissionSelect; - } & HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseMutationOptions< - { - deleteOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteOrgPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .orgPermission.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: orgPermissionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts deleted file mode 100644 index 7e4e74481c..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * User phone numbers with country code, verification, and primary-number management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { phoneNumberKeys } from '../query-keys'; -import { phoneNumberMutationKeys } from '../mutation-keys'; -import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePhoneNumberMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeletePhoneNumberMutation( - params: { - selection: { - fields: S & PhoneNumberSelect; - } & HookStrictSelect, PhoneNumberSelect>; - } & Omit< - UseMutationOptions< - { - deletePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deletePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeletePhoneNumberMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: phoneNumberMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .phoneNumber.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: phoneNumberKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts deleted file mode 100644 index 34495fa52d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Delete mutation hook for RoleType - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; -import { roleTypeMutationKeys } from '../mutation-keys'; -import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; -/** - * Mutation hook for deleting a RoleType with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteRoleTypeMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 123 }); - * ``` - */ -export function useDeleteRoleTypeMutation( - params: { - selection: { - fields: S & RoleTypeSelect; - } & HookStrictSelect, RoleTypeSelect>; - } & Omit< - UseMutationOptions< - { - deleteRoleType: { - roleType: InferSelectResult; - }; - }, - Error, - { - id: number; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteRoleType: { - roleType: InferSelectResult; - }; - }, - Error, - { - id: number; - } ->; -export function useDeleteRoleTypeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: number; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: roleTypeMutationKeys.all, - mutationFn: ({ id }: { id: number }) => - getClient() - .roleType.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: roleTypeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserMutation.ts deleted file mode 100644 index 77880ad094..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Delete mutation hook for User - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; -import { userMutationKeys } from '../mutation-keys'; -import type { UserSelect, UserWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UserSelect, UserWithRelations } from '../../orm/input-types'; -/** - * Mutation hook for deleting a User with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteUserMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteUserMutation( - params: { - selection: { - fields: S & UserSelect; - } & HookStrictSelect, UserSelect>; - } & Omit< - UseMutationOptions< - { - deleteUser: { - user: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteUser: { - user: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteUserMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: userMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .user.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: userKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: userKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnCredentialMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnCredentialMutation.ts deleted file mode 100644 index fb94958fe9..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteWebauthnCredentialMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { webauthnCredentialKeys } from '../query-keys'; -import { webauthnCredentialMutationKeys } from '../mutation-keys'; -import type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, -} from '../../orm/input-types'; -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteWebauthnCredentialMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteWebauthnCredentialMutation( - params: { - selection: { - fields: S & WebauthnCredentialSelect; - } & HookStrictSelect, WebauthnCredentialSelect>; - } & Omit< - UseMutationOptions< - { - deleteWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteWebauthnCredentialMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: webauthnCredentialMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .webauthnCredential.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: webauthnCredentialKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: webauthnCredentialKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDisconnectAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDisconnectAccountMutation.ts deleted file mode 100644 index 8efb938055..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDisconnectAccountMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for disconnectAccount - * @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 { DisconnectAccountVariables } from '../../orm/mutation'; -import type { - DisconnectAccountPayloadSelect, - DisconnectAccountPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { DisconnectAccountVariables } from '../../orm/mutation'; -export type { DisconnectAccountPayloadSelect } from '../../orm/input-types'; -export function useDisconnectAccountMutation( - params: { - selection: { - fields: S & DisconnectAccountPayloadSelect; - } & HookStrictSelect, DisconnectAccountPayloadSelect>; - } & Omit< - UseMutationOptions< - { - disconnectAccount: InferSelectResult | null; - }, - Error, - DisconnectAccountVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - disconnectAccount: InferSelectResult | null; - }, - Error, - DisconnectAccountVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.disconnectAccount(), - mutationFn: (variables: DisconnectAccountVariables) => - getClient() - .mutation.disconnectAccount(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts deleted file mode 100644 index d5d081a1fd..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for extendTokenExpires - * @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 { ExtendTokenExpiresVariables } from '../../orm/mutation'; -import type { - ExtendTokenExpiresPayloadSelect, - ExtendTokenExpiresPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ExtendTokenExpiresVariables } from '../../orm/mutation'; -export type { ExtendTokenExpiresPayloadSelect } from '../../orm/input-types'; -export function useExtendTokenExpiresMutation( - params: { - selection: { - fields: S & ExtendTokenExpiresPayloadSelect; - } & HookStrictSelect, ExtendTokenExpiresPayloadSelect>; - } & Omit< - UseMutationOptions< - { - extendTokenExpires: InferSelectResult | null; - }, - Error, - ExtendTokenExpiresVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - extendTokenExpires: InferSelectResult | null; - }, - Error, - ExtendTokenExpiresVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.extendTokenExpires(), - mutationFn: (variables: ExtendTokenExpiresVariables) => - getClient() - .mutation.extendTokenExpires(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useForgotPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useForgotPasswordMutation.ts deleted file mode 100644 index a30ced3869..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useForgotPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for forgotPassword - * @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 { ForgotPasswordVariables } from '../../orm/mutation'; -import type { ForgotPasswordPayloadSelect, ForgotPasswordPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ForgotPasswordVariables } from '../../orm/mutation'; -export type { ForgotPasswordPayloadSelect } from '../../orm/input-types'; -export function useForgotPasswordMutation( - params: { - selection: { - fields: S & ForgotPasswordPayloadSelect; - } & HookStrictSelect, ForgotPasswordPayloadSelect>; - } & Omit< - UseMutationOptions< - { - forgotPassword: InferSelectResult | null; - }, - Error, - ForgotPasswordVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - forgotPassword: InferSelectResult | null; - }, - Error, - ForgotPasswordVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.forgotPassword(), - mutationFn: (variables: ForgotPasswordVariables) => - getClient() - .mutation.forgotPassword(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionNewUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useProvisionNewUserMutation.ts deleted file mode 100644 index 24964f5a67..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useProvisionNewUserMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for provisionNewUser - * @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 { ProvisionNewUserVariables } from '../../orm/mutation'; -import type { ProvisionNewUserPayloadSelect, ProvisionNewUserPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionNewUserVariables } from '../../orm/mutation'; -export type { ProvisionNewUserPayloadSelect } from '../../orm/input-types'; -export function useProvisionNewUserMutation( - params: { - selection: { - fields: S & ProvisionNewUserPayloadSelect; - } & HookStrictSelect, ProvisionNewUserPayloadSelect>; - } & Omit< - UseMutationOptions< - { - provisionNewUser: InferSelectResult | null; - }, - Error, - ProvisionNewUserVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - provisionNewUser: InferSelectResult | null; - }, - Error, - ProvisionNewUserVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.provisionNewUser(), - mutationFn: (variables: ProvisionNewUserVariables) => - getClient() - .mutation.provisionNewUser(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useRequestCrossOriginTokenMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useRequestCrossOriginTokenMutation.ts deleted file mode 100644 index e8575a3fa3..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useRequestCrossOriginTokenMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for requestCrossOriginToken - * @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 { RequestCrossOriginTokenVariables } from '../../orm/mutation'; -import type { - RequestCrossOriginTokenPayloadSelect, - RequestCrossOriginTokenPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { RequestCrossOriginTokenVariables } from '../../orm/mutation'; -export type { RequestCrossOriginTokenPayloadSelect } from '../../orm/input-types'; -export function useRequestCrossOriginTokenMutation( - params: { - selection: { - fields: S & RequestCrossOriginTokenPayloadSelect; - } & HookStrictSelect, RequestCrossOriginTokenPayloadSelect>; - } & Omit< - UseMutationOptions< - { - requestCrossOriginToken: InferSelectResult | null; - }, - Error, - RequestCrossOriginTokenVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - requestCrossOriginToken: InferSelectResult | null; - }, - Error, - RequestCrossOriginTokenVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.requestCrossOriginToken(), - mutationFn: (variables: RequestCrossOriginTokenVariables) => - getClient() - .mutation.requestCrossOriginToken(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useResetPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useResetPasswordMutation.ts deleted file mode 100644 index 383cb8fa39..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useResetPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for resetPassword - * @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 { ResetPasswordVariables } from '../../orm/mutation'; -import type { ResetPasswordPayloadSelect, ResetPasswordPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ResetPasswordVariables } from '../../orm/mutation'; -export type { ResetPasswordPayloadSelect } from '../../orm/input-types'; -export function useResetPasswordMutation( - params: { - selection: { - fields: S & ResetPasswordPayloadSelect; - } & HookStrictSelect, ResetPasswordPayloadSelect>; - } & Omit< - UseMutationOptions< - { - resetPassword: InferSelectResult | null; - }, - Error, - ResetPasswordVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - resetPassword: InferSelectResult | null; - }, - Error, - ResetPasswordVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.resetPassword(), - mutationFn: (variables: ResetPasswordVariables) => - getClient() - .mutation.resetPassword(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useRevokeApiKeyMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useRevokeApiKeyMutation.ts deleted file mode 100644 index 68641999aa..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useRevokeApiKeyMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for revokeApiKey - * @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 { RevokeApiKeyVariables } from '../../orm/mutation'; -import type { RevokeApiKeyPayloadSelect, RevokeApiKeyPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { RevokeApiKeyVariables } from '../../orm/mutation'; -export type { RevokeApiKeyPayloadSelect } from '../../orm/input-types'; -export function useRevokeApiKeyMutation( - params: { - selection: { - fields: S & RevokeApiKeyPayloadSelect; - } & HookStrictSelect, RevokeApiKeyPayloadSelect>; - } & Omit< - UseMutationOptions< - { - revokeApiKey: InferSelectResult | null; - }, - Error, - RevokeApiKeyVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - revokeApiKey: InferSelectResult | null; - }, - Error, - RevokeApiKeyVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.revokeApiKey(), - mutationFn: (variables: RevokeApiKeyVariables) => - getClient() - .mutation.revokeApiKey(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useRevokeSessionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useRevokeSessionMutation.ts deleted file mode 100644 index 773e73c5fa..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useRevokeSessionMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for revokeSession - * @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 { RevokeSessionVariables } from '../../orm/mutation'; -import type { RevokeSessionPayloadSelect, RevokeSessionPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { RevokeSessionVariables } from '../../orm/mutation'; -export type { RevokeSessionPayloadSelect } from '../../orm/input-types'; -export function useRevokeSessionMutation( - params: { - selection: { - fields: S & RevokeSessionPayloadSelect; - } & HookStrictSelect, RevokeSessionPayloadSelect>; - } & Omit< - UseMutationOptions< - { - revokeSession: InferSelectResult | null; - }, - Error, - RevokeSessionVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - revokeSession: InferSelectResult | null; - }, - Error, - RevokeSessionVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.revokeSession(), - mutationFn: (variables: RevokeSessionVariables) => - getClient() - .mutation.revokeSession(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts deleted file mode 100644 index 55a1791180..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Custom mutation hook for sendAccountDeletionEmail - * @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 { SendAccountDeletionEmailVariables } from '../../orm/mutation'; -import type { - SendAccountDeletionEmailPayloadSelect, - SendAccountDeletionEmailPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SendAccountDeletionEmailVariables } from '../../orm/mutation'; -export type { SendAccountDeletionEmailPayloadSelect } from '../../orm/input-types'; -export function useSendAccountDeletionEmailMutation< - S extends SendAccountDeletionEmailPayloadSelect, ->( - params: { - selection: { - fields: S & SendAccountDeletionEmailPayloadSelect; - } & HookStrictSelect, SendAccountDeletionEmailPayloadSelect>; - } & Omit< - UseMutationOptions< - { - sendAccountDeletionEmail: InferSelectResult | null; - }, - Error, - SendAccountDeletionEmailVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - sendAccountDeletionEmail: InferSelectResult | null; - }, - Error, - SendAccountDeletionEmailVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.sendAccountDeletionEmail(), - mutationFn: (variables: SendAccountDeletionEmailVariables) => - getClient() - .mutation.sendAccountDeletionEmail(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSendVerificationEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSendVerificationEmailMutation.ts deleted file mode 100644 index ea9ee0d767..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSendVerificationEmailMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for sendVerificationEmail - * @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 { SendVerificationEmailVariables } from '../../orm/mutation'; -import type { - SendVerificationEmailPayloadSelect, - SendVerificationEmailPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SendVerificationEmailVariables } from '../../orm/mutation'; -export type { SendVerificationEmailPayloadSelect } from '../../orm/input-types'; -export function useSendVerificationEmailMutation( - params: { - selection: { - fields: S & SendVerificationEmailPayloadSelect; - } & HookStrictSelect, SendVerificationEmailPayloadSelect>; - } & Omit< - UseMutationOptions< - { - sendVerificationEmail: InferSelectResult | null; - }, - Error, - SendVerificationEmailVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - sendVerificationEmail: InferSelectResult | null; - }, - Error, - SendVerificationEmailVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.sendVerificationEmail(), - mutationFn: (variables: SendVerificationEmailVariables) => - getClient() - .mutation.sendVerificationEmail(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSetPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSetPasswordMutation.ts deleted file mode 100644 index af901aba16..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSetPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for setPassword - * @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 { SetPasswordVariables } from '../../orm/mutation'; -import type { SetPasswordPayloadSelect, SetPasswordPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SetPasswordVariables } from '../../orm/mutation'; -export type { SetPasswordPayloadSelect } from '../../orm/input-types'; -export function useSetPasswordMutation( - params: { - selection: { - fields: S & SetPasswordPayloadSelect; - } & HookStrictSelect, SetPasswordPayloadSelect>; - } & Omit< - UseMutationOptions< - { - setPassword: InferSelectResult | null; - }, - Error, - SetPasswordVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - setPassword: InferSelectResult | null; - }, - Error, - SetPasswordVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.setPassword(), - mutationFn: (variables: SetPasswordVariables) => - getClient() - .mutation.setPassword(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignInCrossOriginMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignInCrossOriginMutation.ts deleted file mode 100644 index 8afc114549..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSignInCrossOriginMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for signInCrossOrigin - * @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 { SignInCrossOriginVariables } from '../../orm/mutation'; -import type { - SignInCrossOriginPayloadSelect, - SignInCrossOriginPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SignInCrossOriginVariables } from '../../orm/mutation'; -export type { SignInCrossOriginPayloadSelect } from '../../orm/input-types'; -export function useSignInCrossOriginMutation( - params: { - selection: { - fields: S & SignInCrossOriginPayloadSelect; - } & HookStrictSelect, SignInCrossOriginPayloadSelect>; - } & Omit< - UseMutationOptions< - { - signInCrossOrigin: InferSelectResult | null; - }, - Error, - SignInCrossOriginVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - signInCrossOrigin: InferSelectResult | null; - }, - Error, - SignInCrossOriginVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.signInCrossOrigin(), - mutationFn: (variables: SignInCrossOriginVariables) => - getClient() - .mutation.signInCrossOrigin(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignInMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignInMutation.ts deleted file mode 100644 index ff20ed5c4f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSignInMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for signIn - * @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 { SignInVariables } from '../../orm/mutation'; -import type { SignInPayloadSelect, SignInPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SignInVariables } from '../../orm/mutation'; -export type { SignInPayloadSelect } from '../../orm/input-types'; -export function useSignInMutation( - params: { - selection: { - fields: S & SignInPayloadSelect; - } & HookStrictSelect, SignInPayloadSelect>; - } & Omit< - UseMutationOptions< - { - signIn: InferSelectResult | null; - }, - Error, - SignInVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - signIn: InferSelectResult | null; - }, - Error, - SignInVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.signIn(), - mutationFn: (variables: SignInVariables) => - getClient() - .mutation.signIn(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignOutMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignOutMutation.ts deleted file mode 100644 index fba4da1f53..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSignOutMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for signOut - * @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 { SignOutVariables } from '../../orm/mutation'; -import type { SignOutPayloadSelect, SignOutPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SignOutVariables } from '../../orm/mutation'; -export type { SignOutPayloadSelect } from '../../orm/input-types'; -export function useSignOutMutation( - params: { - selection: { - fields: S & SignOutPayloadSelect; - } & HookStrictSelect, SignOutPayloadSelect>; - } & Omit< - UseMutationOptions< - { - signOut: InferSelectResult | null; - }, - Error, - SignOutVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - signOut: InferSelectResult | null; - }, - Error, - SignOutVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.signOut(), - mutationFn: (variables: SignOutVariables) => - getClient() - .mutation.signOut(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignUpMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignUpMutation.ts deleted file mode 100644 index 8dc94a8961..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSignUpMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for signUp - * @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 { SignUpVariables } from '../../orm/mutation'; -import type { SignUpPayloadSelect, SignUpPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SignUpVariables } from '../../orm/mutation'; -export type { SignUpPayloadSelect } from '../../orm/input-types'; -export function useSignUpMutation( - params: { - selection: { - fields: S & SignUpPayloadSelect; - } & HookStrictSelect, SignUpPayloadSelect>; - } & Omit< - UseMutationOptions< - { - signUp: InferSelectResult | null; - }, - Error, - SignUpVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - signUp: InferSelectResult | null; - }, - Error, - SignUpVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.signUp(), - mutationFn: (variables: SignUpVariables) => - getClient() - .mutation.signUp(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSubmitAppInviteCodeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSubmitAppInviteCodeMutation.ts deleted file mode 100644 index e4bc10c97d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSubmitAppInviteCodeMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for submitAppInviteCode - * @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 { SubmitAppInviteCodeVariables } from '../../orm/mutation'; -import type { - SubmitAppInviteCodePayloadSelect, - SubmitAppInviteCodePayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SubmitAppInviteCodeVariables } from '../../orm/mutation'; -export type { SubmitAppInviteCodePayloadSelect } from '../../orm/input-types'; -export function useSubmitAppInviteCodeMutation( - params: { - selection: { - fields: S & SubmitAppInviteCodePayloadSelect; - } & HookStrictSelect, SubmitAppInviteCodePayloadSelect>; - } & Omit< - UseMutationOptions< - { - submitAppInviteCode: InferSelectResult | null; - }, - Error, - SubmitAppInviteCodeVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - submitAppInviteCode: InferSelectResult | null; - }, - Error, - SubmitAppInviteCodeVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.submitAppInviteCode(), - mutationFn: (variables: SubmitAppInviteCodeVariables) => - getClient() - .mutation.submitAppInviteCode(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts deleted file mode 100644 index a2e71103be..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for submitOrgInviteCode - * @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 { SubmitOrgInviteCodeVariables } from '../../orm/mutation'; -import type { - SubmitOrgInviteCodePayloadSelect, - SubmitOrgInviteCodePayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SubmitOrgInviteCodeVariables } from '../../orm/mutation'; -export type { SubmitOrgInviteCodePayloadSelect } from '../../orm/input-types'; -export function useSubmitOrgInviteCodeMutation( - params: { - selection: { - fields: S & SubmitOrgInviteCodePayloadSelect; - } & HookStrictSelect, SubmitOrgInviteCodePayloadSelect>; - } & Omit< - UseMutationOptions< - { - submitOrgInviteCode: InferSelectResult | null; - }, - Error, - SubmitOrgInviteCodeVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - submitOrgInviteCode: InferSelectResult | null; - }, - Error, - SubmitOrgInviteCodeVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.submitOrgInviteCode(), - mutationFn: (variables: SubmitOrgInviteCodeVariables) => - getClient() - .mutation.submitOrgInviteCode(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts deleted file mode 100644 index a41e1b8b92..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appAdminGrantKeys } from '../query-keys'; -import { appAdminGrantMutationKeys } from '../mutation-keys'; -import type { - AppAdminGrantSelect, - AppAdminGrantWithRelations, - AppAdminGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppAdminGrantSelect, - AppAdminGrantWithRelations, - AppAdminGrantPatch, -} from '../../orm/input-types'; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppAdminGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appAdminGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppAdminGrantMutation( - params: { - selection: { - fields: S & AppAdminGrantSelect; - } & HookStrictSelect, AppAdminGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appAdminGrantPatch: AppAdminGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appAdminGrantPatch: AppAdminGrantPatch; - } ->; -export function useUpdateAppAdminGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appAdminGrantPatch: AppAdminGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appAdminGrantMutationKeys.all, - mutationFn: ({ - id, - appAdminGrantPatch, - }: { - id: string; - appAdminGrantPatch: AppAdminGrantPatch; - }) => - getClient() - .appAdminGrant.update({ - where: { - id, - }, - data: appAdminGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppClaimedInviteMutation.ts deleted file mode 100644 index 10b0e5aeb1..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppClaimedInviteMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appClaimedInviteKeys } from '../query-keys'; -import { appClaimedInviteMutationKeys } from '../mutation-keys'; -import type { - AppClaimedInviteSelect, - AppClaimedInviteWithRelations, - AppClaimedInvitePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppClaimedInviteSelect, - AppClaimedInviteWithRelations, - AppClaimedInvitePatch, -} from '../../orm/input-types'; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppClaimedInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appClaimedInvitePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppClaimedInviteMutation( - params: { - selection: { - fields: S & AppClaimedInviteSelect; - } & HookStrictSelect, AppClaimedInviteSelect>; - } & Omit< - UseMutationOptions< - { - updateAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; - } ->; -export function useUpdateAppClaimedInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appClaimedInviteMutationKeys.all, - mutationFn: ({ - id, - appClaimedInvitePatch, - }: { - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; - }) => - getClient() - .appClaimedInvite.update({ - where: { - id, - }, - data: appClaimedInvitePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts deleted file mode 100644 index d0cb6ba8fc..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appGrantKeys } from '../query-keys'; -import { appGrantMutationKeys } from '../mutation-keys'; -import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppGrantMutation( - params: { - selection: { - fields: S & AppGrantSelect; - } & HookStrictSelect, AppGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateAppGrant: { - appGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appGrantPatch: AppGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppGrant: { - appGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appGrantPatch: AppGrantPatch; - } ->; -export function useUpdateAppGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appGrantPatch: AppGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appGrantMutationKeys.all, - mutationFn: ({ id, appGrantPatch }: { id: string; appGrantPatch: AppGrantPatch }) => - getClient() - .appGrant.update({ - where: { - id, - }, - data: appGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppInviteMutation.ts deleted file mode 100644 index c2e182b612..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppInviteMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appInviteKeys } from '../query-keys'; -import { appInviteMutationKeys } from '../mutation-keys'; -import type { - AppInviteSelect, - AppInviteWithRelations, - AppInvitePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppInviteSelect, - AppInviteWithRelations, - AppInvitePatch, -} from '../../orm/input-types'; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appInvitePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppInviteMutation( - params: { - selection: { - fields: S & AppInviteSelect; - } & HookStrictSelect, AppInviteSelect>; - } & Omit< - UseMutationOptions< - { - updateAppInvite: { - appInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - appInvitePatch: AppInvitePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppInvite: { - appInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - appInvitePatch: AppInvitePatch; - } ->; -export function useUpdateAppInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appInvitePatch: AppInvitePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appInviteMutationKeys.all, - mutationFn: ({ id, appInvitePatch }: { id: string; appInvitePatch: AppInvitePatch }) => - getClient() - .appInvite.update({ - where: { - id, - }, - data: appInvitePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCapMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCapMutation.ts deleted file mode 100644 index 965a602809..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCapMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapKeys } from '../query-keys'; -import { appLimitCapMutationKeys } from '../mutation-keys'; -import type { - AppLimitCapSelect, - AppLimitCapWithRelations, - AppLimitCapPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCapSelect, - AppLimitCapWithRelations, - AppLimitCapPatch, -} from '../../orm/input-types'; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitCapMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitCapPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitCapMutation( - params: { - selection: { - fields: S & AppLimitCapSelect; - } & HookStrictSelect, AppLimitCapSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCapPatch: AppLimitCapPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCapPatch: AppLimitCapPatch; - } ->; -export function useUpdateAppLimitCapMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitCapPatch: AppLimitCapPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCapMutationKeys.all, - mutationFn: ({ id, appLimitCapPatch }: { id: string; appLimitCapPatch: AppLimitCapPatch }) => - getClient() - .appLimitCap.update({ - where: { - id, - }, - data: appLimitCapPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCapsDefaultMutation.ts deleted file mode 100644 index f881cbfa93..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCapsDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapsDefaultKeys } from '../query-keys'; -import { appLimitCapsDefaultMutationKeys } from '../mutation-keys'; -import type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, - AppLimitCapsDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, - AppLimitCapsDefaultPatch, -} from '../../orm/input-types'; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitCapsDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitCapsDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitCapsDefaultMutation( - params: { - selection: { - fields: S & AppLimitCapsDefaultSelect; - } & HookStrictSelect, AppLimitCapsDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; - } ->; -export function useUpdateAppLimitCapsDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCapsDefaultMutationKeys.all, - mutationFn: ({ - id, - appLimitCapsDefaultPatch, - }: { - id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; - }) => - getClient() - .appLimitCapsDefault.update({ - where: { - id, - }, - data: appLimitCapsDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCapsDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditCodeItemMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditCodeItemMutation.ts deleted file mode 100644 index fc06f90591..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditCodeItemMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Items within a credit code — each row grants credits for a specific limit definition - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeItemKeys } from '../query-keys'; -import { appLimitCreditCodeItemMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, - AppLimitCreditCodeItemPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, - AppLimitCreditCodeItemPatch, -} from '../../orm/input-types'; -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitCreditCodeItemMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitCreditCodeItemPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitCreditCodeItemMutation( - params: { - selection: { - fields: S & AppLimitCreditCodeItemSelect; - } & HookStrictSelect, AppLimitCreditCodeItemSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; - } ->; -export function useUpdateAppLimitCreditCodeItemMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditCodeItemMutationKeys.all, - mutationFn: ({ - id, - appLimitCreditCodeItemPatch, - }: { - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; - }) => - getClient() - .appLimitCreditCodeItem.update({ - where: { - id, - }, - data: appLimitCreditCodeItemPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeItemKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts deleted file mode 100644 index 2fcf15adf6..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Redeemable credit codes managed by admins with the add_credits permission - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeKeys } from '../query-keys'; -import { appLimitCreditCodeMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, - AppLimitCreditCodePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, - AppLimitCreditCodePatch, -} from '../../orm/input-types'; -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitCreditCodeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitCreditCodePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitCreditCodeMutation( - params: { - selection: { - fields: S & AppLimitCreditCodeSelect; - } & HookStrictSelect, AppLimitCreditCodeSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; - } ->; -export function useUpdateAppLimitCreditCodeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditCodeMutationKeys.all, - mutationFn: ({ - id, - appLimitCreditCodePatch, - }: { - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; - }) => - getClient() - .appLimitCreditCode.update({ - where: { - id, - }, - data: appLimitCreditCodePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditMutation.ts deleted file mode 100644 index 4283aef632..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditKeys } from '../query-keys'; -import { appLimitCreditMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditSelect, - AppLimitCreditWithRelations, - AppLimitCreditPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditSelect, - AppLimitCreditWithRelations, - AppLimitCreditPatch, -} from '../../orm/input-types'; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitCreditMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitCreditPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitCreditMutation( - params: { - selection: { - fields: S & AppLimitCreditSelect; - } & HookStrictSelect, AppLimitCreditSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditPatch: AppLimitCreditPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditPatch: AppLimitCreditPatch; - } ->; -export function useUpdateAppLimitCreditMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitCreditPatch: AppLimitCreditPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditMutationKeys.all, - mutationFn: ({ - id, - appLimitCreditPatch, - }: { - id: string; - appLimitCreditPatch: AppLimitCreditPatch; - }) => - getClient() - .appLimitCredit.update({ - where: { - id, - }, - data: appLimitCreditPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditRedemptionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditRedemptionMutation.ts deleted file mode 100644 index d1181e58af..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitCreditRedemptionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditRedemptionKeys } from '../query-keys'; -import { appLimitCreditRedemptionMutationKeys } from '../mutation-keys'; -import type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, - AppLimitCreditRedemptionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, - AppLimitCreditRedemptionPatch, -} from '../../orm/input-types'; -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitCreditRedemptionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitCreditRedemptionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitCreditRedemptionMutation( - params: { - selection: { - fields: S & AppLimitCreditRedemptionSelect; - } & HookStrictSelect, AppLimitCreditRedemptionSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; - } ->; -export function useUpdateAppLimitCreditRedemptionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitCreditRedemptionMutationKeys.all, - mutationFn: ({ - id, - appLimitCreditRedemptionPatch, - }: { - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; - }) => - getClient() - .appLimitCreditRedemption.update({ - where: { - id, - }, - data: appLimitCreditRedemptionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitCreditRedemptionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts deleted file mode 100644 index d5402ef936..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitDefaultKeys } from '../query-keys'; -import { appLimitDefaultMutationKeys } from '../mutation-keys'; -import type { - AppLimitDefaultSelect, - AppLimitDefaultWithRelations, - AppLimitDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitDefaultSelect, - AppLimitDefaultWithRelations, - AppLimitDefaultPatch, -} from '../../orm/input-types'; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitDefaultMutation( - params: { - selection: { - fields: S & AppLimitDefaultSelect; - } & HookStrictSelect, AppLimitDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; - } ->; -export function useUpdateAppLimitDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitDefaultMutationKeys.all, - mutationFn: ({ - id, - appLimitDefaultPatch, - }: { - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; - }) => - getClient() - .appLimitDefault.update({ - where: { - id, - }, - data: appLimitDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts deleted file mode 100644 index 7234a1d236..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitEventKeys } from '../query-keys'; -import { appLimitEventMutationKeys } from '../mutation-keys'; -import type { - AppLimitEventSelect, - AppLimitEventWithRelations, - AppLimitEventPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitEventSelect, - AppLimitEventWithRelations, - AppLimitEventPatch, -} from '../../orm/input-types'; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitEventMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitEventPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitEventMutation( - params: { - selection: { - fields: S & AppLimitEventSelect; - } & HookStrictSelect, AppLimitEventSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitEventPatch: AppLimitEventPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitEventPatch: AppLimitEventPatch; - } ->; -export function useUpdateAppLimitEventMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitEventPatch: AppLimitEventPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitEventMutationKeys.all, - mutationFn: ({ - id, - appLimitEventPatch, - }: { - id: string; - appLimitEventPatch: AppLimitEventPatch; - }) => - getClient() - .appLimitEvent.update({ - where: { - id, - }, - data: appLimitEventPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts deleted file mode 100644 index 5f606dc733..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitKeys } from '../query-keys'; -import { appLimitMutationKeys } from '../mutation-keys'; -import type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitMutation( - params: { - selection: { - fields: S & AppLimitSelect; - } & HookStrictSelect, AppLimitSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimit: { - appLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitPatch: AppLimitPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimit: { - appLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitPatch: AppLimitPatch; - } ->; -export function useUpdateAppLimitMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitPatch: AppLimitPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitMutationKeys.all, - mutationFn: ({ id, appLimitPatch }: { id: string; appLimitPatch: AppLimitPatch }) => - getClient() - .appLimit.update({ - where: { - id, - }, - data: appLimitPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitWarningMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitWarningMutation.ts deleted file mode 100644 index da3993cd0e..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitWarningMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitWarningKeys } from '../query-keys'; -import { appLimitWarningMutationKeys } from '../mutation-keys'; -import type { - AppLimitWarningSelect, - AppLimitWarningWithRelations, - AppLimitWarningPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitWarningSelect, - AppLimitWarningWithRelations, - AppLimitWarningPatch, -} from '../../orm/input-types'; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppLimitWarningMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appLimitWarningPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppLimitWarningMutation( - params: { - selection: { - fields: S & AppLimitWarningSelect; - } & HookStrictSelect, AppLimitWarningSelect>; - } & Omit< - UseMutationOptions< - { - updateAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitWarningPatch: AppLimitWarningPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - appLimitWarningPatch: AppLimitWarningPatch; - } ->; -export function useUpdateAppLimitWarningMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appLimitWarningPatch: AppLimitWarningPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appLimitWarningMutationKeys.all, - mutationFn: ({ - id, - appLimitWarningPatch, - }: { - id: string; - appLimitWarningPatch: AppLimitWarningPatch; - }) => - getClient() - .appLimitWarning.update({ - where: { - id, - }, - data: appLimitWarningPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts deleted file mode 100644 index 72d872f428..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipDefaultKeys } from '../query-keys'; -import { appMembershipDefaultMutationKeys } from '../mutation-keys'; -import type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, - AppMembershipDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, - AppMembershipDefaultPatch, -} from '../../orm/input-types'; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppMembershipDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appMembershipDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppMembershipDefaultMutation( - params: { - selection: { - fields: S & AppMembershipDefaultSelect; - } & HookStrictSelect, AppMembershipDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; - } ->; -export function useUpdateAppMembershipDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipDefaultMutationKeys.all, - mutationFn: ({ - id, - appMembershipDefaultPatch, - }: { - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; - }) => - getClient() - .appMembershipDefault.update({ - where: { - id, - }, - data: appMembershipDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts deleted file mode 100644 index 7ead9bdc26..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipKeys } from '../query-keys'; -import { appMembershipMutationKeys } from '../mutation-keys'; -import type { - AppMembershipSelect, - AppMembershipWithRelations, - AppMembershipPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipSelect, - AppMembershipWithRelations, - AppMembershipPatch, -} from '../../orm/input-types'; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppMembershipMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appMembershipPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppMembershipMutation( - params: { - selection: { - fields: S & AppMembershipSelect; - } & HookStrictSelect, AppMembershipSelect>; - } & Omit< - UseMutationOptions< - { - updateAppMembership: { - appMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - appMembershipPatch: AppMembershipPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppMembership: { - appMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - appMembershipPatch: AppMembershipPatch; - } ->; -export function useUpdateAppMembershipMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appMembershipPatch: AppMembershipPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appMembershipMutationKeys.all, - mutationFn: ({ - id, - appMembershipPatch, - }: { - id: string; - appMembershipPatch: AppMembershipPatch; - }) => - getClient() - .appMembership.update({ - where: { - id, - }, - data: appMembershipPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts deleted file mode 100644 index 7db485406d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appOwnerGrantKeys } from '../query-keys'; -import { appOwnerGrantMutationKeys } from '../mutation-keys'; -import type { - AppOwnerGrantSelect, - AppOwnerGrantWithRelations, - AppOwnerGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppOwnerGrantSelect, - AppOwnerGrantWithRelations, - AppOwnerGrantPatch, -} from '../../orm/input-types'; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppOwnerGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appOwnerGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppOwnerGrantMutation( - params: { - selection: { - fields: S & AppOwnerGrantSelect; - } & HookStrictSelect, AppOwnerGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; - } ->; -export function useUpdateAppOwnerGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appOwnerGrantMutationKeys.all, - mutationFn: ({ - id, - appOwnerGrantPatch, - }: { - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; - }) => - getClient() - .appOwnerGrant.update({ - where: { - id, - }, - data: appOwnerGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts deleted file mode 100644 index 9933bb8ebc..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionDefaultKeys } from '../query-keys'; -import { appPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultPatch, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appPermissionDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppPermissionDefaultMutation( - params: { - selection: { - fields: S & AppPermissionDefaultSelect; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - } ->; -export function useUpdateAppPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionDefaultMutationKeys.all, - mutationFn: ({ - id, - appPermissionDefaultPatch, - }: { - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; - }) => - getClient() - .appPermissionDefault.update({ - where: { - id, - }, - data: appPermissionDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts deleted file mode 100644 index 0b42bacb2f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionKeys } from '../query-keys'; -import { appPermissionMutationKeys } from '../mutation-keys'; -import type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionPatch, -} from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAppPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', appPermissionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAppPermissionMutation( - params: { - selection: { - fields: S & AppPermissionSelect; - } & HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseMutationOptions< - { - updateAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionPatch: AppPermissionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAppPermission: { - appPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - appPermissionPatch: AppPermissionPatch; - } ->; -export function useUpdateAppPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - appPermissionPatch: AppPermissionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appPermissionMutationKeys.all, - mutationFn: ({ - id, - appPermissionPatch, - }: { - id: string; - appPermissionPatch: AppPermissionPatch; - }) => - getClient() - .appPermission.update({ - where: { - id, - }, - data: appPermissionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: appPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogAuthMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogAuthMutation.ts deleted file mode 100644 index 5d807d05ad..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogAuthMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { auditLogAuthKeys } from '../query-keys'; -import { auditLogAuthMutationKeys } from '../mutation-keys'; -import type { - AuditLogAuthSelect, - AuditLogAuthWithRelations, - AuditLogAuthPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AuditLogAuthSelect, - AuditLogAuthWithRelations, - AuditLogAuthPatch, -} from '../../orm/input-types'; -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAuditLogAuthMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', auditLogAuthPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAuditLogAuthMutation( - params: { - selection: { - fields: S & AuditLogAuthSelect; - } & HookStrictSelect, AuditLogAuthSelect>; - } & Omit< - UseMutationOptions< - { - updateAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }, - Error, - { - id: string; - auditLogAuthPatch: AuditLogAuthPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }, - Error, - { - id: string; - auditLogAuthPatch: AuditLogAuthPatch; - } ->; -export function useUpdateAuditLogAuthMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - auditLogAuthPatch: AuditLogAuthPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: auditLogAuthMutationKeys.all, - mutationFn: ({ id, auditLogAuthPatch }: { id: string; auditLogAuthPatch: AuditLogAuthPatch }) => - getClient() - .auditLogAuth.update({ - where: { - id, - }, - data: auditLogAuthPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: auditLogAuthKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: auditLogAuthKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts deleted file mode 100644 index f154244b5c..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { cryptoAddressKeys } from '../query-keys'; -import { cryptoAddressMutationKeys } from '../mutation-keys'; -import type { - CryptoAddressSelect, - CryptoAddressWithRelations, - CryptoAddressPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - CryptoAddressSelect, - CryptoAddressWithRelations, - CryptoAddressPatch, -} from '../../orm/input-types'; -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateCryptoAddressMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', cryptoAddressPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateCryptoAddressMutation( - params: { - selection: { - fields: S & CryptoAddressSelect; - } & HookStrictSelect, CryptoAddressSelect>; - } & Omit< - UseMutationOptions< - { - updateCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }, - Error, - { - id: string; - cryptoAddressPatch: CryptoAddressPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }, - Error, - { - id: string; - cryptoAddressPatch: CryptoAddressPatch; - } ->; -export function useUpdateCryptoAddressMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - cryptoAddressPatch: CryptoAddressPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: cryptoAddressMutationKeys.all, - mutationFn: ({ - id, - cryptoAddressPatch, - }: { - id: string; - cryptoAddressPatch: CryptoAddressPatch; - }) => - getClient() - .cryptoAddress.update({ - where: { - id, - }, - data: cryptoAddressPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts deleted file mode 100644 index 94c754ac4d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * User email addresses with verification and primary-email management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { emailKeys } from '../query-keys'; -import { emailMutationKeys } from '../mutation-keys'; -import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; -/** - * User email addresses with verification and primary-email management - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateEmailMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', emailPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateEmailMutation( - params: { - selection: { - fields: S & EmailSelect; - } & HookStrictSelect, EmailSelect>; - } & Omit< - UseMutationOptions< - { - updateEmail: { - email: InferSelectResult; - }; - }, - Error, - { - id: string; - emailPatch: EmailPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateEmail: { - email: InferSelectResult; - }; - }, - Error, - { - id: string; - emailPatch: EmailPatch; - } ->; -export function useUpdateEmailMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - emailPatch: EmailPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: emailMutationKeys.all, - mutationFn: ({ id, emailPatch }: { id: string; emailPatch: EmailPatch }) => - getClient() - .email.update({ - where: { - id, - }, - data: emailPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: emailKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts deleted file mode 100644 index 36101d2c0f..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { membershipTypeKeys } from '../query-keys'; -import { membershipTypeMutationKeys } from '../mutation-keys'; -import type { - MembershipTypeSelect, - MembershipTypeWithRelations, - MembershipTypePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MembershipTypeSelect, - MembershipTypeWithRelations, - MembershipTypePatch, -} from '../../orm/input-types'; -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateMembershipTypeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', membershipTypePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateMembershipTypeMutation( - params: { - selection: { - fields: S & MembershipTypeSelect; - } & HookStrictSelect, MembershipTypeSelect>; - } & Omit< - UseMutationOptions< - { - updateMembershipType: { - membershipType: InferSelectResult; - }; - }, - Error, - { - id: number; - membershipTypePatch: MembershipTypePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateMembershipType: { - membershipType: InferSelectResult; - }; - }, - Error, - { - id: number; - membershipTypePatch: MembershipTypePatch; - } ->; -export function useUpdateMembershipTypeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: number; - membershipTypePatch: MembershipTypePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: membershipTypeMutationKeys.all, - mutationFn: ({ - id, - membershipTypePatch, - }: { - id: number; - membershipTypePatch: MembershipTypePatch; - }) => - getClient() - .membershipType.update({ - where: { - id, - }, - data: membershipTypePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts deleted file mode 100644 index a33b9997e0..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgAdminGrantKeys } from '../query-keys'; -import { orgAdminGrantMutationKeys } from '../mutation-keys'; -import type { - OrgAdminGrantSelect, - OrgAdminGrantWithRelations, - OrgAdminGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgAdminGrantSelect, - OrgAdminGrantWithRelations, - OrgAdminGrantPatch, -} from '../../orm/input-types'; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgAdminGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgAdminGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgAdminGrantMutation( - params: { - selection: { - fields: S & OrgAdminGrantSelect; - } & HookStrictSelect, OrgAdminGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; - } ->; -export function useUpdateOrgAdminGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgAdminGrantMutationKeys.all, - mutationFn: ({ - id, - orgAdminGrantPatch, - }: { - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; - }) => - getClient() - .orgAdminGrant.update({ - where: { - id, - }, - data: orgAdminGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts deleted file mode 100644 index 151d9fa114..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeGrantKeys } from '../query-keys'; -import { orgChartEdgeGrantMutationKeys } from '../mutation-keys'; -import type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, - OrgChartEdgeGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, - OrgChartEdgeGrantPatch, -} from '../../orm/input-types'; -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgChartEdgeGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgChartEdgeGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgChartEdgeGrantMutation( - params: { - selection: { - fields: S & OrgChartEdgeGrantSelect; - } & HookStrictSelect, OrgChartEdgeGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; - } ->; -export function useUpdateOrgChartEdgeGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgChartEdgeGrantMutationKeys.all, - mutationFn: ({ - id, - orgChartEdgeGrantPatch, - }: { - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; - }) => - getClient() - .orgChartEdgeGrant.update({ - where: { - id, - }, - data: orgChartEdgeGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgChartEdgeGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgChartEdgeGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts deleted file mode 100644 index e169ad09a2..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgChartEdgeMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeKeys } from '../query-keys'; -import { orgChartEdgeMutationKeys } from '../mutation-keys'; -import type { - OrgChartEdgeSelect, - OrgChartEdgeWithRelations, - OrgChartEdgePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgChartEdgeSelect, - OrgChartEdgeWithRelations, - OrgChartEdgePatch, -} from '../../orm/input-types'; -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgChartEdgeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgChartEdgePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgChartEdgeMutation( - params: { - selection: { - fields: S & OrgChartEdgeSelect; - } & HookStrictSelect, OrgChartEdgeSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }, - Error, - { - id: string; - orgChartEdgePatch: OrgChartEdgePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }, - Error, - { - id: string; - orgChartEdgePatch: OrgChartEdgePatch; - } ->; -export function useUpdateOrgChartEdgeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgChartEdgePatch: OrgChartEdgePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgChartEdgeMutationKeys.all, - mutationFn: ({ id, orgChartEdgePatch }: { id: string; orgChartEdgePatch: OrgChartEdgePatch }) => - getClient() - .orgChartEdge.update({ - where: { - id, - }, - data: orgChartEdgePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts deleted file mode 100644 index 536c3ba76b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgClaimedInviteKeys } from '../query-keys'; -import { orgClaimedInviteMutationKeys } from '../mutation-keys'; -import type { - OrgClaimedInviteSelect, - OrgClaimedInviteWithRelations, - OrgClaimedInvitePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgClaimedInviteSelect, - OrgClaimedInviteWithRelations, - OrgClaimedInvitePatch, -} from '../../orm/input-types'; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgClaimedInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgClaimedInvitePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgClaimedInviteMutation( - params: { - selection: { - fields: S & OrgClaimedInviteSelect; - } & HookStrictSelect, OrgClaimedInviteSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; - } ->; -export function useUpdateOrgClaimedInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgClaimedInviteMutationKeys.all, - mutationFn: ({ - id, - orgClaimedInvitePatch, - }: { - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; - }) => - getClient() - .orgClaimedInvite.update({ - where: { - id, - }, - data: orgClaimedInvitePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgClaimedInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgClaimedInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts deleted file mode 100644 index 50e7255807..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGrantKeys } from '../query-keys'; -import { orgGrantMutationKeys } from '../mutation-keys'; -import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgGrantMutation( - params: { - selection: { - fields: S & OrgGrantSelect; - } & HookStrictSelect, OrgGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgGrant: { - orgGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgGrantPatch: OrgGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgGrant: { - orgGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgGrantPatch: OrgGrantPatch; - } ->; -export function useUpdateOrgGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgGrantPatch: OrgGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgGrantMutationKeys.all, - mutationFn: ({ id, orgGrantPatch }: { id: string; orgGrantPatch: OrgGrantPatch }) => - getClient() - .orgGrant.update({ - where: { - id, - }, - data: orgGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts deleted file mode 100644 index deae91a03c..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgInviteKeys } from '../query-keys'; -import { orgInviteMutationKeys } from '../mutation-keys'; -import type { - OrgInviteSelect, - OrgInviteWithRelations, - OrgInvitePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgInviteSelect, - OrgInviteWithRelations, - OrgInvitePatch, -} from '../../orm/input-types'; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgInviteMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgInvitePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgInviteMutation( - params: { - selection: { - fields: S & OrgInviteSelect; - } & HookStrictSelect, OrgInviteSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgInvite: { - orgInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - orgInvitePatch: OrgInvitePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgInvite: { - orgInvite: InferSelectResult; - }; - }, - Error, - { - id: string; - orgInvitePatch: OrgInvitePatch; - } ->; -export function useUpdateOrgInviteMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgInvitePatch: OrgInvitePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgInviteMutationKeys.all, - mutationFn: ({ id, orgInvitePatch }: { id: string; orgInvitePatch: OrgInvitePatch }) => - getClient() - .orgInvite.update({ - where: { - id, - }, - data: orgInvitePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgInviteKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgInviteKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts deleted file mode 100644 index 1c24df7ca9..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitAggregateKeys } from '../query-keys'; -import { orgLimitAggregateMutationKeys } from '../mutation-keys'; -import type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, - OrgLimitAggregatePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, - OrgLimitAggregatePatch, -} from '../../orm/input-types'; -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitAggregateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitAggregatePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitAggregateMutation( - params: { - selection: { - fields: S & OrgLimitAggregateSelect; - } & HookStrictSelect, OrgLimitAggregateSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; - } ->; -export function useUpdateOrgLimitAggregateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitAggregateMutationKeys.all, - mutationFn: ({ - id, - orgLimitAggregatePatch, - }: { - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; - }) => - getClient() - .orgLimitAggregate.update({ - where: { - id, - }, - data: orgLimitAggregatePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitAggregateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCapMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCapMutation.ts deleted file mode 100644 index 042098c778..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCapMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapKeys } from '../query-keys'; -import { orgLimitCapMutationKeys } from '../mutation-keys'; -import type { - OrgLimitCapSelect, - OrgLimitCapWithRelations, - OrgLimitCapPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCapSelect, - OrgLimitCapWithRelations, - OrgLimitCapPatch, -} from '../../orm/input-types'; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitCapMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitCapPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitCapMutation( - params: { - selection: { - fields: S & OrgLimitCapSelect; - } & HookStrictSelect, OrgLimitCapSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitCapPatch: OrgLimitCapPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitCapPatch: OrgLimitCapPatch; - } ->; -export function useUpdateOrgLimitCapMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitCapPatch: OrgLimitCapPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCapMutationKeys.all, - mutationFn: ({ id, orgLimitCapPatch }: { id: string; orgLimitCapPatch: OrgLimitCapPatch }) => - getClient() - .orgLimitCap.update({ - where: { - id, - }, - data: orgLimitCapPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitCapKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCapsDefaultMutation.ts deleted file mode 100644 index 9d7b74e933..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCapsDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapsDefaultKeys } from '../query-keys'; -import { orgLimitCapsDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, - OrgLimitCapsDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, - OrgLimitCapsDefaultPatch, -} from '../../orm/input-types'; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitCapsDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitCapsDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitCapsDefaultMutation( - params: { - selection: { - fields: S & OrgLimitCapsDefaultSelect; - } & HookStrictSelect, OrgLimitCapsDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; - } ->; -export function useUpdateOrgLimitCapsDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCapsDefaultMutationKeys.all, - mutationFn: ({ - id, - orgLimitCapsDefaultPatch, - }: { - id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; - }) => - getClient() - .orgLimitCapsDefault.update({ - where: { - id, - }, - data: orgLimitCapsDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitCapsDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCreditMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCreditMutation.ts deleted file mode 100644 index deb27f48da..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitCreditMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCreditKeys } from '../query-keys'; -import { orgLimitCreditMutationKeys } from '../mutation-keys'; -import type { - OrgLimitCreditSelect, - OrgLimitCreditWithRelations, - OrgLimitCreditPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCreditSelect, - OrgLimitCreditWithRelations, - OrgLimitCreditPatch, -} from '../../orm/input-types'; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitCreditMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitCreditPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitCreditMutation( - params: { - selection: { - fields: S & OrgLimitCreditSelect; - } & HookStrictSelect, OrgLimitCreditSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; - } ->; -export function useUpdateOrgLimitCreditMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitCreditMutationKeys.all, - mutationFn: ({ - id, - orgLimitCreditPatch, - }: { - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; - }) => - getClient() - .orgLimitCredit.update({ - where: { - id, - }, - data: orgLimitCreditPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitCreditKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts deleted file mode 100644 index c80fc084e0..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitDefaultKeys } from '../query-keys'; -import { orgLimitDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgLimitDefaultSelect, - OrgLimitDefaultWithRelations, - OrgLimitDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitDefaultSelect, - OrgLimitDefaultWithRelations, - OrgLimitDefaultPatch, -} from '../../orm/input-types'; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitDefaultMutation( - params: { - selection: { - fields: S & OrgLimitDefaultSelect; - } & HookStrictSelect, OrgLimitDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; - } ->; -export function useUpdateOrgLimitDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitDefaultMutationKeys.all, - mutationFn: ({ - id, - orgLimitDefaultPatch, - }: { - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; - }) => - getClient() - .orgLimitDefault.update({ - where: { - id, - }, - data: orgLimitDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts deleted file mode 100644 index 6809f97605..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitEventKeys } from '../query-keys'; -import { orgLimitEventMutationKeys } from '../mutation-keys'; -import type { - OrgLimitEventSelect, - OrgLimitEventWithRelations, - OrgLimitEventPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitEventSelect, - OrgLimitEventWithRelations, - OrgLimitEventPatch, -} from '../../orm/input-types'; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitEventMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitEventPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitEventMutation( - params: { - selection: { - fields: S & OrgLimitEventSelect; - } & HookStrictSelect, OrgLimitEventSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitEventPatch: OrgLimitEventPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitEventPatch: OrgLimitEventPatch; - } ->; -export function useUpdateOrgLimitEventMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitEventPatch: OrgLimitEventPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitEventMutationKeys.all, - mutationFn: ({ - id, - orgLimitEventPatch, - }: { - id: string; - orgLimitEventPatch: OrgLimitEventPatch; - }) => - getClient() - .orgLimitEvent.update({ - where: { - id, - }, - data: orgLimitEventPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts deleted file mode 100644 index b911eef595..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitKeys } from '../query-keys'; -import { orgLimitMutationKeys } from '../mutation-keys'; -import type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitMutation( - params: { - selection: { - fields: S & OrgLimitSelect; - } & HookStrictSelect, OrgLimitSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimit: { - orgLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitPatch: OrgLimitPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimit: { - orgLimit: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitPatch: OrgLimitPatch; - } ->; -export function useUpdateOrgLimitMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitPatch: OrgLimitPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitMutationKeys.all, - mutationFn: ({ id, orgLimitPatch }: { id: string; orgLimitPatch: OrgLimitPatch }) => - getClient() - .orgLimit.update({ - where: { - id, - }, - data: orgLimitPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitWarningMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitWarningMutation.ts deleted file mode 100644 index 7141728e46..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitWarningMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitWarningKeys } from '../query-keys'; -import { orgLimitWarningMutationKeys } from '../mutation-keys'; -import type { - OrgLimitWarningSelect, - OrgLimitWarningWithRelations, - OrgLimitWarningPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitWarningSelect, - OrgLimitWarningWithRelations, - OrgLimitWarningPatch, -} from '../../orm/input-types'; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgLimitWarningMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgLimitWarningPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgLimitWarningMutation( - params: { - selection: { - fields: S & OrgLimitWarningSelect; - } & HookStrictSelect, OrgLimitWarningSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }, - Error, - { - id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; - } ->; -export function useUpdateOrgLimitWarningMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgLimitWarningMutationKeys.all, - mutationFn: ({ - id, - orgLimitWarningPatch, - }: { - id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; - }) => - getClient() - .orgLimitWarning.update({ - where: { - id, - }, - data: orgLimitWarningPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts deleted file mode 100644 index 9afc577fbd..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberKeys } from '../query-keys'; -import { orgMemberMutationKeys } from '../mutation-keys'; -import type { - OrgMemberSelect, - OrgMemberWithRelations, - OrgMemberPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMemberSelect, - OrgMemberWithRelations, - OrgMemberPatch, -} from '../../orm/input-types'; -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgMemberMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgMemberPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgMemberMutation( - params: { - selection: { - fields: S & OrgMemberSelect; - } & HookStrictSelect, OrgMemberSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgMember: { - orgMember: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMemberPatch: OrgMemberPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgMember: { - orgMember: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMemberPatch: OrgMemberPatch; - } ->; -export function useUpdateOrgMemberMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgMemberPatch: OrgMemberPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMemberMutationKeys.all, - mutationFn: ({ id, orgMemberPatch }: { id: string; orgMemberPatch: OrgMemberPatch }) => - getClient() - .orgMember.update({ - where: { - id, - }, - data: orgMemberPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgMemberKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMemberKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberProfileMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberProfileMutation.ts deleted file mode 100644 index 2dcb8b95c4..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberProfileMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberProfileKeys } from '../query-keys'; -import { orgMemberProfileMutationKeys } from '../mutation-keys'; -import type { - OrgMemberProfileSelect, - OrgMemberProfileWithRelations, - OrgMemberProfilePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMemberProfileSelect, - OrgMemberProfileWithRelations, - OrgMemberProfilePatch, -} from '../../orm/input-types'; -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgMemberProfileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgMemberProfilePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgMemberProfileMutation( - params: { - selection: { - fields: S & OrgMemberProfileSelect; - } & HookStrictSelect, OrgMemberProfileSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; - } ->; -export function useUpdateOrgMemberProfileMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMemberProfileMutationKeys.all, - mutationFn: ({ - id, - orgMemberProfilePatch, - }: { - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; - }) => - getClient() - .orgMemberProfile.update({ - where: { - id, - }, - data: orgMemberProfilePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts deleted file mode 100644 index 4536a0d0fe..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipDefaultKeys } from '../query-keys'; -import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, - OrgMembershipDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, - OrgMembershipDefaultPatch, -} from '../../orm/input-types'; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgMembershipDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgMembershipDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgMembershipDefaultMutation( - params: { - selection: { - fields: S & OrgMembershipDefaultSelect; - } & HookStrictSelect, OrgMembershipDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; - } ->; -export function useUpdateOrgMembershipDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipDefaultMutationKeys.all, - mutationFn: ({ - id, - orgMembershipDefaultPatch, - }: { - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; - }) => - getClient() - .orgMembershipDefault.update({ - where: { - id, - }, - data: orgMembershipDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts deleted file mode 100644 index af8939d5ed..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipKeys } from '../query-keys'; -import { orgMembershipMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipSelect, - OrgMembershipWithRelations, - OrgMembershipPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipSelect, - OrgMembershipWithRelations, - OrgMembershipPatch, -} from '../../orm/input-types'; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgMembershipMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgMembershipPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgMembershipMutation( - params: { - selection: { - fields: S & OrgMembershipSelect; - } & HookStrictSelect, OrgMembershipSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgMembership: { - orgMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipPatch: OrgMembershipPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgMembership: { - orgMembership: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipPatch: OrgMembershipPatch; - } ->; -export function useUpdateOrgMembershipMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgMembershipPatch: OrgMembershipPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipMutationKeys.all, - mutationFn: ({ - id, - orgMembershipPatch, - }: { - id: string; - orgMembershipPatch: OrgMembershipPatch; - }) => - getClient() - .orgMembership.update({ - where: { - id, - }, - data: orgMembershipPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.ts deleted file mode 100644 index fe9a9555f7..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipSettingMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Per-entity settings for the memberships 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 { orgMembershipSettingKeys } from '../query-keys'; -import { orgMembershipSettingMutationKeys } from '../mutation-keys'; -import type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, - OrgMembershipSettingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, - OrgMembershipSettingPatch, -} from '../../orm/input-types'; -/** - * Per-entity settings for the memberships module - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgMembershipSettingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgMembershipSettingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgMembershipSettingMutation( - params: { - selection: { - fields: S & OrgMembershipSettingSelect; - } & HookStrictSelect, OrgMembershipSettingSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }, - Error, - { - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; - } ->; -export function useUpdateOrgMembershipSettingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgMembershipSettingMutationKeys.all, - mutationFn: ({ - id, - orgMembershipSettingPatch, - }: { - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; - }) => - getClient() - .orgMembershipSetting.update({ - where: { - id, - }, - data: orgMembershipSettingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts deleted file mode 100644 index 3bd0c3ac24..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgOwnerGrantKeys } from '../query-keys'; -import { orgOwnerGrantMutationKeys } from '../mutation-keys'; -import type { - OrgOwnerGrantSelect, - OrgOwnerGrantWithRelations, - OrgOwnerGrantPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgOwnerGrantSelect, - OrgOwnerGrantWithRelations, - OrgOwnerGrantPatch, -} from '../../orm/input-types'; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgOwnerGrantMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgOwnerGrantPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgOwnerGrantMutation( - params: { - selection: { - fields: S & OrgOwnerGrantSelect; - } & HookStrictSelect, OrgOwnerGrantSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }, - Error, - { - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; - } ->; -export function useUpdateOrgOwnerGrantMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgOwnerGrantMutationKeys.all, - mutationFn: ({ - id, - orgOwnerGrantPatch, - }: { - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; - }) => - getClient() - .orgOwnerGrant.update({ - where: { - id, - }, - data: orgOwnerGrantPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts deleted file mode 100644 index b53a85a676..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionDefaultKeys } from '../query-keys'; -import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultPatch, -} from '../../orm/input-types'; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgPermissionDefaultMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgPermissionDefaultPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgPermissionDefaultMutation( - params: { - selection: { - fields: S & OrgPermissionDefaultSelect; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - } ->; -export function useUpdateOrgPermissionDefaultMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionDefaultMutationKeys.all, - mutationFn: ({ - id, - orgPermissionDefaultPatch, - }: { - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; - }) => - getClient() - .orgPermissionDefault.update({ - where: { - id, - }, - data: orgPermissionDefaultPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts deleted file mode 100644 index 2704a2545e..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionKeys } from '../query-keys'; -import { orgPermissionMutationKeys } from '../mutation-keys'; -import type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionPatch, -} from '../../orm/input-types'; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgPermissionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgPermissionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgPermissionMutation( - params: { - selection: { - fields: S & OrgPermissionSelect; - } & HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionPatch: OrgPermissionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgPermission: { - orgPermission: InferSelectResult; - }; - }, - Error, - { - id: string; - orgPermissionPatch: OrgPermissionPatch; - } ->; -export function useUpdateOrgPermissionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - orgPermissionPatch: OrgPermissionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgPermissionMutationKeys.all, - mutationFn: ({ - id, - orgPermissionPatch, - }: { - id: string; - orgPermissionPatch: OrgPermissionPatch; - }) => - getClient() - .orgPermission.update({ - where: { - id, - }, - data: orgPermissionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgPermissionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts deleted file mode 100644 index fa058b143b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * User phone numbers with country code, verification, and primary-number management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { phoneNumberKeys } from '../query-keys'; -import { phoneNumberMutationKeys } from '../mutation-keys'; -import type { - PhoneNumberSelect, - PhoneNumberWithRelations, - PhoneNumberPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PhoneNumberSelect, - PhoneNumberWithRelations, - PhoneNumberPatch, -} from '../../orm/input-types'; -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePhoneNumberMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', phoneNumberPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePhoneNumberMutation( - params: { - selection: { - fields: S & PhoneNumberSelect; - } & HookStrictSelect, PhoneNumberSelect>; - } & Omit< - UseMutationOptions< - { - updatePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }, - Error, - { - id: string; - phoneNumberPatch: PhoneNumberPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }, - Error, - { - id: string; - phoneNumberPatch: PhoneNumberPatch; - } ->; -export function useUpdatePhoneNumberMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - phoneNumberPatch: PhoneNumberPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: phoneNumberMutationKeys.all, - mutationFn: ({ id, phoneNumberPatch }: { id: string; phoneNumberPatch: PhoneNumberPatch }) => - getClient() - .phoneNumber.update({ - where: { - id, - }, - data: phoneNumberPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts deleted file mode 100644 index b25b4efcb1..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Update mutation hook for RoleType - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; -import { roleTypeMutationKeys } from '../mutation-keys'; -import type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; -/** - * Mutation hook for updating a RoleType - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateRoleTypeMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', roleTypePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateRoleTypeMutation( - params: { - selection: { - fields: S & RoleTypeSelect; - } & HookStrictSelect, RoleTypeSelect>; - } & Omit< - UseMutationOptions< - { - updateRoleType: { - roleType: InferSelectResult; - }; - }, - Error, - { - id: number; - roleTypePatch: RoleTypePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateRoleType: { - roleType: InferSelectResult; - }; - }, - Error, - { - id: number; - roleTypePatch: RoleTypePatch; - } ->; -export function useUpdateRoleTypeMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: number; - roleTypePatch: RoleTypePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: roleTypeMutationKeys.all, - mutationFn: ({ id, roleTypePatch }: { id: number; roleTypePatch: RoleTypePatch }) => - getClient() - .roleType.update({ - where: { - id, - }, - data: roleTypePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: roleTypeKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserMutation.ts deleted file mode 100644 index d1ab025019..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Update mutation hook for User - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; -import { userMutationKeys } from '../mutation-keys'; -import type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; -/** - * Mutation hook for updating a User - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateUserMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', userPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateUserMutation( - params: { - selection: { - fields: S & UserSelect; - } & HookStrictSelect, UserSelect>; - } & Omit< - UseMutationOptions< - { - updateUser: { - user: InferSelectResult; - }; - }, - Error, - { - id: string; - userPatch: UserPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateUser: { - user: InferSelectResult; - }; - }, - Error, - { - id: string; - userPatch: UserPatch; - } ->; -export function useUpdateUserMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - userPatch: UserPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: userMutationKeys.all, - mutationFn: ({ id, userPatch }: { id: string; userPatch: UserPatch }) => - getClient() - .user.update({ - where: { - id, - }, - data: userPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: userKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: userKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnCredentialMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnCredentialMutation.ts deleted file mode 100644 index 1d92fd0787..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateWebauthnCredentialMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { webauthnCredentialKeys } from '../query-keys'; -import { webauthnCredentialMutationKeys } from '../mutation-keys'; -import type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, - WebauthnCredentialPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, - WebauthnCredentialPatch, -} from '../../orm/input-types'; -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateWebauthnCredentialMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', webauthnCredentialPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateWebauthnCredentialMutation( - params: { - selection: { - fields: S & WebauthnCredentialSelect; - } & HookStrictSelect, WebauthnCredentialSelect>; - } & Omit< - UseMutationOptions< - { - updateWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }, - Error, - { - id: string; - webauthnCredentialPatch: WebauthnCredentialPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }, - Error, - { - id: string; - webauthnCredentialPatch: WebauthnCredentialPatch; - } ->; -export function useUpdateWebauthnCredentialMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - webauthnCredentialPatch: WebauthnCredentialPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: webauthnCredentialMutationKeys.all, - mutationFn: ({ - id, - webauthnCredentialPatch, - }: { - id: string; - webauthnCredentialPatch: WebauthnCredentialPatch; - }) => - getClient() - .webauthnCredential.update({ - where: { - id, - }, - data: webauthnCredentialPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: webauthnCredentialKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: webauthnCredentialKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useVerifyEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useVerifyEmailMutation.ts deleted file mode 100644 index 6103a9bc14..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useVerifyEmailMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for verifyEmail - * @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 { VerifyEmailVariables } from '../../orm/mutation'; -import type { VerifyEmailPayloadSelect, VerifyEmailPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { VerifyEmailVariables } from '../../orm/mutation'; -export type { VerifyEmailPayloadSelect } from '../../orm/input-types'; -export function useVerifyEmailMutation( - params: { - selection: { - fields: S & VerifyEmailPayloadSelect; - } & HookStrictSelect, VerifyEmailPayloadSelect>; - } & Omit< - UseMutationOptions< - { - verifyEmail: InferSelectResult | null; - }, - Error, - VerifyEmailVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - verifyEmail: InferSelectResult | null; - }, - Error, - VerifyEmailVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.verifyEmail(), - mutationFn: (variables: VerifyEmailVariables) => - getClient() - .mutation.verifyEmail(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useVerifyPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useVerifyPasswordMutation.ts deleted file mode 100644 index 0cd31b8f30..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useVerifyPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for verifyPassword - * @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 { VerifyPasswordVariables } from '../../orm/mutation'; -import type { VerifyPasswordPayloadSelect, VerifyPasswordPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { VerifyPasswordVariables } from '../../orm/mutation'; -export type { VerifyPasswordPayloadSelect } from '../../orm/input-types'; -export function useVerifyPasswordMutation( - params: { - selection: { - fields: S & VerifyPasswordPayloadSelect; - } & HookStrictSelect, VerifyPasswordPayloadSelect>; - } & Omit< - UseMutationOptions< - { - verifyPassword: InferSelectResult | null; - }, - Error, - VerifyPasswordVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - verifyPassword: InferSelectResult | null; - }, - Error, - VerifyPasswordVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.verifyPassword(), - mutationFn: (variables: VerifyPasswordVariables) => - getClient() - .mutation.verifyPassword(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useVerifyTotpMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useVerifyTotpMutation.ts deleted file mode 100644 index 418d599a71..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useVerifyTotpMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for verifyTotp - * @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 { VerifyTotpVariables } from '../../orm/mutation'; -import type { VerifyTotpPayloadSelect, VerifyTotpPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { VerifyTotpVariables } from '../../orm/mutation'; -export type { VerifyTotpPayloadSelect } from '../../orm/input-types'; -export function useVerifyTotpMutation( - params: { - selection: { - fields: S & VerifyTotpPayloadSelect; - } & HookStrictSelect, VerifyTotpPayloadSelect>; - } & Omit< - UseMutationOptions< - { - verifyTotp: InferSelectResult | null; - }, - Error, - VerifyTotpVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - verifyTotp: InferSelectResult | null; - }, - Error, - VerifyTotpVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.verifyTotp(), - mutationFn: (variables: VerifyTotpVariables) => - getClient() - .mutation.verifyTotp(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts deleted file mode 100644 index 5aa7aca4b2..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ /dev/null @@ -1,319 +0,0 @@ -/** - * Query hooks barrel export - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -export * from './useOrgGetManagersQuery'; -export * from './useOrgGetSubordinatesQuery'; -export * from './useAppPermissionsQuery'; -export * from './useAppPermissionQuery'; -export * from './useOrgPermissionsQuery'; -export * from './useOrgPermissionQuery'; -export * from './useDatabasesQuery'; -export * from './useDatabaseQuery'; -export * from './useSchemasQuery'; -export * from './useSchemaQuery'; -export * from './useTablesQuery'; -export * from './useTableQuery'; -export * from './useCheckConstraintsQuery'; -export * from './useCheckConstraintQuery'; -export * from './useFieldsQuery'; -export * from './useFieldQuery'; -export * from './useSpatialRelationsQuery'; -export * from './useSpatialRelationQuery'; -export * from './useForeignKeyConstraintsQuery'; -export * from './useForeignKeyConstraintQuery'; -export * from './useFullTextSearchesQuery'; -export * from './useFullTextSearchQuery'; -export * from './useIndicesQuery'; -export * from './useIndexQuery'; -export * from './usePoliciesQuery'; -export * from './usePolicyQuery'; -export * from './usePrimaryKeyConstraintsQuery'; -export * from './usePrimaryKeyConstraintQuery'; -export * from './useTableGrantsQuery'; -export * from './useTableGrantQuery'; -export * from './useTriggersQuery'; -export * from './useTriggerQuery'; -export * from './useUniqueConstraintsQuery'; -export * from './useUniqueConstraintQuery'; -export * from './useViewsQuery'; -export * from './useViewQuery'; -export * from './useViewTablesQuery'; -export * from './useViewTableQuery'; -export * from './useViewGrantsQuery'; -export * from './useViewGrantQuery'; -export * from './useViewRulesQuery'; -export * from './useViewRuleQuery'; -export * from './useEmbeddingChunksQuery'; -export * from './useEmbeddingChunkQuery'; -export * from './useSecureTableProvisionsQuery'; -export * from './useSecureTableProvisionQuery'; -export * from './useRelationProvisionsQuery'; -export * from './useRelationProvisionQuery'; -export * from './useSessionSecretsModulesQuery'; -export * from './useSessionSecretsModuleQuery'; -export * from './useIdentityProvidersModulesQuery'; -export * from './useIdentityProvidersModuleQuery'; -export * from './useRealtimeModulesQuery'; -export * from './useRealtimeModuleQuery'; -export * from './useConfigSecretsOrgModulesQuery'; -export * from './useConfigSecretsOrgModuleQuery'; -export * from './useSchemaGrantsQuery'; -export * from './useSchemaGrantQuery'; -export * from './useDefaultPrivilegesQuery'; -export * from './useDefaultPrivilegeQuery'; -export * from './useEnumsQuery'; -export * from './useEnumQuery'; -export * from './useFunctionsQuery'; -export * from './useFunctionQuery'; -export * from './useApiSchemasQuery'; -export * from './useApiSchemaQuery'; -export * from './useApiModulesQuery'; -export * from './useApiModuleQuery'; -export * from './useDomainsQuery'; -export * from './useDomainQuery'; -export * from './useSiteMetadataQuery'; -export * from './useSiteMetadatumQuery'; -export * from './useSiteModulesQuery'; -export * from './useSiteModuleQuery'; -export * from './useSiteThemesQuery'; -export * from './useSiteThemeQuery'; -export * from './useCorsSettingsQuery'; -export * from './useCorsSettingQuery'; -export * from './useMerkleStoreModulesQuery'; -export * from './useMerkleStoreModuleQuery'; -export * from './useGraphModulesQuery'; -export * from './useGraphModuleQuery'; -export * from './useTriggerFunctionsQuery'; -export * from './useTriggerFunctionQuery'; -export * from './usePartitionsQuery'; -export * from './usePartitionQuery'; -export * from './useDatabaseTransfersQuery'; -export * from './useDatabaseTransferQuery'; -export * from './useApisQuery'; -export * from './useApiQuery'; -export * from './useSitesQuery'; -export * from './useSiteQuery'; -export * from './useAppsQuery'; -export * from './useAppQuery'; -export * from './useApiSettingsQuery'; -export * from './useApiSettingQuery'; -export * from './useConnectedAccountsModulesQuery'; -export * from './useConnectedAccountsModuleQuery'; -export * from './useCryptoAddressesModulesQuery'; -export * from './useCryptoAddressesModuleQuery'; -export * from './useCryptoAuthModulesQuery'; -export * from './useCryptoAuthModuleQuery'; -export * from './useDefaultIdsModulesQuery'; -export * from './useDefaultIdsModuleQuery'; -export * from './useDenormalizedTableFieldsQuery'; -export * from './useDenormalizedTableFieldQuery'; -export * from './useEmailsModulesQuery'; -export * from './useEmailsModuleQuery'; -export * from './useConfigSecretsUserModulesQuery'; -export * from './useConfigSecretsUserModuleQuery'; -export * from './useInvitesModulesQuery'; -export * from './useInvitesModuleQuery'; -export * from './useEventsModulesQuery'; -export * from './useEventsModuleQuery'; -export * from './useLimitsModulesQuery'; -export * from './useLimitsModuleQuery'; -export * from './useMembershipTypesModulesQuery'; -export * from './useMembershipTypesModuleQuery'; -export * from './useMembershipsModulesQuery'; -export * from './useMembershipsModuleQuery'; -export * from './usePermissionsModulesQuery'; -export * from './usePermissionsModuleQuery'; -export * from './usePhoneNumbersModulesQuery'; -export * from './usePhoneNumbersModuleQuery'; -export * from './useProfilesModulesQuery'; -export * from './useProfilesModuleQuery'; -export * from './useUserStateModulesQuery'; -export * from './useUserStateModuleQuery'; -export * from './useSessionsModulesQuery'; -export * from './useSessionsModuleQuery'; -export * from './useUserAuthModulesQuery'; -export * from './useUserAuthModuleQuery'; -export * from './useUsersModulesQuery'; -export * from './useUsersModuleQuery'; -export * from './useBlueprintsQuery'; -export * from './useBlueprintQuery'; -export * from './useBlueprintTemplatesQuery'; -export * from './useBlueprintTemplateQuery'; -export * from './useBlueprintConstructionsQuery'; -export * from './useBlueprintConstructionQuery'; -export * from './useStorageModulesQuery'; -export * from './useStorageModuleQuery'; -export * from './useEntityTypeProvisionsQuery'; -export * from './useEntityTypeProvisionQuery'; -export * from './useWebauthnCredentialsModulesQuery'; -export * from './useWebauthnCredentialsModuleQuery'; -export * from './useWebauthnAuthModulesQuery'; -export * from './useWebauthnAuthModuleQuery'; -export * from './useNotificationsModulesQuery'; -export * from './useNotificationsModuleQuery'; -export * from './useInferenceLogModulesQuery'; -export * from './useInferenceLogModuleQuery'; -export * from './useComputeLogModulesQuery'; -export * from './useComputeLogModuleQuery'; -export * from './useTransferLogModulesQuery'; -export * from './useTransferLogModuleQuery'; -export * from './useStorageLogModulesQuery'; -export * from './useStorageLogModuleQuery'; -export * from './useDbUsageModulesQuery'; -export * from './useDbUsageModuleQuery'; -export * from './useAgentModulesQuery'; -export * from './useAgentModuleQuery'; -export * from './useNamespaceModulesQuery'; -export * from './useNamespaceModuleQuery'; -export * from './useFunctionModulesQuery'; -export * from './useFunctionModuleQuery'; -export * from './useDatabaseProvisionModulesQuery'; -export * from './useDatabaseProvisionModuleQuery'; -export * from './useAppAdminGrantsQuery'; -export * from './useAppAdminGrantQuery'; -export * from './useAppOwnerGrantsQuery'; -export * from './useAppOwnerGrantQuery'; -export * from './useAppGrantsQuery'; -export * from './useAppGrantQuery'; -export * from './useOrgMembershipsQuery'; -export * from './useOrgMembershipQuery'; -export * from './useOrgMembersQuery'; -export * from './useOrgMemberQuery'; -export * from './useOrgAdminGrantsQuery'; -export * from './useOrgAdminGrantQuery'; -export * from './useOrgOwnerGrantsQuery'; -export * from './useOrgOwnerGrantQuery'; -export * from './useOrgMemberProfilesQuery'; -export * from './useOrgMemberProfileQuery'; -export * from './useOrgGrantsQuery'; -export * from './useOrgGrantQuery'; -export * from './useOrgChartEdgesQuery'; -export * from './useOrgChartEdgeQuery'; -export * from './useOrgChartEdgeGrantsQuery'; -export * from './useOrgChartEdgeGrantQuery'; -export * from './useOrgPermissionDefaultsQuery'; -export * from './useOrgPermissionDefaultQuery'; -export * from './useAppLimitsQuery'; -export * from './useAppLimitQuery'; -export * from './useAppLimitCreditsQuery'; -export * from './useAppLimitCreditQuery'; -export * from './useAppLimitCreditCodeItemsQuery'; -export * from './useAppLimitCreditCodeItemQuery'; -export * from './useAppLimitCreditRedemptionsQuery'; -export * from './useAppLimitCreditRedemptionQuery'; -export * from './useOrgLimitsQuery'; -export * from './useOrgLimitQuery'; -export * from './useOrgLimitCreditsQuery'; -export * from './useOrgLimitCreditQuery'; -export * from './useOrgLimitAggregatesQuery'; -export * from './useOrgLimitAggregateQuery'; -export * from './useOrgLimitWarningsQuery'; -export * from './useOrgLimitWarningQuery'; -export * from './useEmailsQuery'; -export * from './useEmailQuery'; -export * from './usePhoneNumbersQuery'; -export * from './usePhoneNumberQuery'; -export * from './useCryptoAddressesQuery'; -export * from './useCryptoAddressQuery'; -export * from './useWebauthnCredentialsQuery'; -export * from './useWebauthnCredentialQuery'; -export * from './useAppInvitesQuery'; -export * from './useAppInviteQuery'; -export * from './useAppClaimedInvitesQuery'; -export * from './useAppClaimedInviteQuery'; -export * from './useOrgInvitesQuery'; -export * from './useOrgInviteQuery'; -export * from './useOrgClaimedInvitesQuery'; -export * from './useOrgClaimedInviteQuery'; -export * from './useAuditLogAuthsQuery'; -export * from './useAuditLogAuthQuery'; -export * from './useIdentityProvidersQuery'; -export * from './useAppPermissionDefaultsQuery'; -export * from './useAppPermissionDefaultQuery'; -export * from './useRoleTypesQuery'; -export * from './useRoleTypeQuery'; -export * from './useMigrateFilesQuery'; -export * from './useMigrateFileQuery'; -export * from './useDevicesModulesQuery'; -export * from './useDevicesModuleQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; -export * from './useOrgMembershipDefaultsQuery'; -export * from './useOrgMembershipDefaultQuery'; -export * from './useNodeTypeRegistriesQuery'; -export * from './useNodeTypeRegistryQuery'; -export * from './useAppLimitCapsDefaultsQuery'; -export * from './useAppLimitCapsDefaultQuery'; -export * from './useOrgLimitCapsDefaultsQuery'; -export * from './useOrgLimitCapsDefaultQuery'; -export * from './useAppLimitCapsQuery'; -export * from './useAppLimitCapQuery'; -export * from './useOrgLimitCapsQuery'; -export * from './useOrgLimitCapQuery'; -export * from './useUserConnectedAccountsQuery'; -export * from './useUserConnectedAccountQuery'; -export * from './useAppLimitDefaultsQuery'; -export * from './useAppLimitDefaultQuery'; -export * from './useOrgLimitDefaultsQuery'; -export * from './useOrgLimitDefaultQuery'; -export * from './useAppLimitCreditCodesQuery'; -export * from './useAppLimitCreditCodeQuery'; -export * from './useAppLimitWarningsQuery'; -export * from './useAppLimitWarningQuery'; -export * from './usePubkeySettingsQuery'; -export * from './usePubkeySettingQuery'; -export * from './useRateLimitsModulesQuery'; -export * from './useRateLimitsModuleQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; -export * from './useRlsSettingsQuery'; -export * from './useRlsSettingQuery'; -export * from './useRlsModulesQuery'; -export * from './useRlsModuleQuery'; -export * from './useRateLimitMetersModulesQuery'; -export * from './useRateLimitMetersModuleQuery'; -export * from './usePlansModulesQuery'; -export * from './usePlansModuleQuery'; -export * from './useSqlActionsQuery'; -export * from './useSqlActionQuery'; -export * from './useDatabaseSettingsQuery'; -export * from './useDatabaseSettingQuery'; -export * from './useOrgMembershipSettingsQuery'; -export * from './useOrgMembershipSettingQuery'; -export * from './useAppLimitEventsQuery'; -export * from './useAppLimitEventQuery'; -export * from './useOrgLimitEventsQuery'; -export * from './useOrgLimitEventQuery'; -export * from './useAppMembershipsQuery'; -export * from './useAppMembershipQuery'; -export * from './useUsersQuery'; -export * from './useUserQuery'; -export * from './useAstMigrationsQuery'; -export * from './useAstMigrationQuery'; -export * from './useWebauthnSettingsQuery'; -export * from './useWebauthnSettingQuery'; -export * from './useBillingModulesQuery'; -export * from './useBillingModuleQuery'; -export * from './useBillingProviderModulesQuery'; -export * from './useBillingProviderModuleQuery'; -export * from './useHierarchyModulesQuery'; -export * from './useHierarchyModuleQuery'; -export * from './useCurrentUserIdQuery'; -export * from './useCurrentUserAgentQuery'; -export * from './useCurrentIpAddressQuery'; -export * from './useRequireStepUpQuery'; -export * from './useAppPermissionsGetPaddedMaskQuery'; -export * from './useOrgPermissionsGetPaddedMaskQuery'; -export * from './useApplyRegistryDefaultsQuery'; -export * from './useResolveBlueprintFieldQuery'; -export * from './useResolveBlueprintTableQuery'; -export * from './useOrgIsManagerOfQuery'; -export * from './useAppPermissionsGetMaskQuery'; -export * from './useOrgPermissionsGetMaskQuery'; -export * from './useAppPermissionsGetMaskByNamesQuery'; -export * from './useOrgPermissionsGetMaskByNamesQuery'; -export * from './useAppPermissionsGetByMaskQuery'; -export * from './useOrgPermissionsGetByMaskQuery'; -export * from './useCurrentUserQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts deleted file mode 100644 index 8cf929a7e4..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appAdminGrantKeys } from '../query-keys'; -import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appAdminGrantQueryKey = appAdminGrantKeys.detail; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { data, isLoading } = useAppAdminGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppAdminGrantQuery< - S extends AppAdminGrantSelect, - TData = { - appAdminGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppAdminGrantSelect>; - } & Omit< - UseQueryOptions< - { - appAdminGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppAdminGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appAdminGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appAdminGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * const data = await fetchAppAdminGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppAdminGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppAdminGrantSelect>; -}): Promise<{ - appAdminGrant: InferSelectResult | null; -}>; -export async function fetchAppAdminGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appAdminGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * await prefetchAppAdminGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppAdminGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppAdminGrantSelect>; - } -): Promise; -export async function prefetchAppAdminGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appAdminGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appAdminGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts deleted file mode 100644 index c41e3bfcf3..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appAdminGrantKeys } from '../query-keys'; -import type { - AppAdminGrantSelect, - AppAdminGrantWithRelations, - AppAdminGrantFilter, - AppAdminGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppAdminGrantSelect, - AppAdminGrantWithRelations, - AppAdminGrantFilter, - AppAdminGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appAdminGrantsQueryKey = appAdminGrantKeys.list; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { data, isLoading } = useAppAdminGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppAdminGrantsQuery< - S extends AppAdminGrantSelect, - TData = { - appAdminGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppAdminGrantSelect>; - } & Omit< - UseQueryOptions< - { - appAdminGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppAdminGrantsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppAdminGrantSelect, - AppAdminGrantFilter, - AppAdminGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appAdminGrantKeys.list(args), - queryFn: () => getClient().appAdminGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * const data = await fetchAppAdminGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppAdminGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppAdminGrantSelect>; -}): Promise<{ - appAdminGrants: ConnectionResult>; -}>; -export async function fetchAppAdminGrantsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppAdminGrantSelect, - AppAdminGrantFilter, - AppAdminGrantOrderBy - >(params.selection); - return getClient().appAdminGrant.findMany(args).unwrap(); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * await prefetchAppAdminGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppAdminGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppAdminGrantSelect>; - } -): Promise; -export async function prefetchAppAdminGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppAdminGrantSelect, - AppAdminGrantFilter, - AppAdminGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appAdminGrantKeys.list(args), - queryFn: () => getClient().appAdminGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppClaimedInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppClaimedInviteQuery.ts deleted file mode 100644 index 51d1c60d25..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppClaimedInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appClaimedInviteKeys } from '../query-keys'; -import type { AppClaimedInviteSelect, AppClaimedInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppClaimedInviteSelect, AppClaimedInviteWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appClaimedInviteQueryKey = appClaimedInviteKeys.detail; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { data, isLoading } = useAppClaimedInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppClaimedInviteQuery< - S extends AppClaimedInviteSelect, - TData = { - appClaimedInvite: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppClaimedInviteSelect>; - } & Omit< - UseQueryOptions< - { - appClaimedInvite: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppClaimedInviteQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appClaimedInviteKeys.detail(params.id), - queryFn: () => - getClient() - .appClaimedInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * const data = await fetchAppClaimedInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppClaimedInviteQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppClaimedInviteSelect>; -}): Promise<{ - appClaimedInvite: InferSelectResult | null; -}>; -export async function fetchAppClaimedInviteQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appClaimedInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * await prefetchAppClaimedInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppClaimedInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppClaimedInviteSelect>; - } -): Promise; -export async function prefetchAppClaimedInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appClaimedInviteKeys.detail(params.id), - queryFn: () => - getClient() - .appClaimedInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppClaimedInvitesQuery.ts deleted file mode 100644 index 678a0cd405..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppClaimedInvitesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appClaimedInviteKeys } from '../query-keys'; -import type { - AppClaimedInviteSelect, - AppClaimedInviteWithRelations, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppClaimedInviteSelect, - AppClaimedInviteWithRelations, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appClaimedInvitesQueryKey = appClaimedInviteKeys.list; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { data, isLoading } = useAppClaimedInvitesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppClaimedInvitesQuery< - S extends AppClaimedInviteSelect, - TData = { - appClaimedInvites: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppClaimedInviteSelect>; - } & Omit< - UseQueryOptions< - { - appClaimedInvites: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppClaimedInvitesQuery( - params: { - selection: ListSelectionConfig< - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appClaimedInviteKeys.list(args), - queryFn: () => getClient().appClaimedInvite.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * const data = await fetchAppClaimedInvitesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppClaimedInvitesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppClaimedInviteSelect>; -}): Promise<{ - appClaimedInvites: ConnectionResult>; -}>; -export async function fetchAppClaimedInvitesQuery(params: { - selection: ListSelectionConfig< - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy - >(params.selection); - return getClient().appClaimedInvite.findMany(args).unwrap(); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * await prefetchAppClaimedInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppClaimedInvitesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppClaimedInviteSelect>; - } -): Promise; -export async function prefetchAppClaimedInvitesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appClaimedInviteKeys.list(args), - queryFn: () => getClient().appClaimedInvite.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts deleted file mode 100644 index a7a5d3304b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appGrantKeys } from '../query-keys'; -import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appGrantQueryKey = appGrantKeys.detail; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useAppGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppGrantQuery< - S extends AppGrantSelect, - TData = { - appGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppGrantSelect>; - } & Omit< - UseQueryOptions< - { - appGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * const data = await fetchAppGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppGrantSelect>; -}): Promise<{ - appGrant: InferSelectResult | null; -}>; -export async function fetchAppGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * await prefetchAppGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppGrantSelect>; - } -): Promise; -export async function prefetchAppGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts deleted file mode 100644 index de0684b897..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appGrantKeys } from '../query-keys'; -import type { - AppGrantSelect, - AppGrantWithRelations, - AppGrantFilter, - AppGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppGrantSelect, - AppGrantWithRelations, - AppGrantFilter, - AppGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appGrantsQueryKey = appGrantKeys.list; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useAppGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppGrantsQuery< - S extends AppGrantSelect, - TData = { - appGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppGrantSelect>; - } & Omit< - UseQueryOptions< - { - appGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppGrantsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appGrantKeys.list(args), - queryFn: () => getClient().appGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * const data = await fetchAppGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppGrantSelect>; -}): Promise<{ - appGrants: ConnectionResult>; -}>; -export async function fetchAppGrantsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appGrant.findMany(args).unwrap(); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * await prefetchAppGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppGrantSelect>; - } -): Promise; -export async function prefetchAppGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appGrantKeys.list(args), - queryFn: () => getClient().appGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppInviteQuery.ts deleted file mode 100644 index 3a9293c3ef..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appInviteKeys } from '../query-keys'; -import type { AppInviteSelect, AppInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppInviteSelect, AppInviteWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appInviteQueryKey = appInviteKeys.detail; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { data, isLoading } = useAppInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppInviteQuery< - S extends AppInviteSelect, - TData = { - appInvite: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppInviteSelect>; - } & Omit< - UseQueryOptions< - { - appInvite: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppInviteQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appInviteKeys.detail(params.id), - queryFn: () => - getClient() - .appInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * const data = await fetchAppInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppInviteQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppInviteSelect>; -}): Promise<{ - appInvite: InferSelectResult | null; -}>; -export async function fetchAppInviteQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * await prefetchAppInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppInviteSelect>; - } -): Promise; -export async function prefetchAppInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appInviteKeys.detail(params.id), - queryFn: () => - getClient() - .appInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppInvitesQuery.ts deleted file mode 100644 index a9d519625d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppInvitesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appInviteKeys } from '../query-keys'; -import type { - AppInviteSelect, - AppInviteWithRelations, - AppInviteFilter, - AppInviteOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppInviteSelect, - AppInviteWithRelations, - AppInviteFilter, - AppInviteOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appInvitesQueryKey = appInviteKeys.list; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { data, isLoading } = useAppInvitesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppInvitesQuery< - S extends AppInviteSelect, - TData = { - appInvites: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppInviteSelect>; - } & Omit< - UseQueryOptions< - { - appInvites: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppInvitesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appInviteKeys.list(args), - queryFn: () => getClient().appInvite.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * const data = await fetchAppInvitesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppInvitesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppInviteSelect>; -}): Promise<{ - appInvites: ConnectionResult>; -}>; -export async function fetchAppInvitesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appInvite.findMany(args).unwrap(); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * await prefetchAppInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppInvitesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppInviteSelect>; - } -): Promise; -export async function prefetchAppInvitesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appInviteKeys.list(args), - queryFn: () => getClient().appInvite.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapQuery.ts deleted file mode 100644 index 1a20f527e7..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapKeys } from '../query-keys'; -import type { AppLimitCapSelect, AppLimitCapWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitCapSelect, AppLimitCapWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCapQueryKey = appLimitCapKeys.detail; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCapQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitCapQuery< - S extends AppLimitCapSelect, - TData = { - appLimitCap: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCapSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCap: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCapQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCapKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * const data = await fetchAppLimitCapQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitCapQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCapSelect>; -}): Promise<{ - appLimitCap: InferSelectResult | null; -}>; -export async function fetchAppLimitCapQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * await prefetchAppLimitCapQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitCapQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCapSelect>; - } -): Promise; -export async function prefetchAppLimitCapQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCapKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsDefaultQuery.ts deleted file mode 100644 index 9a35f8cfd2..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCapsDefaultKeys } from '../query-keys'; -import type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCapsDefaultQueryKey = appLimitCapsDefaultKeys.detail; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCapsDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitCapsDefaultQuery< - S extends AppLimitCapsDefaultSelect, - TData = { - appLimitCapsDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCapsDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCapsDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCapsDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCapsDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCapsDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * const data = await fetchAppLimitCapsDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitCapsDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCapsDefaultSelect>; -}): Promise<{ - appLimitCapsDefault: InferSelectResult | null; -}>; -export async function fetchAppLimitCapsDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitCapsDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * await prefetchAppLimitCapsDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitCapsDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCapsDefaultSelect>; - } -): Promise; -export async function prefetchAppLimitCapsDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCapsDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCapsDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsDefaultsQuery.ts deleted file mode 100644 index 9b50cb5744..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsDefaultsQuery.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitCapsDefaultKeys } from '../query-keys'; -import type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultWithRelations, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCapsDefaultsQueryKey = appLimitCapsDefaultKeys.list; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitCapsDefaultsQuery< - S extends AppLimitCapsDefaultSelect, - TData = { - appLimitCapsDefaults: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCapsDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCapsDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCapsDefaultsQuery( - params: { - selection: ListSelectionConfig< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCapsDefaultKeys.list(args), - queryFn: () => getClient().appLimitCapsDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * const data = await fetchAppLimitCapsDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitCapsDefaultsQuery(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCapsDefaultSelect>; -}): Promise<{ - appLimitCapsDefaults: ConnectionResult>; -}>; -export async function fetchAppLimitCapsDefaultsQuery(params: { - selection: ListSelectionConfig< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - >(params.selection); - return getClient().appLimitCapsDefault.findMany(args).unwrap(); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * await prefetchAppLimitCapsDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitCapsDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCapsDefaultSelect>; - } -): Promise; -export async function prefetchAppLimitCapsDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCapsDefaultKeys.list(args), - queryFn: () => getClient().appLimitCapsDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsQuery.ts deleted file mode 100644 index 527d7116c7..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCapsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitCapKeys } from '../query-keys'; -import type { - AppLimitCapSelect, - AppLimitCapWithRelations, - AppLimitCapFilter, - AppLimitCapOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitCapSelect, - AppLimitCapWithRelations, - AppLimitCapFilter, - AppLimitCapOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCapsQueryKey = appLimitCapKeys.list; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCapsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitCapsQuery< - S extends AppLimitCapSelect, - TData = { - appLimitCaps: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitCapSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCaps: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCapsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCapKeys.list(args), - queryFn: () => getClient().appLimitCap.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * const data = await fetchAppLimitCapsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitCapsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitCapSelect>; -}): Promise<{ - appLimitCaps: ConnectionResult>; -}>; -export async function fetchAppLimitCapsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appLimitCap.findMany(args).unwrap(); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * await prefetchAppLimitCapsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitCapsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitCapSelect>; - } -): Promise; -export async function prefetchAppLimitCapsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appLimitCapKeys.list(args), - queryFn: () => getClient().appLimitCap.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeItemQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeItemQuery.ts deleted file mode 100644 index b8ba3b889b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeItemQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Items within a credit code — each row grants credits for a specific limit definition - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeItemKeys } from '../query-keys'; -import type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditCodeItemQueryKey = appLimitCreditCodeItemKeys.detail; -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditCodeItemQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitCreditCodeItemQuery< - S extends AppLimitCreditCodeItemSelect, - TData = { - appLimitCreditCodeItem: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditCodeItemSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCreditCodeItem: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditCodeItemQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditCodeItemKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCreditCodeItem.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```ts - * const data = await fetchAppLimitCreditCodeItemQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitCreditCodeItemQuery< - S extends AppLimitCreditCodeItemSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditCodeItemSelect>; -}): Promise<{ - appLimitCreditCodeItem: InferSelectResult | null; -}>; -export async function fetchAppLimitCreditCodeItemQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitCreditCodeItem.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```ts - * await prefetchAppLimitCreditCodeItemQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitCreditCodeItemQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditCodeItemSelect>; - } -): Promise; -export async function prefetchAppLimitCreditCodeItemQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditCodeItemKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCreditCodeItem.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeItemsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeItemsQuery.ts deleted file mode 100644 index 8e026ce03b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeItemsQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Items within a credit code — each row grants credits for a specific limit definition - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitCreditCodeItemKeys } from '../query-keys'; -import type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemWithRelations, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditCodeItemsQueryKey = appLimitCreditCodeItemKeys.list; -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditCodeItemsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitCreditCodeItemsQuery< - S extends AppLimitCreditCodeItemSelect, - TData = { - appLimitCreditCodeItems: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditCodeItemSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCreditCodeItems: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditCodeItemsQuery( - params: { - selection: ListSelectionConfig< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditCodeItemKeys.list(args), - queryFn: () => getClient().appLimitCreditCodeItem.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```ts - * const data = await fetchAppLimitCreditCodeItemsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitCreditCodeItemsQuery< - S extends AppLimitCreditCodeItemSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditCodeItemSelect>; -}): Promise<{ - appLimitCreditCodeItems: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchAppLimitCreditCodeItemsQuery(params: { - selection: ListSelectionConfig< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - >(params.selection); - return getClient().appLimitCreditCodeItem.findMany(args).unwrap(); -} -/** - * Items within a credit code — each row grants credits for a specific limit definition - * - * @example - * ```ts - * await prefetchAppLimitCreditCodeItemsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitCreditCodeItemsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditCodeItemSelect>; - } -): Promise; -export async function prefetchAppLimitCreditCodeItemsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditCodeItemKeys.list(args), - queryFn: () => getClient().appLimitCreditCodeItem.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeQuery.ts deleted file mode 100644 index dcf2a2b52b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodeQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Redeemable credit codes managed by admins with the add_credits permission - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditCodeKeys } from '../query-keys'; -import type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditCodeQueryKey = appLimitCreditCodeKeys.detail; -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditCodeQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitCreditCodeQuery< - S extends AppLimitCreditCodeSelect, - TData = { - appLimitCreditCode: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditCodeSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCreditCode: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditCodeQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditCodeKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCreditCode.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```ts - * const data = await fetchAppLimitCreditCodeQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitCreditCodeQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditCodeSelect>; -}): Promise<{ - appLimitCreditCode: InferSelectResult | null; -}>; -export async function fetchAppLimitCreditCodeQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitCreditCode.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```ts - * await prefetchAppLimitCreditCodeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitCreditCodeQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditCodeSelect>; - } -): Promise; -export async function prefetchAppLimitCreditCodeQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditCodeKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCreditCode.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodesQuery.ts deleted file mode 100644 index c69d74cd1a..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditCodesQuery.ts +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Redeemable credit codes managed by admins with the add_credits permission - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitCreditCodeKeys } from '../query-keys'; -import type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitCreditCodeSelect, - AppLimitCreditCodeWithRelations, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditCodesQueryKey = appLimitCreditCodeKeys.list; -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditCodesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitCreditCodesQuery< - S extends AppLimitCreditCodeSelect, - TData = { - appLimitCreditCodes: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditCodeSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCreditCodes: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditCodesQuery( - params: { - selection: ListSelectionConfig< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditCodeKeys.list(args), - queryFn: () => getClient().appLimitCreditCode.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```ts - * const data = await fetchAppLimitCreditCodesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitCreditCodesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitCreditCodeSelect>; -}): Promise<{ - appLimitCreditCodes: ConnectionResult>; -}>; -export async function fetchAppLimitCreditCodesQuery(params: { - selection: ListSelectionConfig< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - >(params.selection); - return getClient().appLimitCreditCode.findMany(args).unwrap(); -} -/** - * Redeemable credit codes managed by admins with the add_credits permission - * - * @example - * ```ts - * await prefetchAppLimitCreditCodesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitCreditCodesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditCodeSelect>; - } -): Promise; -export async function prefetchAppLimitCreditCodesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditCodeKeys.list(args), - queryFn: () => getClient().appLimitCreditCode.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditQuery.ts deleted file mode 100644 index 2189326669..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditKeys } from '../query-keys'; -import type { AppLimitCreditSelect, AppLimitCreditWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitCreditSelect, AppLimitCreditWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditQueryKey = appLimitCreditKeys.detail; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitCreditQuery< - S extends AppLimitCreditSelect, - TData = { - appLimitCredit: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCredit: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * const data = await fetchAppLimitCreditQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitCreditQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditSelect>; -}): Promise<{ - appLimitCredit: InferSelectResult | null; -}>; -export async function fetchAppLimitCreditQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * await prefetchAppLimitCreditQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitCreditQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditSelect>; - } -): Promise; -export async function prefetchAppLimitCreditQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditRedemptionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditRedemptionQuery.ts deleted file mode 100644 index dbf6fa43db..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditRedemptionQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitCreditRedemptionKeys } from '../query-keys'; -import type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditRedemptionQueryKey = appLimitCreditRedemptionKeys.detail; -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditRedemptionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitCreditRedemptionQuery< - S extends AppLimitCreditRedemptionSelect, - TData = { - appLimitCreditRedemption: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditRedemptionSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCreditRedemption: InferSelectResult< - AppLimitCreditRedemptionWithRelations, - S - > | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditRedemptionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditRedemptionKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCreditRedemption.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```ts - * const data = await fetchAppLimitCreditRedemptionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitCreditRedemptionQuery< - S extends AppLimitCreditRedemptionSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditRedemptionSelect>; -}): Promise<{ - appLimitCreditRedemption: InferSelectResult | null; -}>; -export async function fetchAppLimitCreditRedemptionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitCreditRedemption.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```ts - * await prefetchAppLimitCreditRedemptionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitCreditRedemptionQuery< - S extends AppLimitCreditRedemptionSelect, ->( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitCreditRedemptionSelect>; - } -): Promise; -export async function prefetchAppLimitCreditRedemptionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditRedemptionKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitCreditRedemption.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditRedemptionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditRedemptionsQuery.ts deleted file mode 100644 index 099a5d24bf..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditRedemptionsQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitCreditRedemptionKeys } from '../query-keys'; -import type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionWithRelations, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditRedemptionsQueryKey = appLimitCreditRedemptionKeys.list; -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditRedemptionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitCreditRedemptionsQuery< - S extends AppLimitCreditRedemptionSelect, - TData = { - appLimitCreditRedemptions: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditRedemptionSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCreditRedemptions: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditRedemptionsQuery( - params: { - selection: ListSelectionConfig< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditRedemptionKeys.list(args), - queryFn: () => getClient().appLimitCreditRedemption.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```ts - * const data = await fetchAppLimitCreditRedemptionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitCreditRedemptionsQuery< - S extends AppLimitCreditRedemptionSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditRedemptionSelect>; -}): Promise<{ - appLimitCreditRedemptions: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchAppLimitCreditRedemptionsQuery(params: { - selection: ListSelectionConfig< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - >(params.selection); - return getClient().appLimitCreditRedemption.findMany(args).unwrap(); -} -/** - * Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits - * - * @example - * ```ts - * await prefetchAppLimitCreditRedemptionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitCreditRedemptionsQuery< - S extends AppLimitCreditRedemptionSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppLimitCreditRedemptionSelect>; - } -): Promise; -export async function prefetchAppLimitCreditRedemptionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditRedemptionKeys.list(args), - queryFn: () => getClient().appLimitCreditRedemption.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditsQuery.ts deleted file mode 100644 index 30d99ddbe1..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitCreditsQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitCreditKeys } from '../query-keys'; -import type { - AppLimitCreditSelect, - AppLimitCreditWithRelations, - AppLimitCreditFilter, - AppLimitCreditOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitCreditSelect, - AppLimitCreditWithRelations, - AppLimitCreditFilter, - AppLimitCreditOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitCreditsQueryKey = appLimitCreditKeys.list; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitCreditsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitCreditsQuery< - S extends AppLimitCreditSelect, - TData = { - appLimitCredits: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitCreditSelect>; - } & Omit< - UseQueryOptions< - { - appLimitCredits: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitCreditsQuery( - params: { - selection: ListSelectionConfig< - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitCreditKeys.list(args), - queryFn: () => getClient().appLimitCredit.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * const data = await fetchAppLimitCreditsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitCreditsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitCreditSelect>; -}): Promise<{ - appLimitCredits: ConnectionResult>; -}>; -export async function fetchAppLimitCreditsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy - >(params.selection); - return getClient().appLimitCredit.findMany(args).unwrap(); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * await prefetchAppLimitCreditsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitCreditsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitCreditSelect>; - } -): Promise; -export async function prefetchAppLimitCreditsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitCreditKeys.list(args), - queryFn: () => getClient().appLimitCredit.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts deleted file mode 100644 index 4f47866385..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitDefaultKeys } from '../query-keys'; -import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitDefaultQueryKey = appLimitDefaultKeys.detail; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitDefaultQuery< - S extends AppLimitDefaultSelect, - TData = { - appLimitDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appLimitDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * const data = await fetchAppLimitDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitDefaultSelect>; -}): Promise<{ - appLimitDefault: InferSelectResult | null; -}>; -export async function fetchAppLimitDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * await prefetchAppLimitDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitDefaultSelect>; - } -): Promise; -export async function prefetchAppLimitDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts deleted file mode 100644 index 25eb721824..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitDefaultKeys } from '../query-keys'; -import type { - AppLimitDefaultSelect, - AppLimitDefaultWithRelations, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitDefaultSelect, - AppLimitDefaultWithRelations, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitDefaultsQueryKey = appLimitDefaultKeys.list; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitDefaultsQuery< - S extends AppLimitDefaultSelect, - TData = { - appLimitDefaults: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appLimitDefaults: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitDefaultsQuery( - params: { - selection: ListSelectionConfig< - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitDefaultKeys.list(args), - queryFn: () => getClient().appLimitDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * const data = await fetchAppLimitDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitDefaultsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitDefaultSelect>; -}): Promise<{ - appLimitDefaults: ConnectionResult>; -}>; -export async function fetchAppLimitDefaultsQuery(params: { - selection: ListSelectionConfig< - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy - >(params.selection); - return getClient().appLimitDefault.findMany(args).unwrap(); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * await prefetchAppLimitDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitDefaultSelect>; - } -): Promise; -export async function prefetchAppLimitDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitDefaultKeys.list(args), - queryFn: () => getClient().appLimitDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts deleted file mode 100644 index 3303e3895d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitEventKeys } from '../query-keys'; -import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitEventQueryKey = appLimitEventKeys.detail; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitEventQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitEventQuery< - S extends AppLimitEventSelect, - TData = { - appLimitEvent: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitEventSelect>; - } & Omit< - UseQueryOptions< - { - appLimitEvent: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitEventQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitEventKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * const data = await fetchAppLimitEventQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitEventQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitEventSelect>; -}): Promise<{ - appLimitEvent: InferSelectResult | null; -}>; -export async function fetchAppLimitEventQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * await prefetchAppLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitEventQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitEventSelect>; - } -): Promise; -export async function prefetchAppLimitEventQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitEventKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventsQuery.ts deleted file mode 100644 index 034cba89c7..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitEventKeys } from '../query-keys'; -import type { - AppLimitEventSelect, - AppLimitEventWithRelations, - AppLimitEventFilter, - AppLimitEventOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitEventSelect, - AppLimitEventWithRelations, - AppLimitEventFilter, - AppLimitEventOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitEventsQueryKey = appLimitEventKeys.list; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitEventsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitEventsQuery< - S extends AppLimitEventSelect, - TData = { - appLimitEvents: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitEventSelect>; - } & Omit< - UseQueryOptions< - { - appLimitEvents: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitEventsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitEventSelect, - AppLimitEventFilter, - AppLimitEventOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitEventKeys.list(args), - queryFn: () => getClient().appLimitEvent.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * const data = await fetchAppLimitEventsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitEventsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitEventSelect>; -}): Promise<{ - appLimitEvents: ConnectionResult>; -}>; -export async function fetchAppLimitEventsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppLimitEventSelect, - AppLimitEventFilter, - AppLimitEventOrderBy - >(params.selection); - return getClient().appLimitEvent.findMany(args).unwrap(); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * await prefetchAppLimitEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitEventsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitEventSelect>; - } -): Promise; -export async function prefetchAppLimitEventsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitEventSelect, - AppLimitEventFilter, - AppLimitEventOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitEventKeys.list(args), - queryFn: () => getClient().appLimitEvent.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts deleted file mode 100644 index 178e4553a3..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitKeys } from '../query-keys'; -import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitQueryKey = appLimitKeys.detail; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitQuery< - S extends AppLimitSelect, - TData = { - appLimit: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitSelect>; - } & Omit< - UseQueryOptions< - { - appLimit: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitKeys.detail(params.id), - queryFn: () => - getClient() - .appLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * const data = await fetchAppLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitSelect>; -}): Promise<{ - appLimit: InferSelectResult | null; -}>; -export async function fetchAppLimitQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * await prefetchAppLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitSelect>; - } -): Promise; -export async function prefetchAppLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitKeys.detail(params.id), - queryFn: () => - getClient() - .appLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitWarningQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitWarningQuery.ts deleted file mode 100644 index 9fb73272ae..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitWarningQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appLimitWarningKeys } from '../query-keys'; -import type { AppLimitWarningSelect, AppLimitWarningWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppLimitWarningSelect, AppLimitWarningWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitWarningQueryKey = appLimitWarningKeys.detail; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitWarningQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppLimitWarningQuery< - S extends AppLimitWarningSelect, - TData = { - appLimitWarning: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitWarningSelect>; - } & Omit< - UseQueryOptions< - { - appLimitWarning: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitWarningQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitWarningKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitWarning.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * const data = await fetchAppLimitWarningQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppLimitWarningQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitWarningSelect>; -}): Promise<{ - appLimitWarning: InferSelectResult | null; -}>; -export async function fetchAppLimitWarningQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appLimitWarning.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * await prefetchAppLimitWarningQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppLimitWarningQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppLimitWarningSelect>; - } -): Promise; -export async function prefetchAppLimitWarningQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitWarningKeys.detail(params.id), - queryFn: () => - getClient() - .appLimitWarning.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitWarningsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitWarningsQuery.ts deleted file mode 100644 index 37c264c247..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitWarningsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitWarningKeys } from '../query-keys'; -import type { - AppLimitWarningSelect, - AppLimitWarningWithRelations, - AppLimitWarningFilter, - AppLimitWarningOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitWarningSelect, - AppLimitWarningWithRelations, - AppLimitWarningFilter, - AppLimitWarningOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitWarningsQueryKey = appLimitWarningKeys.list; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitWarningsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitWarningsQuery< - S extends AppLimitWarningSelect, - TData = { - appLimitWarnings: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitWarningSelect>; - } & Omit< - UseQueryOptions< - { - appLimitWarnings: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitWarningsQuery( - params: { - selection: ListSelectionConfig< - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitWarningKeys.list(args), - queryFn: () => getClient().appLimitWarning.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * const data = await fetchAppLimitWarningsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitWarningsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitWarningSelect>; -}): Promise<{ - appLimitWarnings: ConnectionResult>; -}>; -export async function fetchAppLimitWarningsQuery(params: { - selection: ListSelectionConfig< - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy - >(params.selection); - return getClient().appLimitWarning.findMany(args).unwrap(); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * await prefetchAppLimitWarningsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitWarningsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitWarningSelect>; - } -): Promise; -export async function prefetchAppLimitWarningsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appLimitWarningKeys.list(args), - queryFn: () => getClient().appLimitWarning.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts deleted file mode 100644 index fc868ff906..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appLimitKeys } from '../query-keys'; -import type { - AppLimitSelect, - AppLimitWithRelations, - AppLimitFilter, - AppLimitOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppLimitSelect, - AppLimitWithRelations, - AppLimitFilter, - AppLimitOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appLimitsQueryKey = appLimitKeys.list; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { data, isLoading } = useAppLimitsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppLimitsQuery< - S extends AppLimitSelect, - TData = { - appLimits: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitSelect>; - } & Omit< - UseQueryOptions< - { - appLimits: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppLimitsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appLimitKeys.list(args), - queryFn: () => getClient().appLimit.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * const data = await fetchAppLimitsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppLimitsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitSelect>; -}): Promise<{ - appLimits: ConnectionResult>; -}>; -export async function fetchAppLimitsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().appLimit.findMany(args).unwrap(); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * await prefetchAppLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppLimitsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppLimitSelect>; - } -): Promise; -export async function prefetchAppLimitsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: appLimitKeys.list(args), - queryFn: () => getClient().appLimit.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts deleted file mode 100644 index 85b8b0dcb4..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipDefaultKeys } from '../query-keys'; -import type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appMembershipDefaultQueryKey = appMembershipDefaultKeys.detail; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { data, isLoading } = useAppMembershipDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppMembershipDefaultQuery< - S extends AppMembershipDefaultSelect, - TData = { - appMembershipDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appMembershipDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppMembershipDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appMembershipDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appMembershipDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * const data = await fetchAppMembershipDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppMembershipDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipDefaultSelect>; -}): Promise<{ - appMembershipDefault: InferSelectResult | null; -}>; -export async function fetchAppMembershipDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appMembershipDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * await prefetchAppMembershipDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppMembershipDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipDefaultSelect>; - } -): Promise; -export async function prefetchAppMembershipDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appMembershipDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appMembershipDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts deleted file mode 100644 index a3722e7981..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appMembershipDefaultKeys } from '../query-keys'; -import type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppMembershipDefaultSelect, - AppMembershipDefaultWithRelations, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appMembershipDefaultsQueryKey = appMembershipDefaultKeys.list; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { data, isLoading } = useAppMembershipDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppMembershipDefaultsQuery< - S extends AppMembershipDefaultSelect, - TData = { - appMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppMembershipDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppMembershipDefaultsQuery( - params: { - selection: ListSelectionConfig< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appMembershipDefaultKeys.list(args), - queryFn: () => getClient().appMembershipDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * const data = await fetchAppMembershipDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppMembershipDefaultsQuery< - S extends AppMembershipDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppMembershipDefaultSelect>; -}): Promise<{ - appMembershipDefaults: ConnectionResult>; -}>; -export async function fetchAppMembershipDefaultsQuery(params: { - selection: ListSelectionConfig< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - >(params.selection); - return getClient().appMembershipDefault.findMany(args).unwrap(); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * await prefetchAppMembershipDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppMembershipDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppMembershipDefaultSelect>; - } -): Promise; -export async function prefetchAppMembershipDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appMembershipDefaultKeys.list(args), - queryFn: () => getClient().appMembershipDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts deleted file mode 100644 index 53a941d1a3..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appMembershipKeys } from '../query-keys'; -import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appMembershipQueryKey = appMembershipKeys.detail; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { data, isLoading } = useAppMembershipQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppMembershipQuery< - S extends AppMembershipSelect, - TData = { - appMembership: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipSelect>; - } & Omit< - UseQueryOptions< - { - appMembership: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppMembershipQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appMembershipKeys.detail(params.id), - queryFn: () => - getClient() - .appMembership.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * const data = await fetchAppMembershipQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppMembershipQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipSelect>; -}): Promise<{ - appMembership: InferSelectResult | null; -}>; -export async function fetchAppMembershipQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appMembership.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * await prefetchAppMembershipQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppMembershipQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppMembershipSelect>; - } -): Promise; -export async function prefetchAppMembershipQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appMembershipKeys.detail(params.id), - queryFn: () => - getClient() - .appMembership.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts deleted file mode 100644 index 4a7406a964..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appMembershipKeys } from '../query-keys'; -import type { - AppMembershipSelect, - AppMembershipWithRelations, - AppMembershipFilter, - AppMembershipOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppMembershipSelect, - AppMembershipWithRelations, - AppMembershipFilter, - AppMembershipOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appMembershipsQueryKey = appMembershipKeys.list; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { data, isLoading } = useAppMembershipsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppMembershipsQuery< - S extends AppMembershipSelect, - TData = { - appMemberships: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppMembershipSelect>; - } & Omit< - UseQueryOptions< - { - appMemberships: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppMembershipsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppMembershipSelect, - AppMembershipFilter, - AppMembershipOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appMembershipKeys.list(args), - queryFn: () => getClient().appMembership.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * const data = await fetchAppMembershipsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppMembershipsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppMembershipSelect>; -}): Promise<{ - appMemberships: ConnectionResult>; -}>; -export async function fetchAppMembershipsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppMembershipSelect, - AppMembershipFilter, - AppMembershipOrderBy - >(params.selection); - return getClient().appMembership.findMany(args).unwrap(); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * await prefetchAppMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppMembershipsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppMembershipSelect>; - } -): Promise; -export async function prefetchAppMembershipsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppMembershipSelect, - AppMembershipFilter, - AppMembershipOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appMembershipKeys.list(args), - queryFn: () => getClient().appMembership.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts deleted file mode 100644 index a26148bcab..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appOwnerGrantKeys } from '../query-keys'; -import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appOwnerGrantQueryKey = appOwnerGrantKeys.detail; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { data, isLoading } = useAppOwnerGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppOwnerGrantQuery< - S extends AppOwnerGrantSelect, - TData = { - appOwnerGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppOwnerGrantSelect>; - } & Omit< - UseQueryOptions< - { - appOwnerGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppOwnerGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appOwnerGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appOwnerGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * const data = await fetchAppOwnerGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppOwnerGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppOwnerGrantSelect>; -}): Promise<{ - appOwnerGrant: InferSelectResult | null; -}>; -export async function fetchAppOwnerGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appOwnerGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * await prefetchAppOwnerGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppOwnerGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppOwnerGrantSelect>; - } -): Promise; -export async function prefetchAppOwnerGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appOwnerGrantKeys.detail(params.id), - queryFn: () => - getClient() - .appOwnerGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts deleted file mode 100644 index 3cd73b539f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appOwnerGrantKeys } from '../query-keys'; -import type { - AppOwnerGrantSelect, - AppOwnerGrantWithRelations, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppOwnerGrantSelect, - AppOwnerGrantWithRelations, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appOwnerGrantsQueryKey = appOwnerGrantKeys.list; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { data, isLoading } = useAppOwnerGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppOwnerGrantsQuery< - S extends AppOwnerGrantSelect, - TData = { - appOwnerGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppOwnerGrantSelect>; - } & Omit< - UseQueryOptions< - { - appOwnerGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppOwnerGrantsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppOwnerGrantSelect, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appOwnerGrantKeys.list(args), - queryFn: () => getClient().appOwnerGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * const data = await fetchAppOwnerGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppOwnerGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppOwnerGrantSelect>; -}): Promise<{ - appOwnerGrants: ConnectionResult>; -}>; -export async function fetchAppOwnerGrantsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppOwnerGrantSelect, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy - >(params.selection); - return getClient().appOwnerGrant.findMany(args).unwrap(); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * await prefetchAppOwnerGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppOwnerGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppOwnerGrantSelect>; - } -): Promise; -export async function prefetchAppOwnerGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppOwnerGrantSelect, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appOwnerGrantKeys.list(args), - queryFn: () => getClient().appOwnerGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts deleted file mode 100644 index d7c76c2a3a..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionDefaultKeys } from '../query-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppPermissionDefaultQuery< - S extends AppPermissionDefaultSelect, - TData = { - appPermissionDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appPermissionDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchAppPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppPermissionDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultSelect>; -}): Promise<{ - appPermissionDefault: InferSelectResult | null; -}>; -export async function fetchAppPermissionDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchAppPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionDefaultSelect>; - } -): Promise; -export async function prefetchAppPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .appPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts deleted file mode 100644 index 44cdda731c..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appPermissionDefaultKeys } from '../query-keys'; -import type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppPermissionDefaultSelect, - AppPermissionDefaultWithRelations, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppPermissionDefaultsQuery< - S extends AppPermissionDefaultSelect, - TData = { - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionDefaultsQuery( - params: { - selection: ListSelectionConfig< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionDefaultKeys.list(args), - queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchAppPermissionDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppPermissionDefaultsQuery< - S extends AppPermissionDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultSelect>; -}): Promise<{ - appPermissionDefaults: ConnectionResult>; -}>; -export async function fetchAppPermissionDefaultsQuery(params: { - selection: ListSelectionConfig< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >(params.selection); - return getClient().appPermissionDefault.findMany(args).unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchAppPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, AppPermissionDefaultSelect>; - } -): Promise; -export async function prefetchAppPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionDefaultKeys.list(args), - queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts deleted file mode 100644 index b89353ec63..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appPermissionKeys } from '../query-keys'; -import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionQueryKey = appPermissionKeys.detail; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAppPermissionQuery< - S extends AppPermissionSelect, - TData = { - appPermission: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseQueryOptions< - { - appPermission: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .appPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchAppPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAppPermissionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionSelect>; -}): Promise<{ - appPermission: InferSelectResult | null; -}>; -export async function fetchAppPermissionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .appPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchAppPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAppPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AppPermissionSelect>; - } -): Promise; -export async function prefetchAppPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .appPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts deleted file mode 100644 index 78774ab694..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for appPermissionsGetByMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetByMaskVariables } from '../../orm/query'; -import type { AppPermissionConnection } from '../../orm/input-types'; -export type { AppPermissionsGetByMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetByMaskQueryKey = customQueryKeys.appPermissionsGetByMask; -/** - * Reads and enables pagination through a set of `AppPermission`. - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); - * - * if (data?.appPermissionsGetByMask) { - * console.log(data.appPermissionsGetByMask); - * } - * ``` - */ -export function useAppPermissionsGetByMaskQuery< - TData = { - appPermissionsGetByMask: AppPermissionConnection | null; - }, ->( - params?: { - variables?: AppPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetByMask: AppPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetByMaskQuery< - TData = { - appPermissionsGetByMask: AppPermissionConnection | null; - }, ->( - params?: { - variables?: AppPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetByMask: AppPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetByMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); - * ``` - */ -export async function fetchAppPermissionsGetByMaskQuery(params?: { - variables?: AppPermissionsGetByMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetByMask(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetByMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetByMaskQuery(queryClient, { variables: { mask, first, offset, after } }); - * ``` - */ -export async function prefetchAppPermissionsGetByMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetByMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index cbfe1fad8f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appPermissionsGetMaskByNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetMaskByNamesQueryKey = customQueryKeys.appPermissionsGetMaskByNames; -/** - * Query hook for appPermissionsGetMaskByNames - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ variables: { names } }); - * - * if (data?.appPermissionsGetMaskByNames) { - * console.log(data.appPermissionsGetMaskByNames); - * } - * ``` - */ -export function useAppPermissionsGetMaskByNamesQuery< - TData = { - appPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetMaskByNamesQuery< - TData = { - appPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetMaskByNames without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetMaskByNamesQuery({ variables: { names } }); - * ``` - */ -export async function fetchAppPermissionsGetMaskByNamesQuery(params?: { - variables?: AppPermissionsGetMaskByNamesVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetMaskByNames(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetMaskByNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); - * ``` - */ -export async function prefetchAppPermissionsGetMaskByNamesQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetMaskByNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts deleted file mode 100644 index b1e3289da9..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appPermissionsGetMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetMaskVariables } from '../../orm/query'; -export type { AppPermissionsGetMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetMaskQueryKey = customQueryKeys.appPermissionsGetMask; -/** - * Query hook for appPermissionsGetMask - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetMaskQuery({ variables: { ids } }); - * - * if (data?.appPermissionsGetMask) { - * console.log(data.appPermissionsGetMask); - * } - * ``` - */ -export function useAppPermissionsGetMaskQuery< - TData = { - appPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetMaskQuery< - TData = { - appPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetMaskQuery({ variables: { ids } }); - * ``` - */ -export async function fetchAppPermissionsGetMaskQuery(params?: { - variables?: AppPermissionsGetMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetMask(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetMaskQuery(queryClient, { variables: { ids } }); - * ``` - */ -export async function prefetchAppPermissionsGetMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index cb504f8105..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for appPermissionsGetPaddedMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsGetPaddedMaskQueryKey = customQueryKeys.appPermissionsGetPaddedMask; -/** - * Query hook for appPermissionsGetPaddedMask - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * - * if (data?.appPermissionsGetPaddedMask) { - * console.log(data.appPermissionsGetPaddedMask); - * } - * ``` - */ -export function useAppPermissionsGetPaddedMaskQuery< - TData = { - appPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsGetPaddedMaskQuery< - TData = { - appPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: AppPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - appPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: appPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch appPermissionsGetPaddedMask without React hooks - * - * @example - * ```ts - * const data = await fetchAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * ``` - */ -export async function fetchAppPermissionsGetPaddedMaskQuery(params?: { - variables?: AppPermissionsGetPaddedMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.appPermissionsGetPaddedMask(variables).unwrap(); -} -/** - * Prefetch appPermissionsGetPaddedMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchAppPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); - * ``` - */ -export async function prefetchAppPermissionsGetPaddedMaskQuery( - queryClient: QueryClient, - params?: { - variables?: AppPermissionsGetPaddedMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: appPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts deleted file mode 100644 index 67d25dcdce..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { appPermissionKeys } from '../query-keys'; -import type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionFilter, - AppPermissionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AppPermissionSelect, - AppPermissionWithRelations, - AppPermissionFilter, - AppPermissionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const appPermissionsQueryKey = appPermissionKeys.list; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useAppPermissionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAppPermissionsQuery< - S extends AppPermissionSelect, - TData = { - appPermissions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppPermissionSelect>; - } & Omit< - UseQueryOptions< - { - appPermissions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAppPermissionsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: appPermissionKeys.list(args), - queryFn: () => getClient().appPermission.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchAppPermissionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAppPermissionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppPermissionSelect>; -}): Promise<{ - appPermissions: ConnectionResult>; -}>; -export async function fetchAppPermissionsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy - >(params.selection); - return getClient().appPermission.findMany(args).unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchAppPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAppPermissionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AppPermissionSelect>; - } -): Promise; -export async function prefetchAppPermissionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: appPermissionKeys.list(args), - queryFn: () => getClient().appPermission.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthQuery.ts deleted file mode 100644 index e8f8622549..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { auditLogAuthKeys } from '../query-keys'; -import type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const auditLogAuthQueryKey = auditLogAuthKeys.detail; -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { data, isLoading } = useAuditLogAuthQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAuditLogAuthQuery< - S extends AuditLogAuthSelect, - TData = { - auditLogAuth: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogAuthSelect>; - } & Omit< - UseQueryOptions< - { - auditLogAuth: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAuditLogAuthQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: auditLogAuthKeys.detail(params.id), - queryFn: () => - getClient() - .auditLogAuth.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * const data = await fetchAuditLogAuthQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAuditLogAuthQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogAuthSelect>; -}): Promise<{ - auditLogAuth: InferSelectResult | null; -}>; -export async function fetchAuditLogAuthQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .auditLogAuth.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * await prefetchAuditLogAuthQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAuditLogAuthQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogAuthSelect>; - } -): Promise; -export async function prefetchAuditLogAuthQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: auditLogAuthKeys.detail(params.id), - queryFn: () => - getClient() - .auditLogAuth.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthsQuery.ts deleted file mode 100644 index ecd351deba..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { auditLogAuthKeys } from '../query-keys'; -import type { - AuditLogAuthSelect, - AuditLogAuthWithRelations, - AuditLogAuthFilter, - AuditLogAuthOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AuditLogAuthSelect, - AuditLogAuthWithRelations, - AuditLogAuthFilter, - AuditLogAuthOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const auditLogAuthsQueryKey = auditLogAuthKeys.list; -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { data, isLoading } = useAuditLogAuthsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAuditLogAuthsQuery< - S extends AuditLogAuthSelect, - TData = { - auditLogAuths: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogAuthSelect>; - } & Omit< - UseQueryOptions< - { - auditLogAuths: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAuditLogAuthsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: auditLogAuthKeys.list(args), - queryFn: () => getClient().auditLogAuth.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * const data = await fetchAuditLogAuthsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAuditLogAuthsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogAuthSelect>; -}): Promise<{ - auditLogAuths: ConnectionResult>; -}>; -export async function fetchAuditLogAuthsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().auditLogAuth.findMany(args).unwrap(); -} -/** - * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * await prefetchAuditLogAuthsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAuditLogAuthsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogAuthSelect>; - } -): Promise; -export async function prefetchAuditLogAuthsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: auditLogAuthKeys.list(args), - queryFn: () => getClient().auditLogAuth.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts deleted file mode 100644 index 71147292e5..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { cryptoAddressKeys } from '../query-keys'; -import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const cryptoAddressQueryKey = cryptoAddressKeys.detail; -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```tsx - * const { data, isLoading } = useCryptoAddressQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useCryptoAddressQuery< - S extends CryptoAddressSelect, - TData = { - cryptoAddress: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, CryptoAddressSelect>; - } & Omit< - UseQueryOptions< - { - cryptoAddress: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useCryptoAddressQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: cryptoAddressKeys.detail(params.id), - queryFn: () => - getClient() - .cryptoAddress.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```ts - * const data = await fetchCryptoAddressQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchCryptoAddressQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, CryptoAddressSelect>; -}): Promise<{ - cryptoAddress: InferSelectResult | null; -}>; -export async function fetchCryptoAddressQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .cryptoAddress.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```ts - * await prefetchCryptoAddressQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchCryptoAddressQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, CryptoAddressSelect>; - } -): Promise; -export async function prefetchCryptoAddressQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: cryptoAddressKeys.detail(params.id), - queryFn: () => - getClient() - .cryptoAddress.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts deleted file mode 100644 index ffb35cc205..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { cryptoAddressKeys } from '../query-keys'; -import type { - CryptoAddressSelect, - CryptoAddressWithRelations, - CryptoAddressFilter, - CryptoAddressOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - CryptoAddressSelect, - CryptoAddressWithRelations, - CryptoAddressFilter, - CryptoAddressOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const cryptoAddressesQueryKey = cryptoAddressKeys.list; -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```tsx - * const { data, isLoading } = useCryptoAddressesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useCryptoAddressesQuery< - S extends CryptoAddressSelect, - TData = { - cryptoAddresses: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, CryptoAddressSelect>; - } & Omit< - UseQueryOptions< - { - cryptoAddresses: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useCryptoAddressesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - CryptoAddressSelect, - CryptoAddressFilter, - CryptoAddressOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: cryptoAddressKeys.list(args), - queryFn: () => getClient().cryptoAddress.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```ts - * const data = await fetchCryptoAddressesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchCryptoAddressesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, CryptoAddressSelect>; -}): Promise<{ - cryptoAddresses: ConnectionResult>; -}>; -export async function fetchCryptoAddressesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - CryptoAddressSelect, - CryptoAddressFilter, - CryptoAddressOrderBy - >(params.selection); - return getClient().cryptoAddress.findMany(args).unwrap(); -} -/** - * Cryptocurrency wallet addresses owned by users, with network-specific validation and verification - * - * @example - * ```ts - * await prefetchCryptoAddressesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchCryptoAddressesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, CryptoAddressSelect>; - } -): Promise; -export async function prefetchCryptoAddressesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - CryptoAddressSelect, - CryptoAddressFilter, - CryptoAddressOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: cryptoAddressKeys.list(args), - queryFn: () => getClient().cryptoAddress.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentIpAddressQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentIpAddressQuery.ts deleted file mode 100644 index 525306e3b5..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useCurrentIpAddressQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Custom query hook for currentIpAddress - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -/** Query key factory - re-exported from query-keys.ts */ -export const currentIpAddressQueryKey = customQueryKeys.currentIpAddress; -/** - * Query hook for currentIpAddress - * - * @example - * ```tsx - * const { data, isLoading } = useCurrentIpAddressQuery(); - * - * if (data?.currentIpAddress) { - * console.log(data.currentIpAddress); - * } - * ``` - */ -export function useCurrentIpAddressQuery< - TData = { - currentIpAddress: string | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - currentIpAddress: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useCurrentIpAddressQuery< - TData = { - currentIpAddress: string | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - currentIpAddress: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const queryOptions = params ?? {}; - return useQuery({ - queryKey: currentIpAddressQueryKey(), - queryFn: () => getClient().query.currentIpAddress().unwrap(), - ...queryOptions, - }); -} -/** - * Fetch currentIpAddress without React hooks - * - * @example - * ```ts - * const data = await fetchCurrentIpAddressQuery(); - * ``` - */ -export async function fetchCurrentIpAddressQuery() { - return getClient().query.currentIpAddress().unwrap(); -} -/** - * Prefetch currentIpAddress for SSR or cache warming - * - * @example - * ```ts - * await prefetchCurrentIpAddressQuery(queryClient); - * ``` - */ -export async function prefetchCurrentIpAddressQuery(queryClient: QueryClient): Promise { - await queryClient.prefetchQuery({ - queryKey: currentIpAddressQueryKey(), - queryFn: () => getClient().query.currentIpAddress().unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserAgentQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserAgentQuery.ts deleted file mode 100644 index 5a9c544d9f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserAgentQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Custom query hook for currentUserAgent - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -/** Query key factory - re-exported from query-keys.ts */ -export const currentUserAgentQueryKey = customQueryKeys.currentUserAgent; -/** - * Query hook for currentUserAgent - * - * @example - * ```tsx - * const { data, isLoading } = useCurrentUserAgentQuery(); - * - * if (data?.currentUserAgent) { - * console.log(data.currentUserAgent); - * } - * ``` - */ -export function useCurrentUserAgentQuery< - TData = { - currentUserAgent: string | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - currentUserAgent: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useCurrentUserAgentQuery< - TData = { - currentUserAgent: string | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - currentUserAgent: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const queryOptions = params ?? {}; - return useQuery({ - queryKey: currentUserAgentQueryKey(), - queryFn: () => getClient().query.currentUserAgent().unwrap(), - ...queryOptions, - }); -} -/** - * Fetch currentUserAgent without React hooks - * - * @example - * ```ts - * const data = await fetchCurrentUserAgentQuery(); - * ``` - */ -export async function fetchCurrentUserAgentQuery() { - return getClient().query.currentUserAgent().unwrap(); -} -/** - * Prefetch currentUserAgent for SSR or cache warming - * - * @example - * ```ts - * await prefetchCurrentUserAgentQuery(queryClient); - * ``` - */ -export async function prefetchCurrentUserAgentQuery(queryClient: QueryClient): Promise { - await queryClient.prefetchQuery({ - queryKey: currentUserAgentQueryKey(), - queryFn: () => getClient().query.currentUserAgent().unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserIdQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserIdQuery.ts deleted file mode 100644 index 5f65326cc9..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserIdQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Custom query hook for currentUserId - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -/** Query key factory - re-exported from query-keys.ts */ -export const currentUserIdQueryKey = customQueryKeys.currentUserId; -/** - * Query hook for currentUserId - * - * @example - * ```tsx - * const { data, isLoading } = useCurrentUserIdQuery(); - * - * if (data?.currentUserId) { - * console.log(data.currentUserId); - * } - * ``` - */ -export function useCurrentUserIdQuery< - TData = { - currentUserId: string | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - currentUserId: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useCurrentUserIdQuery< - TData = { - currentUserId: string | null; - }, ->( - params?: Omit< - UseQueryOptions< - { - currentUserId: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const queryOptions = params ?? {}; - return useQuery({ - queryKey: currentUserIdQueryKey(), - queryFn: () => getClient().query.currentUserId().unwrap(), - ...queryOptions, - }); -} -/** - * Fetch currentUserId without React hooks - * - * @example - * ```ts - * const data = await fetchCurrentUserIdQuery(); - * ``` - */ -export async function fetchCurrentUserIdQuery() { - return getClient().query.currentUserId().unwrap(); -} -/** - * Prefetch currentUserId for SSR or cache warming - * - * @example - * ```ts - * await prefetchCurrentUserIdQuery(queryClient); - * ``` - */ -export async function prefetchCurrentUserIdQuery(queryClient: QueryClient): Promise { - await queryClient.prefetchQuery({ - queryKey: currentUserIdQueryKey(), - queryFn: () => getClient().query.currentUserId().unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserQuery.ts deleted file mode 100644 index 0bc463f039..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserQuery.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Custom query hook for currentUser - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { UserSelect, User } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UserSelect } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const currentUserQueryKey = customQueryKeys.currentUser; -/** - * Query hook for currentUser - * - * @example - * ```tsx - * const { data, isLoading } = useCurrentUserQuery({ selection: { fields: { id: true } } }); - * - * if (data?.currentUser) { - * console.log(data.currentUser); - * } - * ``` - */ -export function useCurrentUserQuery< - S extends UserSelect, - TData = { - currentUser: InferSelectResult | null; - }, ->( - params: { - selection: { - fields: S & UserSelect; - } & HookStrictSelect, UserSelect>; - } & Omit< - UseQueryOptions< - { - currentUser: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useCurrentUserQuery( - params: { - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: currentUserQueryKey(), - queryFn: () => - getClient() - .query.currentUser({ - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch currentUser without React hooks - * - * @example - * ```ts - * const data = await fetchCurrentUserQuery({ selection: { fields: { id: true } } }); - * ``` - */ -export async function fetchCurrentUserQuery(params: { - selection: { - fields: S & UserSelect; - } & HookStrictSelect, UserSelect>; -}): Promise<{ - currentUser: InferSelectResult | null; -}>; -export async function fetchCurrentUserQuery(params: { selection: SelectionConfig }) { - const args = buildSelectionArgs(params.selection); - return getClient() - .query.currentUser({ - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch currentUser for SSR or cache warming - * - * @example - * ```ts - * await prefetchCurrentUserQuery(queryClient, { selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchCurrentUserQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S & UserSelect; - } & HookStrictSelect, UserSelect>; - } -): Promise; -export async function prefetchCurrentUserQuery( - queryClient: QueryClient, - params: { - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: currentUserQueryKey(), - queryFn: () => - getClient() - .query.currentUser({ - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts deleted file mode 100644 index 8b2b353346..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * User email addresses with verification and primary-email management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { emailKeys } from '../query-keys'; -import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const emailQueryKey = emailKeys.detail; -/** - * User email addresses with verification and primary-email management - * - * @example - * ```tsx - * const { data, isLoading } = useEmailQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useEmailQuery< - S extends EmailSelect, - TData = { - email: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EmailSelect>; - } & Omit< - UseQueryOptions< - { - email: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEmailQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: emailKeys.detail(params.id), - queryFn: () => - getClient() - .email.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * User email addresses with verification and primary-email management - * - * @example - * ```ts - * const data = await fetchEmailQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchEmailQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EmailSelect>; -}): Promise<{ - email: InferSelectResult | null; -}>; -export async function fetchEmailQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .email.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * User email addresses with verification and primary-email management - * - * @example - * ```ts - * await prefetchEmailQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchEmailQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EmailSelect>; - } -): Promise; -export async function prefetchEmailQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: emailKeys.detail(params.id), - queryFn: () => - getClient() - .email.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts deleted file mode 100644 index 44aa1f0ce3..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * User email addresses with verification and primary-email management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { emailKeys } from '../query-keys'; -import type { - EmailSelect, - EmailWithRelations, - EmailFilter, - EmailOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - EmailSelect, - EmailWithRelations, - EmailFilter, - EmailOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const emailsQueryKey = emailKeys.list; -/** - * User email addresses with verification and primary-email management - * - * @example - * ```tsx - * const { data, isLoading } = useEmailsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useEmailsQuery< - S extends EmailSelect, - TData = { - emails: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, EmailSelect>; - } & Omit< - UseQueryOptions< - { - emails: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEmailsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: emailKeys.list(args), - queryFn: () => getClient().email.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * User email addresses with verification and primary-email management - * - * @example - * ```ts - * const data = await fetchEmailsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchEmailsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, EmailSelect>; -}): Promise<{ - emails: ConnectionResult>; -}>; -export async function fetchEmailsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs(params.selection); - return getClient().email.findMany(args).unwrap(); -} -/** - * User email addresses with verification and primary-email management - * - * @example - * ```ts - * await prefetchEmailsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchEmailsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, EmailSelect>; - } -): Promise; -export async function prefetchEmailsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: emailKeys.list(args), - queryFn: () => getClient().email.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useIdentityProvidersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useIdentityProvidersQuery.ts deleted file mode 100644 index a7dc247aaa..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useIdentityProvidersQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * List query hook for IdentityProvider - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { identityProviderKeys } from '../query-keys'; -import type { - IdentityProviderSelect, - IdentityProviderWithRelations, - IdentityProviderFilter, - IdentityProviderOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - IdentityProviderSelect, - IdentityProviderWithRelations, - IdentityProviderFilter, - IdentityProviderOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const identityProvidersQueryKey = identityProviderKeys.list; -/** - * Query hook for fetching IdentityProvider list - * - * @example - * ```tsx - * const { data, isLoading } = useIdentityProvidersQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useIdentityProvidersQuery< - S extends IdentityProviderSelect, - TData = { - identityProviders: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, IdentityProviderSelect>; - } & Omit< - UseQueryOptions< - { - identityProviders: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useIdentityProvidersQuery( - params: { - selection: ListSelectionConfig< - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: identityProviderKeys.list(args), - queryFn: () => getClient().identityProvider.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch IdentityProvider list without React hooks - * - * @example - * ```ts - * const data = await fetchIdentityProvidersQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchIdentityProvidersQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, IdentityProviderSelect>; -}): Promise<{ - identityProviders: ConnectionResult>; -}>; -export async function fetchIdentityProvidersQuery(params: { - selection: ListSelectionConfig< - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy - >; -}) { - const args = buildListSelectionArgs< - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy - >(params.selection); - return getClient().identityProvider.findMany(args).unwrap(); -} -/** - * Prefetch IdentityProvider list for SSR or cache warming - * - * @example - * ```ts - * await prefetchIdentityProvidersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchIdentityProvidersQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, IdentityProviderSelect>; - } -): Promise; -export async function prefetchIdentityProvidersQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: identityProviderKeys.list(args), - queryFn: () => getClient().identityProvider.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts deleted file mode 100644 index e41a27d955..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { membershipTypeKeys } from '../query-keys'; -import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const membershipTypeQueryKey = membershipTypeKeys.detail; -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```tsx - * const { data, isLoading } = useMembershipTypeQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useMembershipTypeQuery< - S extends MembershipTypeSelect, - TData = { - membershipType: InferSelectResult | null; - }, ->( - params: { - id: number; - selection: { - fields: S; - } & HookStrictSelect, MembershipTypeSelect>; - } & Omit< - UseQueryOptions< - { - membershipType: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMembershipTypeQuery( - params: { - id: number; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: membershipTypeKeys.detail(params.id), - queryFn: () => - getClient() - .membershipType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```ts - * const data = await fetchMembershipTypeQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchMembershipTypeQuery(params: { - id: number; - selection: { - fields: S; - } & HookStrictSelect, MembershipTypeSelect>; -}): Promise<{ - membershipType: InferSelectResult | null; -}>; -export async function fetchMembershipTypeQuery(params: { - id: number; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .membershipType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```ts - * await prefetchMembershipTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchMembershipTypeQuery( - queryClient: QueryClient, - params: { - id: number; - selection: { - fields: S; - } & HookStrictSelect, MembershipTypeSelect>; - } -): Promise; -export async function prefetchMembershipTypeQuery( - queryClient: QueryClient, - params: { - id: number; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: membershipTypeKeys.detail(params.id), - queryFn: () => - getClient() - .membershipType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts deleted file mode 100644 index c148bab02a..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { membershipTypeKeys } from '../query-keys'; -import type { - MembershipTypeSelect, - MembershipTypeWithRelations, - MembershipTypeFilter, - MembershipTypeOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - MembershipTypeSelect, - MembershipTypeWithRelations, - MembershipTypeFilter, - MembershipTypeOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const membershipTypesQueryKey = membershipTypeKeys.list; -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```tsx - * const { data, isLoading } = useMembershipTypesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useMembershipTypesQuery< - S extends MembershipTypeSelect, - TData = { - membershipTypes: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MembershipTypeSelect>; - } & Omit< - UseQueryOptions< - { - membershipTypes: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useMembershipTypesQuery( - params: { - selection: ListSelectionConfig< - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: membershipTypeKeys.list(args), - queryFn: () => getClient().membershipType.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```ts - * const data = await fetchMembershipTypesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchMembershipTypesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MembershipTypeSelect>; -}): Promise<{ - membershipTypes: ConnectionResult>; -}>; -export async function fetchMembershipTypesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy - >(params.selection); - return getClient().membershipType.findMany(args).unwrap(); -} -/** - * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) - * - * @example - * ```ts - * await prefetchMembershipTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchMembershipTypesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, MembershipTypeSelect>; - } -): Promise; -export async function prefetchMembershipTypesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: membershipTypeKeys.list(args), - queryFn: () => getClient().membershipType.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts deleted file mode 100644 index 468412a98d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgAdminGrantKeys } from '../query-keys'; -import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgAdminGrantQueryKey = orgAdminGrantKeys.detail; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgAdminGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgAdminGrantQuery< - S extends OrgAdminGrantSelect, - TData = { - orgAdminGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgAdminGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgAdminGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgAdminGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgAdminGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgAdminGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * const data = await fetchOrgAdminGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgAdminGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgAdminGrantSelect>; -}): Promise<{ - orgAdminGrant: InferSelectResult | null; -}>; -export async function fetchOrgAdminGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgAdminGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * await prefetchOrgAdminGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgAdminGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgAdminGrantSelect>; - } -): Promise; -export async function prefetchOrgAdminGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgAdminGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgAdminGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts deleted file mode 100644 index b79b6cfdd4..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Records of admin role grants and revocations between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgAdminGrantKeys } from '../query-keys'; -import type { - OrgAdminGrantSelect, - OrgAdminGrantWithRelations, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgAdminGrantSelect, - OrgAdminGrantWithRelations, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgAdminGrantsQueryKey = orgAdminGrantKeys.list; -/** - * Records of admin role grants and revocations between members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgAdminGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgAdminGrantsQuery< - S extends OrgAdminGrantSelect, - TData = { - orgAdminGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgAdminGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgAdminGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgAdminGrantsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgAdminGrantSelect, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgAdminGrantKeys.list(args), - queryFn: () => getClient().orgAdminGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * const data = await fetchOrgAdminGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgAdminGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgAdminGrantSelect>; -}): Promise<{ - orgAdminGrants: ConnectionResult>; -}>; -export async function fetchOrgAdminGrantsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgAdminGrantSelect, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy - >(params.selection); - return getClient().orgAdminGrant.findMany(args).unwrap(); -} -/** - * Records of admin role grants and revocations between members - * - * @example - * ```ts - * await prefetchOrgAdminGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgAdminGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgAdminGrantSelect>; - } -): Promise; -export async function prefetchOrgAdminGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - OrgAdminGrantSelect, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgAdminGrantKeys.list(args), - queryFn: () => getClient().orgAdminGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts deleted file mode 100644 index c367a5c772..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeGrantKeys } from '../query-keys'; -import type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgChartEdgeGrantQueryKey = orgChartEdgeGrantKeys.detail; -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```tsx - * const { data, isLoading } = useOrgChartEdgeGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgChartEdgeGrantQuery< - S extends OrgChartEdgeGrantSelect, - TData = { - orgChartEdgeGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgChartEdgeGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgChartEdgeGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgChartEdgeGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgChartEdgeGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgChartEdgeGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```ts - * const data = await fetchOrgChartEdgeGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgChartEdgeGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgChartEdgeGrantSelect>; -}): Promise<{ - orgChartEdgeGrant: InferSelectResult | null; -}>; -export async function fetchOrgChartEdgeGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgChartEdgeGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```ts - * await prefetchOrgChartEdgeGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgChartEdgeGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgChartEdgeGrantSelect>; - } -): Promise; -export async function prefetchOrgChartEdgeGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgChartEdgeGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgChartEdgeGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts deleted file mode 100644 index 8f4c33b083..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeGrantsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgChartEdgeGrantKeys } from '../query-keys'; -import type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantWithRelations, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgChartEdgeGrantsQueryKey = orgChartEdgeGrantKeys.list; -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```tsx - * const { data, isLoading } = useOrgChartEdgeGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgChartEdgeGrantsQuery< - S extends OrgChartEdgeGrantSelect, - TData = { - orgChartEdgeGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgChartEdgeGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgChartEdgeGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgChartEdgeGrantsQuery( - params: { - selection: ListSelectionConfig< - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgChartEdgeGrantKeys.list(args), - queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```ts - * const data = await fetchOrgChartEdgeGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgChartEdgeGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgChartEdgeGrantSelect>; -}): Promise<{ - orgChartEdgeGrants: ConnectionResult>; -}>; -export async function fetchOrgChartEdgeGrantsQuery(params: { - selection: ListSelectionConfig< - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy - >(params.selection); - return getClient().orgChartEdgeGrant.findMany(args).unwrap(); -} -/** - * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table - * - * @example - * ```ts - * await prefetchOrgChartEdgeGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgChartEdgeGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgChartEdgeGrantSelect>; - } -): Promise; -export async function prefetchOrgChartEdgeGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgChartEdgeGrantKeys.list(args), - queryFn: () => getClient().orgChartEdgeGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts deleted file mode 100644 index fac39e2eb8..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgChartEdgeKeys } from '../query-keys'; -import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgChartEdgeQueryKey = orgChartEdgeKeys.detail; -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```tsx - * const { data, isLoading } = useOrgChartEdgeQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgChartEdgeQuery< - S extends OrgChartEdgeSelect, - TData = { - orgChartEdge: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgChartEdgeSelect>; - } & Omit< - UseQueryOptions< - { - orgChartEdge: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgChartEdgeQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgChartEdgeKeys.detail(params.id), - queryFn: () => - getClient() - .orgChartEdge.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```ts - * const data = await fetchOrgChartEdgeQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgChartEdgeQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgChartEdgeSelect>; -}): Promise<{ - orgChartEdge: InferSelectResult | null; -}>; -export async function fetchOrgChartEdgeQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgChartEdge.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```ts - * await prefetchOrgChartEdgeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgChartEdgeQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgChartEdgeSelect>; - } -): Promise; -export async function prefetchOrgChartEdgeQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgChartEdgeKeys.detail(params.id), - queryFn: () => - getClient() - .orgChartEdge.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts deleted file mode 100644 index c5030a79de..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgChartEdgesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgChartEdgeKeys } from '../query-keys'; -import type { - OrgChartEdgeSelect, - OrgChartEdgeWithRelations, - OrgChartEdgeFilter, - OrgChartEdgeOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgChartEdgeSelect, - OrgChartEdgeWithRelations, - OrgChartEdgeFilter, - OrgChartEdgeOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgChartEdgesQueryKey = orgChartEdgeKeys.list; -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```tsx - * const { data, isLoading } = useOrgChartEdgesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgChartEdgesQuery< - S extends OrgChartEdgeSelect, - TData = { - orgChartEdges: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgChartEdgeSelect>; - } & Omit< - UseQueryOptions< - { - orgChartEdges: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgChartEdgesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgChartEdgeKeys.list(args), - queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```ts - * const data = await fetchOrgChartEdgesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgChartEdgesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgChartEdgeSelect>; -}): Promise<{ - orgChartEdges: ConnectionResult>; -}>; -export async function fetchOrgChartEdgesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().orgChartEdge.findMany(args).unwrap(); -} -/** - * Organizational chart edges defining parent-child reporting relationships between members within an entity - * - * @example - * ```ts - * await prefetchOrgChartEdgesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgChartEdgesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgChartEdgeSelect>; - } -): Promise; -export async function prefetchOrgChartEdgesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: orgChartEdgeKeys.list(args), - queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts deleted file mode 100644 index bd0fcdb37f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgClaimedInviteKeys } from '../query-keys'; -import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgClaimedInviteQueryKey = orgClaimedInviteKeys.detail; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { data, isLoading } = useOrgClaimedInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgClaimedInviteQuery< - S extends OrgClaimedInviteSelect, - TData = { - orgClaimedInvite: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgClaimedInviteSelect>; - } & Omit< - UseQueryOptions< - { - orgClaimedInvite: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgClaimedInviteQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgClaimedInviteKeys.detail(params.id), - queryFn: () => - getClient() - .orgClaimedInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * const data = await fetchOrgClaimedInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgClaimedInviteQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgClaimedInviteSelect>; -}): Promise<{ - orgClaimedInvite: InferSelectResult | null; -}>; -export async function fetchOrgClaimedInviteQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgClaimedInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * await prefetchOrgClaimedInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgClaimedInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgClaimedInviteSelect>; - } -): Promise; -export async function prefetchOrgClaimedInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgClaimedInviteKeys.detail(params.id), - queryFn: () => - getClient() - .orgClaimedInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts deleted file mode 100644 index 300fb5adfd..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Records of successfully claimed invitations, linking senders to receivers - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgClaimedInviteKeys } from '../query-keys'; -import type { - OrgClaimedInviteSelect, - OrgClaimedInviteWithRelations, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgClaimedInviteSelect, - OrgClaimedInviteWithRelations, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgClaimedInvitesQueryKey = orgClaimedInviteKeys.list; -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```tsx - * const { data, isLoading } = useOrgClaimedInvitesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgClaimedInvitesQuery< - S extends OrgClaimedInviteSelect, - TData = { - orgClaimedInvites: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgClaimedInviteSelect>; - } & Omit< - UseQueryOptions< - { - orgClaimedInvites: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgClaimedInvitesQuery( - params: { - selection: ListSelectionConfig< - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgClaimedInviteKeys.list(args), - queryFn: () => getClient().orgClaimedInvite.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * const data = await fetchOrgClaimedInvitesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgClaimedInvitesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgClaimedInviteSelect>; -}): Promise<{ - orgClaimedInvites: ConnectionResult>; -}>; -export async function fetchOrgClaimedInvitesQuery(params: { - selection: ListSelectionConfig< - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy - >(params.selection); - return getClient().orgClaimedInvite.findMany(args).unwrap(); -} -/** - * Records of successfully claimed invitations, linking senders to receivers - * - * @example - * ```ts - * await prefetchOrgClaimedInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgClaimedInvitesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgClaimedInviteSelect>; - } -): Promise; -export async function prefetchOrgClaimedInvitesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgClaimedInviteKeys.list(args), - queryFn: () => getClient().orgClaimedInvite.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts deleted file mode 100644 index cd9e040169..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGetManagersQuery.ts +++ /dev/null @@ -1,172 +0,0 @@ -/** - * List query hook for OrgGetManagersRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgGetManagersRecordKeys } from '../query-keys'; -import type { - OrgGetManagersRecordSelect, - OrgGetManagersRecordWithRelations, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgGetManagersRecordSelect, - OrgGetManagersRecordWithRelations, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgGetManagersQueryKey = orgGetManagersRecordKeys.list; -/** - * Query hook for fetching OrgGetManagersRecord list - * - * @example - * ```tsx - * const { data, isLoading } = useOrgGetManagersQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgGetManagersQuery< - S extends OrgGetManagersRecordSelect, - TData = { - orgGetManagers: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgGetManagersRecordSelect>; - } & Omit< - UseQueryOptions< - { - orgGetManagers: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgGetManagersQuery( - params: { - selection: ListSelectionConfig< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgGetManagersRecordKeys.list(args), - queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch OrgGetManagersRecord list without React hooks - * - * @example - * ```ts - * const data = await fetchOrgGetManagersQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgGetManagersQuery(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgGetManagersRecordSelect>; -}): Promise<{ - orgGetManagers: ConnectionResult>; -}>; -export async function fetchOrgGetManagersQuery(params: { - selection: ListSelectionConfig< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - >(params.selection); - return getClient().orgGetManagersRecord.findMany(args).unwrap(); -} -/** - * Prefetch OrgGetManagersRecord list for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgGetManagersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgGetManagersQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgGetManagersRecordSelect>; - } -): Promise; -export async function prefetchOrgGetManagersQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgGetManagersRecordKeys.list(args), - queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts deleted file mode 100644 index 5f006d3cac..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGetSubordinatesQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * List query hook for OrgGetSubordinatesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgGetSubordinatesRecordKeys } from '../query-keys'; -import type { - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordWithRelations, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordWithRelations, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgGetSubordinatesQueryKey = orgGetSubordinatesRecordKeys.list; -/** - * Query hook for fetching OrgGetSubordinatesRecord list - * - * @example - * ```tsx - * const { data, isLoading } = useOrgGetSubordinatesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgGetSubordinatesQuery< - S extends OrgGetSubordinatesRecordSelect, - TData = { - orgGetSubordinates: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgGetSubordinatesRecordSelect>; - } & Omit< - UseQueryOptions< - { - orgGetSubordinates: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgGetSubordinatesQuery( - params: { - selection: ListSelectionConfig< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgGetSubordinatesRecordKeys.list(args), - queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch OrgGetSubordinatesRecord list without React hooks - * - * @example - * ```ts - * const data = await fetchOrgGetSubordinatesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgGetSubordinatesQuery< - S extends OrgGetSubordinatesRecordSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgGetSubordinatesRecordSelect>; -}): Promise<{ - orgGetSubordinates: ConnectionResult>; -}>; -export async function fetchOrgGetSubordinatesQuery(params: { - selection: ListSelectionConfig< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - >(params.selection); - return getClient().orgGetSubordinatesRecord.findMany(args).unwrap(); -} -/** - * Prefetch OrgGetSubordinatesRecord list for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgGetSubordinatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgGetSubordinatesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgGetSubordinatesRecordSelect>; - } -): Promise; -export async function prefetchOrgGetSubordinatesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgGetSubordinatesRecordKeys.list(args), - queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts deleted file mode 100644 index 3d02f5cd44..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgGrantKeys } from '../query-keys'; -import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgGrantQueryKey = orgGrantKeys.detail; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgGrantQuery< - S extends OrgGrantSelect, - TData = { - orgGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * const data = await fetchOrgGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgGrantSelect>; -}): Promise<{ - orgGrant: InferSelectResult | null; -}>; -export async function fetchOrgGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * await prefetchOrgGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgGrantSelect>; - } -): Promise; -export async function prefetchOrgGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts deleted file mode 100644 index f402141302..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Records of individual permission grants and revocations for members via bitmask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgGrantKeys } from '../query-keys'; -import type { - OrgGrantSelect, - OrgGrantWithRelations, - OrgGrantFilter, - OrgGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgGrantSelect, - OrgGrantWithRelations, - OrgGrantFilter, - OrgGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgGrantsQueryKey = orgGrantKeys.list; -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgGrantsQuery< - S extends OrgGrantSelect, - TData = { - orgGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgGrantsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgGrantKeys.list(args), - queryFn: () => getClient().orgGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * const data = await fetchOrgGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgGrantSelect>; -}): Promise<{ - orgGrants: ConnectionResult>; -}>; -export async function fetchOrgGrantsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().orgGrant.findMany(args).unwrap(); -} -/** - * Records of individual permission grants and revocations for members via bitmask - * - * @example - * ```ts - * await prefetchOrgGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgGrantSelect>; - } -): Promise; -export async function prefetchOrgGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: orgGrantKeys.list(args), - queryFn: () => getClient().orgGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts deleted file mode 100644 index bf720507b3..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgInviteKeys } from '../query-keys'; -import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgInviteQueryKey = orgInviteKeys.detail; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { data, isLoading } = useOrgInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgInviteQuery< - S extends OrgInviteSelect, - TData = { - orgInvite: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgInviteSelect>; - } & Omit< - UseQueryOptions< - { - orgInvite: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgInviteQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgInviteKeys.detail(params.id), - queryFn: () => - getClient() - .orgInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * const data = await fetchOrgInviteQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgInviteQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgInviteSelect>; -}): Promise<{ - orgInvite: InferSelectResult | null; -}>; -export async function fetchOrgInviteQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * await prefetchOrgInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgInviteSelect>; - } -): Promise; -export async function prefetchOrgInviteQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgInviteKeys.detail(params.id), - queryFn: () => - getClient() - .orgInvite.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts deleted file mode 100644 index b5e0ee4dd5..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgInviteKeys } from '../query-keys'; -import type { - OrgInviteSelect, - OrgInviteWithRelations, - OrgInviteFilter, - OrgInviteOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgInviteSelect, - OrgInviteWithRelations, - OrgInviteFilter, - OrgInviteOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgInvitesQueryKey = orgInviteKeys.list; -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```tsx - * const { data, isLoading } = useOrgInvitesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgInvitesQuery< - S extends OrgInviteSelect, - TData = { - orgInvites: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgInviteSelect>; - } & Omit< - UseQueryOptions< - { - orgInvites: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgInvitesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgInviteKeys.list(args), - queryFn: () => getClient().orgInvite.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * const data = await fetchOrgInvitesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgInvitesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgInviteSelect>; -}): Promise<{ - orgInvites: ConnectionResult>; -}>; -export async function fetchOrgInvitesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().orgInvite.findMany(args).unwrap(); -} -/** - * Invitation records sent to prospective members via email, with token-based redemption and expiration - * - * @example - * ```ts - * await prefetchOrgInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgInvitesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgInviteSelect>; - } -): Promise; -export async function prefetchOrgInvitesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: orgInviteKeys.list(args), - queryFn: () => getClient().orgInvite.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts deleted file mode 100644 index 6092abc4a3..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgIsManagerOfQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for orgIsManagerOf - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { OrgIsManagerOfVariables } from '../../orm/query'; -export type { OrgIsManagerOfVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgIsManagerOfQueryKey = customQueryKeys.orgIsManagerOf; -/** - * Query hook for orgIsManagerOf - * - * @example - * ```tsx - * const { data, isLoading } = useOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); - * - * if (data?.orgIsManagerOf) { - * console.log(data.orgIsManagerOf); - * } - * ``` - */ -export function useOrgIsManagerOfQuery< - TData = { - orgIsManagerOf: boolean | null; - }, ->( - params?: { - variables?: OrgIsManagerOfVariables; - } & Omit< - UseQueryOptions< - { - orgIsManagerOf: boolean | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgIsManagerOfQuery< - TData = { - orgIsManagerOf: boolean | null; - }, ->( - params?: { - variables?: OrgIsManagerOfVariables; - } & Omit< - UseQueryOptions< - { - orgIsManagerOf: boolean | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgIsManagerOfQueryKey(variables), - queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgIsManagerOf without React hooks - * - * @example - * ```ts - * const data = await fetchOrgIsManagerOfQuery({ variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); - * ``` - */ -export async function fetchOrgIsManagerOfQuery(params?: { variables?: OrgIsManagerOfVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.orgIsManagerOf(variables).unwrap(); -} -/** - * Prefetch orgIsManagerOf for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgIsManagerOfQuery(queryClient, { variables: { pEntityId, pManagerId, pUserId, pMaxDepth } }); - * ``` - */ -export async function prefetchOrgIsManagerOfQuery( - queryClient: QueryClient, - params?: { - variables?: OrgIsManagerOfVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgIsManagerOfQueryKey(variables), - queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregateQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregateQuery.ts deleted file mode 100644 index efe5a4a53a..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregateQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitAggregateKeys } from '../query-keys'; -import type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitAggregateQueryKey = orgLimitAggregateKeys.detail; -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitAggregateQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitAggregateQuery< - S extends OrgLimitAggregateSelect, - TData = { - orgLimitAggregate: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitAggregateSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitAggregate: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitAggregateQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitAggregateKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitAggregate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```ts - * const data = await fetchOrgLimitAggregateQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitAggregateQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitAggregateSelect>; -}): Promise<{ - orgLimitAggregate: InferSelectResult | null; -}>; -export async function fetchOrgLimitAggregateQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimitAggregate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```ts - * await prefetchOrgLimitAggregateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitAggregateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitAggregateSelect>; - } -): Promise; -export async function prefetchOrgLimitAggregateQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitAggregateKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitAggregate.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregatesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregatesQuery.ts deleted file mode 100644 index 9f0caf3f39..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregatesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitAggregateKeys } from '../query-keys'; -import type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitAggregateSelect, - OrgLimitAggregateWithRelations, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitAggregatesQueryKey = orgLimitAggregateKeys.list; -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitAggregatesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitAggregatesQuery< - S extends OrgLimitAggregateSelect, - TData = { - orgLimitAggregates: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitAggregateSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitAggregates: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitAggregatesQuery( - params: { - selection: ListSelectionConfig< - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitAggregateKeys.list(args), - queryFn: () => getClient().orgLimitAggregate.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```ts - * const data = await fetchOrgLimitAggregatesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitAggregatesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitAggregateSelect>; -}): Promise<{ - orgLimitAggregates: ConnectionResult>; -}>; -export async function fetchOrgLimitAggregatesQuery(params: { - selection: ListSelectionConfig< - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy - >(params.selection); - return getClient().orgLimitAggregate.findMany(args).unwrap(); -} -/** - * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) - * - * @example - * ```ts - * await prefetchOrgLimitAggregatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitAggregatesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitAggregateSelect>; - } -): Promise; -export async function prefetchOrgLimitAggregatesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitAggregateKeys.list(args), - queryFn: () => getClient().orgLimitAggregate.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapQuery.ts deleted file mode 100644 index 222f8b38e9..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapKeys } from '../query-keys'; -import type { OrgLimitCapSelect, OrgLimitCapWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitCapSelect, OrgLimitCapWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitCapQueryKey = orgLimitCapKeys.detail; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitCapQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitCapQuery< - S extends OrgLimitCapSelect, - TData = { - orgLimitCap: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCapSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitCap: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitCapQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitCapKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * const data = await fetchOrgLimitCapQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitCapQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCapSelect>; -}): Promise<{ - orgLimitCap: InferSelectResult | null; -}>; -export async function fetchOrgLimitCapQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimitCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * await prefetchOrgLimitCapQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitCapQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCapSelect>; - } -): Promise; -export async function prefetchOrgLimitCapQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitCapKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitCap.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsDefaultQuery.ts deleted file mode 100644 index a74df9a29f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCapsDefaultKeys } from '../query-keys'; -import type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitCapsDefaultQueryKey = orgLimitCapsDefaultKeys.detail; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitCapsDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitCapsDefaultQuery< - S extends OrgLimitCapsDefaultSelect, - TData = { - orgLimitCapsDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCapsDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitCapsDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitCapsDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitCapsDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitCapsDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * const data = await fetchOrgLimitCapsDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitCapsDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCapsDefaultSelect>; -}): Promise<{ - orgLimitCapsDefault: InferSelectResult | null; -}>; -export async function fetchOrgLimitCapsDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimitCapsDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * await prefetchOrgLimitCapsDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitCapsDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCapsDefaultSelect>; - } -): Promise; -export async function prefetchOrgLimitCapsDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitCapsDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitCapsDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsDefaultsQuery.ts deleted file mode 100644 index 2d94c1883e..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsDefaultsQuery.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitCapsDefaultKeys } from '../query-keys'; -import type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultWithRelations, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitCapsDefaultsQueryKey = orgLimitCapsDefaultKeys.list; -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitCapsDefaultsQuery< - S extends OrgLimitCapsDefaultSelect, - TData = { - orgLimitCapsDefaults: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgLimitCapsDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitCapsDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitCapsDefaultsQuery( - params: { - selection: ListSelectionConfig< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitCapsDefaultKeys.list(args), - queryFn: () => getClient().orgLimitCapsDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * const data = await fetchOrgLimitCapsDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitCapsDefaultsQuery(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgLimitCapsDefaultSelect>; -}): Promise<{ - orgLimitCapsDefaults: ConnectionResult>; -}>; -export async function fetchOrgLimitCapsDefaultsQuery(params: { - selection: ListSelectionConfig< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - >(params.selection); - return getClient().orgLimitCapsDefault.findMany(args).unwrap(); -} -/** - * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. - * - * @example - * ```ts - * await prefetchOrgLimitCapsDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitCapsDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgLimitCapsDefaultSelect>; - } -): Promise; -export async function prefetchOrgLimitCapsDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitCapsDefaultKeys.list(args), - queryFn: () => getClient().orgLimitCapsDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsQuery.ts deleted file mode 100644 index 66139a68cd..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCapsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitCapKeys } from '../query-keys'; -import type { - OrgLimitCapSelect, - OrgLimitCapWithRelations, - OrgLimitCapFilter, - OrgLimitCapOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitCapSelect, - OrgLimitCapWithRelations, - OrgLimitCapFilter, - OrgLimitCapOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitCapsQueryKey = orgLimitCapKeys.list; -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitCapsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitCapsQuery< - S extends OrgLimitCapSelect, - TData = { - orgLimitCaps: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitCapSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitCaps: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitCapsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitCapKeys.list(args), - queryFn: () => getClient().orgLimitCap.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * const data = await fetchOrgLimitCapsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitCapsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitCapSelect>; -}): Promise<{ - orgLimitCaps: ConnectionResult>; -}>; -export async function fetchOrgLimitCapsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().orgLimitCap.findMany(args).unwrap(); -} -/** - * Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. - * - * @example - * ```ts - * await prefetchOrgLimitCapsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitCapsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitCapSelect>; - } -): Promise; -export async function prefetchOrgLimitCapsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: orgLimitCapKeys.list(args), - queryFn: () => getClient().orgLimitCap.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCreditQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCreditQuery.ts deleted file mode 100644 index a9e4e43241..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCreditQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitCreditKeys } from '../query-keys'; -import type { OrgLimitCreditSelect, OrgLimitCreditWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitCreditSelect, OrgLimitCreditWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitCreditQueryKey = orgLimitCreditKeys.detail; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitCreditQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitCreditQuery< - S extends OrgLimitCreditSelect, - TData = { - orgLimitCredit: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCreditSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitCredit: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitCreditQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitCreditKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * const data = await fetchOrgLimitCreditQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitCreditQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCreditSelect>; -}): Promise<{ - orgLimitCredit: InferSelectResult | null; -}>; -export async function fetchOrgLimitCreditQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimitCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * await prefetchOrgLimitCreditQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitCreditQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitCreditSelect>; - } -): Promise; -export async function prefetchOrgLimitCreditQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitCreditKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitCredit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCreditsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCreditsQuery.ts deleted file mode 100644 index 7f8786ae36..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitCreditsQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitCreditKeys } from '../query-keys'; -import type { - OrgLimitCreditSelect, - OrgLimitCreditWithRelations, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitCreditSelect, - OrgLimitCreditWithRelations, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitCreditsQueryKey = orgLimitCreditKeys.list; -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitCreditsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitCreditsQuery< - S extends OrgLimitCreditSelect, - TData = { - orgLimitCredits: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitCreditSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitCredits: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitCreditsQuery( - params: { - selection: ListSelectionConfig< - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitCreditKeys.list(args), - queryFn: () => getClient().orgLimitCredit.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * const data = await fetchOrgLimitCreditsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitCreditsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitCreditSelect>; -}): Promise<{ - orgLimitCredits: ConnectionResult>; -}>; -export async function fetchOrgLimitCreditsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy - >(params.selection); - return getClient().orgLimitCredit.findMany(args).unwrap(); -} -/** - * Append-only ledger of credit grants that automatically update limit ceilings - * - * @example - * ```ts - * await prefetchOrgLimitCreditsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitCreditsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitCreditSelect>; - } -): Promise; -export async function prefetchOrgLimitCreditsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitCreditKeys.list(args), - queryFn: () => getClient().orgLimitCredit.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts deleted file mode 100644 index 4e9bd85850..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitDefaultKeys } from '../query-keys'; -import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitDefaultQueryKey = orgLimitDefaultKeys.detail; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitDefaultQuery< - S extends OrgLimitDefaultSelect, - TData = { - orgLimitDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * const data = await fetchOrgLimitDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitDefaultSelect>; -}): Promise<{ - orgLimitDefault: InferSelectResult | null; -}>; -export async function fetchOrgLimitDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimitDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * await prefetchOrgLimitDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitDefaultSelect>; - } -): Promise; -export async function prefetchOrgLimitDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts deleted file mode 100644 index 5a7b07bbfc..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitDefaultKeys } from '../query-keys'; -import type { - OrgLimitDefaultSelect, - OrgLimitDefaultWithRelations, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitDefaultSelect, - OrgLimitDefaultWithRelations, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitDefaultsQueryKey = orgLimitDefaultKeys.list; -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitDefaultsQuery< - S extends OrgLimitDefaultSelect, - TData = { - orgLimitDefaults: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitDefaults: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitDefaultsQuery( - params: { - selection: ListSelectionConfig< - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitDefaultKeys.list(args), - queryFn: () => getClient().orgLimitDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * const data = await fetchOrgLimitDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitDefaultsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitDefaultSelect>; -}): Promise<{ - orgLimitDefaults: ConnectionResult>; -}>; -export async function fetchOrgLimitDefaultsQuery(params: { - selection: ListSelectionConfig< - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy - >(params.selection); - return getClient().orgLimitDefault.findMany(args).unwrap(); -} -/** - * Default maximum values for each named limit, applied when no per-actor override exists - * - * @example - * ```ts - * await prefetchOrgLimitDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitDefaultSelect>; - } -): Promise; -export async function prefetchOrgLimitDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitDefaultKeys.list(args), - queryFn: () => getClient().orgLimitDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts deleted file mode 100644 index 1f471a60a7..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitEventKeys } from '../query-keys'; -import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitEventQueryKey = orgLimitEventKeys.detail; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitEventQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitEventQuery< - S extends OrgLimitEventSelect, - TData = { - orgLimitEvent: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitEventSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitEvent: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitEventQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitEventKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * const data = await fetchOrgLimitEventQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitEventQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitEventSelect>; -}): Promise<{ - orgLimitEvent: InferSelectResult | null; -}>; -export async function fetchOrgLimitEventQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimitEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * await prefetchOrgLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitEventQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitEventSelect>; - } -): Promise; -export async function prefetchOrgLimitEventQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitEventKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitEvent.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventsQuery.ts deleted file mode 100644 index 66ba8768ce..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Append-only log of limit events for historical reporting and audit - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitEventKeys } from '../query-keys'; -import type { - OrgLimitEventSelect, - OrgLimitEventWithRelations, - OrgLimitEventFilter, - OrgLimitEventOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitEventSelect, - OrgLimitEventWithRelations, - OrgLimitEventFilter, - OrgLimitEventOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitEventsQueryKey = orgLimitEventKeys.list; -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitEventsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitEventsQuery< - S extends OrgLimitEventSelect, - TData = { - orgLimitEvents: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitEventSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitEvents: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitEventsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgLimitEventSelect, - OrgLimitEventFilter, - OrgLimitEventOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitEventKeys.list(args), - queryFn: () => getClient().orgLimitEvent.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * const data = await fetchOrgLimitEventsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitEventsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitEventSelect>; -}): Promise<{ - orgLimitEvents: ConnectionResult>; -}>; -export async function fetchOrgLimitEventsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgLimitEventSelect, - OrgLimitEventFilter, - OrgLimitEventOrderBy - >(params.selection); - return getClient().orgLimitEvent.findMany(args).unwrap(); -} -/** - * Append-only log of limit events for historical reporting and audit - * - * @example - * ```ts - * await prefetchOrgLimitEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitEventsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitEventSelect>; - } -): Promise; -export async function prefetchOrgLimitEventsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - OrgLimitEventSelect, - OrgLimitEventFilter, - OrgLimitEventOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitEventKeys.list(args), - queryFn: () => getClient().orgLimitEvent.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts deleted file mode 100644 index 6c03f817ff..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitKeys } from '../query-keys'; -import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitQueryKey = orgLimitKeys.detail; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitQuery< - S extends OrgLimitSelect, - TData = { - orgLimit: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitSelect>; - } & Omit< - UseQueryOptions< - { - orgLimit: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * const data = await fetchOrgLimitQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitSelect>; -}): Promise<{ - orgLimit: InferSelectResult | null; -}>; -export async function fetchOrgLimitQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * await prefetchOrgLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitSelect>; - } -): Promise; -export async function prefetchOrgLimitQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimit.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitWarningQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitWarningQuery.ts deleted file mode 100644 index 621ab6b29d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitWarningQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgLimitWarningKeys } from '../query-keys'; -import type { OrgLimitWarningSelect, OrgLimitWarningWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgLimitWarningSelect, OrgLimitWarningWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitWarningQueryKey = orgLimitWarningKeys.detail; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitWarningQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgLimitWarningQuery< - S extends OrgLimitWarningSelect, - TData = { - orgLimitWarning: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitWarningSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitWarning: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitWarningQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitWarningKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitWarning.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * const data = await fetchOrgLimitWarningQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgLimitWarningQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitWarningSelect>; -}): Promise<{ - orgLimitWarning: InferSelectResult | null; -}>; -export async function fetchOrgLimitWarningQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgLimitWarning.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * await prefetchOrgLimitWarningQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgLimitWarningQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgLimitWarningSelect>; - } -): Promise; -export async function prefetchOrgLimitWarningQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitWarningKeys.detail(params.id), - queryFn: () => - getClient() - .orgLimitWarning.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitWarningsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitWarningsQuery.ts deleted file mode 100644 index 14a9efa801..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitWarningsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitWarningKeys } from '../query-keys'; -import type { - OrgLimitWarningSelect, - OrgLimitWarningWithRelations, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitWarningSelect, - OrgLimitWarningWithRelations, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitWarningsQueryKey = orgLimitWarningKeys.list; -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitWarningsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitWarningsQuery< - S extends OrgLimitWarningSelect, - TData = { - orgLimitWarnings: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitWarningSelect>; - } & Omit< - UseQueryOptions< - { - orgLimitWarnings: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitWarningsQuery( - params: { - selection: ListSelectionConfig< - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitWarningKeys.list(args), - queryFn: () => getClient().orgLimitWarning.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * const data = await fetchOrgLimitWarningsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitWarningsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitWarningSelect>; -}): Promise<{ - orgLimitWarnings: ConnectionResult>; -}>; -export async function fetchOrgLimitWarningsQuery(params: { - selection: ListSelectionConfig< - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy - >(params.selection); - return getClient().orgLimitWarning.findMany(args).unwrap(); -} -/** - * Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. - * - * @example - * ```ts - * await prefetchOrgLimitWarningsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitWarningsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitWarningSelect>; - } -): Promise; -export async function prefetchOrgLimitWarningsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgLimitWarningKeys.list(args), - queryFn: () => getClient().orgLimitWarning.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts deleted file mode 100644 index 320ccf6240..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Tracks per-actor usage counts against configurable maximum limits - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgLimitKeys } from '../query-keys'; -import type { - OrgLimitSelect, - OrgLimitWithRelations, - OrgLimitFilter, - OrgLimitOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgLimitSelect, - OrgLimitWithRelations, - OrgLimitFilter, - OrgLimitOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgLimitsQueryKey = orgLimitKeys.list; -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```tsx - * const { data, isLoading } = useOrgLimitsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgLimitsQuery< - S extends OrgLimitSelect, - TData = { - orgLimits: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitSelect>; - } & Omit< - UseQueryOptions< - { - orgLimits: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgLimitsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgLimitKeys.list(args), - queryFn: () => getClient().orgLimit.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * const data = await fetchOrgLimitsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgLimitsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitSelect>; -}): Promise<{ - orgLimits: ConnectionResult>; -}>; -export async function fetchOrgLimitsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().orgLimit.findMany(args).unwrap(); -} -/** - * Tracks per-actor usage counts against configurable maximum limits - * - * @example - * ```ts - * await prefetchOrgLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgLimitsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgLimitSelect>; - } -): Promise; -export async function prefetchOrgLimitsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: orgLimitKeys.list(args), - queryFn: () => getClient().orgLimit.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberProfileQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberProfileQuery.ts deleted file mode 100644 index 591bab6765..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberProfileQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberProfileKeys } from '../query-keys'; -import type { OrgMemberProfileSelect, OrgMemberProfileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgMemberProfileSelect, OrgMemberProfileWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMemberProfileQueryKey = orgMemberProfileKeys.detail; -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMemberProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgMemberProfileQuery< - S extends OrgMemberProfileSelect, - TData = { - orgMemberProfile: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMemberProfileSelect>; - } & Omit< - UseQueryOptions< - { - orgMemberProfile: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMemberProfileQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMemberProfileKeys.detail(params.id), - queryFn: () => - getClient() - .orgMemberProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```ts - * const data = await fetchOrgMemberProfileQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgMemberProfileQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMemberProfileSelect>; -}): Promise<{ - orgMemberProfile: InferSelectResult | null; -}>; -export async function fetchOrgMemberProfileQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgMemberProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```ts - * await prefetchOrgMemberProfileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgMemberProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMemberProfileSelect>; - } -): Promise; -export async function prefetchOrgMemberProfileQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMemberProfileKeys.detail(params.id), - queryFn: () => - getClient() - .orgMemberProfile.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberProfilesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberProfilesQuery.ts deleted file mode 100644 index 4aa4c8d07b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberProfilesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgMemberProfileKeys } from '../query-keys'; -import type { - OrgMemberProfileSelect, - OrgMemberProfileWithRelations, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgMemberProfileSelect, - OrgMemberProfileWithRelations, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMemberProfilesQueryKey = orgMemberProfileKeys.list; -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMemberProfilesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgMemberProfilesQuery< - S extends OrgMemberProfileSelect, - TData = { - orgMemberProfiles: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMemberProfileSelect>; - } & Omit< - UseQueryOptions< - { - orgMemberProfiles: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMemberProfilesQuery( - params: { - selection: ListSelectionConfig< - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMemberProfileKeys.list(args), - queryFn: () => getClient().orgMemberProfile.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```ts - * const data = await fetchOrgMemberProfilesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgMemberProfilesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMemberProfileSelect>; -}): Promise<{ - orgMemberProfiles: ConnectionResult>; -}>; -export async function fetchOrgMemberProfilesQuery(params: { - selection: ListSelectionConfig< - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy - >(params.selection); - return getClient().orgMemberProfile.findMany(args).unwrap(); -} -/** - * Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) - * - * @example - * ```ts - * await prefetchOrgMemberProfilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgMemberProfilesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMemberProfileSelect>; - } -): Promise; -export async function prefetchOrgMemberProfilesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMemberProfileKeys.list(args), - queryFn: () => getClient().orgMemberProfile.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts deleted file mode 100644 index d222cf6e2b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMemberKeys } from '../query-keys'; -import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMemberQueryKey = orgMemberKeys.detail; -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMemberQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgMemberQuery< - S extends OrgMemberSelect, - TData = { - orgMember: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMemberSelect>; - } & Omit< - UseQueryOptions< - { - orgMember: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMemberQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMemberKeys.detail(params.id), - queryFn: () => - getClient() - .orgMember.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```ts - * const data = await fetchOrgMemberQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgMemberQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMemberSelect>; -}): Promise<{ - orgMember: InferSelectResult | null; -}>; -export async function fetchOrgMemberQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgMember.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```ts - * await prefetchOrgMemberQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgMemberQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMemberSelect>; - } -): Promise; -export async function prefetchOrgMemberQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMemberKeys.detail(params.id), - queryFn: () => - getClient() - .orgMember.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts deleted file mode 100644 index 21929089ee..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgMemberKeys } from '../query-keys'; -import type { - OrgMemberSelect, - OrgMemberWithRelations, - OrgMemberFilter, - OrgMemberOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgMemberSelect, - OrgMemberWithRelations, - OrgMemberFilter, - OrgMemberOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembersQueryKey = orgMemberKeys.list; -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembersQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgMembersQuery< - S extends OrgMemberSelect, - TData = { - orgMembers: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMemberSelect>; - } & Omit< - UseQueryOptions< - { - orgMembers: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembersQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMemberKeys.list(args), - queryFn: () => getClient().orgMember.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```ts - * const data = await fetchOrgMembersQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgMembersQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMemberSelect>; -}): Promise<{ - orgMembers: ConnectionResult>; -}>; -export async function fetchOrgMembersQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().orgMember.findMany(args).unwrap(); -} -/** - * Simplified view of active members in an entity, used for listing who belongs to an org or group - * - * @example - * ```ts - * await prefetchOrgMembersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgMembersQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMemberSelect>; - } -): Promise; -export async function prefetchOrgMembersQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: orgMemberKeys.list(args), - queryFn: () => getClient().orgMember.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts deleted file mode 100644 index b142d79be9..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipDefaultKeys } from '../query-keys'; -import type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipDefaultQueryKey = orgMembershipDefaultKeys.detail; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgMembershipDefaultQuery< - S extends OrgMembershipDefaultSelect, - TData = { - orgMembershipDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgMembershipDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembershipDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * const data = await fetchOrgMembershipDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgMembershipDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipDefaultSelect>; -}): Promise<{ - orgMembershipDefault: InferSelectResult | null; -}>; -export async function fetchOrgMembershipDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgMembershipDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * await prefetchOrgMembershipDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgMembershipDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipDefaultSelect>; - } -): Promise; -export async function prefetchOrgMembershipDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembershipDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts deleted file mode 100644 index 06c715627c..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgMembershipDefaultKeys } from '../query-keys'; -import type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgMembershipDefaultSelect, - OrgMembershipDefaultWithRelations, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipDefaultsQueryKey = orgMembershipDefaultKeys.list; -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgMembershipDefaultsQuery< - S extends OrgMembershipDefaultSelect, - TData = { - orgMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipDefaultsQuery( - params: { - selection: ListSelectionConfig< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipDefaultKeys.list(args), - queryFn: () => getClient().orgMembershipDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * const data = await fetchOrgMembershipDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgMembershipDefaultsQuery< - S extends OrgMembershipDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipDefaultSelect>; -}): Promise<{ - orgMembershipDefaults: ConnectionResult>; -}>; -export async function fetchOrgMembershipDefaultsQuery(params: { - selection: ListSelectionConfig< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - >(params.selection); - return getClient().orgMembershipDefault.findMany(args).unwrap(); -} -/** - * Default membership settings per entity, controlling initial approval and verification state for new members - * - * @example - * ```ts - * await prefetchOrgMembershipDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgMembershipDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipDefaultSelect>; - } -): Promise; -export async function prefetchOrgMembershipDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipDefaultKeys.list(args), - queryFn: () => getClient().orgMembershipDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts deleted file mode 100644 index c251c5b23b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgMembershipKeys } from '../query-keys'; -import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipQueryKey = orgMembershipKeys.detail; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgMembershipQuery< - S extends OrgMembershipSelect, - TData = { - orgMembership: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipSelect>; - } & Omit< - UseQueryOptions< - { - orgMembership: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembership.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * const data = await fetchOrgMembershipQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgMembershipQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipSelect>; -}): Promise<{ - orgMembership: InferSelectResult | null; -}>; -export async function fetchOrgMembershipQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgMembership.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * await prefetchOrgMembershipQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgMembershipQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipSelect>; - } -): Promise; -export async function prefetchOrgMembershipQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembership.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipSettingQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipSettingQuery.ts deleted file mode 100644 index 1e3f0d1670..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipSettingQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Per-entity settings for the memberships 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 { orgMembershipSettingKeys } from '../query-keys'; -import type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipSettingQueryKey = orgMembershipSettingKeys.detail; -/** - * Per-entity settings for the memberships module - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipSettingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgMembershipSettingQuery< - S extends OrgMembershipSettingSelect, - TData = { - orgMembershipSetting: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipSettingSelect>; - } & Omit< - UseQueryOptions< - { - orgMembershipSetting: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipSettingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipSettingKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembershipSetting.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity settings for the memberships module - * - * @example - * ```ts - * const data = await fetchOrgMembershipSettingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgMembershipSettingQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipSettingSelect>; -}): Promise<{ - orgMembershipSetting: InferSelectResult | null; -}>; -export async function fetchOrgMembershipSettingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgMembershipSetting.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Per-entity settings for the memberships module - * - * @example - * ```ts - * await prefetchOrgMembershipSettingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgMembershipSettingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgMembershipSettingSelect>; - } -): Promise; -export async function prefetchOrgMembershipSettingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipSettingKeys.detail(params.id), - queryFn: () => - getClient() - .orgMembershipSetting.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipSettingsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipSettingsQuery.ts deleted file mode 100644 index fe35b92d5f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipSettingsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Per-entity settings for the memberships 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 { orgMembershipSettingKeys } from '../query-keys'; -import type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgMembershipSettingSelect, - OrgMembershipSettingWithRelations, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipSettingsQueryKey = orgMembershipSettingKeys.list; -/** - * Per-entity settings for the memberships module - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipSettingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgMembershipSettingsQuery< - S extends OrgMembershipSettingSelect, - TData = { - orgMembershipSettings: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipSettingSelect>; - } & Omit< - UseQueryOptions< - { - orgMembershipSettings: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipSettingsQuery( - params: { - selection: ListSelectionConfig< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipSettingKeys.list(args), - queryFn: () => getClient().orgMembershipSetting.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Per-entity settings for the memberships module - * - * @example - * ```ts - * const data = await fetchOrgMembershipSettingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgMembershipSettingsQuery< - S extends OrgMembershipSettingSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipSettingSelect>; -}): Promise<{ - orgMembershipSettings: ConnectionResult>; -}>; -export async function fetchOrgMembershipSettingsQuery(params: { - selection: ListSelectionConfig< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - >(params.selection); - return getClient().orgMembershipSetting.findMany(args).unwrap(); -} -/** - * Per-entity settings for the memberships module - * - * @example - * ```ts - * await prefetchOrgMembershipSettingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgMembershipSettingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgMembershipSettingSelect>; - } -): Promise; -export async function prefetchOrgMembershipSettingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipSettingKeys.list(args), - queryFn: () => getClient().orgMembershipSetting.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts deleted file mode 100644 index 2e620b4850..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgMembershipKeys } from '../query-keys'; -import type { - OrgMembershipSelect, - OrgMembershipWithRelations, - OrgMembershipFilter, - OrgMembershipOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgMembershipSelect, - OrgMembershipWithRelations, - OrgMembershipFilter, - OrgMembershipOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgMembershipsQueryKey = orgMembershipKeys.list; -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```tsx - * const { data, isLoading } = useOrgMembershipsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgMembershipsQuery< - S extends OrgMembershipSelect, - TData = { - orgMemberships: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMembershipSelect>; - } & Omit< - UseQueryOptions< - { - orgMemberships: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgMembershipsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgMembershipSelect, - OrgMembershipFilter, - OrgMembershipOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgMembershipKeys.list(args), - queryFn: () => getClient().orgMembership.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * const data = await fetchOrgMembershipsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgMembershipsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMembershipSelect>; -}): Promise<{ - orgMemberships: ConnectionResult>; -}>; -export async function fetchOrgMembershipsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgMembershipSelect, - OrgMembershipFilter, - OrgMembershipOrderBy - >(params.selection); - return getClient().orgMembership.findMany(args).unwrap(); -} -/** - * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status - * - * @example - * ```ts - * await prefetchOrgMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgMembershipsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgMembershipSelect>; - } -): Promise; -export async function prefetchOrgMembershipsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - OrgMembershipSelect, - OrgMembershipFilter, - OrgMembershipOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgMembershipKeys.list(args), - queryFn: () => getClient().orgMembership.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts deleted file mode 100644 index a7c0bc4dde..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgOwnerGrantKeys } from '../query-keys'; -import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgOwnerGrantQueryKey = orgOwnerGrantKeys.detail; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgOwnerGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgOwnerGrantQuery< - S extends OrgOwnerGrantSelect, - TData = { - orgOwnerGrant: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgOwnerGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgOwnerGrant: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgOwnerGrantQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgOwnerGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgOwnerGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * const data = await fetchOrgOwnerGrantQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgOwnerGrantQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgOwnerGrantSelect>; -}): Promise<{ - orgOwnerGrant: InferSelectResult | null; -}>; -export async function fetchOrgOwnerGrantQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgOwnerGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * await prefetchOrgOwnerGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgOwnerGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgOwnerGrantSelect>; - } -): Promise; -export async function prefetchOrgOwnerGrantQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgOwnerGrantKeys.detail(params.id), - queryFn: () => - getClient() - .orgOwnerGrant.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts deleted file mode 100644 index 5f22b3f8af..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Records of ownership transfers and grants between members - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgOwnerGrantKeys } from '../query-keys'; -import type { - OrgOwnerGrantSelect, - OrgOwnerGrantWithRelations, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgOwnerGrantSelect, - OrgOwnerGrantWithRelations, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgOwnerGrantsQueryKey = orgOwnerGrantKeys.list; -/** - * Records of ownership transfers and grants between members - * - * @example - * ```tsx - * const { data, isLoading } = useOrgOwnerGrantsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgOwnerGrantsQuery< - S extends OrgOwnerGrantSelect, - TData = { - orgOwnerGrants: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgOwnerGrantSelect>; - } & Omit< - UseQueryOptions< - { - orgOwnerGrants: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgOwnerGrantsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgOwnerGrantSelect, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgOwnerGrantKeys.list(args), - queryFn: () => getClient().orgOwnerGrant.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * const data = await fetchOrgOwnerGrantsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgOwnerGrantsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgOwnerGrantSelect>; -}): Promise<{ - orgOwnerGrants: ConnectionResult>; -}>; -export async function fetchOrgOwnerGrantsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgOwnerGrantSelect, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy - >(params.selection); - return getClient().orgOwnerGrant.findMany(args).unwrap(); -} -/** - * Records of ownership transfers and grants between members - * - * @example - * ```ts - * await prefetchOrgOwnerGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgOwnerGrantsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgOwnerGrantSelect>; - } -): Promise; -export async function prefetchOrgOwnerGrantsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - OrgOwnerGrantSelect, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgOwnerGrantKeys.list(args), - queryFn: () => getClient().orgOwnerGrant.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts deleted file mode 100644 index 9dc118fc7c..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionDefaultKeys } from '../query-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgPermissionDefaultQuery< - S extends OrgPermissionDefaultSelect, - TData = { - orgPermissionDefault: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissionDefault: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionDefaultQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchOrgPermissionDefaultQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgPermissionDefaultQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultSelect>; -}): Promise<{ - orgPermissionDefault: InferSelectResult | null; -}>; -export async function fetchOrgPermissionDefaultQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchOrgPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionDefaultSelect>; - } -): Promise; -export async function prefetchOrgPermissionDefaultQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermissionDefault.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts deleted file mode 100644 index 8bbff22406..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Stores the default permission bitmask assigned to new members upon joining - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgPermissionDefaultKeys } from '../query-keys'; -import type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgPermissionDefaultSelect, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionDefaultsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgPermissionDefaultsQuery< - S extends OrgPermissionDefaultSelect, - TData = { - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionDefaultsQuery( - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionDefaultKeys.list(args), - queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * const data = await fetchOrgPermissionDefaultsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgPermissionDefaultsQuery< - S extends OrgPermissionDefaultSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultSelect>; -}): Promise<{ - orgPermissionDefaults: ConnectionResult>; -}>; -export async function fetchOrgPermissionDefaultsQuery(params: { - selection: ListSelectionConfig< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >(params.selection); - return getClient().orgPermissionDefault.findMany(args).unwrap(); -} -/** - * Stores the default permission bitmask assigned to new members upon joining - * - * @example - * ```ts - * await prefetchOrgPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgPermissionDefaultSelect>; - } -): Promise; -export async function prefetchOrgPermissionDefaultsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionDefaultKeys.list(args), - queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts deleted file mode 100644 index 4407aaeddb..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgPermissionKeys } from '../query-keys'; -import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionQueryKey = orgPermissionKeys.detail; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgPermissionQuery< - S extends OrgPermissionSelect, - TData = { - orgPermission: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseQueryOptions< - { - orgPermission: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchOrgPermissionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgPermissionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionSelect>; -}): Promise<{ - orgPermission: InferSelectResult | null; -}>; -export async function fetchOrgPermissionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchOrgPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgPermissionSelect>; - } -): Promise; -export async function prefetchOrgPermissionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionKeys.detail(params.id), - queryFn: () => - getClient() - .orgPermission.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts deleted file mode 100644 index 7410e3b04c..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetByMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; -import type { OrgPermissionConnection } from '../../orm/input-types'; -export type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetByMaskQueryKey = customQueryKeys.orgPermissionsGetByMask; -/** - * Reads and enables pagination through a set of `OrgPermission`. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); - * - * if (data?.orgPermissionsGetByMask) { - * console.log(data.orgPermissionsGetByMask); - * } - * ``` - */ -export function useOrgPermissionsGetByMaskQuery< - TData = { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, ->( - params?: { - variables?: OrgPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetByMaskQuery< - TData = { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, ->( - params?: { - variables?: OrgPermissionsGetByMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetByMask: OrgPermissionConnection | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetByMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); - * ``` - */ -export async function fetchOrgPermissionsGetByMaskQuery(params?: { - variables?: OrgPermissionsGetByMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetByMask(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetByMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetByMaskQuery(queryClient, { variables: { mask, first, offset, after } }); - * ``` - */ -export async function prefetchOrgPermissionsGetByMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetByMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetByMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index 99199bceeb..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetMaskByNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; -export type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetMaskByNamesQueryKey = customQueryKeys.orgPermissionsGetMaskByNames; -/** - * Query hook for orgPermissionsGetMaskByNames - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); - * - * if (data?.orgPermissionsGetMaskByNames) { - * console.log(data.orgPermissionsGetMaskByNames); - * } - * ``` - */ -export function useOrgPermissionsGetMaskByNamesQuery< - TData = { - orgPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetMaskByNamesQuery< - TData = { - orgPermissionsGetMaskByNames: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMaskByNames: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetMaskByNames without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); - * ``` - */ -export async function fetchOrgPermissionsGetMaskByNamesQuery(params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetMaskByNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); - * ``` - */ -export async function prefetchOrgPermissionsGetMaskByNamesQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetMaskByNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts deleted file mode 100644 index dad45181bf..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetMaskVariables } from '../../orm/query'; -export type { OrgPermissionsGetMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetMaskQueryKey = customQueryKeys.orgPermissionsGetMask; -/** - * Query hook for orgPermissionsGetMask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetMaskQuery({ variables: { ids } }); - * - * if (data?.orgPermissionsGetMask) { - * console.log(data.orgPermissionsGetMask); - * } - * ``` - */ -export function useOrgPermissionsGetMaskQuery< - TData = { - orgPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetMaskQuery< - TData = { - orgPermissionsGetMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetMaskQuery({ variables: { ids } }); - * ``` - */ -export async function fetchOrgPermissionsGetMaskQuery(params?: { - variables?: OrgPermissionsGetMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetMask(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetMaskQuery(queryClient, { variables: { ids } }); - * ``` - */ -export async function prefetchOrgPermissionsGetMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index 4b4f80e725..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for orgPermissionsGetPaddedMask - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; -export type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsGetPaddedMaskQueryKey = customQueryKeys.orgPermissionsGetPaddedMask; -/** - * Query hook for orgPermissionsGetPaddedMask - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * - * if (data?.orgPermissionsGetPaddedMask) { - * console.log(data.orgPermissionsGetPaddedMask); - * } - * ``` - */ -export function useOrgPermissionsGetPaddedMaskQuery< - TData = { - orgPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsGetPaddedMaskQuery< - TData = { - orgPermissionsGetPaddedMask: string | null; - }, ->( - params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; - } & Omit< - UseQueryOptions< - { - orgPermissionsGetPaddedMask: string | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch orgPermissionsGetPaddedMask without React hooks - * - * @example - * ```ts - * const data = await fetchOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); - * ``` - */ -export async function fetchOrgPermissionsGetPaddedMaskQuery(params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(); -} -/** - * Prefetch orgPermissionsGetPaddedMask for SSR or cache warming - * - * @example - * ```ts - * await prefetchOrgPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); - * ``` - */ -export async function prefetchOrgPermissionsGetPaddedMaskQuery( - queryClient: QueryClient, - params?: { - variables?: OrgPermissionsGetPaddedMaskVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), - queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts deleted file mode 100644 index b5272fe6fe..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgPermissionKeys } from '../query-keys'; -import type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionFilter, - OrgPermissionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgPermissionSelect, - OrgPermissionWithRelations, - OrgPermissionFilter, - OrgPermissionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgPermissionsQueryKey = orgPermissionKeys.list; -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```tsx - * const { data, isLoading } = useOrgPermissionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgPermissionsQuery< - S extends OrgPermissionSelect, - TData = { - orgPermissions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgPermissionSelect>; - } & Omit< - UseQueryOptions< - { - orgPermissions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgPermissionsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgPermissionKeys.list(args), - queryFn: () => getClient().orgPermission.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * const data = await fetchOrgPermissionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgPermissionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgPermissionSelect>; -}): Promise<{ - orgPermissions: ConnectionResult>; -}>; -export async function fetchOrgPermissionsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy - >(params.selection); - return getClient().orgPermission.findMany(args).unwrap(); -} -/** - * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control - * - * @example - * ```ts - * await prefetchOrgPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgPermissionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, OrgPermissionSelect>; - } -): Promise; -export async function prefetchOrgPermissionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgPermissionKeys.list(args), - queryFn: () => getClient().orgPermission.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts deleted file mode 100644 index 5e71658d7c..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * User phone numbers with country code, verification, and primary-number management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { phoneNumberKeys } from '../query-keys'; -import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const phoneNumberQueryKey = phoneNumberKeys.detail; -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```tsx - * const { data, isLoading } = usePhoneNumberQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePhoneNumberQuery< - S extends PhoneNumberSelect, - TData = { - phoneNumber: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PhoneNumberSelect>; - } & Omit< - UseQueryOptions< - { - phoneNumber: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePhoneNumberQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: phoneNumberKeys.detail(params.id), - queryFn: () => - getClient() - .phoneNumber.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```ts - * const data = await fetchPhoneNumberQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPhoneNumberQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PhoneNumberSelect>; -}): Promise<{ - phoneNumber: InferSelectResult | null; -}>; -export async function fetchPhoneNumberQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .phoneNumber.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```ts - * await prefetchPhoneNumberQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPhoneNumberQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PhoneNumberSelect>; - } -): Promise; -export async function prefetchPhoneNumberQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: phoneNumberKeys.detail(params.id), - queryFn: () => - getClient() - .phoneNumber.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts deleted file mode 100644 index 1811e4e8f6..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * User phone numbers with country code, verification, and primary-number management - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { phoneNumberKeys } from '../query-keys'; -import type { - PhoneNumberSelect, - PhoneNumberWithRelations, - PhoneNumberFilter, - PhoneNumberOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PhoneNumberSelect, - PhoneNumberWithRelations, - PhoneNumberFilter, - PhoneNumberOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const phoneNumbersQueryKey = phoneNumberKeys.list; -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```tsx - * const { data, isLoading } = usePhoneNumbersQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePhoneNumbersQuery< - S extends PhoneNumberSelect, - TData = { - phoneNumbers: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PhoneNumberSelect>; - } & Omit< - UseQueryOptions< - { - phoneNumbers: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePhoneNumbersQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: phoneNumberKeys.list(args), - queryFn: () => getClient().phoneNumber.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```ts - * const data = await fetchPhoneNumbersQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPhoneNumbersQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PhoneNumberSelect>; -}): Promise<{ - phoneNumbers: ConnectionResult>; -}>; -export async function fetchPhoneNumbersQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().phoneNumber.findMany(args).unwrap(); -} -/** - * User phone numbers with country code, verification, and primary-number management - * - * @example - * ```ts - * await prefetchPhoneNumbersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPhoneNumbersQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, PhoneNumberSelect>; - } -): Promise; -export async function prefetchPhoneNumbersQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: phoneNumberKeys.list(args), - queryFn: () => getClient().phoneNumber.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRequireStepUpQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRequireStepUpQuery.ts deleted file mode 100644 index 115b29a859..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useRequireStepUpQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for requireStepUp - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customQueryKeys } from '../query-keys'; -import type { RequireStepUpVariables } from '../../orm/query'; -export type { RequireStepUpVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const requireStepUpQueryKey = customQueryKeys.requireStepUp; -/** - * Query hook for requireStepUp - * - * @example - * ```tsx - * const { data, isLoading } = useRequireStepUpQuery({ variables: { stepUpType } }); - * - * if (data?.requireStepUp) { - * console.log(data.requireStepUp); - * } - * ``` - */ -export function useRequireStepUpQuery< - TData = { - requireStepUp: boolean | null; - }, ->( - params?: { - variables?: RequireStepUpVariables; - } & Omit< - UseQueryOptions< - { - requireStepUp: boolean | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useRequireStepUpQuery< - TData = { - requireStepUp: boolean | null; - }, ->( - params?: { - variables?: RequireStepUpVariables; - } & Omit< - UseQueryOptions< - { - requireStepUp: boolean | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: requireStepUpQueryKey(variables), - queryFn: () => getClient().query.requireStepUp(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch requireStepUp without React hooks - * - * @example - * ```ts - * const data = await fetchRequireStepUpQuery({ variables: { stepUpType } }); - * ``` - */ -export async function fetchRequireStepUpQuery(params?: { variables?: RequireStepUpVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.requireStepUp(variables).unwrap(); -} -/** - * Prefetch requireStepUp for SSR or cache warming - * - * @example - * ```ts - * await prefetchRequireStepUpQuery(queryClient, { variables: { stepUpType } }); - * ``` - */ -export async function prefetchRequireStepUpQuery( - queryClient: QueryClient, - params?: { - variables?: RequireStepUpVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: requireStepUpQueryKey(variables), - queryFn: () => getClient().query.requireStepUp(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRoleTypeQuery.ts deleted file mode 100644 index 314085b876..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useRoleTypeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for RoleType - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; -import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const roleTypeQueryKey = roleTypeKeys.detail; -/** - * Query hook for fetching a single RoleType - * - * @example - * ```tsx - * const { data, isLoading } = useRoleTypeQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useRoleTypeQuery< - S extends RoleTypeSelect, - TData = { - roleType: InferSelectResult | null; - }, ->( - params: { - id: number; - selection: { - fields: S; - } & HookStrictSelect, RoleTypeSelect>; - } & Omit< - UseQueryOptions< - { - roleType: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useRoleTypeQuery( - params: { - id: number; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: roleTypeKeys.detail(params.id), - queryFn: () => - getClient() - .roleType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single RoleType without React hooks - * - * @example - * ```ts - * const data = await fetchRoleTypeQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchRoleTypeQuery(params: { - id: number; - selection: { - fields: S; - } & HookStrictSelect, RoleTypeSelect>; -}): Promise<{ - roleType: InferSelectResult | null; -}>; -export async function fetchRoleTypeQuery(params: { - id: number; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .roleType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single RoleType for SSR or cache warming - * - * @example - * ```ts - * await prefetchRoleTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchRoleTypeQuery( - queryClient: QueryClient, - params: { - id: number; - selection: { - fields: S; - } & HookStrictSelect, RoleTypeSelect>; - } -): Promise; -export async function prefetchRoleTypeQuery( - queryClient: QueryClient, - params: { - id: number; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: roleTypeKeys.detail(params.id), - queryFn: () => - getClient() - .roleType.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRoleTypesQuery.ts deleted file mode 100644 index 9819ceed5d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useRoleTypesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * List query hook for RoleType - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; -import type { - RoleTypeSelect, - RoleTypeWithRelations, - RoleTypeFilter, - RoleTypeOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - RoleTypeSelect, - RoleTypeWithRelations, - RoleTypeFilter, - RoleTypeOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const roleTypesQueryKey = roleTypeKeys.list; -/** - * Query hook for fetching RoleType list - * - * @example - * ```tsx - * const { data, isLoading } = useRoleTypesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useRoleTypesQuery< - S extends RoleTypeSelect, - TData = { - roleTypes: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, RoleTypeSelect>; - } & Omit< - UseQueryOptions< - { - roleTypes: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useRoleTypesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: roleTypeKeys.list(args), - queryFn: () => getClient().roleType.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch RoleType list without React hooks - * - * @example - * ```ts - * const data = await fetchRoleTypesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchRoleTypesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, RoleTypeSelect>; -}): Promise<{ - roleTypes: ConnectionResult>; -}>; -export async function fetchRoleTypesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().roleType.findMany(args).unwrap(); -} -/** - * Prefetch RoleType list for SSR or cache warming - * - * @example - * ```ts - * await prefetchRoleTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchRoleTypesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, RoleTypeSelect>; - } -): Promise; -export async function prefetchRoleTypesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: roleTypeKeys.list(args), - queryFn: () => getClient().roleType.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserConnectedAccountQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUserConnectedAccountQuery.ts deleted file mode 100644 index c904d68866..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUserConnectedAccountQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Single item query hook for UserConnectedAccount - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userConnectedAccountKeys } from '../query-keys'; -import type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const userConnectedAccountQueryKey = userConnectedAccountKeys.detail; -/** - * Query hook for fetching a single UserConnectedAccount - * - * @example - * ```tsx - * const { data, isLoading } = useUserConnectedAccountQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useUserConnectedAccountQuery< - S extends UserConnectedAccountSelect, - TData = { - userConnectedAccount: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UserConnectedAccountSelect>; - } & Omit< - UseQueryOptions< - { - userConnectedAccount: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUserConnectedAccountQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: userConnectedAccountKeys.detail(params.id), - queryFn: () => - getClient() - .userConnectedAccount.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single UserConnectedAccount without React hooks - * - * @example - * ```ts - * const data = await fetchUserConnectedAccountQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchUserConnectedAccountQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UserConnectedAccountSelect>; -}): Promise<{ - userConnectedAccount: InferSelectResult | null; -}>; -export async function fetchUserConnectedAccountQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .userConnectedAccount.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single UserConnectedAccount for SSR or cache warming - * - * @example - * ```ts - * await prefetchUserConnectedAccountQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchUserConnectedAccountQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UserConnectedAccountSelect>; - } -): Promise; -export async function prefetchUserConnectedAccountQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: userConnectedAccountKeys.detail(params.id), - queryFn: () => - getClient() - .userConnectedAccount.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserConnectedAccountsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUserConnectedAccountsQuery.ts deleted file mode 100644 index f4e42d7af1..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUserConnectedAccountsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * List query hook for UserConnectedAccount - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { userConnectedAccountKeys } from '../query-keys'; -import type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - UserConnectedAccountSelect, - UserConnectedAccountWithRelations, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const userConnectedAccountsQueryKey = userConnectedAccountKeys.list; -/** - * Query hook for fetching UserConnectedAccount list - * - * @example - * ```tsx - * const { data, isLoading } = useUserConnectedAccountsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useUserConnectedAccountsQuery< - S extends UserConnectedAccountSelect, - TData = { - userConnectedAccounts: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, UserConnectedAccountSelect>; - } & Omit< - UseQueryOptions< - { - userConnectedAccounts: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUserConnectedAccountsQuery( - params: { - selection: ListSelectionConfig< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: userConnectedAccountKeys.list(args), - queryFn: () => getClient().userConnectedAccount.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch UserConnectedAccount list without React hooks - * - * @example - * ```ts - * const data = await fetchUserConnectedAccountsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchUserConnectedAccountsQuery< - S extends UserConnectedAccountSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, UserConnectedAccountSelect>; -}): Promise<{ - userConnectedAccounts: ConnectionResult>; -}>; -export async function fetchUserConnectedAccountsQuery(params: { - selection: ListSelectionConfig< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - >; -}) { - const args = buildListSelectionArgs< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - >(params.selection); - return getClient().userConnectedAccount.findMany(args).unwrap(); -} -/** - * Prefetch UserConnectedAccount list for SSR or cache warming - * - * @example - * ```ts - * await prefetchUserConnectedAccountsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchUserConnectedAccountsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, UserConnectedAccountSelect>; - } -): Promise; -export async function prefetchUserConnectedAccountsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: userConnectedAccountKeys.list(args), - queryFn: () => getClient().userConnectedAccount.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUserQuery.ts deleted file mode 100644 index 03a7bb6bc4..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUserQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for User - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; -import type { UserSelect, UserWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UserSelect, UserWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const userQueryKey = userKeys.detail; -/** - * Query hook for fetching a single User - * - * @example - * ```tsx - * const { data, isLoading } = useUserQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useUserQuery< - S extends UserSelect, - TData = { - user: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UserSelect>; - } & Omit< - UseQueryOptions< - { - user: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUserQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: userKeys.detail(params.id), - queryFn: () => - getClient() - .user.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single User without React hooks - * - * @example - * ```ts - * const data = await fetchUserQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchUserQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UserSelect>; -}): Promise<{ - user: InferSelectResult | null; -}>; -export async function fetchUserQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .user.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single User for SSR or cache warming - * - * @example - * ```ts - * await prefetchUserQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchUserQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UserSelect>; - } -): Promise; -export async function prefetchUserQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: userKeys.detail(params.id), - queryFn: () => - getClient() - .user.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUsersQuery.ts deleted file mode 100644 index 478d3eab44..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUsersQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * List query hook for User - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; -import type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const usersQueryKey = userKeys.list; -/** - * Query hook for fetching User list - * - * @example - * ```tsx - * const { data, isLoading } = useUsersQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useUsersQuery< - S extends UserSelect, - TData = { - users: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UserSelect>; - } & Omit< - UseQueryOptions< - { - users: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUsersQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: userKeys.list(args), - queryFn: () => getClient().user.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch User list without React hooks - * - * @example - * ```ts - * const data = await fetchUsersQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchUsersQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UserSelect>; -}): Promise<{ - users: ConnectionResult>; -}>; -export async function fetchUsersQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs(params.selection); - return getClient().user.findMany(args).unwrap(); -} -/** - * Prefetch User list for SSR or cache warming - * - * @example - * ```ts - * await prefetchUsersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchUsersQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UserSelect>; - } -): Promise; -export async function prefetchUsersQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: userKeys.list(args), - queryFn: () => getClient().user.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialQuery.ts deleted file mode 100644 index f1d55d52fb..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { webauthnCredentialKeys } from '../query-keys'; -import type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const webauthnCredentialQueryKey = webauthnCredentialKeys.detail; -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```tsx - * const { data, isLoading } = useWebauthnCredentialQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useWebauthnCredentialQuery< - S extends WebauthnCredentialSelect, - TData = { - webauthnCredential: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, WebauthnCredentialSelect>; - } & Omit< - UseQueryOptions< - { - webauthnCredential: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useWebauthnCredentialQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: webauthnCredentialKeys.detail(params.id), - queryFn: () => - getClient() - .webauthnCredential.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```ts - * const data = await fetchWebauthnCredentialQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchWebauthnCredentialQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, WebauthnCredentialSelect>; -}): Promise<{ - webauthnCredential: InferSelectResult | null; -}>; -export async function fetchWebauthnCredentialQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .webauthnCredential.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```ts - * await prefetchWebauthnCredentialQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchWebauthnCredentialQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, WebauthnCredentialSelect>; - } -): Promise; -export async function prefetchWebauthnCredentialQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: webauthnCredentialKeys.detail(params.id), - queryFn: () => - getClient() - .webauthnCredential.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialsQuery.ts deleted file mode 100644 index 487b60768b..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useWebauthnCredentialsQuery.ts +++ /dev/null @@ -1,171 +0,0 @@ -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { webauthnCredentialKeys } from '../query-keys'; -import type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - WebauthnCredentialSelect, - WebauthnCredentialWithRelations, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const webauthnCredentialsQueryKey = webauthnCredentialKeys.list; -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```tsx - * const { data, isLoading } = useWebauthnCredentialsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useWebauthnCredentialsQuery< - S extends WebauthnCredentialSelect, - TData = { - webauthnCredentials: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, WebauthnCredentialSelect>; - } & Omit< - UseQueryOptions< - { - webauthnCredentials: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useWebauthnCredentialsQuery( - params: { - selection: ListSelectionConfig< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: webauthnCredentialKeys.list(args), - queryFn: () => getClient().webauthnCredential.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```ts - * const data = await fetchWebauthnCredentialsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchWebauthnCredentialsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, WebauthnCredentialSelect>; -}): Promise<{ - webauthnCredentials: ConnectionResult>; -}>; -export async function fetchWebauthnCredentialsQuery(params: { - selection: ListSelectionConfig< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - >; -}) { - const args = buildListSelectionArgs< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - >(params.selection); - return getClient().webauthnCredential.findMany(args).unwrap(); -} -/** - * WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. - * - * @example - * ```ts - * await prefetchWebauthnCredentialsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchWebauthnCredentialsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, WebauthnCredentialSelect>; - } -): Promise; -export async function prefetchWebauthnCredentialsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: webauthnCredentialKeys.list(args), - queryFn: () => getClient().webauthnCredential.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts deleted file mode 100644 index aa6eb0bae6..0000000000 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ /dev/null @@ -1,1589 +0,0 @@ -/** - * 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 orgGetManagersRecordKeys = { - /** All orgGetManagersRecord queries */ all: ['orggetmanagersrecord'] as const, - /** List query keys */ lists: () => [...orgGetManagersRecordKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgGetManagersRecordKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgGetManagersRecordKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgGetManagersRecordKeys.details(), id] as const, -} as const; -export const orgGetSubordinatesRecordKeys = { - /** All orgGetSubordinatesRecord queries */ all: ['orggetsubordinatesrecord'] as const, - /** List query keys */ lists: () => [...orgGetSubordinatesRecordKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgGetSubordinatesRecordKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgGetSubordinatesRecordKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgGetSubordinatesRecordKeys.details(), id] as const, -} as const; -export const appPermissionKeys = { - /** All appPermission queries */ all: ['apppermission'] as const, - /** List query keys */ lists: () => [...appPermissionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionKeys.details(), id] as const, -} as const; -export const orgPermissionKeys = { - /** All orgPermission queries */ all: ['orgpermission'] as const, - /** List query keys */ lists: () => [...orgPermissionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgPermissionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionKeys.details(), id] as const, -} as const; -export const databaseKeys = { - /** All database queries */ all: ['database'] as const, - /** List query keys */ lists: () => [...databaseKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...databaseKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...databaseKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...databaseKeys.details(), id] as const, -} as const; -export const schemaKeys = { - /** All schema queries */ all: ['schema'] as const, - /** List query keys */ lists: () => [...schemaKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...schemaKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...schemaKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...schemaKeys.details(), id] as const, -} as const; -export const tableKeys = { - /** All table queries */ all: ['table'] as const, - /** List query keys */ lists: () => [...tableKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...tableKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...tableKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...tableKeys.details(), id] as const, -} as const; -export const checkConstraintKeys = { - /** All checkConstraint queries */ all: ['checkconstraint'] as const, - /** List query keys */ lists: () => [...checkConstraintKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...checkConstraintKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...checkConstraintKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...checkConstraintKeys.details(), id] as const, -} as const; -export const fieldKeys = { - /** All field queries */ all: ['field'] as const, - /** List query keys */ lists: () => [...fieldKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...fieldKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...fieldKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...fieldKeys.details(), id] as const, -} as const; -export const spatialRelationKeys = { - /** All spatialRelation queries */ all: ['spatialrelation'] as const, - /** List query keys */ lists: () => [...spatialRelationKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...spatialRelationKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...spatialRelationKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...spatialRelationKeys.details(), id] as const, -} as const; -export const foreignKeyConstraintKeys = { - /** All foreignKeyConstraint queries */ all: ['foreignkeyconstraint'] as const, - /** List query keys */ lists: () => [...foreignKeyConstraintKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...foreignKeyConstraintKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...foreignKeyConstraintKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...foreignKeyConstraintKeys.details(), id] as const, -} as const; -export const fullTextSearchKeys = { - /** All fullTextSearch queries */ all: ['fulltextsearch'] as const, - /** List query keys */ lists: () => [...fullTextSearchKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...fullTextSearchKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...fullTextSearchKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...fullTextSearchKeys.details(), id] as const, -} as const; -export const indexKeys = { - /** All index queries */ all: ['index'] as const, - /** List query keys */ lists: () => [...indexKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...indexKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...indexKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...indexKeys.details(), id] as const, -} as const; -export const policyKeys = { - /** All policy queries */ all: ['policy'] as const, - /** List query keys */ lists: () => [...policyKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...policyKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...policyKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...policyKeys.details(), id] as const, -} as const; -export const primaryKeyConstraintKeys = { - /** All primaryKeyConstraint queries */ all: ['primarykeyconstraint'] as const, - /** List query keys */ lists: () => [...primaryKeyConstraintKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...primaryKeyConstraintKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...primaryKeyConstraintKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...primaryKeyConstraintKeys.details(), id] as const, -} as const; -export const tableGrantKeys = { - /** All tableGrant queries */ all: ['tablegrant'] as const, - /** List query keys */ lists: () => [...tableGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...tableGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...tableGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...tableGrantKeys.details(), id] as const, -} as const; -export const triggerKeys = { - /** All trigger queries */ all: ['trigger'] as const, - /** List query keys */ lists: () => [...triggerKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...triggerKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...triggerKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...triggerKeys.details(), id] as const, -} as const; -export const uniqueConstraintKeys = { - /** All uniqueConstraint queries */ all: ['uniqueconstraint'] as const, - /** List query keys */ lists: () => [...uniqueConstraintKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...uniqueConstraintKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...uniqueConstraintKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...uniqueConstraintKeys.details(), id] as const, -} as const; -export const viewKeys = { - /** All view queries */ all: ['view'] as const, - /** List query keys */ lists: () => [...viewKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...viewKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...viewKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...viewKeys.details(), id] as const, -} as const; -export const viewTableKeys = { - /** All viewTable queries */ all: ['viewtable'] as const, - /** List query keys */ lists: () => [...viewTableKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...viewTableKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...viewTableKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...viewTableKeys.details(), id] as const, -} as const; -export const viewGrantKeys = { - /** All viewGrant queries */ all: ['viewgrant'] as const, - /** List query keys */ lists: () => [...viewGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...viewGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...viewGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...viewGrantKeys.details(), id] as const, -} as const; -export const viewRuleKeys = { - /** All viewRule queries */ all: ['viewrule'] as const, - /** List query keys */ lists: () => [...viewRuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...viewRuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...viewRuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...viewRuleKeys.details(), id] as const, -} as const; -export const embeddingChunkKeys = { - /** All embeddingChunk queries */ all: ['embeddingchunk'] as const, - /** List query keys */ lists: () => [...embeddingChunkKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...embeddingChunkKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...embeddingChunkKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...embeddingChunkKeys.details(), id] as const, -} as const; -export const secureTableProvisionKeys = { - /** All secureTableProvision queries */ all: ['securetableprovision'] as const, - /** List query keys */ lists: () => [...secureTableProvisionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...secureTableProvisionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...secureTableProvisionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...secureTableProvisionKeys.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 sessionSecretsModuleKeys = { - /** All sessionSecretsModule queries */ all: ['sessionsecretsmodule'] as const, - /** List query keys */ lists: () => [...sessionSecretsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...sessionSecretsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...sessionSecretsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...sessionSecretsModuleKeys.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 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 configSecretsOrgModuleKeys = { - /** All configSecretsOrgModule queries */ all: ['configsecretsorgmodule'] as const, - /** List query keys */ lists: () => [...configSecretsOrgModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...configSecretsOrgModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...configSecretsOrgModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...configSecretsOrgModuleKeys.details(), id] as const, -} as const; -export const schemaGrantKeys = { - /** All schemaGrant queries */ all: ['schemagrant'] as const, - /** List query keys */ lists: () => [...schemaGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...schemaGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...schemaGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...schemaGrantKeys.details(), id] as const, -} as const; -export const defaultPrivilegeKeys = { - /** All defaultPrivilege queries */ all: ['defaultprivilege'] as const, - /** List query keys */ lists: () => [...defaultPrivilegeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...defaultPrivilegeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...defaultPrivilegeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...defaultPrivilegeKeys.details(), id] as const, -} as const; -export const enumKeys = { - /** All enum queries */ all: ['enum'] as const, - /** List query keys */ lists: () => [...enumKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...enumKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...enumKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...enumKeys.details(), id] as const, -} as const; -export const functionKeys = { - /** All function queries */ all: ['function'] as const, - /** List query keys */ lists: () => [...functionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...functionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...functionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...functionKeys.details(), id] as const, -} as const; -export const apiSchemaKeys = { - /** All apiSchema queries */ all: ['apischema'] as const, - /** List query keys */ lists: () => [...apiSchemaKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...apiSchemaKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...apiSchemaKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...apiSchemaKeys.details(), id] as const, -} as const; -export const apiModuleKeys = { - /** All apiModule queries */ all: ['apimodule'] as const, - /** List query keys */ lists: () => [...apiModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...apiModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...apiModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...apiModuleKeys.details(), id] as const, -} as const; -export const domainKeys = { - /** All domain queries */ all: ['domain'] as const, - /** List query keys */ lists: () => [...domainKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...domainKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...domainKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...domainKeys.details(), id] as const, -} as const; -export const siteMetadatumKeys = { - /** All siteMetadatum queries */ all: ['sitemetadatum'] as const, - /** List query keys */ lists: () => [...siteMetadatumKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...siteMetadatumKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...siteMetadatumKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...siteMetadatumKeys.details(), id] as const, -} as const; -export const siteModuleKeys = { - /** All siteModule queries */ all: ['sitemodule'] as const, - /** List query keys */ lists: () => [...siteModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...siteModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...siteModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...siteModuleKeys.details(), id] as const, -} as const; -export const siteThemeKeys = { - /** All siteTheme queries */ all: ['sitetheme'] as const, - /** List query keys */ lists: () => [...siteThemeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...siteThemeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...siteThemeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...siteThemeKeys.details(), id] as const, -} as const; -export const corsSettingKeys = { - /** All corsSetting queries */ all: ['corssetting'] as const, - /** List query keys */ lists: () => [...corsSettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...corsSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...corsSettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...corsSettingKeys.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 graphModuleKeys = { - /** All graphModule queries */ all: ['graphmodule'] as const, - /** List query keys */ lists: () => [...graphModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...graphModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...graphModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...graphModuleKeys.details(), id] as const, -} as const; -export const triggerFunctionKeys = { - /** All triggerFunction queries */ all: ['triggerfunction'] as const, - /** List query keys */ lists: () => [...triggerFunctionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...triggerFunctionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...triggerFunctionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...triggerFunctionKeys.details(), id] as const, -} as const; -export const partitionKeys = { - /** All partition queries */ all: ['partition'] as const, - /** List query keys */ lists: () => [...partitionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...partitionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...partitionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...partitionKeys.details(), id] as const, -} as const; -export const databaseTransferKeys = { - /** All databaseTransfer queries */ all: ['databasetransfer'] as const, - /** List query keys */ lists: () => [...databaseTransferKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...databaseTransferKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...databaseTransferKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...databaseTransferKeys.details(), id] as const, -} as const; -export const apiKeys = { - /** All api queries */ all: ['api'] as const, - /** List query keys */ lists: () => [...apiKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...apiKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...apiKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...apiKeys.details(), id] as const, -} as const; -export const siteKeys = { - /** All site queries */ all: ['site'] as const, - /** List query keys */ lists: () => [...siteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...siteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...siteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...siteKeys.details(), id] as const, -} as const; -export const appKeys = { - /** All app queries */ all: ['app'] as const, - /** List query keys */ lists: () => [...appKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appKeys.details(), id] as const, -} as const; -export const apiSettingKeys = { - /** All apiSetting queries */ all: ['apisetting'] as const, - /** List query keys */ lists: () => [...apiSettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...apiSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...apiSettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...apiSettingKeys.details(), id] as const, -} as const; -export const connectedAccountsModuleKeys = { - /** All connectedAccountsModule queries */ all: ['connectedaccountsmodule'] as const, - /** List query keys */ lists: () => [...connectedAccountsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...connectedAccountsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...connectedAccountsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...connectedAccountsModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...cryptoAddressesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...cryptoAddressesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...cryptoAddressesModuleKeys.details(), id] as const, -} as const; -export const cryptoAuthModuleKeys = { - /** All cryptoAuthModule queries */ all: ['cryptoauthmodule'] as const, - /** List query keys */ lists: () => [...cryptoAuthModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...cryptoAuthModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...cryptoAuthModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...cryptoAuthModuleKeys.details(), id] as const, -} as const; -export const defaultIdsModuleKeys = { - /** All defaultIdsModule queries */ all: ['defaultidsmodule'] as const, - /** List query keys */ lists: () => [...defaultIdsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...defaultIdsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...defaultIdsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...defaultIdsModuleKeys.details(), id] as const, -} as const; -export const denormalizedTableFieldKeys = { - /** All denormalizedTableField queries */ all: ['denormalizedtablefield'] as const, - /** List query keys */ lists: () => [...denormalizedTableFieldKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...denormalizedTableFieldKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...denormalizedTableFieldKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...denormalizedTableFieldKeys.details(), id] as const, -} as const; -export const emailsModuleKeys = { - /** All emailsModule queries */ all: ['emailsmodule'] as const, - /** List query keys */ lists: () => [...emailsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...emailsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...emailsModuleKeys.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 invitesModuleKeys = { - /** All invitesModule queries */ all: ['invitesmodule'] as const, - /** List query keys */ lists: () => [...invitesModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...invitesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...invitesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...invitesModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...eventsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...eventsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...eventsModuleKeys.details(), id] as const, -} as const; -export const limitsModuleKeys = { - /** All limitsModule queries */ all: ['limitsmodule'] as const, - /** List query keys */ lists: () => [...limitsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...limitsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...limitsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...limitsModuleKeys.details(), id] as const, -} as const; -export const membershipTypesModuleKeys = { - /** All membershipTypesModule queries */ all: ['membershiptypesmodule'] as const, - /** List query keys */ lists: () => [...membershipTypesModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...membershipTypesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypesModuleKeys.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 permissionsModuleKeys = { - /** All permissionsModule queries */ all: ['permissionsmodule'] as const, - /** List query keys */ lists: () => [...permissionsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...permissionsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...permissionsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...permissionsModuleKeys.details(), id] as const, -} as const; -export const phoneNumbersModuleKeys = { - /** All phoneNumbersModule queries */ all: ['phonenumbersmodule'] as const, - /** List query keys */ lists: () => [...phoneNumbersModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...phoneNumbersModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...phoneNumbersModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...phoneNumbersModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...profilesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...profilesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...profilesModuleKeys.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 sessionsModuleKeys = { - /** All sessionsModule queries */ all: ['sessionsmodule'] as const, - /** List query keys */ lists: () => [...sessionsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...sessionsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...sessionsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...sessionsModuleKeys.details(), id] as const, -} as const; -export const userAuthModuleKeys = { - /** All userAuthModule queries */ all: ['userauthmodule'] as const, - /** List query keys */ lists: () => [...userAuthModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...userAuthModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...userAuthModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...userAuthModuleKeys.details(), id] as const, -} as const; -export const usersModuleKeys = { - /** All usersModule queries */ all: ['usersmodule'] as const, - /** List query keys */ lists: () => [...usersModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...usersModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...usersModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...usersModuleKeys.details(), id] as const, -} as const; -export const blueprintKeys = { - /** All blueprint queries */ all: ['blueprint'] as const, - /** List query keys */ lists: () => [...blueprintKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...blueprintKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...blueprintKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...blueprintKeys.details(), id] as const, -} as const; -export const blueprintTemplateKeys = { - /** All blueprintTemplate queries */ all: ['blueprinttemplate'] as const, - /** List query keys */ lists: () => [...blueprintTemplateKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...blueprintTemplateKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...blueprintTemplateKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...blueprintTemplateKeys.details(), id] as const, -} as const; -export const blueprintConstructionKeys = { - /** All blueprintConstruction queries */ all: ['blueprintconstruction'] as const, - /** List query keys */ lists: () => [...blueprintConstructionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...blueprintConstructionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...blueprintConstructionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...blueprintConstructionKeys.details(), id] as const, -} as const; -export const storageModuleKeys = { - /** All storageModule queries */ all: ['storagemodule'] as const, - /** List query keys */ lists: () => [...storageModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...storageModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...storageModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...storageModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...entityTypeProvisionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...entityTypeProvisionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...entityTypeProvisionKeys.details(), id] as const, -} as const; -export const webauthnCredentialsModuleKeys = { - /** All webauthnCredentialsModule queries */ all: ['webauthncredentialsmodule'] as const, - /** List query keys */ lists: () => [...webauthnCredentialsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...webauthnCredentialsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...webauthnCredentialsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...webauthnCredentialsModuleKeys.details(), id] as const, -} as const; -export const webauthnAuthModuleKeys = { - /** All webauthnAuthModule queries */ all: ['webauthnauthmodule'] as const, - /** List query keys */ lists: () => [...webauthnAuthModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...webauthnAuthModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...webauthnAuthModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...webauthnAuthModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...notificationsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...notificationsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...notificationsModuleKeys.details(), id] as const, -} as const; -export const inferenceLogModuleKeys = { - /** All inferenceLogModule queries */ all: ['inferencelogmodule'] as const, - /** List query keys */ lists: () => [...inferenceLogModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...inferenceLogModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...inferenceLogModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...inferenceLogModuleKeys.details(), id] as const, -} as const; -export const computeLogModuleKeys = { - /** All computeLogModule queries */ all: ['computelogmodule'] as const, - /** List query keys */ lists: () => [...computeLogModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...computeLogModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...computeLogModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...computeLogModuleKeys.details(), id] as const, -} as const; -export const transferLogModuleKeys = { - /** All transferLogModule queries */ all: ['transferlogmodule'] as const, - /** List query keys */ lists: () => [...transferLogModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...transferLogModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...transferLogModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...transferLogModuleKeys.details(), id] as const, -} as const; -export const storageLogModuleKeys = { - /** All storageLogModule queries */ all: ['storagelogmodule'] as const, - /** List query keys */ lists: () => [...storageLogModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...storageLogModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...storageLogModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...storageLogModuleKeys.details(), id] as const, -} as const; -export const dbUsageModuleKeys = { - /** All dbUsageModule queries */ all: ['dbusagemodule'] as const, - /** List query keys */ lists: () => [...dbUsageModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...dbUsageModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...dbUsageModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...dbUsageModuleKeys.details(), id] as const, -} as const; -export const agentModuleKeys = { - /** All agentModule queries */ all: ['agentmodule'] as const, - /** List query keys */ lists: () => [...agentModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...agentModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...agentModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...agentModuleKeys.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 functionModuleKeys = { - /** All functionModule queries */ all: ['functionmodule'] as const, - /** List query keys */ lists: () => [...functionModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...functionModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...functionModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...functionModuleKeys.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 appAdminGrantKeys = { - /** All appAdminGrant queries */ all: ['appadmingrant'] as const, - /** List query keys */ lists: () => [...appAdminGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appAdminGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appAdminGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appAdminGrantKeys.details(), id] as const, -} as const; -export const appOwnerGrantKeys = { - /** All appOwnerGrant queries */ all: ['appownergrant'] as const, - /** List query keys */ lists: () => [...appOwnerGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appOwnerGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appOwnerGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appOwnerGrantKeys.details(), id] as const, -} as const; -export const appGrantKeys = { - /** All appGrant queries */ all: ['appgrant'] as const, - /** List query keys */ lists: () => [...appGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appGrantKeys.details(), id] as const, -} as const; -export const orgMembershipKeys = { - /** All orgMembership queries */ all: ['orgmembership'] as const, - /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipKeys.details(), id] as const, -} as const; -export const orgMemberKeys = { - /** All orgMember queries */ all: ['orgmember'] as const, - /** List query keys */ lists: () => [...orgMemberKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMemberKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMemberKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMemberKeys.details(), id] as const, -} as const; -export const orgAdminGrantKeys = { - /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, - /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgAdminGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgAdminGrantKeys.details(), id] as const, -} as const; -export const orgOwnerGrantKeys = { - /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, - /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgOwnerGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgOwnerGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgOwnerGrantKeys.details(), id] as const, -} as const; -export const orgMemberProfileKeys = { - /** All orgMemberProfile queries */ all: ['orgmemberprofile'] as const, - /** List query keys */ lists: () => [...orgMemberProfileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMemberProfileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMemberProfileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMemberProfileKeys.details(), id] as const, -} as const; -export const orgGrantKeys = { - /** All orgGrant queries */ all: ['orggrant'] as const, - /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgGrantKeys.details(), id] as const, -} as const; -export const orgChartEdgeKeys = { - /** All orgChartEdge queries */ all: ['orgchartedge'] as const, - /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgChartEdgeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgChartEdgeKeys.details(), id] as const, -} as const; -export const orgChartEdgeGrantKeys = { - /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, - /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgChartEdgeGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgChartEdgeGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgChartEdgeGrantKeys.details(), id] as const, -} as const; -export const orgPermissionDefaultKeys = { - /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, - /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionDefaultKeys.details(), id] as const, -} as const; -export const appLimitKeys = { - /** All appLimit queries */ all: ['applimit'] as const, - /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitKeys.details(), id] as const, -} as const; -export const appLimitCreditKeys = { - /** All appLimitCredit queries */ all: ['applimitcredit'] as const, - /** List query keys */ lists: () => [...appLimitCreditKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditKeys.details(), id] as const, -} as const; -export const appLimitCreditCodeItemKeys = { - /** All appLimitCreditCodeItem queries */ all: ['applimitcreditcodeitem'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeItemKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditCodeItemKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeItemKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditCodeItemKeys.details(), id] as const, -} as const; -export const appLimitCreditRedemptionKeys = { - /** All appLimitCreditRedemption queries */ all: ['applimitcreditredemption'] as const, - /** List query keys */ lists: () => [...appLimitCreditRedemptionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditRedemptionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditRedemptionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditRedemptionKeys.details(), id] as const, -} as const; -export const orgLimitKeys = { - /** All orgLimit queries */ all: ['orglimit'] as const, - /** List query keys */ lists: () => [...orgLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitKeys.details(), id] as const, -} as const; -export const orgLimitCreditKeys = { - /** All orgLimitCredit queries */ all: ['orglimitcredit'] as const, - /** List query keys */ lists: () => [...orgLimitCreditKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitCreditKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitCreditKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitCreditKeys.details(), id] as const, -} as const; -export const orgLimitAggregateKeys = { - /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, - /** List query keys */ lists: () => [...orgLimitAggregateKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitAggregateKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitAggregateKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitAggregateKeys.details(), id] as const, -} as const; -export const orgLimitWarningKeys = { - /** All orgLimitWarning queries */ all: ['orglimitwarning'] as const, - /** List query keys */ lists: () => [...orgLimitWarningKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitWarningKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitWarningKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitWarningKeys.details(), id] as const, -} as const; -export const emailKeys = { - /** All email queries */ all: ['email'] as const, - /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...emailKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...emailKeys.details(), id] as const, -} as const; -export const phoneNumberKeys = { - /** All phoneNumber queries */ all: ['phonenumber'] as const, - /** List query keys */ lists: () => [...phoneNumberKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...phoneNumberKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...phoneNumberKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...phoneNumberKeys.details(), id] as const, -} as const; -export const cryptoAddressKeys = { - /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, - /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...cryptoAddressKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...cryptoAddressKeys.details(), id] as const, -} as const; -export const webauthnCredentialKeys = { - /** All webauthnCredential queries */ all: ['webauthncredential'] as const, - /** List query keys */ lists: () => [...webauthnCredentialKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...webauthnCredentialKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...webauthnCredentialKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...webauthnCredentialKeys.details(), id] as const, -} as const; -export const appInviteKeys = { - /** All appInvite queries */ all: ['appinvite'] as const, - /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appInviteKeys.details(), id] as const, -} as const; -export const appClaimedInviteKeys = { - /** All appClaimedInvite queries */ all: ['appclaimedinvite'] as const, - /** List query keys */ lists: () => [...appClaimedInviteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appClaimedInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appClaimedInviteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appClaimedInviteKeys.details(), id] as const, -} as const; -export const orgInviteKeys = { - /** All orgInvite queries */ all: ['orginvite'] as const, - /** List query keys */ lists: () => [...orgInviteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgInviteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgInviteKeys.details(), id] as const, -} as const; -export const orgClaimedInviteKeys = { - /** All orgClaimedInvite queries */ all: ['orgclaimedinvite'] as const, - /** List query keys */ lists: () => [...orgClaimedInviteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgClaimedInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgClaimedInviteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgClaimedInviteKeys.details(), id] as const, -} as const; -export const auditLogAuthKeys = { - /** All auditLogAuth queries */ all: ['auditlogauth'] as const, - /** List query keys */ lists: () => [...auditLogAuthKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...auditLogAuthKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...auditLogAuthKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...auditLogAuthKeys.details(), id] as const, -} as const; -export const identityProviderKeys = { - /** All identityProvider queries */ all: ['identityprovider'] as const, - /** List query keys */ lists: () => [...identityProviderKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...identityProviderKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...identityProviderKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...identityProviderKeys.details(), id] as const, -} as const; -export const appPermissionDefaultKeys = { - /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, - /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionDefaultKeys.details(), id] as const, -} as const; -export const roleTypeKeys = { - /** All roleType queries */ all: ['roletype'] as const, - /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...roleTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...roleTypeKeys.details(), id] as const, -} as const; -export const migrateFileKeys = { - /** All migrateFile queries */ all: ['migratefile'] as const, - /** List query keys */ lists: () => [...migrateFileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...migrateFileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...migrateFileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...migrateFileKeys.details(), id] as const, -} as const; -export const devicesModuleKeys = { - /** All devicesModule queries */ all: ['devicesmodule'] as const, - /** List query keys */ lists: () => [...devicesModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...devicesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...devicesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...devicesModuleKeys.details(), id] as const, -} as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, -} as const; -export const orgMembershipDefaultKeys = { - /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, - /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipDefaultKeys.details(), id] as const, -} as const; -export const nodeTypeRegistryKeys = { - /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, - /** List query keys */ lists: () => [...nodeTypeRegistryKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...nodeTypeRegistryKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...nodeTypeRegistryKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...nodeTypeRegistryKeys.details(), id] as const, -} as const; -export const appLimitCapsDefaultKeys = { - /** All appLimitCapsDefault queries */ all: ['applimitcapsdefault'] as const, - /** List query keys */ lists: () => [...appLimitCapsDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCapsDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCapsDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCapsDefaultKeys.details(), id] as const, -} as const; -export const orgLimitCapsDefaultKeys = { - /** All orgLimitCapsDefault queries */ all: ['orglimitcapsdefault'] as const, - /** List query keys */ lists: () => [...orgLimitCapsDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitCapsDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitCapsDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitCapsDefaultKeys.details(), id] as const, -} as const; -export const appLimitCapKeys = { - /** All appLimitCap queries */ all: ['applimitcap'] as const, - /** List query keys */ lists: () => [...appLimitCapKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCapKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCapKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCapKeys.details(), id] as const, -} as const; -export const orgLimitCapKeys = { - /** All orgLimitCap queries */ all: ['orglimitcap'] as const, - /** List query keys */ lists: () => [...orgLimitCapKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitCapKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitCapKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitCapKeys.details(), id] as const, -} as const; -export const userConnectedAccountKeys = { - /** All userConnectedAccount queries */ all: ['userconnectedaccount'] as const, - /** List query keys */ lists: () => [...userConnectedAccountKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...userConnectedAccountKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...userConnectedAccountKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...userConnectedAccountKeys.details(), id] as const, -} as const; -export const appLimitDefaultKeys = { - /** All appLimitDefault queries */ all: ['applimitdefault'] as const, - /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitDefaultKeys.details(), id] as const, -} as const; -export const orgLimitDefaultKeys = { - /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, - /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitDefaultKeys.details(), id] as const, -} as const; -export const appLimitCreditCodeKeys = { - /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditCodeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditCodeKeys.details(), id] as const, -} as const; -export const appLimitWarningKeys = { - /** All appLimitWarning queries */ all: ['applimitwarning'] as const, - /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitWarningKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitWarningKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitWarningKeys.details(), id] as const, -} as const; -export const pubkeySettingKeys = { - /** All pubkeySetting queries */ all: ['pubkeysetting'] as const, - /** List query keys */ lists: () => [...pubkeySettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...pubkeySettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...pubkeySettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...pubkeySettingKeys.details(), id] as const, -} as const; -export const rateLimitsModuleKeys = { - /** All rateLimitsModule queries */ all: ['ratelimitsmodule'] as const, - /** List query keys */ lists: () => [...rateLimitsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...rateLimitsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...rateLimitsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...rateLimitsModuleKeys.details(), id] as const, -} as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, -} as const; -export const rlsSettingKeys = { - /** All rlsSetting queries */ all: ['rlssetting'] as const, - /** List query keys */ lists: () => [...rlsSettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...rlsSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...rlsSettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...rlsSettingKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...rlsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...rlsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...rlsModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...rateLimitMetersModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...rateLimitMetersModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...rateLimitMetersModuleKeys.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 sqlActionKeys = { - /** All sqlAction queries */ all: ['sqlaction'] as const, - /** List query keys */ lists: () => [...sqlActionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...sqlActionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...sqlActionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...sqlActionKeys.details(), id] as const, -} as const; -export const databaseSettingKeys = { - /** All databaseSetting queries */ all: ['databasesetting'] as const, - /** List query keys */ lists: () => [...databaseSettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...databaseSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...databaseSettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...databaseSettingKeys.details(), id] as const, -} as const; -export const orgMembershipSettingKeys = { - /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, - /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMembershipSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipSettingKeys.details(), id] as const, -} as const; -export const appLimitEventKeys = { - /** All appLimitEvent queries */ all: ['applimitevent'] as const, - /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitEventKeys.details(), id] as const, -} as const; -export const orgLimitEventKeys = { - /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, - /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitEventKeys.details(), id] as const, -} as const; -export const appMembershipKeys = { - /** All appMembership queries */ all: ['appmembership'] as const, - /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipKeys.details(), id] as const, -} as const; -export const userKeys = { - /** All user queries */ all: ['user'] as const, - /** List query keys */ lists: () => [...userKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...userKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...userKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...userKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...astMigrationKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, - /** 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; -export const billingModuleKeys = { - /** All billingModule queries */ all: ['billingmodule'] as const, - /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...billingModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...billingModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...billingModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...billingProviderModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...billingProviderModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...billingProviderModuleKeys.details(), id] as const, -} as const; -export const hierarchyModuleKeys = { - /** All hierarchyModule queries */ all: ['hierarchymodule'] as const, - /** List query keys */ lists: () => [...hierarchyModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...hierarchyModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...hierarchyModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...hierarchyModuleKeys.details(), id] as const, -} as const; - -// ============================================================================ -// Custom Query Keys -// ============================================================================ - -export const customQueryKeys = { - /** Query key for currentUserId */ currentUserId: () => ['currentUserId'] as const, - /** Query key for currentUserAgent */ currentUserAgent: () => ['currentUserAgent'] as const, - /** Query key for currentIpAddress */ currentIpAddress: () => ['currentIpAddress'] as const, - /** Query key for requireStepUp */ requireStepUp: (variables?: object) => - ['requireStepUp', variables] as const, - /** Query key for appPermissionsGetPaddedMask */ appPermissionsGetPaddedMask: ( - variables?: object - ) => ['appPermissionsGetPaddedMask', variables] as const, - /** Query key for orgPermissionsGetPaddedMask */ orgPermissionsGetPaddedMask: ( - variables?: object - ) => ['orgPermissionsGetPaddedMask', variables] as const, - /** Query key for applyRegistryDefaults */ applyRegistryDefaults: (variables?: object) => - ['applyRegistryDefaults', variables] as const, - /** Query key for resolveBlueprintField */ resolveBlueprintField: (variables?: object) => - ['resolveBlueprintField', variables] as const, - /** Query key for resolveBlueprintTable */ resolveBlueprintTable: (variables?: object) => - ['resolveBlueprintTable', variables] as const, - /** Query key for orgIsManagerOf */ orgIsManagerOf: (variables?: object) => - ['orgIsManagerOf', variables] as const, - /** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => - ['appPermissionsGetMask', variables] as const, - /** Query key for orgPermissionsGetMask */ orgPermissionsGetMask: (variables?: object) => - ['orgPermissionsGetMask', variables] as const, - /** Query key for appPermissionsGetMaskByNames */ appPermissionsGetMaskByNames: ( - variables?: object - ) => ['appPermissionsGetMaskByNames', variables] as const, - /** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: ( - variables?: object - ) => ['orgPermissionsGetMaskByNames', variables] as const, - /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => - ['appPermissionsGetByMask', variables] as const, - /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => - ['orgPermissionsGetByMask', variables] as const, - /** Query key for currentUser */ currentUser: () => ['currentUser'] 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 = { - orgGetManagersRecord: orgGetManagersRecordKeys, - orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, - appPermission: appPermissionKeys, - orgPermission: orgPermissionKeys, - database: databaseKeys, - schema: schemaKeys, - table: tableKeys, - checkConstraint: checkConstraintKeys, - field: fieldKeys, - spatialRelation: spatialRelationKeys, - foreignKeyConstraint: foreignKeyConstraintKeys, - fullTextSearch: fullTextSearchKeys, - index: indexKeys, - policy: policyKeys, - primaryKeyConstraint: primaryKeyConstraintKeys, - tableGrant: tableGrantKeys, - trigger: triggerKeys, - uniqueConstraint: uniqueConstraintKeys, - view: viewKeys, - viewTable: viewTableKeys, - viewGrant: viewGrantKeys, - viewRule: viewRuleKeys, - embeddingChunk: embeddingChunkKeys, - secureTableProvision: secureTableProvisionKeys, - relationProvision: relationProvisionKeys, - sessionSecretsModule: sessionSecretsModuleKeys, - identityProvidersModule: identityProvidersModuleKeys, - realtimeModule: realtimeModuleKeys, - configSecretsOrgModule: configSecretsOrgModuleKeys, - schemaGrant: schemaGrantKeys, - defaultPrivilege: defaultPrivilegeKeys, - enum: enumKeys, - function: functionKeys, - apiSchema: apiSchemaKeys, - apiModule: apiModuleKeys, - domain: domainKeys, - siteMetadatum: siteMetadatumKeys, - siteModule: siteModuleKeys, - siteTheme: siteThemeKeys, - corsSetting: corsSettingKeys, - merkleStoreModule: merkleStoreModuleKeys, - graphModule: graphModuleKeys, - triggerFunction: triggerFunctionKeys, - partition: partitionKeys, - databaseTransfer: databaseTransferKeys, - api: apiKeys, - site: siteKeys, - app: appKeys, - apiSetting: apiSettingKeys, - connectedAccountsModule: connectedAccountsModuleKeys, - cryptoAddressesModule: cryptoAddressesModuleKeys, - cryptoAuthModule: cryptoAuthModuleKeys, - defaultIdsModule: defaultIdsModuleKeys, - denormalizedTableField: denormalizedTableFieldKeys, - emailsModule: emailsModuleKeys, - configSecretsUserModule: configSecretsUserModuleKeys, - invitesModule: invitesModuleKeys, - eventsModule: eventsModuleKeys, - limitsModule: limitsModuleKeys, - membershipTypesModule: membershipTypesModuleKeys, - membershipsModule: membershipsModuleKeys, - permissionsModule: permissionsModuleKeys, - phoneNumbersModule: phoneNumbersModuleKeys, - profilesModule: profilesModuleKeys, - userStateModule: userStateModuleKeys, - sessionsModule: sessionsModuleKeys, - userAuthModule: userAuthModuleKeys, - usersModule: usersModuleKeys, - blueprint: blueprintKeys, - blueprintTemplate: blueprintTemplateKeys, - blueprintConstruction: blueprintConstructionKeys, - storageModule: storageModuleKeys, - entityTypeProvision: entityTypeProvisionKeys, - webauthnCredentialsModule: webauthnCredentialsModuleKeys, - webauthnAuthModule: webauthnAuthModuleKeys, - notificationsModule: notificationsModuleKeys, - inferenceLogModule: inferenceLogModuleKeys, - computeLogModule: computeLogModuleKeys, - transferLogModule: transferLogModuleKeys, - storageLogModule: storageLogModuleKeys, - dbUsageModule: dbUsageModuleKeys, - agentModule: agentModuleKeys, - namespaceModule: namespaceModuleKeys, - functionModule: functionModuleKeys, - databaseProvisionModule: databaseProvisionModuleKeys, - appAdminGrant: appAdminGrantKeys, - appOwnerGrant: appOwnerGrantKeys, - appGrant: appGrantKeys, - orgMembership: orgMembershipKeys, - orgMember: orgMemberKeys, - orgAdminGrant: orgAdminGrantKeys, - orgOwnerGrant: orgOwnerGrantKeys, - orgMemberProfile: orgMemberProfileKeys, - orgGrant: orgGrantKeys, - orgChartEdge: orgChartEdgeKeys, - orgChartEdgeGrant: orgChartEdgeGrantKeys, - orgPermissionDefault: orgPermissionDefaultKeys, - appLimit: appLimitKeys, - appLimitCredit: appLimitCreditKeys, - appLimitCreditCodeItem: appLimitCreditCodeItemKeys, - appLimitCreditRedemption: appLimitCreditRedemptionKeys, - orgLimit: orgLimitKeys, - orgLimitCredit: orgLimitCreditKeys, - orgLimitAggregate: orgLimitAggregateKeys, - orgLimitWarning: orgLimitWarningKeys, - email: emailKeys, - phoneNumber: phoneNumberKeys, - cryptoAddress: cryptoAddressKeys, - webauthnCredential: webauthnCredentialKeys, - appInvite: appInviteKeys, - appClaimedInvite: appClaimedInviteKeys, - orgInvite: orgInviteKeys, - orgClaimedInvite: orgClaimedInviteKeys, - auditLogAuth: auditLogAuthKeys, - identityProvider: identityProviderKeys, - appPermissionDefault: appPermissionDefaultKeys, - roleType: roleTypeKeys, - migrateFile: migrateFileKeys, - devicesModule: devicesModuleKeys, - appMembershipDefault: appMembershipDefaultKeys, - orgMembershipDefault: orgMembershipDefaultKeys, - nodeTypeRegistry: nodeTypeRegistryKeys, - appLimitCapsDefault: appLimitCapsDefaultKeys, - orgLimitCapsDefault: orgLimitCapsDefaultKeys, - appLimitCap: appLimitCapKeys, - orgLimitCap: orgLimitCapKeys, - userConnectedAccount: userConnectedAccountKeys, - appLimitDefault: appLimitDefaultKeys, - orgLimitDefault: orgLimitDefaultKeys, - appLimitCreditCode: appLimitCreditCodeKeys, - appLimitWarning: appLimitWarningKeys, - pubkeySetting: pubkeySettingKeys, - rateLimitsModule: rateLimitsModuleKeys, - membershipType: membershipTypeKeys, - rlsSetting: rlsSettingKeys, - rlsModule: rlsModuleKeys, - rateLimitMetersModule: rateLimitMetersModuleKeys, - plansModule: plansModuleKeys, - sqlAction: sqlActionKeys, - databaseSetting: databaseSettingKeys, - orgMembershipSetting: orgMembershipSettingKeys, - appLimitEvent: appLimitEventKeys, - orgLimitEvent: orgLimitEventKeys, - appMembership: appMembershipKeys, - user: userKeys, - astMigration: astMigrationKeys, - webauthnSetting: webauthnSettingKeys, - billingModule: billingModuleKeys, - billingProviderModule: billingProviderModuleKeys, - hierarchyModule: hierarchyModuleKeys, - custom: customQueryKeys, -} as const; -/** Type representing all available query key scopes */ -export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md deleted file mode 100644 index 172c56f870..0000000000 --- a/sdk/constructive-react/src/public/orm/README.md +++ /dev/null @@ -1,6965 +0,0 @@ -# ORM Client - -

- -

- - - -## Setup - -```typescript -import { createClient } from './orm'; - -const db = createClient({ - endpoint: 'https://api.example.com/graphql', - headers: { Authorization: 'Bearer ' }, -}); -``` - -## Models - -| Model | Operations | -|-------|------------| -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | -| `appPermission` | findMany, findOne, create, update, delete | -| `orgPermission` | findMany, findOne, create, update, delete | -| `database` | findMany, findOne, create, update, delete | -| `schema` | findMany, findOne, create, update, delete | -| `table` | findMany, findOne, create, update, delete | -| `checkConstraint` | findMany, findOne, create, update, delete | -| `field` | findMany, findOne, create, update, delete | -| `spatialRelation` | findMany, findOne, create, update, delete | -| `foreignKeyConstraint` | findMany, findOne, create, update, delete | -| `fullTextSearch` | findMany, findOne, create, update, delete | -| `index` | findMany, findOne, create, update, delete | -| `policy` | findMany, findOne, create, update, delete | -| `primaryKeyConstraint` | findMany, findOne, create, update, delete | -| `tableGrant` | findMany, findOne, create, update, delete | -| `trigger` | findMany, findOne, create, update, delete | -| `uniqueConstraint` | findMany, findOne, create, update, delete | -| `view` | findMany, findOne, create, update, delete | -| `viewTable` | findMany, findOne, create, update, delete | -| `viewGrant` | findMany, findOne, create, update, delete | -| `viewRule` | findMany, findOne, create, update, delete | -| `embeddingChunk` | findMany, findOne, create, update, delete | -| `secureTableProvision` | findMany, findOne, create, update, delete | -| `relationProvision` | findMany, findOne, create, update, delete | -| `sessionSecretsModule` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | -| `realtimeModule` | findMany, findOne, create, update, delete | -| `configSecretsOrgModule` | findMany, findOne, create, update, delete | -| `schemaGrant` | findMany, findOne, create, update, delete | -| `defaultPrivilege` | findMany, findOne, create, update, delete | -| `enum` | findMany, findOne, create, update, delete | -| `function` | findMany, findOne, create, update, delete | -| `apiSchema` | findMany, findOne, create, update, delete | -| `apiModule` | findMany, findOne, create, update, delete | -| `domain` | findMany, findOne, create, update, delete | -| `siteMetadatum` | findMany, findOne, create, update, delete | -| `siteModule` | findMany, findOne, create, update, delete | -| `siteTheme` | findMany, findOne, create, update, delete | -| `corsSetting` | findMany, findOne, create, update, delete | -| `merkleStoreModule` | findMany, findOne, create, update, delete | -| `graphModule` | findMany, findOne, create, update, delete | -| `triggerFunction` | findMany, findOne, create, update, delete | -| `partition` | findMany, findOne, create, update, delete | -| `databaseTransfer` | findMany, findOne, create, update, delete | -| `api` | findMany, findOne, create, update, delete | -| `site` | findMany, findOne, create, update, delete | -| `app` | findMany, findOne, create, update, delete | -| `apiSetting` | findMany, findOne, create, update, delete | -| `connectedAccountsModule` | findMany, findOne, create, update, delete | -| `cryptoAddressesModule` | findMany, findOne, create, update, delete | -| `cryptoAuthModule` | findMany, findOne, create, update, delete | -| `defaultIdsModule` | findMany, findOne, create, update, delete | -| `denormalizedTableField` | findMany, findOne, create, update, delete | -| `emailsModule` | findMany, findOne, create, update, delete | -| `configSecretsUserModule` | findMany, findOne, create, update, delete | -| `invitesModule` | findMany, findOne, create, update, delete | -| `eventsModule` | findMany, findOne, create, update, delete | -| `limitsModule` | findMany, findOne, create, update, delete | -| `membershipTypesModule` | findMany, findOne, create, update, delete | -| `membershipsModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | -| `phoneNumbersModule` | findMany, findOne, create, update, delete | -| `profilesModule` | findMany, findOne, create, update, delete | -| `userStateModule` | findMany, findOne, create, update, delete | -| `sessionsModule` | findMany, findOne, create, update, delete | -| `userAuthModule` | findMany, findOne, create, update, delete | -| `usersModule` | findMany, findOne, create, update, delete | -| `blueprint` | findMany, findOne, create, update, delete | -| `blueprintTemplate` | findMany, findOne, create, update, delete | -| `blueprintConstruction` | findMany, findOne, create, update, delete | -| `storageModule` | findMany, findOne, create, update, delete | -| `entityTypeProvision` | findMany, findOne, create, update, delete | -| `webauthnCredentialsModule` | findMany, findOne, create, update, delete | -| `webauthnAuthModule` | findMany, findOne, create, update, delete | -| `notificationsModule` | findMany, findOne, create, update, delete | -| `inferenceLogModule` | findMany, findOne, create, update, delete | -| `computeLogModule` | findMany, findOne, create, update, delete | -| `transferLogModule` | findMany, findOne, create, update, delete | -| `storageLogModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | -| `agentModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | -| `functionModule` | findMany, findOne, create, update, delete | -| `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `appAdminGrant` | findMany, findOne, create, update, delete | -| `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appGrant` | findMany, findOne, create, update, delete | -| `orgMembership` | findMany, findOne, create, update, delete | -| `orgMember` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgMemberProfile` | findMany, findOne, create, update, delete | -| `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appLimitCredit` | findMany, findOne, create, update, delete | -| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | -| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | -| `orgLimitCredit` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | -| `phoneNumber` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `webauthnCredential` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | -| `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgInvite` | findMany, findOne, create, update, delete | -| `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `auditLogAuth` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `nodeTypeRegistry` | findMany, findOne, create, update, delete | -| `appLimitCapsDefault` | findMany, findOne, create, update, delete | -| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | -| `pubkeySetting` | findMany, findOne, create, update, delete | -| `rateLimitsModule` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `rlsSetting` | findMany, findOne, create, update, delete | -| `rlsModule` | findMany, findOne, create, update, delete | -| `rateLimitMetersModule` | findMany, findOne, create, update, delete | -| `plansModule` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | -| `databaseSetting` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | -| `billingProviderModule` | findMany, findOne, create, update, delete | -| `hierarchyModule` | findMany, findOne, create, update, delete | - -## Table Operations - -### `db.orgGetManagersRecord` - -CRUD operations for OrgGetManagersRecord records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | - -**Operations:** - -```typescript -// List all orgGetManagersRecord records -const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); - -// Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); - -// Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgGetSubordinatesRecord` - -CRUD operations for OrgGetSubordinatesRecord records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | - -**Operations:** - -```typescript -// List all orgGetSubordinatesRecord records -const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); - -// Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); - -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermission` - -CRUD operations for AppPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | - -**Operations:** - -```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermission` - -CRUD operations for OrgPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | - -**Operations:** - -```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.database` - -CRUD operations for Database records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `schemaHash` | String | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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(); - -// 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(); - -// Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.database.delete({ where: { id: '' } }).execute(); -``` - -### `db.schema` - -CRUD operations for Schema records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `schemaName` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `isPublic` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.schema.delete({ where: { id: '' } }).execute(); -``` - -### `db.table` - -CRUD operations for Table records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `useRls` | Boolean | Yes | -| `timestamps` | Boolean | Yes | -| `peoplestamps` | Boolean | Yes | -| `pluralName` | String | Yes | -| `singularName` | String | Yes | -| `tags` | String | Yes | -| `partitioned` | Boolean | Yes | -| `partitionStrategy` | String | Yes | -| `partitionKeyNames` | String | Yes | -| `partitionKeyTypes` | String | Yes | -| `inheritsId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.table.delete({ where: { id: '' } }).execute(); -``` - -### `db.checkConstraint` - -CRUD operations for CheckConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `expr` | JSON | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.field` - -CRUD operations for Field records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `isRequired` | Boolean | Yes | -| `apiRequired` | Boolean | Yes | -| `defaultValue` | JSON | Yes | -| `type` | JSON | Yes | -| `fieldOrder` | Int | Yes | -| `regexp` | String | Yes | -| `chk` | JSON | Yes | -| `chkExpr` | JSON | Yes | -| `min` | Float | Yes | -| `max` | Float | Yes | -| `tags` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.field.delete({ where: { id: '' } }).execute(); -``` - -### `db.spatialRelation` - -CRUD operations for SpatialRelation records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `name` | String | Yes | -| `operator` | String | Yes | -| `paramName` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all spatialRelation records -const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); -``` - -### `db.foreignKeyConstraint` - -CRUD operations for ForeignKeyConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldIds` | UUID | Yes | -| `deleteAction` | String | Yes | -| `updateAction` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.fullTextSearch` - -CRUD operations for FullTextSearch records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `fieldIds` | UUID | Yes | -| `weights` | String | Yes | -| `langs` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all fullTextSearch records -const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); -``` - -### `db.index` - -CRUD operations for Index records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `fieldIds` | UUID | Yes | -| `includeFieldIds` | UUID | Yes | -| `accessMethod` | String | Yes | -| `indexParams` | JSON | Yes | -| `whereClause` | JSON | Yes | -| `isUnique` | Boolean | Yes | -| `options` | JSON | Yes | -| `opClasses` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.index.delete({ where: { id: '' } }).execute(); -``` - -### `db.policy` - -CRUD operations for Policy records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `granteeName` | String | Yes | -| `privilege` | String | Yes | -| `permissive` | Boolean | Yes | -| `disabled` | Boolean | Yes | -| `policyType` | String | Yes | -| `data` | JSON | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.policy.delete({ where: { id: '' } }).execute(); -``` - -### `db.primaryKeyConstraint` - -CRUD operations for PrimaryKeyConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.tableGrant` - -CRUD operations for TableGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `privilege` | String | Yes | -| `granteeName` | String | Yes | -| `fieldIds` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.trigger` - -CRUD operations for Trigger records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `event` | String | Yes | -| `functionName` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); -``` - -### `db.uniqueConstraint` - -CRUD operations for UniqueConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.view` - -CRUD operations for View records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `tableId` | UUID | Yes | -| `viewType` | String | Yes | -| `data` | JSON | Yes | -| `filterType` | String | Yes | -| `filterData` | JSON | Yes | -| `securityInvoker` | Boolean | Yes | -| `isReadOnly` | Boolean | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.view.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewTable` - -CRUD operations for ViewTable records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `viewId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `joinOrder` | Int | Yes | - -**Operations:** - -```typescript -// List all viewTable records -const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); - -// Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); - -// Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewGrant` - -CRUD operations for ViewGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `viewId` | UUID | Yes | -| `granteeName` | String | Yes | -| `privilege` | String | Yes | -| `withGrantOption` | Boolean | Yes | -| `isGrant` | Boolean | Yes | - -**Operations:** - -```typescript -// List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); - -// Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); - -// Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewRule` - -CRUD operations for ViewRule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `viewId` | UUID | Yes | -| `name` | String | Yes | -| `event` | String | Yes | -| `action` | String | Yes | - -**Operations:** - -```typescript -// List all viewRule records -const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); - -// Get one by id -const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); - -// Create -const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); -``` - -### `db.embeddingChunk` - -CRUD operations for EmbeddingChunk records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `embeddingFieldId` | UUID | Yes | -| `chunksTableId` | UUID | Yes | -| `chunksTableName` | String | Yes | -| `contentFieldName` | String | Yes | -| `dimensions` | Int | Yes | -| `metric` | String | Yes | -| `chunkSize` | Int | Yes | -| `chunkOverlap` | Int | Yes | -| `chunkStrategy` | String | Yes | -| `metadataFields` | JSON | Yes | -| `searchIndexes` | JSON | Yes | -| `enqueueChunkingJob` | Boolean | Yes | -| `chunkingTaskName` | String | Yes | -| `embeddingModel` | String | Yes | -| `embeddingProvider` | String | Yes | -| `parentFkFieldId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all embeddingChunk records -const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); -``` - -### `db.secureTableProvision` - -CRUD operations for SecureTableProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `nodes` | JSON | Yes | -| `useRls` | Boolean | Yes | -| `fields` | JSON | Yes | -| `grants` | JSON | Yes | -| `policies` | JSON | Yes | -| `outFields` | UUID | Yes | - -**Operations:** - -```typescript -// List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.relationProvision` - -CRUD operations for RelationProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `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 | -| `policies` | JSON | Yes | -| `outFieldId` | UUID | Yes | -| `outJunctionTableId` | UUID | Yes | -| `outSourceFieldId` | UUID | Yes | -| `outTargetFieldId` | UUID | 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(); - -// 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(); - -// 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(); - -// Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.sessionSecretsModule` - -CRUD operations for SessionSecretsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `sessionsTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all sessionSecretsModule records -const items = await db.sessionSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); - -// Get one by id -const item = await db.sessionSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); - -// Create -const created = await db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sessionSecretsModule.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 | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '' }, 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.realtimeModule` - -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 | - -**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 } }).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 } }).execute(); - -// Create -const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }, 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.configSecretsOrgModule` - -CRUD operations for ConfigSecretsOrgModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all configSecretsOrgModule records -const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.schemaGrant` - -CRUD operations for SchemaGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `granteeName` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all schemaGrant records -const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.defaultPrivilege` - -CRUD operations for DefaultPrivilege records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `objectType` | String | Yes | -| `privilege` | String | Yes | -| `granteeName` | String | Yes | -| `isGrant` | Boolean | Yes | - -**Operations:** - -```typescript -// List all defaultPrivilege records -const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); - -// Get one by id -const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); - -// Create -const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); -``` - -### `db.enum` - -CRUD operations for Enum records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `values` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all enum records -const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Get one by id -const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Create -const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.enum.delete({ where: { id: '' } }).execute(); -``` - -### `db.function` - -CRUD operations for Function records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all function records -const items = await db.function.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); - -// Get one by id -const item = await db.function.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); - -// Create -const created = await db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.function.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiSchema` - -CRUD operations for ApiSchema records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `apiId` | UUID | Yes | - -**Operations:** - -```typescript -// List all apiSchema records -const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); - -// Get one by id -const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); - -// Create -const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiModule` - -CRUD operations for ApiModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `name` | String | Yes | -| `data` | JSON | Yes | - -**Operations:** - -```typescript -// List all apiModule records -const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); - -// Get one by id -const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); - -// Create -const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.domain` - -CRUD operations for Domain records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `subdomain` | ConstructiveInternalTypeHostname | Yes | -| `domain` | ConstructiveInternalTypeHostname | Yes | - -**Operations:** - -```typescript -// List all domain records -const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); - -// Get one by id -const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); - -// Create -const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.domain.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteMetadatum` - -CRUD operations for SiteMetadatum records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `title` | String | Yes | -| `description` | String | Yes | -| `ogImage` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); - -// Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); - -// Create -const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteModule` - -CRUD operations for SiteModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `name` | String | Yes | -| `data` | JSON | Yes | - -**Operations:** - -```typescript -// List all siteModule records -const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); - -// Get one by id -const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); - -// Create -const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteTheme` - -CRUD operations for SiteTheme records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `theme` | JSON | Yes | - -**Operations:** - -```typescript -// List all siteTheme records -const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); - -// Get one by id -const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); - -// Create -const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); -``` - -### `db.corsSetting` - -CRUD operations for CorsSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `allowedOrigins` | String | Yes | - -**Operations:** - -```typescript -// List all corsSetting records -const items = await db.corsSetting.findMany({ select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); - -// Get one by id -const item = await db.corsSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); - -// Create -const created = await db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.corsSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.merkleStoreModule` - -CRUD operations for MerkleStoreModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `objectTableId` | UUID | Yes | -| `storeTableId` | UUID | Yes | -| `commitTableId` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scopeField` | String | 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, scopeField: 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, scopeField: true, createdAt: true } }).execute(); - -// Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scopeField: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.graphModule` - -CRUD operations for GraphModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `publicSchemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `prefix` | String | Yes | -| `merkleStoreModuleId` | UUID | Yes | -| `graphsTableId` | UUID | Yes | -| `executionsTableId` | UUID | Yes | -| `outputsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scopeField` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `createdAt` | 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, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: 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, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); - -// Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', scopeField: '', membershipType: '', entityTableId: '', policies: '', provisions: '' }, 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.triggerFunction` - -CRUD operations for TriggerFunction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `code` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all triggerFunction records -const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); -``` - -### `db.partition` - -CRUD operations for Partition records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `strategy` | String | Yes | -| `partitionKeyId` | UUID | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `retentionKeepTable` | Boolean | Yes | -| `premake` | Int | Yes | -| `namingPattern` | String | Yes | -| `isParented` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.partition.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseTransfer` - -CRUD operations for DatabaseTransfer records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `targetOwnerId` | UUID | Yes | -| `sourceApproved` | Boolean | Yes | -| `targetApproved` | Boolean | Yes | -| `sourceApprovedAt` | Datetime | Yes | -| `targetApprovedAt` | Datetime | Yes | -| `status` | String | Yes | -| `initiatedBy` | UUID | Yes | -| `notes` | String | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all databaseTransfer records -const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Get one by id -const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Create -const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); -``` - -### `db.api` - -CRUD operations for Api records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `dbname` | String | Yes | -| `roleName` | String | Yes | -| `anonRole` | String | Yes | -| `isPublic` | Boolean | Yes | - -**Operations:** - -```typescript -// List all api records -const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); - -// Get one by id -const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); - -// Create -const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.api.delete({ where: { id: '' } }).execute(); -``` - -### `db.site` - -CRUD operations for Site records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `title` | String | Yes | -| `description` | String | Yes | -| `ogImage` | ConstructiveInternalTypeImage | Yes | -| `favicon` | ConstructiveInternalTypeAttachment | Yes | -| `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `dbname` | String | Yes | - -**Operations:** - -```typescript -// List all site records -const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); - -// Get one by id -const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); - -// Create -const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.site.delete({ where: { id: '' } }).execute(); -``` - -### `db.app` - -CRUD operations for App records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `name` | String | Yes | -| `appImage` | ConstructiveInternalTypeImage | Yes | -| `appStoreLink` | ConstructiveInternalTypeUrl | Yes | -| `appStoreId` | String | Yes | -| `appIdPrefix` | String | Yes | -| `playStoreLink` | ConstructiveInternalTypeUrl | Yes | - -**Operations:** - -```typescript -// List all app records -const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); - -// Get one by id -const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); - -// Create -const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiSetting` - -CRUD operations for ApiSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `enableBulk` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all apiSetting records -const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Create -const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.connectedAccountsModule` - -CRUD operations for ConnectedAccountsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all connectedAccountsModule records -const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAddressesModule` - -CRUD operations for CryptoAddressesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | -| `cryptoNetwork` | String | Yes | - -**Operations:** - -```typescript -// List all cryptoAddressesModule records -const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); - -// Create -const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAuthModule` - -CRUD operations for CryptoAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `secretsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `addressesTableId` | UUID | Yes | -| `userField` | String | Yes | -| `cryptoNetwork` | String | Yes | -| `signInRequestChallenge` | String | Yes | -| `signInRecordFailure` | String | Yes | -| `signUpWithKey` | String | Yes | -| `signInWithChallenge` | String | Yes | - -**Operations:** - -```typescript -// List all cryptoAuthModule records -const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); - -// Get one by id -const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); - -// Create -const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.defaultIdsModule` - -CRUD operations for DefaultIdsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | - -**Operations:** - -```typescript -// List all defaultIdsModule records -const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); - -// Get one by id -const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); - -// Create -const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.denormalizedTableField` - -CRUD operations for DenormalizedTableField records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `setIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `refIds` | UUID | Yes | -| `useUpdates` | Boolean | Yes | -| `updateDefaults` | Boolean | Yes | -| `funcName` | String | Yes | -| `funcOrder` | Int | Yes | - -**Operations:** - -```typescript -// List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); - -// Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); - -// Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); -``` - -### `db.emailsModule` - -CRUD operations for EmailsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all emailsModule records -const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.configSecretsUserModule` - -CRUD operations for ConfigSecretsUserModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `configDefinitionsTableId` | UUID | 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 } }).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 } }).execute(); - -// Create -const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '' }, 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.invitesModule` - -CRUD operations for InvitesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); - -// Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); - -// Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.eventsModule` - -CRUD operations for EventsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | -| `eventsTableName` | String | Yes | -| `eventAggregatesTableId` | UUID | Yes | -| `eventAggregatesTableName` | String | Yes | -| `eventTypesTableId` | UUID | Yes | -| `eventTypesTableName` | String | Yes | -| `levelsTableId` | UUID | Yes | -| `levelsTableName` | String | Yes | -| `levelRequirementsTableId` | UUID | Yes | -| `levelRequirementsTableName` | String | Yes | -| `levelGrantsTableId` | UUID | Yes | -| `levelGrantsTableName` | String | Yes | -| `achievementRewardsTableId` | UUID | Yes | -| `achievementRewardsTableName` | String | Yes | -| `recordEvent` | String | Yes | -| `removeEvent` | String | Yes | -| `tgEvent` | String | Yes | -| `tgEventToggle` | String | Yes | -| `tgEventToggleBool` | String | Yes | -| `tgEventBool` | String | Yes | -| `upsertAggregate` | String | Yes | -| `tgUpdateAggregates` | String | Yes | -| `pruneEvents` | String | Yes | -| `stepsRequired` | String | Yes | -| `levelAchieved` | String | Yes | -| `tgCheckAchievements` | String | Yes | -| `grantAchievement` | String | Yes | -| `tgAchievementReward` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.limitsModule` - -CRUD operations for LimitsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `limitIncrementFunction` | String | Yes | -| `limitDecrementFunction` | String | Yes | -| `limitIncrementTrigger` | String | Yes | -| `limitDecrementTrigger` | String | Yes | -| `limitUpdateTrigger` | String | Yes | -| `limitCheckFunction` | String | Yes | -| `limitCreditsTableId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | -| `creditCodesTableId` | UUID | Yes | -| `creditCodeItemsTableId` | UUID | Yes | -| `creditRedemptionsTableId` | UUID | Yes | -| `aggregateTableId` | UUID | Yes | -| `limitCapsTableId` | UUID | Yes | -| `limitCapsDefaultsTableId` | UUID | Yes | -| `capCheckTrigger` | String | Yes | -| `resolveCapFunction` | String | Yes | -| `limitWarningsTableId` | UUID | Yes | -| `limitWarningStateTableId` | UUID | Yes | -| `limitCheckSoftFunction` | String | Yes | -| `limitAggregateCheckSoftFunction` | String | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipTypesModule` - -CRUD operations for MembershipTypesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all membershipTypesModule records -const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipTypesModule.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 | -| `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 | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `entityTableOwnerId` | UUID | Yes | -| `prefix` | String | Yes | -| `getOrgFn` | String | Yes | -| `actorMaskCheck` | String | Yes | -| `actorPermCheck` | String | Yes | -| `entityIdsByMask` | String | Yes | -| `entityIdsByPerm` | String | Yes | -| `entityIdsFunction` | String | Yes | -| `memberProfilesTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }).execute(); - -// Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }).execute(); - -// Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '' }, 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.permissionsModule` - -CRUD operations for PermissionsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | - -**Operations:** - -```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); - -// Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); - -// Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.phoneNumbersModule` - -CRUD operations for PhoneNumbersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all phoneNumbersModule records -const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.profilesModule` - -CRUD operations for ProfilesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `profilePermissionsTableId` | UUID | Yes | -| `profilePermissionsTableName` | String | Yes | -| `profileGrantsTableId` | UUID | Yes | -| `profileGrantsTableName` | String | Yes | -| `profileDefinitionGrantsTableId` | UUID | Yes | -| `profileDefinitionGrantsTableName` | String | Yes | -| `profileTemplatesTableId` | UUID | Yes | -| `profileTemplatesTableName` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | -| `membershipsTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.profilesModule.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.sessionsModule` - -CRUD operations for SessionsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `authSettingsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `sessionsDefaultExpiration` | Interval | Yes | -| `sessionsTable` | String | Yes | -| `sessionCredentialsTable` | String | Yes | -| `authSettingsTable` | String | Yes | - -**Operations:** - -```typescript -// List all sessionsModule records -const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); - -// Get one by id -const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); - -// Create -const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.userAuthModule` - -CRUD operations for UserAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `secretsTableId` | UUID | Yes | -| `encryptedTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `auditsTableId` | UUID | Yes | -| `auditsTableName` | String | Yes | -| `signInFunction` | String | Yes | -| `signUpFunction` | String | Yes | -| `signOutFunction` | String | Yes | -| `setPasswordFunction` | String | Yes | -| `resetPasswordFunction` | String | Yes | -| `forgotPasswordFunction` | String | Yes | -| `sendVerificationEmailFunction` | String | Yes | -| `verifyEmailFunction` | String | Yes | -| `verifyPasswordFunction` | String | Yes | -| `checkPasswordFunction` | String | Yes | -| `sendAccountDeletionEmailFunction` | String | Yes | -| `deleteAccountFunction` | String | Yes | -| `signInCrossOriginFunction` | String | Yes | -| `requestCrossOriginTokenFunction` | String | Yes | -| `extendTokenExpires` | String | Yes | - -**Operations:** - -```typescript -// List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }).execute(); - -// Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }).execute(); - -// Create -const created = await db.userAuthModule.create({ data: { 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: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.usersModule` - -CRUD operations for UsersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `typeTableId` | UUID | Yes | -| `typeTableName` | String | Yes | - -**Operations:** - -```typescript -// List all usersModule records -const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); - -// Get one by id -const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); - -// Create -const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprint` - -CRUD operations for Blueprint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `definition` | JSON | Yes | -| `templateId` | UUID | Yes | -| `definitionHash` | UUID | Yes | -| `tableHashes` | JSON | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprint records -const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprintTemplate` - -CRUD operations for BlueprintTemplate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `version` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `ownerId` | UUID | Yes | -| `visibility` | String | Yes | -| `categories` | String | Yes | -| `tags` | String | Yes | -| `definition` | JSON | Yes | -| `definitionSchemaVersion` | String | Yes | -| `source` | String | Yes | -| `complexity` | String | Yes | -| `copyCount` | Int | Yes | -| `forkCount` | Int | Yes | -| `forkedFromId` | UUID | Yes | -| `definitionHash` | UUID | Yes | -| `tableHashes` | JSON | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprintTemplate records -const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprintConstruction` - -CRUD operations for BlueprintConstruction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `blueprintId` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `status` | String | Yes | -| `errorDetails` | String | Yes | -| `tableMap` | JSON | Yes | -| `constructedDefinition` | JSON | Yes | -| `constructedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprintConstruction.delete({ where: { id: '' } }).execute(); -``` - -### `db.storageModule` - -CRUD operations for StorageModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `bucketsTableId` | UUID | Yes | -| `filesTableId` | UUID | Yes | -| `bucketsTableName` | String | Yes | -| `filesTableName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `entityTableId` | UUID | Yes | -| `endpoint` | String | Yes | -| `publicUrlPrefix` | String | Yes | -| `provider` | String | Yes | -| `allowedOrigins` | String | Yes | -| `restrictReads` | Boolean | Yes | -| `hasPathShares` | Boolean | Yes | -| `pathSharesTableId` | UUID | Yes | -| `uploadUrlExpirySeconds` | Int | Yes | -| `downloadUrlExpirySeconds` | Int | Yes | -| `defaultMaxFileSize` | BigInt | Yes | -| `maxFilenameLength` | Int | Yes | -| `cacheTtlSeconds` | Int | Yes | -| `maxBulkFiles` | Int | Yes | -| `maxBulkTotalSize` | BigInt | Yes | -| `hasVersioning` | Boolean | Yes | -| `hasContentHash` | Boolean | Yes | -| `hasCustomKeys` | Boolean | Yes | -| `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | -| `confirmUploadDelay` | Interval | Yes | -| `fileEventsTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }).execute(); - -// Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }).execute(); - -// Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', key: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.entityTypeProvision` - -CRUD operations for EntityTypeProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `prefix` | String | Yes | -| `description` | String | Yes | -| `parentEntity` | String | Yes | -| `tableName` | String | Yes | -| `isVisible` | Boolean | Yes | -| `hasLimits` | Boolean | Yes | -| `hasProfiles` | Boolean | Yes | -| `hasLevels` | Boolean | Yes | -| `hasInvites` | Boolean | Yes | -| `hasInviteAchievements` | Boolean | Yes | -| `storage` | JSON | Yes | -| `namespaces` | JSON | Yes | -| `functions` | JSON | Yes | -| `graphs` | JSON | Yes | -| `agents` | JSON | Yes | -| `skipEntityPolicies` | Boolean | Yes | -| `tableProvision` | JSON | Yes | -| `outMembershipType` | Int | Yes | -| `outEntityTableId` | UUID | Yes | -| `outEntityTableName` | String | Yes | -| `outInstalledModules` | String | Yes | -| `outStorageModuleId` | UUID | Yes | -| `outBucketsTableId` | UUID | Yes | -| `outFilesTableId` | UUID | Yes | -| `outPathSharesTableId` | UUID | Yes | -| `outInvitesModuleId` | UUID | Yes | -| `outNamespaceModuleId` | UUID | Yes | -| `outNamespacesTableId` | UUID | Yes | -| `outNamespaceEventsTableId` | UUID | Yes | -| `outFunctionModuleId` | UUID | Yes | -| `outDefinitionsTableId` | UUID | Yes | -| `outInvocationsTableId` | UUID | Yes | -| `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | -| `outRequirementsTableId` | UUID | Yes | -| `outConfigRequirementsTableId` | UUID | Yes | -| `outGraphModuleId` | UUID | Yes | -| `outGraphsTableId` | UUID | Yes | -| `outAgentModuleId` | UUID | Yes | - -**Operations:** - -```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnCredentialsModule` - -CRUD operations for WebauthnCredentialsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all webauthnCredentialsModule records -const items = await db.webauthnCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.webauthnCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnAuthModule` - -CRUD operations for WebauthnAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `credentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionSecretsTableId` | UUID | Yes | -| `authSettingsTableId` | UUID | Yes | -| `rpId` | String | Yes | -| `rpName` | String | Yes | -| `originAllowlist` | String | Yes | -| `attestationType` | String | Yes | -| `requireUserVerification` | Boolean | Yes | -| `residentKey` | String | Yes | -| `challengeExpiry` | Interval | Yes | - -**Operations:** - -```typescript -// List all webauthnAuthModule records -const items = await db.webauthnAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); - -// Get one by id -const item = await db.webauthnAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); - -// Create -const created = await db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.notificationsModule` - -CRUD operations for NotificationsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | 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 | - -**Operations:** - -```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); - -// Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); - -// Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.inferenceLogModule` - -CRUD operations for InferenceLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `inferenceLogTableId` | UUID | Yes | -| `inferenceLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.computeLogModule` - -CRUD operations for ComputeLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.transferLogModule` - -CRUD operations for TransferLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `transferLogTableId` | UUID | Yes | -| `transferLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.storageLogModule` - -CRUD operations for StorageLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `storageLogTableId` | UUID | Yes | -| `storageLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.dbUsageModule` - -CRUD operations for DbUsageModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); - -// Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.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. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `threadTableId` | UUID | Yes | -| `messageTableId` | UUID | Yes | -| `taskTableId` | UUID | Yes | -| `promptsTableId` | UUID | Yes | -| `knowledgeTableId` | UUID | Yes | -| `threadTableName` | String | Yes | -| `messageTableName` | String | Yes | -| `taskTableName` | String | Yes | -| `promptsTableName` | String | Yes | -| `knowledgeTableName` | String | Yes | -| `hasKnowledge` | Boolean | Yes | -| `apiName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `knowledgeConfig` | JSON | Yes | -| `knowledgePolicies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```typescript -// List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }).execute(); - -// Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }).execute(); - -// Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', hasKnowledge: '', apiName: '', membershipType: '', key: '', entityTableId: '', policies: '', knowledgeConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.agentModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.namespaceModule` - -CRUD operations for NamespaceModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `namespacesTableId` | UUID | Yes | -| `namespaceEventsTableId` | UUID | Yes | -| `namespacesTableName` | String | Yes | -| `namespaceEventsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: 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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', membershipType: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.functionModule` - -CRUD operations for FunctionModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `definitionsTableId` | UUID | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | -| `requirementsTableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `configRequirementsTableId` | UUID | Yes | -| `definitionsTableName` | String | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | -| `requirementsTableName` | String | Yes | -| `configRequirementsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `membershipType` | Int | Yes | -| `prefix` | String | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', membershipType: '', prefix: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseProvisionModule` - -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` | String | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | -| `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.appAdminGrant` - -CRUD operations for AppAdminGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appOwnerGrant` - -CRUD operations for AppOwnerGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appGrant` - -CRUD operations for AppGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMember` - -CRUD operations for OrgMember records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMember records -const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgAdminGrant` - -CRUD operations for OrgAdminGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgOwnerGrant` - -CRUD operations for OrgOwnerGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgGrant` - -CRUD operations for OrgGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgGrant records -const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdge` - -CRUD operations for OrgChartEdge records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | - -**Operations:** - -```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdgeGrant` - -CRUD operations for OrgChartEdgeGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefault` - -CRUD operations for OrgPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); - -// Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimit` - -CRUD operations for AppLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCredit` - -CRUD operations for AppLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCredit records -const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCodeItem` - -CRUD operations for AppLimitCreditCodeItem records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `defaultLimitId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCodeItem records -const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Create -const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditRedemption` - -CRUD operations for AppLimitCreditRedemption records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditRedemption records -const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Create -const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimit` - -CRUD operations for OrgLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitWarning` - -CRUD operations for OrgLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); -``` - -### `db.phoneNumber` - -CRUD operations for PhoneNumber records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAddress` - -CRUD operations for CryptoAddress records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnCredential` - -CRUD operations for WebauthnCredential records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `credentialId` | String | Yes | -| `publicKey` | Base64EncodedBinary | Yes | -| `signCount` | BigInt | Yes | -| `webauthnUserId` | String | Yes | -| `transports` | String | Yes | -| `credentialDeviceType` | String | Yes | -| `backupEligible` | Boolean | Yes | -| `backupState` | Boolean | Yes | -| `name` | String | Yes | -| `lastUsedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all webauthnCredential records -const items = await db.webauthnCredential.findMany({ select: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.webauthnCredential.findOne({ id: '', select: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.webauthnCredential.create({ data: { ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnCredential.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnCredential.delete({ where: { id: '' } }).execute(); -``` - -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgInvite` - -CRUD operations for OrgInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgClaimedInvite` - -CRUD operations for OrgClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.auditLogAuth` - -CRUD operations for AuditLogAuth records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | - -**Operations:** - -```typescript -// List all auditLogAuth records -const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); - -// Get one by id -const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); - -// Create -const created = await db.auditLogAuth.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); -``` - -### `db.identityProvider` - -CRUD operations for IdentityProvider records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | - -**Operations:** - -```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); - -// Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); - -// Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermissionDefault` - -CRUD operations for AppPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); - -// Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.roleType` - -CRUD operations for RoleType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); - -// Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); - -// Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); -``` - -### `db.migrateFile` - -CRUD operations for MigrateFile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | - -**Operations:** - -```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); - -// Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); - -// Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); -``` - -### `db.devicesModule` - -CRUD operations for DevicesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | - -**Operations:** - -```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); - -// Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); - -// Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembershipDefault` - -CRUD operations for AppMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | - -**Operations:** - -```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); - -// Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); - -// Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipDefault` - -CRUD operations for OrgMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.nodeTypeRegistry` - -CRUD operations for NodeTypeRegistry records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); - -// Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); - -// Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); - -// Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); - -// Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); -``` - -### `db.appLimitCapsDefault` - -CRUD operations for AppLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitCapsDefault records -const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCapsDefault` - -CRUD operations for OrgLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCap` - -CRUD operations for AppLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.userConnectedAccount` - -CRUD operations for UserConnectedAccount records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCode` - -CRUD operations for AppLimitCreditCode records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitWarning` - -CRUD operations for AppLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.pubkeySetting` - -CRUD operations for PubkeySetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `cryptoNetwork` | String | Yes | -| `userField` | String | Yes | -| `signUpWithKeyFunctionId` | UUID | Yes | -| `signInRequestChallengeFunctionId` | UUID | Yes | -| `signInRecordFailureFunctionId` | UUID | Yes | -| `signInWithChallengeFunctionId` | UUID | Yes | - -**Operations:** - -```typescript -// List all pubkeySetting records -const items = await db.pubkeySetting.findMany({ select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); - -// Get one by id -const item = await db.pubkeySetting.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); - -// Create -const created = await db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.rateLimitsModule` - -CRUD operations for RateLimitsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `rateLimitSettingsTableId` | UUID | Yes | -| `ipRateLimitsTableId` | UUID | Yes | -| `rateLimitsTableId` | UUID | Yes | -| `rateLimitSettingsTable` | String | Yes | -| `ipRateLimitsTable` | String | Yes | -| `rateLimitsTable` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitsModule records -const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); - -// Get one by id -const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); - -// Create -const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsSetting` - -CRUD operations for RlsSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `authenticateSchemaId` | UUID | Yes | -| `roleSchemaId` | UUID | Yes | -| `authenticateFunctionId` | UUID | Yes | -| `authenticateStrictFunctionId` | UUID | Yes | -| `currentRoleFunctionId` | UUID | Yes | -| `currentRoleIdFunctionId` | UUID | Yes | -| `currentUserAgentFunctionId` | UUID | Yes | -| `currentIpAddressFunctionId` | UUID | Yes | - -**Operations:** - -```typescript -// List all rlsSetting records -const items = await db.rlsSetting.findMany({ select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); - -// Get one by id -const item = await db.rlsSetting.findOne({ id: '', select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); - -// Create -const created = await db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsModule` - -CRUD operations for RlsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | - -**Operations:** - -```typescript -// List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); - -// Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); - -// Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.rateLimitMetersModule` - -CRUD operations for RateLimitMetersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `rateLimitStateTableId` | UUID | Yes | -| `rateLimitStateTableName` | String | Yes | -| `rateLimitOverridesTableId` | UUID | Yes | -| `rateLimitOverridesTableName` | String | Yes | -| `rateWindowLimitsTableId` | UUID | Yes | -| `rateWindowLimitsTableName` | String | Yes | -| `checkRateLimitFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.plansModule` - -CRUD operations for PlansModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all plansModule records -const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.sqlAction` - -CRUD operations for SqlAction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `deploy` | String | Yes | -| `deps` | String | Yes | -| `payload` | JSON | Yes | -| `content` | String | Yes | -| `revert` | String | Yes | -| `verify` | String | Yes | -| `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | - -**Operations:** - -```typescript -// List all sqlAction records -const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Get one by id -const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Create -const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseSetting` - -CRUD operations for DatabaseSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `enableBulk` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Create -const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipSetting` - -CRUD operations for OrgMembershipSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | - -**Operations:** - -```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); - -// Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` - -CRUD operations for OrgLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.user` - -CRUD operations for User records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `username` | String | Yes | -| `displayName` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchTsv` | FullText | Yes | -| `type` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `searchTsvRank` | Float | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all user records -const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); - -// Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); -``` - -> **Unified Search API fields:** `searchTsv` -> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. - -### `db.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. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `credentialsSchemaId` | UUID | Yes | -| `sessionsSchemaId` | UUID | Yes | -| `sessionSecretsSchemaId` | UUID | Yes | -| `credentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionSecretsTableId` | UUID | Yes | -| `userFieldId` | UUID | Yes | -| `rpId` | String | Yes | -| `rpName` | String | Yes | -| `originAllowlist` | String | Yes | -| `attestationType` | String | Yes | -| `requireUserVerification` | Boolean | Yes | -| `residentKey` | String | Yes | -| `challengeExpirySeconds` | BigInt | Yes | - -**Operations:** - -```typescript -// List all webauthnSetting records -const items = await db.webauthnSetting.findMany({ select: { 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 } }).execute(); - -// Get one by id -const item = await db.webauthnSetting.findOne({ id: '', select: { 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 } }).execute(); - -// Create -const created = await db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.billingModule` - -CRUD operations for BillingModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `metersTableId` | UUID | Yes | -| `metersTableName` | String | Yes | -| `planSubscriptionsTableId` | UUID | Yes | -| `planSubscriptionsTableName` | String | Yes | -| `ledgerTableId` | UUID | Yes | -| `ledgerTableName` | String | Yes | -| `balancesTableId` | UUID | Yes | -| `balancesTableName` | String | Yes | -| `meterCreditsTableId` | UUID | Yes | -| `meterCreditsTableName` | String | Yes | -| `meterSourcesTableId` | UUID | Yes | -| `meterSourcesTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.billingProviderModule` - -CRUD operations for BillingProviderModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `provider` | String | Yes | -| `productsTableId` | UUID | Yes | -| `pricesTableId` | UUID | Yes | -| `subscriptionsTableId` | UUID | Yes | -| `billingCustomersTableId` | UUID | Yes | -| `billingCustomersTableName` | String | Yes | -| `billingProductsTableId` | UUID | Yes | -| `billingProductsTableName` | String | Yes | -| `billingPricesTableId` | UUID | Yes | -| `billingPricesTableName` | String | Yes | -| `billingSubscriptionsTableId` | UUID | Yes | -| `billingSubscriptionsTableName` | String | Yes | -| `billingWebhookEventsTableId` | UUID | Yes | -| `billingWebhookEventsTableName` | String | Yes | -| `processBillingEventFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.hierarchyModule` - -CRUD operations for HierarchyModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `chartEdgesTableId` | UUID | Yes | -| `chartEdgesTableName` | String | Yes | -| `hierarchySprtTableId` | UUID | Yes | -| `hierarchySprtTableName` | String | Yes | -| `chartEdgeGrantsTableId` | UUID | Yes | -| `chartEdgeGrantsTableName` | String | Yes | -| `entityTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `privateSchemaName` | String | Yes | -| `sprtTableName` | String | Yes | -| `rebuildHierarchyFunction` | String | Yes | -| `getSubordinatesFunction` | String | Yes | -| `getManagersFunction` | String | Yes | -| `isManagerOfFunction` | String | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: 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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); - -// Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); -``` - -## Custom Operations - -### `db.query.currentUserId` - -currentUserId - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUserId().execute(); -``` - -### `db.query.currentUserAgent` - -currentUserAgent - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` - -### `db.query.currentIpAddress` - -currentIpAddress - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` - -### `db.query.requireStepUp` - -requireStepUp - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `stepUpType` | String | - -```typescript -const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); -``` - -### `db.query.appPermissionsGetPaddedMask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.orgPermissionsGetPaddedMask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.applyRegistryDefaults` - -applyRegistryDefaults - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `nodeType` | String | - | `data` | JSON | - -```typescript -const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); -``` - -### `db.query.resolveBlueprintField` - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableId` | UUID | - | `fieldName` | String | - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); -``` - -### `db.query.resolveBlueprintTable` - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableName` | String | - | `schemaName` | String | - | `tableMap` | JSON | - | `defaultSchemaId` | UUID | - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); -``` - -### `db.query.orgIsManagerOf` - -orgIsManagerOf - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `pEntityId` | UUID | - | `pManagerId` | UUID | - | `pUserId` | UUID | - | `pMaxDepth` | Int | - -```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); -``` - -### `db.query.appPermissionsGetMask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.appPermissionsGetMaskByNames` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMaskByNames` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appPermissionsGetByMask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.orgPermissionsGetByMask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.currentUser` - -currentUser - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUser().execute(); -``` - -### `db.mutation.sendAccountDeletionEmail` - -sendAccountDeletionEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` - -### `db.mutation.signOut` - -signOut - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignOutInput (required) | - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` - -### `db.mutation.acceptDatabaseTransfer` - -acceptDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AcceptDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.cancelDatabaseTransfer` - -cancelDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CancelDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.rejectDatabaseTransfer` - -rejectDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RejectDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.disconnectAccount` - -disconnectAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | DisconnectAccountInput (required) | - -```typescript -const result = await db.mutation.disconnectAccount({ input: { accountId: '' } }).execute(); -``` - -### `db.mutation.revokeApiKey` - -revokeApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeApiKeyInput (required) | - -```typescript -const result = await db.mutation.revokeApiKey({ input: { keyId: '' } }).execute(); -``` - -### `db.mutation.revokeSession` - -revokeSession - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeSessionInput (required) | - -```typescript -const result = await db.mutation.revokeSession({ input: { sessionId: '' } }).execute(); -``` - -### `db.mutation.verifyPassword` - -verifyPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyPasswordInput (required) | - -```typescript -const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); -``` - -### `db.mutation.verifyTotp` - -verifyTotp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyTotpInput (required) | - -```typescript -const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); -``` - -### `db.mutation.submitAppInviteCode` - -submitAppInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitAppInviteCodeInput (required) | - -```typescript -const result = await db.mutation.submitAppInviteCode({ input: { token: '' } }).execute(); -``` - -### `db.mutation.submitOrgInviteCode` - -submitOrgInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); -``` - -### `db.mutation.checkPassword` - -checkPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CheckPasswordInput (required) | - -```typescript -const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); -``` - -### `db.mutation.confirmDeleteAccount` - -confirmDeleteAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmDeleteAccountInput (required) | - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); -``` - -### `db.mutation.setPassword` - -setPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPasswordInput (required) | - -```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); -``` - -### `db.mutation.verifyEmail` - -verifyEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyEmailInput (required) | - -```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); -``` - -### `db.mutation.constructBlueprint` - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConstructBlueprintInput (required) | - -```typescript -const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); -``` - -### `db.mutation.provisionNewUser` - -provisionNewUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionNewUserInput (required) | - -```typescript -const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); -``` - -### `db.mutation.resetPassword` - -resetPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ResetPasswordInput (required) | - -```typescript -const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); -``` - -### `db.mutation.provisionCheckConstraint` - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionUniqueConstraint` - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionFullTextSearch` - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionIndex` - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.copyTemplateToBlueprint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CopyTemplateToBlueprintInput (required) | - -```typescript -const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); -``` - -### `db.mutation.provisionSpatialRelation` - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` - -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - -### `db.mutation.bootstrapUser` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` - -### `db.mutation.signUp` - -signUp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignUpInput (required) | - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` - -### `db.mutation.signIn` - -signIn - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInInput (required) | - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` - -### `db.mutation.provisionRelation` - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` - -### `db.mutation.setFieldOrder` - -setFieldOrder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetFieldOrderInput (required) | - -```typescript -const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); -``` - -### `db.mutation.applyRls` - -applyRls - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ApplyRlsInput (required) | - -```typescript -const result = await db.mutation.applyRls({ input: '' }).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.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) - -Returns the database_id UUID of the newly created database. - -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 - - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateUserDatabaseInput (required) | - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` - -### `db.mutation.extendTokenExpires` - -extendTokenExpires - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ExtendTokenExpiresInput (required) | - -```typescript -const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); -``` - -### `db.mutation.createApiKey` - -createApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateApiKeyInput (required) | - -```typescript -const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); -``` - -### `db.mutation.requestCrossOriginToken` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - -```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` - -### `db.mutation.provisionTable` - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionTableInput (required) | - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` - -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.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/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts deleted file mode 100644 index f490598d41..0000000000 --- a/sdk/constructive-react/src/public/orm/index.ts +++ /dev/null @@ -1,346 +0,0 @@ -/** - * 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 { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; -import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; -import { AppPermissionModel } from './models/appPermission'; -import { OrgPermissionModel } from './models/orgPermission'; -import { DatabaseModel } from './models/database'; -import { SchemaModel } from './models/schema'; -import { TableModel } from './models/table'; -import { CheckConstraintModel } from './models/checkConstraint'; -import { FieldModel } from './models/field'; -import { SpatialRelationModel } from './models/spatialRelation'; -import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; -import { FullTextSearchModel } from './models/fullTextSearch'; -import { IndexModel } from './models/index'; -import { PolicyModel } from './models/policy'; -import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; -import { TableGrantModel } from './models/tableGrant'; -import { TriggerModel } from './models/trigger'; -import { UniqueConstraintModel } from './models/uniqueConstraint'; -import { ViewModel } from './models/view'; -import { ViewTableModel } from './models/viewTable'; -import { ViewGrantModel } from './models/viewGrant'; -import { ViewRuleModel } from './models/viewRule'; -import { EmbeddingChunkModel } from './models/embeddingChunk'; -import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { RelationProvisionModel } from './models/relationProvision'; -import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; -import { RealtimeModuleModel } from './models/realtimeModule'; -import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; -import { SchemaGrantModel } from './models/schemaGrant'; -import { DefaultPrivilegeModel } from './models/defaultPrivilege'; -import { EnumModel } from './models/enum'; -import { FunctionModel } from './models/function'; -import { ApiSchemaModel } from './models/apiSchema'; -import { ApiModuleModel } from './models/apiModule'; -import { DomainModel } from './models/domain'; -import { SiteMetadatumModel } from './models/siteMetadatum'; -import { SiteModuleModel } from './models/siteModule'; -import { SiteThemeModel } from './models/siteTheme'; -import { CorsSettingModel } from './models/corsSetting'; -import { MerkleStoreModuleModel } from './models/merkleStoreModule'; -import { GraphModuleModel } from './models/graphModule'; -import { TriggerFunctionModel } from './models/triggerFunction'; -import { PartitionModel } from './models/partition'; -import { DatabaseTransferModel } from './models/databaseTransfer'; -import { ApiModel } from './models/api'; -import { SiteModel } from './models/site'; -import { AppModel } from './models/app'; -import { ApiSettingModel } from './models/apiSetting'; -import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; -import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; -import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; -import { DefaultIdsModuleModel } from './models/defaultIdsModule'; -import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; -import { EmailsModuleModel } from './models/emailsModule'; -import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; -import { InvitesModuleModel } from './models/invitesModule'; -import { EventsModuleModel } from './models/eventsModule'; -import { LimitsModuleModel } from './models/limitsModule'; -import { MembershipTypesModuleModel } from './models/membershipTypesModule'; -import { MembershipsModuleModel } from './models/membershipsModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; -import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; -import { ProfilesModuleModel } from './models/profilesModule'; -import { UserStateModuleModel } from './models/userStateModule'; -import { SessionsModuleModel } from './models/sessionsModule'; -import { UserAuthModuleModel } from './models/userAuthModule'; -import { UsersModuleModel } from './models/usersModule'; -import { BlueprintModel } from './models/blueprint'; -import { BlueprintTemplateModel } from './models/blueprintTemplate'; -import { BlueprintConstructionModel } from './models/blueprintConstruction'; -import { StorageModuleModel } from './models/storageModule'; -import { EntityTypeProvisionModel } from './models/entityTypeProvision'; -import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; -import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; -import { NotificationsModuleModel } from './models/notificationsModule'; -import { InferenceLogModuleModel } from './models/inferenceLogModule'; -import { ComputeLogModuleModel } from './models/computeLogModule'; -import { TransferLogModuleModel } from './models/transferLogModule'; -import { StorageLogModuleModel } from './models/storageLogModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; -import { AgentModuleModel } from './models/agentModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; -import { FunctionModuleModel } from './models/functionModule'; -import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { AppAdminGrantModel } from './models/appAdminGrant'; -import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppGrantModel } from './models/appGrant'; -import { OrgMembershipModel } from './models/orgMembership'; -import { OrgMemberModel } from './models/orgMember'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { AppLimitModel } from './models/appLimit'; -import { AppLimitCreditModel } from './models/appLimitCredit'; -import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; -import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; -import { OrgLimitModel } from './models/orgLimit'; -import { OrgLimitCreditModel } from './models/orgLimitCredit'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; -import { EmailModel } from './models/email'; -import { PhoneNumberModel } from './models/phoneNumber'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { WebauthnCredentialModel } from './models/webauthnCredential'; -import { AppInviteModel } from './models/appInvite'; -import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgInviteModel } from './models/orgInvite'; -import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AuditLogAuthModel } from './models/auditLogAuth'; -import { IdentityProviderModel } from './models/identityProvider'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { RoleTypeModel } from './models/roleType'; -import { MigrateFileModel } from './models/migrateFile'; -import { DevicesModuleModel } from './models/devicesModule'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; -import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; -import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { UserConnectedAccountModel } from './models/userConnectedAccount'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { AppLimitWarningModel } from './models/appLimitWarning'; -import { PubkeySettingModel } from './models/pubkeySetting'; -import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { MembershipTypeModel } from './models/membershipType'; -import { RlsSettingModel } from './models/rlsSetting'; -import { RlsModuleModel } from './models/rlsModule'; -import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; -import { PlansModuleModel } from './models/plansModule'; -import { SqlActionModel } from './models/sqlAction'; -import { DatabaseSettingModel } from './models/databaseSetting'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; -import { AppMembershipModel } from './models/appMembership'; -import { UserModel } from './models/user'; -import { AstMigrationModel } from './models/astMigration'; -import { WebauthnSettingModel } from './models/webauthnSetting'; -import { BillingModuleModel } from './models/billingModule'; -import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { HierarchyModuleModel } from './models/hierarchyModule'; -import { createQueryOperations } from './query'; -import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; -export * from './models'; -export { createQueryOperations } from './query'; -export { createMutationOperations } from './mutation'; -/** - * Create an ORM client instance - * - * @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 { - orgGetManagersRecord: new OrgGetManagersRecordModel(client), - orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), - appPermission: new AppPermissionModel(client), - orgPermission: new OrgPermissionModel(client), - database: new DatabaseModel(client), - schema: new SchemaModel(client), - table: new TableModel(client), - checkConstraint: new CheckConstraintModel(client), - field: new FieldModel(client), - spatialRelation: new SpatialRelationModel(client), - foreignKeyConstraint: new ForeignKeyConstraintModel(client), - fullTextSearch: new FullTextSearchModel(client), - index: new IndexModel(client), - policy: new PolicyModel(client), - primaryKeyConstraint: new PrimaryKeyConstraintModel(client), - tableGrant: new TableGrantModel(client), - trigger: new TriggerModel(client), - uniqueConstraint: new UniqueConstraintModel(client), - view: new ViewModel(client), - viewTable: new ViewTableModel(client), - viewGrant: new ViewGrantModel(client), - viewRule: new ViewRuleModel(client), - embeddingChunk: new EmbeddingChunkModel(client), - secureTableProvision: new SecureTableProvisionModel(client), - relationProvision: new RelationProvisionModel(client), - sessionSecretsModule: new SessionSecretsModuleModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), - realtimeModule: new RealtimeModuleModel(client), - configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), - schemaGrant: new SchemaGrantModel(client), - defaultPrivilege: new DefaultPrivilegeModel(client), - enum: new EnumModel(client), - function: new FunctionModel(client), - apiSchema: new ApiSchemaModel(client), - apiModule: new ApiModuleModel(client), - domain: new DomainModel(client), - siteMetadatum: new SiteMetadatumModel(client), - siteModule: new SiteModuleModel(client), - siteTheme: new SiteThemeModel(client), - corsSetting: new CorsSettingModel(client), - merkleStoreModule: new MerkleStoreModuleModel(client), - graphModule: new GraphModuleModel(client), - triggerFunction: new TriggerFunctionModel(client), - partition: new PartitionModel(client), - databaseTransfer: new DatabaseTransferModel(client), - api: new ApiModel(client), - site: new SiteModel(client), - app: new AppModel(client), - apiSetting: new ApiSettingModel(client), - connectedAccountsModule: new ConnectedAccountsModuleModel(client), - cryptoAddressesModule: new CryptoAddressesModuleModel(client), - cryptoAuthModule: new CryptoAuthModuleModel(client), - defaultIdsModule: new DefaultIdsModuleModel(client), - denormalizedTableField: new DenormalizedTableFieldModel(client), - emailsModule: new EmailsModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), - invitesModule: new InvitesModuleModel(client), - eventsModule: new EventsModuleModel(client), - limitsModule: new LimitsModuleModel(client), - membershipTypesModule: new MembershipTypesModuleModel(client), - membershipsModule: new MembershipsModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), - phoneNumbersModule: new PhoneNumbersModuleModel(client), - profilesModule: new ProfilesModuleModel(client), - userStateModule: new UserStateModuleModel(client), - sessionsModule: new SessionsModuleModel(client), - userAuthModule: new UserAuthModuleModel(client), - usersModule: new UsersModuleModel(client), - blueprint: new BlueprintModel(client), - blueprintTemplate: new BlueprintTemplateModel(client), - blueprintConstruction: new BlueprintConstructionModel(client), - storageModule: new StorageModuleModel(client), - entityTypeProvision: new EntityTypeProvisionModel(client), - webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), - webauthnAuthModule: new WebauthnAuthModuleModel(client), - notificationsModule: new NotificationsModuleModel(client), - inferenceLogModule: new InferenceLogModuleModel(client), - computeLogModule: new ComputeLogModuleModel(client), - transferLogModule: new TransferLogModuleModel(client), - storageLogModule: new StorageLogModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), - agentModule: new AgentModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), - functionModule: new FunctionModuleModel(client), - databaseProvisionModule: new DatabaseProvisionModuleModel(client), - appAdminGrant: new AppAdminGrantModel(client), - appOwnerGrant: new AppOwnerGrantModel(client), - appGrant: new AppGrantModel(client), - orgMembership: new OrgMembershipModel(client), - orgMember: new OrgMemberModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - orgMemberProfile: new OrgMemberProfileModel(client), - orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - appLimit: new AppLimitModel(client), - appLimitCredit: new AppLimitCreditModel(client), - appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), - appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), - orgLimit: new OrgLimitModel(client), - orgLimitCredit: new OrgLimitCreditModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), - email: new EmailModel(client), - phoneNumber: new PhoneNumberModel(client), - cryptoAddress: new CryptoAddressModel(client), - webauthnCredential: new WebauthnCredentialModel(client), - appInvite: new AppInviteModel(client), - appClaimedInvite: new AppClaimedInviteModel(client), - orgInvite: new OrgInviteModel(client), - orgClaimedInvite: new OrgClaimedInviteModel(client), - auditLogAuth: new AuditLogAuthModel(client), - identityProvider: new IdentityProviderModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), - roleType: new RoleTypeModel(client), - migrateFile: new MigrateFileModel(client), - devicesModule: new DevicesModuleModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), - nodeTypeRegistry: new NodeTypeRegistryModel(client), - appLimitCapsDefault: new AppLimitCapsDefaultModel(client), - orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - userConnectedAccount: new UserConnectedAccountModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - appLimitWarning: new AppLimitWarningModel(client), - pubkeySetting: new PubkeySettingModel(client), - rateLimitsModule: new RateLimitsModuleModel(client), - membershipType: new MembershipTypeModel(client), - rlsSetting: new RlsSettingModel(client), - rlsModule: new RlsModuleModel(client), - rateLimitMetersModule: new RateLimitMetersModuleModel(client), - plansModule: new PlansModuleModel(client), - sqlAction: new SqlActionModel(client), - databaseSetting: new DatabaseSettingModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), - appMembership: new AppMembershipModel(client), - user: new UserModel(client), - astMigration: new AstMigrationModel(client), - webauthnSetting: new WebauthnSettingModel(client), - billingModule: new BillingModuleModel(client), - billingProviderModule: new BillingProviderModuleModel(client), - hierarchyModule: new HierarchyModuleModel(client), - query: createQueryOperations(client), - mutation: createMutationOperations(client), - }; -} diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts deleted file mode 100644 index 0e9064f57b..0000000000 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ /dev/null @@ -1,42733 +0,0 @@ -/** - * GraphQL types for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -// ============ Scalar Filter Types ============ -export interface StringFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; - includes?: string; - notIncludes?: string; - includesInsensitive?: string; - notIncludesInsensitive?: string; - startsWith?: string; - notStartsWith?: string; - startsWithInsensitive?: string; - notStartsWithInsensitive?: string; - endsWith?: string; - notEndsWith?: string; - endsWithInsensitive?: string; - notEndsWithInsensitive?: string; - like?: string; - notLike?: string; - likeInsensitive?: string; - notLikeInsensitive?: string; -} -export interface IntFilter { - isNull?: boolean; - equalTo?: number; - notEqualTo?: number; - distinctFrom?: number; - notDistinctFrom?: number; - in?: number[]; - notIn?: number[]; - lessThan?: number; - lessThanOrEqualTo?: number; - greaterThan?: number; - greaterThanOrEqualTo?: number; -} -export interface FloatFilter { - isNull?: boolean; - equalTo?: number; - notEqualTo?: number; - distinctFrom?: number; - notDistinctFrom?: number; - in?: number[]; - notIn?: number[]; - lessThan?: number; - lessThanOrEqualTo?: number; - greaterThan?: number; - greaterThanOrEqualTo?: number; -} -export interface BooleanFilter { - isNull?: boolean; - equalTo?: boolean; - notEqualTo?: boolean; -} -export interface UUIDFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; -} -export interface DatetimeFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface DateFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface JSONFilter { - isNull?: boolean; - equalTo?: Record; - notEqualTo?: Record; - distinctFrom?: Record; - notDistinctFrom?: Record; - contains?: Record; - containedBy?: Record; - containsKey?: string; - containsAllKeys?: string[]; - containsAnyKeys?: string[]; -} -export interface BigIntFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface BigFloatFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface BitStringFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; -} -export interface InternetAddressFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; - contains?: string; - containsOrEqualTo?: string; - containedBy?: string; - containedByOrEqualTo?: string; - containsOrContainedBy?: string; -} -export interface FullTextFilter { - matches?: string; -} -export interface VectorFilter { - isNull?: boolean; - equalTo?: number[]; - notEqualTo?: number[]; - distinctFrom?: number[]; - notDistinctFrom?: number[]; -} -export interface StringListFilter { - isNull?: boolean; - equalTo?: string[]; - notEqualTo?: string[]; - distinctFrom?: string[]; - notDistinctFrom?: string[]; - lessThan?: string[]; - lessThanOrEqualTo?: string[]; - greaterThan?: string[]; - greaterThanOrEqualTo?: string[]; - contains?: string[]; - containedBy?: string[]; - overlaps?: string[]; - anyEqualTo?: string; - anyNotEqualTo?: string; - anyLessThan?: string; - anyLessThanOrEqualTo?: string; - anyGreaterThan?: string; - anyGreaterThanOrEqualTo?: string; -} -export interface IntListFilter { - isNull?: boolean; - equalTo?: number[]; - notEqualTo?: number[]; - distinctFrom?: number[]; - notDistinctFrom?: number[]; - lessThan?: number[]; - lessThanOrEqualTo?: number[]; - greaterThan?: number[]; - greaterThanOrEqualTo?: number[]; - contains?: number[]; - containedBy?: number[]; - overlaps?: number[]; - anyEqualTo?: number; - anyNotEqualTo?: number; - anyLessThan?: number; - anyLessThanOrEqualTo?: number; - anyGreaterThan?: number; - anyGreaterThanOrEqualTo?: number; -} -export interface UUIDListFilter { - isNull?: boolean; - equalTo?: string[]; - notEqualTo?: string[]; - distinctFrom?: string[]; - notDistinctFrom?: string[]; - lessThan?: string[]; - lessThanOrEqualTo?: string[]; - greaterThan?: string[]; - greaterThanOrEqualTo?: string[]; - contains?: string[]; - containedBy?: string[]; - overlaps?: string[]; - anyEqualTo?: string; - anyNotEqualTo?: string; - anyLessThan?: string; - anyLessThanOrEqualTo?: string; - anyGreaterThan?: string; - anyGreaterThanOrEqualTo?: string; -} -// ============ Enum Types ============ -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; -// ============ Custom Scalar Types ============ -export type Base64EncodedBinary = unknown; -export type ConstructiveInternalTypeAttachment = unknown; -export type ConstructiveInternalTypeEmail = unknown; -export type ConstructiveInternalTypeHostname = unknown; -export type ConstructiveInternalTypeImage = unknown; -export type ConstructiveInternalTypeOrigin = unknown; -export type ConstructiveInternalTypeUpload = unknown; -export type ConstructiveInternalTypeUrl = unknown; -// ============ Entity Types ============ -export interface OrgGetManagersRecord { - userId?: string | null; - depth?: number | null; -} -export interface OrgGetSubordinatesRecord { - userId?: string | null; - depth?: number | null; -} -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppPermission { - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; -} -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgPermission { - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; -} -export interface Database { - id: string; - ownerId?: string | null; - schemaHash?: string | null; - name?: string | null; - label?: string | null; - hash?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Schema { - id: string; - databaseId?: string | null; - name?: string | null; - schemaName?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - isPublic?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Table { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - useRls?: boolean | null; - timestamps?: boolean | null; - peoplestamps?: boolean | null; - pluralName?: string | null; - singularName?: string | null; - tags?: string[] | null; - partitioned?: boolean | null; - partitionStrategy?: string | null; - partitionKeyNames?: string[] | null; - partitionKeyTypes?: string[] | null; - inheritsId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface CheckConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - expr?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Field { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - defaultValue?: Record | null; - type?: Record | null; - fieldOrder?: number | null; - regexp?: string | null; - chk?: Record | null; - chkExpr?: Record | null; - min?: number | null; - max?: number | null; - tags?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface SpatialRelation { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - refTableId?: string | null; - refFieldId?: string | null; - name?: string | null; - operator?: string | null; - paramName?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface ForeignKeyConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - refTableId?: string | null; - refFieldIds?: string[] | null; - deleteAction?: string | null; - updateAction?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface FullTextSearch { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - fieldIds?: string[] | null; - weights?: string[] | null; - langs?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Index { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - fieldIds?: string[] | null; - includeFieldIds?: string[] | null; - accessMethod?: string | null; - indexParams?: Record | null; - whereClause?: Record | null; - isUnique?: boolean | null; - options?: Record | null; - opClasses?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Policy { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - granteeName?: string | null; - privilege?: string | null; - permissive?: boolean | null; - disabled?: boolean | null; - policyType?: string | null; - data?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface PrimaryKeyConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface TableGrant { - id: string; - databaseId?: string | null; - tableId?: string | null; - privilege?: string | null; - granteeName?: string | null; - fieldIds?: string[] | null; - isGrant?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Trigger { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - event?: string | null; - functionName?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface UniqueConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface View { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - tableId?: string | null; - viewType?: string | null; - data?: Record | null; - filterType?: string | null; - filterData?: Record | null; - securityInvoker?: boolean | null; - isReadOnly?: boolean | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -/** Junction table linking views to their joined tables for referential integrity */ -export interface ViewTable { - id: string; - viewId?: string | null; - tableId?: string | null; - joinOrder?: number | null; -} -export interface ViewGrant { - id: string; - databaseId?: string | null; - viewId?: string | null; - granteeName?: string | null; - privilege?: string | null; - withGrantOption?: boolean | null; - isGrant?: boolean | null; -} -/** DO INSTEAD rules for views (e.g., read-only enforcement) */ -export interface ViewRule { - id: string; - databaseId?: string | null; - viewId?: string | null; - name?: string | null; - /** INSERT, UPDATE, or DELETE */ - event?: string | null; - /** NOTHING (for read-only) or custom action */ - action?: string | null; -} -export interface EmbeddingChunk { - id: string; - databaseId?: string | null; - tableId?: string | null; - embeddingFieldId?: string | null; - chunksTableId?: string | null; - chunksTableName?: string | null; - contentFieldName?: string | null; - dimensions?: number | null; - metric?: string | null; - chunkSize?: number | null; - chunkOverlap?: number | null; - chunkStrategy?: string | null; - metadataFields?: Record | null; - searchIndexes?: Record | null; - enqueueChunkingJob?: boolean | null; - chunkingTaskName?: string | null; - embeddingModel?: string | null; - embeddingProvider?: string | null; - parentFkFieldId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ -export interface SecureTableProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database this provision belongs to. Required. */ - databaseId?: string | null; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string | null; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string | null; - /** 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 | null; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: Record | null; - /** 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 | null; - /** 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?: Record[] | null; - /** 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?: Record | null; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: Record | null; - /** 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; -} -/** - * 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. */ - databaseId?: string | null; - /** - * 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 | null; - /** - * 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?: string | null; - /** - * 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?: string | null; - /** - * 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 | null; - /** 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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?: string | null; - /** 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 | null; - /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ - junctionSchemaId?: string | null; - /** 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 | null; - /** 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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?: Record | null; - /** 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?: Record | null; - /** - * 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?: Record | null; - /** 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?: string | null; - /** 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?: string | null; - /** 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?: string | null; - /** 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; -} -/** 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; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - /** 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 identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. */ -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; - tableId?: string | null; - tableName?: 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; -} -/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ -export interface ConfigSecretsOrgModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface SchemaGrant { - id: string; - databaseId?: string | null; - schemaId?: string | null; - granteeName?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface DefaultPrivilege { - id: string; - databaseId?: string | null; - schemaId?: string | null; - objectType?: string | null; - privilege?: string | null; - granteeName?: string | null; - isGrant?: boolean | null; -} -export interface Enum { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - values?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface Function { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; -} -/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ -export interface ApiSchema { - /** Unique identifier for this API-schema mapping */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Metaschema schema being exposed through the API */ - schemaId?: string | null; - /** API that exposes this schema */ - apiId?: string | null; -} -/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ -export interface ApiModule { - /** Unique identifier for this API module record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** API this module configuration belongs to */ - apiId?: string | null; - /** Module name (e.g. auth, uploads, webhooks) */ - name?: string | null; - /** JSON configuration data for this module */ - data?: Record | null; -} -/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ -export interface Domain { - /** Unique identifier for this domain record */ - id: string; - /** Reference to the metaschema database this domain belongs to */ - databaseId?: string | null; - /** API endpoint this domain routes to (mutually exclusive with site_id) */ - apiId?: string | null; - /** Site this domain routes to (mutually exclusive with api_id) */ - siteId?: string | null; - /** Subdomain portion of the hostname */ - subdomain?: ConstructiveInternalTypeHostname | null; - /** Root domain of the hostname */ - domain?: ConstructiveInternalTypeHostname | null; -} -/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ -export interface SiteMetadatum { - /** Unique identifier for this metadata record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this metadata belongs to */ - siteId?: string | null; - /** Page title for SEO (max 120 characters) */ - title?: string | null; - /** Meta description for SEO and social sharing (max 120 characters) */ - description?: string | null; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage | null; -} -/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ -export interface SiteModule { - /** Unique identifier for this site module record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this module configuration belongs to */ - siteId?: string | null; - /** Module name (e.g. user_auth_module, analytics) */ - name?: string | null; - /** JSON configuration data for this module */ - data?: Record | null; -} -/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ -export interface SiteTheme { - /** Unique identifier for this theme record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this theme belongs to */ - siteId?: string | null; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme?: Record | null; -} -/** Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries */ -export interface CorsSetting { - /** Unique identifier for this CORS settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Optional API for per-API override; NULL means database-wide default */ - apiId?: string | null; - /** Array of allowed CORS origins (e.g. https://example.com) */ - allowedOrigins?: string[] | null; -} -export interface MerkleStoreModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - createdAt?: string | null; -} -export interface GraphModule { - id: string; - databaseId?: string | null; - publicSchemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - prefix?: string | null; - merkleStoreModuleId?: string | null; - graphsTableId?: string | null; - executionsTableId?: string | null; - outputsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - createdAt?: string | null; -} -export interface TriggerFunction { - id: string; - databaseId?: string | null; - name?: string | null; - code?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Partition { - id: string; - databaseId?: string | null; - tableId?: string | null; - strategy?: string | null; - partitionKeyId?: string | null; - interval?: string | null; - retention?: string | null; - retentionKeepTable?: boolean | null; - premake?: number | null; - namingPattern?: string | null; - isParented?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface DatabaseTransfer { - id: string; - databaseId?: string | null; - targetOwnerId?: string | null; - sourceApproved?: boolean | null; - targetApproved?: boolean | null; - sourceApprovedAt?: string | null; - targetApprovedAt?: string | null; - status?: string | null; - initiatedBy?: string | null; - notes?: string | null; - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - completedAt?: string | null; -} -/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ -export interface Api { - /** Unique identifier for this API */ - id: string; - /** Reference to the metaschema database this API serves */ - databaseId?: string | null; - /** Unique name for this API within its database */ - name?: string | null; - /** PostgreSQL database name to connect to */ - dbname?: string | null; - /** PostgreSQL role used for authenticated requests */ - roleName?: string | null; - /** PostgreSQL role used for anonymous/unauthenticated requests */ - anonRole?: string | null; - /** Whether this API is publicly accessible without authentication */ - isPublic?: boolean | null; -} -/** Top-level site configuration: branding assets, title, and description for a deployed application */ -export interface Site { - /** Unique identifier for this site */ - id: string; - /** Reference to the metaschema database this site belongs to */ - databaseId?: string | null; - /** Display title for the site (max 120 characters) */ - title?: string | null; - /** Short description of the site (max 120 characters) */ - description?: string | null; - /** Open Graph image used for social media link previews */ - ogImage?: ConstructiveInternalTypeImage | null; - /** Browser favicon attachment */ - favicon?: ConstructiveInternalTypeAttachment | null; - /** Apple touch icon for iOS home screen bookmarks */ - appleTouchIcon?: ConstructiveInternalTypeImage | null; - /** Primary logo image for the site */ - logo?: ConstructiveInternalTypeImage | null; - /** PostgreSQL database name this site connects to */ - dbname?: string | null; -} -/** Mobile and native app configuration linked to a site, including store links and identifiers */ -export interface App { - /** Unique identifier for this app */ - id: string; - /** Reference to the metaschema database this app belongs to */ - databaseId?: string | null; - /** Site this app is associated with (one app per site) */ - siteId?: string | null; - /** Display name of the app */ - name?: string | null; - /** App icon or promotional image */ - appImage?: ConstructiveInternalTypeImage | null; - /** URL to the Apple App Store listing */ - appStoreLink?: ConstructiveInternalTypeUrl | null; - /** Apple App Store application identifier */ - appStoreId?: string | null; - /** Apple App ID prefix (Team ID) for universal links and associated domains */ - appIdPrefix?: string | null; - /** URL to the Google Play Store listing */ - playStoreLink?: ConstructiveInternalTypeUrl | null; -} -/** Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default */ -export interface ApiSetting { - /** Unique identifier for this API settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** API these settings override for */ - apiId?: string | null; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ - enableAggregates?: boolean | null; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ - enablePostgis?: boolean | null; - /** Override: enable unified search (NULL = inherit from database_settings) */ - enableSearch?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ - enablePresignedUploads?: boolean | null; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ - enableManyToMany?: boolean | null; - /** Override: enable connection filter (NULL = inherit from database_settings) */ - enableConnectionFilter?: boolean | null; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ - enableLtree?: boolean | null; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ - enableLlm?: boolean | null; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ - enableRealtime?: boolean | null; - /** Override: enable bulk mutations (NULL = inherit from database_settings) */ - enableBulk?: boolean | null; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ - options?: Record | null; -} -export interface ConnectedAccountsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface CryptoAddressesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; - cryptoNetwork?: string | null; -} -export interface CryptoAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - addressesTableId?: string | null; - userField?: string | null; - cryptoNetwork?: string | null; - signInRequestChallenge?: string | null; - signInRecordFailure?: string | null; - signUpWithKey?: string | null; - signInWithChallenge?: string | null; -} -export interface DefaultIdsModule { - id: string; - databaseId?: string | null; -} -export interface DenormalizedTableField { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} -export interface EmailsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface ConfigSecretsUserModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - configDefinitionsTableId?: string | null; -} -export interface InvitesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; -} -export interface EventsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface LimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - limitIncrementFunction?: string | null; - limitDecrementFunction?: string | null; - limitIncrementTrigger?: string | null; - limitDecrementTrigger?: string | null; - limitUpdateTrigger?: string | null; - limitCheckFunction?: string | null; - limitCreditsTableId?: string | null; - eventsTableId?: string | null; - creditCodesTableId?: string | null; - creditCodeItemsTableId?: string | null; - creditRedemptionsTableId?: string | null; - aggregateTableId?: string | null; - limitCapsTableId?: string | null; - limitCapsDefaultsTableId?: string | null; - capCheckTrigger?: string | null; - resolveCapFunction?: string | null; - limitWarningsTableId?: string | null; - limitWarningStateTableId?: string | null; - limitCheckSoftFunction?: string | null; - limitAggregateCheckSoftFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface MembershipTypesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface MembershipsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - prefix?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; -} -export interface PermissionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - prefix?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; -} -export interface PhoneNumbersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface ProfilesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - prefix?: string | null; -} -export interface UserStateModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface SessionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - authSettingsTableId?: string | null; - usersTableId?: string | null; - sessionsDefaultExpiration?: string | null; - sessionsTable?: string | null; - sessionCredentialsTable?: string | null; - authSettingsTable?: string | null; -} -export interface UserAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - encryptedTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - auditsTableName?: string | null; - signInFunction?: string | null; - signUpFunction?: string | null; - signOutFunction?: string | null; - setPasswordFunction?: string | null; - resetPasswordFunction?: string | null; - forgotPasswordFunction?: string | null; - sendVerificationEmailFunction?: string | null; - verifyEmailFunction?: string | null; - verifyPasswordFunction?: string | null; - checkPasswordFunction?: string | null; - sendAccountDeletionEmailFunction?: string | null; - deleteAccountFunction?: string | null; - signInCrossOriginFunction?: string | null; - requestCrossOriginTokenFunction?: string | null; - extendTokenExpires?: string | null; -} -export interface UsersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - typeTableId?: string | null; - typeTableName?: string | null; -} -/** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ -export interface Blueprint { - /** Unique identifier for this blueprint. */ - id: string; - /** The user who owns this blueprint. */ - ownerId?: string | null; - /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ - databaseId?: string | null; - /** Machine-readable name for the blueprint. Must be unique per database. */ - name?: string | null; - /** Human-readable display name for the blueprint. */ - displayName?: string | null; - /** Optional description of the blueprint. */ - description?: string | null; - /** 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?: Record | null; - /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ - templateId?: string | null; - /** 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 | null; - /** 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?: Record | null; - /** Timestamp when this blueprint was created. */ - createdAt?: string | null; - /** Timestamp when this blueprint was last modified. */ - updatedAt?: string | null; -} -/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ -export interface BlueprintTemplate { - /** Unique identifier for this template. */ - id: string; - /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ - name?: string | null; - /** Semantic version string. Defaults to 1.0.0. */ - version?: string | null; - /** Human-readable display name for the template (e.g. E-Commerce Basic). */ - displayName?: string | null; - /** Optional description of what the template provisions. */ - description?: string | null; - /** The user who created or published this template. */ - ownerId?: string | null; - /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ - visibility?: string | null; - /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ - categories?: string[] | null; - /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ - tags?: string[] | null; - /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ - definition?: Record | null; - /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ - definitionSchemaVersion?: string | null; - /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ - source?: string | null; - /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ - complexity?: string | null; - /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ - copyCount?: number | null; - /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ - forkCount?: number | null; - /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ - forkedFromId?: string | null; - /** 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?: string | null; - /** 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?: Record | null; - /** Timestamp when this template was created. */ - createdAt?: string | null; - /** Timestamp when this template was last modified. */ - updatedAt?: string | null; -} -/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ -export interface BlueprintConstruction { - /** Unique identifier for this construction attempt. */ - id: string; - /** The blueprint that was constructed. */ - blueprintId?: string | null; - /** The database the blueprint was constructed into. */ - databaseId?: string | null; - /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ - schemaId?: string | null; - /** 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 | null; - /** Error message from a failed construction attempt. NULL unless status is failed. */ - errorDetails?: string | null; - /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ - tableMap?: Record | null; - /** 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?: Record | null; - /** Timestamp when construction successfully completed. NULL until constructed. */ - constructedAt?: string | null; - /** Timestamp when this construction attempt was created. */ - createdAt?: string | null; - /** Timestamp when this construction attempt was last modified. */ - updatedAt?: string | null; -} -export interface StorageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - membershipType?: number | null; - key?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: string | null; - fileEventsTableId?: 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). - * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - * Set table_provision to a single jsonb object (using the same shape as provision_table() / - * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - * as an escape hatch to apply zero policies. - */ -export interface EntityTypeProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database to provision this entity type in. Required. */ - databaseId?: string | null; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name?: string | null; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ - prefix?: string | null; - /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ - description?: string | null; - /** - * Prefix of the parent entity type. The trigger resolves this to a membership_type integer - * by looking up memberships_module WHERE prefix = parent_entity. - * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - * (e.g. 'data_room' for a team_channel nested under data_room). - * The parent type must already be provisioned before this INSERT. - */ - parentEntity?: string | null; - /** - * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - * (e.g. prefix 'data_room' produces table 'data_rooms'). - * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - */ - tableName?: string | null; - /** - * Whether members of the parent entity can see child entities. Defaults to true. - * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - * When false: only direct members of the entity itself can see it (private entity mode). - * Controls whether the parent_member SELECT policy is created on the entity table. - * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - * skip_entity_policies=true, since no default policies are being applied in those cases. - */ - isVisible?: boolean | null; - /** - * Whether to apply limits_module security for this type. Defaults to false. - * The limits_module table structure is always created (memberships_module requires it), - * but when false, no RLS policies are applied to the limits tables. - * Set to true if this entity type needs configurable resource limits per membership. - */ - hasLimits?: boolean | null; - /** - * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. - */ - hasProfiles?: boolean | null; - /** - * Whether to provision events_module for this type. Defaults to false. - * Levels provide gamification/achievement tracking for members. - * When true, creates level steps, achievements, and level tables with security. - */ - hasLevels?: boolean | null; - /** - * Whether to provision invites_module for this type. Defaults to false. - * When true, the trigger inserts a row into invites_module which in turn - * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - * repeated INSERTs safe. - */ - hasInvites?: boolean | null; - /** - * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - * When true, the trigger calls event_tracker() on the claimed_invites table with - * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - * crediting the SENDER (inviter) when someone claims their invite code. - * Developers can then define achievements in the blueprint achievements[] section - * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - */ - hasInviteAchievements?: boolean | null; - /** - * Optional JSON array of storage module definitions. Presence triggers provisioning - * (same inference model as namespaces, functions, agents). - * Each element provisions a separate storage module with its own tables - * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - * NULL = do not provision storage. '[{}]' = provision one default storage module. - * Each array element recognizes (all optional): - * - key (text) module discriminator, max 16 chars, lowercase snake_case. - * Defaults to 'default' (omitted from table names). - * Non-default keys become infixes: {prefix}_{key}_buckets. - * (storage_key accepted for backward compat) - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this module - * - allowed_origins (text[]) default CORS origins for all buckets in this module - * - restrict_reads (boolean) require read_files permission for SELECT on files - * - has_path_shares (boolean) enable virtual filesystem + path share policies - * - has_versioning (boolean) enable file version chains - * - has_content_hash (boolean) enable content hash for dedup - * - has_custom_keys (boolean) allow client-provided S3 keys - * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow - * - confirm_upload_delay (interval) delay before first confirmation attempt - * - buckets (jsonb[]) array of initial bucket definitions to seed. - * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - * Each value: { nodes, fields, grants, use_rls, policies }. - * Example (single module, backward compat): - * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - * Example (multi-module): - * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - */ - storage?: Record | null; - /** - * Optional JSON array of namespace module definitions. Presence triggers provisioning. - * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. - * Example: namespaces := '[{}]'::jsonb - */ - namespaces?: Record | null; - /** - * Optional JSON array of function module definitions. Presence triggers provisioning. - * NULL = do not provision functions. '[{}]' = provision one default function module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. - * Example: functions := '[{}]'::jsonb - */ - functions?: Record | null; - /** - * Optional JSON array of graph module definitions. Presence triggers provisioning. - * NULL = do not provision graphs. '[{}]' = provision one default graph module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. - * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned - * separately with the merkle store dependency resolved. - * Example: graphs := '[{}]'::jsonb - */ - graphs?: Record | null; - agents?: Record | null; - /** - * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - * Use this only when you want the entity table provisioned with zero policies (e.g. because you - * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - * false and either accepting the five defaults (table_provision=NULL) or overriding them via - * table_provision. - * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself - * - DELETE: owner of the entity can delete it - */ - skipEntityPolicies?: boolean | null; - /** - * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - * entries, so an entity table is configured the same way an ordinary blueprint table is. - * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - * table_provision.policies[] (is_visible becomes a no-op on this path). - * Recognized keys (all optional): - * - use_rls (boolean, default true) - * - nodes (jsonb array of {"$type","data"} Data* module entries) - * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - * - grants (jsonb array of grant objects; each with roles[] and privileges[]) - * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - * against the newly created entity table. - * Example — override with two SELECT policies: - * table_provision := jsonb_build_object( - * 'policies', jsonb_build_array( - * jsonb_build_object( - * '$type', 'AuthzEntityMembership', - * 'privileges', jsonb_build_array('select'), - * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - * 'name', 'self_member' - * ), - * jsonb_build_object( - * '$type', 'AuthzDirectOwner', - * 'privileges', jsonb_build_array('select', 'update'), - * 'data', jsonb_build_object('owner_field', 'owner_id') - * ) - * ) - * ) - */ - tableProvision?: Record | null; - /** - * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - * This is the ID used in entity_types, memberships_module, and all module tables. - */ - outMembershipType?: number | null; - /** - * Output: the UUID of the created entity table. Populated by the trigger. - * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - */ - outEntityTableId?: string | null; - /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ - outEntityTableName?: string | null; - /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - * Populated by the trigger. Useful for verifying which modules were provisioned. - */ - outInstalledModules?: string[] | null; - /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ - outStorageModuleId?: string | null; - /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ - outBucketsTableId?: string | null; - /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - /** - * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - * (i.e. the invites_module row was created in a previous run). - */ - outInvitesModuleId?: string | null; - /** - * Output: the UUID of the namespace_module row created (or found) for this entity type. - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceModuleId?: string | null; - /** - * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespacesTableId?: string | null; - /** - * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -/** 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. */ -export interface WebauthnCredentialsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface WebauthnAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - authSettingsTableId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpiry?: string | null; -} -export interface NotificationsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; -} -export interface InferenceLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface ComputeLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface TransferLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface StorageLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface DbUsageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; -} -export interface AgentModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - threadTableId?: string | null; - messageTableId?: string | null; - taskTableId?: string | null; - promptsTableId?: string | null; - knowledgeTableId?: string | null; - threadTableName?: string | null; - messageTableName?: string | null; - taskTableName?: string | null; - promptsTableName?: string | null; - knowledgeTableName?: string | null; - hasKnowledge?: boolean | null; - apiName?: string | null; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - knowledgeConfig?: Record | null; - knowledgePolicies?: Record | null; - provisions?: Record | null; -} -export interface NamespaceModule { - id: string; - 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; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface FunctionModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - membershipType?: number | null; - prefix?: string | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | 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 | 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; - /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ - modules?: string[] | null; - /** Additional configuration options for provisioning */ - options?: Record | null; - /** 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; -} -/** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { - id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of individual permission grants and revocations for members via bitmask */ -export interface AppGrant { - id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} -/** Simplified view of active members in an entity, used for listing who belongs to an org or group */ -export interface OrgMember { - id: string; - /** Whether this member has admin privileges */ - isAdmin?: boolean | null; - /** References the user who is a member */ - actorId?: string | null; - /** References the entity (org or group) this member belongs to */ - entityId?: string | null; -} -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { - id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { - id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ -export interface OrgChartEdgeGrant { - id: string; - /** Organization this grant applies to */ - entityId?: string | null; - /** User ID of the subordinate being placed in the hierarchy */ - childId?: string | null; - /** User ID of the manager being assigned; NULL for top-level positions */ - parentId?: string | null; - /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ - grantorId?: string | null; - /** TRUE to add/update the edge, FALSE to remove it */ - isGrant?: boolean | null; - /** Job title or role name being assigned in this grant */ - positionTitle?: string | null; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number | null; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface AppLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Items within a credit code — each row grants credits for a specific limit definition */ -export interface AppLimitCreditCodeItem { - id: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string | null; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string | null; - /** Number of credits this item grants per redemption */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; -} -/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ -export interface AppLimitCreditRedemption { - id: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string | null; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - entityId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface OrgLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ -export interface OrgLimitAggregate { - id: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string | null; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string | null; - /** Current aggregate usage count for this entity and limit */ - num?: string | null; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; -} -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** User phone numbers with country code, verification, and primary-number management */ -export interface PhoneNumber { - id: string; - ownerId?: string | null; - /** Country calling code (e.g. +1, +44) */ - cc?: string | null; - /** The phone number without country code */ - number?: string | null; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean | null; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean | null; - /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ -export interface CryptoAddress { - id: string; - ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean | null; - /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. */ -export interface WebauthnCredential { - id: string; - ownerId?: string | null; - /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ - credentialId?: string | null; - /** COSE-encoded public key bytes from the authenticator attestation. */ - publicKey?: Base64EncodedBinary | null; - /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ - signCount?: string | null; - /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ - webauthnUserId?: string | null; - /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ - transports?: string[] | null; - /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ - credentialDeviceType?: string | null; - /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ - backupEligible?: boolean | null; - /** Current backup state; updated on each successful sign-in assertion. */ - backupState?: boolean | null; - /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ - name?: string | null; - /** Timestamp of the most recent successful sign-in assertion using this credential. */ - lastUsedAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface AppClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface OrgInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - entityId?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface OrgClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - entityId?: string | null; -} -/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLogAuth { - createdAt?: string | null; - /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ - id: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string | null; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string | null; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin | null; - /** Browser or client user-agent string from the request */ - userAgent?: string | null; - /** IP address of the client that initiated the auth event */ - ipAddress?: string | null; - /** Whether the authentication attempt succeeded */ - success?: boolean | null; -} -export interface IdentityProvider { - slug?: string | null; - kind?: string | null; - displayName?: string | null; - enabled?: boolean | null; - isBuiltIn?: boolean | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -export interface RoleType { - id: number; - name?: string | null; -} -export interface MigrateFile { - id: string; - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface DevicesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} -export interface NodeTypeRegistry { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} -/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ -export interface PubkeySetting { - /** Unique identifier for this pubkey settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string | null; - /** Field name used to identify the user in crypto auth functions */ - userField?: string | null; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string | null; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string | null; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string | null; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string | null; -} -export interface RateLimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; -} -/** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ -export interface RlsSetting { - /** Unique identifier for this RLS settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ - authenticateSchemaId?: string | null; - /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ - roleSchemaId?: string | null; - /** Reference to the authenticate function (FK to metaschema_public.function) */ - authenticateFunctionId?: string | null; - /** Reference to the strict authenticate function (FK to metaschema_public.function) */ - authenticateStrictFunctionId?: string | null; - /** Reference to the current_role function (FK to metaschema_public.function) */ - currentRoleFunctionId?: string | null; - /** Reference to the current_role_id function (FK to metaschema_public.function) */ - currentRoleIdFunctionId?: string | null; - /** Reference to the current_user_agent function (FK to metaschema_public.function) */ - currentUserAgentFunctionId?: string | null; - /** Reference to the current_ip_address function (FK to metaschema_public.function) */ - currentIpAddressFunctionId?: string | null; -} -export interface RlsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface PlansModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface SqlAction { - id: number; - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ -export interface DatabaseSetting { - /** Unique identifier for this settings record */ - id: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string | null; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean | null; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean | null; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean | null; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean | null; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean | null; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean | null; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean | null; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean | null; - /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ - enableBulk?: boolean | null; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: Record | null; -} -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ - entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - searchTsvRank?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -/** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ -export interface WebauthnSetting { - /** Unique identifier for this WebAuthn settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ - credentialsSchemaId?: string | null; - /** Schema of the sessions table (FK to metaschema_public.schema) */ - sessionsSchemaId?: string | null; - /** Schema of the session_secrets table (FK to metaschema_public.schema) */ - sessionSecretsSchemaId?: string | null; - /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ - credentialsTableId?: string | null; - /** Reference to the sessions table (FK to metaschema_public.table) */ - sessionsTableId?: string | null; - /** Reference to the session_credentials table (FK to metaschema_public.table) */ - sessionCredentialsTableId?: string | null; - /** Reference to the session_secrets table (FK to metaschema_public.table) */ - sessionSecretsTableId?: string | null; - /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ - userFieldId?: string | null; - /** WebAuthn Relying Party ID (typically the domain name) */ - rpId?: string | null; - /** WebAuthn Relying Party display name */ - rpName?: string | null; - /** Allowed origins for WebAuthn registration and authentication */ - originAllowlist?: string[] | null; - /** Attestation conveyance preference (none, indirect, direct, enterprise) */ - attestationType?: string | null; - /** Whether to require user verification (biometric/PIN) during auth */ - requireUserVerification?: boolean | null; - /** Resident key requirement (discouraged, preferred, required) */ - residentKey?: string | null; - /** Challenge TTL in seconds (default 300 = 5 minutes) */ - challengeExpirySeconds?: string | null; -} -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface BillingProviderModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; -} -export interface HierarchyModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; - createdAt?: 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 OrgGetManagersRecordRelations {} -export interface OrgGetSubordinatesRecordRelations {} -export interface AppPermissionRelations {} -export interface OrgPermissionRelations {} -export interface DatabaseRelations { - owner?: User | null; - databaseSetting?: DatabaseSetting | null; - rlsSetting?: RlsSetting | null; - pubkeySetting?: PubkeySetting | null; - webauthnSetting?: WebauthnSetting | null; - rlsModule?: RlsModule | null; - hierarchyModule?: HierarchyModule | null; - rateLimitsModule?: RateLimitsModule | null; - devicesModule?: DevicesModule | null; - plansModule?: PlansModule | null; - billingModule?: BillingModule | null; - billingProviderModule?: BillingProviderModule | null; - rateLimitMetersModule?: RateLimitMetersModule | null; - schemas?: ConnectionResult; - tables?: ConnectionResult
; - checkConstraints?: ConnectionResult; - fields?: ConnectionResult; - foreignKeyConstraints?: ConnectionResult; - fullTextSearches?: ConnectionResult; - indices?: ConnectionResult; - policies?: ConnectionResult; - primaryKeyConstraints?: ConnectionResult; - schemaGrants?: ConnectionResult; - tableGrants?: ConnectionResult; - triggerFunctions?: ConnectionResult; - triggers?: ConnectionResult; - uniqueConstraints?: ConnectionResult; - views?: ConnectionResult; - viewGrants?: ConnectionResult; - viewRules?: ConnectionResult; - defaultPrivileges?: ConnectionResult; - enums?: ConnectionResult; - embeddingChunks?: ConnectionResult; - spatialRelations?: ConnectionResult; - functions?: ConnectionResult; - partitions?: ConnectionResult; - databaseTransfers?: ConnectionResult; - apis?: ConnectionResult; - apiModules?: ConnectionResult; - apiSchemas?: ConnectionResult; - sites?: ConnectionResult; - apps?: ConnectionResult; - domains?: ConnectionResult; - siteMetadata?: ConnectionResult; - siteModules?: ConnectionResult; - siteThemes?: ConnectionResult; - apiSettings?: ConnectionResult; - corsSettings?: ConnectionResult; - connectedAccountsModules?: ConnectionResult; - cryptoAddressesModules?: ConnectionResult; - cryptoAuthModules?: ConnectionResult; - defaultIdsModules?: ConnectionResult; - denormalizedTableFields?: ConnectionResult; - emailsModules?: ConnectionResult; - configSecretsUserModules?: ConnectionResult; - invitesModules?: ConnectionResult; - eventsModules?: ConnectionResult; - limitsModules?: ConnectionResult; - membershipTypesModules?: ConnectionResult; - membershipsModules?: ConnectionResult; - permissionsModules?: ConnectionResult; - phoneNumbersModules?: ConnectionResult; - profilesModules?: ConnectionResult; - userStateModules?: ConnectionResult; - sessionsModules?: ConnectionResult; - userAuthModules?: ConnectionResult; - usersModules?: ConnectionResult; - secureTableProvisions?: ConnectionResult; - relationProvisions?: ConnectionResult; - blueprints?: ConnectionResult; - blueprintConstructions?: ConnectionResult; - storageModules?: ConnectionResult; - entityTypeProvisions?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - webauthnCredentialsModules?: ConnectionResult; - webauthnAuthModules?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - notificationsModules?: ConnectionResult; - realtimeModules?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; - inferenceLogModules?: ConnectionResult; - computeLogModules?: ConnectionResult; - transferLogModules?: ConnectionResult; - storageLogModules?: ConnectionResult; - dbUsageModules?: ConnectionResult; - agentModules?: ConnectionResult; - merkleStoreModules?: ConnectionResult; - graphModules?: ConnectionResult; - namespaceModules?: ConnectionResult; - functionModules?: ConnectionResult; - databaseProvisionModules?: ConnectionResult; -} -export interface SchemaRelations { - database?: Database | null; - tables?: ConnectionResult
; - schemaGrants?: ConnectionResult; - views?: ConnectionResult; - defaultPrivileges?: ConnectionResult; - enums?: ConnectionResult; - functions?: ConnectionResult; - apiSchemas?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - identityProvidersModulesByPrivateSchemaId?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - realtimeModulesByPrivateSchemaId?: ConnectionResult; - realtimeModules?: ConnectionResult; - realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; - merkleStoreModulesByPrivateSchemaId?: ConnectionResult; -} -export interface TableRelations { - database?: Database | null; - schema?: Schema | null; - inherits?: Table | null; - partition?: Partition | null; - checkConstraints?: ConnectionResult; - fields?: ConnectionResult; - foreignKeyConstraints?: ConnectionResult; - fullTextSearches?: ConnectionResult; - indices?: ConnectionResult; - policies?: ConnectionResult; - primaryKeyConstraints?: ConnectionResult; - tableGrants?: ConnectionResult; - triggers?: ConnectionResult; - uniqueConstraints?: ConnectionResult; - views?: ConnectionResult; - viewTables?: ConnectionResult; - embeddingChunksByChunksTableId?: ConnectionResult; - embeddingChunks?: ConnectionResult; - spatialRelationsByRefTableId?: ConnectionResult; - spatialRelations?: ConnectionResult; - secureTableProvisions?: ConnectionResult; - relationProvisionsBySourceTableId?: ConnectionResult; - relationProvisionsByTargetTableId?: ConnectionResult; - sessionSecretsModulesBySessionsTableId?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - realtimeModulesByChangeLogTableId?: ConnectionResult; - realtimeModulesByListenerNodeTableId?: ConnectionResult; - realtimeModulesBySourceRegistryTableId?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; -} -export interface CheckConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface FieldRelations { - database?: Database | null; - table?: Table | null; - spatialRelations?: ConnectionResult; - spatialRelationsByRefFieldId?: ConnectionResult; -} -export interface SpatialRelationRelations { - database?: Database | null; - field?: Field | null; - refField?: Field | null; - refTable?: Table | null; - table?: Table | null; -} -export interface ForeignKeyConstraintRelations { - database?: Database | null; - refTable?: Table | null; - table?: Table | null; -} -export interface FullTextSearchRelations { - database?: Database | null; - table?: Table | null; -} -export interface IndexRelations { - database?: Database | null; - table?: Table | null; -} -export interface PolicyRelations { - database?: Database | null; - table?: Table | null; -} -export interface PrimaryKeyConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface TableGrantRelations { - database?: Database | null; - table?: Table | null; -} -export interface TriggerRelations { - database?: Database | null; - table?: Table | null; -} -export interface UniqueConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface ViewRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; - viewTables?: ConnectionResult; - viewGrants?: ConnectionResult; - viewRules?: ConnectionResult; -} -export interface ViewTableRelations { - table?: Table | null; - view?: View | null; -} -export interface ViewGrantRelations { - database?: Database | null; - view?: View | null; -} -export interface ViewRuleRelations { - database?: Database | null; - view?: View | null; -} -export interface EmbeddingChunkRelations { - chunksTable?: Table | null; - database?: Database | null; - embeddingField?: Field | null; - parentFkField?: Field | null; - table?: Table | null; -} -export interface SecureTableProvisionRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface RelationProvisionRelations { - database?: Database | null; - sourceTable?: Table | null; - targetTable?: Table | null; -} -export interface SessionSecretsModuleRelations { - database?: Database | null; - schema?: Schema | null; - sessionsTable?: Table | null; - table?: Table | null; -} -export interface IdentityProvidersModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface RealtimeModuleRelations { - changeLogTable?: Table | null; - database?: Database | null; - listenerNodeTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sourceRegistryTable?: Table | null; - subscriptionsSchema?: Schema | null; -} -export interface ConfigSecretsOrgModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface SchemaGrantRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface DefaultPrivilegeRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface EnumRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface FunctionRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface ApiSchemaRelations { - api?: Api | null; - database?: Database | null; - schema?: Schema | null; -} -export interface ApiModuleRelations { - api?: Api | null; - database?: Database | null; -} -export interface DomainRelations { - api?: Api | null; - database?: Database | null; - site?: Site | null; -} -export interface SiteMetadatumRelations { - database?: Database | null; - site?: Site | null; -} -export interface SiteModuleRelations { - database?: Database | null; - site?: Site | null; -} -export interface SiteThemeRelations { - database?: Database | null; - site?: Site | null; -} -export interface CorsSettingRelations { - api?: Api | null; - database?: Database | null; -} -export interface MerkleStoreModuleRelations { - commitTable?: Table | null; - database?: Database | null; - objectTable?: Table | null; - privateSchema?: Schema | null; - refTable?: Table | null; - schema?: Schema | null; - storeTable?: Table | null; - graphModules?: ConnectionResult; -} -export interface GraphModuleRelations { - database?: Database | null; - executionsTable?: Table | null; - entityTable?: Table | null; - graphsTable?: Table | null; - merkleStoreModule?: MerkleStoreModule | null; - outputsTable?: Table | null; - privateSchema?: Schema | null; - publicSchema?: Schema | null; -} -export interface TriggerFunctionRelations { - database?: Database | null; -} -export interface PartitionRelations { - database?: Database | null; - partitionKey?: Field | null; - table?: Table | null; -} -export interface DatabaseTransferRelations { - database?: Database | null; -} -export interface ApiRelations { - database?: Database | null; - apiSetting?: ApiSetting | null; - apiModules?: ConnectionResult; - apiSchemas?: ConnectionResult; - domains?: ConnectionResult; - corsSettings?: ConnectionResult; -} -export interface SiteRelations { - database?: Database | null; - app?: App | null; - domains?: ConnectionResult; - siteMetadata?: ConnectionResult; - siteModules?: ConnectionResult; - siteThemes?: ConnectionResult; -} -export interface AppRelations { - site?: Site | null; - database?: Database | null; -} -export interface ApiSettingRelations { - api?: Api | null; - database?: Database | null; -} -export interface ConnectedAccountsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface CryptoAddressesModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface CryptoAuthModuleRelations { - database?: Database | null; - schema?: Schema | null; - secretsTable?: Table | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface DefaultIdsModuleRelations { - database?: Database | null; -} -export interface DenormalizedTableFieldRelations { - database?: Database | null; - field?: Field | null; - refField?: Field | null; - refTable?: Table | null; - table?: Table | null; -} -export interface EmailsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface ConfigSecretsUserModuleRelations { - configDefinitionsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface InvitesModuleRelations { - claimedInvitesTable?: Table | null; - database?: Database | null; - emailsTable?: Table | null; - entityTable?: Table | null; - invitesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usersTable?: Table | null; -} -export interface EventsModuleRelations { - achievementRewardsTable?: Table | null; - actorTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - eventAggregatesTable?: Table | null; - eventTypesTable?: Table | null; - eventsTable?: Table | null; - levelGrantsTable?: Table | null; - levelRequirementsTable?: Table | null; - levelsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface LimitsModuleRelations { - actorTable?: Table | null; - aggregateTable?: Table | null; - creditCodeItemsTable?: Table | null; - creditCodesTable?: Table | null; - creditRedemptionsTable?: Table | null; - database?: Database | null; - defaultTable?: Table | null; - entityTable?: Table | null; - eventsTable?: Table | null; - limitCapsDefaultsTable?: Table | null; - limitCapsTable?: Table | null; - limitCreditsTable?: Table | null; - limitWarningStateTable?: Table | null; - limitWarningsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface MembershipTypesModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface MembershipsModuleRelations { - actorTable?: Table | null; - database?: Database | null; - defaultLimitsTable?: Table | null; - defaultPermissionsTable?: Table | null; - entityTable?: Table | null; - entityTableOwner?: Field | null; - grantsTable?: Table | null; - limitsTable?: Table | null; - membersTable?: Table | null; - membershipDefaultsTable?: Table | null; - membershipSettingsTable?: Table | null; - membershipsTable?: Table | null; - permissionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sprtTable?: Table | null; -} -export interface PermissionsModuleRelations { - actorTable?: Table | null; - database?: Database | null; - defaultTable?: Table | null; - entityTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface PhoneNumbersModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface ProfilesModuleRelations { - actorTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - membershipsTable?: Table | null; - permissionsTable?: Table | null; - privateSchema?: Schema | null; - profileDefinitionGrantsTable?: Table | null; - profileGrantsTable?: Table | null; - profilePermissionsTable?: Table | null; - profileTemplatesTable?: Table | null; - schema?: Schema | null; - table?: Table | null; -} -export interface UserStateModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface SessionsModuleRelations { - authSettingsTableByAuthSettingsTableId?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTableBySessionCredentialsTableId?: Table | null; - sessionsTableBySessionsTableId?: Table | null; - usersTable?: Table | null; -} -export interface UserAuthModuleRelations { - database?: Database | null; - emailsTable?: Table | null; - encryptedTable?: Table | null; - schema?: Schema | null; - secretsTable?: Table | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface UsersModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; - typeTable?: Table | null; -} -export interface BlueprintRelations { - database?: Database | null; - template?: BlueprintTemplate | null; - blueprintConstructions?: ConnectionResult; -} -export interface BlueprintTemplateRelations { - forkedFrom?: BlueprintTemplate | null; - blueprintTemplatesByForkedFromId?: ConnectionResult; - blueprintsByTemplateId?: ConnectionResult; -} -export interface BlueprintConstructionRelations { - blueprint?: Blueprint | null; - database?: Database | null; -} -export interface StorageModuleRelations { - bucketsTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - fileEventsTable?: Table | null; - filesTable?: Table | null; - pathSharesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface EntityTypeProvisionRelations { - database?: Database | null; -} -export interface WebauthnCredentialsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface WebauthnAuthModuleRelations { - authSettingsTable?: Table | null; - credentialsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionSecretsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface NotificationsModuleRelations { - channelsTableByChannelsTableId?: Table | null; - database?: Database | null; - deliveryLogTableByDeliveryLogTableId?: Table | null; - notificationsTableByNotificationsTableId?: Table | null; - organizationSettingsTableByOrganizationSettingsTableId?: Table | null; - ownerTable?: Table | null; - preferencesTableByPreferencesTableId?: Table | null; - privateSchema?: Schema | null; - readStateTableByReadStateTableId?: Table | null; - schema?: Schema | null; - userSettingsTableByUserSettingsTableId?: Table | null; -} -export interface InferenceLogModuleRelations { - database?: Database | null; - inferenceLogTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usageDailyTable?: Table | null; -} -export interface ComputeLogModuleRelations { - computeLogTable?: Table | null; - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usageDailyTable?: Table | null; -} -export interface TransferLogModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - transferLogTable?: Table | null; - usageDailyTable?: Table | null; -} -export interface StorageLogModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - storageLogTable?: Table | null; - usageDailyTable?: Table | null; -} -export interface DbUsageModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - queryStatsDailyTable?: Table | null; - queryStatsLogTable?: Table | null; - schema?: Schema | null; - tableStatsDailyTable?: Table | null; - tableStatsLogTable?: Table | null; -} -export interface AgentModuleRelations { - database?: Database | null; - entityTable?: Table | null; - knowledgeTable?: Table | null; - messageTable?: Table | null; - privateSchema?: Schema | null; - promptsTable?: Table | null; - schema?: Schema | null; - taskTable?: Table | null; - threadTable?: Table | null; -} -export interface NamespaceModuleRelations { - database?: Database | null; - entityTable?: Table | null; - namespaceEventsTable?: Table | null; - namespacesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface FunctionModuleRelations { - configDefinitionsTable?: Table | null; - configRequirementsTable?: Table | null; - database?: Database | null; - definitionsTable?: Table | null; - entityTable?: Table | null; - executionLogsTable?: Table | null; - invocationsTable?: Table | null; - privateSchema?: Schema | null; - requirementsTable?: Table | null; - schema?: Schema | null; - secretDefinitionsTable?: Table | null; -} -export interface DatabaseProvisionModuleRelations { - database?: Database | null; -} -export interface AppAdminGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface AppOwnerGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface AppGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface OrgMembershipRelations { - actor?: User | null; - entity?: User | null; - orgMemberProfileByMembershipId?: OrgMemberProfile | null; -} -export interface OrgMemberRelations { - actor?: User | null; - entity?: User | null; -} -export interface OrgAdminGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgOwnerGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgMemberProfileRelations { - actor?: User | null; - entity?: User | null; - membership?: OrgMembership | null; -} -export interface OrgGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgChartEdgeRelations { - child?: User | null; - entity?: User | null; - parent?: User | null; -} -export interface OrgChartEdgeGrantRelations { - child?: User | null; - entity?: User | null; - grantor?: User | null; - parent?: User | null; -} -export interface OrgPermissionDefaultRelations { - entity?: User | null; -} -export interface AppLimitRelations { - actor?: User | null; -} -export interface AppLimitCreditRelations { - actor?: User | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditCodeItemRelations { - creditCode?: AppLimitCreditCode | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditRedemptionRelations { - creditCode?: AppLimitCreditCode | null; -} -export interface OrgLimitRelations { - actor?: User | null; - entity?: User | null; -} -export interface OrgLimitCreditRelations { - actor?: User | null; - defaultLimit?: OrgLimitDefault | null; - entity?: User | null; -} -export interface OrgLimitAggregateRelations { - entity?: User | null; -} -export interface OrgLimitWarningRelations { - entity?: User | null; -} -export interface EmailRelations { - owner?: User | null; -} -export interface PhoneNumberRelations { - owner?: User | null; -} -export interface CryptoAddressRelations { - owner?: User | null; -} -export interface WebauthnCredentialRelations { - owner?: User | null; -} -export interface AppInviteRelations { - sender?: User | null; -} -export interface AppClaimedInviteRelations { - receiver?: User | null; - sender?: User | null; -} -export interface OrgInviteRelations { - entity?: User | null; - receiver?: User | null; - sender?: User | null; -} -export interface OrgClaimedInviteRelations { - entity?: User | null; - receiver?: User | null; - sender?: User | null; -} -export interface AuditLogAuthRelations { - actor?: User | null; -} -export interface IdentityProviderRelations {} -export interface AppPermissionDefaultRelations {} -export interface RoleTypeRelations {} -export interface MigrateFileRelations {} -export interface DevicesModuleRelations { - database?: Database | null; - deviceSettingsTableByDeviceSettingsTableId?: Table | null; - schema?: Schema | null; - userDevicesTableByUserDevicesTableId?: Table | null; -} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} -export interface NodeTypeRegistryRelations {} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface UserConnectedAccountRelations {} -export interface AppLimitDefaultRelations { - appLimitCreditsByDefaultLimitId?: ConnectionResult; - appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitDefaultRelations { - orgLimitCreditsByDefaultLimitId?: ConnectionResult; -} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitWarningRelations {} -export interface PubkeySettingRelations { - database?: Database | null; - schema?: Schema | null; - signInRecordFailureFunction?: Function | null; - signInRequestChallengeFunction?: Function | null; - signInWithChallengeFunction?: Function | null; - signUpWithKeyFunction?: Function | null; -} -export interface RateLimitsModuleRelations { - database?: Database | null; - ipRateLimitsTableByIpRateLimitsTableId?: Table | null; - rateLimitSettingsTableByRateLimitSettingsTableId?: Table | null; - rateLimitsTableByRateLimitsTableId?: Table | null; - schema?: Schema | null; -} -export interface MembershipTypeRelations {} -export interface RlsSettingRelations { - authenticateFunction?: Function | null; - authenticateSchema?: Schema | null; - authenticateStrictFunction?: Function | null; - currentIpAddressFunction?: Function | null; - currentRoleFunction?: Function | null; - currentRoleIdFunction?: Function | null; - currentUserAgentFunction?: Function | null; - database?: Database | null; - roleSchema?: Schema | null; -} -export interface RlsModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface RateLimitMetersModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - rateLimitOverridesTableByRateLimitOverridesTableId?: Table | null; - rateLimitStateTableByRateLimitStateTableId?: Table | null; - rateWindowLimitsTableByRateWindowLimitsTableId?: Table | null; - schema?: Schema | null; -} -export interface PlansModuleRelations { - database?: Database | null; - planLimitsTable?: Table | null; - planOverridesTable?: Table | null; - planPricingTable?: Table | null; - plansTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface SqlActionRelations {} -export interface DatabaseSettingRelations { - database?: Database | null; -} -export interface OrgMembershipSettingRelations { - entity?: User | null; -} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} -export interface AppMembershipRelations { - actor?: User | null; -} -export interface UserRelations { - roleType?: RoleType | null; - appMembershipByActorId?: AppMembership | null; - orgMembershipDefaultByEntityId?: OrgMembershipDefault | null; - orgMembershipSettingByEntityId?: OrgMembershipSetting | null; - ownedDatabases?: ConnectionResult; - appAdminGrantsByActorId?: ConnectionResult; - appAdminGrantsByGrantorId?: ConnectionResult; - appOwnerGrantsByActorId?: ConnectionResult; - appOwnerGrantsByGrantorId?: ConnectionResult; - appGrantsByActorId?: ConnectionResult; - appGrantsByGrantorId?: ConnectionResult; - orgMembershipsByActorId?: ConnectionResult; - orgMembershipsByEntityId?: ConnectionResult; - orgMembersByActorId?: ConnectionResult; - orgMembersByEntityId?: ConnectionResult; - orgAdminGrantsByActorId?: ConnectionResult; - orgAdminGrantsByEntityId?: ConnectionResult; - orgAdminGrantsByGrantorId?: ConnectionResult; - orgOwnerGrantsByActorId?: ConnectionResult; - orgOwnerGrantsByEntityId?: ConnectionResult; - orgOwnerGrantsByGrantorId?: ConnectionResult; - orgMemberProfilesByActorId?: ConnectionResult; - orgMemberProfilesByEntityId?: ConnectionResult; - orgGrantsByActorId?: ConnectionResult; - orgGrantsByEntityId?: ConnectionResult; - orgGrantsByGrantorId?: ConnectionResult; - parentOrgChartEdges?: ConnectionResult; - orgChartEdgesByEntityId?: ConnectionResult; - childOrgChartEdges?: ConnectionResult; - parentOrgChartEdgeGrants?: ConnectionResult; - orgChartEdgeGrantsByEntityId?: ConnectionResult; - orgChartEdgeGrantsByGrantorId?: ConnectionResult; - childOrgChartEdgeGrants?: ConnectionResult; - orgPermissionDefaultsByEntityId?: ConnectionResult; - appLimitsByActorId?: ConnectionResult; - appLimitCreditsByActorId?: ConnectionResult; - orgLimitsByActorId?: ConnectionResult; - orgLimitsByEntityId?: ConnectionResult; - orgLimitCreditsByActorId?: ConnectionResult; - orgLimitCreditsByEntityId?: ConnectionResult; - orgLimitAggregatesByEntityId?: ConnectionResult; - orgLimitWarningsByEntityId?: ConnectionResult; - ownedEmails?: ConnectionResult; - ownedPhoneNumbers?: ConnectionResult; - ownedCryptoAddresses?: ConnectionResult; - ownedWebauthnCredentials?: ConnectionResult; - appInvitesBySenderId?: ConnectionResult; - appClaimedInvitesByReceiverId?: ConnectionResult; - appClaimedInvitesBySenderId?: ConnectionResult; - orgInvitesByEntityId?: ConnectionResult; - orgInvitesByReceiverId?: ConnectionResult; - orgInvitesBySenderId?: ConnectionResult; - orgClaimedInvitesByEntityId?: ConnectionResult; - orgClaimedInvitesByReceiverId?: ConnectionResult; - orgClaimedInvitesBySenderId?: ConnectionResult; - auditLogAuthsByActorId?: ConnectionResult; -} -export interface AstMigrationRelations {} -export interface WebauthnSettingRelations { - credentialsSchema?: Schema | null; - credentialsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionSecretsSchema?: Schema | null; - sessionSecretsTable?: Table | null; - sessionsSchema?: Schema | null; - sessionsTable?: Table | null; - userField?: Field | null; -} -export interface BillingModuleRelations { - balancesTable?: Table | null; - database?: Database | null; - ledgerTable?: Table | null; - meterCreditsTable?: Table | null; - meterSourcesTable?: Table | null; - metersTable?: Table | null; - planSubscriptionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface BillingProviderModuleRelations { - billingCustomersTable?: Table | null; - billingPricesTable?: Table | null; - billingProductsTable?: Table | null; - billingSubscriptionsTable?: Table | null; - billingWebhookEventsTable?: Table | null; - database?: Database | null; - pricesTable?: Table | null; - privateSchema?: Schema | null; - productsTable?: Table | null; - schema?: Schema | null; - subscriptionsTable?: Table | null; -} -export interface HierarchyModuleRelations { - chartEdgeGrantsTable?: Table | null; - chartEdgesTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - hierarchySprtTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usersTable?: Table | null; -} -// ============ Entity Types With Relations ============ -export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & - OrgGetManagersRecordRelations; -export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & - OrgGetSubordinatesRecordRelations; -export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; -export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type DatabaseWithRelations = Database & DatabaseRelations; -export type SchemaWithRelations = Schema & SchemaRelations; -export type TableWithRelations = Table & TableRelations; -export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; -export type FieldWithRelations = Field & FieldRelations; -export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; -export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & - ForeignKeyConstraintRelations; -export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; -export type IndexWithRelations = Index & IndexRelations; -export type PolicyWithRelations = Policy & PolicyRelations; -export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & - PrimaryKeyConstraintRelations; -export type TableGrantWithRelations = TableGrant & TableGrantRelations; -export type TriggerWithRelations = Trigger & TriggerRelations; -export type UniqueConstraintWithRelations = UniqueConstraint & UniqueConstraintRelations; -export type ViewWithRelations = View & ViewRelations; -export type ViewTableWithRelations = ViewTable & ViewTableRelations; -export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; -export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; -export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; -export type SecureTableProvisionWithRelations = SecureTableProvision & - SecureTableProvisionRelations; -export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; -export type SessionSecretsModuleWithRelations = SessionSecretsModule & - SessionSecretsModuleRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; -export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; -export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & - ConfigSecretsOrgModuleRelations; -export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; -export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; -export type EnumWithRelations = Enum & EnumRelations; -export type FunctionWithRelations = Function & FunctionRelations; -export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; -export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; -export type DomainWithRelations = Domain & DomainRelations; -export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; -export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; -export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; -export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; -export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; -export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; -export type PartitionWithRelations = Partition & PartitionRelations; -export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; -export type ApiWithRelations = Api & ApiRelations; -export type SiteWithRelations = Site & SiteRelations; -export type AppWithRelations = App & AppRelations; -export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & - ConnectedAccountsModuleRelations; -export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & - CryptoAddressesModuleRelations; -export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; -export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; -export type DenormalizedTableFieldWithRelations = DenormalizedTableField & - DenormalizedTableFieldRelations; -export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; -export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; -export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; -export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; -export type MembershipTypesModuleWithRelations = MembershipTypesModule & - MembershipTypesModuleRelations; -export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; -export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; -export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; -export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; -export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; -export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; -export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; -export type BlueprintWithRelations = Blueprint & BlueprintRelations; -export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; -export type BlueprintConstructionWithRelations = BlueprintConstruction & - BlueprintConstructionRelations; -export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; -export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; -export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & - WebauthnCredentialsModuleRelations; -export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; -export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; -export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; -export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; -export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; -export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; -export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & - DatabaseProvisionModuleRelations; -export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; -export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; -export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & - AppLimitCreditCodeItemRelations; -export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & - AppLimitCreditRedemptionRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; -export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; -export type EmailWithRelations = Email & EmailRelations; -export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; -export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; -export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; -export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; -export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; -export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type UserConnectedAccountWithRelations = UserConnectedAccount & - UserConnectedAccountRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; -export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; -export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & - RateLimitMetersModuleRelations; -export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; -export type SqlActionWithRelations = SqlAction & SqlActionRelations; -export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type OrgMembershipSettingWithRelations = OrgMembershipSetting & - OrgMembershipSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type UserWithRelations = User & UserRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type BillingProviderModuleWithRelations = BillingProviderModule & - BillingProviderModuleRelations; -export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -// ============ Entity Select Types ============ -export type OrgGetManagersRecordSelect = { - userId?: boolean; - depth?: boolean; -}; -export type OrgGetSubordinatesRecordSelect = { - userId?: boolean; - depth?: boolean; -}; -export type AppPermissionSelect = { - id?: boolean; - name?: boolean; - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; -}; -export type OrgPermissionSelect = { - id?: boolean; - name?: boolean; - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; -}; -export type DatabaseSelect = { - id?: boolean; - ownerId?: boolean; - schemaHash?: boolean; - name?: boolean; - label?: boolean; - hash?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - rlsSetting?: { - select: RlsSettingSelect; - }; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - rlsModule?: { - select: RlsModuleSelect; - }; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - devicesModule?: { - select: DevicesModuleSelect; - }; - plansModule?: { - select: PlansModuleSelect; - }; - billingModule?: { - select: BillingModuleSelect; - }; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - schemas?: { - select: SchemaSelect; - first?: number; - filter?: SchemaFilter; - orderBy?: SchemaOrderBy[]; - }; - tables?: { - select: TableSelect; - first?: number; - filter?: TableFilter; - orderBy?: TableOrderBy[]; - }; - checkConstraints?: { - select: CheckConstraintSelect; - first?: number; - filter?: CheckConstraintFilter; - orderBy?: CheckConstraintOrderBy[]; - }; - fields?: { - select: FieldSelect; - first?: number; - filter?: FieldFilter; - orderBy?: FieldOrderBy[]; - }; - foreignKeyConstraints?: { - select: ForeignKeyConstraintSelect; - first?: number; - filter?: ForeignKeyConstraintFilter; - orderBy?: ForeignKeyConstraintOrderBy[]; - }; - fullTextSearches?: { - select: FullTextSearchSelect; - first?: number; - filter?: FullTextSearchFilter; - orderBy?: FullTextSearchOrderBy[]; - }; - indices?: { - select: IndexSelect; - first?: number; - filter?: IndexFilter; - orderBy?: IndexOrderBy[]; - }; - policies?: { - select: PolicySelect; - first?: number; - filter?: PolicyFilter; - orderBy?: PolicyOrderBy[]; - }; - primaryKeyConstraints?: { - select: PrimaryKeyConstraintSelect; - first?: number; - filter?: PrimaryKeyConstraintFilter; - orderBy?: PrimaryKeyConstraintOrderBy[]; - }; - schemaGrants?: { - select: SchemaGrantSelect; - first?: number; - filter?: SchemaGrantFilter; - orderBy?: SchemaGrantOrderBy[]; - }; - tableGrants?: { - select: TableGrantSelect; - first?: number; - filter?: TableGrantFilter; - orderBy?: TableGrantOrderBy[]; - }; - triggerFunctions?: { - select: TriggerFunctionSelect; - first?: number; - filter?: TriggerFunctionFilter; - orderBy?: TriggerFunctionOrderBy[]; - }; - triggers?: { - select: TriggerSelect; - first?: number; - filter?: TriggerFilter; - orderBy?: TriggerOrderBy[]; - }; - uniqueConstraints?: { - select: UniqueConstraintSelect; - first?: number; - filter?: UniqueConstraintFilter; - orderBy?: UniqueConstraintOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - viewGrants?: { - select: ViewGrantSelect; - first?: number; - filter?: ViewGrantFilter; - orderBy?: ViewGrantOrderBy[]; - }; - viewRules?: { - select: ViewRuleSelect; - first?: number; - filter?: ViewRuleFilter; - orderBy?: ViewRuleOrderBy[]; - }; - defaultPrivileges?: { - select: DefaultPrivilegeSelect; - first?: number; - filter?: DefaultPrivilegeFilter; - orderBy?: DefaultPrivilegeOrderBy[]; - }; - enums?: { - select: EnumSelect; - first?: number; - filter?: EnumFilter; - orderBy?: EnumOrderBy[]; - }; - embeddingChunks?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - functions?: { - select: FunctionSelect; - first?: number; - filter?: FunctionFilter; - orderBy?: FunctionOrderBy[]; - }; - partitions?: { - select: PartitionSelect; - first?: number; - filter?: PartitionFilter; - orderBy?: PartitionOrderBy[]; - }; - databaseTransfers?: { - select: DatabaseTransferSelect; - first?: number; - filter?: DatabaseTransferFilter; - orderBy?: DatabaseTransferOrderBy[]; - }; - apis?: { - select: ApiSelect; - first?: number; - filter?: ApiFilter; - orderBy?: ApiOrderBy[]; - }; - apiModules?: { - select: ApiModuleSelect; - first?: number; - filter?: ApiModuleFilter; - orderBy?: ApiModuleOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - sites?: { - select: SiteSelect; - first?: number; - filter?: SiteFilter; - orderBy?: SiteOrderBy[]; - }; - apps?: { - select: AppSelect; - first?: number; - filter?: AppFilter; - orderBy?: AppOrderBy[]; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - siteMetadata?: { - select: SiteMetadatumSelect; - first?: number; - filter?: SiteMetadatumFilter; - orderBy?: SiteMetadatumOrderBy[]; - }; - siteModules?: { - select: SiteModuleSelect; - first?: number; - filter?: SiteModuleFilter; - orderBy?: SiteModuleOrderBy[]; - }; - siteThemes?: { - select: SiteThemeSelect; - first?: number; - filter?: SiteThemeFilter; - orderBy?: SiteThemeOrderBy[]; - }; - apiSettings?: { - select: ApiSettingSelect; - first?: number; - filter?: ApiSettingFilter; - orderBy?: ApiSettingOrderBy[]; - }; - corsSettings?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; - }; - connectedAccountsModules?: { - select: ConnectedAccountsModuleSelect; - first?: number; - filter?: ConnectedAccountsModuleFilter; - orderBy?: ConnectedAccountsModuleOrderBy[]; - }; - cryptoAddressesModules?: { - select: CryptoAddressesModuleSelect; - first?: number; - filter?: CryptoAddressesModuleFilter; - orderBy?: CryptoAddressesModuleOrderBy[]; - }; - cryptoAuthModules?: { - select: CryptoAuthModuleSelect; - first?: number; - filter?: CryptoAuthModuleFilter; - orderBy?: CryptoAuthModuleOrderBy[]; - }; - defaultIdsModules?: { - select: DefaultIdsModuleSelect; - first?: number; - filter?: DefaultIdsModuleFilter; - orderBy?: DefaultIdsModuleOrderBy[]; - }; - denormalizedTableFields?: { - select: DenormalizedTableFieldSelect; - first?: number; - filter?: DenormalizedTableFieldFilter; - orderBy?: DenormalizedTableFieldOrderBy[]; - }; - emailsModules?: { - select: EmailsModuleSelect; - first?: number; - filter?: EmailsModuleFilter; - orderBy?: EmailsModuleOrderBy[]; - }; - configSecretsUserModules?: { - select: ConfigSecretsUserModuleSelect; - first?: number; - filter?: ConfigSecretsUserModuleFilter; - orderBy?: ConfigSecretsUserModuleOrderBy[]; - }; - invitesModules?: { - select: InvitesModuleSelect; - first?: number; - filter?: InvitesModuleFilter; - orderBy?: InvitesModuleOrderBy[]; - }; - eventsModules?: { - select: EventsModuleSelect; - first?: number; - filter?: EventsModuleFilter; - orderBy?: EventsModuleOrderBy[]; - }; - limitsModules?: { - select: LimitsModuleSelect; - first?: number; - filter?: LimitsModuleFilter; - orderBy?: LimitsModuleOrderBy[]; - }; - membershipTypesModules?: { - select: MembershipTypesModuleSelect; - first?: number; - filter?: MembershipTypesModuleFilter; - orderBy?: MembershipTypesModuleOrderBy[]; - }; - membershipsModules?: { - select: MembershipsModuleSelect; - first?: number; - filter?: MembershipsModuleFilter; - orderBy?: MembershipsModuleOrderBy[]; - }; - permissionsModules?: { - select: PermissionsModuleSelect; - first?: number; - filter?: PermissionsModuleFilter; - orderBy?: PermissionsModuleOrderBy[]; - }; - phoneNumbersModules?: { - select: PhoneNumbersModuleSelect; - first?: number; - filter?: PhoneNumbersModuleFilter; - orderBy?: PhoneNumbersModuleOrderBy[]; - }; - profilesModules?: { - select: ProfilesModuleSelect; - first?: number; - filter?: ProfilesModuleFilter; - orderBy?: ProfilesModuleOrderBy[]; - }; - userStateModules?: { - select: UserStateModuleSelect; - first?: number; - filter?: UserStateModuleFilter; - orderBy?: UserStateModuleOrderBy[]; - }; - sessionsModules?: { - select: SessionsModuleSelect; - first?: number; - filter?: SessionsModuleFilter; - orderBy?: SessionsModuleOrderBy[]; - }; - userAuthModules?: { - select: UserAuthModuleSelect; - first?: number; - filter?: UserAuthModuleFilter; - orderBy?: UserAuthModuleOrderBy[]; - }; - usersModules?: { - select: UsersModuleSelect; - first?: number; - filter?: UsersModuleFilter; - orderBy?: UsersModuleOrderBy[]; - }; - secureTableProvisions?: { - select: SecureTableProvisionSelect; - first?: number; - filter?: SecureTableProvisionFilter; - orderBy?: SecureTableProvisionOrderBy[]; - }; - relationProvisions?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - blueprints?: { - select: BlueprintSelect; - first?: number; - filter?: BlueprintFilter; - orderBy?: BlueprintOrderBy[]; - }; - blueprintConstructions?: { - select: BlueprintConstructionSelect; - first?: number; - filter?: BlueprintConstructionFilter; - orderBy?: BlueprintConstructionOrderBy[]; - }; - storageModules?: { - select: StorageModuleSelect; - first?: number; - filter?: StorageModuleFilter; - orderBy?: StorageModuleOrderBy[]; - }; - entityTypeProvisions?: { - select: EntityTypeProvisionSelect; - first?: number; - filter?: EntityTypeProvisionFilter; - orderBy?: EntityTypeProvisionOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - webauthnCredentialsModules?: { - select: WebauthnCredentialsModuleSelect; - first?: number; - filter?: WebauthnCredentialsModuleFilter; - orderBy?: WebauthnCredentialsModuleOrderBy[]; - }; - webauthnAuthModules?: { - select: WebauthnAuthModuleSelect; - first?: number; - filter?: WebauthnAuthModuleFilter; - orderBy?: WebauthnAuthModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - notificationsModules?: { - select: NotificationsModuleSelect; - first?: number; - filter?: NotificationsModuleFilter; - orderBy?: NotificationsModuleOrderBy[]; - }; - realtimeModules?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; - inferenceLogModules?: { - select: InferenceLogModuleSelect; - first?: number; - filter?: InferenceLogModuleFilter; - orderBy?: InferenceLogModuleOrderBy[]; - }; - computeLogModules?: { - select: ComputeLogModuleSelect; - first?: number; - filter?: ComputeLogModuleFilter; - orderBy?: ComputeLogModuleOrderBy[]; - }; - transferLogModules?: { - select: TransferLogModuleSelect; - first?: number; - filter?: TransferLogModuleFilter; - orderBy?: TransferLogModuleOrderBy[]; - }; - storageLogModules?: { - select: StorageLogModuleSelect; - first?: number; - filter?: StorageLogModuleFilter; - orderBy?: StorageLogModuleOrderBy[]; - }; - dbUsageModules?: { - select: DbUsageModuleSelect; - first?: number; - filter?: DbUsageModuleFilter; - orderBy?: DbUsageModuleOrderBy[]; - }; - agentModules?: { - select: AgentModuleSelect; - first?: number; - filter?: AgentModuleFilter; - orderBy?: AgentModuleOrderBy[]; - }; - merkleStoreModules?: { - select: MerkleStoreModuleSelect; - first?: number; - filter?: MerkleStoreModuleFilter; - orderBy?: MerkleStoreModuleOrderBy[]; - }; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; - }; - namespaceModules?: { - select: NamespaceModuleSelect; - first?: number; - filter?: NamespaceModuleFilter; - orderBy?: NamespaceModuleOrderBy[]; - }; - functionModules?: { - select: FunctionModuleSelect; - first?: number; - filter?: FunctionModuleFilter; - orderBy?: FunctionModuleOrderBy[]; - }; - databaseProvisionModules?: { - select: DatabaseProvisionModuleSelect; - first?: number; - filter?: DatabaseProvisionModuleFilter; - orderBy?: DatabaseProvisionModuleOrderBy[]; - }; -}; -export type SchemaSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - schemaName?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - isPublic?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - tables?: { - select: TableSelect; - first?: number; - filter?: TableFilter; - orderBy?: TableOrderBy[]; - }; - schemaGrants?: { - select: SchemaGrantSelect; - first?: number; - filter?: SchemaGrantFilter; - orderBy?: SchemaGrantOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - defaultPrivileges?: { - select: DefaultPrivilegeSelect; - first?: number; - filter?: DefaultPrivilegeFilter; - orderBy?: DefaultPrivilegeOrderBy[]; - }; - enums?: { - select: EnumSelect; - first?: number; - filter?: EnumFilter; - orderBy?: EnumOrderBy[]; - }; - functions?: { - select: FunctionSelect; - first?: number; - filter?: FunctionFilter; - orderBy?: FunctionOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - identityProvidersModulesByPrivateSchemaId?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - realtimeModulesByPrivateSchemaId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModules?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesBySubscriptionsSchemaId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; - merkleStoreModulesByPrivateSchemaId?: { - select: MerkleStoreModuleSelect; - first?: number; - filter?: MerkleStoreModuleFilter; - orderBy?: MerkleStoreModuleOrderBy[]; - }; -}; -export type TableSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: boolean; - singularName?: boolean; - tags?: boolean; - partitioned?: boolean; - partitionStrategy?: boolean; - partitionKeyNames?: boolean; - partitionKeyTypes?: boolean; - inheritsId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - inherits?: { - select: TableSelect; - }; - partition?: { - select: PartitionSelect; - }; - checkConstraints?: { - select: CheckConstraintSelect; - first?: number; - filter?: CheckConstraintFilter; - orderBy?: CheckConstraintOrderBy[]; - }; - fields?: { - select: FieldSelect; - first?: number; - filter?: FieldFilter; - orderBy?: FieldOrderBy[]; - }; - foreignKeyConstraints?: { - select: ForeignKeyConstraintSelect; - first?: number; - filter?: ForeignKeyConstraintFilter; - orderBy?: ForeignKeyConstraintOrderBy[]; - }; - fullTextSearches?: { - select: FullTextSearchSelect; - first?: number; - filter?: FullTextSearchFilter; - orderBy?: FullTextSearchOrderBy[]; - }; - indices?: { - select: IndexSelect; - first?: number; - filter?: IndexFilter; - orderBy?: IndexOrderBy[]; - }; - policies?: { - select: PolicySelect; - first?: number; - filter?: PolicyFilter; - orderBy?: PolicyOrderBy[]; - }; - primaryKeyConstraints?: { - select: PrimaryKeyConstraintSelect; - first?: number; - filter?: PrimaryKeyConstraintFilter; - orderBy?: PrimaryKeyConstraintOrderBy[]; - }; - tableGrants?: { - select: TableGrantSelect; - first?: number; - filter?: TableGrantFilter; - orderBy?: TableGrantOrderBy[]; - }; - triggers?: { - select: TriggerSelect; - first?: number; - filter?: TriggerFilter; - orderBy?: TriggerOrderBy[]; - }; - uniqueConstraints?: { - select: UniqueConstraintSelect; - first?: number; - filter?: UniqueConstraintFilter; - orderBy?: UniqueConstraintOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - viewTables?: { - select: ViewTableSelect; - first?: number; - filter?: ViewTableFilter; - orderBy?: ViewTableOrderBy[]; - }; - embeddingChunksByChunksTableId?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - embeddingChunks?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - spatialRelationsByRefTableId?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - secureTableProvisions?: { - select: SecureTableProvisionSelect; - first?: number; - filter?: SecureTableProvisionFilter; - orderBy?: SecureTableProvisionOrderBy[]; - }; - relationProvisionsBySourceTableId?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - relationProvisionsByTargetTableId?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - sessionSecretsModulesBySessionsTableId?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - realtimeModulesByChangeLogTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesByListenerNodeTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesBySourceRegistryTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; -}; -export type CheckConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - type?: boolean; - fieldIds?: boolean; - expr?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type FieldSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: boolean; - type?: boolean; - fieldOrder?: boolean; - regexp?: boolean; - chk?: boolean; - chkExpr?: boolean; - min?: boolean; - max?: boolean; - tags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - spatialRelationsByRefFieldId?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; -}; -export type SpatialRelationSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - refTableId?: boolean; - refFieldId?: boolean; - name?: boolean; - operator?: boolean; - paramName?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - field?: { - select: FieldSelect; - }; - refField?: { - select: FieldSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ForeignKeyConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - description?: boolean; - smartTags?: boolean; - type?: boolean; - fieldIds?: boolean; - refTableId?: boolean; - refFieldIds?: boolean; - deleteAction?: boolean; - updateAction?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type FullTextSearchSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - fieldIds?: boolean; - weights?: boolean; - langs?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type IndexSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - fieldIds?: boolean; - includeFieldIds?: boolean; - accessMethod?: boolean; - indexParams?: boolean; - whereClause?: boolean; - isUnique?: boolean; - options?: boolean; - opClasses?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PolicySelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - granteeName?: boolean; - privilege?: boolean; - permissive?: boolean; - disabled?: boolean; - policyType?: boolean; - data?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PrimaryKeyConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - type?: boolean; - fieldIds?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type TableGrantSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - privilege?: boolean; - granteeName?: boolean; - fieldIds?: boolean; - isGrant?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type TriggerSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - event?: boolean; - functionName?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type UniqueConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - description?: boolean; - smartTags?: boolean; - type?: boolean; - fieldIds?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ViewSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - tableId?: boolean; - viewType?: boolean; - data?: boolean; - filterType?: boolean; - filterData?: boolean; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; - viewTables?: { - select: ViewTableSelect; - first?: number; - filter?: ViewTableFilter; - orderBy?: ViewTableOrderBy[]; - }; - viewGrants?: { - select: ViewGrantSelect; - first?: number; - filter?: ViewGrantFilter; - orderBy?: ViewGrantOrderBy[]; - }; - viewRules?: { - select: ViewRuleSelect; - first?: number; - filter?: ViewRuleFilter; - orderBy?: ViewRuleOrderBy[]; - }; -}; -export type ViewTableSelect = { - id?: boolean; - viewId?: boolean; - tableId?: boolean; - joinOrder?: boolean; - table?: { - select: TableSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type ViewGrantSelect = { - id?: boolean; - databaseId?: boolean; - viewId?: boolean; - granteeName?: boolean; - privilege?: boolean; - withGrantOption?: boolean; - isGrant?: boolean; - database?: { - select: DatabaseSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type ViewRuleSelect = { - id?: boolean; - databaseId?: boolean; - viewId?: boolean; - name?: boolean; - event?: boolean; - action?: boolean; - database?: { - select: DatabaseSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type EmbeddingChunkSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - embeddingFieldId?: boolean; - chunksTableId?: boolean; - chunksTableName?: boolean; - contentFieldName?: boolean; - dimensions?: boolean; - metric?: boolean; - chunkSize?: boolean; - chunkOverlap?: boolean; - chunkStrategy?: boolean; - metadataFields?: boolean; - searchIndexes?: boolean; - enqueueChunkingJob?: boolean; - chunkingTaskName?: boolean; - embeddingModel?: boolean; - embeddingProvider?: boolean; - parentFkFieldId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - chunksTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - embeddingField?: { - select: FieldSelect; - }; - parentFkField?: { - select: FieldSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SecureTableProvisionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - nodes?: boolean; - useRls?: boolean; - fields?: boolean; - grants?: boolean; - policies?: boolean; - outFields?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -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; - database?: { - select: DatabaseSelect; - }; - sourceTable?: { - select: TableSelect; - }; - targetTable?: { - select: TableSelect; - }; -}; -export type SessionSecretsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - sessionsTableId?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -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; - changeLogTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - listenerNodeTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sourceRegistryTable?: { - select: TableSelect; - }; - subscriptionsSchema?: { - select: SchemaSelect; - }; -}; -export type ConfigSecretsOrgModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SchemaGrantSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - granteeName?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type DefaultPrivilegeSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - objectType?: boolean; - privilege?: boolean; - granteeName?: boolean; - isGrant?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type EnumSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - values?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type FunctionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type ApiSchemaSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - apiId?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type ApiModuleSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - name?: boolean; - data?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type DomainSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - siteId?: boolean; - subdomain?: boolean; - domain?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteMetadatumSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - title?: boolean; - description?: boolean; - ogImage?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteModuleSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - name?: boolean; - data?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteThemeSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - theme?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type CorsSettingSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - allowedOrigins?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type MerkleStoreModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - objectTableId?: boolean; - storeTableId?: boolean; - commitTableId?: boolean; - refTableId?: boolean; - prefix?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scopeField?: boolean; - createdAt?: boolean; - commitTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - objectTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - refTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - storeTable?: { - select: TableSelect; - }; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; - }; -}; -export type GraphModuleSelect = { - id?: boolean; - databaseId?: boolean; - publicSchemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - prefix?: boolean; - merkleStoreModuleId?: boolean; - graphsTableId?: boolean; - executionsTableId?: boolean; - outputsTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scopeField?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - createdAt?: boolean; - database?: { - select: DatabaseSelect; - }; - executionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - graphsTable?: { - select: TableSelect; - }; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - outputsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - publicSchema?: { - select: SchemaSelect; - }; -}; -export type TriggerFunctionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - code?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type PartitionSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - strategy?: boolean; - partitionKeyId?: boolean; - interval?: boolean; - retention?: boolean; - retentionKeepTable?: boolean; - premake?: boolean; - namingPattern?: boolean; - isParented?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - partitionKey?: { - select: FieldSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type DatabaseTransferSelect = { - id?: boolean; - databaseId?: boolean; - targetOwnerId?: boolean; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: boolean; - targetApprovedAt?: boolean; - status?: boolean; - initiatedBy?: boolean; - notes?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - completedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type ApiSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - dbname?: boolean; - roleName?: boolean; - anonRole?: boolean; - isPublic?: boolean; - database?: { - select: DatabaseSelect; - }; - apiSetting?: { - select: ApiSettingSelect; - }; - apiModules?: { - select: ApiModuleSelect; - first?: number; - filter?: ApiModuleFilter; - orderBy?: ApiModuleOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - corsSettings?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; - }; -}; -export type SiteSelect = { - id?: boolean; - databaseId?: boolean; - title?: boolean; - description?: boolean; - ogImage?: boolean; - favicon?: boolean; - appleTouchIcon?: boolean; - logo?: boolean; - dbname?: boolean; - database?: { - select: DatabaseSelect; - }; - app?: { - select: AppSelect; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - siteMetadata?: { - select: SiteMetadatumSelect; - first?: number; - filter?: SiteMetadatumFilter; - orderBy?: SiteMetadatumOrderBy[]; - }; - siteModules?: { - select: SiteModuleSelect; - first?: number; - filter?: SiteModuleFilter; - orderBy?: SiteModuleOrderBy[]; - }; - siteThemes?: { - select: SiteThemeSelect; - first?: number; - filter?: SiteThemeFilter; - orderBy?: SiteThemeOrderBy[]; - }; -}; -export type AppSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - name?: boolean; - appImage?: boolean; - appStoreLink?: boolean; - appStoreId?: boolean; - appIdPrefix?: boolean; - playStoreLink?: boolean; - site?: { - select: SiteSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type ApiSettingSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type ConnectedAccountsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type CryptoAddressesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - cryptoNetwork?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type CryptoAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - usersTableId?: boolean; - secretsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - addressesTableId?: boolean; - userField?: boolean; - cryptoNetwork?: boolean; - signInRequestChallenge?: boolean; - signInRecordFailure?: boolean; - signUpWithKey?: boolean; - signInWithChallenge?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretsTable?: { - select: TableSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type DefaultIdsModuleSelect = { - id?: boolean; - databaseId?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type DenormalizedTableFieldSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - setIds?: boolean; - refTableId?: boolean; - refFieldId?: boolean; - refIds?: boolean; - useUpdates?: boolean; - updateDefaults?: boolean; - funcName?: boolean; - funcOrder?: boolean; - database?: { - select: DatabaseSelect; - }; - field?: { - select: FieldSelect; - }; - refField?: { - select: FieldSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type EmailsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ConfigSecretsUserModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - configDefinitionsTableId?: boolean; - configDefinitionsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type InvitesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - claimedInvitesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - emailsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - invitesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type EventsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - eventsTableId?: boolean; - eventsTableName?: boolean; - eventAggregatesTableId?: boolean; - eventAggregatesTableName?: boolean; - eventTypesTableId?: boolean; - eventTypesTableName?: boolean; - levelsTableId?: boolean; - levelsTableName?: boolean; - levelRequirementsTableId?: boolean; - levelRequirementsTableName?: boolean; - levelGrantsTableId?: boolean; - levelGrantsTableName?: boolean; - achievementRewardsTableId?: boolean; - achievementRewardsTableName?: boolean; - recordEvent?: boolean; - removeEvent?: boolean; - tgEvent?: boolean; - tgEventToggle?: boolean; - tgEventToggleBool?: boolean; - tgEventBool?: boolean; - upsertAggregate?: boolean; - tgUpdateAggregates?: boolean; - pruneEvents?: boolean; - stepsRequired?: boolean; - levelAchieved?: boolean; - tgCheckAchievements?: boolean; - grantAchievement?: boolean; - tgAchievementReward?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - achievementRewardsTable?: { - select: TableSelect; - }; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - eventAggregatesTable?: { - select: TableSelect; - }; - eventTypesTable?: { - select: TableSelect; - }; - eventsTable?: { - select: TableSelect; - }; - levelGrantsTable?: { - select: TableSelect; - }; - levelRequirementsTable?: { - select: TableSelect; - }; - levelsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type LimitsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - limitIncrementFunction?: boolean; - limitDecrementFunction?: boolean; - limitIncrementTrigger?: boolean; - limitDecrementTrigger?: boolean; - limitUpdateTrigger?: boolean; - limitCheckFunction?: boolean; - limitCreditsTableId?: boolean; - eventsTableId?: boolean; - creditCodesTableId?: boolean; - creditCodeItemsTableId?: boolean; - creditRedemptionsTableId?: boolean; - aggregateTableId?: boolean; - limitCapsTableId?: boolean; - limitCapsDefaultsTableId?: boolean; - capCheckTrigger?: boolean; - resolveCapFunction?: boolean; - limitWarningsTableId?: boolean; - limitWarningStateTableId?: boolean; - limitCheckSoftFunction?: boolean; - limitAggregateCheckSoftFunction?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - actorTable?: { - select: TableSelect; - }; - aggregateTable?: { - select: TableSelect; - }; - creditCodeItemsTable?: { - select: TableSelect; - }; - creditCodesTable?: { - select: TableSelect; - }; - creditRedemptionsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - eventsTable?: { - select: TableSelect; - }; - limitCapsDefaultsTable?: { - select: TableSelect; - }; - limitCapsTable?: { - select: TableSelect; - }; - limitCreditsTable?: { - select: TableSelect; - }; - limitWarningStateTable?: { - select: TableSelect; - }; - limitWarningsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type MembershipTypesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type MembershipsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: 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; - membershipType?: boolean; - entityTableId?: boolean; - entityTableOwnerId?: boolean; - prefix?: boolean; - getOrgFn?: boolean; - actorMaskCheck?: boolean; - actorPermCheck?: boolean; - entityIdsByMask?: boolean; - entityIdsByPerm?: boolean; - entityIdsFunction?: boolean; - memberProfilesTableId?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultLimitsTable?: { - select: TableSelect; - }; - defaultPermissionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - entityTableOwner?: { - select: FieldSelect; - }; - grantsTable?: { - select: TableSelect; - }; - limitsTable?: { - select: TableSelect; - }; - membersTable?: { - select: TableSelect; - }; - membershipDefaultsTable?: { - select: TableSelect; - }; - membershipSettingsTable?: { - select: TableSelect; - }; - membershipsTable?: { - select: TableSelect; - }; - permissionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sprtTable?: { - select: TableSelect; - }; -}; -export type PermissionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - prefix?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PhoneNumbersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ProfilesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - profilePermissionsTableId?: boolean; - profilePermissionsTableName?: boolean; - profileGrantsTableId?: boolean; - profileGrantsTableName?: boolean; - profileDefinitionGrantsTableId?: boolean; - profileDefinitionGrantsTableName?: boolean; - profileTemplatesTableId?: boolean; - profileTemplatesTableName?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - permissionsTableId?: boolean; - membershipsTableId?: boolean; - prefix?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - membershipsTable?: { - select: TableSelect; - }; - permissionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - profileDefinitionGrantsTable?: { - select: TableSelect; - }; - profileGrantsTable?: { - select: TableSelect; - }; - profilePermissionsTable?: { - select: TableSelect; - }; - profileTemplatesTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type UserStateModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SessionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - authSettingsTableId?: boolean; - usersTableId?: boolean; - sessionsDefaultExpiration?: boolean; - sessionsTable?: boolean; - sessionCredentialsTable?: boolean; - authSettingsTable?: boolean; - authSettingsTableByAuthSettingsTableId?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTableBySessionCredentialsTableId?: { - select: TableSelect; - }; - sessionsTableBySessionsTableId?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type UserAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - secretsTableId?: boolean; - encryptedTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - auditsTableId?: boolean; - auditsTableName?: boolean; - signInFunction?: boolean; - signUpFunction?: boolean; - signOutFunction?: boolean; - setPasswordFunction?: boolean; - resetPasswordFunction?: boolean; - forgotPasswordFunction?: boolean; - sendVerificationEmailFunction?: boolean; - verifyEmailFunction?: boolean; - verifyPasswordFunction?: boolean; - checkPasswordFunction?: boolean; - sendAccountDeletionEmailFunction?: boolean; - deleteAccountFunction?: boolean; - signInCrossOriginFunction?: boolean; - requestCrossOriginTokenFunction?: boolean; - extendTokenExpires?: boolean; - database?: { - select: DatabaseSelect; - }; - emailsTable?: { - select: TableSelect; - }; - encryptedTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretsTable?: { - select: TableSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type UsersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - typeTableId?: boolean; - typeTableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; - typeTable?: { - select: TableSelect; - }; -}; -export type BlueprintSelect = { - id?: boolean; - ownerId?: boolean; - databaseId?: boolean; - name?: boolean; - displayName?: boolean; - description?: boolean; - definition?: boolean; - templateId?: boolean; - definitionHash?: boolean; - tableHashes?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - template?: { - select: BlueprintTemplateSelect; - }; - blueprintConstructions?: { - select: BlueprintConstructionSelect; - first?: number; - filter?: BlueprintConstructionFilter; - orderBy?: BlueprintConstructionOrderBy[]; - }; -}; -export type BlueprintTemplateSelect = { - id?: boolean; - name?: boolean; - version?: boolean; - displayName?: boolean; - description?: boolean; - ownerId?: boolean; - visibility?: boolean; - categories?: boolean; - tags?: boolean; - definition?: boolean; - definitionSchemaVersion?: boolean; - source?: boolean; - complexity?: boolean; - copyCount?: boolean; - forkCount?: boolean; - forkedFromId?: boolean; - definitionHash?: boolean; - tableHashes?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - forkedFrom?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplatesByForkedFromId?: { - select: BlueprintTemplateSelect; - first?: number; - filter?: BlueprintTemplateFilter; - orderBy?: BlueprintTemplateOrderBy[]; - }; - blueprintsByTemplateId?: { - select: BlueprintSelect; - first?: number; - filter?: BlueprintFilter; - orderBy?: BlueprintOrderBy[]; - }; -}; -export type BlueprintConstructionSelect = { - id?: boolean; - blueprintId?: boolean; - databaseId?: boolean; - schemaId?: boolean; - status?: boolean; - errorDetails?: boolean; - tableMap?: boolean; - constructedDefinition?: boolean; - constructedAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type StorageModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - bucketsTableId?: boolean; - filesTableId?: boolean; - bucketsTableName?: boolean; - filesTableName?: boolean; - membershipType?: boolean; - key?: boolean; - policies?: boolean; - provisions?: boolean; - entityTableId?: boolean; - endpoint?: boolean; - publicUrlPrefix?: boolean; - provider?: boolean; - allowedOrigins?: boolean; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: boolean; - uploadUrlExpirySeconds?: boolean; - downloadUrlExpirySeconds?: boolean; - defaultMaxFileSize?: boolean; - maxFilenameLength?: boolean; - cacheTtlSeconds?: boolean; - maxBulkFiles?: boolean; - maxBulkTotalSize?: boolean; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: boolean; - fileEventsTableId?: boolean; - bucketsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - fileEventsTable?: { - select: TableSelect; - }; - filesTable?: { - select: TableSelect; - }; - pathSharesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type EntityTypeProvisionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - prefix?: boolean; - description?: boolean; - parentEntity?: boolean; - tableName?: boolean; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: boolean; - namespaces?: boolean; - functions?: boolean; - graphs?: boolean; - agents?: boolean; - skipEntityPolicies?: boolean; - tableProvision?: boolean; - outMembershipType?: boolean; - outEntityTableId?: boolean; - outEntityTableName?: boolean; - outInstalledModules?: boolean; - outStorageModuleId?: boolean; - outBucketsTableId?: boolean; - outFilesTableId?: boolean; - outPathSharesTableId?: boolean; - outInvitesModuleId?: boolean; - outNamespaceModuleId?: boolean; - outNamespacesTableId?: boolean; - outNamespaceEventsTableId?: boolean; - outFunctionModuleId?: boolean; - outDefinitionsTableId?: boolean; - outInvocationsTableId?: boolean; - outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; - outRequirementsTableId?: boolean; - outConfigRequirementsTableId?: boolean; - outGraphModuleId?: boolean; - outGraphsTableId?: boolean; - outAgentModuleId?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type WebauthnCredentialsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type WebauthnAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - usersTableId?: boolean; - credentialsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - sessionSecretsTableId?: boolean; - authSettingsTableId?: boolean; - rpId?: boolean; - rpName?: boolean; - originAllowlist?: boolean; - attestationType?: boolean; - requireUserVerification?: boolean; - residentKey?: boolean; - challengeExpiry?: boolean; - authSettingsTable?: { - select: TableSelect; - }; - credentialsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionSecretsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type NotificationsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - notificationsTableId?: boolean; - readStateTableId?: boolean; - preferencesTableId?: boolean; - channelsTableId?: boolean; - deliveryLogTableId?: boolean; - ownerTableId?: boolean; - userSettingsTableId?: boolean; - organizationSettingsTableId?: boolean; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; - channelsTableByChannelsTableId?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - deliveryLogTableByDeliveryLogTableId?: { - select: TableSelect; - }; - notificationsTableByNotificationsTableId?: { - select: TableSelect; - }; - organizationSettingsTableByOrganizationSettingsTableId?: { - select: TableSelect; - }; - ownerTable?: { - select: TableSelect; - }; - preferencesTableByPreferencesTableId?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - readStateTableByReadStateTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - userSettingsTableByUserSettingsTableId?: { - select: TableSelect; - }; -}; -export type InferenceLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - inferenceLogTableId?: boolean; - inferenceLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - inferenceLogTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type ComputeLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - computeLogTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type TransferLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - transferLogTableId?: boolean; - transferLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - transferLogTable?: { - select: TableSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type StorageLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - storageLogTableId?: boolean; - storageLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - storageLogTable?: { - select: TableSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type DbUsageModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - queryStatsDailyTable?: { - select: TableSelect; - }; - queryStatsLogTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - tableStatsDailyTable?: { - select: TableSelect; - }; - tableStatsLogTable?: { - select: TableSelect; - }; -}; -export type AgentModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - threadTableId?: boolean; - messageTableId?: boolean; - taskTableId?: boolean; - promptsTableId?: boolean; - knowledgeTableId?: boolean; - threadTableName?: boolean; - messageTableName?: boolean; - taskTableName?: boolean; - promptsTableName?: boolean; - knowledgeTableName?: boolean; - hasKnowledge?: boolean; - apiName?: boolean; - membershipType?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - knowledgeConfig?: boolean; - knowledgePolicies?: boolean; - provisions?: boolean; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - knowledgeTable?: { - select: TableSelect; - }; - messageTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - promptsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - taskTable?: { - select: TableSelect; - }; - threadTable?: { - select: TableSelect; - }; -}; -export type NamespaceModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - namespacesTableId?: boolean; - namespaceEventsTableId?: boolean; - namespacesTableName?: boolean; - namespaceEventsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - membershipType?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - namespaceEventsTable?: { - select: TableSelect; - }; - namespacesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type FunctionModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - definitionsTableId?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - secretDefinitionsTableId?: boolean; - requirementsTableId?: boolean; - configDefinitionsTableId?: boolean; - configRequirementsTableId?: boolean; - definitionsTableName?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - secretDefinitionsTableName?: boolean; - requirementsTableName?: boolean; - configRequirementsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - membershipType?: boolean; - prefix?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - configDefinitionsTable?: { - select: TableSelect; - }; - configRequirementsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - definitionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - executionLogsTable?: { - select: TableSelect; - }; - invocationsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - requirementsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretDefinitionsTable?: { - select: TableSelect; - }; -}; -export type DatabaseProvisionModuleSelect = { - 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; - database?: { - select: DatabaseSelect; - }; -}; -export type AppAdminGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type AppOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type AppGrantSelect = { - id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; -export type OrgMemberSelect = { - id?: boolean; - isAdmin?: boolean; - actorId?: boolean; - entityId?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgAdminGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgMemberProfileSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; - email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type OrgGrantSelect = { - id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgChartEdgeSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; - child?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - parent?: { - select: UserSelect; - }; -}; -export type OrgChartEdgeGrantSelect = { - id?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - grantorId?: boolean; - isGrant?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; - createdAt?: boolean; - child?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; - parent?: { - select: UserSelect; - }; -}; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - organizationId?: boolean; - entityType?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type AppLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - actor?: { - select: UserSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditCodeItemSelect = { - id?: boolean; - creditCodeId?: boolean; - defaultLimitId?: boolean; - amount?: boolean; - creditType?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditRedemptionSelect = { - id?: boolean; - creditCodeId?: boolean; - entityId?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; -}; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - entityId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - actor?: { - select: UserSelect; - }; - defaultLimit?: { - select: OrgLimitDefaultSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitAggregateSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - reserved?: boolean; - organizationId?: boolean; - entityType?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type PhoneNumberSelect = { - id?: boolean; - ownerId?: boolean; - cc?: boolean; - number?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type CryptoAddressSelect = { - id?: boolean; - ownerId?: boolean; - address?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type WebauthnCredentialSelect = { - id?: boolean; - ownerId?: boolean; - credentialId?: boolean; - publicKey?: boolean; - signCount?: boolean; - webauthnUserId?: boolean; - transports?: boolean; - credentialDeviceType?: boolean; - backupEligible?: boolean; - backupState?: boolean; - name?: boolean; - lastUsedAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - sender?: { - select: UserSelect; - }; -}; -export type AppClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type OrgInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - receiverId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - isReadOnly?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type OrgClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type AuditLogAuthSelect = { - createdAt?: boolean; - id?: boolean; - event?: boolean; - actorId?: boolean; - origin?: boolean; - userAgent?: boolean; - ipAddress?: boolean; - success?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type IdentityProviderSelect = { - slug?: boolean; - kind?: boolean; - displayName?: boolean; - enabled?: boolean; - isBuiltIn?: boolean; -}; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; -}; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; -export type MigrateFileSelect = { - id?: boolean; - databaseId?: boolean; - upload?: boolean; -}; -export type DevicesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - userDevicesTableId?: boolean; - deviceSettingsTableId?: boolean; - userDevicesTable?: boolean; - deviceSettingsTable?: boolean; - database?: { - select: DatabaseSelect; - }; - deviceSettingsTableByDeviceSettingsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - userDevicesTableByUserDevicesTableId?: { - select: TableSelect; - }; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type NodeTypeRegistrySelect = { - name?: boolean; - slug?: boolean; - category?: boolean; - displayName?: boolean; - description?: boolean; - parameterSchema?: boolean; - tags?: boolean; -}; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type UserConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - appLimitCreditsByDefaultLimitId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - appLimitCreditCodeItemsByDefaultLimitId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - orgLimitCreditsByDefaultLimitId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; -}; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; -export type PubkeySettingSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - cryptoNetwork?: boolean; - userField?: boolean; - signUpWithKeyFunctionId?: boolean; - signInRequestChallengeFunctionId?: boolean; - signInRecordFailureFunctionId?: boolean; - signInWithChallengeFunctionId?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - signInRecordFailureFunction?: { - select: FunctionSelect; - }; - signInRequestChallengeFunction?: { - select: FunctionSelect; - }; - signInWithChallengeFunction?: { - select: FunctionSelect; - }; - signUpWithKeyFunction?: { - select: FunctionSelect; - }; -}; -export type RateLimitsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - rateLimitSettingsTableId?: boolean; - ipRateLimitsTableId?: boolean; - rateLimitsTableId?: boolean; - rateLimitSettingsTable?: boolean; - ipRateLimitsTable?: boolean; - rateLimitsTable?: boolean; - database?: { - select: DatabaseSelect; - }; - ipRateLimitsTableByIpRateLimitsTableId?: { - select: TableSelect; - }; - rateLimitSettingsTableByRateLimitSettingsTableId?: { - select: TableSelect; - }; - rateLimitsTableByRateLimitsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; -}; -export type RlsSettingSelect = { - id?: boolean; - databaseId?: boolean; - authenticateSchemaId?: boolean; - roleSchemaId?: boolean; - authenticateFunctionId?: boolean; - authenticateStrictFunctionId?: boolean; - currentRoleFunctionId?: boolean; - currentRoleIdFunctionId?: boolean; - currentUserAgentFunctionId?: boolean; - currentIpAddressFunctionId?: boolean; - authenticateFunction?: { - select: FunctionSelect; - }; - authenticateSchema?: { - select: SchemaSelect; - }; - authenticateStrictFunction?: { - select: FunctionSelect; - }; - currentIpAddressFunction?: { - select: FunctionSelect; - }; - currentRoleFunction?: { - select: FunctionSelect; - }; - currentRoleIdFunction?: { - select: FunctionSelect; - }; - currentUserAgentFunction?: { - select: FunctionSelect; - }; - database?: { - select: DatabaseSelect; - }; - roleSchema?: { - select: SchemaSelect; - }; -}; -export type RlsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - sessionCredentialsTableId?: boolean; - sessionsTableId?: boolean; - usersTableId?: boolean; - authenticate?: boolean; - authenticateStrict?: boolean; - currentRole?: boolean; - currentRoleId?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type RateLimitMetersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - rateLimitStateTableId?: boolean; - rateLimitStateTableName?: boolean; - rateLimitOverridesTableId?: boolean; - rateLimitOverridesTableName?: boolean; - rateWindowLimitsTableId?: boolean; - rateWindowLimitsTableName?: boolean; - checkRateLimitFunction?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - rateLimitOverridesTableByRateLimitOverridesTableId?: { - select: TableSelect; - }; - rateLimitStateTableByRateLimitStateTableId?: { - select: TableSelect; - }; - rateWindowLimitsTableByRateWindowLimitsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type PlansModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - planLimitsTable?: { - select: TableSelect; - }; - planOverridesTable?: { - select: TableSelect; - }; - planPricingTable?: { - select: TableSelect; - }; - plansTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type SqlActionSelect = { - id?: boolean; - name?: boolean; - databaseId?: boolean; - deploy?: boolean; - deps?: boolean; - payload?: boolean; - content?: boolean; - revert?: boolean; - verify?: boolean; - createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; -}; -export type DatabaseSettingSelect = { - id?: boolean; - databaseId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type OrgMembershipSettingSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type AppLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type UserSelect = { - id?: boolean; - username?: boolean; - displayName?: boolean; - profilePicture?: boolean; - searchTsv?: boolean; - type?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - searchTsvRank?: boolean; - displayNameTrgmSimilarity?: boolean; - searchScore?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - appMembershipByActorId?: { - select: AppMembershipSelect; - }; - orgMembershipDefaultByEntityId?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipSettingByEntityId?: { - select: OrgMembershipSettingSelect; - }; - ownedDatabases?: { - select: DatabaseSelect; - first?: number; - filter?: DatabaseFilter; - orderBy?: DatabaseOrderBy[]; - }; - appAdminGrantsByActorId?: { - select: AppAdminGrantSelect; - first?: number; - filter?: AppAdminGrantFilter; - orderBy?: AppAdminGrantOrderBy[]; - }; - appAdminGrantsByGrantorId?: { - select: AppAdminGrantSelect; - first?: number; - filter?: AppAdminGrantFilter; - orderBy?: AppAdminGrantOrderBy[]; - }; - appOwnerGrantsByActorId?: { - select: AppOwnerGrantSelect; - first?: number; - filter?: AppOwnerGrantFilter; - orderBy?: AppOwnerGrantOrderBy[]; - }; - appOwnerGrantsByGrantorId?: { - select: AppOwnerGrantSelect; - first?: number; - filter?: AppOwnerGrantFilter; - orderBy?: AppOwnerGrantOrderBy[]; - }; - appGrantsByActorId?: { - select: AppGrantSelect; - first?: number; - filter?: AppGrantFilter; - orderBy?: AppGrantOrderBy[]; - }; - appGrantsByGrantorId?: { - select: AppGrantSelect; - first?: number; - filter?: AppGrantFilter; - orderBy?: AppGrantOrderBy[]; - }; - orgMembershipsByActorId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgMembershipsByEntityId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgMembersByActorId?: { - select: OrgMemberSelect; - first?: number; - filter?: OrgMemberFilter; - orderBy?: OrgMemberOrderBy[]; - }; - orgMembersByEntityId?: { - select: OrgMemberSelect; - first?: number; - filter?: OrgMemberFilter; - orderBy?: OrgMemberOrderBy[]; - }; - orgAdminGrantsByActorId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgAdminGrantsByEntityId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgAdminGrantsByGrantorId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgOwnerGrantsByActorId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgOwnerGrantsByEntityId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgOwnerGrantsByGrantorId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgMemberProfilesByActorId?: { - select: OrgMemberProfileSelect; - first?: number; - filter?: OrgMemberProfileFilter; - orderBy?: OrgMemberProfileOrderBy[]; - }; - orgMemberProfilesByEntityId?: { - select: OrgMemberProfileSelect; - first?: number; - filter?: OrgMemberProfileFilter; - orderBy?: OrgMemberProfileOrderBy[]; - }; - orgGrantsByActorId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - orgGrantsByEntityId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - orgGrantsByGrantorId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - parentOrgChartEdges?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - orgChartEdgesByEntityId?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - childOrgChartEdges?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - parentOrgChartEdgeGrants?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgChartEdgeGrantsByEntityId?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgChartEdgeGrantsByGrantorId?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - childOrgChartEdgeGrants?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgPermissionDefaultsByEntityId?: { - select: OrgPermissionDefaultSelect; - first?: number; - filter?: OrgPermissionDefaultFilter; - orderBy?: OrgPermissionDefaultOrderBy[]; - }; - appLimitsByActorId?: { - select: AppLimitSelect; - first?: number; - filter?: AppLimitFilter; - orderBy?: AppLimitOrderBy[]; - }; - appLimitCreditsByActorId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - orgLimitsByActorId?: { - select: OrgLimitSelect; - first?: number; - filter?: OrgLimitFilter; - orderBy?: OrgLimitOrderBy[]; - }; - orgLimitsByEntityId?: { - select: OrgLimitSelect; - first?: number; - filter?: OrgLimitFilter; - orderBy?: OrgLimitOrderBy[]; - }; - orgLimitCreditsByActorId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; - orgLimitCreditsByEntityId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; - orgLimitAggregatesByEntityId?: { - select: OrgLimitAggregateSelect; - first?: number; - filter?: OrgLimitAggregateFilter; - orderBy?: OrgLimitAggregateOrderBy[]; - }; - orgLimitWarningsByEntityId?: { - select: OrgLimitWarningSelect; - first?: number; - filter?: OrgLimitWarningFilter; - orderBy?: OrgLimitWarningOrderBy[]; - }; - ownedEmails?: { - select: EmailSelect; - first?: number; - filter?: EmailFilter; - orderBy?: EmailOrderBy[]; - }; - ownedPhoneNumbers?: { - select: PhoneNumberSelect; - first?: number; - filter?: PhoneNumberFilter; - orderBy?: PhoneNumberOrderBy[]; - }; - ownedCryptoAddresses?: { - select: CryptoAddressSelect; - first?: number; - filter?: CryptoAddressFilter; - orderBy?: CryptoAddressOrderBy[]; - }; - ownedWebauthnCredentials?: { - select: WebauthnCredentialSelect; - first?: number; - filter?: WebauthnCredentialFilter; - orderBy?: WebauthnCredentialOrderBy[]; - }; - appInvitesBySenderId?: { - select: AppInviteSelect; - first?: number; - filter?: AppInviteFilter; - orderBy?: AppInviteOrderBy[]; - }; - appClaimedInvitesByReceiverId?: { - select: AppClaimedInviteSelect; - first?: number; - filter?: AppClaimedInviteFilter; - orderBy?: AppClaimedInviteOrderBy[]; - }; - appClaimedInvitesBySenderId?: { - select: AppClaimedInviteSelect; - first?: number; - filter?: AppClaimedInviteFilter; - orderBy?: AppClaimedInviteOrderBy[]; - }; - orgInvitesByEntityId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgInvitesByReceiverId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgInvitesBySenderId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgClaimedInvitesByEntityId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - orgClaimedInvitesByReceiverId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - orgClaimedInvitesBySenderId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - auditLogAuthsByActorId?: { - select: AuditLogAuthSelect; - first?: number; - filter?: AuditLogAuthFilter; - orderBy?: AuditLogAuthOrderBy[]; - }; -}; -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; - schemaId?: boolean; - credentialsSchemaId?: boolean; - sessionsSchemaId?: boolean; - sessionSecretsSchemaId?: boolean; - credentialsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - sessionSecretsTableId?: boolean; - userFieldId?: boolean; - rpId?: boolean; - rpName?: boolean; - originAllowlist?: boolean; - attestationType?: boolean; - requireUserVerification?: boolean; - residentKey?: boolean; - challengeExpirySeconds?: boolean; - credentialsSchema?: { - select: SchemaSelect; - }; - credentialsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionSecretsSchema?: { - select: SchemaSelect; - }; - sessionSecretsTable?: { - select: TableSelect; - }; - sessionsSchema?: { - select: SchemaSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - userField?: { - select: FieldSelect; - }; -}; -export type BillingModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - meterCreditsTableId?: boolean; - meterCreditsTableName?: boolean; - meterSourcesTableId?: boolean; - meterSourcesTableName?: boolean; - recordUsageFunction?: boolean; - prefix?: boolean; - balancesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - ledgerTable?: { - select: TableSelect; - }; - meterCreditsTable?: { - select: TableSelect; - }; - meterSourcesTable?: { - select: TableSelect; - }; - metersTable?: { - select: TableSelect; - }; - planSubscriptionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type BillingProviderModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - provider?: boolean; - productsTableId?: boolean; - pricesTableId?: boolean; - subscriptionsTableId?: boolean; - billingCustomersTableId?: boolean; - billingCustomersTableName?: boolean; - billingProductsTableId?: boolean; - billingProductsTableName?: boolean; - billingPricesTableId?: boolean; - billingPricesTableName?: boolean; - billingSubscriptionsTableId?: boolean; - billingSubscriptionsTableName?: boolean; - billingWebhookEventsTableId?: boolean; - billingWebhookEventsTableName?: boolean; - processBillingEventFunction?: boolean; - prefix?: boolean; - billingCustomersTable?: { - select: TableSelect; - }; - billingPricesTable?: { - select: TableSelect; - }; - billingProductsTable?: { - select: TableSelect; - }; - billingSubscriptionsTable?: { - select: TableSelect; - }; - billingWebhookEventsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - pricesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - productsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - subscriptionsTable?: { - select: TableSelect; - }; -}; -export type HierarchyModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - chartEdgesTableId?: boolean; - chartEdgesTableName?: boolean; - hierarchySprtTableId?: boolean; - hierarchySprtTableName?: boolean; - chartEdgeGrantsTableId?: boolean; - chartEdgeGrantsTableName?: boolean; - entityTableId?: boolean; - usersTableId?: boolean; - prefix?: boolean; - privateSchemaName?: boolean; - sprtTableName?: boolean; - rebuildHierarchyFunction?: boolean; - getSubordinatesFunction?: boolean; - getManagersFunction?: boolean; - isManagerOfFunction?: boolean; - createdAt?: boolean; - chartEdgeGrantsTable?: { - select: TableSelect; - }; - chartEdgesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - hierarchySprtTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -// ============ Table Filter Types ============ -export interface OrgGetManagersRecordFilter { - userId?: UUIDFilter; - depth?: IntFilter; - and?: OrgGetManagersRecordFilter[]; - or?: OrgGetManagersRecordFilter[]; - not?: OrgGetManagersRecordFilter; -} -export interface OrgGetSubordinatesRecordFilter { - userId?: UUIDFilter; - depth?: IntFilter; - and?: OrgGetSubordinatesRecordFilter[]; - or?: OrgGetSubordinatesRecordFilter[]; - not?: OrgGetSubordinatesRecordFilter; -} -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} -export interface DatabaseFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `schemaHash` field. */ - schemaHash?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** 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?: DatabaseFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseFilter[]; - /** Negates the expression. */ - not?: DatabaseFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** Filter by the object’s `schemas` relation. */ - schemas?: DatabaseToManySchemaFilter; - /** `schemas` exist. */ - schemasExist?: boolean; - /** Filter by the object’s `tables` relation. */ - tables?: DatabaseToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: DatabaseToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: DatabaseToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: DatabaseToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggerFunctions` relation. */ - triggerFunctions?: DatabaseToManyTriggerFunctionFilter; - /** `triggerFunctions` exist. */ - triggerFunctionsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: DatabaseToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: DatabaseToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: DatabaseToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: DatabaseToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: DatabaseToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `partitions` relation. */ - partitions?: DatabaseToManyPartitionFilter; - /** `partitions` exist. */ - partitionsExist?: boolean; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `apis` relation. */ - apis?: DatabaseToManyApiFilter; - /** `apis` exist. */ - apisExist?: boolean; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: DatabaseToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: DatabaseToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sites` relation. */ - sites?: DatabaseToManySiteFilter; - /** `sites` exist. */ - sitesExist?: boolean; - /** Filter by the object’s `apps` relation. */ - apps?: DatabaseToManyAppFilter; - /** `apps` exist. */ - appsExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: DatabaseToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: DatabaseToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: DatabaseToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: DatabaseToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `databaseSetting` relation. */ - databaseSetting?: DatabaseSettingFilter; - /** A related `databaseSetting` exists. */ - databaseSettingExists?: boolean; - /** Filter by the object’s `apiSettings` relation. */ - apiSettings?: DatabaseToManyApiSettingFilter; - /** `apiSettings` exist. */ - apiSettingsExist?: boolean; - /** Filter by the object’s `rlsSetting` relation. */ - rlsSetting?: RlsSettingFilter; - /** A related `rlsSetting` exists. */ - rlsSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: DatabaseToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; - /** Filter by the object’s `pubkeySetting` relation. */ - pubkeySetting?: PubkeySettingFilter; - /** A related `pubkeySetting` exists. */ - pubkeySettingExists?: boolean; - /** Filter by the object’s `webauthnSetting` relation. */ - webauthnSetting?: WebauthnSettingFilter; - /** A related `webauthnSetting` exists. */ - webauthnSettingExists?: boolean; - /** Filter by the object’s `connectedAccountsModules` relation. */ - connectedAccountsModules?: DatabaseToManyConnectedAccountsModuleFilter; - /** `connectedAccountsModules` exist. */ - connectedAccountsModulesExist?: boolean; - /** Filter by the object’s `cryptoAddressesModules` relation. */ - cryptoAddressesModules?: DatabaseToManyCryptoAddressesModuleFilter; - /** `cryptoAddressesModules` exist. */ - cryptoAddressesModulesExist?: boolean; - /** Filter by the object’s `cryptoAuthModules` relation. */ - cryptoAuthModules?: DatabaseToManyCryptoAuthModuleFilter; - /** `cryptoAuthModules` exist. */ - cryptoAuthModulesExist?: boolean; - /** Filter by the object’s `defaultIdsModules` relation. */ - defaultIdsModules?: DatabaseToManyDefaultIdsModuleFilter; - /** `defaultIdsModules` exist. */ - defaultIdsModulesExist?: boolean; - /** Filter by the object’s `denormalizedTableFields` relation. */ - denormalizedTableFields?: DatabaseToManyDenormalizedTableFieldFilter; - /** `denormalizedTableFields` exist. */ - denormalizedTableFieldsExist?: boolean; - /** Filter by the object’s `emailsModules` relation. */ - emailsModules?: DatabaseToManyEmailsModuleFilter; - /** `emailsModules` exist. */ - emailsModulesExist?: boolean; - /** Filter by the object’s `configSecretsUserModules` relation. */ - configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; - /** `configSecretsUserModules` exist. */ - configSecretsUserModulesExist?: boolean; - /** Filter by the object’s `invitesModules` relation. */ - invitesModules?: DatabaseToManyInvitesModuleFilter; - /** `invitesModules` exist. */ - invitesModulesExist?: boolean; - /** Filter by the object’s `eventsModules` relation. */ - eventsModules?: DatabaseToManyEventsModuleFilter; - /** `eventsModules` exist. */ - eventsModulesExist?: boolean; - /** Filter by the object’s `limitsModules` relation. */ - limitsModules?: DatabaseToManyLimitsModuleFilter; - /** `limitsModules` exist. */ - limitsModulesExist?: boolean; - /** Filter by the object’s `membershipTypesModules` relation. */ - membershipTypesModules?: DatabaseToManyMembershipTypesModuleFilter; - /** `membershipTypesModules` exist. */ - membershipTypesModulesExist?: boolean; - /** Filter by the object’s `membershipsModules` relation. */ - membershipsModules?: DatabaseToManyMembershipsModuleFilter; - /** `membershipsModules` exist. */ - membershipsModulesExist?: boolean; - /** Filter by the object’s `permissionsModules` relation. */ - permissionsModules?: DatabaseToManyPermissionsModuleFilter; - /** `permissionsModules` exist. */ - permissionsModulesExist?: boolean; - /** Filter by the object’s `phoneNumbersModules` relation. */ - phoneNumbersModules?: DatabaseToManyPhoneNumbersModuleFilter; - /** `phoneNumbersModules` exist. */ - phoneNumbersModulesExist?: boolean; - /** Filter by the object’s `profilesModules` relation. */ - profilesModules?: DatabaseToManyProfilesModuleFilter; - /** `profilesModules` exist. */ - profilesModulesExist?: boolean; - /** Filter by the object’s `rlsModule` relation. */ - rlsModule?: RlsModuleFilter; - /** A related `rlsModule` exists. */ - rlsModuleExists?: boolean; - /** Filter by the object’s `userStateModules` relation. */ - userStateModules?: DatabaseToManyUserStateModuleFilter; - /** `userStateModules` exist. */ - userStateModulesExist?: boolean; - /** Filter by the object’s `sessionsModules` relation. */ - sessionsModules?: DatabaseToManySessionsModuleFilter; - /** `sessionsModules` exist. */ - sessionsModulesExist?: boolean; - /** Filter by the object’s `userAuthModules` relation. */ - userAuthModules?: DatabaseToManyUserAuthModuleFilter; - /** `userAuthModules` exist. */ - userAuthModulesExist?: boolean; - /** Filter by the object’s `usersModules` relation. */ - usersModules?: DatabaseToManyUsersModuleFilter; - /** `usersModules` exist. */ - usersModulesExist?: boolean; - /** Filter by the object’s `hierarchyModule` relation. */ - hierarchyModule?: HierarchyModuleFilter; - /** A related `hierarchyModule` exists. */ - hierarchyModuleExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: DatabaseToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisions` relation. */ - relationProvisions?: DatabaseToManyRelationProvisionFilter; - /** `relationProvisions` exist. */ - relationProvisionsExist?: boolean; - /** Filter by the object’s `blueprints` relation. */ - blueprints?: DatabaseToManyBlueprintFilter; - /** `blueprints` exist. */ - blueprintsExist?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: DatabaseToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; - /** Filter by the object’s `storageModules` relation. */ - storageModules?: DatabaseToManyStorageModuleFilter; - /** `storageModules` exist. */ - storageModulesExist?: boolean; - /** Filter by the object’s `entityTypeProvisions` relation. */ - entityTypeProvisions?: DatabaseToManyEntityTypeProvisionFilter; - /** `entityTypeProvisions` exist. */ - entityTypeProvisionsExist?: boolean; - /** Filter by the object’s `rateLimitsModule` relation. */ - rateLimitsModule?: RateLimitsModuleFilter; - /** A related `rateLimitsModule` exists. */ - rateLimitsModuleExists?: boolean; - /** Filter by the object’s `devicesModule` relation. */ - devicesModule?: DevicesModuleFilter; - /** A related `devicesModule` exists. */ - devicesModuleExists?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: DatabaseToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `webauthnCredentialsModules` relation. */ - webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter; - /** `webauthnCredentialsModules` exist. */ - webauthnCredentialsModulesExist?: boolean; - /** Filter by the object’s `webauthnAuthModules` relation. */ - webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter; - /** `webauthnAuthModules` exist. */ - webauthnAuthModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `notificationsModules` relation. */ - notificationsModules?: DatabaseToManyNotificationsModuleFilter; - /** `notificationsModules` exist. */ - notificationsModulesExist?: boolean; - /** Filter by the object’s `plansModule` relation. */ - plansModule?: PlansModuleFilter; - /** A related `plansModule` exists. */ - plansModuleExists?: boolean; - /** Filter by the object’s `billingModule` relation. */ - billingModule?: BillingModuleFilter; - /** A related `billingModule` exists. */ - billingModuleExists?: boolean; - /** Filter by the object’s `billingProviderModule` relation. */ - billingProviderModule?: BillingProviderModuleFilter; - /** A related `billingProviderModule` exists. */ - billingProviderModuleExists?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: DatabaseToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `rateLimitMetersModule` relation. */ - rateLimitMetersModule?: RateLimitMetersModuleFilter; - /** A related `rateLimitMetersModule` exists. */ - rateLimitMetersModuleExists?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `inferenceLogModules` relation. */ - inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; - /** `inferenceLogModules` exist. */ - inferenceLogModulesExist?: boolean; - /** Filter by the object’s `computeLogModules` relation. */ - computeLogModules?: DatabaseToManyComputeLogModuleFilter; - /** `computeLogModules` exist. */ - computeLogModulesExist?: boolean; - /** Filter by the object’s `transferLogModules` relation. */ - transferLogModules?: DatabaseToManyTransferLogModuleFilter; - /** `transferLogModules` exist. */ - transferLogModulesExist?: boolean; - /** Filter by the object’s `storageLogModules` relation. */ - storageLogModules?: DatabaseToManyStorageLogModuleFilter; - /** `storageLogModules` exist. */ - storageLogModulesExist?: boolean; - /** Filter by the object’s `dbUsageModules` relation. */ - dbUsageModules?: DatabaseToManyDbUsageModuleFilter; - /** `dbUsageModules` exist. */ - dbUsageModulesExist?: boolean; - /** Filter by the object’s `agentModules` relation. */ - agentModules?: DatabaseToManyAgentModuleFilter; - /** `agentModules` exist. */ - agentModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModules` relation. */ - merkleStoreModules?: DatabaseToManyMerkleStoreModuleFilter; - /** `merkleStoreModules` exist. */ - merkleStoreModulesExist?: boolean; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: DatabaseToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `namespaceModules` relation. */ - namespaceModules?: DatabaseToManyNamespaceModuleFilter; - /** `namespaceModules` exist. */ - namespaceModulesExist?: boolean; - /** Filter by the object’s `functionModules` relation. */ - functionModules?: DatabaseToManyFunctionModuleFilter; - /** `functionModules` exist. */ - functionModulesExist?: boolean; - /** Filter by the object’s `databaseProvisionModules` relation. */ - databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; - /** `databaseProvisionModules` exist. */ - databaseProvisionModulesExist?: boolean; -} -export interface SchemaFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: 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?: SchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; - /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: SchemaToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: SchemaToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */ - identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModulesByPrivateSchemaId` exist. */ - identityProvidersModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByPrivateSchemaId` relation. */ - realtimeModulesByPrivateSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesByPrivateSchemaId` exist. */ - realtimeModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. */ - realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesBySubscriptionsSchemaId` exist. */ - realtimeModulesBySubscriptionsSchemaIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation. */ - merkleStoreModulesByPrivateSchemaId?: SchemaToManyMerkleStoreModuleFilter; - /** `merkleStoreModulesByPrivateSchemaId` exist. */ - merkleStoreModulesByPrivateSchemaIdExist?: boolean; -} -export interface TableFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `timestamps` field. */ - timestamps?: BooleanFilter; - /** Filter by the object’s `peoplestamps` field. */ - peoplestamps?: BooleanFilter; - /** Filter by the object’s `pluralName` field. */ - pluralName?: StringFilter; - /** Filter by the object’s `singularName` field. */ - singularName?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `partitioned` field. */ - partitioned?: BooleanFilter; - /** Filter by the object’s `partitionStrategy` field. */ - partitionStrategy?: StringFilter; - /** Filter by the object’s `partitionKeyNames` field. */ - partitionKeyNames?: StringListFilter; - /** Filter by the object’s `partitionKeyTypes` field. */ - partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: 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?: TableFilter[]; - /** Checks for any expressions in this list. */ - or?: TableFilter[]; - /** Negates the expression. */ - not?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `inherits` relation. */ - inherits?: TableFilter; - /** A related `inherits` exists. */ - inheritsExists?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: TableToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: TableToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: TableToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: TableToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: TableToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: TableToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: TableToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: TableToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: TableToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: TableToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ - embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunksByChunksTableId` exist. */ - embeddingChunksByChunksTableIdExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ - spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; - /** `spatialRelationsByRefTableId` exist. */ - spatialRelationsByRefTableIdExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: TableToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `partition` relation. */ - partition?: PartitionFilter; - /** A related `partition` exists. */ - partitionExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: TableToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisionsBySourceTableId` relation. */ - relationProvisionsBySourceTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsBySourceTableId` exist. */ - relationProvisionsBySourceTableIdExist?: boolean; - /** Filter by the object’s `relationProvisionsByTargetTableId` relation. */ - relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsByTargetTableId` exist. */ - relationProvisionsByTargetTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. */ - sessionSecretsModulesBySessionsTableId?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModulesBySessionsTableId` exist. */ - sessionSecretsModulesBySessionsTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: TableToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByChangeLogTableId` relation. */ - realtimeModulesByChangeLogTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByChangeLogTableId` exist. */ - realtimeModulesByChangeLogTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. */ - realtimeModulesByListenerNodeTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByListenerNodeTableId` exist. */ - realtimeModulesByListenerNodeTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. */ - realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesBySourceRegistryTableId` exist. */ - realtimeModulesBySourceRegistryTableIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; -} -export interface CheckConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `expr` field. */ - expr?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: CheckConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: CheckConstraintFilter[]; - /** Negates the expression. */ - not?: CheckConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface FieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: JSONFilter; - /** Filter by the object’s `fieldOrder` field. */ - fieldOrder?: IntFilter; - /** Filter by the object’s `regexp` field. */ - regexp?: StringFilter; - /** Filter by the object’s `chk` field. */ - chk?: JSONFilter; - /** Filter by the object’s `chkExpr` field. */ - chkExpr?: JSONFilter; - /** Filter by the object’s `min` field. */ - min?: FloatFilter; - /** Filter by the object’s `max` field. */ - max?: FloatFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** 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?: FieldFilter[]; - /** Checks for any expressions in this list. */ - or?: FieldFilter[]; - /** Negates the expression. */ - not?: FieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: FieldToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ - spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; - /** `spatialRelationsByRefFieldId` exist. */ - spatialRelationsByRefFieldIdExist?: boolean; -} -export interface SpatialRelationFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `operator` field. */ - operator?: StringFilter; - /** Filter by the object’s `paramName` field. */ - paramName?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: SpatialRelationFilter[]; - /** Checks for any expressions in this list. */ - or?: SpatialRelationFilter[]; - /** Negates the expression. */ - not?: SpatialRelationFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface ForeignKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldIds` field. */ - refFieldIds?: UUIDListFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `updateAction` field. */ - updateAction?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: ForeignKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: ForeignKeyConstraintFilter[]; - /** Negates the expression. */ - not?: ForeignKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface FullTextSearchFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `weights` field. */ - weights?: StringListFilter; - /** Filter by the object’s `langs` field. */ - langs?: StringListFilter; - /** 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?: FullTextSearchFilter[]; - /** Checks for any expressions in this list. */ - or?: FullTextSearchFilter[]; - /** Negates the expression. */ - not?: FullTextSearchFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface IndexFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `includeFieldIds` field. */ - includeFieldIds?: UUIDListFilter; - /** Filter by the object’s `accessMethod` field. */ - accessMethod?: StringFilter; - /** Filter by the object’s `indexParams` field. */ - indexParams?: JSONFilter; - /** Filter by the object’s `whereClause` field. */ - whereClause?: JSONFilter; - /** Filter by the object’s `isUnique` field. */ - isUnique?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `opClasses` field. */ - opClasses?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: IndexFilter[]; - /** Checks for any expressions in this list. */ - or?: IndexFilter[]; - /** Negates the expression. */ - not?: IndexFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PolicyFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `permissive` field. */ - permissive?: BooleanFilter; - /** Filter by the object’s `disabled` field. */ - disabled?: BooleanFilter; - /** Filter by the object’s `policyType` field. */ - policyType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PolicyFilter[]; - /** Checks for any expressions in this list. */ - or?: PolicyFilter[]; - /** Negates the expression. */ - not?: PolicyFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PrimaryKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PrimaryKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: PrimaryKeyConstraintFilter[]; - /** Negates the expression. */ - not?: PrimaryKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface TableGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: 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?: TableGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: TableGrantFilter[]; - /** Negates the expression. */ - not?: TableGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface TriggerFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `functionName` field. */ - functionName?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: TriggerFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFilter[]; - /** Negates the expression. */ - not?: TriggerFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface UniqueConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: UniqueConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: UniqueConstraintFilter[]; - /** Negates the expression. */ - not?: UniqueConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface ViewFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `viewType` field. */ - viewType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `filterType` field. */ - filterType?: StringFilter; - /** Filter by the object’s `filterData` field. */ - filterData?: JSONFilter; - /** Filter by the object’s `securityInvoker` field. */ - securityInvoker?: BooleanFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ViewFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewFilter[]; - /** Negates the expression. */ - not?: ViewFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** A related `table` exists. */ - tableExists?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: ViewToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: ViewToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: ViewToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; -} -export interface ViewTableFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `joinOrder` field. */ - joinOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: ViewTableFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewTableFilter[]; - /** Negates the expression. */ - not?: ViewTableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface ViewGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `withGrantOption` field. */ - withGrantOption?: BooleanFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ViewGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewGrantFilter[]; - /** Negates the expression. */ - not?: ViewGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface ViewRuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ViewRuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewRuleFilter[]; - /** Negates the expression. */ - not?: ViewRuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface EmbeddingChunkFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `embeddingFieldId` field. */ - embeddingFieldId?: UUIDFilter; - /** Filter by the object’s `chunksTableId` field. */ - chunksTableId?: UUIDFilter; - /** Filter by the object’s `chunksTableName` field. */ - chunksTableName?: StringFilter; - /** Filter by the object’s `contentFieldName` field. */ - contentFieldName?: StringFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: IntFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `chunkSize` field. */ - chunkSize?: IntFilter; - /** Filter by the object’s `chunkOverlap` field. */ - chunkOverlap?: IntFilter; - /** Filter by the object’s `chunkStrategy` field. */ - chunkStrategy?: StringFilter; - /** Filter by the object’s `metadataFields` field. */ - metadataFields?: JSONFilter; - /** Filter by the object’s `searchIndexes` field. */ - searchIndexes?: JSONFilter; - /** Filter by the object’s `enqueueChunkingJob` field. */ - enqueueChunkingJob?: BooleanFilter; - /** Filter by the object’s `chunkingTaskName` field. */ - chunkingTaskName?: StringFilter; - /** Filter by the object’s `embeddingModel` field. */ - embeddingModel?: StringFilter; - /** Filter by the object’s `embeddingProvider` field. */ - embeddingProvider?: StringFilter; - /** Filter by the object’s `parentFkFieldId` field. */ - parentFkFieldId?: 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?: EmbeddingChunkFilter[]; - /** Checks for any expressions in this list. */ - or?: EmbeddingChunkFilter[]; - /** Negates the expression. */ - not?: EmbeddingChunkFilter; - /** Filter by the object’s `chunksTable` relation. */ - chunksTable?: TableFilter; - /** A related `chunksTable` exists. */ - chunksTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `embeddingField` relation. */ - embeddingField?: FieldFilter; - /** A related `embeddingField` exists. */ - embeddingFieldExists?: boolean; - /** Filter by the object’s `parentFkField` relation. */ - parentFkField?: FieldFilter; - /** A related `parentFkField` exists. */ - parentFkFieldExists?: boolean; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SecureTableProvisionFilter { - /** 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 `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `sourceTable` relation. */ - sourceTable?: TableFilter; - /** Filter by the object’s `targetTable` relation. */ - targetTable?: TableFilter; -} -export interface 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; - /** Filter by the object’s `changeLogTable` relation. */ - changeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `listenerNodeTable` relation. */ - listenerNodeTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sourceRegistryTable` relation. */ - sourceRegistryTable?: TableFilter; - /** Filter by the object’s `subscriptionsSchema` relation. */ - subscriptionsSchema?: SchemaFilter; -} -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SchemaGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: 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?: SchemaGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaGrantFilter[]; - /** Negates the expression. */ - not?: SchemaGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface DefaultPrivilegeFilter { - /** 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 `objectType` field. */ - objectType?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: DefaultPrivilegeFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultPrivilegeFilter[]; - /** Negates the expression. */ - not?: DefaultPrivilegeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface EnumFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `values` field. */ - values?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: EnumFilter[]; - /** Checks for any expressions in this list. */ - or?: EnumFilter[]; - /** Negates the expression. */ - not?: EnumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface FunctionFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionFilter[]; - /** Negates the expression. */ - not?: FunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface ApiSchemaFilter { - /** 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 `apiId` field. */ - apiId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ApiSchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSchemaFilter[]; - /** Negates the expression. */ - not?: ApiSchemaFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface ApiModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ApiModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiModuleFilter[]; - /** Negates the expression. */ - not?: ApiModuleFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface DomainFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: ConstructiveInternalTypeHostnameFilter; - /** Filter by the object’s `domain` field. */ - domain?: ConstructiveInternalTypeHostnameFilter; - /** Checks for all expressions in this list. */ - and?: DomainFilter[]; - /** Checks for any expressions in this list. */ - or?: DomainFilter[]; - /** Negates the expression. */ - not?: DomainFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** A related `site` exists. */ - siteExists?: boolean; -} -export interface SiteMetadatumFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface SiteModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteModuleFilter[]; - /** Negates the expression. */ - not?: SiteModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface SiteThemeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `theme` field. */ - theme?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; - /** Negates the expression. */ - not?: SiteThemeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface CorsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: CorsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: CorsSettingFilter[]; - /** Negates the expression. */ - not?: CorsSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -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 `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 `scopeField` field. */ - scopeField?: 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 `commitTable` relation. */ - commitTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `objectTable` relation. */ - objectTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storeTable` relation. */ - storeTable?: TableFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; -} -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 `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 `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 `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scopeField` field. */ - scopeField?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** 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?: GraphModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; - /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `executionsTable` relation. */ - executionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `graphsTable` relation. */ - graphsTable?: TableFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; - /** Filter by the object’s `outputsTable` relation. */ - outputsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `publicSchema` relation. */ - publicSchema?: SchemaFilter; -} -export interface TriggerFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `code` field. */ - code?: 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?: TriggerFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFunctionFilter[]; - /** Negates the expression. */ - not?: TriggerFunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface PartitionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `strategy` field. */ - strategy?: StringFilter; - /** Filter by the object’s `partitionKeyId` field. */ - partitionKeyId?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `retentionKeepTable` field. */ - retentionKeepTable?: BooleanFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `namingPattern` field. */ - namingPattern?: StringFilter; - /** Filter by the object’s `isParented` field. */ - isParented?: 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?: PartitionFilter[]; - /** Checks for any expressions in this list. */ - or?: PartitionFilter[]; - /** Negates the expression. */ - not?: PartitionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `partitionKey` relation. */ - partitionKey?: FieldFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface DatabaseTransferFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `targetOwnerId` field. */ - targetOwnerId?: UUIDFilter; - /** Filter by the object’s `sourceApproved` field. */ - sourceApproved?: BooleanFilter; - /** Filter by the object’s `targetApproved` field. */ - targetApproved?: BooleanFilter; - /** Filter by the object’s `sourceApprovedAt` field. */ - sourceApprovedAt?: DatetimeFilter; - /** Filter by the object’s `targetApprovedAt` field. */ - targetApprovedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `initiatedBy` field. */ - initiatedBy?: UUIDFilter; - /** Filter by the object’s `notes` field. */ - notes?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseTransferFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseTransferFilter[]; - /** Negates the expression. */ - not?: DatabaseTransferFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ApiFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ApiFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiFilter[]; - /** Negates the expression. */ - not?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: ApiToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: ApiToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: ApiToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `apiSetting` relation. */ - apiSetting?: ApiSettingFilter; - /** A related `apiSetting` exists. */ - apiSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: ApiToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; -} -export interface SiteFilter { - /** Filter by the object’s `id` field. */ - id?: 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. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeAttachmentFilter; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Negates the expression. */ - not?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** A related `app` exists. */ - appExists?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: SiteToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: SiteToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; -} -export interface AppFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `appImage` field. */ - appImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `appStoreLink` field. */ - appStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Filter by the object’s `appStoreId` field. */ - appStoreId?: StringFilter; - /** Filter by the object’s `appIdPrefix` field. */ - appIdPrefix?: StringFilter; - /** Filter by the object’s `playStoreLink` field. */ - playStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Negates the expression. */ - not?: AppFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ApiSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: ApiSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSettingFilter[]; - /** Negates the expression. */ - not?: ApiSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ConnectedAccountsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Checks for all expressions in this list. */ - and?: CryptoAddressesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressesModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAddressesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface CryptoAuthModuleFilter { - /** 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 `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `addressesTableId` field. */ - addressesTableId?: UUIDFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `signInRequestChallenge` field. */ - signInRequestChallenge?: StringFilter; - /** Filter by the object’s `signInRecordFailure` field. */ - signInRecordFailure?: StringFilter; - /** Filter by the object’s `signUpWithKey` field. */ - signUpWithKey?: StringFilter; - /** Filter by the object’s `signInWithChallenge` field. */ - signInWithChallenge?: StringFilter; - /** Checks for all expressions in this list. */ - and?: CryptoAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAuthModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface DefaultIdsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: DefaultIdsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultIdsModuleFilter[]; - /** Negates the expression. */ - not?: DefaultIdsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface DenormalizedTableFieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `setIds` field. */ - setIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `refIds` field. */ - refIds?: UUIDListFilter; - /** Filter by the object’s `useUpdates` field. */ - useUpdates?: BooleanFilter; - /** Filter by the object’s `updateDefaults` field. */ - updateDefaults?: BooleanFilter; - /** Filter by the object’s `funcName` field. */ - funcName?: StringFilter; - /** Filter by the object’s `funcOrder` field. */ - funcOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: DenormalizedTableFieldFilter[]; - /** Checks for any expressions in this list. */ - or?: DenormalizedTableFieldFilter[]; - /** Negates the expression. */ - not?: DenormalizedTableFieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface EmailsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: EmailsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailsModuleFilter[]; - /** Negates the expression. */ - not?: EmailsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `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; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface InvitesModuleFilter { - /** 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 `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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; - /** Filter by the object’s `claimedInvitesTable` relation. */ - claimedInvitesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `invitesTable` relation. */ - invitesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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; - /** Filter by the object’s `removeEvent` field. */ - removeEvent?: StringFilter; - /** Filter by the object’s `tgEvent` field. */ - tgEvent?: StringFilter; - /** Filter by the object’s `tgEventToggle` field. */ - tgEventToggle?: StringFilter; - /** Filter by the object’s `tgEventToggleBool` field. */ - tgEventToggleBool?: StringFilter; - /** Filter by the object’s `tgEventBool` field. */ - tgEventBool?: StringFilter; - /** Filter by the object’s `upsertAggregate` field. */ - 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. */ - levelAchieved?: StringFilter; - /** Filter by the object’s `tgCheckAchievements` field. */ - tgCheckAchievements?: StringFilter; - /** Filter by the object’s `grantAchievement` field. */ - grantAchievement?: StringFilter; - /** Filter by the object’s `tgAchievementReward` field. */ - tgAchievementReward?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EventsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EventsModuleFilter[]; - /** Negates the expression. */ - not?: EventsModuleFilter; - /** Filter by the object’s `achievementRewardsTable` relation. */ - achievementRewardsTable?: TableFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventAggregatesTable` relation. */ - eventAggregatesTable?: TableFilter; - /** Filter by the object’s `eventTypesTable` relation. */ - eventTypesTable?: TableFilter; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** Filter by the object’s `levelGrantsTable` relation. */ - levelGrantsTable?: TableFilter; - /** Filter by the object’s `levelRequirementsTable` relation. */ - levelRequirementsTable?: TableFilter; - /** Filter by the object’s `levelsTable` relation. */ - levelsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface LimitsModuleFilter { - /** 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 `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 `limitIncrementFunction` field. */ - limitIncrementFunction?: StringFilter; - /** Filter by the object’s `limitDecrementFunction` field. */ - limitDecrementFunction?: StringFilter; - /** Filter by the object’s `limitIncrementTrigger` field. */ - limitIncrementTrigger?: StringFilter; - /** Filter by the object’s `limitDecrementTrigger` field. */ - limitDecrementTrigger?: StringFilter; - /** Filter by the object’s `limitUpdateTrigger` field. */ - limitUpdateTrigger?: StringFilter; - /** Filter by the object’s `limitCheckFunction` field. */ - limitCheckFunction?: StringFilter; - /** Filter by the object’s `limitCreditsTableId` field. */ - limitCreditsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `creditCodesTableId` field. */ - creditCodesTableId?: UUIDFilter; - /** Filter by the object’s `creditCodeItemsTableId` field. */ - creditCodeItemsTableId?: UUIDFilter; - /** Filter by the object’s `creditRedemptionsTableId` field. */ - creditRedemptionsTableId?: UUIDFilter; - /** Filter by the object’s `aggregateTableId` field. */ - aggregateTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsTableId` field. */ - limitCapsTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsDefaultsTableId` field. */ - limitCapsDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `capCheckTrigger` field. */ - capCheckTrigger?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: LimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitsModuleFilter[]; - /** Negates the expression. */ - not?: LimitsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `aggregateTable` relation. */ - aggregateTable?: TableFilter; - /** A related `aggregateTable` exists. */ - aggregateTableExists?: boolean; - /** Filter by the object’s `creditCodeItemsTable` relation. */ - creditCodeItemsTable?: TableFilter; - /** A related `creditCodeItemsTable` exists. */ - creditCodeItemsTableExists?: boolean; - /** Filter by the object’s `creditCodesTable` relation. */ - creditCodesTable?: TableFilter; - /** A related `creditCodesTable` exists. */ - creditCodesTableExists?: boolean; - /** Filter by the object’s `creditRedemptionsTable` relation. */ - creditRedemptionsTable?: TableFilter; - /** A related `creditRedemptionsTable` exists. */ - creditRedemptionsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** A related `eventsTable` exists. */ - eventsTableExists?: boolean; - /** Filter by the object’s `limitCapsDefaultsTable` relation. */ - limitCapsDefaultsTable?: TableFilter; - /** A related `limitCapsDefaultsTable` exists. */ - limitCapsDefaultsTableExists?: boolean; - /** Filter by the object’s `limitCapsTable` relation. */ - limitCapsTable?: TableFilter; - /** A related `limitCapsTable` exists. */ - limitCapsTableExists?: boolean; - /** Filter by the object’s `limitCreditsTable` relation. */ - limitCreditsTable?: TableFilter; - /** A related `limitCreditsTable` exists. */ - limitCreditsTableExists?: boolean; - /** Filter by the object’s `limitWarningStateTable` relation. */ - limitWarningStateTable?: TableFilter; - /** A related `limitWarningStateTable` exists. */ - limitWarningStateTableExists?: boolean; - /** Filter by the object’s `limitWarningsTable` relation. */ - limitWarningsTable?: TableFilter; - /** A related `limitWarningsTable` exists. */ - limitWarningsTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface MembershipTypesModuleFilter { - /** 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?: MembershipTypesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; - /** Negates the expression. */ - not?: MembershipTypesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultLimitsTable` relation. */ - defaultLimitsTable?: TableFilter; - /** Filter by the object’s `defaultPermissionsTable` relation. */ - defaultPermissionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `entityTableOwner` relation. */ - entityTableOwner?: FieldFilter; - /** A related `entityTableOwner` exists. */ - entityTableOwnerExists?: boolean; - /** Filter by the object’s `grantsTable` relation. */ - grantsTable?: TableFilter; - /** Filter by the object’s `limitsTable` relation. */ - limitsTable?: TableFilter; - /** Filter by the object’s `membersTable` relation. */ - membersTable?: TableFilter; - /** Filter by the object’s `membershipDefaultsTable` relation. */ - membershipDefaultsTable?: TableFilter; - /** Filter by the object’s `membershipSettingsTable` relation. */ - membershipSettingsTable?: TableFilter; - /** A related `membershipSettingsTable` exists. */ - membershipSettingsTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sprtTable` relation. */ - sprtTable?: TableFilter; -} -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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PhoneNumbersModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: PhoneNumbersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumbersModuleFilter[]; - /** Negates the expression. */ - not?: PhoneNumbersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `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 `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; - /** Filter by the object’s `profileGrantsTableId` field. */ - profileGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileGrantsTableName` field. */ - profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ - profileDefinitionGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ - profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `profileTemplatesTableId` field. */ - profileTemplatesTableId?: UUIDFilter; - /** Filter by the object’s `profileTemplatesTableName` field. */ - profileTemplatesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ProfilesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ProfilesModuleFilter[]; - /** Negates the expression. */ - not?: ProfilesModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `profileDefinitionGrantsTable` relation. */ - profileDefinitionGrantsTable?: TableFilter; - /** Filter by the object’s `profileGrantsTable` relation. */ - profileGrantsTable?: TableFilter; - /** Filter by the object’s `profilePermissionsTable` relation. */ - profilePermissionsTable?: TableFilter; - /** Filter by the object’s `profileTemplatesTable` relation. */ - profileTemplatesTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SessionsModuleFilter { - /** 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 `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsDefaultExpiration` field. */ - sessionsDefaultExpiration?: IntervalFilter; - /** Filter by the object’s `sessionsTable` field. */ - sessionsTable?: StringFilter; - /** Filter by the object’s `sessionCredentialsTable` field. */ - sessionCredentialsTable?: StringFilter; - /** Filter by the object’s `authSettingsTable` field. */ - authSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SessionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SessionsModuleFilter[]; - /** Negates the expression. */ - not?: SessionsModuleFilter; - /** Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. */ - authSettingsTableByAuthSettingsTableId?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. */ - sessionCredentialsTableBySessionCredentialsTableId?: TableFilter; - /** Filter by the object’s `sessionsTableBySessionsTableId` relation. */ - sessionsTableBySessionsTableId?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface UserAuthModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `encryptedTableId` field. */ - encryptedTableId?: 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 `auditsTableName` field. */ - auditsTableName?: StringFilter; - /** Filter by the object’s `signInFunction` field. */ - signInFunction?: StringFilter; - /** Filter by the object’s `signUpFunction` field. */ - signUpFunction?: StringFilter; - /** Filter by the object’s `signOutFunction` field. */ - signOutFunction?: StringFilter; - /** Filter by the object’s `setPasswordFunction` field. */ - setPasswordFunction?: StringFilter; - /** Filter by the object’s `resetPasswordFunction` field. */ - resetPasswordFunction?: StringFilter; - /** Filter by the object’s `forgotPasswordFunction` field. */ - forgotPasswordFunction?: StringFilter; - /** Filter by the object’s `sendVerificationEmailFunction` field. */ - sendVerificationEmailFunction?: StringFilter; - /** Filter by the object’s `verifyEmailFunction` field. */ - verifyEmailFunction?: StringFilter; - /** Filter by the object’s `verifyPasswordFunction` field. */ - verifyPasswordFunction?: StringFilter; - /** Filter by the object’s `checkPasswordFunction` field. */ - checkPasswordFunction?: StringFilter; - /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ - sendAccountDeletionEmailFunction?: StringFilter; - /** Filter by the object’s `deleteAccountFunction` field. */ - deleteAccountFunction?: StringFilter; - /** Filter by the object’s `signInCrossOriginFunction` field. */ - signInCrossOriginFunction?: StringFilter; - /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ - requestCrossOriginTokenFunction?: StringFilter; - /** Filter by the object’s `extendTokenExpires` field. */ - extendTokenExpires?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserAuthModuleFilter[]; - /** Negates the expression. */ - not?: UserAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `encryptedTable` relation. */ - encryptedTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface UsersModuleFilter { - /** 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 `typeTableId` field. */ - typeTableId?: UUIDFilter; - /** Filter by the object’s `typeTableName` field. */ - typeTableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UsersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UsersModuleFilter[]; - /** Negates the expression. */ - not?: UsersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `typeTable` relation. */ - typeTable?: TableFilter; -} -export interface BlueprintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `templateId` field. */ - templateId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintFilter[]; - /** Negates the expression. */ - not?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `template` relation. */ - template?: BlueprintTemplateFilter; - /** A related `template` exists. */ - templateExists?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; -} -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `version` field. */ - version?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `visibility` field. */ - visibility?: StringFilter; - /** Filter by the object’s `categories` field. */ - categories?: StringListFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `definitionSchemaVersion` field. */ - definitionSchemaVersion?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `complexity` field. */ - complexity?: StringFilter; - /** Filter by the object’s `copyCount` field. */ - copyCount?: IntFilter; - /** Filter by the object’s `forkCount` field. */ - forkCount?: IntFilter; - /** Filter by the object’s `forkedFromId` field. */ - forkedFromId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintTemplateFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintTemplateFilter[]; - /** Negates the expression. */ - not?: BlueprintTemplateFilter; - /** Filter by the object’s `forkedFrom` relation. */ - forkedFrom?: BlueprintTemplateFilter; - /** A related `forkedFrom` exists. */ - forkedFromExists?: boolean; - /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ - blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; - /** `blueprintTemplatesByForkedFromId` exist. */ - blueprintTemplatesByForkedFromIdExist?: boolean; - /** Filter by the object’s `blueprintsByTemplateId` relation. */ - blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; - /** `blueprintsByTemplateId` exist. */ - blueprintsByTemplateIdExist?: boolean; -} -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface StorageModuleFilter { - /** 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 `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `filesTableId` field. */ - filesTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `filesTableName` field. */ - filesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - hasPathShares?: BooleanFilter; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: UUIDFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `hasVersioning` field. */ - hasVersioning?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; - /** Filter by the object’s `fileEventsTableId` field. */ - fileEventsTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Filter by the object’s `bucketsTable` relation. */ - bucketsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `fileEventsTable` relation. */ - fileEventsTable?: TableFilter; - /** A related `fileEventsTable` exists. */ - fileEventsTableExists?: boolean; - /** Filter by the object’s `filesTable` relation. */ - filesTable?: TableFilter; - /** Filter by the object’s `pathSharesTable` relation. */ - pathSharesTable?: TableFilter; - /** A related `pathSharesTable` exists. */ - pathSharesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface EntityTypeProvisionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - 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 `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface WebauthnCredentialsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialsModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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[]; - /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; - /** Filter by the object’s `authSettingsTable` relation. */ - authSettingsTable?: TableFilter; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `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; - /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; - /** Negates the expression. */ - not?: NotificationsModuleFilter; - /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ - channelsTableByChannelsTableId?: TableFilter; - /** A related `channelsTableByChannelsTableId` exists. */ - channelsTableByChannelsTableIdExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ - deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ - deliveryLogTableByDeliveryLogTableIdExists?: boolean; - /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ - notificationsTableByNotificationsTableId?: TableFilter; - /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ - organizationSettingsTableByOrganizationSettingsTableId?: TableFilter; - /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */ - organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ - preferencesTableByPreferencesTableId?: TableFilter; - /** A related `preferencesTableByPreferencesTableId` exists. */ - preferencesTableByPreferencesTableIdExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ - readStateTableByReadStateTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ - userSettingsTableByUserSettingsTableId?: TableFilter; - /** A related `userSettingsTableByUserSettingsTableId` exists. */ - userSettingsTableByUserSettingsTableIdExists?: boolean; -} -export interface InferenceLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; - /** Negates the expression. */ - not?: InferenceLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `inferenceLogTable` relation. */ - inferenceLogTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface ComputeLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; - /** Negates the expression. */ - not?: ComputeLogModuleFilter; - /** Filter by the object’s `computeLogTable` relation. */ - computeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface TransferLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; - /** Negates the expression. */ - not?: TransferLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `transferLogTable` relation. */ - transferLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface StorageLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; - /** Negates the expression. */ - not?: StorageLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storageLogTable` relation. */ - storageLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; - /** Negates the expression. */ - not?: DbUsageModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `queryStatsDailyTable` relation. */ - queryStatsDailyTable?: TableFilter; - /** Filter by the object’s `queryStatsLogTable` relation. */ - queryStatsLogTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `tableStatsDailyTable` relation. */ - tableStatsDailyTable?: TableFilter; - /** Filter by the object’s `tableStatsLogTable` relation. */ - tableStatsLogTable?: TableFilter; -} -export interface AgentModuleFilter { - /** 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 `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 `knowledgeTableId` field. */ - knowledgeTableId?: UUIDFilter; - /** Filter by the object’s `threadTableName` field. */ - threadTableName?: StringFilter; - /** Filter by the object’s `messageTableName` field. */ - messageTableName?: StringFilter; - /** Filter by the object’s `taskTableName` field. */ - taskTableName?: StringFilter; - /** Filter by the object’s `promptsTableName` field. */ - promptsTableName?: StringFilter; - /** Filter by the object’s `knowledgeTableName` field. */ - knowledgeTableName?: StringFilter; - /** Filter by the object’s `hasKnowledge` field. */ - hasKnowledge?: BooleanFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `knowledgeConfig` field. */ - knowledgeConfig?: JSONFilter; - /** Filter by the object’s `knowledgePolicies` field. */ - knowledgePolicies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentModuleFilter[]; - /** Negates the expression. */ - not?: AgentModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `knowledgeTable` relation. */ - knowledgeTable?: TableFilter; - /** A related `knowledgeTable` exists. */ - knowledgeTableExists?: boolean; - /** Filter by the object’s `messageTable` relation. */ - messageTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `promptsTable` relation. */ - promptsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `taskTable` relation. */ - taskTable?: TableFilter; - /** Filter by the object’s `threadTable` relation. */ - threadTable?: TableFilter; -} -export interface 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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `namespaceEventsTable` relation. */ - namespaceEventsTable?: TableFilter; - /** Filter by the object’s `namespacesTable` relation. */ - namespacesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -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 `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 `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `configRequirementsTable` relation. */ - configRequirementsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `definitionsTable` relation. */ - definitionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `executionLogsTable` relation. */ - executionLogsTable?: TableFilter; - /** Filter by the object’s `invocationsTable` relation. */ - invocationsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `requirementsTable` relation. */ - requirementsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretDefinitionsTable` relation. */ - secretDefinitionsTable?: TableFilter; -} -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?: StringListFilter; - /** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** A related `database` exists. */ - databaseExists?: boolean; -} -export interface AppAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; - /** Negates the expression. */ - not?: AppAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface AppOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; - /** Negates the expression. */ - not?: AppOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -export interface OrgMemberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberFilter[]; - /** Negates the expression. */ - not?: OrgMemberFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface CryptoAddressFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: CryptoAddressFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; - /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface WebauthnCredentialFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `credentialId` field. */ - credentialId?: StringFilter; - /** Filter by the object’s `publicKey` field. */ - publicKey?: Base64EncodedBinaryFilter; - /** Filter by the object’s `signCount` field. */ - signCount?: BigIntFilter; - /** Filter by the object’s `webauthnUserId` field. */ - webauthnUserId?: StringFilter; - /** Filter by the object’s `transports` field. */ - transports?: StringListFilter; - /** Filter by the object’s `credentialDeviceType` field. */ - credentialDeviceType?: StringFilter; - /** Filter by the object’s `backupEligible` field. */ - backupEligible?: BooleanFilter; - /** Filter by the object’s `backupState` field. */ - backupState?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `lastUsedAt` field. */ - lastUsedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; - /** Negates the expression. */ - not?: AppClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -export interface OrgClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; - /** Negates the expression. */ - not?: OrgClaimedInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -export interface AuditLogAuthFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogAuthFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogAuthFilter[]; - /** Negates the expression. */ - not?: AuditLogAuthFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; -} -export interface IdentityProviderFilter { - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `enabled` field. */ - enabled?: BooleanFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProviderFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProviderFilter[]; - /** Negates the expression. */ - not?: IdentityProviderFilter; -} -export interface AppPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; -} -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; - /** Checks for all expressions in this list. */ - and?: MigrateFileFilter[]; - /** Checks for any expressions in this list. */ - or?: MigrateFileFilter[]; - /** Negates the expression. */ - not?: MigrateFileFilter; -} -export interface DevicesModuleFilter { - /** 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 `userDevicesTableId` field. */ - userDevicesTableId?: UUIDFilter; - /** Filter by the object’s `deviceSettingsTableId` field. */ - deviceSettingsTableId?: UUIDFilter; - /** Filter by the object’s `userDevicesTable` field. */ - userDevicesTable?: StringFilter; - /** Filter by the object’s `deviceSettingsTable` field. */ - deviceSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DevicesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DevicesModuleFilter[]; - /** Negates the expression. */ - not?: DevicesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. */ - deviceSettingsTableByDeviceSettingsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ - userDevicesTableByUserDevicesTableId?: TableFilter; -} -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface NodeTypeRegistryFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parameterSchema` field. */ - parameterSchema?: JSONFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: NodeTypeRegistryFilter[]; - /** Checks for any expressions in this list. */ - or?: NodeTypeRegistryFilter[]; - /** Negates the expression. */ - not?: NodeTypeRegistryFilter; -} -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface UserConnectedAccountFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `service` field. */ - service?: StringFilter; - /** Filter by the object’s `identifier` field. */ - identifier?: StringFilter; - /** Filter by the object’s `details` field. */ - details?: JSONFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: UserConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: UserConnectedAccountFilter[]; - /** Negates the expression. */ - not?: UserConnectedAccountFilter; -} -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -export interface PubkeySettingFilter { - /** 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 `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `signUpWithKeyFunctionId` field. */ - signUpWithKeyFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ - signInRequestChallengeFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRecordFailureFunctionId` field. */ - signInRecordFailureFunctionId?: UUIDFilter; - /** Filter by the object’s `signInWithChallengeFunctionId` field. */ - signInWithChallengeFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PubkeySettingFilter[]; - /** Checks for any expressions in this list. */ - or?: PubkeySettingFilter[]; - /** Negates the expression. */ - not?: PubkeySettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `signInRecordFailureFunction` relation. */ - signInRecordFailureFunction?: FunctionFilter; - /** A related `signInRecordFailureFunction` exists. */ - signInRecordFailureFunctionExists?: boolean; - /** Filter by the object’s `signInRequestChallengeFunction` relation. */ - signInRequestChallengeFunction?: FunctionFilter; - /** A related `signInRequestChallengeFunction` exists. */ - signInRequestChallengeFunctionExists?: boolean; - /** Filter by the object’s `signInWithChallengeFunction` relation. */ - signInWithChallengeFunction?: FunctionFilter; - /** A related `signInWithChallengeFunction` exists. */ - signInWithChallengeFunctionExists?: boolean; - /** Filter by the object’s `signUpWithKeyFunction` relation. */ - signUpWithKeyFunction?: FunctionFilter; - /** A related `signUpWithKeyFunction` exists. */ - signUpWithKeyFunctionExists?: boolean; -} -export interface RateLimitsModuleFilter { - /** 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 `rateLimitSettingsTableId` field. */ - rateLimitSettingsTableId?: UUIDFilter; - /** Filter by the object’s `ipRateLimitsTableId` field. */ - ipRateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitsTableId` field. */ - rateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitSettingsTable` field. */ - rateLimitSettingsTable?: StringFilter; - /** Filter by the object’s `ipRateLimitsTable` field. */ - ipRateLimitsTable?: StringFilter; - /** Filter by the object’s `rateLimitsTable` field. */ - rateLimitsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitsModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. */ - ipRateLimitsTableByIpRateLimitsTableId?: TableFilter; - /** Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. */ - rateLimitSettingsTableByRateLimitSettingsTableId?: TableFilter; - /** Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation. */ - rateLimitsTableByRateLimitsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface RlsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `authenticateSchemaId` field. */ - authenticateSchemaId?: UUIDFilter; - /** Filter by the object’s `roleSchemaId` field. */ - roleSchemaId?: UUIDFilter; - /** Filter by the object’s `authenticateFunctionId` field. */ - authenticateFunctionId?: UUIDFilter; - /** Filter by the object’s `authenticateStrictFunctionId` field. */ - authenticateStrictFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleFunctionId` field. */ - currentRoleFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleIdFunctionId` field. */ - currentRoleIdFunctionId?: UUIDFilter; - /** Filter by the object’s `currentUserAgentFunctionId` field. */ - currentUserAgentFunctionId?: UUIDFilter; - /** Filter by the object’s `currentIpAddressFunctionId` field. */ - currentIpAddressFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RlsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsSettingFilter[]; - /** Negates the expression. */ - not?: RlsSettingFilter; - /** Filter by the object’s `authenticateFunction` relation. */ - authenticateFunction?: FunctionFilter; - /** A related `authenticateFunction` exists. */ - authenticateFunctionExists?: boolean; - /** Filter by the object’s `authenticateSchema` relation. */ - authenticateSchema?: SchemaFilter; - /** A related `authenticateSchema` exists. */ - authenticateSchemaExists?: boolean; - /** Filter by the object’s `authenticateStrictFunction` relation. */ - authenticateStrictFunction?: FunctionFilter; - /** A related `authenticateStrictFunction` exists. */ - authenticateStrictFunctionExists?: boolean; - /** Filter by the object’s `currentIpAddressFunction` relation. */ - currentIpAddressFunction?: FunctionFilter; - /** A related `currentIpAddressFunction` exists. */ - currentIpAddressFunctionExists?: boolean; - /** Filter by the object’s `currentRoleFunction` relation. */ - currentRoleFunction?: FunctionFilter; - /** A related `currentRoleFunction` exists. */ - currentRoleFunctionExists?: boolean; - /** Filter by the object’s `currentRoleIdFunction` relation. */ - currentRoleIdFunction?: FunctionFilter; - /** A related `currentRoleIdFunction` exists. */ - currentRoleIdFunctionExists?: boolean; - /** Filter by the object’s `currentUserAgentFunction` relation. */ - currentUserAgentFunction?: FunctionFilter; - /** A related `currentUserAgentFunction` exists. */ - currentUserAgentFunctionExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `roleSchema` relation. */ - roleSchema?: SchemaFilter; - /** A related `roleSchema` exists. */ - roleSchemaExists?: boolean; -} -export interface 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; - /** Checks for all expressions in this list. */ - and?: RlsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsModuleFilter[]; - /** Negates the expression. */ - not?: RlsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface RateLimitMetersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -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 `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 `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `planLimitsTable` relation. */ - planLimitsTable?: TableFilter; - /** Filter by the object’s `planOverridesTable` relation. */ - planOverridesTable?: TableFilter; - /** A related `planOverridesTable` exists. */ - planOverridesTableExists?: boolean; - /** Filter by the object’s `planPricingTable` relation. */ - planPricingTable?: TableFilter; - /** A related `planPricingTable` exists. */ - planPricingTableExists?: boolean; - /** Filter by the object’s `plansTable` relation. */ - plansTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface SqlActionFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: StringFilter; - /** Filter by the object’s `deps` field. */ - deps?: StringListFilter; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `revert` field. */ - revert?: StringFilter; - /** Filter by the object’s `verify` field. */ - verify?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: SqlActionFilter[]; - /** Checks for any expressions in this list. */ - or?: SqlActionFilter[]; - /** Negates the expression. */ - not?: SqlActionFilter; -} -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** 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?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `ownedDatabases` relation. */ - ownedDatabases?: UserToManyDatabaseFilter; - /** `ownedDatabases` exist. */ - ownedDatabasesExist?: boolean; - /** Filter by the object’s `appMembershipByActorId` relation. */ - appMembershipByActorId?: AppMembershipFilter; - /** A related `appMembershipByActorId` exists. */ - appMembershipByActorIdExists?: boolean; - /** Filter by the object’s `appAdminGrantsByActorId` relation. */ - appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByActorId` exist. */ - appAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ - appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByGrantorId` exist. */ - appAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ - appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByActorId` exist. */ - appOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ - appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByGrantorId` exist. */ - appOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appGrantsByActorId` relation. */ - appGrantsByActorId?: UserToManyAppGrantFilter; - /** `appGrantsByActorId` exist. */ - appGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appGrantsByGrantorId` relation. */ - appGrantsByGrantorId?: UserToManyAppGrantFilter; - /** `appGrantsByGrantorId` exist. */ - appGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByActorId` relation. */ - orgMembershipsByActorId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByActorId` exist. */ - orgMembershipsByActorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByEntityId` relation. */ - orgMembershipsByEntityId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByEntityId` exist. */ - orgMembershipsByEntityIdExist?: boolean; - /** Filter by the object’s `orgMembershipDefaultByEntityId` relation. */ - orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter; - /** A related `orgMembershipDefaultByEntityId` exists. */ - orgMembershipDefaultByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */ - orgMembershipSettingByEntityId?: OrgMembershipSettingFilter; - /** A related `orgMembershipSettingByEntityId` exists. */ - orgMembershipSettingByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembersByActorId` relation. */ - orgMembersByActorId?: UserToManyOrgMemberFilter; - /** `orgMembersByActorId` exist. */ - orgMembersByActorIdExist?: boolean; - /** Filter by the object’s `orgMembersByEntityId` relation. */ - orgMembersByEntityId?: UserToManyOrgMemberFilter; - /** `orgMembersByEntityId` exist. */ - orgMembersByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ - orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByActorId` exist. */ - orgAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ - orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByEntityId` exist. */ - orgAdminGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByGrantorId` relation. */ - orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByGrantorId` exist. */ - orgAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ - orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByActorId` exist. */ - orgOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ - orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByEntityId` exist. */ - orgOwnerGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByGrantorId` relation. */ - orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByGrantorId` exist. */ - orgOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByActorId` relation. */ - orgMemberProfilesByActorId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByActorId` exist. */ - orgMemberProfilesByActorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByEntityId` relation. */ - orgMemberProfilesByEntityId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByEntityId` exist. */ - orgMemberProfilesByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByActorId` relation. */ - orgGrantsByActorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByActorId` exist. */ - orgGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgGrantsByEntityId` relation. */ - orgGrantsByEntityId?: UserToManyOrgGrantFilter; - /** `orgGrantsByEntityId` exist. */ - orgGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByGrantorId` relation. */ - orgGrantsByGrantorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByGrantorId` exist. */ - orgGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `parentOrgChartEdges` relation. */ - parentOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `parentOrgChartEdges` exist. */ - parentOrgChartEdgesExist?: boolean; - /** Filter by the object’s `orgChartEdgesByEntityId` relation. */ - orgChartEdgesByEntityId?: UserToManyOrgChartEdgeFilter; - /** `orgChartEdgesByEntityId` exist. */ - orgChartEdgesByEntityIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdges` relation. */ - childOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `childOrgChartEdges` exist. */ - childOrgChartEdgesExist?: boolean; - /** Filter by the object’s `parentOrgChartEdgeGrants` relation. */ - parentOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `parentOrgChartEdgeGrants` exist. */ - parentOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByEntityId` relation. */ - orgChartEdgeGrantsByEntityId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByEntityId` exist. */ - orgChartEdgeGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation. */ - orgChartEdgeGrantsByGrantorId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByGrantorId` exist. */ - orgChartEdgeGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdgeGrants` relation. */ - childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `childOrgChartEdgeGrants` exist. */ - childOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ - orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; - /** `orgPermissionDefaultsByEntityId` exist. */ - orgPermissionDefaultsByEntityIdExist?: boolean; - /** Filter by the object’s `appLimitsByActorId` relation. */ - appLimitsByActorId?: UserToManyAppLimitFilter; - /** `appLimitsByActorId` exist. */ - appLimitsByActorIdExist?: boolean; - /** Filter by the object’s `appLimitCreditsByActorId` relation. */ - appLimitCreditsByActorId?: UserToManyAppLimitCreditFilter; - /** `appLimitCreditsByActorId` exist. */ - appLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByActorId` relation. */ - orgLimitsByActorId?: UserToManyOrgLimitFilter; - /** `orgLimitsByActorId` exist. */ - orgLimitsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByEntityId` relation. */ - orgLimitsByEntityId?: UserToManyOrgLimitFilter; - /** `orgLimitsByEntityId` exist. */ - orgLimitsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByActorId` relation. */ - orgLimitCreditsByActorId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByActorId` exist. */ - orgLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByEntityId` relation. */ - orgLimitCreditsByEntityId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByEntityId` exist. */ - orgLimitCreditsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ - orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; - /** `orgLimitAggregatesByEntityId` exist. */ - orgLimitAggregatesByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitWarningsByEntityId` relation. */ - orgLimitWarningsByEntityId?: UserToManyOrgLimitWarningFilter; - /** `orgLimitWarningsByEntityId` exist. */ - orgLimitWarningsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedEmails` relation. */ - ownedEmails?: UserToManyEmailFilter; - /** `ownedEmails` exist. */ - ownedEmailsExist?: boolean; - /** Filter by the object’s `ownedPhoneNumbers` relation. */ - ownedPhoneNumbers?: UserToManyPhoneNumberFilter; - /** `ownedPhoneNumbers` exist. */ - ownedPhoneNumbersExist?: boolean; - /** Filter by the object’s `ownedCryptoAddresses` relation. */ - ownedCryptoAddresses?: UserToManyCryptoAddressFilter; - /** `ownedCryptoAddresses` exist. */ - ownedCryptoAddressesExist?: boolean; - /** Filter by the object’s `ownedWebauthnCredentials` relation. */ - ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `ownedWebauthnCredentials` exist. */ - ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `appInvitesBySenderId` relation. */ - appInvitesBySenderId?: UserToManyAppInviteFilter; - /** `appInvitesBySenderId` exist. */ - appInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesByReceiverId` relation. */ - appClaimedInvitesByReceiverId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesByReceiverId` exist. */ - appClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesBySenderId` relation. */ - appClaimedInvitesBySenderId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesBySenderId` exist. */ - appClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgInvitesByEntityId` relation. */ - orgInvitesByEntityId?: UserToManyOrgInviteFilter; - /** `orgInvitesByEntityId` exist. */ - orgInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgInvitesByReceiverId` relation. */ - orgInvitesByReceiverId?: UserToManyOrgInviteFilter; - /** `orgInvitesByReceiverId` exist. */ - orgInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgInvitesBySenderId` relation. */ - orgInvitesBySenderId?: UserToManyOrgInviteFilter; - /** `orgInvitesBySenderId` exist. */ - orgInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ - orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByEntityId` exist. */ - orgClaimedInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ - orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByReceiverId` exist. */ - orgClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesBySenderId` relation. */ - orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesBySenderId` exist. */ - orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogAuthsByActorId` relation. */ - auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; - /** `auditLogAuthsByActorId` exist. */ - auditLogAuthsByActorIdExist?: boolean; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; -} -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; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `credentialsSchemaId` field. */ - credentialsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionsSchemaId` field. */ - sessionsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsSchemaId` field. */ - sessionSecretsSchemaId?: 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 `userFieldId` field. */ - userFieldId?: 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 `challengeExpirySeconds` field. */ - challengeExpirySeconds?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnSettingFilter[]; - /** Negates the expression. */ - not?: WebauthnSettingFilter; - /** Filter by the object’s `credentialsSchema` relation. */ - credentialsSchema?: SchemaFilter; - /** A related `credentialsSchema` exists. */ - credentialsSchemaExists?: boolean; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** A related `credentialsTable` exists. */ - credentialsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** A related `sessionCredentialsTable` exists. */ - sessionCredentialsTableExists?: boolean; - /** Filter by the object’s `sessionSecretsSchema` relation. */ - sessionSecretsSchema?: SchemaFilter; - /** A related `sessionSecretsSchema` exists. */ - sessionSecretsSchemaExists?: boolean; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** A related `sessionSecretsTable` exists. */ - sessionSecretsTableExists?: boolean; - /** Filter by the object’s `sessionsSchema` relation. */ - sessionsSchema?: SchemaFilter; - /** A related `sessionsSchema` exists. */ - sessionsSchemaExists?: boolean; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** A related `sessionsTable` exists. */ - sessionsTableExists?: boolean; - /** Filter by the object’s `userField` relation. */ - userField?: FieldFilter; - /** A related `userField` exists. */ - userFieldExists?: boolean; -} -export interface BillingModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; - /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `meterCreditsTable` relation. */ - meterCreditsTable?: TableFilter; - /** Filter by the object’s `meterSourcesTable` relation. */ - meterSourcesTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface BillingProviderModuleFilter { - /** Filter by the object’s `id` field. */ - 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; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; - /** Filter by the object’s `billingCustomersTable` relation. */ - billingCustomersTable?: TableFilter; - /** Filter by the object’s `billingPricesTable` relation. */ - billingPricesTable?: TableFilter; - /** Filter by the object’s `billingProductsTable` relation. */ - billingProductsTable?: TableFilter; - /** Filter by the object’s `billingSubscriptionsTable` relation. */ - billingSubscriptionsTable?: TableFilter; - /** Filter by the object’s `billingWebhookEventsTable` relation. */ - billingWebhookEventsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `pricesTable` relation. */ - pricesTable?: TableFilter; - /** A related `pricesTable` exists. */ - pricesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -export interface HierarchyModuleFilter { - /** 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 `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 `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 `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; - /** Filter by the object’s `chartEdgeGrantsTable` relation. */ - chartEdgeGrantsTable?: TableFilter; - /** Filter by the object’s `chartEdgesTable` relation. */ - chartEdgesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** Filter by the object’s `hierarchySprtTable` relation. */ - hierarchySprtTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -export type OrgPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -export type DatabaseOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SCHEMA_HASH_ASC' - | 'SCHEMA_HASH_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SCHEMA_NAME_ASC' - | 'SCHEMA_NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'TIMESTAMPS_ASC' - | 'TIMESTAMPS_DESC' - | 'PEOPLESTAMPS_ASC' - | 'PEOPLESTAMPS_DESC' - | 'PLURAL_NAME_ASC' - | 'PLURAL_NAME_DESC' - | 'SINGULAR_NAME_ASC' - | 'SINGULAR_NAME_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'PARTITIONED_ASC' - | 'PARTITIONED_DESC' - | 'PARTITION_STRATEGY_ASC' - | 'PARTITION_STRATEGY_DESC' - | 'PARTITION_KEY_NAMES_ASC' - | 'PARTITION_KEY_NAMES_DESC' - | 'PARTITION_KEY_TYPES_ASC' - | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type CheckConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'EXPR_ASC' - | 'EXPR_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'API_REQUIRED_ASC' - | 'API_REQUIRED_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_ORDER_ASC' - | 'FIELD_ORDER_DESC' - | 'REGEXP_ASC' - | 'REGEXP_DESC' - | 'CHK_ASC' - | 'CHK_DESC' - | 'CHK_EXPR_ASC' - | 'CHK_EXPR_DESC' - | 'MIN_ASC' - | 'MIN_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SpatialRelationOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'OPERATOR_ASC' - | 'OPERATOR_DESC' - | 'PARAM_NAME_ASC' - | 'PARAM_NAME_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type ForeignKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_IDS_ASC' - | 'REF_FIELD_IDS_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'UPDATE_ACTION_ASC' - | 'UPDATE_ACTION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FullTextSearchOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'WEIGHTS_ASC' - | 'WEIGHTS_DESC' - | 'LANGS_ASC' - | 'LANGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type IndexOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'INCLUDE_FIELD_IDS_ASC' - | 'INCLUDE_FIELD_IDS_DESC' - | 'ACCESS_METHOD_ASC' - | 'ACCESS_METHOD_DESC' - | 'INDEX_PARAMS_ASC' - | 'INDEX_PARAMS_DESC' - | 'WHERE_CLAUSE_ASC' - | 'WHERE_CLAUSE_DESC' - | 'IS_UNIQUE_ASC' - | 'IS_UNIQUE_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'OP_CLASSES_ASC' - | 'OP_CLASSES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PolicyOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'PERMISSIVE_ASC' - | 'PERMISSIVE_DESC' - | 'DISABLED_ASC' - | 'DISABLED_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PrimaryKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TableGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TriggerOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'FUNCTION_NAME_ASC' - | 'FUNCTION_NAME_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type UniqueConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type ViewOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'VIEW_TYPE_ASC' - | 'VIEW_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FILTER_TYPE_ASC' - | 'FILTER_TYPE_DESC' - | 'FILTER_DATA_ASC' - | 'FILTER_DATA_DESC' - | 'SECURITY_INVOKER_ASC' - | 'SECURITY_INVOKER_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type ViewTableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'JOIN_ORDER_ASC' - | 'JOIN_ORDER_DESC'; -export type ViewGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -export type ViewRuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC'; -export type EmbeddingChunkOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'EMBEDDING_FIELD_ID_ASC' - | 'EMBEDDING_FIELD_ID_DESC' - | 'CHUNKS_TABLE_ID_ASC' - | 'CHUNKS_TABLE_ID_DESC' - | 'CHUNKS_TABLE_NAME_ASC' - | 'CHUNKS_TABLE_NAME_DESC' - | 'CONTENT_FIELD_NAME_ASC' - | 'CONTENT_FIELD_NAME_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'METRIC_ASC' - | 'METRIC_DESC' - | 'CHUNK_SIZE_ASC' - | 'CHUNK_SIZE_DESC' - | 'CHUNK_OVERLAP_ASC' - | 'CHUNK_OVERLAP_DESC' - | 'CHUNK_STRATEGY_ASC' - | 'CHUNK_STRATEGY_DESC' - | 'METADATA_FIELDS_ASC' - | 'METADATA_FIELDS_DESC' - | 'SEARCH_INDEXES_ASC' - | 'SEARCH_INDEXES_DESC' - | 'ENQUEUE_CHUNKING_JOB_ASC' - | 'ENQUEUE_CHUNKING_JOB_DESC' - | 'CHUNKING_TASK_NAME_ASC' - | 'CHUNKING_TASK_NAME_DESC' - | 'EMBEDDING_MODEL_ASC' - | 'EMBEDDING_MODEL_DESC' - | 'EMBEDDING_PROVIDER_ASC' - | 'EMBEDDING_PROVIDER_DESC' - | 'PARENT_FK_FIELD_ID_ASC' - | 'PARENT_FK_FIELD_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SecureTableProvisionOrderBy = - | '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' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_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 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'; -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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_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'; -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type SchemaGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DefaultPrivilegeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'OBJECT_TYPE_ASC' - | 'OBJECT_TYPE_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -export type EnumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'VALUES_ASC' - | 'VALUES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type FunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type ApiSchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC'; -export type ApiModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type DomainOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC'; -export type SiteMetadatumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC'; -export type SiteModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type SiteThemeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'THEME_ASC' - | 'THEME_DESC'; -export type CorsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC'; -export type MerkleStoreModuleOrderBy = - | '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' - | '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_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MERKLE_STORE_MODULE_ID_ASC' - | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' - | 'EXECUTIONS_TABLE_ID_ASC' - | 'EXECUTIONS_TABLE_ID_DESC' - | 'OUTPUTS_TABLE_ID_ASC' - | 'OUTPUTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type TriggerFunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PartitionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'STRATEGY_ASC' - | 'STRATEGY_DESC' - | 'PARTITION_KEY_ID_ASC' - | 'PARTITION_KEY_ID_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'RETENTION_KEEP_TABLE_ASC' - | 'RETENTION_KEEP_TABLE_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'NAMING_PATTERN_ASC' - | 'NAMING_PATTERN_DESC' - | 'IS_PARENTED_ASC' - | 'IS_PARENTED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DatabaseTransferOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TARGET_OWNER_ID_ASC' - | 'TARGET_OWNER_ID_DESC' - | 'SOURCE_APPROVED_ASC' - | 'SOURCE_APPROVED_DESC' - | 'TARGET_APPROVED_ASC' - | 'TARGET_APPROVED_DESC' - | 'SOURCE_APPROVED_AT_ASC' - | 'SOURCE_APPROVED_AT_DESC' - | 'TARGET_APPROVED_AT_ASC' - | 'TARGET_APPROVED_AT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'INITIATED_BY_ASC' - | 'INITIATED_BY_DESC' - | 'NOTES_ASC' - | 'NOTES_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -export type ApiOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC'; -export type SiteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'FAVICON_ASC' - | 'FAVICON_DESC' - | 'APPLE_TOUCH_ICON_ASC' - | 'APPLE_TOUCH_ICON_DESC' - | 'LOGO_ASC' - | 'LOGO_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC'; -export type AppOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'APP_IMAGE_ASC' - | 'APP_IMAGE_DESC' - | 'APP_STORE_LINK_ASC' - | 'APP_STORE_LINK_DESC' - | 'APP_STORE_ID_ASC' - | 'APP_STORE_ID_DESC' - | 'APP_ID_PREFIX_ASC' - | 'APP_ID_PREFIX_DESC' - | 'PLAY_STORE_LINK_ASC' - | 'PLAY_STORE_LINK_DESC'; -export type ApiSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -export type ConnectedAccountsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type CryptoAddressesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC'; -export type CryptoAuthModuleOrderBy = - | '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' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'ADDRESSES_TABLE_ID_ASC' - | 'ADDRESSES_TABLE_ID_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_DESC' - | 'SIGN_IN_RECORD_FAILURE_ASC' - | 'SIGN_IN_RECORD_FAILURE_DESC' - | 'SIGN_UP_WITH_KEY_ASC' - | 'SIGN_UP_WITH_KEY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_ASC' - | 'SIGN_IN_WITH_CHALLENGE_DESC'; -export type DefaultIdsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type DenormalizedTableFieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'SET_IDS_ASC' - | 'SET_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'REF_IDS_ASC' - | 'REF_IDS_DESC' - | 'USE_UPDATES_ASC' - | 'USE_UPDATES_DESC' - | 'UPDATE_DEFAULTS_ASC' - | 'UPDATE_DEFAULTS_DESC' - | 'FUNC_NAME_ASC' - | 'FUNC_NAME_DESC' - | 'FUNC_ORDER_ASC' - | 'FUNC_ORDER_DESC'; -export type EmailsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = - | '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' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC'; -export type InvitesModuleOrderBy = - | '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' - | '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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; -export type EventsModuleOrderBy = - | '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' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' - | 'EVENTS_TABLE_NAME_ASC' - | 'EVENTS_TABLE_NAME_DESC' - | 'EVENT_AGGREGATES_TABLE_ID_ASC' - | 'EVENT_AGGREGATES_TABLE_ID_DESC' - | 'EVENT_AGGREGATES_TABLE_NAME_ASC' - | 'EVENT_AGGREGATES_TABLE_NAME_DESC' - | 'EVENT_TYPES_TABLE_ID_ASC' - | 'EVENT_TYPES_TABLE_ID_DESC' - | 'EVENT_TYPES_TABLE_NAME_ASC' - | 'EVENT_TYPES_TABLE_NAME_DESC' - | 'LEVELS_TABLE_ID_ASC' - | 'LEVELS_TABLE_ID_DESC' - | 'LEVELS_TABLE_NAME_ASC' - | 'LEVELS_TABLE_NAME_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' - | 'LEVEL_GRANTS_TABLE_ID_ASC' - | 'LEVEL_GRANTS_TABLE_ID_DESC' - | 'LEVEL_GRANTS_TABLE_NAME_ASC' - | 'LEVEL_GRANTS_TABLE_NAME_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' - | 'RECORD_EVENT_ASC' - | 'RECORD_EVENT_DESC' - | 'REMOVE_EVENT_ASC' - | 'REMOVE_EVENT_DESC' - | 'TG_EVENT_ASC' - | 'TG_EVENT_DESC' - | 'TG_EVENT_TOGGLE_ASC' - | 'TG_EVENT_TOGGLE_DESC' - | 'TG_EVENT_TOGGLE_BOOL_ASC' - | 'TG_EVENT_TOGGLE_BOOL_DESC' - | 'TG_EVENT_BOOL_ASC' - | 'TG_EVENT_BOOL_DESC' - | 'UPSERT_AGGREGATE_ASC' - | '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' - | 'LEVEL_ACHIEVED_DESC' - | 'TG_CHECK_ACHIEVEMENTS_ASC' - | 'TG_CHECK_ACHIEVEMENTS_DESC' - | 'GRANT_ACHIEVEMENT_ASC' - | 'GRANT_ACHIEVEMENT_DESC' - | 'TG_ACHIEVEMENT_REWARD_ASC' - | 'TG_ACHIEVEMENT_REWARD_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -export type LimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -export type MembershipTypesModuleOrderBy = - | '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 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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -export type PhoneNumbersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type ProfilesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_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' - | 'PREFIX_ASC' - | 'PREFIX_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 SessionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUTH_SETTINGS_TABLE_ID_ASC' - | 'AUTH_SETTINGS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_DEFAULT_EXPIRATION_ASC' - | 'SESSIONS_DEFAULT_EXPIRATION_DESC' - | 'SESSIONS_TABLE_ASC' - | 'SESSIONS_TABLE_DESC' - | 'SESSION_CREDENTIALS_TABLE_ASC' - | 'SESSION_CREDENTIALS_TABLE_DESC' - | 'AUTH_SETTINGS_TABLE_ASC' - | 'AUTH_SETTINGS_TABLE_DESC'; -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'; -export type UsersModuleOrderBy = - | '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' - | 'TYPE_TABLE_ID_ASC' - | 'TYPE_TABLE_ID_DESC' - | 'TYPE_TABLE_NAME_ASC' - | 'TYPE_TABLE_NAME_DESC'; -export type BlueprintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'TEMPLATE_ID_ASC' - | 'TEMPLATE_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type BlueprintTemplateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'VERSION_ASC' - | 'VERSION_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'VISIBILITY_ASC' - | 'VISIBILITY_DESC' - | 'CATEGORIES_ASC' - | 'CATEGORIES_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DEFINITION_SCHEMA_VERSION_ASC' - | 'DEFINITION_SCHEMA_VERSION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'COMPLEXITY_ASC' - | 'COMPLEXITY_DESC' - | 'COPY_COUNT_ASC' - | 'COPY_COUNT_DESC' - | 'FORK_COUNT_ASC' - | 'FORK_COUNT_DESC' - | 'FORKED_FROM_ID_ASC' - | 'FORKED_FROM_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type BlueprintConstructionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'BLUEPRINT_ID_ASC' - | 'BLUEPRINT_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_DETAILS_ASC' - | 'ERROR_DETAILS_DESC' - | 'TABLE_MAP_ASC' - | 'TABLE_MAP_DESC' - | 'CONSTRUCTED_DEFINITION_ASC' - | 'CONSTRUCTED_DEFINITION_DESC' - | 'CONSTRUCTED_AT_ASC' - | 'CONSTRUCTED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type StorageModuleOrderBy = - | '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' - | 'BUCKETS_TABLE_ID_ASC' - | 'BUCKETS_TABLE_ID_DESC' - | 'FILES_TABLE_ID_ASC' - | 'FILES_TABLE_ID_DESC' - | 'BUCKETS_TABLE_NAME_ASC' - | 'BUCKETS_TABLE_NAME_DESC' - | 'FILES_TABLE_NAME_ASC' - | 'FILES_TABLE_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENDPOINT_ASC' - | 'ENDPOINT_DESC' - | 'PUBLIC_URL_PREFIX_ASC' - | 'PUBLIC_URL_PREFIX_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC' - | 'RESTRICT_READS_ASC' - | 'RESTRICT_READS_DESC' - | 'HAS_PATH_SHARES_ASC' - | 'HAS_PATH_SHARES_DESC' - | 'PATH_SHARES_TABLE_ID_ASC' - | 'PATH_SHARES_TABLE_ID_DESC' - | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' - | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DEFAULT_MAX_FILE_SIZE_ASC' - | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'MAX_FILENAME_LENGTH_ASC' - | 'MAX_FILENAME_LENGTH_DESC' - | 'CACHE_TTL_SECONDS_ASC' - | 'CACHE_TTL_SECONDS_DESC' - | 'MAX_BULK_FILES_ASC' - | 'MAX_BULK_FILES_DESC' - | 'MAX_BULK_TOTAL_SIZE_ASC' - | 'MAX_BULK_TOTAL_SIZE_DESC' - | 'HAS_VERSIONING_ASC' - | 'HAS_VERSIONING_DESC' - | 'HAS_CONTENT_HASH_ASC' - | 'HAS_CONTENT_HASH_DESC' - | 'HAS_CUSTOM_KEYS_ASC' - | 'HAS_CUSTOM_KEYS_DESC' - | 'HAS_AUDIT_LOG_ASC' - | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' - | 'CONFIRM_UPLOAD_DELAY_ASC' - | 'CONFIRM_UPLOAD_DELAY_DESC' - | 'FILE_EVENTS_TABLE_ID_ASC' - | 'FILE_EVENTS_TABLE_ID_DESC'; -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | '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_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; -export type WebauthnCredentialsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -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'; -export type NotificationsModuleOrderBy = - | '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' - | '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' - | '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'; -export type InferenceLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type ComputeLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type TransferLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type StorageLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type DbUsageModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type AgentModuleOrderBy = - | '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' - | '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' - | 'KNOWLEDGE_TABLE_ID_ASC' - | 'KNOWLEDGE_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' - | 'KNOWLEDGE_TABLE_NAME_ASC' - | 'KNOWLEDGE_TABLE_NAME_DESC' - | 'HAS_KNOWLEDGE_ASC' - | 'HAS_KNOWLEDGE_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'KNOWLEDGE_CONFIG_ASC' - | 'KNOWLEDGE_CONFIG_DESC' - | 'KNOWLEDGE_POLICIES_ASC' - | 'KNOWLEDGE_POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -export type NamespaceModuleOrderBy = - | '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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -export type FunctionModuleOrderBy = - | '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' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_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' - | '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 AppAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -export type OrgMemberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMemberProfileOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type OrgGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type OrgChartEdgeGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PhoneNumberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type CryptoAddressOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type WebauthnCredentialOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREDENTIAL_ID_ASC' - | 'CREDENTIAL_ID_DESC' - | 'PUBLIC_KEY_ASC' - | 'PUBLIC_KEY_DESC' - | 'SIGN_COUNT_ASC' - | 'SIGN_COUNT_DESC' - | 'WEBAUTHN_USER_ID_ASC' - | 'WEBAUTHN_USER_ID_DESC' - | 'TRANSPORTS_ASC' - | 'TRANSPORTS_DESC' - | 'CREDENTIAL_DEVICE_TYPE_ASC' - | 'CREDENTIAL_DEVICE_TYPE_DESC' - | 'BACKUP_ELIGIBLE_ASC' - | 'BACKUP_ELIGIBLE_DESC' - | 'BACKUP_STATE_ASC' - | 'BACKUP_STATE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LAST_USED_AT_ASC' - | 'LAST_USED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AuditLogAuthOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC'; -export type IdentityProviderOrderBy = - | 'NATURAL' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ENABLED_ASC' - | 'ENABLED_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC'; -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; -export type DevicesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type NodeTypeRegistryOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARAMETER_SCHEMA_ASC' - | 'PARAMETER_SCHEMA_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type UserConnectedAccountOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type PubkeySettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; -export type RateLimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' - | 'IP_RATE_LIMITS_TABLE_ID_ASC' - | 'IP_RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMITS_TABLE_ID_ASC' - | 'RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_DESC' - | 'IP_RATE_LIMITS_TABLE_ASC' - | 'IP_RATE_LIMITS_TABLE_DESC' - | 'RATE_LIMITS_TABLE_ASC' - | 'RATE_LIMITS_TABLE_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -export type RlsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUTHENTICATE_SCHEMA_ID_ASC' - | 'AUTHENTICATE_SCHEMA_ID_DESC' - | 'ROLE_SCHEMA_ID_ASC' - | 'ROLE_SCHEMA_ID_DESC' - | 'AUTHENTICATE_FUNCTION_ID_ASC' - | 'AUTHENTICATE_FUNCTION_ID_DESC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type RlsModuleOrderBy = - | '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' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'AUTHENTICATE_ASC' - | 'AUTHENTICATE_DESC' - | 'AUTHENTICATE_STRICT_ASC' - | 'AUTHENTICATE_STRICT_DESC' - | 'CURRENT_ROLE_ASC' - | 'CURRENT_ROLE_DESC' - | 'CURRENT_ROLE_ID_ASC' - | 'CURRENT_ROLE_ID_DESC'; -export type RateLimitMetersModuleOrderBy = - | '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' - | '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'; -export type PlansModuleOrderBy = - | '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' - | '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' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type SqlActionOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'DEPS_ASC' - | 'DEPS_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'CONTENT_ASC' - | 'CONTENT_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type DatabaseSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -export type OrgMembershipSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -export type UserOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -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' - | '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'; -export type BillingModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type BillingProviderModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | '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'; -export type HierarchyModuleOrderBy = - | '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' - | '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' - | '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' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -// ============ CRUD Input Types ============ -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - userId: string; - depth?: number; - }; -} -export interface OrgGetManagersRecordPatch { - userId?: string | null; - depth?: number | null; -} -export interface UpdateOrgGetManagersRecordInput { - clientMutationId?: string; - id: string; - orgGetManagersRecordPatch: OrgGetManagersRecordPatch; -} -export interface DeleteOrgGetManagersRecordInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - userId: string; - depth?: number; - }; -} -export interface OrgGetSubordinatesRecordPatch { - userId?: string | null; - depth?: number | null; -} -export interface UpdateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - id: string; - orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; -} -export interface DeleteOrgGetSubordinatesRecordInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; - }; -} -export interface AppPermissionPatch { - name?: string | null; - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - appPermissionPatch: AppPermissionPatch; -} -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; - }; -} -export interface OrgPermissionPatch { - name?: string | null; - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseInput { - clientMutationId?: string; - database: { - ownerId?: string; - schemaHash?: string; - name?: string; - label?: string; - hash?: string; - }; -} -export interface DatabasePatch { - ownerId?: string | null; - schemaHash?: string | null; - name?: string | null; - label?: string | null; - hash?: string | null; -} -export interface UpdateDatabaseInput { - clientMutationId?: string; - id: string; - databasePatch: DatabasePatch; -} -export interface DeleteDatabaseInput { - clientMutationId?: string; - id: string; -} -export interface CreateSchemaInput { - clientMutationId?: string; - schema: { - databaseId: string; - name: string; - schemaName: string; - label?: string; - description?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - }; -} -export interface SchemaPatch { - databaseId?: string | null; - name?: string | null; - schemaName?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - isPublic?: boolean | null; -} -export interface UpdateSchemaInput { - clientMutationId?: string; - id: string; - schemaPatch: SchemaPatch; -} -export interface DeleteSchemaInput { - clientMutationId?: string; - id: string; -} -export interface CreateTableInput { - clientMutationId?: string; - table: { - databaseId?: string; - schemaId: string; - name: string; - label?: string; - description?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: string; - singularName?: string; - tags?: string[]; - partitioned?: boolean; - partitionStrategy?: string; - partitionKeyNames?: string[]; - partitionKeyTypes?: string[]; - inheritsId?: string; - }; -} -export interface TablePatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - useRls?: boolean | null; - timestamps?: boolean | null; - peoplestamps?: boolean | null; - pluralName?: string | null; - singularName?: string | null; - tags?: string[] | null; - partitioned?: boolean | null; - partitionStrategy?: string | null; - partitionKeyNames?: string[] | null; - partitionKeyTypes?: string[] | null; - inheritsId?: string | null; -} -export interface UpdateTableInput { - clientMutationId?: string; - id: string; - tablePatch: TablePatch; -} -export interface DeleteTableInput { - clientMutationId?: string; - id: string; -} -export interface CreateCheckConstraintInput { - clientMutationId?: string; - checkConstraint: { - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - expr?: Record; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface CheckConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - expr?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateCheckConstraintInput { - clientMutationId?: string; - id: string; - checkConstraintPatch: CheckConstraintPatch; -} -export interface DeleteCheckConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateFieldInput { - clientMutationId?: string; - field: { - databaseId?: string; - tableId: string; - name: string; - label?: string; - description?: string; - smartTags?: Record; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: Record; - type: Record; - fieldOrder?: number; - regexp?: string; - chk?: Record; - chkExpr?: Record; - min?: number; - max?: number; - tags?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - }; -} -export interface FieldPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - defaultValue?: Record | null; - type?: Record | null; - fieldOrder?: number | null; - regexp?: string | null; - chk?: Record | null; - chkExpr?: Record | null; - min?: number | null; - max?: number | null; - tags?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; -} -export interface UpdateFieldInput { - clientMutationId?: string; - id: string; - fieldPatch: FieldPatch; -} -export interface DeleteFieldInput { - clientMutationId?: string; - id: string; -} -export interface CreateSpatialRelationInput { - clientMutationId?: string; - spatialRelation: { - databaseId?: string; - tableId: string; - fieldId: string; - refTableId: string; - refFieldId: string; - name: string; - operator: string; - paramName?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface SpatialRelationPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - refTableId?: string | null; - refFieldId?: string | null; - name?: string | null; - operator?: string | null; - paramName?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateSpatialRelationInput { - clientMutationId?: string; - id: string; - spatialRelationPatch: SpatialRelationPatch; -} -export interface DeleteSpatialRelationInput { - clientMutationId?: string; - id: string; -} -export interface CreateForeignKeyConstraintInput { - clientMutationId?: string; - foreignKeyConstraint: { - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: Record; - type?: string; - fieldIds: string[]; - refTableId: string; - refFieldIds: string[]; - deleteAction?: string; - updateAction?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ForeignKeyConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - refTableId?: string | null; - refFieldIds?: string[] | null; - deleteAction?: string | null; - updateAction?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateForeignKeyConstraintInput { - clientMutationId?: string; - id: string; - foreignKeyConstraintPatch: ForeignKeyConstraintPatch; -} -export interface DeleteForeignKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateFullTextSearchInput { - clientMutationId?: string; - fullTextSearch: { - databaseId?: string; - tableId: string; - fieldId: string; - fieldIds: string[]; - weights: string[]; - langs: string[]; - }; -} -export interface FullTextSearchPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - fieldIds?: string[] | null; - weights?: string[] | null; - langs?: string[] | null; -} -export interface UpdateFullTextSearchInput { - clientMutationId?: string; - id: string; - fullTextSearchPatch: FullTextSearchPatch; -} -export interface DeleteFullTextSearchInput { - clientMutationId?: string; - id: string; -} -export interface CreateIndexInput { - clientMutationId?: string; - index: { - databaseId: string; - tableId: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: Record; - whereClause?: Record; - isUnique?: boolean; - options?: Record; - opClasses?: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface IndexPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - fieldIds?: string[] | null; - includeFieldIds?: string[] | null; - accessMethod?: string | null; - indexParams?: Record | null; - whereClause?: Record | null; - isUnique?: boolean | null; - options?: Record | null; - opClasses?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateIndexInput { - clientMutationId?: string; - id: string; - indexPatch: IndexPatch; -} -export interface DeleteIndexInput { - clientMutationId?: string; - id: string; -} -export interface CreatePolicyInput { - clientMutationId?: string; - policy: { - databaseId?: string; - tableId: string; - name?: string; - granteeName?: string; - privilege?: string; - permissive?: boolean; - disabled?: boolean; - policyType?: string; - data?: Record; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface PolicyPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - granteeName?: string | null; - privilege?: string | null; - permissive?: boolean | null; - disabled?: boolean | null; - policyType?: string | null; - data?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdatePolicyInput { - clientMutationId?: string; - id: string; - policyPatch: PolicyPatch; -} -export interface DeletePolicyInput { - clientMutationId?: string; - id: string; -} -export interface CreatePrimaryKeyConstraintInput { - clientMutationId?: string; - primaryKeyConstraint: { - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface PrimaryKeyConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdatePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; -} -export interface DeletePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateTableGrantInput { - clientMutationId?: string; - tableGrant: { - databaseId?: string; - tableId: string; - privilege: string; - granteeName: string; - fieldIds?: string[]; - isGrant?: boolean; - }; -} -export interface TableGrantPatch { - databaseId?: string | null; - tableId?: string | null; - privilege?: string | null; - granteeName?: string | null; - fieldIds?: string[] | null; - isGrant?: boolean | null; -} -export interface UpdateTableGrantInput { - clientMutationId?: string; - id: string; - tableGrantPatch: TableGrantPatch; -} -export interface DeleteTableGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateTriggerInput { - clientMutationId?: string; - trigger: { - databaseId?: string; - tableId: string; - name: string; - event?: string; - functionName?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface TriggerPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - event?: string | null; - functionName?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateTriggerInput { - clientMutationId?: string; - id: string; - triggerPatch: TriggerPatch; -} -export interface DeleteTriggerInput { - clientMutationId?: string; - id: string; -} -export interface CreateUniqueConstraintInput { - clientMutationId?: string; - uniqueConstraint: { - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: Record; - type?: string; - fieldIds: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface UniqueConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateUniqueConstraintInput { - clientMutationId?: string; - id: string; - uniqueConstraintPatch: UniqueConstraintPatch; -} -export interface DeleteUniqueConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewInput { - clientMutationId?: string; - view: { - databaseId?: string; - schemaId: string; - name: string; - tableId?: string; - viewType: string; - data?: Record; - filterType?: string; - filterData?: Record; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ViewPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - tableId?: string | null; - viewType?: string | null; - data?: Record | null; - filterType?: string | null; - filterData?: Record | null; - securityInvoker?: boolean | null; - isReadOnly?: boolean | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateViewInput { - clientMutationId?: string; - id: string; - viewPatch: ViewPatch; -} -export interface DeleteViewInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewTableInput { - clientMutationId?: string; - viewTable: { - viewId: string; - tableId: string; - joinOrder?: number; - }; -} -export interface ViewTablePatch { - viewId?: string | null; - tableId?: string | null; - joinOrder?: number | null; -} -export interface UpdateViewTableInput { - clientMutationId?: string; - id: string; - viewTablePatch: ViewTablePatch; -} -export interface DeleteViewTableInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewGrantInput { - clientMutationId?: string; - viewGrant: { - databaseId?: string; - viewId: string; - granteeName: string; - privilege: string; - withGrantOption?: boolean; - isGrant?: boolean; - }; -} -export interface ViewGrantPatch { - databaseId?: string | null; - viewId?: string | null; - granteeName?: string | null; - privilege?: string | null; - withGrantOption?: boolean | null; - isGrant?: boolean | null; -} -export interface UpdateViewGrantInput { - clientMutationId?: string; - id: string; - viewGrantPatch: ViewGrantPatch; -} -export interface DeleteViewGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewRuleInput { - clientMutationId?: string; - viewRule: { - databaseId?: string; - viewId: string; - name: string; - event: string; - action?: string; - }; -} -export interface ViewRulePatch { - databaseId?: string | null; - viewId?: string | null; - name?: string | null; - event?: string | null; - action?: string | null; -} -export interface UpdateViewRuleInput { - clientMutationId?: string; - id: string; - viewRulePatch: ViewRulePatch; -} -export interface DeleteViewRuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmbeddingChunkInput { - clientMutationId?: string; - embeddingChunk: { - databaseId?: string; - tableId: string; - embeddingFieldId?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; - dimensions?: number; - metric?: string; - chunkSize?: number; - chunkOverlap?: number; - chunkStrategy?: string; - metadataFields?: Record; - searchIndexes?: Record; - enqueueChunkingJob?: boolean; - chunkingTaskName?: string; - embeddingModel?: string; - embeddingProvider?: string; - parentFkFieldId?: string; - }; -} -export interface EmbeddingChunkPatch { - databaseId?: string | null; - tableId?: string | null; - embeddingFieldId?: string | null; - chunksTableId?: string | null; - chunksTableName?: string | null; - contentFieldName?: string | null; - dimensions?: number | null; - metric?: string | null; - chunkSize?: number | null; - chunkOverlap?: number | null; - chunkStrategy?: string | null; - metadataFields?: Record | null; - searchIndexes?: Record | null; - enqueueChunkingJob?: boolean | null; - chunkingTaskName?: string | null; - embeddingModel?: string | null; - embeddingProvider?: string | null; - parentFkFieldId?: string | null; -} -export interface UpdateEmbeddingChunkInput { - clientMutationId?: string; - id: string; - embeddingChunkPatch: EmbeddingChunkPatch; -} -export interface DeleteEmbeddingChunkInput { - clientMutationId?: string; - id: string; -} -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - secureTableProvision: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - nodes?: Record; - useRls?: boolean; - fields?: Record[]; - grants?: Record; - policies?: Record; - outFields?: string[]; - }; -} -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 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 CreateSessionSecretsModuleInput { - clientMutationId?: string; - sessionSecretsModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - sessionsTableId?: string; - }; -} -export interface SessionSecretsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - sessionsTableId?: string | null; -} -export interface UpdateSessionSecretsModuleInput { - clientMutationId?: string; - id: string; - sessionSecretsModulePatch: SessionSecretsModulePatch; -} -export interface DeleteSessionSecretsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - 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; - }; -} -export interface RealtimeModulePatch { - 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; -} -export interface UpdateRealtimeModuleInput { - clientMutationId?: string; - id: string; - realtimeModulePatch: RealtimeModulePatch; -} -export interface DeleteRealtimeModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateConfigSecretsOrgModuleInput { - clientMutationId?: string; - configSecretsOrgModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface ConfigSecretsOrgModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; -} -export interface DeleteConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSchemaGrantInput { - clientMutationId?: string; - schemaGrant: { - databaseId?: string; - schemaId: string; - granteeName: string; - }; -} -export interface SchemaGrantPatch { - databaseId?: string | null; - schemaId?: string | null; - granteeName?: string | null; -} -export interface UpdateSchemaGrantInput { - clientMutationId?: string; - id: string; - schemaGrantPatch: SchemaGrantPatch; -} -export interface DeleteSchemaGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateDefaultPrivilegeInput { - clientMutationId?: string; - defaultPrivilege: { - databaseId?: string; - schemaId: string; - objectType: string; - privilege: string; - granteeName: string; - isGrant?: boolean; - }; -} -export interface DefaultPrivilegePatch { - databaseId?: string | null; - schemaId?: string | null; - objectType?: string | null; - privilege?: string | null; - granteeName?: string | null; - isGrant?: boolean | null; -} -export interface UpdateDefaultPrivilegeInput { - clientMutationId?: string; - id: string; - defaultPrivilegePatch: DefaultPrivilegePatch; -} -export interface DeleteDefaultPrivilegeInput { - clientMutationId?: string; - id: string; -} -export interface CreateEnumInput { - clientMutationId?: string; - enum: { - databaseId: string; - schemaId: string; - name: string; - label?: string; - description?: string; - values?: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface EnumPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - values?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateEnumInput { - clientMutationId?: string; - id: string; - enumPatch: EnumPatch; -} -export interface DeleteEnumInput { - clientMutationId?: string; - id: string; -} -export interface CreateFunctionInput { - clientMutationId?: string; - function: { - databaseId: string; - schemaId: string; - name: string; - }; -} -export interface FunctionPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; -} -export interface UpdateFunctionInput { - clientMutationId?: string; - id: string; - functionPatch: FunctionPatch; -} -export interface DeleteFunctionInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiSchemaInput { - clientMutationId?: string; - apiSchema: { - databaseId: string; - schemaId: string; - apiId: string; - }; -} -export interface ApiSchemaPatch { - databaseId?: string | null; - schemaId?: string | null; - apiId?: string | null; -} -export interface UpdateApiSchemaInput { - clientMutationId?: string; - id: string; - apiSchemaPatch: ApiSchemaPatch; -} -export interface DeleteApiSchemaInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiModuleInput { - clientMutationId?: string; - apiModule: { - databaseId: string; - apiId: string; - name: string; - data: Record; - }; -} -export interface ApiModulePatch { - databaseId?: string | null; - apiId?: string | null; - name?: string | null; - data?: Record | null; -} -export interface UpdateApiModuleInput { - clientMutationId?: string; - id: string; - apiModulePatch: ApiModulePatch; -} -export interface DeleteApiModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDomainInput { - clientMutationId?: string; - domain: { - databaseId: string; - apiId?: string; - siteId?: string; - subdomain?: ConstructiveInternalTypeHostname; - domain?: ConstructiveInternalTypeHostname; - }; -} -export interface DomainPatch { - databaseId?: string | null; - apiId?: string | null; - siteId?: string | null; - subdomain?: ConstructiveInternalTypeHostname | null; - domain?: ConstructiveInternalTypeHostname | null; -} -export interface UpdateDomainInput { - clientMutationId?: string; - id: string; - domainPatch: DomainPatch; -} -export interface DeleteDomainInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteMetadatumInput { - clientMutationId?: string; - siteMetadatum: { - databaseId: string; - siteId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - }; -} -export interface SiteMetadatumPatch { - databaseId?: string | null; - siteId?: string | null; - title?: string | null; - description?: string | null; - ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - id: string; - siteMetadatumPatch: SiteMetadatumPatch; -} -export interface DeleteSiteMetadatumInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - siteModule: { - databaseId: string; - siteId: string; - name: string; - data: Record; - }; -} -export interface SiteModulePatch { - databaseId?: string | null; - siteId?: string | null; - name?: string | null; - data?: Record | null; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - id: string; - siteModulePatch: SiteModulePatch; -} -export interface DeleteSiteModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteThemeInput { - clientMutationId?: string; - siteTheme: { - databaseId: string; - siteId: string; - theme: Record; - }; -} -export interface SiteThemePatch { - databaseId?: string | null; - siteId?: string | null; - theme?: Record | null; -} -export interface UpdateSiteThemeInput { - clientMutationId?: string; - id: string; - siteThemePatch: SiteThemePatch; -} -export interface DeleteSiteThemeInput { - clientMutationId?: string; - id: string; -} -export interface CreateCorsSettingInput { - clientMutationId?: string; - corsSetting: { - databaseId: string; - apiId?: string; - allowedOrigins?: string[]; - }; -} -export interface CorsSettingPatch { - databaseId?: string | null; - apiId?: string | null; - allowedOrigins?: string[] | null; -} -export interface UpdateCorsSettingInput { - clientMutationId?: string; - id: string; - corsSettingPatch: CorsSettingPatch; -} -export interface DeleteCorsSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateMerkleStoreModuleInput { - clientMutationId?: string; - merkleStoreModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - }; -} -export interface MerkleStoreModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; -} -export interface UpdateMerkleStoreModuleInput { - clientMutationId?: string; - id: string; - merkleStoreModulePatch: MerkleStoreModulePatch; -} -export interface DeleteMerkleStoreModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateGraphModuleInput { - clientMutationId?: string; - graphModule: { - databaseId: string; - publicSchemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - prefix?: string; - merkleStoreModuleId: string; - graphsTableId?: string; - executionsTableId?: string; - outputsTableId?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - membershipType?: number; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface GraphModulePatch { - databaseId?: string | null; - publicSchemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - prefix?: string | null; - merkleStoreModuleId?: string | null; - graphsTableId?: string | null; - executionsTableId?: string | null; - outputsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateGraphModuleInput { - clientMutationId?: string; - id: string; - graphModulePatch: GraphModulePatch; -} -export interface DeleteGraphModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateTriggerFunctionInput { - clientMutationId?: string; - triggerFunction: { - databaseId: string; - name: string; - code?: string; - }; -} -export interface TriggerFunctionPatch { - databaseId?: string | null; - name?: string | null; - code?: string | null; -} -export interface UpdateTriggerFunctionInput { - clientMutationId?: string; - id: string; - triggerFunctionPatch: TriggerFunctionPatch; -} -export interface DeleteTriggerFunctionInput { - clientMutationId?: string; - id: string; -} -export interface CreatePartitionInput { - clientMutationId?: string; - partition: { - databaseId: string; - tableId: string; - strategy: string; - partitionKeyId: string; - interval?: string; - retention?: string; - retentionKeepTable?: boolean; - premake?: number; - namingPattern?: string; - isParented?: boolean; - }; -} -export interface PartitionPatch { - databaseId?: string | null; - tableId?: string | null; - strategy?: string | null; - partitionKeyId?: string | null; - interval?: string | null; - retention?: string | null; - retentionKeepTable?: boolean | null; - premake?: number | null; - namingPattern?: string | null; - isParented?: boolean | null; -} -export interface UpdatePartitionInput { - clientMutationId?: string; - id: string; - partitionPatch: PartitionPatch; -} -export interface DeletePartitionInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseTransferInput { - clientMutationId?: string; - databaseTransfer: { - databaseId: string; - targetOwnerId: string; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: string; - targetApprovedAt?: string; - status?: string; - initiatedBy: string; - notes?: string; - expiresAt?: string; - completedAt?: string; - }; -} -export interface DatabaseTransferPatch { - databaseId?: string | null; - targetOwnerId?: string | null; - sourceApproved?: boolean | null; - targetApproved?: boolean | null; - sourceApprovedAt?: string | null; - targetApprovedAt?: string | null; - status?: string | null; - initiatedBy?: string | null; - notes?: string | null; - expiresAt?: string | null; - completedAt?: string | null; -} -export interface UpdateDatabaseTransferInput { - clientMutationId?: string; - id: string; - databaseTransferPatch: DatabaseTransferPatch; -} -export interface DeleteDatabaseTransferInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiInput { - clientMutationId?: string; - api: { - databaseId: string; - name: string; - dbname?: string; - roleName?: string; - anonRole?: string; - isPublic?: boolean; - }; -} -export interface ApiPatch { - databaseId?: string | null; - name?: string | null; - dbname?: string | null; - roleName?: string | null; - anonRole?: string | null; - isPublic?: boolean | null; -} -export interface UpdateApiInput { - clientMutationId?: string; - id: string; - apiPatch: ApiPatch; -} -export interface DeleteApiInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteInput { - clientMutationId?: string; - site: { - databaseId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; - }; -} -export interface SitePatch { - databaseId?: string | null; - title?: string | null; - description?: string | null; - ogImage?: ConstructiveInternalTypeImage | null; - favicon?: ConstructiveInternalTypeAttachment | null; - appleTouchIcon?: ConstructiveInternalTypeImage | null; - logo?: ConstructiveInternalTypeImage | null; - dbname?: string | null; - ogImageUpload?: File | null; - faviconUpload?: File | null; - appleTouchIconUpload?: File | null; - logoUpload?: File | null; -} -export interface UpdateSiteInput { - clientMutationId?: string; - id: string; - sitePatch: SitePatch; -} -export interface DeleteSiteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInput { - clientMutationId?: string; - app: { - databaseId: string; - siteId: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - playStoreLink?: ConstructiveInternalTypeUrl; - }; -} -export interface AppPatch { - databaseId?: string | null; - siteId?: string | null; - name?: string | null; - appImage?: ConstructiveInternalTypeImage | null; - appStoreLink?: ConstructiveInternalTypeUrl | null; - appStoreId?: string | null; - appIdPrefix?: string | null; - playStoreLink?: ConstructiveInternalTypeUrl | null; - appImageUpload?: File | null; -} -export interface UpdateAppInput { - clientMutationId?: string; - id: string; - appPatch: AppPatch; -} -export interface DeleteAppInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiSettingInput { - clientMutationId?: string; - apiSetting: { - databaseId: string; - apiId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: Record; - }; -} -export interface ApiSettingPatch { - databaseId?: string | null; - apiId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - enableBulk?: boolean | null; - options?: Record | null; -} -export interface UpdateApiSettingInput { - clientMutationId?: string; - id: string; - apiSettingPatch: ApiSettingPatch; -} -export interface DeleteApiSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateConnectedAccountsModuleInput { - clientMutationId?: string; - connectedAccountsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface ConnectedAccountsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; - connectedAccountsModulePatch: ConnectedAccountsModulePatch; -} -export interface DeleteConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAddressesModuleInput { - clientMutationId?: string; - cryptoAddressesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - cryptoNetwork?: string; - }; -} -export interface CryptoAddressesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; - cryptoNetwork?: string | null; -} -export interface UpdateCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; - cryptoAddressesModulePatch: CryptoAddressesModulePatch; -} -export interface DeleteCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAuthModuleInput { - clientMutationId?: string; - cryptoAuthModule: { - 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; - }; -} -export interface CryptoAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - addressesTableId?: string | null; - userField?: string | null; - cryptoNetwork?: string | null; - signInRequestChallenge?: string | null; - signInRecordFailure?: string | null; - signUpWithKey?: string | null; - signInWithChallenge?: string | null; -} -export interface UpdateCryptoAuthModuleInput { - clientMutationId?: string; - id: string; - cryptoAuthModulePatch: CryptoAuthModulePatch; -} -export interface DeleteCryptoAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDefaultIdsModuleInput { - clientMutationId?: string; - defaultIdsModule: { - databaseId: string; - }; -} -export interface DefaultIdsModulePatch { - databaseId?: string | null; -} -export interface UpdateDefaultIdsModuleInput { - clientMutationId?: string; - id: string; - defaultIdsModulePatch: DefaultIdsModulePatch; -} -export interface DeleteDefaultIdsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDenormalizedTableFieldInput { - clientMutationId?: string; - denormalizedTableField: { - databaseId: string; - tableId: string; - fieldId: string; - setIds?: string[]; - refTableId: string; - refFieldId: string; - refIds?: string[]; - useUpdates?: boolean; - updateDefaults?: boolean; - funcName?: string; - funcOrder?: number; - }; -} -export interface DenormalizedTableFieldPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} -export interface UpdateDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; - denormalizedTableFieldPatch: DenormalizedTableFieldPatch; -} -export interface DeleteDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmailsModuleInput { - clientMutationId?: string; - emailsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface EmailsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateEmailsModuleInput { - clientMutationId?: string; - id: string; - emailsModulePatch: EmailsModulePatch; -} -export interface DeleteEmailsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateConfigSecretsUserModuleInput { - clientMutationId?: string; - configSecretsUserModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - configDefinitionsTableId?: string; - }; -} -export interface ConfigSecretsUserModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - configDefinitionsTableId?: string | null; -} -export interface UpdateConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; -} -export interface DeleteConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateInvitesModuleInput { - clientMutationId?: string; - invitesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - }; -} -export interface InvitesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; -} -export interface UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - invitesModulePatch: InvitesModulePatch; -} -export interface DeleteInvitesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEventsModuleInput { - clientMutationId?: string; - eventsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: 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; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - }; -} -export interface EventsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface UpdateEventsModuleInput { - clientMutationId?: string; - id: string; - eventsModulePatch: EventsModulePatch; -} -export interface DeleteEventsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateLimitsModuleInput { - clientMutationId?: string; - limitsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - limitIncrementFunction?: string; - limitDecrementFunction?: string; - limitIncrementTrigger?: string; - limitDecrementTrigger?: string; - limitUpdateTrigger?: string; - limitCheckFunction?: string; - limitCreditsTableId?: string; - eventsTableId?: string; - creditCodesTableId?: string; - creditCodeItemsTableId?: string; - creditRedemptionsTableId?: string; - aggregateTableId?: string; - limitCapsTableId?: string; - limitCapsDefaultsTableId?: string; - capCheckTrigger?: string; - resolveCapFunction?: string; - limitWarningsTableId?: string; - limitWarningStateTableId?: string; - limitCheckSoftFunction?: string; - limitAggregateCheckSoftFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - }; -} -export interface LimitsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - limitIncrementFunction?: string | null; - limitDecrementFunction?: string | null; - limitIncrementTrigger?: string | null; - limitDecrementTrigger?: string | null; - limitUpdateTrigger?: string | null; - limitCheckFunction?: string | null; - limitCreditsTableId?: string | null; - eventsTableId?: string | null; - creditCodesTableId?: string | null; - creditCodeItemsTableId?: string | null; - creditRedemptionsTableId?: string | null; - aggregateTableId?: string | null; - limitCapsTableId?: string | null; - limitCapsDefaultsTableId?: string | null; - capCheckTrigger?: string | null; - resolveCapFunction?: string | null; - limitWarningsTableId?: string | null; - limitWarningStateTableId?: string | null; - limitCheckSoftFunction?: string | null; - limitAggregateCheckSoftFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface UpdateLimitsModuleInput { - clientMutationId?: string; - id: string; - limitsModulePatch: LimitsModulePatch; -} -export interface DeleteLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypesModuleInput { - clientMutationId?: string; - membershipTypesModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface MembershipTypesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateMembershipTypesModuleInput { - clientMutationId?: string; - id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; -} -export interface DeleteMembershipTypesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - membershipsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: 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; - membershipType: number; - entityTableId?: string; - entityTableOwnerId?: string; - prefix?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - }; -} -export interface MembershipsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - prefix?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; -} -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - membershipsModulePatch: MembershipsModulePatch; -} -export interface DeleteMembershipsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - prefix?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - }; -} -export interface PermissionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - prefix?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumbersModuleInput { - clientMutationId?: string; - phoneNumbersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface PhoneNumbersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdatePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; - phoneNumbersModulePatch: PhoneNumbersModulePatch; -} -export interface DeletePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateProfilesModuleInput { - clientMutationId?: string; - profilesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; - }; -} -export interface ProfilesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - prefix?: string | null; -} -export interface UpdateProfilesModuleInput { - clientMutationId?: string; - id: string; - profilesModulePatch: ProfilesModulePatch; -} -export interface DeleteProfilesModuleInput { - 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 CreateSessionsModuleInput { - clientMutationId?: string; - sessionsModule: { - databaseId: string; - schemaId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - authSettingsTableId?: string; - usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; - }; -} -export interface SessionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - authSettingsTableId?: string | null; - usersTableId?: string | null; - sessionsDefaultExpiration?: IntervalInput | null; - sessionsTable?: string | null; - sessionCredentialsTable?: string | null; - authSettingsTable?: string | null; -} -export interface UpdateSessionsModuleInput { - clientMutationId?: string; - id: string; - sessionsModulePatch: SessionsModulePatch; -} -export interface DeleteSessionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserAuthModuleInput { - clientMutationId?: string; - userAuthModule: { - databaseId: string; - schemaId?: string; - emailsTableId?: string; - usersTableId?: string; - secretsTableId?: string; - encryptedTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - 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; - }; -} -export interface UserAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - encryptedTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - auditsTableName?: string | null; - signInFunction?: string | null; - signUpFunction?: string | null; - signOutFunction?: string | null; - setPasswordFunction?: string | null; - resetPasswordFunction?: string | null; - forgotPasswordFunction?: string | null; - sendVerificationEmailFunction?: string | null; - verifyEmailFunction?: string | null; - verifyPasswordFunction?: string | null; - checkPasswordFunction?: string | null; - sendAccountDeletionEmailFunction?: string | null; - deleteAccountFunction?: string | null; - signInCrossOriginFunction?: string | null; - requestCrossOriginTokenFunction?: string | null; - extendTokenExpires?: string | null; -} -export interface UpdateUserAuthModuleInput { - clientMutationId?: string; - id: string; - userAuthModulePatch: UserAuthModulePatch; -} -export interface DeleteUserAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUsersModuleInput { - clientMutationId?: string; - usersModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - typeTableId?: string; - typeTableName?: string; - }; -} -export interface UsersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - typeTableId?: string | null; - typeTableName?: string | null; -} -export interface UpdateUsersModuleInput { - clientMutationId?: string; - id: string; - usersModulePatch: UsersModulePatch; -} -export interface DeleteUsersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintInput { - clientMutationId?: string; - blueprint: { - ownerId: string; - databaseId: string; - name: string; - displayName: string; - description?: string; - definition: Record; - templateId?: string; - definitionHash?: string; - tableHashes?: Record; - }; -} -export interface BlueprintPatch { - ownerId?: string | null; - databaseId?: string | null; - name?: string | null; - displayName?: string | null; - description?: string | null; - definition?: Record | null; - templateId?: string | null; - definitionHash?: string | null; - tableHashes?: Record | null; -} -export interface UpdateBlueprintInput { - clientMutationId?: string; - id: string; - blueprintPatch: BlueprintPatch; -} -export interface DeleteBlueprintInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintTemplateInput { - clientMutationId?: string; - blueprintTemplate: { - name: string; - version?: string; - displayName: string; - description?: string; - ownerId: string; - visibility?: string; - categories?: string[]; - tags?: string[]; - definition: Record; - definitionSchemaVersion?: string; - source?: string; - complexity?: string; - copyCount?: number; - forkCount?: number; - forkedFromId?: string; - definitionHash?: string; - tableHashes?: Record; - }; -} -export interface BlueprintTemplatePatch { - name?: string | null; - version?: string | null; - displayName?: string | null; - description?: string | null; - ownerId?: string | null; - visibility?: string | null; - categories?: string[] | null; - tags?: string[] | null; - definition?: Record | null; - definitionSchemaVersion?: string | null; - source?: string | null; - complexity?: string | null; - copyCount?: number | null; - forkCount?: number | null; - forkedFromId?: string | null; - definitionHash?: string | null; - tableHashes?: Record | null; -} -export interface UpdateBlueprintTemplateInput { - clientMutationId?: string; - id: string; - blueprintTemplatePatch: BlueprintTemplatePatch; -} -export interface DeleteBlueprintTemplateInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintConstructionInput { - clientMutationId?: string; - blueprintConstruction: { - blueprintId: string; - databaseId: string; - schemaId?: string; - status?: string; - errorDetails?: string; - tableMap?: Record; - constructedDefinition?: Record; - constructedAt?: string; - }; -} -export interface BlueprintConstructionPatch { - blueprintId?: string | null; - databaseId?: string | null; - schemaId?: string | null; - status?: string | null; - errorDetails?: string | null; - tableMap?: Record | null; - constructedDefinition?: Record | null; - constructedAt?: string | null; -} -export interface UpdateBlueprintConstructionInput { - clientMutationId?: string; - id: string; - blueprintConstructionPatch: BlueprintConstructionPatch; -} -export interface DeleteBlueprintConstructionInput { - clientMutationId?: string; - id: string; -} -export interface CreateStorageModuleInput { - clientMutationId?: string; - storageModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - key?: string; - policies?: Record; - provisions?: Record; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - }; -} -export interface StorageModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - membershipType?: number | null; - key?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: IntervalInput | null; - fileEventsTableId?: string | null; -} -export interface UpdateStorageModuleInput { - clientMutationId?: string; - id: string; - storageModulePatch: StorageModulePatch; -} -export interface DeleteStorageModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEntityTypeProvisionInput { - clientMutationId?: string; - entityTypeProvision: { - databaseId: string; - name: string; - prefix: string; - description?: string; - parentEntity?: string; - tableName?: string; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: Record; - namespaces?: Record; - functions?: Record; - graphs?: Record; - agents?: Record; - skipEntityPolicies?: boolean; - tableProvision?: Record; - outMembershipType?: number; - outEntityTableId?: string; - outEntityTableName?: string; - outInstalledModules?: string[]; - outStorageModuleId?: string; - outBucketsTableId?: string; - outFilesTableId?: string; - outPathSharesTableId?: string; - outInvitesModuleId?: string; - outNamespaceModuleId?: string; - outNamespacesTableId?: string; - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: string; - }; -} -export interface EntityTypeProvisionPatch { - databaseId?: string | null; - name?: string | null; - prefix?: string | null; - description?: string | null; - parentEntity?: string | null; - tableName?: string | null; - isVisible?: boolean | null; - hasLimits?: boolean | null; - hasProfiles?: boolean | null; - hasLevels?: boolean | null; - hasInvites?: boolean | null; - hasInviteAchievements?: boolean | null; - storage?: Record | null; - namespaces?: Record | null; - functions?: Record | null; - graphs?: Record | null; - agents?: Record | null; - skipEntityPolicies?: boolean | null; - tableProvision?: Record | null; - outMembershipType?: number | null; - outEntityTableId?: string | null; - outEntityTableName?: string | null; - outInstalledModules?: string[] | null; - outStorageModuleId?: string | null; - outBucketsTableId?: string | null; - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - outInvitesModuleId?: string | null; - outNamespaceModuleId?: string | null; - outNamespacesTableId?: string | null; - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -export interface UpdateEntityTypeProvisionInput { - clientMutationId?: string; - id: string; - entityTypeProvisionPatch: EntityTypeProvisionPatch; -} -export interface DeleteEntityTypeProvisionInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnCredentialsModuleInput { - clientMutationId?: string; - webauthnCredentialsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - }; -} -export interface WebauthnCredentialsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; - webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; -} -export interface DeleteWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnAuthModuleInput { - clientMutationId?: string; - webauthnAuthModule: { - 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; - }; -} -export interface WebauthnAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - authSettingsTableId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpiry?: IntervalInput | null; -} -export interface UpdateWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; - webauthnAuthModulePatch: WebauthnAuthModulePatch; -} -export interface DeleteWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateNotificationsModuleInput { - clientMutationId?: string; - notificationsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - readStateTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; - }; -} -export interface NotificationsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; -} -export interface UpdateNotificationsModuleInput { - clientMutationId?: string; - id: string; - notificationsModulePatch: NotificationsModulePatch; -} -export interface DeleteNotificationsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateInferenceLogModuleInput { - clientMutationId?: string; - inferenceLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface InferenceLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateInferenceLogModuleInput { - clientMutationId?: string; - id: string; - inferenceLogModulePatch: InferenceLogModulePatch; -} -export interface DeleteInferenceLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateComputeLogModuleInput { - clientMutationId?: string; - computeLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface ComputeLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateComputeLogModuleInput { - clientMutationId?: string; - id: string; - computeLogModulePatch: ComputeLogModulePatch; -} -export interface DeleteComputeLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateTransferLogModuleInput { - clientMutationId?: string; - transferLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface TransferLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateTransferLogModuleInput { - clientMutationId?: string; - id: string; - transferLogModulePatch: TransferLogModulePatch; -} -export interface DeleteTransferLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateStorageLogModuleInput { - clientMutationId?: string; - storageLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface StorageLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateStorageLogModuleInput { - clientMutationId?: string; - id: string; - storageLogModulePatch: StorageLogModulePatch; -} -export interface DeleteStorageLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDbUsageModuleInput { - clientMutationId?: string; - dbUsageModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - prefix?: string; - }; -} -export interface DbUsageModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; -} -export interface UpdateDbUsageModuleInput { - clientMutationId?: string; - id: string; - dbUsageModulePatch: DbUsageModulePatch; -} -export interface DeleteDbUsageModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentModuleInput { - clientMutationId?: string; - agentModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - threadTableId?: string; - messageTableId?: string; - taskTableId?: string; - promptsTableId?: string; - knowledgeTableId?: string; - threadTableName?: string; - messageTableName?: string; - taskTableName?: string; - promptsTableName?: string; - knowledgeTableName?: string; - hasKnowledge?: boolean; - apiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: Record; - knowledgeConfig?: Record; - knowledgePolicies?: Record; - provisions?: Record; - }; -} -export interface AgentModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - threadTableId?: string | null; - messageTableId?: string | null; - taskTableId?: string | null; - promptsTableId?: string | null; - knowledgeTableId?: string | null; - threadTableName?: string | null; - messageTableName?: string | null; - taskTableName?: string | null; - promptsTableName?: string | null; - knowledgeTableName?: string | null; - hasKnowledge?: boolean | null; - apiName?: string | null; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - knowledgeConfig?: Record | null; - knowledgePolicies?: Record | null; - provisions?: Record | null; -} -export interface UpdateAgentModuleInput { - clientMutationId?: string; - id: string; - agentModulePatch: AgentModulePatch; -} -export interface DeleteAgentModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateNamespaceModuleInput { - clientMutationId?: string; - namespaceModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface NamespaceModulePatch { - 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; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateNamespaceModuleInput { - clientMutationId?: string; - id: string; - namespaceModulePatch: NamespaceModulePatch; -} -export interface DeleteNamespaceModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateFunctionModuleInput { - clientMutationId?: string; - functionModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - prefix?: string; - key?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface FunctionModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - membershipType?: number | null; - prefix?: string | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateFunctionModuleInput { - clientMutationId?: string; - id: string; - functionModulePatch: FunctionModulePatch; -} -export interface DeleteFunctionModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseProvisionModuleInput { - clientMutationId?: string; - databaseProvisionModule: { - databaseName: string; - ownerId: string; - subdomain?: string; - domain: string; - modules?: string[]; - options?: Record; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - completedAt?: string; - }; -} -export interface DatabaseProvisionModulePatch { - databaseName?: string | null; - ownerId?: string | null; - subdomain?: string | null; - domain?: string | null; - modules?: string[] | null; - options?: Record | null; - bootstrapUser?: boolean | null; - status?: string | null; - errorMessage?: string | null; - databaseId?: string | null; - completedAt?: string | null; -} -export interface UpdateDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; - databaseProvisionModulePatch: DatabaseProvisionModulePatch; -} -export interface DeleteDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppAdminGrantInput { - clientMutationId?: string; - appAdminGrant: { - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppAdminGrantInput { - clientMutationId?: string; - id: string; - appAdminGrantPatch: AppAdminGrantPatch; -} -export interface DeleteAppAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppOwnerGrantInput { - clientMutationId?: string; - appOwnerGrant: { - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppOwnerGrantInput { - clientMutationId?: string; - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; -} -export interface DeleteAppOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppGrantInput { - clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppGrantInput { - clientMutationId?: string; - id: string; - appGrantPatch: AppGrantPatch; -} -export interface DeleteAppGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberInput { - clientMutationId?: string; - orgMember: { - isAdmin?: boolean; - actorId: string; - entityId: string; - }; -} -export interface OrgMemberPatch { - isAdmin?: boolean | null; - actorId?: string | null; - entityId?: string | null; -} -export interface UpdateOrgMemberInput { - clientMutationId?: string; - id: string; - orgMemberPatch: OrgMemberPatch; -} -export interface DeleteOrgMemberInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgOwnerGrantInput { - clientMutationId?: string; - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; -} -export interface DeleteOrgOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgGrantInput { - clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; -} -export interface DeleteOrgGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgChartEdgeInput { - clientMutationId?: string; - orgChartEdge: { - entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgePatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeInput { - clientMutationId?: string; - id: string; - orgChartEdgePatch: OrgChartEdgePatch; -} -export interface DeleteOrgChartEdgeInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgChartEdgeGrantInput { - clientMutationId?: string; - orgChartEdgeGrant: { - entityId: string; - childId: string; - parentId?: string; - grantorId?: string; - isGrant?: boolean; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgeGrantPatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -export interface DeleteOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; - entityId: string; - }; -} -export interface OrgPermissionDefaultPatch { - permissions?: string | null; - entityId?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface AppLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - appLimitCredit: { - defaultLimitId: string; - actorId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface AppLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - appLimitCreditPatch: AppLimitCreditPatch; -} -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - appLimitCreditCodeItem: { - creditCodeId: string; - defaultLimitId: string; - amount: string; - creditType?: string; - }; -} -export interface AppLimitCreditCodeItemPatch { - creditCodeId?: string | null; - defaultLimitId?: string | null; - amount?: string | null; - creditType?: string | null; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - appLimitCreditRedemption: { - creditCodeId: string; - entityId: string; - }; -} -export interface AppLimitCreditRedemptionPatch { - creditCodeId?: string | null; - entityId?: string | null; -} -export interface UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - entityId: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCreditInput { - clientMutationId?: string; - orgLimitCredit: { - defaultLimitId: string; - actorId?: string; - entityId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface OrgLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - entityId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - orgLimitAggregate: { - name?: string; - entityId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - reserved?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitAggregatePatch { - name?: string | null; - entityId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - reserved?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -export interface DeleteOrgLimitAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - orgLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - entityId?: string; - }; -} -export interface OrgLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; - entityId?: string | null; -} -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; -} -export interface DeleteOrgLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: { - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface PhoneNumberPatch { - ownerId?: string | null; - cc?: string | null; - number?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -export interface DeletePhoneNumberInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnCredentialInput { - clientMutationId?: string; - webauthnCredential: { - ownerId?: string; - credentialId: string; - publicKey: Base64EncodedBinary; - signCount?: string; - webauthnUserId: string; - transports?: string[]; - credentialDeviceType: string; - backupEligible?: boolean; - backupState?: boolean; - name?: string; - lastUsedAt?: string; - }; -} -export interface WebauthnCredentialPatch { - ownerId?: string | null; - credentialId?: string | null; - publicKey?: Base64EncodedBinary | null; - signCount?: string | null; - webauthnUserId?: string | null; - transports?: string[] | null; - credentialDeviceType?: string | null; - backupEligible?: boolean | null; - backupState?: boolean | null; - name?: string | null; - lastUsedAt?: string | null; -} -export interface UpdateWebauthnCredentialInput { - clientMutationId?: string; - id: string; - webauthnCredentialPatch: WebauthnCredentialPatch; -} -export interface DeleteWebauthnCredentialInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; -} -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; -} -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - orgInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - receiverId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - isReadOnly?: boolean; - expiresAt?: string; - entityId: string; - }; -} -export interface OrgInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - receiverId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - isReadOnly?: boolean | null; - expiresAt?: string | null; - entityId?: string | null; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - orgInvitePatch: OrgInvitePatch; -} -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgClaimedInviteInput { - clientMutationId?: string; - orgClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - entityId: string; - }; -} -export interface OrgClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; - entityId?: string | null; -} -export interface UpdateOrgClaimedInviteInput { - clientMutationId?: string; - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; -} -export interface DeleteOrgClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAuditLogAuthInput { - clientMutationId?: string; - auditLogAuth: { - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - }; -} -export interface AuditLogAuthPatch { - event?: string | null; - actorId?: string | null; - origin?: ConstructiveInternalTypeOrigin | null; - userAgent?: string | null; - ipAddress?: string | null; - success?: boolean | null; -} -export interface UpdateAuditLogAuthInput { - clientMutationId?: string; - id: string; - auditLogAuthPatch: AuditLogAuthPatch; -} -export interface DeleteAuditLogAuthInput { - clientMutationId?: string; - id: string; -} -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - slug?: string; - kind?: string; - displayName?: string; - enabled?: boolean; - isBuiltIn?: boolean; - }; -} -export interface IdentityProviderPatch { - slug?: string | null; - kind?: string | null; - displayName?: string | null; - enabled?: boolean | null; - isBuiltIn?: boolean | null; -} -export interface UpdateIdentityProviderInput { - clientMutationId?: string; - id: string; - identityProviderPatch: IdentityProviderPatch; -} -export interface DeleteIdentityProviderInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; - }; -} -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface UpdateMigrateFileInput { - clientMutationId?: string; - id: string; - migrateFilePatch: MigrateFilePatch; -} -export interface DeleteMigrateFileInput { - clientMutationId?: string; - id: string; -} -export interface CreateDevicesModuleInput { - clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; - }; -} -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -export interface UpdateDevicesModuleInput { - clientMutationId?: string; - id: string; - devicesModulePatch: DevicesModulePatch; -} -export interface DeleteDevicesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; - }; -} -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - nodeTypeRegistry: { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: Record; - tags?: string[]; - }; -} -export interface NodeTypeRegistryPatch { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - name: string; - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -export interface DeleteNodeTypeRegistryInput { - clientMutationId?: string; - name: string; -} -export interface CreateAppLimitCapsDefaultInput { - clientMutationId?: string; - appLimitCapsDefault: { - name: string; - max?: string; - }; -} -export interface AppLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; -} -export interface DeleteAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapsDefaultInput { - clientMutationId?: string; - orgLimitCapsDefault: { - name: string; - max?: string; - }; -} -export interface OrgLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; -} -export interface DeleteOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCapInput { - clientMutationId?: string; - appLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface AppLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - orgLimitCapPatch: OrgLimitCapPatch; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - ownerId?: string; - service?: string; - identifier?: string; - details?: Record; - isVerified?: boolean; - }; -} -export interface UserConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; -} -export interface UpdateUserConnectedAccountInput { - clientMutationId?: string; - id: string; - userConnectedAccountPatch: UserConnectedAccountPatch; -} -export interface DeleteUserConnectedAccountInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: { - name: string; - max?: string; - softMax?: string; - }; -} -export interface AppLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: string; - softMax?: string; - }; -} -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; - }; -} -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; -} -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreatePubkeySettingInput { - clientMutationId?: string; - pubkeySetting: { - databaseId: string; - schemaId?: string; - cryptoNetwork?: string; - userField?: string; - signUpWithKeyFunctionId?: string; - signInRequestChallengeFunctionId?: string; - signInRecordFailureFunctionId?: string; - signInWithChallengeFunctionId?: string; - }; -} -export interface PubkeySettingPatch { - databaseId?: string | null; - schemaId?: string | null; - cryptoNetwork?: string | null; - userField?: string | null; - signUpWithKeyFunctionId?: string | null; - signInRequestChallengeFunctionId?: string | null; - signInRecordFailureFunctionId?: string | null; - signInWithChallengeFunctionId?: string | null; -} -export interface UpdatePubkeySettingInput { - clientMutationId?: string; - id: string; - pubkeySettingPatch: PubkeySettingPatch; -} -export interface DeletePubkeySettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateRateLimitsModuleInput { - clientMutationId?: string; - rateLimitsModule: { - databaseId: string; - schemaId?: string; - rateLimitSettingsTableId?: string; - ipRateLimitsTableId?: string; - rateLimitsTableId?: string; - rateLimitSettingsTable?: string; - ipRateLimitsTable?: string; - rateLimitsTable?: string; - }; -} -export interface RateLimitsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -export interface UpdateRateLimitsModuleInput { - clientMutationId?: string; - id: string; - rateLimitsModulePatch: RateLimitsModulePatch; -} -export interface DeleteRateLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateRlsSettingInput { - clientMutationId?: string; - rlsSetting: { - databaseId: string; - authenticateSchemaId?: string; - roleSchemaId?: string; - authenticateFunctionId?: string; - authenticateStrictFunctionId?: string; - currentRoleFunctionId?: string; - currentRoleIdFunctionId?: string; - currentUserAgentFunctionId?: string; - currentIpAddressFunctionId?: string; - }; -} -export interface RlsSettingPatch { - databaseId?: string | null; - authenticateSchemaId?: string | null; - roleSchemaId?: string | null; - authenticateFunctionId?: string | null; - authenticateStrictFunctionId?: string | null; - currentRoleFunctionId?: string | null; - currentRoleIdFunctionId?: string | null; - currentUserAgentFunctionId?: string | null; - currentIpAddressFunctionId?: string | null; -} -export interface UpdateRlsSettingInput { - clientMutationId?: string; - id: string; - rlsSettingPatch: RlsSettingPatch; -} -export interface DeleteRlsSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateRlsModuleInput { - clientMutationId?: string; - rlsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; - }; -} -export interface RlsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface UpdateRlsModuleInput { - clientMutationId?: string; - id: string; - rlsModulePatch: RlsModulePatch; -} -export interface DeleteRlsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateRateLimitMetersModuleInput { - clientMutationId?: string; - rateLimitMetersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - }; -} -export interface RateLimitMetersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlansModuleInput { - clientMutationId?: string; - plansModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - prefix?: string; - }; -} -export interface PlansModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface UpdatePlansModuleInput { - clientMutationId?: string; - id: string; - plansModulePatch: PlansModulePatch; -} -export interface DeletePlansModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - name?: string; - databaseId?: string; - deploy?: string; - deps?: string[]; - payload?: Record; - content?: string; - revert?: string; - verify?: string; - action?: string; - actionId?: string; - actorId?: string; - }; -} -export interface SqlActionPatch { - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface UpdateSqlActionInput { - clientMutationId?: string; - id: number; - sqlActionPatch: SqlActionPatch; -} -export interface DeleteSqlActionInput { - clientMutationId?: string; - id: number; -} -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - databaseSetting: { - databaseId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: Record; - }; -} -export interface DatabaseSettingPatch { - databaseId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - enableBulk?: boolean | null; - options?: Record | null; -} -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - id: string; - databaseSettingPatch: DatabaseSettingPatch; -} -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} -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: { - databaseId: string; - schemaId?: string; - credentialsSchemaId?: string; - sessionsSchemaId?: string; - sessionSecretsSchemaId?: string; - credentialsTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - sessionSecretsTableId?: string; - userFieldId?: string; - rpId?: string; - rpName?: string; - originAllowlist?: string[]; - attestationType?: string; - requireUserVerification?: boolean; - residentKey?: string; - challengeExpirySeconds?: string; - }; -} -export interface WebauthnSettingPatch { - databaseId?: string | null; - schemaId?: string | null; - credentialsSchemaId?: string | null; - sessionsSchemaId?: string | null; - sessionSecretsSchemaId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - userFieldId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpirySeconds?: string | null; -} -export interface UpdateWebauthnSettingInput { - clientMutationId?: string; - id: string; - webauthnSettingPatch: WebauthnSettingPatch; -} -export interface DeleteWebauthnSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingModuleInput { - clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - recordUsageFunction?: string; - prefix?: string; - }; -} -export interface BillingModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - billingModulePatch: BillingModulePatch; -} -export interface DeleteBillingModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingProviderModuleInput { - clientMutationId?: string; - billingProviderModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - provider?: string; - productsTableId?: string; - pricesTableId?: string; - subscriptionsTableId?: string; - billingCustomersTableId?: string; - billingCustomersTableName?: string; - billingProductsTableId?: string; - billingProductsTableName?: string; - billingPricesTableId?: string; - billingPricesTableName?: string; - billingSubscriptionsTableId?: string; - billingSubscriptionsTableName?: string; - billingWebhookEventsTableId?: string; - billingWebhookEventsTableName?: string; - processBillingEventFunction?: string; - prefix?: string; - }; -} -export interface BillingProviderModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; -} -export interface UpdateBillingProviderModuleInput { - clientMutationId?: string; - id: string; - billingProviderModulePatch: BillingProviderModulePatch; -} -export interface DeleteBillingProviderModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateHierarchyModuleInput { - clientMutationId?: string; - hierarchyModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId: string; - usersTableId: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - }; -} -export interface HierarchyModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; -} -export interface UpdateHierarchyModuleInput { - clientMutationId?: string; - id: string; - hierarchyModulePatch: HierarchyModulePatch; -} -export interface DeleteHierarchyModuleInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - Database: { - schemas: 'Schema', - tables: 'Table', - checkConstraints: 'CheckConstraint', - fields: 'Field', - foreignKeyConstraints: 'ForeignKeyConstraint', - fullTextSearches: 'FullTextSearch', - indices: 'Index', - policies: 'Policy', - primaryKeyConstraints: 'PrimaryKeyConstraint', - schemaGrants: 'SchemaGrant', - tableGrants: 'TableGrant', - triggerFunctions: 'TriggerFunction', - triggers: 'Trigger', - uniqueConstraints: 'UniqueConstraint', - views: 'View', - viewGrants: 'ViewGrant', - viewRules: 'ViewRule', - defaultPrivileges: 'DefaultPrivilege', - enums: 'Enum', - embeddingChunks: 'EmbeddingChunk', - spatialRelations: 'SpatialRelation', - functions: 'Function', - partitions: 'Partition', - databaseTransfers: 'DatabaseTransfer', - apis: 'Api', - apiModules: 'ApiModule', - apiSchemas: 'ApiSchema', - sites: 'Site', - apps: 'App', - domains: 'Domain', - siteMetadata: 'SiteMetadatum', - siteModules: 'SiteModule', - siteThemes: 'SiteTheme', - apiSettings: 'ApiSetting', - corsSettings: 'CorsSetting', - connectedAccountsModules: 'ConnectedAccountsModule', - cryptoAddressesModules: 'CryptoAddressesModule', - cryptoAuthModules: 'CryptoAuthModule', - defaultIdsModules: 'DefaultIdsModule', - denormalizedTableFields: 'DenormalizedTableField', - emailsModules: 'EmailsModule', - configSecretsUserModules: 'ConfigSecretsUserModule', - invitesModules: 'InvitesModule', - eventsModules: 'EventsModule', - limitsModules: 'LimitsModule', - membershipTypesModules: 'MembershipTypesModule', - membershipsModules: 'MembershipsModule', - permissionsModules: 'PermissionsModule', - phoneNumbersModules: 'PhoneNumbersModule', - profilesModules: 'ProfilesModule', - userStateModules: 'UserStateModule', - sessionsModules: 'SessionsModule', - userAuthModules: 'UserAuthModule', - usersModules: 'UsersModule', - secureTableProvisions: 'SecureTableProvision', - relationProvisions: 'RelationProvision', - blueprints: 'Blueprint', - blueprintConstructions: 'BlueprintConstruction', - storageModules: 'StorageModule', - entityTypeProvisions: 'EntityTypeProvision', - sessionSecretsModules: 'SessionSecretsModule', - webauthnCredentialsModules: 'WebauthnCredentialsModule', - webauthnAuthModules: 'WebauthnAuthModule', - identityProvidersModules: 'IdentityProvidersModule', - notificationsModules: 'NotificationsModule', - realtimeModules: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - inferenceLogModules: 'InferenceLogModule', - computeLogModules: 'ComputeLogModule', - transferLogModules: 'TransferLogModule', - storageLogModules: 'StorageLogModule', - dbUsageModules: 'DbUsageModule', - agentModules: 'AgentModule', - merkleStoreModules: 'MerkleStoreModule', - graphModules: 'GraphModule', - namespaceModules: 'NamespaceModule', - functionModules: 'FunctionModule', - databaseProvisionModules: 'DatabaseProvisionModule', - }, - Schema: { - tables: 'Table', - schemaGrants: 'SchemaGrant', - views: 'View', - defaultPrivileges: 'DefaultPrivilege', - enums: 'Enum', - functions: 'Function', - apiSchemas: 'ApiSchema', - sessionSecretsModules: 'SessionSecretsModule', - identityProvidersModulesByPrivateSchemaId: 'IdentityProvidersModule', - identityProvidersModules: 'IdentityProvidersModule', - realtimeModulesByPrivateSchemaId: 'RealtimeModule', - realtimeModules: 'RealtimeModule', - realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - merkleStoreModulesByPrivateSchemaId: 'MerkleStoreModule', - }, - Table: { - checkConstraints: 'CheckConstraint', - fields: 'Field', - foreignKeyConstraints: 'ForeignKeyConstraint', - fullTextSearches: 'FullTextSearch', - indices: 'Index', - policies: 'Policy', - primaryKeyConstraints: 'PrimaryKeyConstraint', - tableGrants: 'TableGrant', - triggers: 'Trigger', - uniqueConstraints: 'UniqueConstraint', - views: 'View', - viewTables: 'ViewTable', - embeddingChunksByChunksTableId: 'EmbeddingChunk', - embeddingChunks: 'EmbeddingChunk', - spatialRelationsByRefTableId: 'SpatialRelation', - spatialRelations: 'SpatialRelation', - secureTableProvisions: 'SecureTableProvision', - relationProvisionsBySourceTableId: 'RelationProvision', - relationProvisionsByTargetTableId: 'RelationProvision', - sessionSecretsModulesBySessionsTableId: 'SessionSecretsModule', - sessionSecretsModules: 'SessionSecretsModule', - identityProvidersModules: 'IdentityProvidersModule', - realtimeModulesByChangeLogTableId: 'RealtimeModule', - realtimeModulesByListenerNodeTableId: 'RealtimeModule', - realtimeModulesBySourceRegistryTableId: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - }, - Field: { - spatialRelations: 'SpatialRelation', - spatialRelationsByRefFieldId: 'SpatialRelation', - }, - View: { - viewTables: 'ViewTable', - viewGrants: 'ViewGrant', - viewRules: 'ViewRule', - }, - MerkleStoreModule: { - graphModules: 'GraphModule', - }, - Api: { - apiModules: 'ApiModule', - apiSchemas: 'ApiSchema', - domains: 'Domain', - corsSettings: 'CorsSetting', - }, - Site: { - domains: 'Domain', - siteMetadata: 'SiteMetadatum', - siteModules: 'SiteModule', - siteThemes: 'SiteTheme', - }, - Blueprint: { - blueprintConstructions: 'BlueprintConstruction', - }, - BlueprintTemplate: { - blueprintTemplatesByForkedFromId: 'BlueprintTemplate', - blueprintsByTemplateId: 'Blueprint', - }, - AppLimitDefault: { - appLimitCreditsByDefaultLimitId: 'AppLimitCredit', - appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', - }, - OrgLimitDefault: { - orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, - User: { - ownedDatabases: 'Database', - appAdminGrantsByActorId: 'AppAdminGrant', - appAdminGrantsByGrantorId: 'AppAdminGrant', - appOwnerGrantsByActorId: 'AppOwnerGrant', - appOwnerGrantsByGrantorId: 'AppOwnerGrant', - appGrantsByActorId: 'AppGrant', - appGrantsByGrantorId: 'AppGrant', - orgMembershipsByActorId: 'OrgMembership', - orgMembershipsByEntityId: 'OrgMembership', - orgMembersByActorId: 'OrgMember', - orgMembersByEntityId: 'OrgMember', - orgAdminGrantsByActorId: 'OrgAdminGrant', - orgAdminGrantsByEntityId: 'OrgAdminGrant', - orgAdminGrantsByGrantorId: 'OrgAdminGrant', - orgOwnerGrantsByActorId: 'OrgOwnerGrant', - orgOwnerGrantsByEntityId: 'OrgOwnerGrant', - orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', - orgMemberProfilesByActorId: 'OrgMemberProfile', - orgMemberProfilesByEntityId: 'OrgMemberProfile', - orgGrantsByActorId: 'OrgGrant', - orgGrantsByEntityId: 'OrgGrant', - orgGrantsByGrantorId: 'OrgGrant', - parentOrgChartEdges: 'OrgChartEdge', - orgChartEdgesByEntityId: 'OrgChartEdge', - childOrgChartEdges: 'OrgChartEdge', - parentOrgChartEdgeGrants: 'OrgChartEdgeGrant', - orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', - orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', - childOrgChartEdgeGrants: 'OrgChartEdgeGrant', - orgPermissionDefaultsByEntityId: 'OrgPermissionDefault', - appLimitsByActorId: 'AppLimit', - appLimitCreditsByActorId: 'AppLimitCredit', - orgLimitsByActorId: 'OrgLimit', - orgLimitsByEntityId: 'OrgLimit', - orgLimitCreditsByActorId: 'OrgLimitCredit', - orgLimitCreditsByEntityId: 'OrgLimitCredit', - orgLimitAggregatesByEntityId: 'OrgLimitAggregate', - orgLimitWarningsByEntityId: 'OrgLimitWarning', - ownedEmails: 'Email', - ownedPhoneNumbers: 'PhoneNumber', - ownedCryptoAddresses: 'CryptoAddress', - ownedWebauthnCredentials: 'WebauthnCredential', - appInvitesBySenderId: 'AppInvite', - appClaimedInvitesByReceiverId: 'AppClaimedInvite', - appClaimedInvitesBySenderId: 'AppClaimedInvite', - orgInvitesByEntityId: 'OrgInvite', - orgInvitesByReceiverId: 'OrgInvite', - orgInvitesBySenderId: 'OrgInvite', - orgClaimedInvitesByEntityId: 'OrgClaimedInvite', - orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', - orgClaimedInvitesBySenderId: 'OrgClaimedInvite', - auditLogAuthsByActorId: 'AuditLogAuth', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface SendAccountDeletionEmailInput { - clientMutationId?: string; -} -export interface SignOutInput { - clientMutationId?: string; -} -export interface AcceptDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface CancelDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface RejectDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface DisconnectAccountInput { - clientMutationId?: string; - accountId: string; -} -export interface RevokeApiKeyInput { - clientMutationId?: string; - keyId: string; -} -export interface RevokeSessionInput { - clientMutationId?: string; - sessionId: string; -} -export interface VerifyPasswordInput { - clientMutationId?: string; - password: string; -} -export interface VerifyTotpInput { - clientMutationId?: string; - totpValue: string; -} -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface CheckPasswordInput { - clientMutationId?: string; - password?: string; -} -export interface ConfirmDeleteAccountInput { - clientMutationId?: string; - userId?: string; - token?: string; -} -export interface SetPasswordInput { - clientMutationId?: string; - currentPassword?: string; - newPassword?: string; -} -export interface VerifyEmailInput { - clientMutationId?: string; - emailId?: string; - token?: string; -} -export interface ConstructBlueprintInput { - clientMutationId?: string; - blueprintId?: string; - schemaId?: string; -} -export interface ProvisionNewUserInput { - clientMutationId?: string; - email?: string; - password?: string; -} -export interface ResetPasswordInput { - clientMutationId?: string; - roleId?: string; - resetToken?: string; - newPassword?: string; -} -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface CopyTemplateToBlueprintInput { - clientMutationId?: string; - templateId?: string; - databaseId?: string; - ownerId?: string; - nameOverride?: string; - displayNameOverride?: string; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - pDatabaseId?: string; - pSourceTableId?: string; - pSourceFieldId?: string; - pTargetTableId?: string; - pTargetFieldId?: string; - pName?: string; - pOperator?: string; - pParamName?: string; -} -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface ProvisionRelationInput { - clientMutationId?: string; - databaseId?: string; - relationType?: string; - sourceTableId?: string; - targetTableId?: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - createIndex?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; - policies?: Record; -} -export interface SetFieldOrderInput { - clientMutationId?: string; - fieldIds?: string[]; -} -export interface ApplyRlsInput { - clientMutationId?: string; - tableId?: string; - grants?: Record; - policyType?: string; - vars?: Record; - fieldIds?: string[]; - permissive?: boolean; - name?: string; -} -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: string[]; - pOptions?: Record; -} -export interface CreateUserDatabaseInput { - clientMutationId?: string; - databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; -} -export interface ExtendTokenExpiresInput { - clientMutationId?: string; - amount?: IntervalInput; -} -export interface CreateApiKeyInput { - clientMutationId?: string; - keyName?: string; - accessLevel?: string; - mfaLevel?: string; - expiresIn?: IntervalInput; -} -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - schemaId?: string; - tableName?: string; - tableId?: string; - nodes?: Record; - fields?: Record; - policies?: Record; - grants?: Record; - useRls?: boolean; - indexes?: Record; - fullTextSearches?: Record; - uniqueConstraints?: Record; - description?: string; -} -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaFilter; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFunctionFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPartitionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PartitionFilter; - /** Filters to entities where every related entity matches. */ - every?: PartitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PartitionFilter; -} -/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseTransferFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseTransferFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseTransferFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseTransferFilter; -} -/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiFilter; -} -/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteFilter; -} -/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAppFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppFilter; - /** Filters to entities where every related entity matches. */ - every?: AppFilter; - /** Filters to entities where no related entity matches. */ - none?: AppFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSettingFilter; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against many `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConnectedAccountsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConnectedAccountsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConnectedAccountsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConnectedAccountsModuleFilter; -} -/** A filter to be used against many `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAddressesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressesModuleFilter; -} -/** A filter to be used against many `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAuthModuleFilter; -} -/** A filter to be used against many `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultIdsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultIdsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultIdsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultIdsModuleFilter; -} -/** A filter to be used against many `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDenormalizedTableFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DenormalizedTableFieldFilter; - /** Filters to entities where every related entity matches. */ - every?: DenormalizedTableFieldFilter; - /** Filters to entities where no related entity matches. */ - none?: DenormalizedTableFieldFilter; -} -/** A filter to be used against many `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmailsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailsModuleFilter; -} -/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsUserModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsUserModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsUserModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsUserModuleFilter; -} -/** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInvitesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InvitesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InvitesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InvitesModuleFilter; -} -/** A filter to be used against many `EventsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEventsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EventsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EventsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EventsModuleFilter; -} -/** A filter to be used against many `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyLimitsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: LimitsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: LimitsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: LimitsModuleFilter; -} -/** A filter to be used against many `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipTypesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipTypesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipTypesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipTypesModuleFilter; -} -/** A filter to be used against many `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipsModuleFilter; -} -/** A filter to be used against many `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPermissionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PermissionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PermissionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PermissionsModuleFilter; -} -/** A filter to be used against many `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPhoneNumbersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumbersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumbersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumbersModuleFilter; -} -/** A filter to be used against many `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyProfilesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ProfilesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ProfilesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ProfilesModuleFilter; -} -/** A filter to be used against many `UserStateModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserStateModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserStateModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserStateModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserStateModuleFilter; -} -/** A filter to be used against many `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionsModuleFilter; -} -/** A filter to be used against many `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserAuthModuleFilter; -} -/** A filter to be used against many `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUsersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UsersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UsersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UsersModuleFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against many `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageModuleFilter; -} -/** A filter to be used against many `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEntityTypeProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EntityTypeProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: EntityTypeProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: EntityTypeProvisionFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnCredentialsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialsModuleFilter; -} -/** A filter to be used against many `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnAuthModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNotificationsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NotificationsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NotificationsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NotificationsModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInferenceLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InferenceLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InferenceLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InferenceLogModuleFilter; -} -/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyComputeLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ComputeLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ComputeLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ComputeLogModuleFilter; -} -/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTransferLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TransferLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: TransferLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: TransferLogModuleFilter; -} -/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageLogModuleFilter; -} -/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDbUsageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DbUsageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DbUsageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DbUsageModuleFilter; -} -/** A filter to be used against many `AgentModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAgentModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentModuleFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyGraphModuleFilter { - /** 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 filter to be used against many `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNamespaceModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NamespaceModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NamespaceModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NamespaceModuleFilter; -} -/** A filter to be used against many `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionModuleFilter; -} -/** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseProvisionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseProvisionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseProvisionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseProvisionModuleFilter; -} -/** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ -export interface ObjectCategoryFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ObjectCategory; - /** Not equal to the specified value. */ - notEqualTo?: ObjectCategory; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ObjectCategory; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ObjectCategory; - /** Included in the specified list. */ - in?: ObjectCategory[]; - /** Not included in the specified list. */ - notIn?: ObjectCategory[]; - /** Less than the specified value. */ - lessThan?: ObjectCategory; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ObjectCategory; - /** Greater than the specified value. */ - greaterThan?: ObjectCategory; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ObjectCategory; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ -export interface JSONListFilter { - /** 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[]; - /** 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 list of values. */ - contains?: Record[]; - /** Contained by the specified list of values. */ - containedBy?: Record[]; - /** Overlaps the specified list of values. */ - overlaps?: Record[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: Record; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: Record; - /** Any array item is less than the specified value. */ - anyLessThan?: Record; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: Record; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: Record; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: Record; -} -/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeHostnameFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeHostname; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeHostname; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeHostname[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeHostname[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeHostname; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeHostname; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** 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; -} -/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface 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 filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeAttachmentFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeAttachment; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeAttachment; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeAttachment[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeAttachment[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeAttachment; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeAttachment; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** 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; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUrlFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUrl; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUrl; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUrl[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUrl[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUrl; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUrl; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** 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; -} -/** 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; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintTemplateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintTemplateFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintTemplateFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintTemplateFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -/** 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[]; -} -/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeOriginFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeOrigin; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeOrigin; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeOrigin[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeOrigin[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeOrigin; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeOrigin; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** 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; -} -/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUploadFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUpload; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUpload; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUpload[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUpload[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUpload; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUpload; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeUpload; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeUpload; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ -export interface StringTrgmFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; - /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ - similarTo?: TrgmSearchInput; - /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ - wordSimilarTo?: TrgmSearchInput; -} -/** A filter to be used against many `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyDatabaseFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseFilter; -} -/** A filter to be used against many `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppAdminGrantFilter; -} -/** A filter to be used against many `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppOwnerGrantFilter; -} -/** A filter to be used against many `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppGrantFilter; -} -/** A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMembershipFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipFilter; -} -/** A filter to be used against many `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberFilter; -} -/** A filter to be used against many `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgAdminGrantFilter; -} -/** A filter to be used against many `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgOwnerGrantFilter; -} -/** A filter to be used against many `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberProfileFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberProfileFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberProfileFilter; -} -/** A filter to be used against many `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgGrantFilter; -} -/** A filter to be used against many `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeFilter; -} -/** A filter to be used against many `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeGrantFilter; -} -/** A filter to be used against many `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgPermissionDefaultFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultFilter; -} -/** A filter to be used against many `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitFilter; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitAggregateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitAggregateFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitAggregateFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitAggregateFilter; -} -/** A filter to be used against many `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitWarningFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitWarningFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitWarningFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitWarningFilter; -} -/** A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyEmailFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailFilter; -} -/** A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyPhoneNumberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumberFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumberFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumberFilter; -} -/** A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyCryptoAddressFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressFilter; -} -/** A filter to be used against many `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyWebauthnCredentialFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialFilter; -} -/** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppInviteFilter; -} -/** A filter to be used against many `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppClaimedInviteFilter; -} -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; -} -/** A filter to be used against many `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgClaimedInviteFilter; -} -/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogAuthFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AuditLogAuthFilter; - /** Filters to entities where every related entity matches. */ - every?: AuditLogAuthFilter; - /** Filters to entities where no related entity matches. */ - none?: AuditLogAuthFilter; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; -} -/** 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 `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: 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?: SchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; - /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: SchemaToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: SchemaToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */ - identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModulesByPrivateSchemaId` exist. */ - identityProvidersModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByPrivateSchemaId` relation. */ - realtimeModulesByPrivateSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesByPrivateSchemaId` exist. */ - realtimeModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. */ - realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesBySubscriptionsSchemaId` exist. */ - realtimeModulesBySubscriptionsSchemaIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation. */ - merkleStoreModulesByPrivateSchemaId?: SchemaToManyMerkleStoreModuleFilter; - /** `merkleStoreModulesByPrivateSchemaId` exist. */ - merkleStoreModulesByPrivateSchemaIdExist?: boolean; -} -/** 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. */ - 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `timestamps` field. */ - timestamps?: BooleanFilter; - /** Filter by the object’s `peoplestamps` field. */ - peoplestamps?: BooleanFilter; - /** Filter by the object’s `pluralName` field. */ - pluralName?: StringFilter; - /** Filter by the object’s `singularName` field. */ - singularName?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `partitioned` field. */ - partitioned?: BooleanFilter; - /** Filter by the object’s `partitionStrategy` field. */ - partitionStrategy?: StringFilter; - /** Filter by the object’s `partitionKeyNames` field. */ - partitionKeyNames?: StringListFilter; - /** Filter by the object’s `partitionKeyTypes` field. */ - partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: 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?: TableFilter[]; - /** Checks for any expressions in this list. */ - or?: TableFilter[]; - /** Negates the expression. */ - not?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `inherits` relation. */ - inherits?: TableFilter; - /** A related `inherits` exists. */ - inheritsExists?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: TableToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: TableToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: TableToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: TableToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: TableToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: TableToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: TableToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: TableToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: TableToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: TableToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ - embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunksByChunksTableId` exist. */ - embeddingChunksByChunksTableIdExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ - spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; - /** `spatialRelationsByRefTableId` exist. */ - spatialRelationsByRefTableIdExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: TableToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `partition` relation. */ - partition?: PartitionFilter; - /** A related `partition` exists. */ - partitionExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: TableToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisionsBySourceTableId` relation. */ - relationProvisionsBySourceTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsBySourceTableId` exist. */ - relationProvisionsBySourceTableIdExist?: boolean; - /** Filter by the object’s `relationProvisionsByTargetTableId` relation. */ - relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsByTargetTableId` exist. */ - relationProvisionsByTargetTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. */ - sessionSecretsModulesBySessionsTableId?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModulesBySessionsTableId` exist. */ - sessionSecretsModulesBySessionsTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: TableToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByChangeLogTableId` relation. */ - realtimeModulesByChangeLogTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByChangeLogTableId` exist. */ - realtimeModulesByChangeLogTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. */ - realtimeModulesByListenerNodeTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByListenerNodeTableId` exist. */ - realtimeModulesByListenerNodeTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. */ - realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesBySourceRegistryTableId` exist. */ - realtimeModulesBySourceRegistryTableIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; -} -/** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface CheckConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `expr` field. */ - expr?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: CheckConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: CheckConstraintFilter[]; - /** Negates the expression. */ - not?: CheckConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: JSONFilter; - /** Filter by the object’s `fieldOrder` field. */ - fieldOrder?: IntFilter; - /** Filter by the object’s `regexp` field. */ - regexp?: StringFilter; - /** Filter by the object’s `chk` field. */ - chk?: JSONFilter; - /** Filter by the object’s `chkExpr` field. */ - chkExpr?: JSONFilter; - /** Filter by the object’s `min` field. */ - min?: FloatFilter; - /** Filter by the object’s `max` field. */ - max?: FloatFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** 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?: FieldFilter[]; - /** Checks for any expressions in this list. */ - or?: FieldFilter[]; - /** Negates the expression. */ - not?: FieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: FieldToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ - spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; - /** `spatialRelationsByRefFieldId` exist. */ - spatialRelationsByRefFieldIdExist?: boolean; -} -/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface ForeignKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldIds` field. */ - refFieldIds?: UUIDListFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `updateAction` field. */ - updateAction?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: ForeignKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: ForeignKeyConstraintFilter[]; - /** Negates the expression. */ - not?: ForeignKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface FullTextSearchFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `weights` field. */ - weights?: StringListFilter; - /** Filter by the object’s `langs` field. */ - langs?: StringListFilter; - /** 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?: FullTextSearchFilter[]; - /** Checks for any expressions in this list. */ - or?: FullTextSearchFilter[]; - /** Negates the expression. */ - not?: FullTextSearchFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface IndexFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `includeFieldIds` field. */ - includeFieldIds?: UUIDListFilter; - /** Filter by the object’s `accessMethod` field. */ - accessMethod?: StringFilter; - /** Filter by the object’s `indexParams` field. */ - indexParams?: JSONFilter; - /** Filter by the object’s `whereClause` field. */ - whereClause?: JSONFilter; - /** Filter by the object’s `isUnique` field. */ - isUnique?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `opClasses` field. */ - opClasses?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: IndexFilter[]; - /** Checks for any expressions in this list. */ - or?: IndexFilter[]; - /** Negates the expression. */ - not?: IndexFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface PolicyFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `permissive` field. */ - permissive?: BooleanFilter; - /** Filter by the object’s `disabled` field. */ - disabled?: BooleanFilter; - /** Filter by the object’s `policyType` field. */ - policyType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PolicyFilter[]; - /** Checks for any expressions in this list. */ - or?: PolicyFilter[]; - /** Negates the expression. */ - not?: PolicyFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface PrimaryKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PrimaryKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: PrimaryKeyConstraintFilter[]; - /** Negates the expression. */ - not?: PrimaryKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaGrantFilter { - /** 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 `granteeName` field. */ - granteeName?: 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?: SchemaGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaGrantFilter[]; - /** Negates the expression. */ - not?: SchemaGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: 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?: TableGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: TableGrantFilter[]; - /** Negates the expression. */ - not?: TableGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `code` field. */ - code?: 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?: TriggerFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFunctionFilter[]; - /** Negates the expression. */ - not?: TriggerFunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `functionName` field. */ - functionName?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: TriggerFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFilter[]; - /** Negates the expression. */ - not?: TriggerFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface UniqueConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: UniqueConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: UniqueConstraintFilter[]; - /** Negates the expression. */ - not?: UniqueConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `viewType` field. */ - viewType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `filterType` field. */ - filterType?: StringFilter; - /** Filter by the object’s `filterData` field. */ - filterData?: JSONFilter; - /** Filter by the object’s `securityInvoker` field. */ - securityInvoker?: BooleanFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ViewFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewFilter[]; - /** Negates the expression. */ - not?: ViewFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** A related `table` exists. */ - tableExists?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: ViewToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: ViewToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: ViewToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; -} -/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `withGrantOption` field. */ - withGrantOption?: BooleanFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ViewGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewGrantFilter[]; - /** Negates the expression. */ - not?: ViewGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewRuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ViewRuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewRuleFilter[]; - /** Negates the expression. */ - not?: ViewRuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultPrivilegeFilter { - /** 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 `objectType` field. */ - objectType?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: DefaultPrivilegeFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultPrivilegeFilter[]; - /** Negates the expression. */ - not?: DefaultPrivilegeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface EnumFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `values` field. */ - values?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: EnumFilter[]; - /** Checks for any expressions in this list. */ - or?: EnumFilter[]; - /** Negates the expression. */ - not?: EnumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface EmbeddingChunkFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `embeddingFieldId` field. */ - embeddingFieldId?: UUIDFilter; - /** Filter by the object’s `chunksTableId` field. */ - chunksTableId?: UUIDFilter; - /** Filter by the object’s `chunksTableName` field. */ - chunksTableName?: StringFilter; - /** Filter by the object’s `contentFieldName` field. */ - contentFieldName?: StringFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: IntFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `chunkSize` field. */ - chunkSize?: IntFilter; - /** Filter by the object’s `chunkOverlap` field. */ - chunkOverlap?: IntFilter; - /** Filter by the object’s `chunkStrategy` field. */ - chunkStrategy?: StringFilter; - /** Filter by the object’s `metadataFields` field. */ - metadataFields?: JSONFilter; - /** Filter by the object’s `searchIndexes` field. */ - searchIndexes?: JSONFilter; - /** Filter by the object’s `enqueueChunkingJob` field. */ - enqueueChunkingJob?: BooleanFilter; - /** Filter by the object’s `chunkingTaskName` field. */ - chunkingTaskName?: StringFilter; - /** Filter by the object’s `embeddingModel` field. */ - embeddingModel?: StringFilter; - /** Filter by the object’s `embeddingProvider` field. */ - embeddingProvider?: StringFilter; - /** Filter by the object’s `parentFkFieldId` field. */ - parentFkFieldId?: 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?: EmbeddingChunkFilter[]; - /** Checks for any expressions in this list. */ - or?: EmbeddingChunkFilter[]; - /** Negates the expression. */ - not?: EmbeddingChunkFilter; - /** Filter by the object’s `chunksTable` relation. */ - chunksTable?: TableFilter; - /** A related `chunksTable` exists. */ - chunksTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `embeddingField` relation. */ - embeddingField?: FieldFilter; - /** A related `embeddingField` exists. */ - embeddingFieldExists?: boolean; - /** Filter by the object’s `parentFkField` relation. */ - parentFkField?: FieldFilter; - /** A related `parentFkField` exists. */ - parentFkFieldExists?: boolean; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface SpatialRelationFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `operator` field. */ - operator?: StringFilter; - /** Filter by the object’s `paramName` field. */ - paramName?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: SpatialRelationFilter[]; - /** Checks for any expressions in this list. */ - or?: SpatialRelationFilter[]; - /** Negates the expression. */ - not?: SpatialRelationFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionFilter[]; - /** Negates the expression. */ - not?: FunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface PartitionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `strategy` field. */ - strategy?: StringFilter; - /** Filter by the object’s `partitionKeyId` field. */ - partitionKeyId?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `retentionKeepTable` field. */ - retentionKeepTable?: BooleanFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `namingPattern` field. */ - namingPattern?: StringFilter; - /** Filter by the object’s `isParented` field. */ - isParented?: 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?: PartitionFilter[]; - /** Checks for any expressions in this list. */ - or?: PartitionFilter[]; - /** Negates the expression. */ - not?: PartitionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `partitionKey` relation. */ - partitionKey?: FieldFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseTransferFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `targetOwnerId` field. */ - targetOwnerId?: UUIDFilter; - /** Filter by the object’s `sourceApproved` field. */ - sourceApproved?: BooleanFilter; - /** Filter by the object’s `targetApproved` field. */ - targetApproved?: BooleanFilter; - /** Filter by the object’s `sourceApprovedAt` field. */ - sourceApprovedAt?: DatetimeFilter; - /** Filter by the object’s `targetApprovedAt` field. */ - targetApprovedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `initiatedBy` field. */ - initiatedBy?: UUIDFilter; - /** Filter by the object’s `notes` field. */ - notes?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseTransferFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseTransferFilter[]; - /** Negates the expression. */ - not?: DatabaseTransferFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ApiFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiFilter[]; - /** Negates the expression. */ - not?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: ApiToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: ApiToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: ApiToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `apiSetting` relation. */ - apiSetting?: ApiSettingFilter; - /** A related `apiSetting` exists. */ - apiSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: ApiToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; -} -/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ApiModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiModuleFilter[]; - /** Negates the expression. */ - not?: ApiModuleFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSchemaFilter { - /** 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 `apiId` field. */ - apiId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ApiSchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSchemaFilter[]; - /** Negates the expression. */ - not?: ApiSchemaFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteFilter { - /** Filter by the object’s `id` field. */ - id?: 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. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeAttachmentFilter; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Negates the expression. */ - not?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** A related `app` exists. */ - appExists?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: SiteToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: SiteToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; -} -/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ -export interface AppFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `appImage` field. */ - appImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `appStoreLink` field. */ - appStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Filter by the object’s `appStoreId` field. */ - appStoreId?: StringFilter; - /** Filter by the object’s `appIdPrefix` field. */ - appIdPrefix?: StringFilter; - /** Filter by the object’s `playStoreLink` field. */ - playStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Negates the expression. */ - not?: AppFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: ConstructiveInternalTypeHostnameFilter; - /** Filter by the object’s `domain` field. */ - domain?: ConstructiveInternalTypeHostnameFilter; - /** Checks for all expressions in this list. */ - and?: DomainFilter[]; - /** Checks for any expressions in this list. */ - or?: DomainFilter[]; - /** Negates the expression. */ - not?: DomainFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** A related `site` exists. */ - siteExists?: boolean; -} -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteModuleFilter[]; - /** Negates the expression. */ - not?: SiteModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteThemeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `theme` field. */ - theme?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; - /** Negates the expression. */ - not?: SiteThemeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: ApiSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSettingFilter[]; - /** Negates the expression. */ - not?: ApiSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface CorsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: CorsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: CorsSettingFilter[]; - /** Negates the expression. */ - not?: CorsSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConnectedAccountsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: CryptoAddressesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressesModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAddressesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAuthModuleFilter { - /** 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 `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `addressesTableId` field. */ - addressesTableId?: UUIDFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `signInRequestChallenge` field. */ - signInRequestChallenge?: StringFilter; - /** Filter by the object’s `signInRecordFailure` field. */ - signInRecordFailure?: StringFilter; - /** Filter by the object’s `signUpWithKey` field. */ - signUpWithKey?: StringFilter; - /** Filter by the object’s `signInWithChallenge` field. */ - signInWithChallenge?: StringFilter; - /** Checks for all expressions in this list. */ - and?: CryptoAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAuthModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultIdsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: DefaultIdsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultIdsModuleFilter[]; - /** Negates the expression. */ - not?: DefaultIdsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DenormalizedTableFieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `setIds` field. */ - setIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `refIds` field. */ - refIds?: UUIDListFilter; - /** Filter by the object’s `useUpdates` field. */ - useUpdates?: BooleanFilter; - /** Filter by the object’s `updateDefaults` field. */ - updateDefaults?: BooleanFilter; - /** Filter by the object’s `funcName` field. */ - funcName?: StringFilter; - /** Filter by the object’s `funcOrder` field. */ - funcOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: DenormalizedTableFieldFilter[]; - /** Checks for any expressions in this list. */ - or?: DenormalizedTableFieldFilter[]; - /** Negates the expression. */ - not?: DenormalizedTableFieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: EmailsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailsModuleFilter[]; - /** Negates the expression. */ - not?: EmailsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `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; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; - /** Filter by the object’s `claimedInvitesTable` relation. */ - claimedInvitesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `invitesTable` relation. */ - invitesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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; - /** Filter by the object’s `removeEvent` field. */ - removeEvent?: StringFilter; - /** Filter by the object’s `tgEvent` field. */ - tgEvent?: StringFilter; - /** Filter by the object’s `tgEventToggle` field. */ - tgEventToggle?: StringFilter; - /** Filter by the object’s `tgEventToggleBool` field. */ - tgEventToggleBool?: StringFilter; - /** Filter by the object’s `tgEventBool` field. */ - tgEventBool?: StringFilter; - /** Filter by the object’s `upsertAggregate` field. */ - 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. */ - levelAchieved?: StringFilter; - /** Filter by the object’s `tgCheckAchievements` field. */ - tgCheckAchievements?: StringFilter; - /** Filter by the object’s `grantAchievement` field. */ - grantAchievement?: StringFilter; - /** Filter by the object’s `tgAchievementReward` field. */ - tgAchievementReward?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EventsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EventsModuleFilter[]; - /** Negates the expression. */ - not?: EventsModuleFilter; - /** Filter by the object’s `achievementRewardsTable` relation. */ - achievementRewardsTable?: TableFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventAggregatesTable` relation. */ - eventAggregatesTable?: TableFilter; - /** Filter by the object’s `eventTypesTable` relation. */ - eventTypesTable?: TableFilter; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** Filter by the object’s `levelGrantsTable` relation. */ - levelGrantsTable?: TableFilter; - /** Filter by the object’s `levelRequirementsTable` relation. */ - levelRequirementsTable?: TableFilter; - /** Filter by the object’s `levelsTable` relation. */ - levelsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface LimitsModuleFilter { - /** Filter by the object’s `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 `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 `limitIncrementFunction` field. */ - limitIncrementFunction?: StringFilter; - /** Filter by the object’s `limitDecrementFunction` field. */ - limitDecrementFunction?: StringFilter; - /** Filter by the object’s `limitIncrementTrigger` field. */ - limitIncrementTrigger?: StringFilter; - /** Filter by the object’s `limitDecrementTrigger` field. */ - limitDecrementTrigger?: StringFilter; - /** Filter by the object’s `limitUpdateTrigger` field. */ - limitUpdateTrigger?: StringFilter; - /** Filter by the object’s `limitCheckFunction` field. */ - limitCheckFunction?: StringFilter; - /** Filter by the object’s `limitCreditsTableId` field. */ - limitCreditsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `creditCodesTableId` field. */ - creditCodesTableId?: UUIDFilter; - /** Filter by the object’s `creditCodeItemsTableId` field. */ - creditCodeItemsTableId?: UUIDFilter; - /** Filter by the object’s `creditRedemptionsTableId` field. */ - creditRedemptionsTableId?: UUIDFilter; - /** Filter by the object’s `aggregateTableId` field. */ - aggregateTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsTableId` field. */ - limitCapsTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsDefaultsTableId` field. */ - limitCapsDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `capCheckTrigger` field. */ - capCheckTrigger?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: LimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitsModuleFilter[]; - /** Negates the expression. */ - not?: LimitsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `aggregateTable` relation. */ - aggregateTable?: TableFilter; - /** A related `aggregateTable` exists. */ - aggregateTableExists?: boolean; - /** Filter by the object’s `creditCodeItemsTable` relation. */ - creditCodeItemsTable?: TableFilter; - /** A related `creditCodeItemsTable` exists. */ - creditCodeItemsTableExists?: boolean; - /** Filter by the object’s `creditCodesTable` relation. */ - creditCodesTable?: TableFilter; - /** A related `creditCodesTable` exists. */ - creditCodesTableExists?: boolean; - /** Filter by the object’s `creditRedemptionsTable` relation. */ - creditRedemptionsTable?: TableFilter; - /** A related `creditRedemptionsTable` exists. */ - creditRedemptionsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** A related `eventsTable` exists. */ - eventsTableExists?: boolean; - /** Filter by the object’s `limitCapsDefaultsTable` relation. */ - limitCapsDefaultsTable?: TableFilter; - /** A related `limitCapsDefaultsTable` exists. */ - limitCapsDefaultsTableExists?: boolean; - /** Filter by the object’s `limitCapsTable` relation. */ - limitCapsTable?: TableFilter; - /** A related `limitCapsTable` exists. */ - limitCapsTableExists?: boolean; - /** Filter by the object’s `limitCreditsTable` relation. */ - limitCreditsTable?: TableFilter; - /** A related `limitCreditsTable` exists. */ - limitCreditsTableExists?: boolean; - /** Filter by the object’s `limitWarningStateTable` relation. */ - limitWarningStateTable?: TableFilter; - /** A related `limitWarningStateTable` exists. */ - limitWarningStateTableExists?: boolean; - /** Filter by the object’s `limitWarningsTable` relation. */ - limitWarningsTable?: TableFilter; - /** A related `limitWarningsTable` exists. */ - limitWarningsTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypesModuleFilter { - /** 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?: MembershipTypesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; - /** Negates the expression. */ - not?: MembershipTypesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultLimitsTable` relation. */ - defaultLimitsTable?: TableFilter; - /** Filter by the object’s `defaultPermissionsTable` relation. */ - defaultPermissionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `entityTableOwner` relation. */ - entityTableOwner?: FieldFilter; - /** A related `entityTableOwner` exists. */ - entityTableOwnerExists?: boolean; - /** Filter by the object’s `grantsTable` relation. */ - grantsTable?: TableFilter; - /** Filter by the object’s `limitsTable` relation. */ - limitsTable?: TableFilter; - /** Filter by the object’s `membersTable` relation. */ - membersTable?: TableFilter; - /** Filter by the object’s `membershipDefaultsTable` relation. */ - membershipDefaultsTable?: TableFilter; - /** Filter by the object’s `membershipSettingsTable` relation. */ - membershipSettingsTable?: TableFilter; - /** A related `membershipSettingsTable` exists. */ - membershipSettingsTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sprtTable` relation. */ - sprtTable?: TableFilter; -} -/** 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumbersModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: PhoneNumbersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumbersModuleFilter[]; - /** Negates the expression. */ - not?: PhoneNumbersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `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 `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; - /** Filter by the object’s `profileGrantsTableId` field. */ - profileGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileGrantsTableName` field. */ - profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ - profileDefinitionGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ - profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `profileTemplatesTableId` field. */ - profileTemplatesTableId?: UUIDFilter; - /** Filter by the object’s `profileTemplatesTableName` field. */ - profileTemplatesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ProfilesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ProfilesModuleFilter[]; - /** Negates the expression. */ - not?: ProfilesModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `profileDefinitionGrantsTable` relation. */ - profileDefinitionGrantsTable?: TableFilter; - /** Filter by the object’s `profileGrantsTable` relation. */ - profileGrantsTable?: TableFilter; - /** Filter by the object’s `profilePermissionsTable` relation. */ - profilePermissionsTable?: TableFilter; - /** Filter by the object’s `profileTemplatesTable` relation. */ - profileTemplatesTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SessionsModuleFilter { - /** 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 `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsDefaultExpiration` field. */ - sessionsDefaultExpiration?: IntervalFilter; - /** Filter by the object’s `sessionsTable` field. */ - sessionsTable?: StringFilter; - /** Filter by the object’s `sessionCredentialsTable` field. */ - sessionCredentialsTable?: StringFilter; - /** Filter by the object’s `authSettingsTable` field. */ - authSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SessionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SessionsModuleFilter[]; - /** Negates the expression. */ - not?: SessionsModuleFilter; - /** Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. */ - authSettingsTableByAuthSettingsTableId?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. */ - sessionCredentialsTableBySessionCredentialsTableId?: TableFilter; - /** Filter by the object’s `sessionsTableBySessionsTableId` relation. */ - sessionsTableBySessionsTableId?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UserAuthModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `encryptedTableId` field. */ - encryptedTableId?: 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 `auditsTableName` field. */ - auditsTableName?: StringFilter; - /** Filter by the object’s `signInFunction` field. */ - signInFunction?: StringFilter; - /** Filter by the object’s `signUpFunction` field. */ - signUpFunction?: StringFilter; - /** Filter by the object’s `signOutFunction` field. */ - signOutFunction?: StringFilter; - /** Filter by the object’s `setPasswordFunction` field. */ - setPasswordFunction?: StringFilter; - /** Filter by the object’s `resetPasswordFunction` field. */ - resetPasswordFunction?: StringFilter; - /** Filter by the object’s `forgotPasswordFunction` field. */ - forgotPasswordFunction?: StringFilter; - /** Filter by the object’s `sendVerificationEmailFunction` field. */ - sendVerificationEmailFunction?: StringFilter; - /** Filter by the object’s `verifyEmailFunction` field. */ - verifyEmailFunction?: StringFilter; - /** Filter by the object’s `verifyPasswordFunction` field. */ - verifyPasswordFunction?: StringFilter; - /** Filter by the object’s `checkPasswordFunction` field. */ - checkPasswordFunction?: StringFilter; - /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ - sendAccountDeletionEmailFunction?: StringFilter; - /** Filter by the object’s `deleteAccountFunction` field. */ - deleteAccountFunction?: StringFilter; - /** Filter by the object’s `signInCrossOriginFunction` field. */ - signInCrossOriginFunction?: StringFilter; - /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ - requestCrossOriginTokenFunction?: StringFilter; - /** Filter by the object’s `extendTokenExpires` field. */ - extendTokenExpires?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserAuthModuleFilter[]; - /** Negates the expression. */ - not?: UserAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `encryptedTable` relation. */ - encryptedTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UsersModuleFilter { - /** 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 `typeTableId` field. */ - typeTableId?: UUIDFilter; - /** Filter by the object’s `typeTableName` field. */ - typeTableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UsersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UsersModuleFilter[]; - /** Negates the expression. */ - not?: UsersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `typeTable` relation. */ - typeTable?: TableFilter; -} -/** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface SecureTableProvisionFilter { - /** 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 `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `sourceTable` relation. */ - sourceTable?: TableFilter; - /** Filter by the object’s `targetTable` relation. */ - targetTable?: TableFilter; -} -/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `templateId` field. */ - templateId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintFilter[]; - /** Negates the expression. */ - not?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `template` relation. */ - template?: BlueprintTemplateFilter; - /** A related `template` exists. */ - templateExists?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; -} -/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageModuleFilter { - /** Filter by the object’s `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 `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `filesTableId` field. */ - filesTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `filesTableName` field. */ - filesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - hasPathShares?: BooleanFilter; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: UUIDFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `hasVersioning` field. */ - hasVersioning?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; - /** Filter by the object’s `fileEventsTableId` field. */ - fileEventsTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Filter by the object’s `bucketsTable` relation. */ - bucketsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `fileEventsTable` relation. */ - fileEventsTable?: TableFilter; - /** A related `fileEventsTable` exists. */ - fileEventsTableExists?: boolean; - /** Filter by the object’s `filesTable` relation. */ - filesTable?: TableFilter; - /** Filter by the object’s `pathSharesTable` relation. */ - pathSharesTable?: TableFilter; - /** A related `pathSharesTable` exists. */ - pathSharesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - 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 `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** 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. */ - 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialsModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -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[]; - /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; - /** Filter by the object’s `authSettingsTable` relation. */ - authSettingsTable?: TableFilter; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `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; - /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; - /** Negates the expression. */ - not?: NotificationsModuleFilter; - /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ - channelsTableByChannelsTableId?: TableFilter; - /** A related `channelsTableByChannelsTableId` exists. */ - channelsTableByChannelsTableIdExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ - deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ - deliveryLogTableByDeliveryLogTableIdExists?: boolean; - /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ - notificationsTableByNotificationsTableId?: TableFilter; - /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ - organizationSettingsTableByOrganizationSettingsTableId?: TableFilter; - /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */ - organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ - preferencesTableByPreferencesTableId?: TableFilter; - /** A related `preferencesTableByPreferencesTableId` exists. */ - preferencesTableByPreferencesTableIdExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ - readStateTableByReadStateTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ - userSettingsTableByUserSettingsTableId?: TableFilter; - /** A related `userSettingsTableByUserSettingsTableId` exists. */ - userSettingsTableByUserSettingsTableIdExists?: boolean; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; - /** Filter by the object’s `changeLogTable` relation. */ - changeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `listenerNodeTable` relation. */ - listenerNodeTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sourceRegistryTable` relation. */ - sourceRegistryTable?: TableFilter; - /** Filter by the object’s `subscriptionsSchema` relation. */ - subscriptionsSchema?: SchemaFilter; -} -/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface InferenceLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; - /** Negates the expression. */ - not?: InferenceLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `inferenceLogTable` relation. */ - inferenceLogTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ComputeLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; - /** Negates the expression. */ - not?: ComputeLogModuleFilter; - /** Filter by the object’s `computeLogTable` relation. */ - computeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TransferLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; - /** Negates the expression. */ - not?: TransferLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `transferLogTable` relation. */ - transferLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; - /** Negates the expression. */ - not?: StorageLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storageLogTable` relation. */ - storageLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; - /** Negates the expression. */ - not?: DbUsageModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `queryStatsDailyTable` relation. */ - queryStatsDailyTable?: TableFilter; - /** Filter by the object’s `queryStatsLogTable` relation. */ - queryStatsLogTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `tableStatsDailyTable` relation. */ - tableStatsDailyTable?: TableFilter; - /** Filter by the object’s `tableStatsLogTable` relation. */ - tableStatsLogTable?: TableFilter; -} -/** A filter to be used against `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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `knowledgeTableId` field. */ - knowledgeTableId?: UUIDFilter; - /** Filter by the object’s `threadTableName` field. */ - threadTableName?: StringFilter; - /** Filter by the object’s `messageTableName` field. */ - messageTableName?: StringFilter; - /** Filter by the object’s `taskTableName` field. */ - taskTableName?: StringFilter; - /** Filter by the object’s `promptsTableName` field. */ - promptsTableName?: StringFilter; - /** Filter by the object’s `knowledgeTableName` field. */ - knowledgeTableName?: StringFilter; - /** Filter by the object’s `hasKnowledge` field. */ - hasKnowledge?: BooleanFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `knowledgeConfig` field. */ - knowledgeConfig?: JSONFilter; - /** Filter by the object’s `knowledgePolicies` field. */ - knowledgePolicies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentModuleFilter[]; - /** Negates the expression. */ - not?: AgentModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `knowledgeTable` relation. */ - knowledgeTable?: TableFilter; - /** A related `knowledgeTable` exists. */ - knowledgeTableExists?: boolean; - /** Filter by the object’s `messageTable` relation. */ - messageTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `promptsTable` relation. */ - promptsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `taskTable` relation. */ - taskTable?: TableFilter; - /** Filter by the object’s `threadTable` relation. */ - threadTable?: TableFilter; -} -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `scopeField` field. */ - scopeField?: 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 `commitTable` relation. */ - commitTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `objectTable` relation. */ - objectTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storeTable` relation. */ - storeTable?: TableFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; -} -/** A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `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 `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scopeField` field. */ - scopeField?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** 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?: GraphModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; - /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `executionsTable` relation. */ - executionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `graphsTable` relation. */ - graphsTable?: TableFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; - /** Filter by the object’s `outputsTable` relation. */ - outputsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `publicSchema` relation. */ - publicSchema?: SchemaFilter; -} -/** 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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `namespaceEventsTable` relation. */ - namespaceEventsTable?: TableFilter; - /** Filter by the object’s `namespacesTable` relation. */ - namespacesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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 `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 `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `configRequirementsTable` relation. */ - configRequirementsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `definitionsTable` relation. */ - definitionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `executionLogsTable` relation. */ - executionLogsTable?: TableFilter; - /** Filter by the object’s `invocationsTable` relation. */ - invocationsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `requirementsTable` relation. */ - requirementsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretDefinitionsTable` relation. */ - secretDefinitionsTable?: TableFilter; -} -/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseProvisionModuleFilter { - /** Filter by the object’s `id` field. */ - 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?: StringListFilter; - /** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** A related `database` exists. */ - databaseExists?: boolean; -} -/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewTableFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `joinOrder` field. */ - joinOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: ViewTableFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewTableFilter[]; - /** Negates the expression. */ - not?: ViewTableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `version` field. */ - version?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `visibility` field. */ - visibility?: StringFilter; - /** Filter by the object’s `categories` field. */ - categories?: StringListFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `definitionSchemaVersion` field. */ - definitionSchemaVersion?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `complexity` field. */ - complexity?: StringFilter; - /** Filter by the object’s `copyCount` field. */ - copyCount?: IntFilter; - /** Filter by the object’s `forkCount` field. */ - forkCount?: IntFilter; - /** Filter by the object’s `forkedFromId` field. */ - forkedFromId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintTemplateFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintTemplateFilter[]; - /** Negates the expression. */ - not?: BlueprintTemplateFilter; - /** Filter by the object’s `forkedFrom` relation. */ - forkedFrom?: BlueprintTemplateFilter; - /** A related `forkedFrom` exists. */ - forkedFromExists?: boolean; - /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ - blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; - /** `blueprintTemplatesByForkedFromId` exist. */ - blueprintTemplatesByForkedFromIdExist?: boolean; - /** Filter by the object’s `blueprintsByTemplateId` relation. */ - blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; - /** `blueprintsByTemplateId` exist. */ - blueprintsByTemplateIdExist?: boolean; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `schemaHash` field. */ - schemaHash?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** 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?: DatabaseFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseFilter[]; - /** Negates the expression. */ - not?: DatabaseFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** Filter by the object’s `schemas` relation. */ - schemas?: DatabaseToManySchemaFilter; - /** `schemas` exist. */ - schemasExist?: boolean; - /** Filter by the object’s `tables` relation. */ - tables?: DatabaseToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: DatabaseToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: DatabaseToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: DatabaseToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggerFunctions` relation. */ - triggerFunctions?: DatabaseToManyTriggerFunctionFilter; - /** `triggerFunctions` exist. */ - triggerFunctionsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: DatabaseToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: DatabaseToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: DatabaseToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: DatabaseToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: DatabaseToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `partitions` relation. */ - partitions?: DatabaseToManyPartitionFilter; - /** `partitions` exist. */ - partitionsExist?: boolean; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `apis` relation. */ - apis?: DatabaseToManyApiFilter; - /** `apis` exist. */ - apisExist?: boolean; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: DatabaseToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: DatabaseToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sites` relation. */ - sites?: DatabaseToManySiteFilter; - /** `sites` exist. */ - sitesExist?: boolean; - /** Filter by the object’s `apps` relation. */ - apps?: DatabaseToManyAppFilter; - /** `apps` exist. */ - appsExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: DatabaseToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: DatabaseToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: DatabaseToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: DatabaseToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `databaseSetting` relation. */ - databaseSetting?: DatabaseSettingFilter; - /** A related `databaseSetting` exists. */ - databaseSettingExists?: boolean; - /** Filter by the object’s `apiSettings` relation. */ - apiSettings?: DatabaseToManyApiSettingFilter; - /** `apiSettings` exist. */ - apiSettingsExist?: boolean; - /** Filter by the object’s `rlsSetting` relation. */ - rlsSetting?: RlsSettingFilter; - /** A related `rlsSetting` exists. */ - rlsSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: DatabaseToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; - /** Filter by the object’s `pubkeySetting` relation. */ - pubkeySetting?: PubkeySettingFilter; - /** A related `pubkeySetting` exists. */ - pubkeySettingExists?: boolean; - /** Filter by the object’s `webauthnSetting` relation. */ - webauthnSetting?: WebauthnSettingFilter; - /** A related `webauthnSetting` exists. */ - webauthnSettingExists?: boolean; - /** Filter by the object’s `connectedAccountsModules` relation. */ - connectedAccountsModules?: DatabaseToManyConnectedAccountsModuleFilter; - /** `connectedAccountsModules` exist. */ - connectedAccountsModulesExist?: boolean; - /** Filter by the object’s `cryptoAddressesModules` relation. */ - cryptoAddressesModules?: DatabaseToManyCryptoAddressesModuleFilter; - /** `cryptoAddressesModules` exist. */ - cryptoAddressesModulesExist?: boolean; - /** Filter by the object’s `cryptoAuthModules` relation. */ - cryptoAuthModules?: DatabaseToManyCryptoAuthModuleFilter; - /** `cryptoAuthModules` exist. */ - cryptoAuthModulesExist?: boolean; - /** Filter by the object’s `defaultIdsModules` relation. */ - defaultIdsModules?: DatabaseToManyDefaultIdsModuleFilter; - /** `defaultIdsModules` exist. */ - defaultIdsModulesExist?: boolean; - /** Filter by the object’s `denormalizedTableFields` relation. */ - denormalizedTableFields?: DatabaseToManyDenormalizedTableFieldFilter; - /** `denormalizedTableFields` exist. */ - denormalizedTableFieldsExist?: boolean; - /** Filter by the object’s `emailsModules` relation. */ - emailsModules?: DatabaseToManyEmailsModuleFilter; - /** `emailsModules` exist. */ - emailsModulesExist?: boolean; - /** Filter by the object’s `configSecretsUserModules` relation. */ - configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; - /** `configSecretsUserModules` exist. */ - configSecretsUserModulesExist?: boolean; - /** Filter by the object’s `invitesModules` relation. */ - invitesModules?: DatabaseToManyInvitesModuleFilter; - /** `invitesModules` exist. */ - invitesModulesExist?: boolean; - /** Filter by the object’s `eventsModules` relation. */ - eventsModules?: DatabaseToManyEventsModuleFilter; - /** `eventsModules` exist. */ - eventsModulesExist?: boolean; - /** Filter by the object’s `limitsModules` relation. */ - limitsModules?: DatabaseToManyLimitsModuleFilter; - /** `limitsModules` exist. */ - limitsModulesExist?: boolean; - /** Filter by the object’s `membershipTypesModules` relation. */ - membershipTypesModules?: DatabaseToManyMembershipTypesModuleFilter; - /** `membershipTypesModules` exist. */ - membershipTypesModulesExist?: boolean; - /** Filter by the object’s `membershipsModules` relation. */ - membershipsModules?: DatabaseToManyMembershipsModuleFilter; - /** `membershipsModules` exist. */ - membershipsModulesExist?: boolean; - /** Filter by the object’s `permissionsModules` relation. */ - permissionsModules?: DatabaseToManyPermissionsModuleFilter; - /** `permissionsModules` exist. */ - permissionsModulesExist?: boolean; - /** Filter by the object’s `phoneNumbersModules` relation. */ - phoneNumbersModules?: DatabaseToManyPhoneNumbersModuleFilter; - /** `phoneNumbersModules` exist. */ - phoneNumbersModulesExist?: boolean; - /** Filter by the object’s `profilesModules` relation. */ - profilesModules?: DatabaseToManyProfilesModuleFilter; - /** `profilesModules` exist. */ - profilesModulesExist?: boolean; - /** Filter by the object’s `rlsModule` relation. */ - rlsModule?: RlsModuleFilter; - /** A related `rlsModule` exists. */ - rlsModuleExists?: boolean; - /** Filter by the object’s `userStateModules` relation. */ - userStateModules?: DatabaseToManyUserStateModuleFilter; - /** `userStateModules` exist. */ - userStateModulesExist?: boolean; - /** Filter by the object’s `sessionsModules` relation. */ - sessionsModules?: DatabaseToManySessionsModuleFilter; - /** `sessionsModules` exist. */ - sessionsModulesExist?: boolean; - /** Filter by the object’s `userAuthModules` relation. */ - userAuthModules?: DatabaseToManyUserAuthModuleFilter; - /** `userAuthModules` exist. */ - userAuthModulesExist?: boolean; - /** Filter by the object’s `usersModules` relation. */ - usersModules?: DatabaseToManyUsersModuleFilter; - /** `usersModules` exist. */ - usersModulesExist?: boolean; - /** Filter by the object’s `hierarchyModule` relation. */ - hierarchyModule?: HierarchyModuleFilter; - /** A related `hierarchyModule` exists. */ - hierarchyModuleExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: DatabaseToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisions` relation. */ - relationProvisions?: DatabaseToManyRelationProvisionFilter; - /** `relationProvisions` exist. */ - relationProvisionsExist?: boolean; - /** Filter by the object’s `blueprints` relation. */ - blueprints?: DatabaseToManyBlueprintFilter; - /** `blueprints` exist. */ - blueprintsExist?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: DatabaseToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; - /** Filter by the object’s `storageModules` relation. */ - storageModules?: DatabaseToManyStorageModuleFilter; - /** `storageModules` exist. */ - storageModulesExist?: boolean; - /** Filter by the object’s `entityTypeProvisions` relation. */ - entityTypeProvisions?: DatabaseToManyEntityTypeProvisionFilter; - /** `entityTypeProvisions` exist. */ - entityTypeProvisionsExist?: boolean; - /** Filter by the object’s `rateLimitsModule` relation. */ - rateLimitsModule?: RateLimitsModuleFilter; - /** A related `rateLimitsModule` exists. */ - rateLimitsModuleExists?: boolean; - /** Filter by the object’s `devicesModule` relation. */ - devicesModule?: DevicesModuleFilter; - /** A related `devicesModule` exists. */ - devicesModuleExists?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: DatabaseToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `webauthnCredentialsModules` relation. */ - webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter; - /** `webauthnCredentialsModules` exist. */ - webauthnCredentialsModulesExist?: boolean; - /** Filter by the object’s `webauthnAuthModules` relation. */ - webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter; - /** `webauthnAuthModules` exist. */ - webauthnAuthModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `notificationsModules` relation. */ - notificationsModules?: DatabaseToManyNotificationsModuleFilter; - /** `notificationsModules` exist. */ - notificationsModulesExist?: boolean; - /** Filter by the object’s `plansModule` relation. */ - plansModule?: PlansModuleFilter; - /** A related `plansModule` exists. */ - plansModuleExists?: boolean; - /** Filter by the object’s `billingModule` relation. */ - billingModule?: BillingModuleFilter; - /** A related `billingModule` exists. */ - billingModuleExists?: boolean; - /** Filter by the object’s `billingProviderModule` relation. */ - billingProviderModule?: BillingProviderModuleFilter; - /** A related `billingProviderModule` exists. */ - billingProviderModuleExists?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: DatabaseToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `rateLimitMetersModule` relation. */ - rateLimitMetersModule?: RateLimitMetersModuleFilter; - /** A related `rateLimitMetersModule` exists. */ - rateLimitMetersModuleExists?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `inferenceLogModules` relation. */ - inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; - /** `inferenceLogModules` exist. */ - inferenceLogModulesExist?: boolean; - /** Filter by the object’s `computeLogModules` relation. */ - computeLogModules?: DatabaseToManyComputeLogModuleFilter; - /** `computeLogModules` exist. */ - computeLogModulesExist?: boolean; - /** Filter by the object’s `transferLogModules` relation. */ - transferLogModules?: DatabaseToManyTransferLogModuleFilter; - /** `transferLogModules` exist. */ - transferLogModulesExist?: boolean; - /** Filter by the object’s `storageLogModules` relation. */ - storageLogModules?: DatabaseToManyStorageLogModuleFilter; - /** `storageLogModules` exist. */ - storageLogModulesExist?: boolean; - /** Filter by the object’s `dbUsageModules` relation. */ - dbUsageModules?: DatabaseToManyDbUsageModuleFilter; - /** `dbUsageModules` exist. */ - dbUsageModulesExist?: boolean; - /** Filter by the object’s `agentModules` relation. */ - agentModules?: DatabaseToManyAgentModuleFilter; - /** `agentModules` exist. */ - agentModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModules` relation. */ - merkleStoreModules?: DatabaseToManyMerkleStoreModuleFilter; - /** `merkleStoreModules` exist. */ - merkleStoreModulesExist?: boolean; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: DatabaseToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `namespaceModules` relation. */ - namespaceModules?: DatabaseToManyNamespaceModuleFilter; - /** `namespaceModules` exist. */ - namespaceModulesExist?: boolean; - /** Filter by the object’s `functionModules` relation. */ - functionModules?: DatabaseToManyFunctionModuleFilter; - /** `functionModules` exist. */ - functionModulesExist?: boolean; - /** Filter by the object’s `databaseProvisionModules` relation. */ - databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; - /** `databaseProvisionModules` exist. */ - databaseProvisionModulesExist?: boolean; -} -/** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; - /** Negates the expression. */ - not?: AppAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; - /** Negates the expression. */ - not?: AppOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -/** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberFilter[]; - /** Negates the expression. */ - not?: OrgMemberFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAddressFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: CryptoAddressFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; - /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `credentialId` field. */ - credentialId?: StringFilter; - /** Filter by the object’s `publicKey` field. */ - publicKey?: Base64EncodedBinaryFilter; - /** Filter by the object’s `signCount` field. */ - signCount?: BigIntFilter; - /** Filter by the object’s `webauthnUserId` field. */ - webauthnUserId?: StringFilter; - /** Filter by the object’s `transports` field. */ - transports?: StringListFilter; - /** Filter by the object’s `credentialDeviceType` field. */ - credentialDeviceType?: StringFilter; - /** Filter by the object’s `backupEligible` field. */ - backupEligible?: BooleanFilter; - /** Filter by the object’s `backupState` field. */ - backupState?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `lastUsedAt` field. */ - lastUsedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; - /** Negates the expression. */ - not?: AppClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; - /** Negates the expression. */ - not?: OrgClaimedInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogAuthFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogAuthFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogAuthFilter[]; - /** Negates the expression. */ - not?: AuditLogAuthFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; -} -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDListFilter { - /** 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 Float fields. All fields are combined with a logical ‘and.’ */ -export interface FloatFilter { - /** 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; -} -/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ -export interface BigIntFilter { - /** 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; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** 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?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `ownedDatabases` relation. */ - ownedDatabases?: UserToManyDatabaseFilter; - /** `ownedDatabases` exist. */ - ownedDatabasesExist?: boolean; - /** Filter by the object’s `appMembershipByActorId` relation. */ - appMembershipByActorId?: AppMembershipFilter; - /** A related `appMembershipByActorId` exists. */ - appMembershipByActorIdExists?: boolean; - /** Filter by the object’s `appAdminGrantsByActorId` relation. */ - appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByActorId` exist. */ - appAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ - appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByGrantorId` exist. */ - appAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ - appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByActorId` exist. */ - appOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ - appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByGrantorId` exist. */ - appOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appGrantsByActorId` relation. */ - appGrantsByActorId?: UserToManyAppGrantFilter; - /** `appGrantsByActorId` exist. */ - appGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appGrantsByGrantorId` relation. */ - appGrantsByGrantorId?: UserToManyAppGrantFilter; - /** `appGrantsByGrantorId` exist. */ - appGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByActorId` relation. */ - orgMembershipsByActorId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByActorId` exist. */ - orgMembershipsByActorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByEntityId` relation. */ - orgMembershipsByEntityId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByEntityId` exist. */ - orgMembershipsByEntityIdExist?: boolean; - /** Filter by the object’s `orgMembershipDefaultByEntityId` relation. */ - orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter; - /** A related `orgMembershipDefaultByEntityId` exists. */ - orgMembershipDefaultByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */ - orgMembershipSettingByEntityId?: OrgMembershipSettingFilter; - /** A related `orgMembershipSettingByEntityId` exists. */ - orgMembershipSettingByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembersByActorId` relation. */ - orgMembersByActorId?: UserToManyOrgMemberFilter; - /** `orgMembersByActorId` exist. */ - orgMembersByActorIdExist?: boolean; - /** Filter by the object’s `orgMembersByEntityId` relation. */ - orgMembersByEntityId?: UserToManyOrgMemberFilter; - /** `orgMembersByEntityId` exist. */ - orgMembersByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ - orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByActorId` exist. */ - orgAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ - orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByEntityId` exist. */ - orgAdminGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByGrantorId` relation. */ - orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByGrantorId` exist. */ - orgAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ - orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByActorId` exist. */ - orgOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ - orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByEntityId` exist. */ - orgOwnerGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByGrantorId` relation. */ - orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByGrantorId` exist. */ - orgOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByActorId` relation. */ - orgMemberProfilesByActorId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByActorId` exist. */ - orgMemberProfilesByActorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByEntityId` relation. */ - orgMemberProfilesByEntityId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByEntityId` exist. */ - orgMemberProfilesByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByActorId` relation. */ - orgGrantsByActorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByActorId` exist. */ - orgGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgGrantsByEntityId` relation. */ - orgGrantsByEntityId?: UserToManyOrgGrantFilter; - /** `orgGrantsByEntityId` exist. */ - orgGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByGrantorId` relation. */ - orgGrantsByGrantorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByGrantorId` exist. */ - orgGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `parentOrgChartEdges` relation. */ - parentOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `parentOrgChartEdges` exist. */ - parentOrgChartEdgesExist?: boolean; - /** Filter by the object’s `orgChartEdgesByEntityId` relation. */ - orgChartEdgesByEntityId?: UserToManyOrgChartEdgeFilter; - /** `orgChartEdgesByEntityId` exist. */ - orgChartEdgesByEntityIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdges` relation. */ - childOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `childOrgChartEdges` exist. */ - childOrgChartEdgesExist?: boolean; - /** Filter by the object’s `parentOrgChartEdgeGrants` relation. */ - parentOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `parentOrgChartEdgeGrants` exist. */ - parentOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByEntityId` relation. */ - orgChartEdgeGrantsByEntityId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByEntityId` exist. */ - orgChartEdgeGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation. */ - orgChartEdgeGrantsByGrantorId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByGrantorId` exist. */ - orgChartEdgeGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdgeGrants` relation. */ - childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `childOrgChartEdgeGrants` exist. */ - childOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ - orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; - /** `orgPermissionDefaultsByEntityId` exist. */ - orgPermissionDefaultsByEntityIdExist?: boolean; - /** Filter by the object’s `appLimitsByActorId` relation. */ - appLimitsByActorId?: UserToManyAppLimitFilter; - /** `appLimitsByActorId` exist. */ - appLimitsByActorIdExist?: boolean; - /** Filter by the object’s `appLimitCreditsByActorId` relation. */ - appLimitCreditsByActorId?: UserToManyAppLimitCreditFilter; - /** `appLimitCreditsByActorId` exist. */ - appLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByActorId` relation. */ - orgLimitsByActorId?: UserToManyOrgLimitFilter; - /** `orgLimitsByActorId` exist. */ - orgLimitsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByEntityId` relation. */ - orgLimitsByEntityId?: UserToManyOrgLimitFilter; - /** `orgLimitsByEntityId` exist. */ - orgLimitsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByActorId` relation. */ - orgLimitCreditsByActorId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByActorId` exist. */ - orgLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByEntityId` relation. */ - orgLimitCreditsByEntityId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByEntityId` exist. */ - orgLimitCreditsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ - orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; - /** `orgLimitAggregatesByEntityId` exist. */ - orgLimitAggregatesByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitWarningsByEntityId` relation. */ - orgLimitWarningsByEntityId?: UserToManyOrgLimitWarningFilter; - /** `orgLimitWarningsByEntityId` exist. */ - orgLimitWarningsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedEmails` relation. */ - ownedEmails?: UserToManyEmailFilter; - /** `ownedEmails` exist. */ - ownedEmailsExist?: boolean; - /** Filter by the object’s `ownedPhoneNumbers` relation. */ - ownedPhoneNumbers?: UserToManyPhoneNumberFilter; - /** `ownedPhoneNumbers` exist. */ - ownedPhoneNumbersExist?: boolean; - /** Filter by the object’s `ownedCryptoAddresses` relation. */ - ownedCryptoAddresses?: UserToManyCryptoAddressFilter; - /** `ownedCryptoAddresses` exist. */ - ownedCryptoAddressesExist?: boolean; - /** Filter by the object’s `ownedWebauthnCredentials` relation. */ - ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `ownedWebauthnCredentials` exist. */ - ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `appInvitesBySenderId` relation. */ - appInvitesBySenderId?: UserToManyAppInviteFilter; - /** `appInvitesBySenderId` exist. */ - appInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesByReceiverId` relation. */ - appClaimedInvitesByReceiverId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesByReceiverId` exist. */ - appClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesBySenderId` relation. */ - appClaimedInvitesBySenderId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesBySenderId` exist. */ - appClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgInvitesByEntityId` relation. */ - orgInvitesByEntityId?: UserToManyOrgInviteFilter; - /** `orgInvitesByEntityId` exist. */ - orgInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgInvitesByReceiverId` relation. */ - orgInvitesByReceiverId?: UserToManyOrgInviteFilter; - /** `orgInvitesByReceiverId` exist. */ - orgInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgInvitesBySenderId` relation. */ - orgInvitesBySenderId?: UserToManyOrgInviteFilter; - /** `orgInvitesBySenderId` exist. */ - orgInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ - orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByEntityId` exist. */ - orgClaimedInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ - orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByReceiverId` exist. */ - orgClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesBySenderId` relation. */ - orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesBySenderId` exist. */ - orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogAuthsByActorId` relation. */ - auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; - /** `auditLogAuthsByActorId` exist. */ - auditLogAuthsByActorIdExist?: boolean; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface RlsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `authenticateSchemaId` field. */ - authenticateSchemaId?: UUIDFilter; - /** Filter by the object’s `roleSchemaId` field. */ - roleSchemaId?: UUIDFilter; - /** Filter by the object’s `authenticateFunctionId` field. */ - authenticateFunctionId?: UUIDFilter; - /** Filter by the object’s `authenticateStrictFunctionId` field. */ - authenticateStrictFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleFunctionId` field. */ - currentRoleFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleIdFunctionId` field. */ - currentRoleIdFunctionId?: UUIDFilter; - /** Filter by the object’s `currentUserAgentFunctionId` field. */ - currentUserAgentFunctionId?: UUIDFilter; - /** Filter by the object’s `currentIpAddressFunctionId` field. */ - currentIpAddressFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RlsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsSettingFilter[]; - /** Negates the expression. */ - not?: RlsSettingFilter; - /** Filter by the object’s `authenticateFunction` relation. */ - authenticateFunction?: FunctionFilter; - /** A related `authenticateFunction` exists. */ - authenticateFunctionExists?: boolean; - /** Filter by the object’s `authenticateSchema` relation. */ - authenticateSchema?: SchemaFilter; - /** A related `authenticateSchema` exists. */ - authenticateSchemaExists?: boolean; - /** Filter by the object’s `authenticateStrictFunction` relation. */ - authenticateStrictFunction?: FunctionFilter; - /** A related `authenticateStrictFunction` exists. */ - authenticateStrictFunctionExists?: boolean; - /** Filter by the object’s `currentIpAddressFunction` relation. */ - currentIpAddressFunction?: FunctionFilter; - /** A related `currentIpAddressFunction` exists. */ - currentIpAddressFunctionExists?: boolean; - /** Filter by the object’s `currentRoleFunction` relation. */ - currentRoleFunction?: FunctionFilter; - /** A related `currentRoleFunction` exists. */ - currentRoleFunctionExists?: boolean; - /** Filter by the object’s `currentRoleIdFunction` relation. */ - currentRoleIdFunction?: FunctionFilter; - /** A related `currentRoleIdFunction` exists. */ - currentRoleIdFunctionExists?: boolean; - /** Filter by the object’s `currentUserAgentFunction` relation. */ - currentUserAgentFunction?: FunctionFilter; - /** A related `currentUserAgentFunction` exists. */ - currentUserAgentFunctionExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `roleSchema` relation. */ - roleSchema?: SchemaFilter; - /** A related `roleSchema` exists. */ - roleSchemaExists?: boolean; -} -/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ -export interface PubkeySettingFilter { - /** 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 `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `signUpWithKeyFunctionId` field. */ - signUpWithKeyFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ - signInRequestChallengeFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRecordFailureFunctionId` field. */ - signInRecordFailureFunctionId?: UUIDFilter; - /** Filter by the object’s `signInWithChallengeFunctionId` field. */ - signInWithChallengeFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PubkeySettingFilter[]; - /** Checks for any expressions in this list. */ - or?: PubkeySettingFilter[]; - /** Negates the expression. */ - not?: PubkeySettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `signInRecordFailureFunction` relation. */ - signInRecordFailureFunction?: FunctionFilter; - /** A related `signInRecordFailureFunction` exists. */ - signInRecordFailureFunctionExists?: boolean; - /** Filter by the object’s `signInRequestChallengeFunction` relation. */ - signInRequestChallengeFunction?: FunctionFilter; - /** A related `signInRequestChallengeFunction` exists. */ - signInRequestChallengeFunctionExists?: boolean; - /** Filter by the object’s `signInWithChallengeFunction` relation. */ - signInWithChallengeFunction?: FunctionFilter; - /** A related `signInWithChallengeFunction` exists. */ - signInWithChallengeFunctionExists?: boolean; - /** Filter by the object’s `signUpWithKeyFunction` relation. */ - signUpWithKeyFunction?: FunctionFilter; - /** A related `signUpWithKeyFunction` exists. */ - signUpWithKeyFunctionExists?: boolean; -} -/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnSettingFilter { - /** 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 `credentialsSchemaId` field. */ - credentialsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionsSchemaId` field. */ - sessionsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsSchemaId` field. */ - sessionSecretsSchemaId?: 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 `userFieldId` field. */ - userFieldId?: 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 `challengeExpirySeconds` field. */ - challengeExpirySeconds?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnSettingFilter[]; - /** Negates the expression. */ - not?: WebauthnSettingFilter; - /** Filter by the object’s `credentialsSchema` relation. */ - credentialsSchema?: SchemaFilter; - /** A related `credentialsSchema` exists. */ - credentialsSchemaExists?: boolean; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** A related `credentialsTable` exists. */ - credentialsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** A related `sessionCredentialsTable` exists. */ - sessionCredentialsTableExists?: boolean; - /** Filter by the object’s `sessionSecretsSchema` relation. */ - sessionSecretsSchema?: SchemaFilter; - /** A related `sessionSecretsSchema` exists. */ - sessionSecretsSchemaExists?: boolean; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** A related `sessionSecretsTable` exists. */ - sessionSecretsTableExists?: boolean; - /** Filter by the object’s `sessionsSchema` relation. */ - sessionsSchema?: SchemaFilter; - /** A related `sessionsSchema` exists. */ - sessionsSchemaExists?: boolean; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** A related `sessionsTable` exists. */ - sessionsTableExists?: boolean; - /** Filter by the object’s `userField` relation. */ - userField?: FieldFilter; - /** A related `userField` exists. */ - userFieldExists?: boolean; -} -/** 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. */ - 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; - /** Checks for all expressions in this list. */ - and?: RlsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsModuleFilter[]; - /** Negates the expression. */ - not?: RlsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HierarchyModuleFilter { - /** 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 `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 `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 `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; - /** Filter by the object’s `chartEdgeGrantsTable` relation. */ - chartEdgeGrantsTable?: TableFilter; - /** Filter by the object’s `chartEdgesTable` relation. */ - chartEdgesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** Filter by the object’s `hierarchySprtTable` relation. */ - hierarchySprtTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `RateLimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitsModuleFilter { - /** 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 `rateLimitSettingsTableId` field. */ - rateLimitSettingsTableId?: UUIDFilter; - /** Filter by the object’s `ipRateLimitsTableId` field. */ - ipRateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitsTableId` field. */ - rateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitSettingsTable` field. */ - rateLimitSettingsTable?: StringFilter; - /** Filter by the object’s `ipRateLimitsTable` field. */ - ipRateLimitsTable?: StringFilter; - /** Filter by the object’s `rateLimitsTable` field. */ - rateLimitsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitsModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. */ - ipRateLimitsTableByIpRateLimitsTableId?: TableFilter; - /** Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. */ - rateLimitSettingsTableByRateLimitSettingsTableId?: TableFilter; - /** Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation. */ - rateLimitsTableByRateLimitsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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. */ - 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 `userDevicesTableId` field. */ - userDevicesTableId?: UUIDFilter; - /** Filter by the object’s `deviceSettingsTableId` field. */ - deviceSettingsTableId?: UUIDFilter; - /** Filter by the object’s `userDevicesTable` field. */ - userDevicesTable?: StringFilter; - /** Filter by the object’s `deviceSettingsTable` field. */ - deviceSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DevicesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DevicesModuleFilter[]; - /** Negates the expression. */ - not?: DevicesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. */ - deviceSettingsTableByDeviceSettingsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ - userDevicesTableByUserDevicesTableId?: TableFilter; -} -/** 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 `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 `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `planLimitsTable` relation. */ - planLimitsTable?: TableFilter; - /** Filter by the object’s `planOverridesTable` relation. */ - planOverridesTable?: TableFilter; - /** A related `planOverridesTable` exists. */ - planOverridesTableExists?: boolean; - /** Filter by the object’s `planPricingTable` relation. */ - planPricingTable?: TableFilter; - /** A related `planPricingTable` exists. */ - planPricingTableExists?: boolean; - /** Filter by the object’s `plansTable` relation. */ - plansTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; - /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `meterCreditsTable` relation. */ - meterCreditsTable?: TableFilter; - /** Filter by the object’s `meterSourcesTable` relation. */ - meterSourcesTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; - /** Filter by the object’s `billingCustomersTable` relation. */ - billingCustomersTable?: TableFilter; - /** Filter by the object’s `billingPricesTable` relation. */ - billingPricesTable?: TableFilter; - /** Filter by the object’s `billingProductsTable` relation. */ - billingProductsTable?: TableFilter; - /** Filter by the object’s `billingSubscriptionsTable` relation. */ - billingSubscriptionsTable?: TableFilter; - /** Filter by the object’s `billingWebhookEventsTable` relation. */ - billingWebhookEventsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `pricesTable` relation. */ - pricesTable?: TableFilter; - /** A related `pricesTable` exists. */ - pricesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitMetersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; -} -/** A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ */ -export interface InternetAddressFilter { - /** 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 internet address. */ - contains?: string; - /** Contains or equal to the specified internet address. */ - containsOrEqualTo?: string; - /** Contained by the specified internet address. */ - containedBy?: string; - /** Contained by or equal to the specified internet address. */ - containedByOrEqualTo?: string; - /** Contains or contained by the specified internet address. */ - containsOrContainedBy?: string; -} -/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ -export interface FullTextFilter { - /** 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[]; - /** Performs a full text search on the field. */ - matches?: string; -} -/** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A connection to a list of `AppPermission` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - nodes?: { - select: AppPermissionSelect; - }; - edges?: { - select: AppPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - nodes?: { - select: OrgPermissionSelect; - }; - edges?: { - select: OrgPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface SendAccountDeletionEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendAccountDeletionEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SignOutPayload { - clientMutationId?: string | null; -} -export type SignOutPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AcceptDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type AcceptDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CancelDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type CancelDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RejectDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RejectDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface DisconnectAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type DisconnectAccountPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RevokeApiKeyPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RevokeApiKeyPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RevokeSessionPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RevokeSessionPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyTotpPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyTotpPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitAppInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitAppInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitOrgInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitOrgInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CheckPasswordPayload { - clientMutationId?: string | null; -} -export type CheckPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ConfirmDeleteAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type ConfirmDeleteAccountPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SetPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ConstructBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ConstructBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionNewUserPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionNewUserPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ResetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type ResetPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionCheckConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionIndexPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CopyTemplateToBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CopyTemplateToBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} -export type BootstrapUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; -}; -export interface SignUpPayload { - clientMutationId?: string | null; - result?: SignUpRecord | null; -} -export type SignUpPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignUpRecordSelect; - }; -}; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export type ProvisionRelationPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionRelationRecordSelect; - }; -}; -export interface SetFieldOrderPayload { - clientMutationId?: string | null; -} -export type SetFieldOrderPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ApplyRlsPayload { - clientMutationId?: string | null; -} -export type ApplyRlsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export type ProvisionDatabaseWithUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionDatabaseWithUserRecordSelect; - }; -}; -export interface CreateUserDatabasePayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateUserDatabasePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ExtendTokenExpiresPayload { - clientMutationId?: string | null; - result?: ExtendTokenExpiresRecord[] | null; -} -export type ExtendTokenExpiresPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ExtendTokenExpiresRecordSelect; - }; -}; -export interface CreateApiKeyPayload { - clientMutationId?: string | null; - result?: CreateApiKeyRecord | null; -} -export type CreateApiKeyPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: CreateApiKeyRecordSelect; - }; -}; -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RequestCrossOriginTokenPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; -} -export type ProvisionTablePayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; -}; -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendVerificationEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: 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 CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type CreateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type UpdateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type DeleteAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface CreateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was created by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type CreateDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface UpdateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was updated by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type UpdateDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface DeleteDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was deleted by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type DeleteDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface CreateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was created by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type CreateSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was updated by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type UpdateSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was deleted by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type DeleteSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface CreateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was created by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type CreateTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface UpdateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was updated by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type UpdateTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface DeleteTablePayload { - clientMutationId?: string | null; - /** The `Table` that was deleted by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type DeleteTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface CreateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was created by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type CreateCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface UpdateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was updated by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type UpdateCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface DeleteCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was deleted by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type DeleteCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface CreateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was created by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type CreateFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface UpdateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was updated by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type UpdateFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface DeleteFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was deleted by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type DeleteFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface CreateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was created by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type CreateSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface UpdateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was updated by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type UpdateSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface DeleteSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was deleted by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type DeleteSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface CreateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was created by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type CreateForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface UpdateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was updated by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type UpdateForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface DeleteForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was deleted by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type DeleteForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface CreateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was created by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type CreateFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface UpdateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was updated by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type UpdateFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface DeleteFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was deleted by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type DeleteFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface CreateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was created by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type CreateIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface UpdateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was updated by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type UpdateIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface DeleteIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was deleted by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type DeleteIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface CreatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was created by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type CreatePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface UpdatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was updated by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type UpdatePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface DeletePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was deleted by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type DeletePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface CreatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was created by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type CreatePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface UpdatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was updated by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type UpdatePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface DeletePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type DeletePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface CreateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was created by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type CreateTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface UpdateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was updated by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type UpdateTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface DeleteTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was deleted by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type DeleteTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface CreateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was created by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type CreateTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface UpdateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was updated by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type UpdateTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface DeleteTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was deleted by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type DeleteTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface CreateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was created by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type CreateUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface UpdateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was updated by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type UpdateUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface DeleteUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was deleted by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type DeleteUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface CreateViewPayload { - clientMutationId?: string | null; - /** The `View` that was created by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type CreateViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface UpdateViewPayload { - clientMutationId?: string | null; - /** The `View` that was updated by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type UpdateViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface DeleteViewPayload { - clientMutationId?: string | null; - /** The `View` that was deleted by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type DeleteViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface CreateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was created by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type CreateViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface UpdateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was updated by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type UpdateViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface DeleteViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was deleted by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type DeleteViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface CreateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was created by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type CreateViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface UpdateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was updated by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type UpdateViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface DeleteViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was deleted by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type DeleteViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface CreateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was created by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type CreateViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface UpdateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was updated by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type UpdateViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface DeleteViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was deleted by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type DeleteViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface CreateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was created by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type CreateEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface UpdateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was updated by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type UpdateEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface DeleteEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was deleted by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type DeleteEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type CreateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type UpdateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type DeleteSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -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 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 CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type CreateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type UpdateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface DeleteIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type DeleteIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -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 CreateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type CreateConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type UpdateConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type DeleteConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface CreateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was created by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type CreateSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface UpdateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was updated by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type UpdateSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface DeleteSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was deleted by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type DeleteSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface CreateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was created by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type CreateDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface UpdateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was updated by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type UpdateDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface DeleteDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was deleted by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type DeleteDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface CreateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was created by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type CreateEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface UpdateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was updated by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type UpdateEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface DeleteEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was deleted by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type DeleteEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface CreateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was created by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type CreateFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface UpdateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was updated by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type UpdateFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface DeleteFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was deleted by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type DeleteFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface CreateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was created by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type CreateApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface UpdateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was updated by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type UpdateApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface DeleteApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was deleted by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type DeleteApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface CreateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was created by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type CreateApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was updated by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type UpdateApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was deleted by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type DeleteApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface CreateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was created by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type CreateDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface UpdateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was updated by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type UpdateDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface DeleteDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was deleted by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type DeleteDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface CreateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was created by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type CreateSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface UpdateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was updated by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type UpdateSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface DeleteSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was deleted by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type DeleteSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was created by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type CreateSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was updated by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type UpdateSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was deleted by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type DeleteSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type CreateSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type UpdateSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type DeleteSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface CreateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was created by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type CreateCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface UpdateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was updated by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type UpdateCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface DeleteCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was deleted by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type DeleteCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface CreateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was created by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type CreateMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -export interface UpdateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was updated by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type UpdateMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -export interface DeleteMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was deleted by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type DeleteMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -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 DeleteGraphModulePayloadSelect = { - clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; - }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; - }; -}; -export interface CreateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was created by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type CreateTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface UpdateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was updated by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type UpdateTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface DeleteTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was deleted by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type DeleteTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface CreatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was created by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type CreatePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface UpdatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was updated by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type UpdatePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface DeletePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was deleted by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type DeletePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface CreateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was created by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type CreateDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface UpdateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was updated by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type UpdateDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface DeleteDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was deleted by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type DeleteDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface CreateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was created by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type CreateApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface UpdateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was updated by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type UpdateApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface DeleteApiPayload { - clientMutationId?: string | null; - /** The `Api` that was deleted by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type DeleteApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface CreateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was created by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type CreateSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface UpdateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was updated by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type UpdateSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface DeleteSitePayload { - clientMutationId?: string | null; - /** The `Site` that was deleted by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type DeleteSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface CreateAppPayload { - clientMutationId?: string | null; - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type CreateAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface UpdateAppPayload { - clientMutationId?: string | null; - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type UpdateAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface DeleteAppPayload { - clientMutationId?: string | null; - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type DeleteAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface CreateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was created by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type CreateApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface UpdateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was updated by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type UpdateApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface DeleteApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was deleted by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type DeleteApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface CreateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was created by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type CreateConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface UpdateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was updated by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type UpdateConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface DeleteConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was deleted by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type DeleteConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface CreateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was created by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type CreateCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface UpdateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was updated by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type UpdateCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type DeleteCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface CreateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was created by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type CreateCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface UpdateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was updated by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type UpdateCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was deleted by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type DeleteCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface CreateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was created by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type CreateDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface UpdateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was updated by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type UpdateDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface DeleteDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was deleted by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type DeleteDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface CreateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was created by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type CreateDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface UpdateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was updated by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type UpdateDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface DeleteDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was deleted by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type DeleteDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface CreateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was created by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type CreateEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface UpdateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was updated by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type UpdateEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface DeleteEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was deleted by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type DeleteEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type CreateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type UpdateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type DeleteConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type CreateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type UpdateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type DeleteInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface CreateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was created by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type CreateEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface UpdateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was updated by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type UpdateEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface DeleteEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was deleted by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type DeleteEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface CreateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type CreateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface UpdateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was updated by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type UpdateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface DeleteLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was deleted by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type DeleteLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was created by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type CreateMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -export interface UpdateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was updated by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type UpdateMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -export interface DeleteMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was deleted by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type DeleteMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -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 CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type CreatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type UpdatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type DeletePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface CreatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was created by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type CreatePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface UpdatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was updated by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type UpdatePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface DeletePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was deleted by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type DeletePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface CreateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was created by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type CreateProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface UpdateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was updated by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type UpdateProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface DeleteProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was deleted by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type DeleteProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface CreateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was created by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type CreateUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface UpdateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was updated by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type UpdateUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface DeleteUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was deleted by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type DeleteUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface CreateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type CreateSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface UpdateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type UpdateSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface DeleteSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type DeleteSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface CreateUserAuthModulePayload { - clientMutationId?: string | null; - /** The `UserAuthModule` that was created by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export type CreateUserAuthModulePayloadSelect = { - clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; - }; - 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 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 UpdateUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was updated by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export type UpdateUsersModulePayloadSelect = { - clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; - }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; - }; -}; -export interface DeleteUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was deleted by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export type DeleteUsersModulePayloadSelect = { - clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; - }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; - }; -}; -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; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface UpdateBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was updated by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export type UpdateBlueprintPayloadSelect = { - clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface DeleteBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was deleted by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export type DeleteBlueprintPayloadSelect = { - clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface CreateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type CreateBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface UpdateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type UpdateBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface DeleteBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type DeleteBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface CreateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was created by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type CreateBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface UpdateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was updated by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type UpdateBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface DeleteBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was deleted by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type DeleteBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface CreateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was created by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type CreateStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface UpdateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was updated by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type UpdateStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface DeleteStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was deleted by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type DeleteStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type CreateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type UpdateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type DeleteEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface CreateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was created by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type CreateWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface UpdateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was updated by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type UpdateWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface DeleteWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type DeleteWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface CreateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type CreateWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface UpdateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type UpdateWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface DeleteWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type DeleteWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface CreateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type CreateNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface UpdateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type UpdateNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface DeleteNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type DeleteNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface CreateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was created by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type CreateInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface UpdateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was updated by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type UpdateInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface DeleteInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was deleted by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type DeleteInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface CreateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was created by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type CreateComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface UpdateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was updated by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type UpdateComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface DeleteComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was deleted by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type DeleteComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface CreateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was created by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type CreateTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface UpdateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was updated by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type UpdateTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface DeleteTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was deleted by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type DeleteTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface CreateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was created by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type CreateStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface UpdateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was updated by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type UpdateStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface DeleteStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was deleted by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type DeleteStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface CreateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type CreateDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface UpdateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type UpdateDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface DeleteDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type DeleteDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface CreateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was created by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type CreateAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -export interface UpdateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was updated by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type UpdateAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -export interface DeleteAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was deleted by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type DeleteAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -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 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 CreateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type CreateDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface UpdateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type UpdateDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface DeleteDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type DeleteDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type CreateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type UpdateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type DeleteAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type CreateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type UpdateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface CreateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type CreateAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface UpdateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type UpdateAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface DeleteAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type DeleteAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was created by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type CreateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was updated by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type UpdateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was deleted by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type DeleteOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was created by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type CreateOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface UpdateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was updated by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type UpdateOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface DeleteOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was deleted by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type DeleteOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type CreateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type UpdateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type DeleteOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface CreateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was created by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type CreateOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was updated by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type UpdateOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type DeleteOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type DeleteOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type CreateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type CreateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type UpdateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type DeleteAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type CreateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type UpdateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type DeleteAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type CreateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type UpdateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type DeleteAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type CreateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type UpdateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type DeleteOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface CreateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type CreateOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface UpdateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type UpdateOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface DeleteOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type DeleteOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface CreateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type CreateOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type UpdateOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type DeleteOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface CreatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was created by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type CreatePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface UpdatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was updated by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type UpdatePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type DeletePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was created by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type CreateWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface UpdateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was updated by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type UpdateWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface DeleteWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was deleted by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type DeleteWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type CreateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type UpdateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type DeleteAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface CreateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type CreateAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface UpdateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type UpdateAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface DeleteAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type DeleteAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface CreateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was created by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type CreateOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface UpdateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type UpdateOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface DeleteOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type DeleteOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface CreateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was created by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type CreateOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface UpdateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was updated by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type UpdateOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface DeleteOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was deleted by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type DeleteOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface CreateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was created by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type CreateAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface UpdateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was updated by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type UpdateAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface DeleteAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was deleted by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type DeleteAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface CreateIdentityProviderPayload { - clientMutationId?: string | null; - /** The `IdentityProvider` that was created by this mutation. */ - identityProvider?: IdentityProvider | null; -} -export type CreateIdentityProviderPayloadSelect = { - clientMutationId?: boolean; - identityProvider?: { - select: IdentityProviderSelect; - }; -}; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; - }; -}; -export interface CreateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type CreateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface UpdateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type UpdateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface DeleteDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type DeleteDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type CreateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type UpdateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type CreateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type UpdateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface DeleteNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type DeleteNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface CreateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type CreateAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface UpdateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type UpdateAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type DeleteAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface CreateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type CreateOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface UpdateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type UpdateOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type DeleteOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type CreateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type UpdateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type DeleteAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface CreateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type CreateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type UpdateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type DeleteOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type CreateAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type UpdateAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type DeleteAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type CreateOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type UpdateOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type DeleteOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type CreateAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type UpdateAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type DeleteAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface CreateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type CreateAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface UpdateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type UpdateAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface DeleteAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type DeleteAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface CreatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was created by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type CreatePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface UpdatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was updated by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type UpdatePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface DeletePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was deleted by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type DeletePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface CreateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type CreateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface CreateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was created by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type CreateRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface UpdateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was updated by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type UpdateRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface DeleteRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was deleted by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type DeleteRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface CreateRlsModulePayload { - clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export type CreateRlsModulePayloadSelect = { - clientMutationId?: boolean; - 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 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 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 CreateSqlActionPayload { - clientMutationId?: string | null; - /** The `SqlAction` that was created by this mutation. */ - sqlAction?: SqlAction | null; -} -export type CreateSqlActionPayloadSelect = { - clientMutationId?: boolean; - sqlAction?: { - select: SqlActionSelect; - }; -}; -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type CreateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type UpdateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type DeleteDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type DeleteOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type UpdateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type DeleteAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type UpdateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type DeleteOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface CreateUserPayload { - clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type CreateUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -export interface UpdateUserPayload { - clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type UpdateUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -export interface DeleteUserPayload { - clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type DeleteUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -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. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type CreateWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface UpdateWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was updated by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type UpdateWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface DeleteWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was deleted by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type DeleteWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface CreateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type CreateBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface UpdateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type UpdateBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface DeleteBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type DeleteBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface CreateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type CreateBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface UpdateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type UpdateBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface DeleteBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type DeleteBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface CreateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was created by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type CreateHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -export interface UpdateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was updated by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type UpdateHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -export interface DeleteHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was deleted by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type DeleteHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} -export type AppPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionSelect; - }; -}; -/** 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; -} -export type PageInfoSelect = { - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; - endCursor?: boolean; -}; -/** A `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { - cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; -} -export type OrgPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionSelect; - }; -}; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface 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 interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignUpRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} -export type SignInRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; - mfaRequired?: boolean; - mfaChallengeToken?: boolean; -}; -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export type ProvisionRelationRecordSelect = { - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface ExtendTokenExpiresRecord { - id?: string | null; - sessionId?: string | null; - expiresAt?: string | null; -} -export type ExtendTokenExpiresRecordSelect = { - id?: boolean; - sessionId?: boolean; - expiresAt?: boolean; -}; -export interface CreateApiKeyRecord { - apiKey?: string | null; - keyId?: string | null; - expiresAt?: string | null; -} -export type CreateApiKeyRecordSelect = { - apiKey?: boolean; - keyId?: boolean; - expiresAt?: boolean; -}; -export interface ProvisionTableRecord { - outTableId?: string | null; - outFields?: string[] | null; -} -export type ProvisionTableRecordSelect = { - outTableId?: boolean; - outFields?: boolean; -}; -/** A `Database` edge in the connection. */ -export interface DatabaseEdge { - cursor?: string | null; - /** The `Database` at the end of the edge. */ - node?: Database | null; -} -export type DatabaseEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSelect; - }; -}; -/** A `Schema` edge in the connection. */ -export interface SchemaEdge { - cursor?: string | null; - /** The `Schema` at the end of the edge. */ - node?: Schema | null; -} -export type SchemaEdgeSelect = { - cursor?: boolean; - node?: { - select: SchemaSelect; - }; -}; -/** A `Table` edge in the connection. */ -export interface TableEdge { - cursor?: string | null; - /** The `Table` at the end of the edge. */ - node?: Table | null; -} -export type TableEdgeSelect = { - cursor?: boolean; - node?: { - select: TableSelect; - }; -}; -/** A `CheckConstraint` edge in the connection. */ -export interface CheckConstraintEdge { - cursor?: string | null; - /** The `CheckConstraint` at the end of the edge. */ - node?: CheckConstraint | null; -} -export type CheckConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: CheckConstraintSelect; - }; -}; -/** A `Field` edge in the connection. */ -export interface FieldEdge { - cursor?: string | null; - /** The `Field` at the end of the edge. */ - node?: Field | null; -} -export type FieldEdgeSelect = { - cursor?: boolean; - node?: { - select: FieldSelect; - }; -}; -/** A `SpatialRelation` edge in the connection. */ -export interface SpatialRelationEdge { - cursor?: string | null; - /** The `SpatialRelation` at the end of the edge. */ - node?: SpatialRelation | null; -} -export type SpatialRelationEdgeSelect = { - cursor?: boolean; - node?: { - select: SpatialRelationSelect; - }; -}; -/** A `ForeignKeyConstraint` edge in the connection. */ -export interface ForeignKeyConstraintEdge { - cursor?: string | null; - /** The `ForeignKeyConstraint` at the end of the edge. */ - node?: ForeignKeyConstraint | null; -} -export type ForeignKeyConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: ForeignKeyConstraintSelect; - }; -}; -/** A `FullTextSearch` edge in the connection. */ -export interface FullTextSearchEdge { - cursor?: string | null; - /** The `FullTextSearch` at the end of the edge. */ - node?: FullTextSearch | null; -} -export type FullTextSearchEdgeSelect = { - cursor?: boolean; - node?: { - select: FullTextSearchSelect; - }; -}; -/** A `Index` edge in the connection. */ -export interface IndexEdge { - cursor?: string | null; - /** The `Index` at the end of the edge. */ - node?: Index | null; -} -export type IndexEdgeSelect = { - cursor?: boolean; - node?: { - select: IndexSelect; - }; -}; -/** A `Policy` edge in the connection. */ -export interface PolicyEdge { - cursor?: string | null; - /** The `Policy` at the end of the edge. */ - node?: Policy | null; -} -export type PolicyEdgeSelect = { - cursor?: boolean; - node?: { - select: PolicySelect; - }; -}; -/** A `PrimaryKeyConstraint` edge in the connection. */ -export interface PrimaryKeyConstraintEdge { - cursor?: string | null; - /** The `PrimaryKeyConstraint` at the end of the edge. */ - node?: PrimaryKeyConstraint | null; -} -export type PrimaryKeyConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: PrimaryKeyConstraintSelect; - }; -}; -/** A `TableGrant` edge in the connection. */ -export interface TableGrantEdge { - cursor?: string | null; - /** The `TableGrant` at the end of the edge. */ - node?: TableGrant | null; -} -export type TableGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: TableGrantSelect; - }; -}; -/** A `Trigger` edge in the connection. */ -export interface TriggerEdge { - cursor?: string | null; - /** The `Trigger` at the end of the edge. */ - node?: Trigger | null; -} -export type TriggerEdgeSelect = { - cursor?: boolean; - node?: { - select: TriggerSelect; - }; -}; -/** A `UniqueConstraint` edge in the connection. */ -export interface UniqueConstraintEdge { - cursor?: string | null; - /** The `UniqueConstraint` at the end of the edge. */ - node?: UniqueConstraint | null; -} -export type UniqueConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: UniqueConstraintSelect; - }; -}; -/** A `View` edge in the connection. */ -export interface ViewEdge { - cursor?: string | null; - /** The `View` at the end of the edge. */ - node?: View | null; -} -export type ViewEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewSelect; - }; -}; -/** A `ViewTable` edge in the connection. */ -export interface ViewTableEdge { - cursor?: string | null; - /** The `ViewTable` at the end of the edge. */ - node?: ViewTable | null; -} -export type ViewTableEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewTableSelect; - }; -}; -/** A `ViewGrant` edge in the connection. */ -export interface ViewGrantEdge { - cursor?: string | null; - /** The `ViewGrant` at the end of the edge. */ - node?: ViewGrant | null; -} -export type ViewGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewGrantSelect; - }; -}; -/** A `ViewRule` edge in the connection. */ -export interface ViewRuleEdge { - cursor?: string | null; - /** The `ViewRule` at the end of the edge. */ - node?: ViewRule | null; -} -export type ViewRuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewRuleSelect; - }; -}; -/** A `EmbeddingChunk` edge in the connection. */ -export interface EmbeddingChunkEdge { - cursor?: string | null; - /** The `EmbeddingChunk` at the end of the edge. */ - node?: EmbeddingChunk | null; -} -export type EmbeddingChunkEdgeSelect = { - cursor?: boolean; - node?: { - select: EmbeddingChunkSelect; - }; -}; -/** 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 `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 `SessionSecretsModule` edge in the connection. */ -export interface SessionSecretsModuleEdge { - cursor?: string | null; - /** The `SessionSecretsModule` at the end of the edge. */ - node?: SessionSecretsModule | null; -} -export type SessionSecretsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SessionSecretsModuleSelect; - }; -}; -/** 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 `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: RealtimeModuleSelect; - }; -}; -/** A `ConfigSecretsOrgModule` edge in the connection. */ -export interface ConfigSecretsOrgModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsOrgModule` at the end of the edge. */ - node?: ConfigSecretsOrgModule | null; -} -export type ConfigSecretsOrgModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConfigSecretsOrgModuleSelect; - }; -}; -/** A `SchemaGrant` edge in the connection. */ -export interface SchemaGrantEdge { - cursor?: string | null; - /** The `SchemaGrant` at the end of the edge. */ - node?: SchemaGrant | null; -} -export type SchemaGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: SchemaGrantSelect; - }; -}; -/** A `DefaultPrivilege` edge in the connection. */ -export interface DefaultPrivilegeEdge { - cursor?: string | null; - /** The `DefaultPrivilege` at the end of the edge. */ - node?: DefaultPrivilege | null; -} -export type DefaultPrivilegeEdgeSelect = { - cursor?: boolean; - node?: { - select: DefaultPrivilegeSelect; - }; -}; -/** A `Enum` edge in the connection. */ -export interface EnumEdge { - cursor?: string | null; - /** The `Enum` at the end of the edge. */ - node?: Enum | null; -} -export type EnumEdgeSelect = { - cursor?: boolean; - node?: { - select: EnumSelect; - }; -}; -/** A `Function` edge in the connection. */ -export interface FunctionEdge { - cursor?: string | null; - /** The `Function` at the end of the edge. */ - node?: Function | null; -} -export type FunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionSelect; - }; -}; -/** A `ApiSchema` edge in the connection. */ -export interface ApiSchemaEdge { - cursor?: string | null; - /** The `ApiSchema` at the end of the edge. */ - node?: ApiSchema | null; -} -export type ApiSchemaEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSchemaSelect; - }; -}; -/** A `ApiModule` edge in the connection. */ -export interface ApiModuleEdge { - cursor?: string | null; - /** The `ApiModule` at the end of the edge. */ - node?: ApiModule | null; -} -export type ApiModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiModuleSelect; - }; -}; -/** A `Domain` edge in the connection. */ -export interface DomainEdge { - cursor?: string | null; - /** The `Domain` at the end of the edge. */ - node?: Domain | null; -} -export type DomainEdgeSelect = { - cursor?: boolean; - node?: { - select: DomainSelect; - }; -}; -/** A `SiteMetadatum` edge in the connection. */ -export interface SiteMetadatumEdge { - cursor?: string | null; - /** The `SiteMetadatum` at the end of the edge. */ - node?: SiteMetadatum | null; -} -export type SiteMetadatumEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteMetadatumSelect; - }; -}; -/** A `SiteModule` edge in the connection. */ -export interface SiteModuleEdge { - cursor?: string | null; - /** The `SiteModule` at the end of the edge. */ - node?: SiteModule | null; -} -export type SiteModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteModuleSelect; - }; -}; -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} -export type SiteThemeEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteThemeSelect; - }; -}; -/** A `CorsSetting` edge in the connection. */ -export interface CorsSettingEdge { - cursor?: string | null; - /** The `CorsSetting` at the end of the edge. */ - node?: CorsSetting | null; -} -export type CorsSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: CorsSettingSelect; - }; -}; -/** 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 `GraphModule` edge in the connection. */ -export interface GraphModuleEdge { - cursor?: string | null; - /** The `GraphModule` at the end of the edge. */ - node?: GraphModule | null; -} -export type GraphModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: GraphModuleSelect; - }; -}; -/** A `TriggerFunction` edge in the connection. */ -export interface TriggerFunctionEdge { - cursor?: string | null; - /** The `TriggerFunction` at the end of the edge. */ - node?: TriggerFunction | null; -} -export type TriggerFunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: TriggerFunctionSelect; - }; -}; -/** A `Partition` edge in the connection. */ -export interface PartitionEdge { - cursor?: string | null; - /** The `Partition` at the end of the edge. */ - node?: Partition | null; -} -export type PartitionEdgeSelect = { - cursor?: boolean; - node?: { - select: PartitionSelect; - }; -}; -/** A `DatabaseTransfer` edge in the connection. */ -export interface DatabaseTransferEdge { - cursor?: string | null; - /** The `DatabaseTransfer` at the end of the edge. */ - node?: DatabaseTransfer | null; -} -export type DatabaseTransferEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseTransferSelect; - }; -}; -/** A `Api` edge in the connection. */ -export interface ApiEdge { - cursor?: string | null; - /** The `Api` at the end of the edge. */ - node?: Api | null; -} -export type ApiEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSelect; - }; -}; -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} -export type SiteEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteSelect; - }; -}; -/** A `App` edge in the connection. */ -export interface AppEdge { - cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; -} -export type AppEdgeSelect = { - cursor?: boolean; - node?: { - select: AppSelect; - }; -}; -/** A `ApiSetting` edge in the connection. */ -export interface ApiSettingEdge { - cursor?: string | null; - /** The `ApiSetting` at the end of the edge. */ - node?: ApiSetting | null; -} -export type ApiSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSettingSelect; - }; -}; -/** A `ConnectedAccountsModule` edge in the connection. */ -export interface ConnectedAccountsModuleEdge { - cursor?: string | null; - /** The `ConnectedAccountsModule` at the end of the edge. */ - node?: ConnectedAccountsModule | null; -} -export type ConnectedAccountsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConnectedAccountsModuleSelect; - }; -}; -/** A `CryptoAddressesModule` edge in the connection. */ -export interface CryptoAddressesModuleEdge { - cursor?: string | null; - /** The `CryptoAddressesModule` at the end of the edge. */ - node?: CryptoAddressesModule | null; -} -export type CryptoAddressesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressesModuleSelect; - }; -}; -/** A `CryptoAuthModule` edge in the connection. */ -export interface CryptoAuthModuleEdge { - cursor?: string | null; - /** The `CryptoAuthModule` at the end of the edge. */ - node?: CryptoAuthModule | null; -} -export type CryptoAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAuthModuleSelect; - }; -}; -/** A `DefaultIdsModule` edge in the connection. */ -export interface DefaultIdsModuleEdge { - cursor?: string | null; - /** The `DefaultIdsModule` at the end of the edge. */ - node?: DefaultIdsModule | null; -} -export type DefaultIdsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DefaultIdsModuleSelect; - }; -}; -/** A `DenormalizedTableField` edge in the connection. */ -export interface DenormalizedTableFieldEdge { - cursor?: string | null; - /** The `DenormalizedTableField` at the end of the edge. */ - node?: DenormalizedTableField | null; -} -export type DenormalizedTableFieldEdgeSelect = { - cursor?: boolean; - node?: { - select: DenormalizedTableFieldSelect; - }; -}; -/** A `EmailsModule` edge in the connection. */ -export interface EmailsModuleEdge { - cursor?: string | null; - /** The `EmailsModule` at the end of the edge. */ - node?: EmailsModule | null; -} -export type EmailsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailsModuleSelect; - }; -}; -/** 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 `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { - cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; -} -export type InvitesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InvitesModuleSelect; - }; -}; -/** A `EventsModule` edge in the connection. */ -export interface EventsModuleEdge { - cursor?: string | null; - /** The `EventsModule` at the end of the edge. */ - node?: EventsModule | null; -} -export type EventsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: EventsModuleSelect; - }; -}; -/** A `LimitsModule` edge in the connection. */ -export interface LimitsModuleEdge { - cursor?: string | null; - /** The `LimitsModule` at the end of the edge. */ - node?: LimitsModule | null; -} -export type LimitsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: LimitsModuleSelect; - }; -}; -/** A `MembershipTypesModule` edge in the connection. */ -export interface MembershipTypesModuleEdge { - cursor?: string | null; - /** The `MembershipTypesModule` at the end of the edge. */ - node?: MembershipTypesModule | null; -} -export type MembershipTypesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypesModuleSelect; - }; -}; -/** 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 `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 `PhoneNumbersModule` edge in the connection. */ -export interface PhoneNumbersModuleEdge { - cursor?: string | null; - /** The `PhoneNumbersModule` at the end of the edge. */ - node?: PhoneNumbersModule | null; -} -export type PhoneNumbersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumbersModuleSelect; - }; -}; -/** A `ProfilesModule` edge in the connection. */ -export interface ProfilesModuleEdge { - cursor?: string | null; - /** The `ProfilesModule` at the end of the edge. */ - node?: ProfilesModule | null; -} -export type ProfilesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ProfilesModuleSelect; - }; -}; -/** 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 `SessionsModule` edge in the connection. */ -export interface SessionsModuleEdge { - cursor?: string | null; - /** The `SessionsModule` at the end of the edge. */ - node?: SessionsModule | null; -} -export type SessionsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SessionsModuleSelect; - }; -}; -/** A `UserAuthModule` edge in the connection. */ -export interface UserAuthModuleEdge { - cursor?: string | null; - /** The `UserAuthModule` at the end of the edge. */ - node?: UserAuthModule | null; -} -export type UserAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserAuthModuleSelect; - }; -}; -/** A `UsersModule` edge in the connection. */ -export interface UsersModuleEdge { - cursor?: string | null; - /** The `UsersModule` at the end of the edge. */ - node?: UsersModule | null; -} -export type UsersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UsersModuleSelect; - }; -}; -/** A `Blueprint` edge in the connection. */ -export interface BlueprintEdge { - cursor?: string | null; - /** The `Blueprint` at the end of the edge. */ - node?: Blueprint | null; -} -export type BlueprintEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintSelect; - }; -}; -/** A `BlueprintTemplate` edge in the connection. */ -export interface BlueprintTemplateEdge { - cursor?: string | null; - /** The `BlueprintTemplate` at the end of the edge. */ - node?: BlueprintTemplate | null; -} -export type BlueprintTemplateEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintTemplateSelect; - }; -}; -/** A `BlueprintConstruction` edge in the connection. */ -export interface BlueprintConstructionEdge { - cursor?: string | null; - /** The `BlueprintConstruction` at the end of the edge. */ - node?: BlueprintConstruction | null; -} -export type BlueprintConstructionEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintConstructionSelect; - }; -}; -/** A `StorageModule` edge in the connection. */ -export interface StorageModuleEdge { - cursor?: string | null; - /** The `StorageModule` at the end of the edge. */ - node?: StorageModule | null; -} -export type StorageModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: StorageModuleSelect; - }; -}; -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | null; -} -export type EntityTypeProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: EntityTypeProvisionSelect; - }; -}; -/** A `WebauthnCredentialsModule` edge in the connection. */ -export interface WebauthnCredentialsModuleEdge { - cursor?: string | null; - /** The `WebauthnCredentialsModule` at the end of the edge. */ - node?: WebauthnCredentialsModule | null; -} -export type WebauthnCredentialsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnCredentialsModuleSelect; - }; -}; -/** A `WebauthnAuthModule` edge in the connection. */ -export interface WebauthnAuthModuleEdge { - cursor?: string | null; - /** The `WebauthnAuthModule` at the end of the edge. */ - node?: WebauthnAuthModule | null; -} -export type WebauthnAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnAuthModuleSelect; - }; -}; -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { - cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; -} -export type NotificationsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: NotificationsModuleSelect; - }; -}; -/** A `InferenceLogModule` edge in the connection. */ -export interface InferenceLogModuleEdge { - cursor?: string | null; - /** The `InferenceLogModule` at the end of the edge. */ - node?: InferenceLogModule | null; -} -export type InferenceLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InferenceLogModuleSelect; - }; -}; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { - cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; -} -export type ComputeLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ComputeLogModuleSelect; - }; -}; -/** A `TransferLogModule` edge in the connection. */ -export interface TransferLogModuleEdge { - cursor?: string | null; - /** The `TransferLogModule` at the end of the edge. */ - node?: TransferLogModule | null; -} -export type TransferLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: TransferLogModuleSelect; - }; -}; -/** A `StorageLogModule` edge in the connection. */ -export interface StorageLogModuleEdge { - cursor?: string | null; - /** The `StorageLogModule` at the end of the edge. */ - node?: StorageLogModule | null; -} -export type StorageLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: StorageLogModuleSelect; - }; -}; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { - cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; -} -export type DbUsageModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DbUsageModuleSelect; - }; -}; -/** A `AgentModule` edge in the connection. */ -export interface AgentModuleEdge { - cursor?: string | null; - /** The `AgentModule` at the end of the edge. */ - node?: AgentModule | null; -} -export type AgentModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: AgentModuleSelect; - }; -}; -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { - cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; -} -export type NamespaceModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: NamespaceModuleSelect; - }; -}; -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} -export type FunctionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionModuleSelect; - }; -}; -/** A `DatabaseProvisionModule` edge in the connection. */ -export interface DatabaseProvisionModuleEdge { - cursor?: string | null; - /** The `DatabaseProvisionModule` at the end of the edge. */ - node?: DatabaseProvisionModule | null; -} -export type DatabaseProvisionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseProvisionModuleSelect; - }; -}; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { - cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; -} -export type AppAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppAdminGrantSelect; - }; -}; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { - cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; -} -export type AppOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppOwnerGrantSelect; - }; -}; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { - cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; -} -export type AppGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppGrantSelect; - }; -}; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; -/** A `OrgMember` edge in the connection. */ -export interface OrgMemberEdge { - cursor?: string | null; - /** The `OrgMember` at the end of the edge. */ - node?: OrgMember | null; -} -export type OrgMemberEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberSelect; - }; -}; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; -/** A `OrgGrant` edge in the connection. */ -export interface OrgGrantEdge { - cursor?: string | null; - /** The `OrgGrant` at the end of the edge. */ - node?: OrgGrant | null; -} -export type OrgGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgGrantSelect; - }; -}; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; -/** A `OrgChartEdgeGrant` edge in the connection. */ -export interface OrgChartEdgeGrantEdge { - cursor?: string | null; - /** The `OrgChartEdgeGrant` at the end of the edge. */ - node?: OrgChartEdgeGrant | null; -} -export type OrgChartEdgeGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeGrantSelect; - }; -}; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -export type AppLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditSelect; - }; -}; -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -export type AppLimitCreditCodeItemEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeItemSelect; - }; -}; -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} -export type AppLimitCreditRedemptionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditRedemptionSelect; - }; -}; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} -export type OrgLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCreditSelect; - }; -}; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -export type OrgLimitAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitAggregateSelect; - }; -}; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} -export type OrgLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitWarningSelect; - }; -}; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; -/** A `PhoneNumber` edge in the connection. */ -export interface PhoneNumberEdge { - cursor?: string | null; - /** The `PhoneNumber` at the end of the edge. */ - node?: PhoneNumber | null; -} -export type PhoneNumberEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumberSelect; - }; -}; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `WebauthnCredential` edge in the connection. */ -export interface WebauthnCredentialEdge { - cursor?: string | null; - /** The `WebauthnCredential` at the end of the edge. */ - node?: WebauthnCredential | null; -} -export type WebauthnCredentialEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnCredentialSelect; - }; -}; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -export type AppInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppInviteSelect; - }; -}; -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { - cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; -} -export type AppClaimedInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppClaimedInviteSelect; - }; -}; -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { - cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; -} -export type OrgInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgInviteSelect; - }; -}; -/** A `OrgClaimedInvite` edge in the connection. */ -export interface OrgClaimedInviteEdge { - cursor?: string | null; - /** The `OrgClaimedInvite` at the end of the edge. */ - node?: OrgClaimedInvite | null; -} -export type OrgClaimedInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgClaimedInviteSelect; - }; -}; -/** A `AuditLogAuth` edge in the connection. */ -export interface AuditLogAuthEdge { - cursor?: string | null; - /** The `AuditLogAuth` at the end of the edge. */ - node?: AuditLogAuth | null; -} -export type AuditLogAuthEdgeSelect = { - cursor?: boolean; - node?: { - select: AuditLogAuthSelect; - }; -}; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} -export type RoleTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: RoleTypeSelect; - }; -}; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { - cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; -} -export type DevicesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DevicesModuleSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} -export type OrgMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipDefaultSelect; - }; -}; -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} -export type NodeTypeRegistryEdgeSelect = { - cursor?: boolean; - node?: { - select: NodeTypeRegistrySelect; - }; -}; -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -export type AppLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapsDefaultSelect; - }; -}; -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -export type OrgLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapsDefaultSelect; - }; -}; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -export type OrgLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapSelect; - }; -}; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -export type AppLimitCreditCodeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeSelect; - }; -}; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} -export type AppLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitWarningSelect; - }; -}; -/** A `PubkeySetting` edge in the connection. */ -export interface PubkeySettingEdge { - cursor?: string | null; - /** The `PubkeySetting` at the end of the edge. */ - node?: PubkeySetting | null; -} -export type PubkeySettingEdgeSelect = { - cursor?: boolean; - node?: { - select: PubkeySettingSelect; - }; -}; -/** A `RateLimitsModule` edge in the connection. */ -export interface RateLimitsModuleEdge { - cursor?: string | null; - /** The `RateLimitsModule` at the end of the edge. */ - node?: RateLimitsModule | null; -} -export type RateLimitsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitsModuleSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; -/** A `RlsSetting` edge in the connection. */ -export interface RlsSettingEdge { - cursor?: string | null; - /** The `RlsSetting` at the end of the edge. */ - node?: RlsSetting | null; -} -export type RlsSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: RlsSettingSelect; - }; -}; -/** A `RlsModule` edge in the connection. */ -export interface RlsModuleEdge { - cursor?: string | null; - /** The `RlsModule` at the end of the edge. */ - node?: RlsModule | null; -} -export type RlsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RlsModuleSelect; - }; -}; -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} -export type RateLimitMetersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitMetersModuleSelect; - }; -}; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { - cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; -} -export type PlansModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PlansModuleSelect; - }; -}; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} -export type DatabaseSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSettingSelect; - }; -}; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} -export type OrgMembershipSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSettingSelect; - }; -}; -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { - cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; -} -export type AppLimitEventEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitEventSelect; - }; -}; -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { - cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; -} -export type OrgLimitEventEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitEventSelect; - }; -}; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { - cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; -} -export type AppMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipSelect; - }; -}; -/** A `User` edge in the connection. */ -export interface UserEdge { - cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; -} -export type UserEdgeSelect = { - cursor?: boolean; - node?: { - select: UserSelect; - }; -}; -/** A `WebauthnSetting` edge in the connection. */ -export interface WebauthnSettingEdge { - cursor?: string | null; - /** The `WebauthnSetting` at the end of the edge. */ - node?: WebauthnSetting | null; -} -export type WebauthnSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnSettingSelect; - }; -}; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { - cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; -} -export type BillingModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingModuleSelect; - }; -}; -/** A `BillingProviderModule` edge in the connection. */ -export interface BillingProviderModuleEdge { - cursor?: string | null; - /** The `BillingProviderModule` at the end of the edge. */ - node?: BillingProviderModule | null; -} -export type BillingProviderModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingProviderModuleSelect; - }; -}; -/** A `HierarchyModule` edge in the connection. */ -export interface HierarchyModuleEdge { - cursor?: string | null; - /** The `HierarchyModule` at the end of the edge. */ - node?: HierarchyModule | null; -} -export type HierarchyModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: HierarchyModuleSelect; - }; -}; diff --git a/sdk/constructive-react/src/public/orm/models/appAdminGrant.ts b/sdk/constructive-react/src/public/orm/models/appAdminGrant.ts deleted file mode 100644 index fd80edc234..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appAdminGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppAdminGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppAdminGrant, - AppAdminGrantWithRelations, - AppAdminGrantSelect, - AppAdminGrantFilter, - AppAdminGrantOrderBy, - CreateAppAdminGrantInput, - UpdateAppAdminGrantInput, - AppAdminGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppAdminGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrant', - document, - variables, - transform: (data: { - appAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrant', - document, - variables, - transform: (data: { - appAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppAdminGrant', - 'createAppAdminGrant', - 'appAdminGrant', - args.select, - args.data, - 'CreateAppAdminGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'createAppAdminGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppAdminGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppAdminGrant', - 'updateAppAdminGrant', - 'appAdminGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppAdminGrantInput', - 'id', - 'appAdminGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'updateAppAdminGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppAdminGrant', - 'deleteAppAdminGrant', - 'appAdminGrant', - { - id: args.where.id, - }, - 'DeleteAppAdminGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'deleteAppAdminGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appClaimedInvite.ts b/sdk/constructive-react/src/public/orm/models/appClaimedInvite.ts deleted file mode 100644 index c9e66ec9c8..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appClaimedInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppClaimedInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppClaimedInvite, - AppClaimedInviteWithRelations, - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy, - CreateAppClaimedInviteInput, - UpdateAppClaimedInviteInput, - AppClaimedInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppClaimedInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvite', - document, - variables, - transform: (data: { - appClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appClaimedInvite: data.appClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvite', - document, - variables, - transform: (data: { - appClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appClaimedInvite: data.appClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppClaimedInvite', - 'createAppClaimedInvite', - 'appClaimedInvite', - args.select, - args.data, - 'CreateAppClaimedInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'createAppClaimedInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppClaimedInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppClaimedInvite', - 'updateAppClaimedInvite', - 'appClaimedInvite', - args.select, - args.where.id, - args.data, - 'UpdateAppClaimedInviteInput', - 'id', - 'appClaimedInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'updateAppClaimedInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppClaimedInvite', - 'deleteAppClaimedInvite', - 'appClaimedInvite', - { - id: args.where.id, - }, - 'DeleteAppClaimedInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'deleteAppClaimedInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appGrant.ts b/sdk/constructive-react/src/public/orm/models/appGrant.ts deleted file mode 100644 index 4481fb3d83..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppGrant, - AppGrantWithRelations, - AppGrantSelect, - AppGrantFilter, - AppGrantOrderBy, - CreateAppGrantInput, - UpdateAppGrantInput, - AppGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrant', - document, - variables, - transform: (data: { - appGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appGrant: data.appGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrant', - document, - variables, - transform: (data: { - appGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appGrant: data.appGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppGrant', - 'createAppGrant', - 'appGrant', - args.select, - args.data, - 'CreateAppGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'createAppGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppGrant', - 'updateAppGrant', - 'appGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppGrantInput', - 'id', - 'appGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'updateAppGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppGrant', - 'deleteAppGrant', - 'appGrant', - { - id: args.where.id, - }, - 'DeleteAppGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'deleteAppGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appInvite.ts b/sdk/constructive-react/src/public/orm/models/appInvite.ts deleted file mode 100644 index 5fcbff9369..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppInvite, - AppInviteWithRelations, - AppInviteSelect, - AppInviteFilter, - AppInviteOrderBy, - CreateAppInviteInput, - UpdateAppInviteInput, - AppInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvite', - document, - variables, - transform: (data: { - appInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appInvite: data.appInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvite', - document, - variables, - transform: (data: { - appInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appInvite: data.appInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInvite', - 'createAppInvite', - 'appInvite', - args.select, - args.data, - 'CreateAppInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'createAppInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppInvite', - 'updateAppInvite', - 'appInvite', - args.select, - args.where.id, - args.data, - 'UpdateAppInviteInput', - 'id', - 'appInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'updateAppInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppInvite', - 'deleteAppInvite', - 'appInvite', - { - id: args.where.id, - }, - 'DeleteAppInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'deleteAppInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimit.ts b/sdk/constructive-react/src/public/orm/models/appLimit.ts deleted file mode 100644 index 2e109cb07e..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimit, - AppLimitWithRelations, - AppLimitSelect, - AppLimitFilter, - AppLimitOrderBy, - CreateAppLimitInput, - UpdateAppLimitInput, - AppLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimit', - document, - variables, - transform: (data: { - appLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimit: data.appLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimit', - document, - variables, - transform: (data: { - appLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimit: data.appLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimit', - 'createAppLimit', - 'appLimit', - args.select, - args.data, - 'CreateAppLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'createAppLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimit', - 'updateAppLimit', - 'appLimit', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitInput', - 'id', - 'appLimitPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'updateAppLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimit', - 'deleteAppLimit', - 'appLimit', - { - id: args.where.id, - }, - 'DeleteAppLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'deleteAppLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitCap.ts b/sdk/constructive-react/src/public/orm/models/appLimitCap.ts deleted file mode 100644 index 3359af7c92..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitCap.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCap model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCap, - AppLimitCapWithRelations, - AppLimitCapSelect, - AppLimitCapFilter, - AppLimitCapOrderBy, - CreateAppLimitCapInput, - UpdateAppLimitCapInput, - AppLimitCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCap', - document, - variables, - transform: (data: { - appLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCap: data.appLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCap', - document, - variables, - transform: (data: { - appLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCap: data.appLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCap', - 'createAppLimitCap', - 'appLimitCap', - args.select, - args.data, - 'CreateAppLimitCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'createAppLimitCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCap', - 'updateAppLimitCap', - 'appLimitCap', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCapInput', - 'id', - 'appLimitCapPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'updateAppLimitCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCap', - 'deleteAppLimitCap', - 'appLimitCap', - { - id: args.where.id, - }, - 'DeleteAppLimitCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'deleteAppLimitCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitCapsDefault.ts b/sdk/constructive-react/src/public/orm/models/appLimitCapsDefault.ts deleted file mode 100644 index 0eac9c6f8b..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitCapsDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCapsDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCapsDefault, - AppLimitCapsDefaultWithRelations, - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy, - CreateAppLimitCapsDefaultInput, - UpdateAppLimitCapsDefaultInput, - AppLimitCapsDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCapsDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefault', - document, - variables, - transform: (data: { - appLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCapsDefault: data.appLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefault', - document, - variables, - transform: (data: { - appLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCapsDefault: data.appLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCapsDefault', - 'createAppLimitCapsDefault', - 'appLimitCapsDefault', - args.select, - args.data, - 'CreateAppLimitCapsDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'createAppLimitCapsDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCapsDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCapsDefault', - 'updateAppLimitCapsDefault', - 'appLimitCapsDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCapsDefaultInput', - 'id', - 'appLimitCapsDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'updateAppLimitCapsDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCapsDefault', - 'deleteAppLimitCapsDefault', - 'appLimitCapsDefault', - { - id: args.where.id, - }, - 'DeleteAppLimitCapsDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'deleteAppLimitCapsDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitCredit.ts b/sdk/constructive-react/src/public/orm/models/appLimitCredit.ts deleted file mode 100644 index 87ef262696..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitCredit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCredit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCredit, - AppLimitCreditWithRelations, - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy, - CreateAppLimitCreditInput, - UpdateAppLimitCreditInput, - AppLimitCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredit', - document, - variables, - transform: (data: { - appLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCredit: data.appLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredit', - document, - variables, - transform: (data: { - appLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCredit: data.appLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCredit', - 'createAppLimitCredit', - 'appLimitCredit', - args.select, - args.data, - 'CreateAppLimitCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'createAppLimitCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCredit', - 'updateAppLimitCredit', - 'appLimitCredit', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditInput', - 'id', - 'appLimitCreditPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'updateAppLimitCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCredit', - 'deleteAppLimitCredit', - 'appLimitCredit', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'deleteAppLimitCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitCreditCode.ts b/sdk/constructive-react/src/public/orm/models/appLimitCreditCode.ts deleted file mode 100644 index 1d21f2d211..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitCreditCode.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCreditCode model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditCode, - AppLimitCreditCodeWithRelations, - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy, - CreateAppLimitCreditCodeInput, - UpdateAppLimitCreditCodeInput, - AppLimitCreditCodePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditCodeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCodes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCode: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCode', - document, - variables, - transform: (data: { - appLimitCreditCodes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCode: data.appLimitCreditCodes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCode: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCode', - document, - variables, - transform: (data: { - appLimitCreditCodes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCode: data.appLimitCreditCodes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditCode', - 'createAppLimitCreditCode', - 'appLimitCreditCode', - args.select, - args.data, - 'CreateAppLimitCreditCodeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'createAppLimitCreditCode', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditCodePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditCode', - 'updateAppLimitCreditCode', - 'appLimitCreditCode', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditCodeInput', - 'id', - 'appLimitCreditCodePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'updateAppLimitCreditCode', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditCode', - 'deleteAppLimitCreditCode', - 'appLimitCreditCode', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditCodeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'deleteAppLimitCreditCode', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitCreditCodeItem.ts b/sdk/constructive-react/src/public/orm/models/appLimitCreditCodeItem.ts deleted file mode 100644 index ade7d6cdc0..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitCreditCodeItem.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppLimitCreditCodeItem model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditCodeItem, - AppLimitCreditCodeItemWithRelations, - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy, - CreateAppLimitCreditCodeItemInput, - UpdateAppLimitCreditCodeItemInput, - AppLimitCreditCodeItemPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditCodeItemModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItems: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItems', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItem: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItem', - document, - variables, - transform: (data: { - appLimitCreditCodeItems?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCodeItem: data.appLimitCreditCodeItems?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItem: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItem', - document, - variables, - transform: (data: { - appLimitCreditCodeItems?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCodeItem: data.appLimitCreditCodeItems?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditCodeItem', - 'createAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - args.select, - args.data, - 'CreateAppLimitCreditCodeItemInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'createAppLimitCreditCodeItem', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditCodeItemPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditCodeItem', - 'updateAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditCodeItemInput', - 'id', - 'appLimitCreditCodeItemPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'updateAppLimitCreditCodeItem', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditCodeItem', - 'deleteAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditCodeItemInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'deleteAppLimitCreditCodeItem', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitCreditRedemption.ts b/sdk/constructive-react/src/public/orm/models/appLimitCreditRedemption.ts deleted file mode 100644 index f60a8e62f9..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitCreditRedemption.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppLimitCreditRedemption model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditRedemption, - AppLimitCreditRedemptionWithRelations, - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy, - CreateAppLimitCreditRedemptionInput, - UpdateAppLimitCreditRedemptionInput, - AppLimitCreditRedemptionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditRedemptionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemptions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemptions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemption: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemption', - document, - variables, - transform: (data: { - appLimitCreditRedemptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditRedemption: data.appLimitCreditRedemptions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemption: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemption', - document, - variables, - transform: (data: { - appLimitCreditRedemptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditRedemption: data.appLimitCreditRedemptions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditRedemption', - 'createAppLimitCreditRedemption', - 'appLimitCreditRedemption', - args.select, - args.data, - 'CreateAppLimitCreditRedemptionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'createAppLimitCreditRedemption', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditRedemptionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditRedemption', - 'updateAppLimitCreditRedemption', - 'appLimitCreditRedemption', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditRedemptionInput', - 'id', - 'appLimitCreditRedemptionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'updateAppLimitCreditRedemption', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditRedemption', - 'deleteAppLimitCreditRedemption', - 'appLimitCreditRedemption', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditRedemptionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'deleteAppLimitCreditRedemption', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitDefault.ts b/sdk/constructive-react/src/public/orm/models/appLimitDefault.ts deleted file mode 100644 index f9df6376e5..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitDefault, - AppLimitDefaultWithRelations, - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy, - CreateAppLimitDefaultInput, - UpdateAppLimitDefaultInput, - AppLimitDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefault', - document, - variables, - transform: (data: { - appLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefault', - document, - variables, - transform: (data: { - appLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitDefault', - 'createAppLimitDefault', - 'appLimitDefault', - args.select, - args.data, - 'CreateAppLimitDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'createAppLimitDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitDefault', - 'updateAppLimitDefault', - 'appLimitDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitDefaultInput', - 'id', - 'appLimitDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'updateAppLimitDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitDefault', - 'deleteAppLimitDefault', - 'appLimitDefault', - { - id: args.where.id, - }, - 'DeleteAppLimitDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'deleteAppLimitDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts deleted file mode 100644 index ef7249f3e9..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitEvent model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitEvent, - AppLimitEventWithRelations, - AppLimitEventSelect, - AppLimitEventFilter, - AppLimitEventOrderBy, - CreateAppLimitEventInput, - UpdateAppLimitEventInput, - AppLimitEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvent', - document, - variables, - transform: (data: { - appLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvent', - document, - variables, - transform: (data: { - appLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitEvent', - 'createAppLimitEvent', - 'appLimitEvent', - args.select, - args.data, - 'CreateAppLimitEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'createAppLimitEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitEvent', - 'updateAppLimitEvent', - 'appLimitEvent', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitEventInput', - 'id', - 'appLimitEventPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'updateAppLimitEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitEvent', - 'deleteAppLimitEvent', - 'appLimitEvent', - { - id: args.where.id, - }, - 'DeleteAppLimitEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'deleteAppLimitEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitWarning.ts b/sdk/constructive-react/src/public/orm/models/appLimitWarning.ts deleted file mode 100644 index 8366dd8336..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appLimitWarning.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitWarning model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitWarning, - AppLimitWarningWithRelations, - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy, - CreateAppLimitWarningInput, - UpdateAppLimitWarningInput, - AppLimitWarningPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitWarningModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarnings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarnings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarning', - document, - variables, - transform: (data: { - appLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarning', - document, - variables, - transform: (data: { - appLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitWarning', - 'createAppLimitWarning', - 'appLimitWarning', - args.select, - args.data, - 'CreateAppLimitWarningInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'createAppLimitWarning', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitWarningPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitWarning', - 'updateAppLimitWarning', - 'appLimitWarning', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitWarningInput', - 'id', - 'appLimitWarningPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'updateAppLimitWarning', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitWarning', - 'deleteAppLimitWarning', - 'appLimitWarning', - { - id: args.where.id, - }, - 'DeleteAppLimitWarningInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'deleteAppLimitWarning', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appMembership.ts b/sdk/constructive-react/src/public/orm/models/appMembership.ts deleted file mode 100644 index a4011c41ab..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appMembership.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppMembership model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppMembership, - AppMembershipWithRelations, - AppMembershipSelect, - AppMembershipFilter, - AppMembershipOrderBy, - CreateAppMembershipInput, - UpdateAppMembershipInput, - AppMembershipPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMemberships: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMemberships', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMembership', - document, - variables, - transform: (data: { - appMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembership: data.appMemberships?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMembership', - document, - variables, - transform: (data: { - appMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembership: data.appMemberships?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembership', - 'createAppMembership', - 'appMembership', - args.select, - args.data, - 'CreateAppMembershipInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'createAppMembership', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembership', - 'updateAppMembership', - 'appMembership', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipInput', - 'id', - 'appMembershipPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'updateAppMembership', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembership', - 'deleteAppMembership', - 'appMembership', - { - id: args.where.id, - }, - 'DeleteAppMembershipInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'deleteAppMembership', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appMembershipDefault.ts b/sdk/constructive-react/src/public/orm/models/appMembershipDefault.ts deleted file mode 100644 index f69f1aca69..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appMembershipDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppMembershipDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppMembershipDefault, - AppMembershipDefaultWithRelations, - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy, - CreateAppMembershipDefaultInput, - UpdateAppMembershipDefaultInput, - AppMembershipDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefault', - document, - variables, - transform: (data: { - appMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefault', - document, - variables, - transform: (data: { - appMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembershipDefault', - 'createAppMembershipDefault', - 'appMembershipDefault', - args.select, - args.data, - 'CreateAppMembershipDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'createAppMembershipDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembershipDefault', - 'updateAppMembershipDefault', - 'appMembershipDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipDefaultInput', - 'id', - 'appMembershipDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'updateAppMembershipDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembershipDefault', - 'deleteAppMembershipDefault', - 'appMembershipDefault', - { - id: args.where.id, - }, - 'DeleteAppMembershipDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'deleteAppMembershipDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appOwnerGrant.ts b/sdk/constructive-react/src/public/orm/models/appOwnerGrant.ts deleted file mode 100644 index eeb815d842..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appOwnerGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppOwnerGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppOwnerGrant, - AppOwnerGrantWithRelations, - AppOwnerGrantSelect, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy, - CreateAppOwnerGrantInput, - UpdateAppOwnerGrantInput, - AppOwnerGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppOwnerGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrant', - document, - variables, - transform: (data: { - appOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrant', - document, - variables, - transform: (data: { - appOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppOwnerGrant', - 'createAppOwnerGrant', - 'appOwnerGrant', - args.select, - args.data, - 'CreateAppOwnerGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'createAppOwnerGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppOwnerGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppOwnerGrant', - 'updateAppOwnerGrant', - 'appOwnerGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppOwnerGrantInput', - 'id', - 'appOwnerGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'updateAppOwnerGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppOwnerGrant', - 'deleteAppOwnerGrant', - 'appOwnerGrant', - { - id: args.where.id, - }, - 'DeleteAppOwnerGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'deleteAppOwnerGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appPermission.ts b/sdk/constructive-react/src/public/orm/models/appPermission.ts deleted file mode 100644 index e71adea658..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appPermission.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppPermission model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppPermission, - AppPermissionWithRelations, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, - CreateAppPermissionInput, - UpdateAppPermissionInput, - AppPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermission', - 'createAppPermission', - 'appPermission', - args.select, - args.data, - 'CreateAppPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'createAppPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermission', - 'updateAppPermission', - 'appPermission', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionInput', - 'id', - 'appPermissionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'updateAppPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermission', - 'deleteAppPermission', - 'appPermission', - { - id: args.where.id, - }, - 'DeleteAppPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'deleteAppPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appPermissionDefault.ts b/sdk/constructive-react/src/public/orm/models/appPermissionDefault.ts deleted file mode 100644 index d5511aed01..0000000000 --- a/sdk/constructive-react/src/public/orm/models/appPermissionDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppPermissionDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppPermissionDefault, - AppPermissionDefaultWithRelations, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, - CreateAppPermissionDefaultInput, - UpdateAppPermissionDefaultInput, - AppPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefault', - 'createAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.data, - 'CreateAppPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'createAppPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefault', - 'updateAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultInput', - 'id', - 'appPermissionDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'updateAppPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefault', - 'deleteAppPermissionDefault', - 'appPermissionDefault', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'deleteAppPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/auditLogAuth.ts b/sdk/constructive-react/src/public/orm/models/auditLogAuth.ts deleted file mode 100644 index 8a6665612c..0000000000 --- a/sdk/constructive-react/src/public/orm/models/auditLogAuth.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLogAuth model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AuditLogAuth, - AuditLogAuthWithRelations, - AuditLogAuthSelect, - AuditLogAuthFilter, - AuditLogAuthOrderBy, - CreateAuditLogAuthInput, - UpdateAuditLogAuthInput, - AuditLogAuthPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogAuthModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuths: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuths', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuth: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuth', - document, - variables, - transform: (data: { - auditLogAuths?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuth: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuth', - document, - variables, - transform: (data: { - auditLogAuths?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLogAuth', - 'createAuditLogAuth', - 'auditLogAuth', - args.select, - args.data, - 'CreateAuditLogAuthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'createAuditLogAuth', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogAuthPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLogAuth', - 'updateAuditLogAuth', - 'auditLogAuth', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogAuthInput', - 'id', - 'auditLogAuthPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'updateAuditLogAuth', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLogAuth', - 'deleteAuditLogAuth', - 'auditLogAuth', - { - id: args.where.id, - }, - 'DeleteAuditLogAuthInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'deleteAuditLogAuth', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/cryptoAddress.ts b/sdk/constructive-react/src/public/orm/models/cryptoAddress.ts deleted file mode 100644 index 11914bd9d1..0000000000 --- a/sdk/constructive-react/src/public/orm/models/cryptoAddress.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * CryptoAddress model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - CryptoAddress, - CryptoAddressWithRelations, - CryptoAddressSelect, - CryptoAddressFilter, - CryptoAddressOrderBy, - CreateCryptoAddressInput, - UpdateCryptoAddressInput, - CryptoAddressPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class CryptoAddressModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddresses: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddresses', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddress: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddress', - document, - variables, - transform: (data: { - cryptoAddresses?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddress: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddress', - document, - variables, - transform: (data: { - cryptoAddresses?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'CryptoAddress', - 'createCryptoAddress', - 'cryptoAddress', - args.select, - args.data, - 'CreateCryptoAddressInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'createCryptoAddress', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - CryptoAddressPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'CryptoAddress', - 'updateCryptoAddress', - 'cryptoAddress', - args.select, - args.where.id, - args.data, - 'UpdateCryptoAddressInput', - 'id', - 'cryptoAddressPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'updateCryptoAddress', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'CryptoAddress', - 'deleteCryptoAddress', - 'cryptoAddress', - { - id: args.where.id, - }, - 'DeleteCryptoAddressInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'deleteCryptoAddress', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/email.ts b/sdk/constructive-react/src/public/orm/models/email.ts deleted file mode 100644 index 325475b9ce..0000000000 --- a/sdk/constructive-react/src/public/orm/models/email.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * Email model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - Email, - EmailWithRelations, - EmailSelect, - EmailFilter, - EmailOrderBy, - CreateEmailInput, - UpdateEmailInput, - EmailPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EmailModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - emails: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Email', - 'emails', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'emails', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - email: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Email', - 'emails', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'email', - document, - variables, - transform: (data: { - emails?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - email: data.emails?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - email: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Email', - 'emails', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'email', - document, - variables, - transform: (data: { - emails?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - email: data.emails?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Email', - 'createEmail', - 'email', - args.select, - args.data, - 'CreateEmailInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'createEmail', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EmailPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Email', - 'updateEmail', - 'email', - args.select, - args.where.id, - args.data, - 'UpdateEmailInput', - 'id', - 'emailPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'updateEmail', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Email', - 'deleteEmail', - 'email', - { - id: args.where.id, - }, - 'DeleteEmailInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'deleteEmail', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/identityProvider.ts b/sdk/constructive-react/src/public/orm/models/identityProvider.ts deleted file mode 100644 index cdc672145c..0000000000 --- a/sdk/constructive-react/src/public/orm/models/identityProvider.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * IdentityProvider model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - IdentityProvider, - IdentityProviderWithRelations, - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy, - CreateIdentityProviderInput, - UpdateIdentityProviderInput, - IdentityProviderPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class IdentityProviderModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - identityProviders: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'IdentityProvider', - 'identityProviders', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'IdentityProviderFilter', - 'IdentityProviderOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'IdentityProvider', - fieldName: 'identityProviders', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - identityProvider: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'IdentityProvider', - 'identityProviders', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'IdentityProviderFilter', - 'IdentityProviderOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'IdentityProvider', - fieldName: 'identityProvider', - document, - variables, - transform: (data: { - identityProviders?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - identityProvider: data.identityProviders?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'IdentityProvider', - 'createIdentityProvider', - 'identityProvider', - args.select, - args.data, - 'CreateIdentityProviderInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'IdentityProvider', - fieldName: 'createIdentityProvider', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts deleted file mode 100644 index 6a43b55b56..0000000000 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * Models barrel export - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; -export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; -export { AppPermissionModel } from './appPermission'; -export { OrgPermissionModel } from './orgPermission'; -export { DatabaseModel } from './database'; -export { SchemaModel } from './schema'; -export { TableModel } from './table'; -export { CheckConstraintModel } from './checkConstraint'; -export { FieldModel } from './field'; -export { SpatialRelationModel } from './spatialRelation'; -export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; -export { FullTextSearchModel } from './fullTextSearch'; -export { IndexModel } from './indexModel'; -export { PolicyModel } from './policy'; -export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; -export { TableGrantModel } from './tableGrant'; -export { TriggerModel } from './trigger'; -export { UniqueConstraintModel } from './uniqueConstraint'; -export { ViewModel } from './view'; -export { ViewTableModel } from './viewTable'; -export { ViewGrantModel } from './viewGrant'; -export { ViewRuleModel } from './viewRule'; -export { EmbeddingChunkModel } from './embeddingChunk'; -export { SecureTableProvisionModel } from './secureTableProvision'; -export { RelationProvisionModel } from './relationProvision'; -export { SessionSecretsModuleModel } from './sessionSecretsModule'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; -export { RealtimeModuleModel } from './realtimeModule'; -export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; -export { SchemaGrantModel } from './schemaGrant'; -export { DefaultPrivilegeModel } from './defaultPrivilege'; -export { EnumModel } from './enum'; -export { FunctionModel } from './function'; -export { ApiSchemaModel } from './apiSchema'; -export { ApiModuleModel } from './apiModule'; -export { DomainModel } from './domain'; -export { SiteMetadatumModel } from './siteMetadatum'; -export { SiteModuleModel } from './siteModule'; -export { SiteThemeModel } from './siteTheme'; -export { CorsSettingModel } from './corsSetting'; -export { MerkleStoreModuleModel } from './merkleStoreModule'; -export { GraphModuleModel } from './graphModule'; -export { TriggerFunctionModel } from './triggerFunction'; -export { PartitionModel } from './partition'; -export { DatabaseTransferModel } from './databaseTransfer'; -export { ApiModel } from './api'; -export { SiteModel } from './site'; -export { AppModel } from './app'; -export { ApiSettingModel } from './apiSetting'; -export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; -export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; -export { CryptoAuthModuleModel } from './cryptoAuthModule'; -export { DefaultIdsModuleModel } from './defaultIdsModule'; -export { DenormalizedTableFieldModel } from './denormalizedTableField'; -export { EmailsModuleModel } from './emailsModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; -export { InvitesModuleModel } from './invitesModule'; -export { EventsModuleModel } from './eventsModule'; -export { LimitsModuleModel } from './limitsModule'; -export { MembershipTypesModuleModel } from './membershipTypesModule'; -export { MembershipsModuleModel } from './membershipsModule'; -export { PermissionsModuleModel } from './permissionsModule'; -export { PhoneNumbersModuleModel } from './phoneNumbersModule'; -export { ProfilesModuleModel } from './profilesModule'; -export { UserStateModuleModel } from './userStateModule'; -export { SessionsModuleModel } from './sessionsModule'; -export { UserAuthModuleModel } from './userAuthModule'; -export { UsersModuleModel } from './usersModule'; -export { BlueprintModel } from './blueprint'; -export { BlueprintTemplateModel } from './blueprintTemplate'; -export { BlueprintConstructionModel } from './blueprintConstruction'; -export { StorageModuleModel } from './storageModule'; -export { EntityTypeProvisionModel } from './entityTypeProvision'; -export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; -export { WebauthnAuthModuleModel } from './webauthnAuthModule'; -export { NotificationsModuleModel } from './notificationsModule'; -export { InferenceLogModuleModel } from './inferenceLogModule'; -export { ComputeLogModuleModel } from './computeLogModule'; -export { TransferLogModuleModel } from './transferLogModule'; -export { StorageLogModuleModel } from './storageLogModule'; -export { DbUsageModuleModel } from './dbUsageModule'; -export { AgentModuleModel } from './agentModule'; -export { NamespaceModuleModel } from './namespaceModule'; -export { FunctionModuleModel } from './functionModule'; -export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { AppAdminGrantModel } from './appAdminGrant'; -export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppGrantModel } from './appGrant'; -export { OrgMembershipModel } from './orgMembership'; -export { OrgMemberModel } from './orgMember'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgMemberProfileModel } from './orgMemberProfile'; -export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { AppLimitModel } from './appLimit'; -export { AppLimitCreditModel } from './appLimitCredit'; -export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; -export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; -export { OrgLimitModel } from './orgLimit'; -export { OrgLimitCreditModel } from './orgLimitCredit'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitWarningModel } from './orgLimitWarning'; -export { EmailModel } from './email'; -export { PhoneNumberModel } from './phoneNumber'; -export { CryptoAddressModel } from './cryptoAddress'; -export { WebauthnCredentialModel } from './webauthnCredential'; -export { AppInviteModel } from './appInvite'; -export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgInviteModel } from './orgInvite'; -export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AuditLogAuthModel } from './auditLogAuth'; -export { IdentityProviderModel } from './identityProvider'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { RoleTypeModel } from './roleType'; -export { MigrateFileModel } from './migrateFile'; -export { DevicesModuleModel } from './devicesModule'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { NodeTypeRegistryModel } from './nodeTypeRegistry'; -export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; -export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { UserConnectedAccountModel } from './userConnectedAccount'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { AppLimitWarningModel } from './appLimitWarning'; -export { PubkeySettingModel } from './pubkeySetting'; -export { RateLimitsModuleModel } from './rateLimitsModule'; -export { MembershipTypeModel } from './membershipType'; -export { RlsSettingModel } from './rlsSetting'; -export { RlsModuleModel } from './rlsModule'; -export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; -export { PlansModuleModel } from './plansModule'; -export { SqlActionModel } from './sqlAction'; -export { DatabaseSettingModel } from './databaseSetting'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; -export { AppMembershipModel } from './appMembership'; -export { UserModel } from './user'; -export { AstMigrationModel } from './astMigration'; -export { WebauthnSettingModel } from './webauthnSetting'; -export { BillingModuleModel } from './billingModule'; -export { BillingProviderModuleModel } from './billingProviderModule'; -export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-react/src/public/orm/models/membershipType.ts b/sdk/constructive-react/src/public/orm/models/membershipType.ts deleted file mode 100644 index ee7ed596c0..0000000000 --- a/sdk/constructive-react/src/public/orm/models/membershipType.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * MembershipType model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - MembershipType, - MembershipTypeWithRelations, - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy, - CreateMembershipTypeInput, - UpdateMembershipTypeInput, - MembershipTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MembershipTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipType', - document, - variables, - transform: (data: { - membershipTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - membershipType: data.membershipTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: number; - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipType', - document, - variables, - transform: (data: { - membershipTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - membershipType: data.membershipTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MembershipType', - 'createMembershipType', - 'membershipType', - args.select, - args.data, - 'CreateMembershipTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'createMembershipType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: number; - }, - MembershipTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MembershipType', - 'updateMembershipType', - 'membershipType', - args.select, - args.where.id, - args.data, - 'UpdateMembershipTypeInput', - 'id', - 'membershipTypePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'updateMembershipType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: number; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MembershipType', - 'deleteMembershipType', - 'membershipType', - { - id: args.where.id, - }, - 'DeleteMembershipTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'deleteMembershipType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgAdminGrant.ts b/sdk/constructive-react/src/public/orm/models/orgAdminGrant.ts deleted file mode 100644 index 7b13377316..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgAdminGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgAdminGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgAdminGrant, - OrgAdminGrantWithRelations, - OrgAdminGrantSelect, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy, - CreateOrgAdminGrantInput, - UpdateOrgAdminGrantInput, - OrgAdminGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgAdminGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrant', - document, - variables, - transform: (data: { - orgAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrant', - document, - variables, - transform: (data: { - orgAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgAdminGrant', - 'createOrgAdminGrant', - 'orgAdminGrant', - args.select, - args.data, - 'CreateOrgAdminGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'createOrgAdminGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgAdminGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgAdminGrant', - 'updateOrgAdminGrant', - 'orgAdminGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgAdminGrantInput', - 'id', - 'orgAdminGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'updateOrgAdminGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgAdminGrant', - 'deleteOrgAdminGrant', - 'orgAdminGrant', - { - id: args.where.id, - }, - 'DeleteOrgAdminGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'deleteOrgAdminGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts b/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts deleted file mode 100644 index 8a43b83a98..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgChartEdge.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgChartEdge model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgChartEdge, - OrgChartEdgeWithRelations, - OrgChartEdgeSelect, - OrgChartEdgeFilter, - OrgChartEdgeOrderBy, - CreateOrgChartEdgeInput, - UpdateOrgChartEdgeInput, - OrgChartEdgePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgChartEdgeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdges: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdges', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdge: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdge', - document, - variables, - transform: (data: { - orgChartEdges?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdge: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdge', - document, - variables, - transform: (data: { - orgChartEdges?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgChartEdge', - 'createOrgChartEdge', - 'orgChartEdge', - args.select, - args.data, - 'CreateOrgChartEdgeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'createOrgChartEdge', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgChartEdgePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgChartEdge', - 'updateOrgChartEdge', - 'orgChartEdge', - args.select, - args.where.id, - args.data, - 'UpdateOrgChartEdgeInput', - 'id', - 'orgChartEdgePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'updateOrgChartEdge', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgChartEdge', - 'deleteOrgChartEdge', - 'orgChartEdge', - { - id: args.where.id, - }, - 'DeleteOrgChartEdgeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'deleteOrgChartEdge', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts deleted file mode 100644 index 168a6fe3db..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgChartEdgeGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgChartEdgeGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgChartEdgeGrant, - OrgChartEdgeGrantWithRelations, - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy, - CreateOrgChartEdgeGrantInput, - UpdateOrgChartEdgeGrantInput, - OrgChartEdgeGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgChartEdgeGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrant', - document, - variables, - transform: (data: { - orgChartEdgeGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrant', - document, - variables, - transform: (data: { - orgChartEdgeGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgChartEdgeGrant', - 'createOrgChartEdgeGrant', - 'orgChartEdgeGrant', - args.select, - args.data, - 'CreateOrgChartEdgeGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'createOrgChartEdgeGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgChartEdgeGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgChartEdgeGrant', - 'updateOrgChartEdgeGrant', - 'orgChartEdgeGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgChartEdgeGrantInput', - 'id', - 'orgChartEdgeGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'updateOrgChartEdgeGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgChartEdgeGrant', - 'deleteOrgChartEdgeGrant', - 'orgChartEdgeGrant', - { - id: args.where.id, - }, - 'DeleteOrgChartEdgeGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'deleteOrgChartEdgeGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgClaimedInvite.ts b/sdk/constructive-react/src/public/orm/models/orgClaimedInvite.ts deleted file mode 100644 index e1a3aecafb..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgClaimedInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgClaimedInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgClaimedInvite, - OrgClaimedInviteWithRelations, - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy, - CreateOrgClaimedInviteInput, - UpdateOrgClaimedInviteInput, - OrgClaimedInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgClaimedInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvite', - document, - variables, - transform: (data: { - orgClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvite', - document, - variables, - transform: (data: { - orgClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgClaimedInvite', - 'createOrgClaimedInvite', - 'orgClaimedInvite', - args.select, - args.data, - 'CreateOrgClaimedInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'createOrgClaimedInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgClaimedInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgClaimedInvite', - 'updateOrgClaimedInvite', - 'orgClaimedInvite', - args.select, - args.where.id, - args.data, - 'UpdateOrgClaimedInviteInput', - 'id', - 'orgClaimedInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'updateOrgClaimedInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgClaimedInvite', - 'deleteOrgClaimedInvite', - 'orgClaimedInvite', - { - id: args.where.id, - }, - 'DeleteOrgClaimedInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'deleteOrgClaimedInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts b/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts deleted file mode 100644 index 7c333b76d3..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgGetManagersRecord.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * OrgGetManagersRecord model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGetManagersRecord, - OrgGetManagersRecordWithRelations, - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, - UpdateOrgGetManagersRecordInput, - OrgGetManagersRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGetManagersRecordModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetManagers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGetManagersRecord', - 'orgGetManagers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGetManagersRecordFilter', - 'OrgGetManagersRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetManagersRecord', - fieldName: 'orgGetManagers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetManagersRecord: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGetManagersRecord', - 'orgGetManagers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGetManagersRecordFilter', - 'OrgGetManagersRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetManagersRecord', - fieldName: 'orgGetManagersRecord', - document, - variables, - transform: (data: { - orgGetManagers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGetManagersRecord: data.orgGetManagers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetManagersRecord', - 'createOrgGetManagersRecord', - 'orgGetManagersRecord', - args.select, - args.data, - 'CreateOrgGetManagersRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetManagersRecord', - fieldName: 'createOrgGetManagersRecord', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts deleted file mode 100644 index f259e10434..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgGetSubordinatesRecord.ts +++ /dev/null @@ -1,136 +0,0 @@ -/** - * OrgGetSubordinatesRecord model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGetSubordinatesRecord, - OrgGetSubordinatesRecordWithRelations, - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, - UpdateOrgGetSubordinatesRecordInput, - OrgGetSubordinatesRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGetSubordinatesRecordModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetSubordinates: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGetSubordinatesRecord', - 'orgGetSubordinates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGetSubordinatesRecordFilter', - 'OrgGetSubordinatesRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'orgGetSubordinates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetSubordinatesRecord: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGetSubordinatesRecord', - 'orgGetSubordinates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGetSubordinatesRecordFilter', - 'OrgGetSubordinatesRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'orgGetSubordinatesRecord', - document, - variables, - transform: (data: { - orgGetSubordinates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGetSubordinatesRecord: data.orgGetSubordinates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetSubordinatesRecord', - 'createOrgGetSubordinatesRecord', - 'orgGetSubordinatesRecord', - args.select, - args.data, - 'CreateOrgGetSubordinatesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'createOrgGetSubordinatesRecord', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgGrant.ts b/sdk/constructive-react/src/public/orm/models/orgGrant.ts deleted file mode 100644 index c8e74f5cc6..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGrant, - OrgGrantWithRelations, - OrgGrantSelect, - OrgGrantFilter, - OrgGrantOrderBy, - CreateOrgGrantInput, - UpdateOrgGrantInput, - OrgGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrant', - document, - variables, - transform: (data: { - orgGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGrant: data.orgGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrant', - document, - variables, - transform: (data: { - orgGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGrant: data.orgGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGrant', - 'createOrgGrant', - 'orgGrant', - args.select, - args.data, - 'CreateOrgGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'createOrgGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgGrant', - 'updateOrgGrant', - 'orgGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgGrantInput', - 'id', - 'orgGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'updateOrgGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgGrant', - 'deleteOrgGrant', - 'orgGrant', - { - id: args.where.id, - }, - 'DeleteOrgGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'deleteOrgGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgInvite.ts b/sdk/constructive-react/src/public/orm/models/orgInvite.ts deleted file mode 100644 index 8d7931f078..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgInvite, - OrgInviteWithRelations, - OrgInviteSelect, - OrgInviteFilter, - OrgInviteOrderBy, - CreateOrgInviteInput, - UpdateOrgInviteInput, - OrgInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvite', - document, - variables, - transform: (data: { - orgInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgInvite: data.orgInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvite', - document, - variables, - transform: (data: { - orgInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgInvite: data.orgInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgInvite', - 'createOrgInvite', - 'orgInvite', - args.select, - args.data, - 'CreateOrgInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'createOrgInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgInvite', - 'updateOrgInvite', - 'orgInvite', - args.select, - args.where.id, - args.data, - 'UpdateOrgInviteInput', - 'id', - 'orgInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'updateOrgInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgInvite', - 'deleteOrgInvite', - 'orgInvite', - { - id: args.where.id, - }, - 'DeleteOrgInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'deleteOrgInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimit.ts b/sdk/constructive-react/src/public/orm/models/orgLimit.ts deleted file mode 100644 index 48a3932f23..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimit, - OrgLimitWithRelations, - OrgLimitSelect, - OrgLimitFilter, - OrgLimitOrderBy, - CreateOrgLimitInput, - UpdateOrgLimitInput, - OrgLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimit', - document, - variables, - transform: (data: { - orgLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimit: data.orgLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimit', - document, - variables, - transform: (data: { - orgLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimit: data.orgLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimit', - 'createOrgLimit', - 'orgLimit', - args.select, - args.data, - 'CreateOrgLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'createOrgLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimit', - 'updateOrgLimit', - 'orgLimit', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitInput', - 'id', - 'orgLimitPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'updateOrgLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimit', - 'deleteOrgLimit', - 'orgLimit', - { - id: args.where.id, - }, - 'DeleteOrgLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'deleteOrgLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitAggregate.ts b/sdk/constructive-react/src/public/orm/models/orgLimitAggregate.ts deleted file mode 100644 index d74b9e7d92..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimitAggregate.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitAggregate model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitAggregate, - OrgLimitAggregateWithRelations, - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy, - CreateOrgLimitAggregateInput, - UpdateOrgLimitAggregateInput, - OrgLimitAggregatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitAggregateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregate', - document, - variables, - transform: (data: { - orgLimitAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregate', - document, - variables, - transform: (data: { - orgLimitAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitAggregate', - 'createOrgLimitAggregate', - 'orgLimitAggregate', - args.select, - args.data, - 'CreateOrgLimitAggregateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'createOrgLimitAggregate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitAggregatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitAggregate', - 'updateOrgLimitAggregate', - 'orgLimitAggregate', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitAggregateInput', - 'id', - 'orgLimitAggregatePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'updateOrgLimitAggregate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitAggregate', - 'deleteOrgLimitAggregate', - 'orgLimitAggregate', - { - id: args.where.id, - }, - 'DeleteOrgLimitAggregateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'deleteOrgLimitAggregate', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitCap.ts b/sdk/constructive-react/src/public/orm/models/orgLimitCap.ts deleted file mode 100644 index 6755eea460..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimitCap.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCap model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCap, - OrgLimitCapWithRelations, - OrgLimitCapSelect, - OrgLimitCapFilter, - OrgLimitCapOrderBy, - CreateOrgLimitCapInput, - UpdateOrgLimitCapInput, - OrgLimitCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCap', - document, - variables, - transform: (data: { - orgLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCap: data.orgLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCap', - document, - variables, - transform: (data: { - orgLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCap: data.orgLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCap', - 'createOrgLimitCap', - 'orgLimitCap', - args.select, - args.data, - 'CreateOrgLimitCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'createOrgLimitCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCap', - 'updateOrgLimitCap', - 'orgLimitCap', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCapInput', - 'id', - 'orgLimitCapPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'updateOrgLimitCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCap', - 'deleteOrgLimitCap', - 'orgLimitCap', - { - id: args.where.id, - }, - 'DeleteOrgLimitCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'deleteOrgLimitCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitCapsDefault.ts b/sdk/constructive-react/src/public/orm/models/orgLimitCapsDefault.ts deleted file mode 100644 index 7884189152..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimitCapsDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCapsDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCapsDefault, - OrgLimitCapsDefaultWithRelations, - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy, - CreateOrgLimitCapsDefaultInput, - UpdateOrgLimitCapsDefaultInput, - OrgLimitCapsDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCapsDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefault', - document, - variables, - transform: (data: { - orgLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCapsDefault: data.orgLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefault', - document, - variables, - transform: (data: { - orgLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCapsDefault: data.orgLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCapsDefault', - 'createOrgLimitCapsDefault', - 'orgLimitCapsDefault', - args.select, - args.data, - 'CreateOrgLimitCapsDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'createOrgLimitCapsDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCapsDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCapsDefault', - 'updateOrgLimitCapsDefault', - 'orgLimitCapsDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCapsDefaultInput', - 'id', - 'orgLimitCapsDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'updateOrgLimitCapsDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCapsDefault', - 'deleteOrgLimitCapsDefault', - 'orgLimitCapsDefault', - { - id: args.where.id, - }, - 'DeleteOrgLimitCapsDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'deleteOrgLimitCapsDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitCredit.ts b/sdk/constructive-react/src/public/orm/models/orgLimitCredit.ts deleted file mode 100644 index 560f611013..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimitCredit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCredit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCredit, - OrgLimitCreditWithRelations, - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy, - CreateOrgLimitCreditInput, - UpdateOrgLimitCreditInput, - OrgLimitCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredit', - document, - variables, - transform: (data: { - orgLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCredit: data.orgLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredit', - document, - variables, - transform: (data: { - orgLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCredit: data.orgLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCredit', - 'createOrgLimitCredit', - 'orgLimitCredit', - args.select, - args.data, - 'CreateOrgLimitCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'createOrgLimitCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCredit', - 'updateOrgLimitCredit', - 'orgLimitCredit', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCreditInput', - 'id', - 'orgLimitCreditPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'updateOrgLimitCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCredit', - 'deleteOrgLimitCredit', - 'orgLimitCredit', - { - id: args.where.id, - }, - 'DeleteOrgLimitCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'deleteOrgLimitCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitDefault.ts b/sdk/constructive-react/src/public/orm/models/orgLimitDefault.ts deleted file mode 100644 index 7e55bfd1f7..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimitDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitDefault, - OrgLimitDefaultWithRelations, - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy, - CreateOrgLimitDefaultInput, - UpdateOrgLimitDefaultInput, - OrgLimitDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefault', - document, - variables, - transform: (data: { - orgLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefault', - document, - variables, - transform: (data: { - orgLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitDefault', - 'createOrgLimitDefault', - 'orgLimitDefault', - args.select, - args.data, - 'CreateOrgLimitDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'createOrgLimitDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitDefault', - 'updateOrgLimitDefault', - 'orgLimitDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitDefaultInput', - 'id', - 'orgLimitDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'updateOrgLimitDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitDefault', - 'deleteOrgLimitDefault', - 'orgLimitDefault', - { - id: args.where.id, - }, - 'DeleteOrgLimitDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'deleteOrgLimitDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts deleted file mode 100644 index 2eb9796e2a..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitEvent model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitEvent, - OrgLimitEventWithRelations, - OrgLimitEventSelect, - OrgLimitEventFilter, - OrgLimitEventOrderBy, - CreateOrgLimitEventInput, - UpdateOrgLimitEventInput, - OrgLimitEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvent', - document, - variables, - transform: (data: { - orgLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvent', - document, - variables, - transform: (data: { - orgLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitEvent', - 'createOrgLimitEvent', - 'orgLimitEvent', - args.select, - args.data, - 'CreateOrgLimitEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'createOrgLimitEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitEvent', - 'updateOrgLimitEvent', - 'orgLimitEvent', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitEventInput', - 'id', - 'orgLimitEventPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'updateOrgLimitEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitEvent', - 'deleteOrgLimitEvent', - 'orgLimitEvent', - { - id: args.where.id, - }, - 'DeleteOrgLimitEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'deleteOrgLimitEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitWarning.ts b/sdk/constructive-react/src/public/orm/models/orgLimitWarning.ts deleted file mode 100644 index e496b69fef..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgLimitWarning.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitWarning model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitWarning, - OrgLimitWarningWithRelations, - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy, - CreateOrgLimitWarningInput, - UpdateOrgLimitWarningInput, - OrgLimitWarningPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitWarningModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarnings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarnings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarning', - document, - variables, - transform: (data: { - orgLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarning', - document, - variables, - transform: (data: { - orgLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitWarning', - 'createOrgLimitWarning', - 'orgLimitWarning', - args.select, - args.data, - 'CreateOrgLimitWarningInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'createOrgLimitWarning', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitWarningPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitWarning', - 'updateOrgLimitWarning', - 'orgLimitWarning', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitWarningInput', - 'id', - 'orgLimitWarningPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'updateOrgLimitWarning', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitWarning', - 'deleteOrgLimitWarning', - 'orgLimitWarning', - { - id: args.where.id, - }, - 'DeleteOrgLimitWarningInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'deleteOrgLimitWarning', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgMember.ts b/sdk/constructive-react/src/public/orm/models/orgMember.ts deleted file mode 100644 index 44f5608f45..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgMember.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMember model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMember, - OrgMemberWithRelations, - OrgMemberSelect, - OrgMemberFilter, - OrgMemberOrderBy, - CreateOrgMemberInput, - UpdateOrgMemberInput, - OrgMemberPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMemberModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMembers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMember: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMember', - document, - variables, - transform: (data: { - orgMembers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMember: data.orgMembers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMember: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMember', - document, - variables, - transform: (data: { - orgMembers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMember: data.orgMembers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMember', - 'createOrgMember', - 'orgMember', - args.select, - args.data, - 'CreateOrgMemberInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'createOrgMember', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMemberPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMember', - 'updateOrgMember', - 'orgMember', - args.select, - args.where.id, - args.data, - 'UpdateOrgMemberInput', - 'id', - 'orgMemberPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'updateOrgMember', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMember', - 'deleteOrgMember', - 'orgMember', - { - id: args.where.id, - }, - 'DeleteOrgMemberInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'deleteOrgMember', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgMemberProfile.ts b/sdk/constructive-react/src/public/orm/models/orgMemberProfile.ts deleted file mode 100644 index 77357e1745..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgMemberProfile.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMemberProfile model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMemberProfile, - OrgMemberProfileWithRelations, - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy, - CreateOrgMemberProfileInput, - UpdateOrgMemberProfileInput, - OrgMemberProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMemberProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfiles: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfile', - document, - variables, - transform: (data: { - orgMemberProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfile', - document, - variables, - transform: (data: { - orgMemberProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMemberProfile', - 'createOrgMemberProfile', - 'orgMemberProfile', - args.select, - args.data, - 'CreateOrgMemberProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'createOrgMemberProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMemberProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMemberProfile', - 'updateOrgMemberProfile', - 'orgMemberProfile', - args.select, - args.where.id, - args.data, - 'UpdateOrgMemberProfileInput', - 'id', - 'orgMemberProfilePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'updateOrgMemberProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMemberProfile', - 'deleteOrgMemberProfile', - 'orgMemberProfile', - { - id: args.where.id, - }, - 'DeleteOrgMemberProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'deleteOrgMemberProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgMembership.ts b/sdk/constructive-react/src/public/orm/models/orgMembership.ts deleted file mode 100644 index 623ec08fe2..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgMembership.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMembership model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembership, - OrgMembershipWithRelations, - OrgMembershipSelect, - OrgMembershipFilter, - OrgMembershipOrderBy, - CreateOrgMembershipInput, - UpdateOrgMembershipInput, - OrgMembershipPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberships: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMemberships', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMembership', - document, - variables, - transform: (data: { - orgMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembership: data.orgMemberships?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMembership', - document, - variables, - transform: (data: { - orgMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembership: data.orgMemberships?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembership', - 'createOrgMembership', - 'orgMembership', - args.select, - args.data, - 'CreateOrgMembershipInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'createOrgMembership', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembership', - 'updateOrgMembership', - 'orgMembership', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipInput', - 'id', - 'orgMembershipPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'updateOrgMembership', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembership', - 'deleteOrgMembership', - 'orgMembership', - { - id: args.where.id, - }, - 'DeleteOrgMembershipInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'deleteOrgMembership', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgMembershipDefault.ts b/sdk/constructive-react/src/public/orm/models/orgMembershipDefault.ts deleted file mode 100644 index 3441315057..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgMembershipDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgMembershipDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembershipDefault, - OrgMembershipDefaultWithRelations, - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy, - CreateOrgMembershipDefaultInput, - UpdateOrgMembershipDefaultInput, - OrgMembershipDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefault', - document, - variables, - transform: (data: { - orgMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefault', - document, - variables, - transform: (data: { - orgMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipDefault', - 'createOrgMembershipDefault', - 'orgMembershipDefault', - args.select, - args.data, - 'CreateOrgMembershipDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'createOrgMembershipDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipDefault', - 'updateOrgMembershipDefault', - 'orgMembershipDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipDefaultInput', - 'id', - 'orgMembershipDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'updateOrgMembershipDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipDefault', - 'deleteOrgMembershipDefault', - 'orgMembershipDefault', - { - id: args.where.id, - }, - 'DeleteOrgMembershipDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'deleteOrgMembershipDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgMembershipSetting.ts b/sdk/constructive-react/src/public/orm/models/orgMembershipSetting.ts deleted file mode 100644 index 46801fc913..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgMembershipSetting.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgMembershipSetting model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembershipSetting, - OrgMembershipSettingWithRelations, - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy, - CreateOrgMembershipSettingInput, - UpdateOrgMembershipSettingInput, - OrgMembershipSettingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipSettingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSettings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSettings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSetting: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSetting', - document, - variables, - transform: (data: { - orgMembershipSettings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSetting: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSetting', - document, - variables, - transform: (data: { - orgMembershipSettings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipSetting', - 'createOrgMembershipSetting', - 'orgMembershipSetting', - args.select, - args.data, - 'CreateOrgMembershipSettingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'createOrgMembershipSetting', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipSettingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipSetting', - 'updateOrgMembershipSetting', - 'orgMembershipSetting', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipSettingInput', - 'id', - 'orgMembershipSettingPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'updateOrgMembershipSetting', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipSetting', - 'deleteOrgMembershipSetting', - 'orgMembershipSetting', - { - id: args.where.id, - }, - 'DeleteOrgMembershipSettingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'deleteOrgMembershipSetting', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgOwnerGrant.ts b/sdk/constructive-react/src/public/orm/models/orgOwnerGrant.ts deleted file mode 100644 index 9614dce8fc..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgOwnerGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgOwnerGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgOwnerGrant, - OrgOwnerGrantWithRelations, - OrgOwnerGrantSelect, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy, - CreateOrgOwnerGrantInput, - UpdateOrgOwnerGrantInput, - OrgOwnerGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgOwnerGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrant', - document, - variables, - transform: (data: { - orgOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrant', - document, - variables, - transform: (data: { - orgOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgOwnerGrant', - 'createOrgOwnerGrant', - 'orgOwnerGrant', - args.select, - args.data, - 'CreateOrgOwnerGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'createOrgOwnerGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgOwnerGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgOwnerGrant', - 'updateOrgOwnerGrant', - 'orgOwnerGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgOwnerGrantInput', - 'id', - 'orgOwnerGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'updateOrgOwnerGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgOwnerGrant', - 'deleteOrgOwnerGrant', - 'orgOwnerGrant', - { - id: args.where.id, - }, - 'DeleteOrgOwnerGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'deleteOrgOwnerGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgPermission.ts b/sdk/constructive-react/src/public/orm/models/orgPermission.ts deleted file mode 100644 index 7bdc906323..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgPermission.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgPermission model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgPermission, - OrgPermissionWithRelations, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, - CreateOrgPermissionInput, - UpdateOrgPermissionInput, - OrgPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermission', - 'createOrgPermission', - 'orgPermission', - args.select, - args.data, - 'CreateOrgPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'createOrgPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermission', - 'updateOrgPermission', - 'orgPermission', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionInput', - 'id', - 'orgPermissionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'updateOrgPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermission', - 'deleteOrgPermission', - 'orgPermission', - { - id: args.where.id, - }, - 'DeleteOrgPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'deleteOrgPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/orgPermissionDefault.ts b/sdk/constructive-react/src/public/orm/models/orgPermissionDefault.ts deleted file mode 100644 index 8d00b99325..0000000000 --- a/sdk/constructive-react/src/public/orm/models/orgPermissionDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgPermissionDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgPermissionDefault, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, - CreateOrgPermissionDefaultInput, - UpdateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefault', - 'createOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.data, - 'CreateOrgPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'createOrgPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefault', - 'updateOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultInput', - 'id', - 'orgPermissionDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'updateOrgPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefault', - 'deleteOrgPermissionDefault', - 'orgPermissionDefault', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'deleteOrgPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/phoneNumber.ts b/sdk/constructive-react/src/public/orm/models/phoneNumber.ts deleted file mode 100644 index 0803908e25..0000000000 --- a/sdk/constructive-react/src/public/orm/models/phoneNumber.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * PhoneNumber model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PhoneNumber, - PhoneNumberWithRelations, - PhoneNumberSelect, - PhoneNumberFilter, - PhoneNumberOrderBy, - CreatePhoneNumberInput, - UpdatePhoneNumberInput, - PhoneNumberPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PhoneNumberModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumbers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumbers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumber: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumber', - document, - variables, - transform: (data: { - phoneNumbers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumber: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumber', - document, - variables, - transform: (data: { - phoneNumbers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PhoneNumber', - 'createPhoneNumber', - 'phoneNumber', - args.select, - args.data, - 'CreatePhoneNumberInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'createPhoneNumber', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PhoneNumberPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PhoneNumber', - 'updatePhoneNumber', - 'phoneNumber', - args.select, - args.where.id, - args.data, - 'UpdatePhoneNumberInput', - 'id', - 'phoneNumberPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'updatePhoneNumber', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PhoneNumber', - 'deletePhoneNumber', - 'phoneNumber', - { - id: args.where.id, - }, - 'DeletePhoneNumberInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'deletePhoneNumber', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/roleType.ts b/sdk/constructive-react/src/public/orm/models/roleType.ts deleted file mode 100644 index 8b256a0dc7..0000000000 --- a/sdk/constructive-react/src/public/orm/models/roleType.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * RoleType model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - RoleType, - RoleTypeWithRelations, - RoleTypeSelect, - RoleTypeFilter, - RoleTypeOrderBy, - CreateRoleTypeInput, - UpdateRoleTypeInput, - RoleTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class RoleTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleType', - document, - variables, - transform: (data: { - roleTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - roleType: data.roleTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: number; - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleType', - document, - variables, - transform: (data: { - roleTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - roleType: data.roleTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'RoleType', - 'createRoleType', - 'roleType', - args.select, - args.data, - 'CreateRoleTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'createRoleType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: number; - }, - RoleTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'RoleType', - 'updateRoleType', - 'roleType', - args.select, - args.where.id, - args.data, - 'UpdateRoleTypeInput', - 'id', - 'roleTypePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'updateRoleType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: number; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'RoleType', - 'deleteRoleType', - 'roleType', - { - id: args.where.id, - }, - 'DeleteRoleTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'deleteRoleType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/user.ts b/sdk/constructive-react/src/public/orm/models/user.ts deleted file mode 100644 index 8935818350..0000000000 --- a/sdk/constructive-react/src/public/orm/models/user.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * User model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - User, - UserWithRelations, - UserSelect, - UserFilter, - UserOrderBy, - CreateUserInput, - UpdateUserInput, - UserPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UserModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - users: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'User', - 'users', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'users', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - user: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'User', - 'users', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'user', - document, - variables, - transform: (data: { - users?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - user: data.users?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - user: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'User', - 'users', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'user', - document, - variables, - transform: (data: { - users?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - user: data.users?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'User', - 'createUser', - 'user', - args.select, - args.data, - 'CreateUserInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'createUser', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - UserPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'User', - 'updateUser', - 'user', - args.select, - args.where.id, - args.data, - 'UpdateUserInput', - 'id', - 'userPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'updateUser', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'User', - 'deleteUser', - 'user', - { - id: args.where.id, - }, - 'DeleteUserInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'deleteUser', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/userConnectedAccount.ts b/sdk/constructive-react/src/public/orm/models/userConnectedAccount.ts deleted file mode 100644 index a2344afdf4..0000000000 --- a/sdk/constructive-react/src/public/orm/models/userConnectedAccount.ts +++ /dev/null @@ -1,176 +0,0 @@ -/** - * UserConnectedAccount model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - UserConnectedAccount, - UserConnectedAccountWithRelations, - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, - UpdateUserConnectedAccountInput, - UserConnectedAccountPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UserConnectedAccountModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccounts: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccounts', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccount: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccount', - document, - variables, - transform: (data: { - userConnectedAccounts?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccount: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccount', - document, - variables, - transform: (data: { - userConnectedAccounts?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UserConnectedAccount', - 'createUserConnectedAccount', - 'userConnectedAccount', - args.select, - args.data, - 'CreateUserConnectedAccountInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UserConnectedAccount', - fieldName: 'createUserConnectedAccount', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/webauthnCredential.ts b/sdk/constructive-react/src/public/orm/models/webauthnCredential.ts deleted file mode 100644 index cca4c75cf4..0000000000 --- a/sdk/constructive-react/src/public/orm/models/webauthnCredential.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * WebauthnCredential model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - WebauthnCredential, - WebauthnCredentialWithRelations, - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy, - CreateWebauthnCredentialInput, - UpdateWebauthnCredentialInput, - WebauthnCredentialPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class WebauthnCredentialModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredentials: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredentials', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredential: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredential', - document, - variables, - transform: (data: { - webauthnCredentials?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredential: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredential', - document, - variables, - transform: (data: { - webauthnCredentials?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'WebauthnCredential', - 'createWebauthnCredential', - 'webauthnCredential', - args.select, - args.data, - 'CreateWebauthnCredentialInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'createWebauthnCredential', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - WebauthnCredentialPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'WebauthnCredential', - 'updateWebauthnCredential', - 'webauthnCredential', - args.select, - args.where.id, - args.data, - 'UpdateWebauthnCredentialInput', - 'id', - 'webauthnCredentialPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'updateWebauthnCredential', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'WebauthnCredential', - 'deleteWebauthnCredential', - 'webauthnCredential', - { - id: args.where.id, - }, - 'DeleteWebauthnCredentialInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'deleteWebauthnCredential', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/mutation/index.ts b/sdk/constructive-react/src/public/orm/mutation/index.ts deleted file mode 100644 index 4cc4f2caf8..0000000000 --- a/sdk/constructive-react/src/public/orm/mutation/index.ts +++ /dev/null @@ -1,1512 +0,0 @@ -/** - * 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 { - SendAccountDeletionEmailInput, - SignOutInput, - AcceptDatabaseTransferInput, - CancelDatabaseTransferInput, - RejectDatabaseTransferInput, - DisconnectAccountInput, - RevokeApiKeyInput, - RevokeSessionInput, - VerifyPasswordInput, - VerifyTotpInput, - SubmitAppInviteCodeInput, - SubmitOrgInviteCodeInput, - CheckPasswordInput, - ConfirmDeleteAccountInput, - SetPasswordInput, - VerifyEmailInput, - ConstructBlueprintInput, - ProvisionNewUserInput, - ResetPasswordInput, - ProvisionCheckConstraintInput, - ProvisionUniqueConstraintInput, - ProvisionFullTextSearchInput, - ProvisionIndexInput, - CopyTemplateToBlueprintInput, - ProvisionSpatialRelationInput, - SignInCrossOriginInput, - BootstrapUserInput, - SignUpInput, - SignInInput, - ProvisionRelationInput, - SetFieldOrderInput, - ApplyRlsInput, - ProvisionDatabaseWithUserInput, - CreateUserDatabaseInput, - ExtendTokenExpiresInput, - CreateApiKeyInput, - RequestCrossOriginTokenInput, - ProvisionTableInput, - SendVerificationEmailInput, - ForgotPasswordInput, - ProvisionBucketInput, - SendAccountDeletionEmailPayload, - SignOutPayload, - AcceptDatabaseTransferPayload, - CancelDatabaseTransferPayload, - RejectDatabaseTransferPayload, - DisconnectAccountPayload, - RevokeApiKeyPayload, - RevokeSessionPayload, - VerifyPasswordPayload, - VerifyTotpPayload, - SubmitAppInviteCodePayload, - SubmitOrgInviteCodePayload, - CheckPasswordPayload, - ConfirmDeleteAccountPayload, - SetPasswordPayload, - VerifyEmailPayload, - ConstructBlueprintPayload, - ProvisionNewUserPayload, - ResetPasswordPayload, - ProvisionCheckConstraintPayload, - ProvisionUniqueConstraintPayload, - ProvisionFullTextSearchPayload, - ProvisionIndexPayload, - CopyTemplateToBlueprintPayload, - ProvisionSpatialRelationPayload, - SignInCrossOriginPayload, - BootstrapUserPayload, - SignUpPayload, - SignInPayload, - ProvisionRelationPayload, - SetFieldOrderPayload, - ApplyRlsPayload, - ProvisionDatabaseWithUserPayload, - CreateUserDatabasePayload, - ExtendTokenExpiresPayload, - CreateApiKeyPayload, - RequestCrossOriginTokenPayload, - ProvisionTablePayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - ProvisionBucketPayload, - SendAccountDeletionEmailPayloadSelect, - SignOutPayloadSelect, - AcceptDatabaseTransferPayloadSelect, - CancelDatabaseTransferPayloadSelect, - RejectDatabaseTransferPayloadSelect, - DisconnectAccountPayloadSelect, - RevokeApiKeyPayloadSelect, - RevokeSessionPayloadSelect, - VerifyPasswordPayloadSelect, - VerifyTotpPayloadSelect, - SubmitAppInviteCodePayloadSelect, - SubmitOrgInviteCodePayloadSelect, - CheckPasswordPayloadSelect, - ConfirmDeleteAccountPayloadSelect, - SetPasswordPayloadSelect, - VerifyEmailPayloadSelect, - ConstructBlueprintPayloadSelect, - ProvisionNewUserPayloadSelect, - ResetPasswordPayloadSelect, - ProvisionCheckConstraintPayloadSelect, - ProvisionUniqueConstraintPayloadSelect, - ProvisionFullTextSearchPayloadSelect, - ProvisionIndexPayloadSelect, - CopyTemplateToBlueprintPayloadSelect, - ProvisionSpatialRelationPayloadSelect, - SignInCrossOriginPayloadSelect, - BootstrapUserPayloadSelect, - SignUpPayloadSelect, - SignInPayloadSelect, - ProvisionRelationPayloadSelect, - SetFieldOrderPayloadSelect, - ApplyRlsPayloadSelect, - ProvisionDatabaseWithUserPayloadSelect, - CreateUserDatabasePayloadSelect, - ExtendTokenExpiresPayloadSelect, - CreateApiKeyPayloadSelect, - RequestCrossOriginTokenPayloadSelect, - ProvisionTablePayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - ProvisionBucketPayloadSelect, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface SendAccountDeletionEmailVariables { - input: SendAccountDeletionEmailInput; -} -export interface SignOutVariables { - input: SignOutInput; -} -export interface AcceptDatabaseTransferVariables { - input: AcceptDatabaseTransferInput; -} -export interface CancelDatabaseTransferVariables { - input: CancelDatabaseTransferInput; -} -export interface RejectDatabaseTransferVariables { - input: RejectDatabaseTransferInput; -} -export interface DisconnectAccountVariables { - input: DisconnectAccountInput; -} -export interface RevokeApiKeyVariables { - input: RevokeApiKeyInput; -} -export interface RevokeSessionVariables { - input: RevokeSessionInput; -} -export interface VerifyPasswordVariables { - input: VerifyPasswordInput; -} -export interface VerifyTotpVariables { - input: VerifyTotpInput; -} -export interface SubmitAppInviteCodeVariables { - input: SubmitAppInviteCodeInput; -} -export interface SubmitOrgInviteCodeVariables { - input: SubmitOrgInviteCodeInput; -} -export interface CheckPasswordVariables { - input: CheckPasswordInput; -} -export interface ConfirmDeleteAccountVariables { - input: ConfirmDeleteAccountInput; -} -export interface SetPasswordVariables { - input: SetPasswordInput; -} -export interface VerifyEmailVariables { - input: VerifyEmailInput; -} -/** - * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - */ -export interface ConstructBlueprintVariables { - input: ConstructBlueprintInput; -} -export interface ProvisionNewUserVariables { - input: ProvisionNewUserInput; -} -export interface ResetPasswordVariables { - input: ResetPasswordInput; -} -/** - * Variables for provisionCheckConstraint - * Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - */ -export interface ProvisionCheckConstraintVariables { - input: ProvisionCheckConstraintInput; -} -/** - * Variables for provisionUniqueConstraint - * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - */ -export interface ProvisionUniqueConstraintVariables { - input: ProvisionUniqueConstraintInput; -} -/** - * Variables for provisionFullTextSearch - * Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - */ -export interface ProvisionFullTextSearchVariables { - input: ProvisionFullTextSearchInput; -} -/** - * Variables for provisionIndex - * Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - */ -export interface ProvisionIndexVariables { - input: ProvisionIndexInput; -} -/** - * Variables for copyTemplateToBlueprint - * 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. - */ -export interface CopyTemplateToBlueprintVariables { - input: CopyTemplateToBlueprintInput; -} -/** - * Variables for provisionSpatialRelation - * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - */ -export interface ProvisionSpatialRelationVariables { - input: ProvisionSpatialRelationInput; -} -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} -export interface SignUpVariables { - input: SignUpInput; -} -export interface SignInVariables { - input: SignInInput; -} -/** - * Variables for provisionRelation - * Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - */ -export interface ProvisionRelationVariables { - input: ProvisionRelationInput; -} -export interface SetFieldOrderVariables { - input: SetFieldOrderInput; -} -export interface ApplyRlsVariables { - input: ApplyRlsInput; -} -export interface ProvisionDatabaseWithUserVariables { - input: ProvisionDatabaseWithUserInput; -} -/** - * 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) - -Returns the database_id UUID of the newly created database. - -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 - */ -export interface CreateUserDatabaseVariables { - input: CreateUserDatabaseInput; -} -export interface ExtendTokenExpiresVariables { - input: ExtendTokenExpiresInput; -} -export interface CreateApiKeyVariables { - input: CreateApiKeyInput; -} -export interface RequestCrossOriginTokenVariables { - input: RequestCrossOriginTokenInput; -} -/** - * Variables for provisionTable - * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - */ -export interface ProvisionTableVariables { - input: ProvisionTableInput; -} -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -/** - * 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 { - sendAccountDeletionEmail: ( - args: SendAccountDeletionEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendAccountDeletionEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendAccountDeletionEmail', - fieldName: 'sendAccountDeletionEmail', - ...buildCustomDocument( - 'mutation', - 'SendAccountDeletionEmail', - 'sendAccountDeletionEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendAccountDeletionEmailInput!', - }, - ], - connectionFieldsMap, - 'SendAccountDeletionEmailPayload' - ), - }), - signOut: ( - args: SignOutVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signOut: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignOut', - fieldName: 'signOut', - ...buildCustomDocument( - 'mutation', - 'SignOut', - 'signOut', - options.select, - args, - [ - { - name: 'input', - type: 'SignOutInput!', - }, - ], - connectionFieldsMap, - 'SignOutPayload' - ), - }), - acceptDatabaseTransfer: ( - args: AcceptDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - acceptDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AcceptDatabaseTransfer', - fieldName: 'acceptDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'AcceptDatabaseTransfer', - 'acceptDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'AcceptDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'AcceptDatabaseTransferPayload' - ), - }), - cancelDatabaseTransfer: ( - args: CancelDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - cancelDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CancelDatabaseTransfer', - fieldName: 'cancelDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'CancelDatabaseTransfer', - 'cancelDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'CancelDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'CancelDatabaseTransferPayload' - ), - }), - rejectDatabaseTransfer: ( - args: RejectDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - rejectDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RejectDatabaseTransfer', - fieldName: 'rejectDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'RejectDatabaseTransfer', - 'rejectDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'RejectDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'RejectDatabaseTransferPayload' - ), - }), - disconnectAccount: ( - args: DisconnectAccountVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - disconnectAccount: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'DisconnectAccount', - fieldName: 'disconnectAccount', - ...buildCustomDocument( - 'mutation', - 'DisconnectAccount', - 'disconnectAccount', - options.select, - args, - [ - { - name: 'input', - type: 'DisconnectAccountInput!', - }, - ], - connectionFieldsMap, - 'DisconnectAccountPayload' - ), - }), - revokeApiKey: ( - args: RevokeApiKeyVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeApiKey: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeApiKey', - fieldName: 'revokeApiKey', - ...buildCustomDocument( - 'mutation', - 'RevokeApiKey', - 'revokeApiKey', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeApiKeyInput!', - }, - ], - connectionFieldsMap, - 'RevokeApiKeyPayload' - ), - }), - revokeSession: ( - args: RevokeSessionVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeSession: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeSession', - fieldName: 'revokeSession', - ...buildCustomDocument( - 'mutation', - 'RevokeSession', - 'revokeSession', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeSessionInput!', - }, - ], - connectionFieldsMap, - 'RevokeSessionPayload' - ), - }), - verifyPassword: ( - args: VerifyPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyPassword', - fieldName: 'verifyPassword', - ...buildCustomDocument( - 'mutation', - 'VerifyPassword', - 'verifyPassword', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyPasswordInput!', - }, - ], - connectionFieldsMap, - 'VerifyPasswordPayload' - ), - }), - verifyTotp: ( - args: VerifyTotpVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyTotp: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyTotp', - fieldName: 'verifyTotp', - ...buildCustomDocument( - 'mutation', - 'VerifyTotp', - 'verifyTotp', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyTotpInput!', - }, - ], - connectionFieldsMap, - 'VerifyTotpPayload' - ), - }), - submitAppInviteCode: ( - args: SubmitAppInviteCodeVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - submitAppInviteCode: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SubmitAppInviteCode', - fieldName: 'submitAppInviteCode', - ...buildCustomDocument( - 'mutation', - 'SubmitAppInviteCode', - 'submitAppInviteCode', - options.select, - args, - [ - { - name: 'input', - type: 'SubmitAppInviteCodeInput!', - }, - ], - connectionFieldsMap, - 'SubmitAppInviteCodePayload' - ), - }), - submitOrgInviteCode: ( - args: SubmitOrgInviteCodeVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - submitOrgInviteCode: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SubmitOrgInviteCode', - fieldName: 'submitOrgInviteCode', - ...buildCustomDocument( - 'mutation', - 'SubmitOrgInviteCode', - 'submitOrgInviteCode', - options.select, - args, - [ - { - name: 'input', - type: 'SubmitOrgInviteCodeInput!', - }, - ], - connectionFieldsMap, - 'SubmitOrgInviteCodePayload' - ), - }), - checkPassword: ( - args: CheckPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - checkPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CheckPassword', - fieldName: 'checkPassword', - ...buildCustomDocument( - 'mutation', - 'CheckPassword', - 'checkPassword', - options.select, - args, - [ - { - name: 'input', - type: 'CheckPasswordInput!', - }, - ], - connectionFieldsMap, - 'CheckPasswordPayload' - ), - }), - confirmDeleteAccount: ( - args: ConfirmDeleteAccountVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmDeleteAccount: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmDeleteAccount', - fieldName: 'confirmDeleteAccount', - ...buildCustomDocument( - 'mutation', - 'ConfirmDeleteAccount', - 'confirmDeleteAccount', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmDeleteAccountInput!', - }, - ], - connectionFieldsMap, - 'ConfirmDeleteAccountPayload' - ), - }), - setPassword: ( - args: SetPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetPassword', - fieldName: 'setPassword', - ...buildCustomDocument( - 'mutation', - 'SetPassword', - 'setPassword', - options.select, - args, - [ - { - name: 'input', - type: 'SetPasswordInput!', - }, - ], - connectionFieldsMap, - 'SetPasswordPayload' - ), - }), - verifyEmail: ( - args: VerifyEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyEmail', - fieldName: 'verifyEmail', - ...buildCustomDocument( - 'mutation', - 'VerifyEmail', - 'verifyEmail', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyEmailInput!', - }, - ], - connectionFieldsMap, - 'VerifyEmailPayload' - ), - }), - constructBlueprint: ( - args: ConstructBlueprintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - constructBlueprint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConstructBlueprint', - fieldName: 'constructBlueprint', - ...buildCustomDocument( - 'mutation', - 'ConstructBlueprint', - 'constructBlueprint', - options.select, - args, - [ - { - name: 'input', - type: 'ConstructBlueprintInput!', - }, - ], - connectionFieldsMap, - 'ConstructBlueprintPayload' - ), - }), - provisionNewUser: ( - args: ProvisionNewUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionNewUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionNewUser', - fieldName: 'provisionNewUser', - ...buildCustomDocument( - 'mutation', - 'ProvisionNewUser', - 'provisionNewUser', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionNewUserInput!', - }, - ], - connectionFieldsMap, - 'ProvisionNewUserPayload' - ), - }), - resetPassword: ( - args: ResetPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resetPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ResetPassword', - fieldName: 'resetPassword', - ...buildCustomDocument( - 'mutation', - 'ResetPassword', - 'resetPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ResetPasswordInput!', - }, - ], - connectionFieldsMap, - 'ResetPasswordPayload' - ), - }), - provisionCheckConstraint: ( - args: ProvisionCheckConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionCheckConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionCheckConstraint', - fieldName: 'provisionCheckConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionCheckConstraint', - 'provisionCheckConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionCheckConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionCheckConstraintPayload' - ), - }), - provisionUniqueConstraint: ( - args: ProvisionUniqueConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionUniqueConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionUniqueConstraint', - fieldName: 'provisionUniqueConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionUniqueConstraint', - 'provisionUniqueConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionUniqueConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionUniqueConstraintPayload' - ), - }), - provisionFullTextSearch: ( - args: ProvisionFullTextSearchVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionFullTextSearch: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionFullTextSearch', - fieldName: 'provisionFullTextSearch', - ...buildCustomDocument( - 'mutation', - 'ProvisionFullTextSearch', - 'provisionFullTextSearch', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionFullTextSearchInput!', - }, - ], - connectionFieldsMap, - 'ProvisionFullTextSearchPayload' - ), - }), - provisionIndex: ( - args: ProvisionIndexVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionIndex: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionIndex', - fieldName: 'provisionIndex', - ...buildCustomDocument( - 'mutation', - 'ProvisionIndex', - 'provisionIndex', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionIndexInput!', - }, - ], - connectionFieldsMap, - 'ProvisionIndexPayload' - ), - }), - copyTemplateToBlueprint: ( - args: CopyTemplateToBlueprintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - copyTemplateToBlueprint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CopyTemplateToBlueprint', - fieldName: 'copyTemplateToBlueprint', - ...buildCustomDocument( - 'mutation', - 'CopyTemplateToBlueprint', - 'copyTemplateToBlueprint', - options.select, - args, - [ - { - name: 'input', - type: 'CopyTemplateToBlueprintInput!', - }, - ], - connectionFieldsMap, - 'CopyTemplateToBlueprintPayload' - ), - }), - provisionSpatialRelation: ( - args: ProvisionSpatialRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionSpatialRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionSpatialRelation', - fieldName: 'provisionSpatialRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionSpatialRelation', - 'provisionSpatialRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionSpatialRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionSpatialRelationPayload' - ), - }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), - bootstrapUser: ( - args: BootstrapUserVariables, - options: { - 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' - ), - }), - signUp: ( - args: SignUpVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signUp: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', - ...buildCustomDocument( - 'mutation', - 'SignUp', - 'signUp', - options.select, - args, - [ - { - name: 'input', - type: 'SignUpInput!', - }, - ], - connectionFieldsMap, - 'SignUpPayload' - ), - }), - signIn: ( - args: SignInVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signIn: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', - ...buildCustomDocument( - 'mutation', - 'SignIn', - 'signIn', - options.select, - args, - [ - { - name: 'input', - type: 'SignInInput!', - }, - ], - connectionFieldsMap, - 'SignInPayload' - ), - }), - provisionRelation: ( - args: ProvisionRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionRelation', - fieldName: 'provisionRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionRelation', - 'provisionRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionRelationPayload' - ), - }), - setFieldOrder: ( - args: SetFieldOrderVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setFieldOrder: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetFieldOrder', - fieldName: 'setFieldOrder', - ...buildCustomDocument( - 'mutation', - 'SetFieldOrder', - 'setFieldOrder', - options.select, - args, - [ - { - name: 'input', - type: 'SetFieldOrderInput!', - }, - ], - connectionFieldsMap, - 'SetFieldOrderPayload' - ), - }), - applyRls: ( - args: ApplyRlsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - applyRls: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ApplyRls', - fieldName: 'applyRls', - ...buildCustomDocument( - 'mutation', - 'ApplyRls', - 'applyRls', - options.select, - args, - [ - { - name: 'input', - type: 'ApplyRlsInput!', - }, - ], - connectionFieldsMap, - 'ApplyRlsPayload' - ), - }), - 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' - ), - }), - createUserDatabase: ( - args: CreateUserDatabaseVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createUserDatabase: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateUserDatabase', - fieldName: 'createUserDatabase', - ...buildCustomDocument( - 'mutation', - 'CreateUserDatabase', - 'createUserDatabase', - options.select, - args, - [ - { - name: 'input', - type: 'CreateUserDatabaseInput!', - }, - ], - connectionFieldsMap, - 'CreateUserDatabasePayload' - ), - }), - extendTokenExpires: ( - args: ExtendTokenExpiresVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - extendTokenExpires: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ExtendTokenExpires', - fieldName: 'extendTokenExpires', - ...buildCustomDocument( - 'mutation', - 'ExtendTokenExpires', - 'extendTokenExpires', - options.select, - args, - [ - { - name: 'input', - type: 'ExtendTokenExpiresInput!', - }, - ], - connectionFieldsMap, - 'ExtendTokenExpiresPayload' - ), - }), - createApiKey: ( - args: CreateApiKeyVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createApiKey: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateApiKey', - fieldName: 'createApiKey', - ...buildCustomDocument( - 'mutation', - 'CreateApiKey', - 'createApiKey', - options.select, - args, - [ - { - name: 'input', - type: 'CreateApiKeyInput!', - }, - ], - connectionFieldsMap, - 'CreateApiKeyPayload' - ), - }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', - ...buildCustomDocument( - 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', - options.select, - args, - [ - { - name: 'input', - type: 'RequestCrossOriginTokenInput!', - }, - ], - connectionFieldsMap, - 'RequestCrossOriginTokenPayload' - ), - }), - provisionTable: ( - args: ProvisionTableVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionTable: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', - ...buildCustomDocument( - 'mutation', - 'ProvisionTable', - 'provisionTable', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionTableInput!', - }, - ], - connectionFieldsMap, - 'ProvisionTablePayload' - ), - }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - 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/public/orm/query/index.ts b/sdk/constructive-react/src/public/orm/query/index.ts deleted file mode 100644 index 52b0724d6e..0000000000 --- a/sdk/constructive-react/src/public/orm/query/index.ts +++ /dev/null @@ -1,615 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { - User, - UserSelect, - AppPermissionConnection, - OrgPermissionConnection, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface RequireStepUpVariables { - stepUpType?: string; -} -export interface AppPermissionsGetPaddedMaskVariables { - mask?: string; -} -export interface OrgPermissionsGetPaddedMaskVariables { - mask?: string; -} -export interface ApplyRegistryDefaultsVariables { - nodeType?: string; - data?: unknown; -} -/** - * Variables for resolveBlueprintField - * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - */ -export interface ResolveBlueprintFieldVariables { - databaseId?: string; - tableId?: string; - fieldName?: string; -} -/** - * Variables for resolveBlueprintTable - * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - */ -export interface ResolveBlueprintTableVariables { - databaseId?: string; - tableName?: string; - schemaName?: string; - tableMap?: unknown; - defaultSchemaId?: string; -} -export interface OrgIsManagerOfVariables { - pEntityId?: string; - pManagerId?: string; - pUserId?: string; - pMaxDepth?: number; -} -export interface AppPermissionsGetMaskVariables { - ids?: string[]; -} -export interface OrgPermissionsGetMaskVariables { - ids?: string[]; -} -export interface AppPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface AppPermissionsGetByMaskVariables { - mask?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface OrgPermissionsGetByMaskVariables { - mask?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - currentUserId: (options?: { select?: Record }) => - new QueryBuilder<{ - currentUserId: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUserId', - fieldName: 'currentUserId', - ...buildCustomDocument( - 'query', - 'CurrentUserId', - 'currentUserId', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - currentUserAgent: (options?: { select?: Record }) => - new QueryBuilder<{ - currentUserAgent: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUserAgent', - fieldName: 'currentUserAgent', - ...buildCustomDocument( - 'query', - 'CurrentUserAgent', - 'currentUserAgent', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - currentIpAddress: (options?: { select?: Record }) => - new QueryBuilder<{ - currentIpAddress: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentIpAddress', - fieldName: 'currentIpAddress', - ...buildCustomDocument( - 'query', - 'CurrentIpAddress', - 'currentIpAddress', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - requireStepUp: ( - args: RequireStepUpVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - requireStepUp: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'RequireStepUp', - fieldName: 'requireStepUp', - ...buildCustomDocument( - 'query', - 'RequireStepUp', - 'requireStepUp', - options?.select, - args, - [ - { - name: 'stepUpType', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetPaddedMask: ( - args: AppPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetPaddedMask', - fieldName: 'appPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetPaddedMask', - 'appPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetPaddedMask: ( - args: OrgPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetPaddedMask', - fieldName: 'orgPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetPaddedMask', - 'orgPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - applyRegistryDefaults: ( - args: ApplyRegistryDefaultsVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - applyRegistryDefaults: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApplyRegistryDefaults', - fieldName: 'applyRegistryDefaults', - ...buildCustomDocument( - 'query', - 'ApplyRegistryDefaults', - 'applyRegistryDefaults', - options?.select, - args, - [ - { - name: 'nodeType', - type: 'String', - }, - { - name: 'data', - type: 'JSON', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintField: ( - args: ResolveBlueprintFieldVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintField: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintField', - fieldName: 'resolveBlueprintField', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintField', - 'resolveBlueprintField', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'tableId', - type: 'UUID', - }, - { - name: 'fieldName', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintTable: ( - args: ResolveBlueprintTableVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintTable: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintTable', - fieldName: 'resolveBlueprintTable', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintTable', - 'resolveBlueprintTable', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'tableName', - type: 'String', - }, - { - name: 'schemaName', - type: 'String', - }, - { - name: 'tableMap', - type: 'JSON', - }, - { - name: 'defaultSchemaId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgIsManagerOf: ( - args: OrgIsManagerOfVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgIsManagerOf: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'OrgIsManagerOf', - fieldName: 'orgIsManagerOf', - ...buildCustomDocument( - 'query', - 'OrgIsManagerOf', - 'orgIsManagerOf', - options?.select, - args, - [ - { - name: 'pEntityId', - type: 'UUID', - }, - { - name: 'pManagerId', - type: 'UUID', - }, - { - name: 'pUserId', - type: 'UUID', - }, - { - name: 'pMaxDepth', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMask: ( - args: AppPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMask', - fieldName: 'appPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMask', - 'appPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMask: ( - args: OrgPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMask', - fieldName: 'orgPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMask', - 'orgPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMaskByNames: ( - args: AppPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMaskByNames', - fieldName: 'appPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMaskByNames', - 'appPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMaskByNames: ( - args: OrgPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMaskByNames', - fieldName: 'orgPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMaskByNames', - 'orgPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - currentUser: ( - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - currentUser: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUser', - fieldName: 'currentUser', - ...buildCustomDocument( - 'query', - 'CurrentUser', - 'currentUser', - options.select, - undefined, - [], - connectionFieldsMap, - 'User' - ), - }), - }; -} diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts deleted file mode 100644 index 1521ace7b9..0000000000 --- a/sdk/constructive-react/src/public/schema-types.ts +++ /dev/null @@ -1,26194 +0,0 @@ -/** - * GraphQL schema types for custom operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import type { - AgentModule, - Api, - ApiModule, - ApiSchema, - ApiSetting, - App, - AppAdminGrant, - AppClaimedInvite, - AppGrant, - AppInvite, - AppLimit, - AppLimitCap, - AppLimitCapsDefault, - AppLimitCredit, - AppLimitCreditCode, - AppLimitCreditCodeItem, - AppLimitCreditRedemption, - AppLimitDefault, - AppLimitEvent, - AppLimitWarning, - AppMembership, - AppMembershipDefault, - AppOwnerGrant, - AppPermission, - AppPermissionDefault, - AstMigration, - AuditLogAuth, - BillingModule, - BillingProviderModule, - Blueprint, - BlueprintConstruction, - BlueprintTemplate, - CheckConstraint, - ComputeLogModule, - ConfigSecretsOrgModule, - ConfigSecretsUserModule, - ConnectedAccountsModule, - CorsSetting, - CryptoAddress, - CryptoAddressesModule, - CryptoAuthModule, - Database, - DatabaseProvisionModule, - DatabaseSetting, - DatabaseTransfer, - DbUsageModule, - DefaultIdsModule, - DefaultPrivilege, - DenormalizedTableField, - DevicesModule, - Domain, - Email, - EmailsModule, - EmbeddingChunk, - EntityTypeProvision, - Enum, - EventsModule, - Field, - ForeignKeyConstraint, - FullTextSearch, - Function, - FunctionModule, - GraphModule, - HierarchyModule, - IdentityProvider, - IdentityProvidersModule, - Index, - InferenceLogModule, - InvitesModule, - LimitsModule, - MembershipType, - MembershipTypesModule, - MembershipsModule, - MerkleStoreModule, - MigrateFile, - NamespaceModule, - NodeTypeRegistry, - NotificationsModule, - OrgAdminGrant, - OrgChartEdge, - OrgChartEdgeGrant, - OrgClaimedInvite, - OrgGetManagersRecord, - OrgGetSubordinatesRecord, - OrgGrant, - OrgInvite, - OrgLimit, - OrgLimitAggregate, - OrgLimitCap, - OrgLimitCapsDefault, - OrgLimitCredit, - OrgLimitDefault, - OrgLimitEvent, - OrgLimitWarning, - OrgMember, - OrgMemberProfile, - OrgMembership, - OrgMembershipDefault, - OrgMembershipSetting, - OrgOwnerGrant, - OrgPermission, - OrgPermissionDefault, - Partition, - PermissionsModule, - PhoneNumber, - PhoneNumbersModule, - PlansModule, - Policy, - PrimaryKeyConstraint, - ProfilesModule, - PubkeySetting, - RateLimitMetersModule, - RateLimitsModule, - RealtimeModule, - RelationProvision, - RlsModule, - RlsSetting, - RoleType, - Schema, - SchemaGrant, - SecureTableProvision, - SessionSecretsModule, - SessionsModule, - Site, - SiteMetadatum, - SiteModule, - SiteTheme, - SpatialRelation, - SqlAction, - StorageLogModule, - StorageModule, - Table, - TableGrant, - TransferLogModule, - Trigger, - TriggerFunction, - UniqueConstraint, - User, - UserAuthModule, - UserConnectedAccount, - UserStateModule, - UsersModule, - View, - ViewGrant, - ViewRule, - ViewTable, - WebauthnAuthModule, - WebauthnCredential, - WebauthnCredentialsModule, - WebauthnSetting, - BigFloatFilter, - BigIntFilter, - BitStringFilter, - BooleanFilter, - DateFilter, - DatetimeFilter, - FloatFilter, - FullTextFilter, - IntFilter, - IntListFilter, - InternetAddressFilter, - JSONFilter, - StringFilter, - StringListFilter, - UUIDFilter, - UUIDListFilter, - VectorFilter, -} from './types'; -export type Base64EncodedBinary = unknown; -export type ConstructiveInternalTypeAttachment = unknown; -export type ConstructiveInternalTypeEmail = unknown; -export type ConstructiveInternalTypeHostname = unknown; -export type ConstructiveInternalTypeImage = unknown; -export type ConstructiveInternalTypeOrigin = unknown; -export type ConstructiveInternalTypeUpload = unknown; -export type ConstructiveInternalTypeUrl = unknown; -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; -/** Methods to use when ordering `CheckConstraint`. */ -export type CheckConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'EXPR_ASC' - | 'EXPR_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `SpatialRelation`. */ -export type SpatialRelationOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'OPERATOR_ASC' - | 'OPERATOR_DESC' - | 'PARAM_NAME_ASC' - | 'PARAM_NAME_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Field`. */ -export type FieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'API_REQUIRED_ASC' - | 'API_REQUIRED_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_ORDER_ASC' - | 'FIELD_ORDER_DESC' - | 'REGEXP_ASC' - | 'REGEXP_DESC' - | 'CHK_ASC' - | 'CHK_DESC' - | 'CHK_EXPR_ASC' - | 'CHK_EXPR_DESC' - | 'MIN_ASC' - | 'MIN_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `ForeignKeyConstraint`. */ -export type ForeignKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_IDS_ASC' - | 'REF_FIELD_IDS_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'UPDATE_ACTION_ASC' - | 'UPDATE_ACTION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `FullTextSearch`. */ -export type FullTextSearchOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'WEIGHTS_ASC' - | 'WEIGHTS_DESC' - | 'LANGS_ASC' - | 'LANGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Index`. */ -export type IndexOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'INCLUDE_FIELD_IDS_ASC' - | 'INCLUDE_FIELD_IDS_DESC' - | 'ACCESS_METHOD_ASC' - | 'ACCESS_METHOD_DESC' - | 'INDEX_PARAMS_ASC' - | 'INDEX_PARAMS_DESC' - | 'WHERE_CLAUSE_ASC' - | 'WHERE_CLAUSE_DESC' - | 'IS_UNIQUE_ASC' - | 'IS_UNIQUE_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'OP_CLASSES_ASC' - | 'OP_CLASSES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Policy`. */ -export type PolicyOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'PERMISSIVE_ASC' - | 'PERMISSIVE_DESC' - | 'DISABLED_ASC' - | 'DISABLED_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `PrimaryKeyConstraint`. */ -export type PrimaryKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `TableGrant`. */ -export type TableGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Trigger`. */ -export type TriggerOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'FUNCTION_NAME_ASC' - | 'FUNCTION_NAME_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `UniqueConstraint`. */ -export type UniqueConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `ViewTable`. */ -export type ViewTableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'JOIN_ORDER_ASC' - | 'JOIN_ORDER_DESC'; -/** Methods to use when ordering `ViewGrant`. */ -export type ViewGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -/** Methods to use when ordering `ViewRule`. */ -export type ViewRuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC'; -/** Methods to use when ordering `View`. */ -export type ViewOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'VIEW_TYPE_ASC' - | 'VIEW_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FILTER_TYPE_ASC' - | 'FILTER_TYPE_DESC' - | 'FILTER_DATA_ASC' - | 'FILTER_DATA_DESC' - | 'SECURITY_INVOKER_ASC' - | 'SECURITY_INVOKER_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -/** Methods to use when ordering `EmbeddingChunk`. */ -export type EmbeddingChunkOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'EMBEDDING_FIELD_ID_ASC' - | 'EMBEDDING_FIELD_ID_DESC' - | 'CHUNKS_TABLE_ID_ASC' - | 'CHUNKS_TABLE_ID_DESC' - | 'CHUNKS_TABLE_NAME_ASC' - | 'CHUNKS_TABLE_NAME_DESC' - | 'CONTENT_FIELD_NAME_ASC' - | 'CONTENT_FIELD_NAME_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'METRIC_ASC' - | 'METRIC_DESC' - | 'CHUNK_SIZE_ASC' - | 'CHUNK_SIZE_DESC' - | 'CHUNK_OVERLAP_ASC' - | 'CHUNK_OVERLAP_DESC' - | 'CHUNK_STRATEGY_ASC' - | 'CHUNK_STRATEGY_DESC' - | 'METADATA_FIELDS_ASC' - | 'METADATA_FIELDS_DESC' - | 'SEARCH_INDEXES_ASC' - | 'SEARCH_INDEXES_DESC' - | 'ENQUEUE_CHUNKING_JOB_ASC' - | 'ENQUEUE_CHUNKING_JOB_DESC' - | 'CHUNKING_TASK_NAME_ASC' - | 'CHUNKING_TASK_NAME_DESC' - | 'EMBEDDING_MODEL_ASC' - | 'EMBEDDING_MODEL_DESC' - | 'EMBEDDING_PROVIDER_ASC' - | 'EMBEDDING_PROVIDER_DESC' - | 'PARENT_FK_FIELD_ID_ASC' - | 'PARENT_FK_FIELD_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `SecureTableProvision`. */ -export type SecureTableProvisionOrderBy = - | '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' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_DESC'; -/** Methods to use when ordering `RelationProvision`. */ -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'; -/** Methods to use when ordering `SessionSecretsModule`. */ -export type 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'; -/** 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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -/** Methods to use when ordering `RealtimeModule`. */ -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'; -/** Methods to use when ordering `ConfigSecretsOrgModule`. */ -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -/** Methods to use when ordering `Table`. */ -export type TableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'TIMESTAMPS_ASC' - | 'TIMESTAMPS_DESC' - | 'PEOPLESTAMPS_ASC' - | 'PEOPLESTAMPS_DESC' - | 'PLURAL_NAME_ASC' - | 'PLURAL_NAME_DESC' - | 'SINGULAR_NAME_ASC' - | 'SINGULAR_NAME_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'PARTITIONED_ASC' - | 'PARTITIONED_DESC' - | 'PARTITION_STRATEGY_ASC' - | 'PARTITION_STRATEGY_DESC' - | 'PARTITION_KEY_NAMES_ASC' - | 'PARTITION_KEY_NAMES_DESC' - | 'PARTITION_KEY_TYPES_ASC' - | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `SchemaGrant`. */ -export type SchemaGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `DefaultPrivilege`. */ -export type DefaultPrivilegeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'OBJECT_TYPE_ASC' - | 'OBJECT_TYPE_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -/** Methods to use when ordering `Enum`. */ -export type EnumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'VALUES_ASC' - | 'VALUES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -/** Methods to use when ordering `Function`. */ -export type FunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `ApiModule`. */ -export type ApiModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -/** Methods to use when ordering `ApiSchema`. */ -export type ApiSchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC'; -/** Methods to use when ordering `Domain`. */ -export type DomainOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC'; -/** Methods to use when ordering `SiteMetadatum`. */ -export type SiteMetadatumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC'; -/** Methods to use when ordering `SiteModule`. */ -export type SiteModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -/** Methods to use when ordering `SiteTheme`. */ -export type SiteThemeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'THEME_ASC' - | 'THEME_DESC'; -/** Methods to use when ordering `CorsSetting`. */ -export type CorsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MERKLE_STORE_MODULE_ID_ASC' - | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' - | 'EXECUTIONS_TABLE_ID_ASC' - | 'EXECUTIONS_TABLE_ID_DESC' - | 'OUTPUTS_TABLE_ID_ASC' - | 'OUTPUTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_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 `MerkleStoreModule`. */ -export type MerkleStoreModuleOrderBy = - | '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' - | '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_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -/** Methods to use when ordering `Schema`. */ -export type SchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SCHEMA_NAME_ASC' - | 'SCHEMA_NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `TriggerFunction`. */ -export type TriggerFunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Partition`. */ -export type PartitionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'STRATEGY_ASC' - | 'STRATEGY_DESC' - | 'PARTITION_KEY_ID_ASC' - | 'PARTITION_KEY_ID_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'RETENTION_KEEP_TABLE_ASC' - | 'RETENTION_KEEP_TABLE_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'NAMING_PATTERN_ASC' - | 'NAMING_PATTERN_DESC' - | 'IS_PARENTED_ASC' - | 'IS_PARENTED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `DatabaseTransfer`. */ -export type DatabaseTransferOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TARGET_OWNER_ID_ASC' - | 'TARGET_OWNER_ID_DESC' - | 'SOURCE_APPROVED_ASC' - | 'SOURCE_APPROVED_DESC' - | 'TARGET_APPROVED_ASC' - | 'TARGET_APPROVED_DESC' - | 'SOURCE_APPROVED_AT_ASC' - | 'SOURCE_APPROVED_AT_DESC' - | 'TARGET_APPROVED_AT_ASC' - | 'TARGET_APPROVED_AT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'INITIATED_BY_ASC' - | 'INITIATED_BY_DESC' - | 'NOTES_ASC' - | 'NOTES_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -/** Methods to use when ordering `Api`. */ -export type ApiOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC'; -/** Methods to use when ordering `Site`. */ -export type SiteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'FAVICON_ASC' - | 'FAVICON_DESC' - | 'APPLE_TOUCH_ICON_ASC' - | 'APPLE_TOUCH_ICON_DESC' - | 'LOGO_ASC' - | 'LOGO_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC'; -/** Methods to use when ordering `App`. */ -export type AppOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'APP_IMAGE_ASC' - | 'APP_IMAGE_DESC' - | 'APP_STORE_LINK_ASC' - | 'APP_STORE_LINK_DESC' - | 'APP_STORE_ID_ASC' - | 'APP_STORE_ID_DESC' - | 'APP_ID_PREFIX_ASC' - | 'APP_ID_PREFIX_DESC' - | 'PLAY_STORE_LINK_ASC' - | 'PLAY_STORE_LINK_DESC'; -/** Methods to use when ordering `ApiSetting`. */ -export type ApiSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -/** Methods to use when ordering `ConnectedAccountsModule`. */ -export type ConnectedAccountsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -/** Methods to use when ordering `CryptoAddressesModule`. */ -export type CryptoAddressesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC'; -/** Methods to use when ordering `CryptoAuthModule`. */ -export type CryptoAuthModuleOrderBy = - | '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' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'ADDRESSES_TABLE_ID_ASC' - | 'ADDRESSES_TABLE_ID_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_DESC' - | 'SIGN_IN_RECORD_FAILURE_ASC' - | 'SIGN_IN_RECORD_FAILURE_DESC' - | 'SIGN_UP_WITH_KEY_ASC' - | 'SIGN_UP_WITH_KEY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_ASC' - | 'SIGN_IN_WITH_CHALLENGE_DESC'; -/** Methods to use when ordering `DefaultIdsModule`. */ -export type DefaultIdsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `DenormalizedTableField`. */ -export type DenormalizedTableFieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'SET_IDS_ASC' - | 'SET_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'REF_IDS_ASC' - | 'REF_IDS_DESC' - | 'USE_UPDATES_ASC' - | 'USE_UPDATES_DESC' - | 'UPDATE_DEFAULTS_ASC' - | 'UPDATE_DEFAULTS_DESC' - | 'FUNC_NAME_ASC' - | 'FUNC_NAME_DESC' - | 'FUNC_ORDER_ASC' - | 'FUNC_ORDER_DESC'; -/** Methods to use when ordering `EmailsModule`. */ -export type EmailsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_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' - | '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'; -/** Methods to use when ordering `InvitesModule`. */ -export type InvitesModuleOrderBy = - | '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' - | '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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; -/** Methods to use when ordering `EventsModule`. */ -export type EventsModuleOrderBy = - | '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' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' - | 'EVENTS_TABLE_NAME_ASC' - | 'EVENTS_TABLE_NAME_DESC' - | 'EVENT_AGGREGATES_TABLE_ID_ASC' - | 'EVENT_AGGREGATES_TABLE_ID_DESC' - | 'EVENT_AGGREGATES_TABLE_NAME_ASC' - | 'EVENT_AGGREGATES_TABLE_NAME_DESC' - | 'EVENT_TYPES_TABLE_ID_ASC' - | 'EVENT_TYPES_TABLE_ID_DESC' - | 'EVENT_TYPES_TABLE_NAME_ASC' - | 'EVENT_TYPES_TABLE_NAME_DESC' - | 'LEVELS_TABLE_ID_ASC' - | 'LEVELS_TABLE_ID_DESC' - | 'LEVELS_TABLE_NAME_ASC' - | 'LEVELS_TABLE_NAME_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' - | 'LEVEL_GRANTS_TABLE_ID_ASC' - | 'LEVEL_GRANTS_TABLE_ID_DESC' - | 'LEVEL_GRANTS_TABLE_NAME_ASC' - | 'LEVEL_GRANTS_TABLE_NAME_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' - | 'RECORD_EVENT_ASC' - | 'RECORD_EVENT_DESC' - | 'REMOVE_EVENT_ASC' - | 'REMOVE_EVENT_DESC' - | 'TG_EVENT_ASC' - | 'TG_EVENT_DESC' - | 'TG_EVENT_TOGGLE_ASC' - | 'TG_EVENT_TOGGLE_DESC' - | 'TG_EVENT_TOGGLE_BOOL_ASC' - | 'TG_EVENT_TOGGLE_BOOL_DESC' - | 'TG_EVENT_BOOL_ASC' - | 'TG_EVENT_BOOL_DESC' - | 'UPSERT_AGGREGATE_ASC' - | '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' - | 'LEVEL_ACHIEVED_DESC' - | 'TG_CHECK_ACHIEVEMENTS_ASC' - | 'TG_CHECK_ACHIEVEMENTS_DESC' - | 'GRANT_ACHIEVEMENT_ASC' - | 'GRANT_ACHIEVEMENT_DESC' - | 'TG_ACHIEVEMENT_REWARD_ASC' - | 'TG_ACHIEVEMENT_REWARD_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -/** Methods to use when ordering `LimitsModule`. */ -export type LimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -/** Methods to use when ordering `MembershipTypesModule`. */ -export type MembershipTypesModuleOrderBy = - | '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 `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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -/** Methods to use when ordering `PermissionsModule`. */ -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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -/** Methods to use when ordering `PhoneNumbersModule`. */ -export type PhoneNumbersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -/** Methods to use when ordering `ProfilesModule`. */ -export type ProfilesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_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' - | 'PREFIX_ASC' - | 'PREFIX_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 `SessionsModule`. */ -export type SessionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUTH_SETTINGS_TABLE_ID_ASC' - | 'AUTH_SETTINGS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_DEFAULT_EXPIRATION_ASC' - | 'SESSIONS_DEFAULT_EXPIRATION_DESC' - | 'SESSIONS_TABLE_ASC' - | 'SESSIONS_TABLE_DESC' - | 'SESSION_CREDENTIALS_TABLE_ASC' - | 'SESSION_CREDENTIALS_TABLE_DESC' - | 'AUTH_SETTINGS_TABLE_ASC' - | 'AUTH_SETTINGS_TABLE_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'; -/** Methods to use when ordering `UsersModule`. */ -export type UsersModuleOrderBy = - | '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' - | 'TYPE_TABLE_ID_ASC' - | 'TYPE_TABLE_ID_DESC' - | 'TYPE_TABLE_NAME_ASC' - | 'TYPE_TABLE_NAME_DESC'; -/** Methods to use when ordering `BlueprintTemplate`. */ -export type BlueprintTemplateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'VERSION_ASC' - | 'VERSION_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'VISIBILITY_ASC' - | 'VISIBILITY_DESC' - | 'CATEGORIES_ASC' - | 'CATEGORIES_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DEFINITION_SCHEMA_VERSION_ASC' - | 'DEFINITION_SCHEMA_VERSION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'COMPLEXITY_ASC' - | 'COMPLEXITY_DESC' - | 'COPY_COUNT_ASC' - | 'COPY_COUNT_DESC' - | 'FORK_COUNT_ASC' - | 'FORK_COUNT_DESC' - | 'FORKED_FROM_ID_ASC' - | 'FORKED_FROM_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Blueprint`. */ -export type BlueprintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'TEMPLATE_ID_ASC' - | 'TEMPLATE_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `BlueprintConstruction`. */ -export type BlueprintConstructionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'BLUEPRINT_ID_ASC' - | 'BLUEPRINT_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_DETAILS_ASC' - | 'ERROR_DETAILS_DESC' - | 'TABLE_MAP_ASC' - | 'TABLE_MAP_DESC' - | 'CONSTRUCTED_DEFINITION_ASC' - | 'CONSTRUCTED_DEFINITION_DESC' - | 'CONSTRUCTED_AT_ASC' - | 'CONSTRUCTED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `StorageModule`. */ -export type StorageModuleOrderBy = - | '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' - | 'BUCKETS_TABLE_ID_ASC' - | 'BUCKETS_TABLE_ID_DESC' - | 'FILES_TABLE_ID_ASC' - | 'FILES_TABLE_ID_DESC' - | 'BUCKETS_TABLE_NAME_ASC' - | 'BUCKETS_TABLE_NAME_DESC' - | 'FILES_TABLE_NAME_ASC' - | 'FILES_TABLE_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENDPOINT_ASC' - | 'ENDPOINT_DESC' - | 'PUBLIC_URL_PREFIX_ASC' - | 'PUBLIC_URL_PREFIX_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC' - | 'RESTRICT_READS_ASC' - | 'RESTRICT_READS_DESC' - | 'HAS_PATH_SHARES_ASC' - | 'HAS_PATH_SHARES_DESC' - | 'PATH_SHARES_TABLE_ID_ASC' - | 'PATH_SHARES_TABLE_ID_DESC' - | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' - | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DEFAULT_MAX_FILE_SIZE_ASC' - | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'MAX_FILENAME_LENGTH_ASC' - | 'MAX_FILENAME_LENGTH_DESC' - | 'CACHE_TTL_SECONDS_ASC' - | 'CACHE_TTL_SECONDS_DESC' - | 'MAX_BULK_FILES_ASC' - | 'MAX_BULK_FILES_DESC' - | 'MAX_BULK_TOTAL_SIZE_ASC' - | 'MAX_BULK_TOTAL_SIZE_DESC' - | 'HAS_VERSIONING_ASC' - | 'HAS_VERSIONING_DESC' - | 'HAS_CONTENT_HASH_ASC' - | 'HAS_CONTENT_HASH_DESC' - | 'HAS_CUSTOM_KEYS_ASC' - | 'HAS_CUSTOM_KEYS_DESC' - | 'HAS_AUDIT_LOG_ASC' - | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' - | 'CONFIRM_UPLOAD_DELAY_ASC' - | 'CONFIRM_UPLOAD_DELAY_DESC' - | 'FILE_EVENTS_TABLE_ID_ASC' - | 'FILE_EVENTS_TABLE_ID_DESC'; -/** Methods to use when ordering `EntityTypeProvision`. */ -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | '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_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; -/** Methods to use when ordering `WebauthnCredentialsModule`. */ -export type WebauthnCredentialsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_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 `NotificationsModule`. */ -export type NotificationsModuleOrderBy = - | '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' - | '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' - | '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'; -/** Methods to use when ordering `InferenceLogModule`. */ -export type InferenceLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `ComputeLogModule`. */ -export type ComputeLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `TransferLogModule`. */ -export type TransferLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `StorageLogModule`. */ -export type StorageLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `DbUsageModule`. */ -export type DbUsageModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `AgentModule`. */ -export type AgentModuleOrderBy = - | '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' - | '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' - | 'KNOWLEDGE_TABLE_ID_ASC' - | 'KNOWLEDGE_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' - | 'KNOWLEDGE_TABLE_NAME_ASC' - | 'KNOWLEDGE_TABLE_NAME_DESC' - | 'HAS_KNOWLEDGE_ASC' - | 'HAS_KNOWLEDGE_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'KNOWLEDGE_CONFIG_ASC' - | 'KNOWLEDGE_CONFIG_DESC' - | 'KNOWLEDGE_POLICIES_ASC' - | 'KNOWLEDGE_POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -/** Methods to use when ordering `NamespaceModule`. */ -export type NamespaceModuleOrderBy = - | '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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -/** Methods to use when ordering `FunctionModule`. */ -export type FunctionModuleOrderBy = - | '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' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_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 `Database`. */ -export type DatabaseOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SCHEMA_HASH_ASC' - | 'SCHEMA_HASH_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppAdminGrant`. */ -export type AppAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppOwnerGrant`. */ -export type AppOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppGrant`. */ -export type AppGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgMembership`. */ -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -/** Methods to use when ordering `OrgMember`. */ -export type OrgMemberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `OrgAdminGrant`. */ -export type OrgAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgOwnerGrant`. */ -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgMemberProfile`. */ -export type OrgMemberProfileOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -/** Methods to use when ordering `OrgGrant`. */ -export type OrgGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgChartEdge`. */ -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -/** Methods to use when ordering `OrgChartEdgeGrant`. */ -export type OrgChartEdgeGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -/** Methods to use when ordering `OrgPermissionDefault`. */ -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `AppLimit`. */ -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -/** Methods to use when ordering `AppLimitCredit`. */ -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `AppLimitCreditCodeItem`. */ -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -/** Methods to use when ordering `AppLimitCreditRedemption`. */ -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `OrgLimit`. */ -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -/** Methods to use when ordering `OrgLimitCredit`. */ -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `OrgLimitAggregate`. */ -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -/** Methods to use when ordering `OrgLimitWarning`. */ -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `Email`. */ -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `PhoneNumber`. */ -export type PhoneNumberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `CryptoAddress`. */ -export type CryptoAddressOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `WebauthnCredential`. */ -export type WebauthnCredentialOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREDENTIAL_ID_ASC' - | 'CREDENTIAL_ID_DESC' - | 'PUBLIC_KEY_ASC' - | 'PUBLIC_KEY_DESC' - | 'SIGN_COUNT_ASC' - | 'SIGN_COUNT_DESC' - | 'WEBAUTHN_USER_ID_ASC' - | 'WEBAUTHN_USER_ID_DESC' - | 'TRANSPORTS_ASC' - | 'TRANSPORTS_DESC' - | 'CREDENTIAL_DEVICE_TYPE_ASC' - | 'CREDENTIAL_DEVICE_TYPE_DESC' - | 'BACKUP_ELIGIBLE_ASC' - | 'BACKUP_ELIGIBLE_DESC' - | 'BACKUP_STATE_ASC' - | 'BACKUP_STATE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LAST_USED_AT_ASC' - | 'LAST_USED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppInvite`. */ -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppClaimedInvite`. */ -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgInvite`. */ -export type OrgInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `OrgClaimedInvite`. */ -export type OrgClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `AuditLogAuth`. */ -export type AuditLogAuthOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC'; -/** Methods to use when ordering `IdentityProvider`. */ -export type IdentityProviderOrderBy = - | 'NATURAL' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ENABLED_ASC' - | 'ENABLED_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC'; -/** Methods to use when ordering `AppPermissionDefault`. */ -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; -/** Methods to use when ordering `RoleType`. */ -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `MigrateFile`. */ -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; -/** Methods to use when ordering `DevicesModule`. */ -export type DevicesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; -/** Methods to use when ordering `AppMembershipDefault`. */ -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -/** Methods to use when ordering `OrgMembershipDefault`. */ -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `NodeTypeRegistry`. */ -export type NodeTypeRegistryOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARAMETER_SCHEMA_ASC' - | 'PARAMETER_SCHEMA_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -/** Methods to use when ordering `AppLimitCapsDefault`. */ -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitCapsDefault`. */ -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `AppLimitCap`. */ -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitCap`. */ -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `UserConnectedAccount`. */ -export type UserConnectedAccountOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `AppLimitCreditCode`. */ -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -/** Methods to use when ordering `AppLimitWarning`. */ -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -/** Methods to use when ordering `PubkeySetting`. */ -export type PubkeySettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; -/** Methods to use when ordering `RateLimitsModule`. */ -export type RateLimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' - | 'IP_RATE_LIMITS_TABLE_ID_ASC' - | 'IP_RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMITS_TABLE_ID_ASC' - | 'RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_DESC' - | 'IP_RATE_LIMITS_TABLE_ASC' - | 'IP_RATE_LIMITS_TABLE_DESC' - | 'RATE_LIMITS_TABLE_ASC' - | 'RATE_LIMITS_TABLE_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -/** Methods to use when ordering `RlsSetting`. */ -export type RlsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUTHENTICATE_SCHEMA_ID_ASC' - | 'AUTHENTICATE_SCHEMA_ID_DESC' - | 'ROLE_SCHEMA_ID_ASC' - | 'ROLE_SCHEMA_ID_DESC' - | 'AUTHENTICATE_FUNCTION_ID_ASC' - | 'AUTHENTICATE_FUNCTION_ID_DESC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -/** Methods to use when ordering `RlsModule`. */ -export type RlsModuleOrderBy = - | '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' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'AUTHENTICATE_ASC' - | 'AUTHENTICATE_DESC' - | 'AUTHENTICATE_STRICT_ASC' - | 'AUTHENTICATE_STRICT_DESC' - | 'CURRENT_ROLE_ASC' - | 'CURRENT_ROLE_DESC' - | 'CURRENT_ROLE_ID_ASC' - | 'CURRENT_ROLE_ID_DESC'; -/** Methods to use when ordering `RateLimitMetersModule`. */ -export type RateLimitMetersModuleOrderBy = - | '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' - | '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'; -/** Methods to use when ordering `PlansModule`. */ -export type PlansModuleOrderBy = - | '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' - | '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' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `SqlAction`. */ -export type SqlActionOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'DEPS_ASC' - | 'DEPS_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'CONTENT_ASC' - | 'CONTENT_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -/** Methods to use when ordering `DatabaseSetting`. */ -export type DatabaseSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -/** Methods to use when ordering `OrgMembershipSetting`. */ -export type OrgMembershipSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; -/** Methods to use when ordering `AppLimitEvent`. */ -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `OrgLimitEvent`. */ -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `AppMembership`. */ -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -/** Methods to use when ordering `User`. */ -export type UserOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -/** 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' - | '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'; -/** Methods to use when ordering `BillingModule`. */ -export type BillingModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `BillingProviderModule`. */ -export type BillingProviderModuleOrderBy = - | 'NATURAL' - | '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'; -/** 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' - | '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' - | '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' - | 'CREATED_AT_ASC' - | 'CREATED_AT_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. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `expr` field. */ - expr?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: CheckConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: CheckConstraintFilter[]; - /** Negates the expression. */ - not?: CheckConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ -export interface ObjectCategoryFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ObjectCategory; - /** Not equal to the specified value. */ - notEqualTo?: ObjectCategory; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ObjectCategory; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ObjectCategory; - /** Included in the specified list. */ - in?: ObjectCategory[]; - /** Not included in the specified list. */ - notIn?: ObjectCategory[]; - /** Less than the specified value. */ - lessThan?: ObjectCategory; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ObjectCategory; - /** Greater than the specified value. */ - greaterThan?: ObjectCategory; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ObjectCategory; -} -/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `schemaHash` field. */ - schemaHash?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** 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?: DatabaseFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseFilter[]; - /** Negates the expression. */ - not?: DatabaseFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** Filter by the object’s `schemas` relation. */ - schemas?: DatabaseToManySchemaFilter; - /** `schemas` exist. */ - schemasExist?: boolean; - /** Filter by the object’s `tables` relation. */ - tables?: DatabaseToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: DatabaseToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: DatabaseToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: DatabaseToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggerFunctions` relation. */ - triggerFunctions?: DatabaseToManyTriggerFunctionFilter; - /** `triggerFunctions` exist. */ - triggerFunctionsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: DatabaseToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: DatabaseToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: DatabaseToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: DatabaseToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: DatabaseToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `partitions` relation. */ - partitions?: DatabaseToManyPartitionFilter; - /** `partitions` exist. */ - partitionsExist?: boolean; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `apis` relation. */ - apis?: DatabaseToManyApiFilter; - /** `apis` exist. */ - apisExist?: boolean; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: DatabaseToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: DatabaseToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sites` relation. */ - sites?: DatabaseToManySiteFilter; - /** `sites` exist. */ - sitesExist?: boolean; - /** Filter by the object’s `apps` relation. */ - apps?: DatabaseToManyAppFilter; - /** `apps` exist. */ - appsExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: DatabaseToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: DatabaseToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: DatabaseToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: DatabaseToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `databaseSetting` relation. */ - databaseSetting?: DatabaseSettingFilter; - /** A related `databaseSetting` exists. */ - databaseSettingExists?: boolean; - /** Filter by the object’s `apiSettings` relation. */ - apiSettings?: DatabaseToManyApiSettingFilter; - /** `apiSettings` exist. */ - apiSettingsExist?: boolean; - /** Filter by the object’s `rlsSetting` relation. */ - rlsSetting?: RlsSettingFilter; - /** A related `rlsSetting` exists. */ - rlsSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: DatabaseToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; - /** Filter by the object’s `pubkeySetting` relation. */ - pubkeySetting?: PubkeySettingFilter; - /** A related `pubkeySetting` exists. */ - pubkeySettingExists?: boolean; - /** Filter by the object’s `webauthnSetting` relation. */ - webauthnSetting?: WebauthnSettingFilter; - /** A related `webauthnSetting` exists. */ - webauthnSettingExists?: boolean; - /** Filter by the object’s `connectedAccountsModules` relation. */ - connectedAccountsModules?: DatabaseToManyConnectedAccountsModuleFilter; - /** `connectedAccountsModules` exist. */ - connectedAccountsModulesExist?: boolean; - /** Filter by the object’s `cryptoAddressesModules` relation. */ - cryptoAddressesModules?: DatabaseToManyCryptoAddressesModuleFilter; - /** `cryptoAddressesModules` exist. */ - cryptoAddressesModulesExist?: boolean; - /** Filter by the object’s `cryptoAuthModules` relation. */ - cryptoAuthModules?: DatabaseToManyCryptoAuthModuleFilter; - /** `cryptoAuthModules` exist. */ - cryptoAuthModulesExist?: boolean; - /** Filter by the object’s `defaultIdsModules` relation. */ - defaultIdsModules?: DatabaseToManyDefaultIdsModuleFilter; - /** `defaultIdsModules` exist. */ - defaultIdsModulesExist?: boolean; - /** Filter by the object’s `denormalizedTableFields` relation. */ - denormalizedTableFields?: DatabaseToManyDenormalizedTableFieldFilter; - /** `denormalizedTableFields` exist. */ - denormalizedTableFieldsExist?: boolean; - /** Filter by the object’s `emailsModules` relation. */ - emailsModules?: DatabaseToManyEmailsModuleFilter; - /** `emailsModules` exist. */ - emailsModulesExist?: boolean; - /** Filter by the object’s `configSecretsUserModules` relation. */ - configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; - /** `configSecretsUserModules` exist. */ - configSecretsUserModulesExist?: boolean; - /** Filter by the object’s `invitesModules` relation. */ - invitesModules?: DatabaseToManyInvitesModuleFilter; - /** `invitesModules` exist. */ - invitesModulesExist?: boolean; - /** Filter by the object’s `eventsModules` relation. */ - eventsModules?: DatabaseToManyEventsModuleFilter; - /** `eventsModules` exist. */ - eventsModulesExist?: boolean; - /** Filter by the object’s `limitsModules` relation. */ - limitsModules?: DatabaseToManyLimitsModuleFilter; - /** `limitsModules` exist. */ - limitsModulesExist?: boolean; - /** Filter by the object’s `membershipTypesModules` relation. */ - membershipTypesModules?: DatabaseToManyMembershipTypesModuleFilter; - /** `membershipTypesModules` exist. */ - membershipTypesModulesExist?: boolean; - /** Filter by the object’s `membershipsModules` relation. */ - membershipsModules?: DatabaseToManyMembershipsModuleFilter; - /** `membershipsModules` exist. */ - membershipsModulesExist?: boolean; - /** Filter by the object’s `permissionsModules` relation. */ - permissionsModules?: DatabaseToManyPermissionsModuleFilter; - /** `permissionsModules` exist. */ - permissionsModulesExist?: boolean; - /** Filter by the object’s `phoneNumbersModules` relation. */ - phoneNumbersModules?: DatabaseToManyPhoneNumbersModuleFilter; - /** `phoneNumbersModules` exist. */ - phoneNumbersModulesExist?: boolean; - /** Filter by the object’s `profilesModules` relation. */ - profilesModules?: DatabaseToManyProfilesModuleFilter; - /** `profilesModules` exist. */ - profilesModulesExist?: boolean; - /** Filter by the object’s `rlsModule` relation. */ - rlsModule?: RlsModuleFilter; - /** A related `rlsModule` exists. */ - rlsModuleExists?: boolean; - /** Filter by the object’s `userStateModules` relation. */ - userStateModules?: DatabaseToManyUserStateModuleFilter; - /** `userStateModules` exist. */ - userStateModulesExist?: boolean; - /** Filter by the object’s `sessionsModules` relation. */ - sessionsModules?: DatabaseToManySessionsModuleFilter; - /** `sessionsModules` exist. */ - sessionsModulesExist?: boolean; - /** Filter by the object’s `userAuthModules` relation. */ - userAuthModules?: DatabaseToManyUserAuthModuleFilter; - /** `userAuthModules` exist. */ - userAuthModulesExist?: boolean; - /** Filter by the object’s `usersModules` relation. */ - usersModules?: DatabaseToManyUsersModuleFilter; - /** `usersModules` exist. */ - usersModulesExist?: boolean; - /** Filter by the object’s `hierarchyModule` relation. */ - hierarchyModule?: HierarchyModuleFilter; - /** A related `hierarchyModule` exists. */ - hierarchyModuleExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: DatabaseToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisions` relation. */ - relationProvisions?: DatabaseToManyRelationProvisionFilter; - /** `relationProvisions` exist. */ - relationProvisionsExist?: boolean; - /** Filter by the object’s `blueprints` relation. */ - blueprints?: DatabaseToManyBlueprintFilter; - /** `blueprints` exist. */ - blueprintsExist?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: DatabaseToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; - /** Filter by the object’s `storageModules` relation. */ - storageModules?: DatabaseToManyStorageModuleFilter; - /** `storageModules` exist. */ - storageModulesExist?: boolean; - /** Filter by the object’s `entityTypeProvisions` relation. */ - entityTypeProvisions?: DatabaseToManyEntityTypeProvisionFilter; - /** `entityTypeProvisions` exist. */ - entityTypeProvisionsExist?: boolean; - /** Filter by the object’s `rateLimitsModule` relation. */ - rateLimitsModule?: RateLimitsModuleFilter; - /** A related `rateLimitsModule` exists. */ - rateLimitsModuleExists?: boolean; - /** Filter by the object’s `devicesModule` relation. */ - devicesModule?: DevicesModuleFilter; - /** A related `devicesModule` exists. */ - devicesModuleExists?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: DatabaseToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `webauthnCredentialsModules` relation. */ - webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter; - /** `webauthnCredentialsModules` exist. */ - webauthnCredentialsModulesExist?: boolean; - /** Filter by the object’s `webauthnAuthModules` relation. */ - webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter; - /** `webauthnAuthModules` exist. */ - webauthnAuthModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `notificationsModules` relation. */ - notificationsModules?: DatabaseToManyNotificationsModuleFilter; - /** `notificationsModules` exist. */ - notificationsModulesExist?: boolean; - /** Filter by the object’s `plansModule` relation. */ - plansModule?: PlansModuleFilter; - /** A related `plansModule` exists. */ - plansModuleExists?: boolean; - /** Filter by the object’s `billingModule` relation. */ - billingModule?: BillingModuleFilter; - /** A related `billingModule` exists. */ - billingModuleExists?: boolean; - /** Filter by the object’s `billingProviderModule` relation. */ - billingProviderModule?: BillingProviderModuleFilter; - /** A related `billingProviderModule` exists. */ - billingProviderModuleExists?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: DatabaseToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `rateLimitMetersModule` relation. */ - rateLimitMetersModule?: RateLimitMetersModuleFilter; - /** A related `rateLimitMetersModule` exists. */ - rateLimitMetersModuleExists?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `inferenceLogModules` relation. */ - inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; - /** `inferenceLogModules` exist. */ - inferenceLogModulesExist?: boolean; - /** Filter by the object’s `computeLogModules` relation. */ - computeLogModules?: DatabaseToManyComputeLogModuleFilter; - /** `computeLogModules` exist. */ - computeLogModulesExist?: boolean; - /** Filter by the object’s `transferLogModules` relation. */ - transferLogModules?: DatabaseToManyTransferLogModuleFilter; - /** `transferLogModules` exist. */ - transferLogModulesExist?: boolean; - /** Filter by the object’s `storageLogModules` relation. */ - storageLogModules?: DatabaseToManyStorageLogModuleFilter; - /** `storageLogModules` exist. */ - storageLogModulesExist?: boolean; - /** Filter by the object’s `dbUsageModules` relation. */ - dbUsageModules?: DatabaseToManyDbUsageModuleFilter; - /** `dbUsageModules` exist. */ - dbUsageModulesExist?: boolean; - /** Filter by the object’s `agentModules` relation. */ - agentModules?: DatabaseToManyAgentModuleFilter; - /** `agentModules` exist. */ - agentModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModules` relation. */ - merkleStoreModules?: DatabaseToManyMerkleStoreModuleFilter; - /** `merkleStoreModules` exist. */ - merkleStoreModulesExist?: boolean; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: DatabaseToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `namespaceModules` relation. */ - namespaceModules?: DatabaseToManyNamespaceModuleFilter; - /** `namespaceModules` exist. */ - namespaceModulesExist?: boolean; - /** Filter by the object’s `functionModules` relation. */ - functionModules?: DatabaseToManyFunctionModuleFilter; - /** `functionModules` exist. */ - functionModulesExist?: boolean; - /** Filter by the object’s `databaseProvisionModules` relation. */ - databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; - /** `databaseProvisionModules` exist. */ - databaseProvisionModulesExist?: boolean; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** 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?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `ownedDatabases` relation. */ - ownedDatabases?: UserToManyDatabaseFilter; - /** `ownedDatabases` exist. */ - ownedDatabasesExist?: boolean; - /** Filter by the object’s `appMembershipByActorId` relation. */ - appMembershipByActorId?: AppMembershipFilter; - /** A related `appMembershipByActorId` exists. */ - appMembershipByActorIdExists?: boolean; - /** Filter by the object’s `appAdminGrantsByActorId` relation. */ - appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByActorId` exist. */ - appAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ - appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByGrantorId` exist. */ - appAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ - appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByActorId` exist. */ - appOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ - appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByGrantorId` exist. */ - appOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appGrantsByActorId` relation. */ - appGrantsByActorId?: UserToManyAppGrantFilter; - /** `appGrantsByActorId` exist. */ - appGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appGrantsByGrantorId` relation. */ - appGrantsByGrantorId?: UserToManyAppGrantFilter; - /** `appGrantsByGrantorId` exist. */ - appGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByActorId` relation. */ - orgMembershipsByActorId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByActorId` exist. */ - orgMembershipsByActorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByEntityId` relation. */ - orgMembershipsByEntityId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByEntityId` exist. */ - orgMembershipsByEntityIdExist?: boolean; - /** Filter by the object’s `orgMembershipDefaultByEntityId` relation. */ - orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter; - /** A related `orgMembershipDefaultByEntityId` exists. */ - orgMembershipDefaultByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */ - orgMembershipSettingByEntityId?: OrgMembershipSettingFilter; - /** A related `orgMembershipSettingByEntityId` exists. */ - orgMembershipSettingByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembersByActorId` relation. */ - orgMembersByActorId?: UserToManyOrgMemberFilter; - /** `orgMembersByActorId` exist. */ - orgMembersByActorIdExist?: boolean; - /** Filter by the object’s `orgMembersByEntityId` relation. */ - orgMembersByEntityId?: UserToManyOrgMemberFilter; - /** `orgMembersByEntityId` exist. */ - orgMembersByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ - orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByActorId` exist. */ - orgAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ - orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByEntityId` exist. */ - orgAdminGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByGrantorId` relation. */ - orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByGrantorId` exist. */ - orgAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ - orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByActorId` exist. */ - orgOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ - orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByEntityId` exist. */ - orgOwnerGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByGrantorId` relation. */ - orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByGrantorId` exist. */ - orgOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByActorId` relation. */ - orgMemberProfilesByActorId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByActorId` exist. */ - orgMemberProfilesByActorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByEntityId` relation. */ - orgMemberProfilesByEntityId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByEntityId` exist. */ - orgMemberProfilesByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByActorId` relation. */ - orgGrantsByActorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByActorId` exist. */ - orgGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgGrantsByEntityId` relation. */ - orgGrantsByEntityId?: UserToManyOrgGrantFilter; - /** `orgGrantsByEntityId` exist. */ - orgGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByGrantorId` relation. */ - orgGrantsByGrantorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByGrantorId` exist. */ - orgGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `parentOrgChartEdges` relation. */ - parentOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `parentOrgChartEdges` exist. */ - parentOrgChartEdgesExist?: boolean; - /** Filter by the object’s `orgChartEdgesByEntityId` relation. */ - orgChartEdgesByEntityId?: UserToManyOrgChartEdgeFilter; - /** `orgChartEdgesByEntityId` exist. */ - orgChartEdgesByEntityIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdges` relation. */ - childOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `childOrgChartEdges` exist. */ - childOrgChartEdgesExist?: boolean; - /** Filter by the object’s `parentOrgChartEdgeGrants` relation. */ - parentOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `parentOrgChartEdgeGrants` exist. */ - parentOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByEntityId` relation. */ - orgChartEdgeGrantsByEntityId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByEntityId` exist. */ - orgChartEdgeGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation. */ - orgChartEdgeGrantsByGrantorId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByGrantorId` exist. */ - orgChartEdgeGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdgeGrants` relation. */ - childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `childOrgChartEdgeGrants` exist. */ - childOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ - orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; - /** `orgPermissionDefaultsByEntityId` exist. */ - orgPermissionDefaultsByEntityIdExist?: boolean; - /** Filter by the object’s `appLimitsByActorId` relation. */ - appLimitsByActorId?: UserToManyAppLimitFilter; - /** `appLimitsByActorId` exist. */ - appLimitsByActorIdExist?: boolean; - /** Filter by the object’s `appLimitCreditsByActorId` relation. */ - appLimitCreditsByActorId?: UserToManyAppLimitCreditFilter; - /** `appLimitCreditsByActorId` exist. */ - appLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByActorId` relation. */ - orgLimitsByActorId?: UserToManyOrgLimitFilter; - /** `orgLimitsByActorId` exist. */ - orgLimitsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByEntityId` relation. */ - orgLimitsByEntityId?: UserToManyOrgLimitFilter; - /** `orgLimitsByEntityId` exist. */ - orgLimitsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByActorId` relation. */ - orgLimitCreditsByActorId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByActorId` exist. */ - orgLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByEntityId` relation. */ - orgLimitCreditsByEntityId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByEntityId` exist. */ - orgLimitCreditsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ - orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; - /** `orgLimitAggregatesByEntityId` exist. */ - orgLimitAggregatesByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitWarningsByEntityId` relation. */ - orgLimitWarningsByEntityId?: UserToManyOrgLimitWarningFilter; - /** `orgLimitWarningsByEntityId` exist. */ - orgLimitWarningsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedEmails` relation. */ - ownedEmails?: UserToManyEmailFilter; - /** `ownedEmails` exist. */ - ownedEmailsExist?: boolean; - /** Filter by the object’s `ownedPhoneNumbers` relation. */ - ownedPhoneNumbers?: UserToManyPhoneNumberFilter; - /** `ownedPhoneNumbers` exist. */ - ownedPhoneNumbersExist?: boolean; - /** Filter by the object’s `ownedCryptoAddresses` relation. */ - ownedCryptoAddresses?: UserToManyCryptoAddressFilter; - /** `ownedCryptoAddresses` exist. */ - ownedCryptoAddressesExist?: boolean; - /** Filter by the object’s `ownedWebauthnCredentials` relation. */ - ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `ownedWebauthnCredentials` exist. */ - ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `appInvitesBySenderId` relation. */ - appInvitesBySenderId?: UserToManyAppInviteFilter; - /** `appInvitesBySenderId` exist. */ - appInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesByReceiverId` relation. */ - appClaimedInvitesByReceiverId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesByReceiverId` exist. */ - appClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesBySenderId` relation. */ - appClaimedInvitesBySenderId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesBySenderId` exist. */ - appClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgInvitesByEntityId` relation. */ - orgInvitesByEntityId?: UserToManyOrgInviteFilter; - /** `orgInvitesByEntityId` exist. */ - orgInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgInvitesByReceiverId` relation. */ - orgInvitesByReceiverId?: UserToManyOrgInviteFilter; - /** `orgInvitesByReceiverId` exist. */ - orgInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgInvitesBySenderId` relation. */ - orgInvitesBySenderId?: UserToManyOrgInviteFilter; - /** `orgInvitesBySenderId` exist. */ - orgInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ - orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByEntityId` exist. */ - orgClaimedInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ - orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByReceiverId` exist. */ - orgClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesBySenderId` relation. */ - orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesBySenderId` exist. */ - orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogAuthsByActorId` relation. */ - auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; - /** `auditLogAuthsByActorId` exist. */ - auditLogAuthsByActorIdExist?: boolean; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; -} -/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ -export interface StringTrgmFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; - /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ - similarTo?: TrgmSearchInput; - /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ - wordSimilarTo?: TrgmSearchInput; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; -} -/** 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 `RoleType` object types. All fields are combined with a logical ‘and.’ */ -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} -/** A filter to be used against many `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyDatabaseFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseFilter; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** A filter to be used against many `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppAdminGrantFilter; -} -/** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; - /** Negates the expression. */ - not?: AppAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against many `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppOwnerGrantFilter; -} -/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; - /** Negates the expression. */ - not?: AppOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against many `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppGrantFilter; -} -/** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMembershipFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipFilter; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against many `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberFilter; -} -/** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberFilter[]; - /** Negates the expression. */ - not?: OrgMemberFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against many `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgAdminGrantFilter; -} -/** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against many `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgOwnerGrantFilter; -} -/** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against many `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberProfileFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberProfileFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberProfileFilter; -} -/** A filter to be used against many `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgGrantFilter; -} -/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against many `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeFilter; -} -/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against many `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeGrantFilter; -} -/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against many `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgPermissionDefaultFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultFilter; -} -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against many `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitFilter; -} -/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** 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 `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against many `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitAggregateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitAggregateFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitAggregateFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitAggregateFilter; -} -/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against many `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitWarningFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitWarningFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitWarningFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitWarningFilter; -} -/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyEmailFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailFilter; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -/** A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyPhoneNumberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumberFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumberFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumberFilter; -} -/** A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyCryptoAddressFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressFilter; -} -/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAddressFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: CryptoAddressFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; - /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against many `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyWebauthnCredentialFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialFilter; -} -/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `credentialId` field. */ - credentialId?: StringFilter; - /** Filter by the object’s `publicKey` field. */ - publicKey?: Base64EncodedBinaryFilter; - /** Filter by the object’s `signCount` field. */ - signCount?: BigIntFilter; - /** Filter by the object’s `webauthnUserId` field. */ - webauthnUserId?: StringFilter; - /** Filter by the object’s `transports` field. */ - transports?: StringListFilter; - /** Filter by the object’s `credentialDeviceType` field. */ - credentialDeviceType?: StringFilter; - /** Filter by the object’s `backupEligible` field. */ - backupEligible?: BooleanFilter; - /** Filter by the object’s `backupState` field. */ - backupState?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `lastUsedAt` field. */ - lastUsedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** 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[]; -} -/** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppInviteFilter; -} -/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against many `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppClaimedInviteFilter; -} -/** A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; - /** Negates the expression. */ - not?: AppClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; -} -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against many `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgClaimedInviteFilter; -} -/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; - /** Negates the expression. */ - not?: OrgClaimedInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogAuthFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AuditLogAuthFilter; - /** Filters to entities where every related entity matches. */ - every?: AuditLogAuthFilter; - /** Filters to entities where no related entity matches. */ - none?: AuditLogAuthFilter; -} -/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogAuthFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogAuthFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogAuthFilter[]; - /** Negates the expression. */ - not?: AuditLogAuthFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; -} -/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeOriginFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeOrigin; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeOrigin; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeOrigin[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeOrigin[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeOrigin; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeOrigin; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** 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; -} -/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaFilter; -} -/** A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: 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?: SchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; - /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: SchemaToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: SchemaToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */ - identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModulesByPrivateSchemaId` exist. */ - identityProvidersModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByPrivateSchemaId` relation. */ - realtimeModulesByPrivateSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesByPrivateSchemaId` exist. */ - realtimeModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. */ - realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesBySubscriptionsSchemaId` exist. */ - realtimeModulesBySubscriptionsSchemaIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation. */ - merkleStoreModulesByPrivateSchemaId?: SchemaToManyMerkleStoreModuleFilter; - /** `merkleStoreModulesByPrivateSchemaId` exist. */ - merkleStoreModulesByPrivateSchemaIdExist?: boolean; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** 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. */ - 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `timestamps` field. */ - timestamps?: BooleanFilter; - /** Filter by the object’s `peoplestamps` field. */ - peoplestamps?: BooleanFilter; - /** Filter by the object’s `pluralName` field. */ - pluralName?: StringFilter; - /** Filter by the object’s `singularName` field. */ - singularName?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `partitioned` field. */ - partitioned?: BooleanFilter; - /** Filter by the object’s `partitionStrategy` field. */ - partitionStrategy?: StringFilter; - /** Filter by the object’s `partitionKeyNames` field. */ - partitionKeyNames?: StringListFilter; - /** Filter by the object’s `partitionKeyTypes` field. */ - partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: 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?: TableFilter[]; - /** Checks for any expressions in this list. */ - or?: TableFilter[]; - /** Negates the expression. */ - not?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `inherits` relation. */ - inherits?: TableFilter; - /** A related `inherits` exists. */ - inheritsExists?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: TableToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: TableToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: TableToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: TableToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: TableToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: TableToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: TableToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: TableToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: TableToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: TableToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ - embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunksByChunksTableId` exist. */ - embeddingChunksByChunksTableIdExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ - spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; - /** `spatialRelationsByRefTableId` exist. */ - spatialRelationsByRefTableIdExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: TableToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `partition` relation. */ - partition?: PartitionFilter; - /** A related `partition` exists. */ - partitionExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: TableToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisionsBySourceTableId` relation. */ - relationProvisionsBySourceTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsBySourceTableId` exist. */ - relationProvisionsBySourceTableIdExist?: boolean; - /** Filter by the object’s `relationProvisionsByTargetTableId` relation. */ - relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsByTargetTableId` exist. */ - relationProvisionsByTargetTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. */ - sessionSecretsModulesBySessionsTableId?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModulesBySessionsTableId` exist. */ - sessionSecretsModulesBySessionsTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: TableToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByChangeLogTableId` relation. */ - realtimeModulesByChangeLogTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByChangeLogTableId` exist. */ - realtimeModulesByChangeLogTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. */ - realtimeModulesByListenerNodeTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByListenerNodeTableId` exist. */ - realtimeModulesByListenerNodeTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. */ - realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesBySourceRegistryTableId` exist. */ - realtimeModulesBySourceRegistryTableIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: JSONFilter; - /** Filter by the object’s `fieldOrder` field. */ - fieldOrder?: IntFilter; - /** Filter by the object’s `regexp` field. */ - regexp?: StringFilter; - /** Filter by the object’s `chk` field. */ - chk?: JSONFilter; - /** Filter by the object’s `chkExpr` field. */ - chkExpr?: JSONFilter; - /** Filter by the object’s `min` field. */ - min?: FloatFilter; - /** Filter by the object’s `max` field. */ - max?: FloatFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** 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?: FieldFilter[]; - /** Checks for any expressions in this list. */ - or?: FieldFilter[]; - /** Negates the expression. */ - not?: FieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: FieldToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ - spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; - /** `spatialRelationsByRefFieldId` exist. */ - spatialRelationsByRefFieldIdExist?: boolean; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface SpatialRelationFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `operator` field. */ - operator?: StringFilter; - /** Filter by the object’s `paramName` field. */ - paramName?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: SpatialRelationFilter[]; - /** Checks for any expressions in this list. */ - or?: SpatialRelationFilter[]; - /** Negates the expression. */ - not?: SpatialRelationFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface ForeignKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldIds` field. */ - refFieldIds?: UUIDListFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `updateAction` field. */ - updateAction?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: ForeignKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: ForeignKeyConstraintFilter[]; - /** Negates the expression. */ - not?: ForeignKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface FullTextSearchFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `weights` field. */ - weights?: StringListFilter; - /** Filter by the object’s `langs` field. */ - langs?: StringListFilter; - /** 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?: FullTextSearchFilter[]; - /** Checks for any expressions in this list. */ - or?: FullTextSearchFilter[]; - /** Negates the expression. */ - not?: FullTextSearchFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface IndexFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `includeFieldIds` field. */ - includeFieldIds?: UUIDListFilter; - /** Filter by the object’s `accessMethod` field. */ - accessMethod?: StringFilter; - /** Filter by the object’s `indexParams` field. */ - indexParams?: JSONFilter; - /** Filter by the object’s `whereClause` field. */ - whereClause?: JSONFilter; - /** Filter by the object’s `isUnique` field. */ - isUnique?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `opClasses` field. */ - opClasses?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: IndexFilter[]; - /** Checks for any expressions in this list. */ - or?: IndexFilter[]; - /** Negates the expression. */ - not?: IndexFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface PolicyFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `permissive` field. */ - permissive?: BooleanFilter; - /** Filter by the object’s `disabled` field. */ - disabled?: BooleanFilter; - /** Filter by the object’s `policyType` field. */ - policyType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PolicyFilter[]; - /** Checks for any expressions in this list. */ - or?: PolicyFilter[]; - /** Negates the expression. */ - not?: PolicyFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface PrimaryKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PrimaryKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: PrimaryKeyConstraintFilter[]; - /** Negates the expression. */ - not?: PrimaryKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: 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?: TableGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: TableGrantFilter[]; - /** Negates the expression. */ - not?: TableGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `functionName` field. */ - functionName?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: TriggerFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFilter[]; - /** Negates the expression. */ - not?: TriggerFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface UniqueConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: UniqueConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: UniqueConstraintFilter[]; - /** Negates the expression. */ - not?: UniqueConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `viewType` field. */ - viewType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `filterType` field. */ - filterType?: StringFilter; - /** Filter by the object’s `filterData` field. */ - filterData?: JSONFilter; - /** Filter by the object’s `securityInvoker` field. */ - securityInvoker?: BooleanFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ViewFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewFilter[]; - /** Negates the expression. */ - not?: ViewFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** A related `table` exists. */ - tableExists?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: ViewToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: ViewToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: ViewToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewTableFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `joinOrder` field. */ - joinOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: ViewTableFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewTableFilter[]; - /** Negates the expression. */ - not?: ViewTableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `withGrantOption` field. */ - withGrantOption?: BooleanFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ViewGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewGrantFilter[]; - /** Negates the expression. */ - not?: ViewGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewRuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ViewRuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewRuleFilter[]; - /** Negates the expression. */ - not?: ViewRuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface EmbeddingChunkFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `embeddingFieldId` field. */ - embeddingFieldId?: UUIDFilter; - /** Filter by the object’s `chunksTableId` field. */ - chunksTableId?: UUIDFilter; - /** Filter by the object’s `chunksTableName` field. */ - chunksTableName?: StringFilter; - /** Filter by the object’s `contentFieldName` field. */ - contentFieldName?: StringFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: IntFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `chunkSize` field. */ - chunkSize?: IntFilter; - /** Filter by the object’s `chunkOverlap` field. */ - chunkOverlap?: IntFilter; - /** Filter by the object’s `chunkStrategy` field. */ - chunkStrategy?: StringFilter; - /** Filter by the object’s `metadataFields` field. */ - metadataFields?: JSONFilter; - /** Filter by the object’s `searchIndexes` field. */ - searchIndexes?: JSONFilter; - /** Filter by the object’s `enqueueChunkingJob` field. */ - enqueueChunkingJob?: BooleanFilter; - /** Filter by the object’s `chunkingTaskName` field. */ - chunkingTaskName?: StringFilter; - /** Filter by the object’s `embeddingModel` field. */ - embeddingModel?: StringFilter; - /** Filter by the object’s `embeddingProvider` field. */ - embeddingProvider?: StringFilter; - /** Filter by the object’s `parentFkFieldId` field. */ - parentFkFieldId?: 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?: EmbeddingChunkFilter[]; - /** Checks for any expressions in this list. */ - or?: EmbeddingChunkFilter[]; - /** Negates the expression. */ - not?: EmbeddingChunkFilter; - /** Filter by the object’s `chunksTable` relation. */ - chunksTable?: TableFilter; - /** A related `chunksTable` exists. */ - chunksTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `embeddingField` relation. */ - embeddingField?: FieldFilter; - /** A related `embeddingField` exists. */ - embeddingFieldExists?: boolean; - /** Filter by the object’s `parentFkField` relation. */ - parentFkField?: FieldFilter; - /** A related `parentFkField` exists. */ - parentFkFieldExists?: boolean; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface PartitionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `strategy` field. */ - strategy?: StringFilter; - /** Filter by the object’s `partitionKeyId` field. */ - partitionKeyId?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `retentionKeepTable` field. */ - retentionKeepTable?: BooleanFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `namingPattern` field. */ - namingPattern?: StringFilter; - /** Filter by the object’s `isParented` field. */ - isParented?: 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?: PartitionFilter[]; - /** Checks for any expressions in this list. */ - or?: PartitionFilter[]; - /** Negates the expression. */ - not?: PartitionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `partitionKey` relation. */ - partitionKey?: FieldFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface SecureTableProvisionFilter { - /** 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 `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ -export interface JSONListFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: unknown[]; - /** Not equal to the specified value. */ - notEqualTo?: unknown[]; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: unknown[]; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: unknown[]; - /** Less than the specified value. */ - lessThan?: unknown[]; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: unknown[]; - /** Greater than the specified value. */ - greaterThan?: unknown[]; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: unknown[]; - /** Contains the specified list of values. */ - contains?: unknown[]; - /** Contained by the specified list of values. */ - containedBy?: unknown[]; - /** Overlaps the specified list of values. */ - overlaps?: unknown[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: unknown; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: unknown; - /** Any array item is less than the specified value. */ - anyLessThan?: unknown; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: unknown; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: unknown; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: unknown; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `sourceTable` relation. */ - sourceTable?: TableFilter; - /** Filter by the object’s `targetTable` relation. */ - targetTable?: TableFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** 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. */ - 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against `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; - /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; - /** Filter by the object’s `changeLogTable` relation. */ - changeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `listenerNodeTable` relation. */ - listenerNodeTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sourceRegistryTable` relation. */ - sourceRegistryTable?: TableFilter; - /** Filter by the object’s `subscriptionsSchema` relation. */ - subscriptionsSchema?: SchemaFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaGrantFilter { - /** 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 `granteeName` field. */ - granteeName?: 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?: SchemaGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaGrantFilter[]; - /** Negates the expression. */ - not?: SchemaGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultPrivilegeFilter { - /** 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 `objectType` field. */ - objectType?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: DefaultPrivilegeFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultPrivilegeFilter[]; - /** Negates the expression. */ - not?: DefaultPrivilegeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface EnumFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `values` field. */ - values?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: EnumFilter[]; - /** Checks for any expressions in this list. */ - or?: EnumFilter[]; - /** Negates the expression. */ - not?: EnumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionFilter[]; - /** Negates the expression. */ - not?: FunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSchemaFilter { - /** 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 `apiId` field. */ - apiId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ApiSchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSchemaFilter[]; - /** Negates the expression. */ - not?: ApiSchemaFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ApiFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiFilter[]; - /** Negates the expression. */ - not?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: ApiToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: ApiToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: ApiToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `apiSetting` relation. */ - apiSetting?: ApiSettingFilter; - /** A related `apiSetting` exists. */ - apiSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: ApiToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; -} -/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ApiModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiModuleFilter[]; - /** Negates the expression. */ - not?: ApiModuleFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: ConstructiveInternalTypeHostnameFilter; - /** Filter by the object’s `domain` field. */ - domain?: ConstructiveInternalTypeHostnameFilter; - /** Checks for all expressions in this list. */ - and?: DomainFilter[]; - /** Checks for any expressions in this list. */ - or?: DomainFilter[]; - /** Negates the expression. */ - not?: DomainFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** A related `site` exists. */ - siteExists?: boolean; -} -/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeHostnameFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeHostname; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeHostname; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeHostname[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeHostname[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeHostname; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeHostname; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** 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; -} -/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteFilter { - /** Filter by the object’s `id` field. */ - id?: 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. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeAttachmentFilter; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Negates the expression. */ - not?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** A related `app` exists. */ - appExists?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: SiteToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: SiteToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; -} -/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeAttachmentFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeAttachment; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeAttachment; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeAttachment[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeAttachment[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeAttachment; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeAttachment; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** 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; -} -/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ -export interface AppFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `appImage` field. */ - appImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `appStoreLink` field. */ - appStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Filter by the object’s `appStoreId` field. */ - appStoreId?: StringFilter; - /** Filter by the object’s `appIdPrefix` field. */ - appIdPrefix?: StringFilter; - /** Filter by the object’s `playStoreLink` field. */ - playStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Negates the expression. */ - not?: AppFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUrlFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUrl; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUrl; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUrl[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUrl[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUrl; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUrl; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** 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; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteModuleFilter[]; - /** Negates the expression. */ - not?: SiteModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteThemeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `theme` field. */ - theme?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; - /** Negates the expression. */ - not?: SiteThemeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: ApiSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSettingFilter[]; - /** Negates the expression. */ - not?: ApiSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface CorsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: CorsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: CorsSettingFilter[]; - /** Negates the expression. */ - not?: CorsSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `scopeField` field. */ - scopeField?: 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 `commitTable` relation. */ - commitTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `objectTable` relation. */ - objectTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storeTable` relation. */ - storeTable?: TableFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; -} -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface 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 filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `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 `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scopeField` field. */ - scopeField?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** 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?: GraphModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; - /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `executionsTable` relation. */ - executionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `graphsTable` relation. */ - graphsTable?: TableFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; - /** Filter by the object’s `outputsTable` relation. */ - outputsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `publicSchema` relation. */ - publicSchema?: SchemaFilter; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFunctionFilter; -} -/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `code` field. */ - code?: 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?: TriggerFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFunctionFilter[]; - /** Negates the expression. */ - not?: TriggerFunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPartitionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PartitionFilter; - /** Filters to entities where every related entity matches. */ - every?: PartitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PartitionFilter; -} -/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseTransferFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseTransferFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseTransferFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseTransferFilter; -} -/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseTransferFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `targetOwnerId` field. */ - targetOwnerId?: UUIDFilter; - /** Filter by the object’s `sourceApproved` field. */ - sourceApproved?: BooleanFilter; - /** Filter by the object’s `targetApproved` field. */ - targetApproved?: BooleanFilter; - /** Filter by the object’s `sourceApprovedAt` field. */ - sourceApprovedAt?: DatetimeFilter; - /** Filter by the object’s `targetApprovedAt` field. */ - targetApprovedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `initiatedBy` field. */ - initiatedBy?: UUIDFilter; - /** Filter by the object’s `notes` field. */ - notes?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseTransferFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseTransferFilter[]; - /** Negates the expression. */ - not?: DatabaseTransferFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiFilter; -} -/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteFilter; -} -/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAppFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppFilter; - /** Filters to entities where every related entity matches. */ - every?: AppFilter; - /** Filters to entities where no related entity matches. */ - none?: AppFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSettingFilter; -} -/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface RlsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `authenticateSchemaId` field. */ - authenticateSchemaId?: UUIDFilter; - /** Filter by the object’s `roleSchemaId` field. */ - roleSchemaId?: UUIDFilter; - /** Filter by the object’s `authenticateFunctionId` field. */ - authenticateFunctionId?: UUIDFilter; - /** Filter by the object’s `authenticateStrictFunctionId` field. */ - authenticateStrictFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleFunctionId` field. */ - currentRoleFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleIdFunctionId` field. */ - currentRoleIdFunctionId?: UUIDFilter; - /** Filter by the object’s `currentUserAgentFunctionId` field. */ - currentUserAgentFunctionId?: UUIDFilter; - /** Filter by the object’s `currentIpAddressFunctionId` field. */ - currentIpAddressFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RlsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsSettingFilter[]; - /** Negates the expression. */ - not?: RlsSettingFilter; - /** Filter by the object’s `authenticateFunction` relation. */ - authenticateFunction?: FunctionFilter; - /** A related `authenticateFunction` exists. */ - authenticateFunctionExists?: boolean; - /** Filter by the object’s `authenticateSchema` relation. */ - authenticateSchema?: SchemaFilter; - /** A related `authenticateSchema` exists. */ - authenticateSchemaExists?: boolean; - /** Filter by the object’s `authenticateStrictFunction` relation. */ - authenticateStrictFunction?: FunctionFilter; - /** A related `authenticateStrictFunction` exists. */ - authenticateStrictFunctionExists?: boolean; - /** Filter by the object’s `currentIpAddressFunction` relation. */ - currentIpAddressFunction?: FunctionFilter; - /** A related `currentIpAddressFunction` exists. */ - currentIpAddressFunctionExists?: boolean; - /** Filter by the object’s `currentRoleFunction` relation. */ - currentRoleFunction?: FunctionFilter; - /** A related `currentRoleFunction` exists. */ - currentRoleFunctionExists?: boolean; - /** Filter by the object’s `currentRoleIdFunction` relation. */ - currentRoleIdFunction?: FunctionFilter; - /** A related `currentRoleIdFunction` exists. */ - currentRoleIdFunctionExists?: boolean; - /** Filter by the object’s `currentUserAgentFunction` relation. */ - currentUserAgentFunction?: FunctionFilter; - /** A related `currentUserAgentFunction` exists. */ - currentUserAgentFunctionExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `roleSchema` relation. */ - roleSchema?: SchemaFilter; - /** A related `roleSchema` exists. */ - roleSchemaExists?: boolean; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ -export interface PubkeySettingFilter { - /** 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 `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `signUpWithKeyFunctionId` field. */ - signUpWithKeyFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ - signInRequestChallengeFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRecordFailureFunctionId` field. */ - signInRecordFailureFunctionId?: UUIDFilter; - /** Filter by the object’s `signInWithChallengeFunctionId` field. */ - signInWithChallengeFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PubkeySettingFilter[]; - /** Checks for any expressions in this list. */ - or?: PubkeySettingFilter[]; - /** Negates the expression. */ - not?: PubkeySettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `signInRecordFailureFunction` relation. */ - signInRecordFailureFunction?: FunctionFilter; - /** A related `signInRecordFailureFunction` exists. */ - signInRecordFailureFunctionExists?: boolean; - /** Filter by the object’s `signInRequestChallengeFunction` relation. */ - signInRequestChallengeFunction?: FunctionFilter; - /** A related `signInRequestChallengeFunction` exists. */ - signInRequestChallengeFunctionExists?: boolean; - /** Filter by the object’s `signInWithChallengeFunction` relation. */ - signInWithChallengeFunction?: FunctionFilter; - /** A related `signInWithChallengeFunction` exists. */ - signInWithChallengeFunctionExists?: boolean; - /** Filter by the object’s `signUpWithKeyFunction` relation. */ - signUpWithKeyFunction?: FunctionFilter; - /** A related `signUpWithKeyFunction` exists. */ - signUpWithKeyFunctionExists?: boolean; -} -/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnSettingFilter { - /** 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 `credentialsSchemaId` field. */ - credentialsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionsSchemaId` field. */ - sessionsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsSchemaId` field. */ - sessionSecretsSchemaId?: 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 `userFieldId` field. */ - userFieldId?: 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 `challengeExpirySeconds` field. */ - challengeExpirySeconds?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnSettingFilter[]; - /** Negates the expression. */ - not?: WebauthnSettingFilter; - /** Filter by the object’s `credentialsSchema` relation. */ - credentialsSchema?: SchemaFilter; - /** A related `credentialsSchema` exists. */ - credentialsSchemaExists?: boolean; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** A related `credentialsTable` exists. */ - credentialsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** A related `sessionCredentialsTable` exists. */ - sessionCredentialsTableExists?: boolean; - /** Filter by the object’s `sessionSecretsSchema` relation. */ - sessionSecretsSchema?: SchemaFilter; - /** A related `sessionSecretsSchema` exists. */ - sessionSecretsSchemaExists?: boolean; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** A related `sessionSecretsTable` exists. */ - sessionSecretsTableExists?: boolean; - /** Filter by the object’s `sessionsSchema` relation. */ - sessionsSchema?: SchemaFilter; - /** A related `sessionsSchema` exists. */ - sessionsSchemaExists?: boolean; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** A related `sessionsTable` exists. */ - sessionsTableExists?: boolean; - /** Filter by the object’s `userField` relation. */ - userField?: FieldFilter; - /** A related `userField` exists. */ - userFieldExists?: boolean; -} -/** A filter to be used against many `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConnectedAccountsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConnectedAccountsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConnectedAccountsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConnectedAccountsModuleFilter; -} -/** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConnectedAccountsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAddressesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressesModuleFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: CryptoAddressesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressesModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAddressesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAuthModuleFilter; -} -/** A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAuthModuleFilter { - /** 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 `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `addressesTableId` field. */ - addressesTableId?: UUIDFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `signInRequestChallenge` field. */ - signInRequestChallenge?: StringFilter; - /** Filter by the object’s `signInRecordFailure` field. */ - signInRecordFailure?: StringFilter; - /** Filter by the object’s `signUpWithKey` field. */ - signUpWithKey?: StringFilter; - /** Filter by the object’s `signInWithChallenge` field. */ - signInWithChallenge?: StringFilter; - /** Checks for all expressions in this list. */ - and?: CryptoAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAuthModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against many `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultIdsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultIdsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultIdsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultIdsModuleFilter; -} -/** A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultIdsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: DefaultIdsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultIdsModuleFilter[]; - /** Negates the expression. */ - not?: DefaultIdsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDenormalizedTableFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DenormalizedTableFieldFilter; - /** Filters to entities where every related entity matches. */ - every?: DenormalizedTableFieldFilter; - /** Filters to entities where no related entity matches. */ - none?: DenormalizedTableFieldFilter; -} -/** A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DenormalizedTableFieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `setIds` field. */ - setIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `refIds` field. */ - refIds?: UUIDListFilter; - /** Filter by the object’s `useUpdates` field. */ - useUpdates?: BooleanFilter; - /** Filter by the object’s `updateDefaults` field. */ - updateDefaults?: BooleanFilter; - /** Filter by the object’s `funcName` field. */ - funcName?: StringFilter; - /** Filter by the object’s `funcOrder` field. */ - funcOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: DenormalizedTableFieldFilter[]; - /** Checks for any expressions in this list. */ - or?: DenormalizedTableFieldFilter[]; - /** Negates the expression. */ - not?: DenormalizedTableFieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmailsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailsModuleFilter; -} -/** A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: EmailsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailsModuleFilter[]; - /** Negates the expression. */ - not?: EmailsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsUserModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsUserModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsUserModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsUserModuleFilter; -} -/** 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 `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; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInvitesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InvitesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InvitesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InvitesModuleFilter; -} -/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; - /** Filter by the object’s `claimedInvitesTable` relation. */ - claimedInvitesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `invitesTable` relation. */ - invitesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against many `EventsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEventsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EventsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EventsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EventsModuleFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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; - /** Filter by the object’s `removeEvent` field. */ - removeEvent?: StringFilter; - /** Filter by the object’s `tgEvent` field. */ - tgEvent?: StringFilter; - /** Filter by the object’s `tgEventToggle` field. */ - tgEventToggle?: StringFilter; - /** Filter by the object’s `tgEventToggleBool` field. */ - tgEventToggleBool?: StringFilter; - /** Filter by the object’s `tgEventBool` field. */ - tgEventBool?: StringFilter; - /** Filter by the object’s `upsertAggregate` field. */ - 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. */ - levelAchieved?: StringFilter; - /** Filter by the object’s `tgCheckAchievements` field. */ - tgCheckAchievements?: StringFilter; - /** Filter by the object’s `grantAchievement` field. */ - grantAchievement?: StringFilter; - /** Filter by the object’s `tgAchievementReward` field. */ - tgAchievementReward?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EventsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EventsModuleFilter[]; - /** Negates the expression. */ - not?: EventsModuleFilter; - /** Filter by the object’s `achievementRewardsTable` relation. */ - achievementRewardsTable?: TableFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventAggregatesTable` relation. */ - eventAggregatesTable?: TableFilter; - /** Filter by the object’s `eventTypesTable` relation. */ - eventTypesTable?: TableFilter; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** Filter by the object’s `levelGrantsTable` relation. */ - levelGrantsTable?: TableFilter; - /** Filter by the object’s `levelRequirementsTable` relation. */ - levelRequirementsTable?: TableFilter; - /** Filter by the object’s `levelsTable` relation. */ - levelsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyLimitsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: LimitsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: LimitsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: LimitsModuleFilter; -} -/** A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface LimitsModuleFilter { - /** Filter by the object’s `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 `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 `limitIncrementFunction` field. */ - limitIncrementFunction?: StringFilter; - /** Filter by the object’s `limitDecrementFunction` field. */ - limitDecrementFunction?: StringFilter; - /** Filter by the object’s `limitIncrementTrigger` field. */ - limitIncrementTrigger?: StringFilter; - /** Filter by the object’s `limitDecrementTrigger` field. */ - limitDecrementTrigger?: StringFilter; - /** Filter by the object’s `limitUpdateTrigger` field. */ - limitUpdateTrigger?: StringFilter; - /** Filter by the object’s `limitCheckFunction` field. */ - limitCheckFunction?: StringFilter; - /** Filter by the object’s `limitCreditsTableId` field. */ - limitCreditsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `creditCodesTableId` field. */ - creditCodesTableId?: UUIDFilter; - /** Filter by the object’s `creditCodeItemsTableId` field. */ - creditCodeItemsTableId?: UUIDFilter; - /** Filter by the object’s `creditRedemptionsTableId` field. */ - creditRedemptionsTableId?: UUIDFilter; - /** Filter by the object’s `aggregateTableId` field. */ - aggregateTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsTableId` field. */ - limitCapsTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsDefaultsTableId` field. */ - limitCapsDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `capCheckTrigger` field. */ - capCheckTrigger?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: LimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitsModuleFilter[]; - /** Negates the expression. */ - not?: LimitsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `aggregateTable` relation. */ - aggregateTable?: TableFilter; - /** A related `aggregateTable` exists. */ - aggregateTableExists?: boolean; - /** Filter by the object’s `creditCodeItemsTable` relation. */ - creditCodeItemsTable?: TableFilter; - /** A related `creditCodeItemsTable` exists. */ - creditCodeItemsTableExists?: boolean; - /** Filter by the object’s `creditCodesTable` relation. */ - creditCodesTable?: TableFilter; - /** A related `creditCodesTable` exists. */ - creditCodesTableExists?: boolean; - /** Filter by the object’s `creditRedemptionsTable` relation. */ - creditRedemptionsTable?: TableFilter; - /** A related `creditRedemptionsTable` exists. */ - creditRedemptionsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** A related `eventsTable` exists. */ - eventsTableExists?: boolean; - /** Filter by the object’s `limitCapsDefaultsTable` relation. */ - limitCapsDefaultsTable?: TableFilter; - /** A related `limitCapsDefaultsTable` exists. */ - limitCapsDefaultsTableExists?: boolean; - /** Filter by the object’s `limitCapsTable` relation. */ - limitCapsTable?: TableFilter; - /** A related `limitCapsTable` exists. */ - limitCapsTableExists?: boolean; - /** Filter by the object’s `limitCreditsTable` relation. */ - limitCreditsTable?: TableFilter; - /** A related `limitCreditsTable` exists. */ - limitCreditsTableExists?: boolean; - /** Filter by the object’s `limitWarningStateTable` relation. */ - limitWarningStateTable?: TableFilter; - /** A related `limitWarningStateTable` exists. */ - limitWarningStateTableExists?: boolean; - /** Filter by the object’s `limitWarningsTable` relation. */ - limitWarningsTable?: TableFilter; - /** A related `limitWarningsTable` exists. */ - limitWarningsTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipTypesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipTypesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipTypesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipTypesModuleFilter; -} -/** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypesModuleFilter { - /** 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?: MembershipTypesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; - /** Negates the expression. */ - not?: MembershipTypesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipsModuleFilter; -} -/** 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultLimitsTable` relation. */ - defaultLimitsTable?: TableFilter; - /** Filter by the object’s `defaultPermissionsTable` relation. */ - defaultPermissionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `entityTableOwner` relation. */ - entityTableOwner?: FieldFilter; - /** A related `entityTableOwner` exists. */ - entityTableOwnerExists?: boolean; - /** Filter by the object’s `grantsTable` relation. */ - grantsTable?: TableFilter; - /** Filter by the object’s `limitsTable` relation. */ - limitsTable?: TableFilter; - /** Filter by the object’s `membersTable` relation. */ - membersTable?: TableFilter; - /** Filter by the object’s `membershipDefaultsTable` relation. */ - membershipDefaultsTable?: TableFilter; - /** Filter by the object’s `membershipSettingsTable` relation. */ - membershipSettingsTable?: TableFilter; - /** A related `membershipSettingsTable` exists. */ - membershipSettingsTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sprtTable` relation. */ - sprtTable?: TableFilter; -} -/** A filter to be used against many `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPermissionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PermissionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PermissionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PermissionsModuleFilter; -} -/** 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPhoneNumbersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumbersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumbersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumbersModuleFilter; -} -/** A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumbersModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: PhoneNumbersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumbersModuleFilter[]; - /** Negates the expression. */ - not?: PhoneNumbersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyProfilesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ProfilesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ProfilesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ProfilesModuleFilter; -} -/** 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 `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 `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; - /** Filter by the object’s `profileGrantsTableId` field. */ - profileGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileGrantsTableName` field. */ - profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ - profileDefinitionGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ - profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `profileTemplatesTableId` field. */ - profileTemplatesTableId?: UUIDFilter; - /** Filter by the object’s `profileTemplatesTableName` field. */ - profileTemplatesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ProfilesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ProfilesModuleFilter[]; - /** Negates the expression. */ - not?: ProfilesModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `profileDefinitionGrantsTable` relation. */ - profileDefinitionGrantsTable?: TableFilter; - /** Filter by the object’s `profileGrantsTable` relation. */ - profileGrantsTable?: TableFilter; - /** Filter by the object’s `profilePermissionsTable` relation. */ - profilePermissionsTable?: TableFilter; - /** Filter by the object’s `profileTemplatesTable` relation. */ - profileTemplatesTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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. */ - 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; - /** Checks for all expressions in this list. */ - and?: RlsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsModuleFilter[]; - /** Negates the expression. */ - not?: RlsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against many `UserStateModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserStateModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserStateModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserStateModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserStateModuleFilter; -} -/** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionsModuleFilter; -} -/** A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SessionsModuleFilter { - /** 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 `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsDefaultExpiration` field. */ - sessionsDefaultExpiration?: IntervalFilter; - /** Filter by the object’s `sessionsTable` field. */ - sessionsTable?: StringFilter; - /** Filter by the object’s `sessionCredentialsTable` field. */ - sessionCredentialsTable?: StringFilter; - /** Filter by the object’s `authSettingsTable` field. */ - authSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SessionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SessionsModuleFilter[]; - /** Negates the expression. */ - not?: SessionsModuleFilter; - /** Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. */ - authSettingsTableByAuthSettingsTableId?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. */ - sessionCredentialsTableBySessionCredentialsTableId?: TableFilter; - /** Filter by the object’s `sessionsTableBySessionsTableId` relation. */ - sessionsTableBySessionsTableId?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against many `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserAuthModuleFilter; -} -/** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UserAuthModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `encryptedTableId` field. */ - encryptedTableId?: 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 `auditsTableName` field. */ - auditsTableName?: StringFilter; - /** Filter by the object’s `signInFunction` field. */ - signInFunction?: StringFilter; - /** Filter by the object’s `signUpFunction` field. */ - signUpFunction?: StringFilter; - /** Filter by the object’s `signOutFunction` field. */ - signOutFunction?: StringFilter; - /** Filter by the object’s `setPasswordFunction` field. */ - setPasswordFunction?: StringFilter; - /** Filter by the object’s `resetPasswordFunction` field. */ - resetPasswordFunction?: StringFilter; - /** Filter by the object’s `forgotPasswordFunction` field. */ - forgotPasswordFunction?: StringFilter; - /** Filter by the object’s `sendVerificationEmailFunction` field. */ - sendVerificationEmailFunction?: StringFilter; - /** Filter by the object’s `verifyEmailFunction` field. */ - verifyEmailFunction?: StringFilter; - /** Filter by the object’s `verifyPasswordFunction` field. */ - verifyPasswordFunction?: StringFilter; - /** Filter by the object’s `checkPasswordFunction` field. */ - checkPasswordFunction?: StringFilter; - /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ - sendAccountDeletionEmailFunction?: StringFilter; - /** Filter by the object’s `deleteAccountFunction` field. */ - deleteAccountFunction?: StringFilter; - /** Filter by the object’s `signInCrossOriginFunction` field. */ - signInCrossOriginFunction?: StringFilter; - /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ - requestCrossOriginTokenFunction?: StringFilter; - /** Filter by the object’s `extendTokenExpires` field. */ - extendTokenExpires?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserAuthModuleFilter[]; - /** Negates the expression. */ - not?: UserAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `encryptedTable` relation. */ - encryptedTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against many `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUsersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UsersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UsersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UsersModuleFilter; -} -/** A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UsersModuleFilter { - /** 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 `typeTableId` field. */ - typeTableId?: UUIDFilter; - /** Filter by the object’s `typeTableName` field. */ - typeTableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UsersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UsersModuleFilter[]; - /** Negates the expression. */ - not?: UsersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `typeTable` relation. */ - typeTable?: TableFilter; -} -/** A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HierarchyModuleFilter { - /** 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 `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 `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 `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; - /** Filter by the object’s `chartEdgeGrantsTable` relation. */ - chartEdgeGrantsTable?: TableFilter; - /** Filter by the object’s `chartEdgesTable` relation. */ - chartEdgesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** Filter by the object’s `hierarchySprtTable` relation. */ - hierarchySprtTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `templateId` field. */ - templateId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintFilter[]; - /** Negates the expression. */ - not?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `template` relation. */ - template?: BlueprintTemplateFilter; - /** A related `template` exists. */ - templateExists?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; -} -/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `version` field. */ - version?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `visibility` field. */ - visibility?: StringFilter; - /** Filter by the object’s `categories` field. */ - categories?: StringListFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `definitionSchemaVersion` field. */ - definitionSchemaVersion?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `complexity` field. */ - complexity?: StringFilter; - /** Filter by the object’s `copyCount` field. */ - copyCount?: IntFilter; - /** Filter by the object’s `forkCount` field. */ - forkCount?: IntFilter; - /** Filter by the object’s `forkedFromId` field. */ - forkedFromId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintTemplateFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintTemplateFilter[]; - /** Negates the expression. */ - not?: BlueprintTemplateFilter; - /** Filter by the object’s `forkedFrom` relation. */ - forkedFrom?: BlueprintTemplateFilter; - /** A related `forkedFrom` exists. */ - forkedFromExists?: boolean; - /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ - blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; - /** `blueprintTemplatesByForkedFromId` exist. */ - blueprintTemplatesByForkedFromIdExist?: boolean; - /** Filter by the object’s `blueprintsByTemplateId` relation. */ - blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; - /** `blueprintsByTemplateId` exist. */ - blueprintsByTemplateIdExist?: boolean; -} -/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintTemplateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintTemplateFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintTemplateFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintTemplateFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against many `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageModuleFilter; -} -/** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageModuleFilter { - /** Filter by the object’s `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 `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `filesTableId` field. */ - filesTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `filesTableName` field. */ - filesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - hasPathShares?: BooleanFilter; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: UUIDFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `hasVersioning` field. */ - hasVersioning?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; - /** Filter by the object’s `fileEventsTableId` field. */ - fileEventsTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Filter by the object’s `bucketsTable` relation. */ - bucketsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `fileEventsTable` relation. */ - fileEventsTable?: TableFilter; - /** A related `fileEventsTable` exists. */ - fileEventsTableExists?: boolean; - /** Filter by the object’s `filesTable` relation. */ - filesTable?: TableFilter; - /** Filter by the object’s `pathSharesTable` relation. */ - pathSharesTable?: TableFilter; - /** A related `pathSharesTable` exists. */ - pathSharesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEntityTypeProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EntityTypeProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: EntityTypeProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: EntityTypeProvisionFilter; -} -/** 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. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - 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 `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `RateLimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitsModuleFilter { - /** 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 `rateLimitSettingsTableId` field. */ - rateLimitSettingsTableId?: UUIDFilter; - /** Filter by the object’s `ipRateLimitsTableId` field. */ - ipRateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitsTableId` field. */ - rateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitSettingsTable` field. */ - rateLimitSettingsTable?: StringFilter; - /** Filter by the object’s `ipRateLimitsTable` field. */ - ipRateLimitsTable?: StringFilter; - /** Filter by the object’s `rateLimitsTable` field. */ - rateLimitsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitsModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. */ - ipRateLimitsTableByIpRateLimitsTableId?: TableFilter; - /** Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. */ - rateLimitSettingsTableByRateLimitSettingsTableId?: TableFilter; - /** Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation. */ - rateLimitsTableByRateLimitsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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. */ - 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 `userDevicesTableId` field. */ - userDevicesTableId?: UUIDFilter; - /** Filter by the object’s `deviceSettingsTableId` field. */ - deviceSettingsTableId?: UUIDFilter; - /** Filter by the object’s `userDevicesTable` field. */ - userDevicesTable?: StringFilter; - /** Filter by the object’s `deviceSettingsTable` field. */ - deviceSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DevicesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DevicesModuleFilter[]; - /** Negates the expression. */ - not?: DevicesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. */ - deviceSettingsTableByDeviceSettingsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ - userDevicesTableByUserDevicesTableId?: TableFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnCredentialsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialsModuleFilter; -} -/** A filter to be used against `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialsModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against many `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnAuthModuleFilter; -} -/** A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -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[]; - /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; - /** Filter by the object’s `authSettingsTable` relation. */ - authSettingsTable?: TableFilter; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNotificationsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NotificationsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NotificationsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NotificationsModuleFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `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; - /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; - /** Negates the expression. */ - not?: NotificationsModuleFilter; - /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ - channelsTableByChannelsTableId?: TableFilter; - /** A related `channelsTableByChannelsTableId` exists. */ - channelsTableByChannelsTableIdExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ - deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ - deliveryLogTableByDeliveryLogTableIdExists?: boolean; - /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ - notificationsTableByNotificationsTableId?: TableFilter; - /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ - organizationSettingsTableByOrganizationSettingsTableId?: TableFilter; - /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */ - organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ - preferencesTableByPreferencesTableId?: TableFilter; - /** A related `preferencesTableByPreferencesTableId` exists. */ - preferencesTableByPreferencesTableIdExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ - readStateTableByReadStateTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ - userSettingsTableByUserSettingsTableId?: TableFilter; - /** A related `userSettingsTableByUserSettingsTableId` exists. */ - userSettingsTableByUserSettingsTableIdExists?: boolean; -} -/** 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 `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 `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `planLimitsTable` relation. */ - planLimitsTable?: TableFilter; - /** Filter by the object’s `planOverridesTable` relation. */ - planOverridesTable?: TableFilter; - /** A related `planOverridesTable` exists. */ - planOverridesTableExists?: boolean; - /** Filter by the object’s `planPricingTable` relation. */ - planPricingTable?: TableFilter; - /** A related `planPricingTable` exists. */ - planPricingTableExists?: boolean; - /** Filter by the object’s `plansTable` relation. */ - plansTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; - /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `meterCreditsTable` relation. */ - meterCreditsTable?: TableFilter; - /** Filter by the object’s `meterSourcesTable` relation. */ - meterSourcesTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; - /** Filter by the object’s `billingCustomersTable` relation. */ - billingCustomersTable?: TableFilter; - /** Filter by the object’s `billingPricesTable` relation. */ - billingPricesTable?: TableFilter; - /** Filter by the object’s `billingProductsTable` relation. */ - billingProductsTable?: TableFilter; - /** Filter by the object’s `billingSubscriptionsTable` relation. */ - billingSubscriptionsTable?: TableFilter; - /** Filter by the object’s `billingWebhookEventsTable` relation. */ - billingWebhookEventsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `pricesTable` relation. */ - pricesTable?: TableFilter; - /** A related `pricesTable` exists. */ - pricesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitMetersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInferenceLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InferenceLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InferenceLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InferenceLogModuleFilter; -} -/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface InferenceLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; - /** Negates the expression. */ - not?: InferenceLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `inferenceLogTable` relation. */ - inferenceLogTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyComputeLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ComputeLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ComputeLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ComputeLogModuleFilter; -} -/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ComputeLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; - /** Negates the expression. */ - not?: ComputeLogModuleFilter; - /** Filter by the object’s `computeLogTable` relation. */ - computeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTransferLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TransferLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: TransferLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: TransferLogModuleFilter; -} -/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TransferLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; - /** Negates the expression. */ - not?: TransferLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `transferLogTable` relation. */ - transferLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageLogModuleFilter; -} -/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; - /** Negates the expression. */ - not?: StorageLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storageLogTable` relation. */ - storageLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDbUsageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DbUsageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DbUsageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DbUsageModuleFilter; -} -/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; - /** Negates the expression. */ - not?: DbUsageModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `queryStatsDailyTable` relation. */ - queryStatsDailyTable?: TableFilter; - /** Filter by the object’s `queryStatsLogTable` relation. */ - queryStatsLogTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `tableStatsDailyTable` relation. */ - tableStatsDailyTable?: TableFilter; - /** Filter by the object’s `tableStatsLogTable` relation. */ - tableStatsLogTable?: TableFilter; -} -/** A filter to be used against many `AgentModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAgentModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentModuleFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `knowledgeTableId` field. */ - knowledgeTableId?: UUIDFilter; - /** Filter by the object’s `threadTableName` field. */ - threadTableName?: StringFilter; - /** Filter by the object’s `messageTableName` field. */ - messageTableName?: StringFilter; - /** Filter by the object’s `taskTableName` field. */ - taskTableName?: StringFilter; - /** Filter by the object’s `promptsTableName` field. */ - promptsTableName?: StringFilter; - /** Filter by the object’s `knowledgeTableName` field. */ - knowledgeTableName?: StringFilter; - /** Filter by the object’s `hasKnowledge` field. */ - hasKnowledge?: BooleanFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `knowledgeConfig` field. */ - knowledgeConfig?: JSONFilter; - /** Filter by the object’s `knowledgePolicies` field. */ - knowledgePolicies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentModuleFilter[]; - /** Negates the expression. */ - not?: AgentModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `knowledgeTable` relation. */ - knowledgeTable?: TableFilter; - /** A related `knowledgeTable` exists. */ - knowledgeTableExists?: boolean; - /** Filter by the object’s `messageTable` relation. */ - messageTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `promptsTable` relation. */ - promptsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `taskTable` relation. */ - taskTable?: TableFilter; - /** Filter by the object’s `threadTable` relation. */ - threadTable?: TableFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyGraphModuleFilter { - /** 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 filter to be used against many `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNamespaceModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NamespaceModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NamespaceModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NamespaceModuleFilter; -} -/** 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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `namespaceEventsTable` relation. */ - namespaceEventsTable?: TableFilter; - /** Filter by the object’s `namespacesTable` relation. */ - namespacesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against many `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionModuleFilter; -} -/** 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 `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 `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `configRequirementsTable` relation. */ - configRequirementsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `definitionsTable` relation. */ - definitionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `executionLogsTable` relation. */ - executionLogsTable?: TableFilter; - /** Filter by the object’s `invocationsTable` relation. */ - invocationsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `requirementsTable` relation. */ - requirementsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretDefinitionsTable` relation. */ - secretDefinitionsTable?: TableFilter; -} -/** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseProvisionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseProvisionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseProvisionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseProvisionModuleFilter; -} -/** 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?: StringListFilter; - /** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** A related `database` exists. */ - databaseExists?: boolean; -} -/** A filter to be used against `IdentityProvider` object types. All fields are combined with a logical ‘and.’ */ -export interface IdentityProviderFilter { - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `enabled` field. */ - enabled?: BooleanFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProviderFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProviderFilter[]; - /** Negates the expression. */ - not?: IdentityProviderFilter; -} -/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; -} -/** A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ */ -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; - /** Checks for all expressions in this list. */ - and?: MigrateFileFilter[]; - /** Checks for any expressions in this list. */ - or?: MigrateFileFilter[]; - /** Negates the expression. */ - not?: MigrateFileFilter; -} -/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUploadFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUpload; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUpload; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUpload[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUpload[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUpload; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUpload; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeUpload; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeUpload; -} -/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ -export interface NodeTypeRegistryFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parameterSchema` field. */ - parameterSchema?: JSONFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: NodeTypeRegistryFilter[]; - /** Checks for any expressions in this list. */ - or?: NodeTypeRegistryFilter[]; - /** Negates the expression. */ - not?: NodeTypeRegistryFilter; -} -/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -/** A filter to be used against `UserConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ -export interface UserConnectedAccountFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `service` field. */ - service?: StringFilter; - /** Filter by the object’s `identifier` field. */ - identifier?: StringFilter; - /** Filter by the object’s `details` field. */ - details?: JSONFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: UserConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: UserConnectedAccountFilter[]; - /** Negates the expression. */ - not?: UserConnectedAccountFilter; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} -/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ -export interface SqlActionFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: StringFilter; - /** Filter by the object’s `deps` field. */ - deps?: StringListFilter; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `revert` field. */ - revert?: StringFilter; - /** Filter by the object’s `verify` field. */ - verify?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: SqlActionFilter[]; - /** Checks for any expressions in this list. */ - or?: SqlActionFilter[]; - /** Negates the expression. */ - not?: SqlActionFilter; -} -/** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -/** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} -/** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */ -export interface AstMigrationFilter { - /** Filter by the object’s `id` field. */ - 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 SendAccountDeletionEmailInput { - clientMutationId?: string; -} -export interface SignOutInput { - clientMutationId?: string; -} -export interface AcceptDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface CancelDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface RejectDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface DisconnectAccountInput { - clientMutationId?: string; - accountId: string; -} -export interface RevokeApiKeyInput { - clientMutationId?: string; - keyId: string; -} -export interface RevokeSessionInput { - clientMutationId?: string; - sessionId: string; -} -export interface VerifyPasswordInput { - clientMutationId?: string; - password: string; -} -export interface VerifyTotpInput { - clientMutationId?: string; - totpValue: string; -} -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface CheckPasswordInput { - clientMutationId?: string; - password?: string; -} -export interface ConfirmDeleteAccountInput { - clientMutationId?: string; - userId?: string; - token?: string; -} -export interface SetPasswordInput { - clientMutationId?: string; - currentPassword?: string; - newPassword?: string; -} -export interface VerifyEmailInput { - clientMutationId?: string; - emailId?: string; - token?: string; -} -export interface ConstructBlueprintInput { - clientMutationId?: string; - blueprintId?: string; - schemaId?: string; -} -export interface ProvisionNewUserInput { - clientMutationId?: string; - email?: string; - password?: string; -} -export interface ResetPasswordInput { - clientMutationId?: string; - roleId?: string; - resetToken?: string; - newPassword?: string; -} -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: unknown; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: unknown; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: unknown; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: unknown; -} -export interface CopyTemplateToBlueprintInput { - clientMutationId?: string; - templateId?: string; - databaseId?: string; - ownerId?: string; - nameOverride?: string; - displayNameOverride?: string; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - pDatabaseId?: string; - pSourceTableId?: string; - pSourceFieldId?: string; - pTargetTableId?: string; - pTargetFieldId?: string; - pName?: string; - pOperator?: string; - pParamName?: string; -} -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface ProvisionRelationInput { - clientMutationId?: string; - databaseId?: string; - relationType?: string; - sourceTableId?: string; - targetTableId?: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - createIndex?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - exposeInApi?: boolean; - nodes?: unknown; - grants?: unknown; - policies?: unknown; -} -export interface SetFieldOrderInput { - clientMutationId?: string; - fieldIds?: string[]; -} -export interface ApplyRlsInput { - clientMutationId?: string; - tableId?: string; - grants?: unknown; - policyType?: string; - vars?: unknown; - fieldIds?: string[]; - permissive?: boolean; - name?: string; -} -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: string[]; - pOptions?: unknown; -} -export interface CreateUserDatabaseInput { - clientMutationId?: string; - databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; -} -export interface ExtendTokenExpiresInput { - clientMutationId?: string; - amount?: IntervalInput; -} -export interface CreateApiKeyInput { - clientMutationId?: string; - keyName?: string; - accessLevel?: string; - mfaLevel?: string; - expiresIn?: IntervalInput; -} -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - schemaId?: string; - tableName?: string; - tableId?: string; - nodes?: unknown; - fields?: unknown; - policies?: unknown; - grants?: unknown; - useRls?: boolean; - indexes?: unknown; - fullTextSearches?: unknown; - uniqueConstraints?: unknown; - description?: string; -} -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface CreateDefaultIdsModuleInput { - clientMutationId?: string; - /** The `DefaultIdsModule` to be created by this mutation. */ - defaultIdsModule: DefaultIdsModuleInput; -} -/** An input for mutations affecting `DefaultIdsModule` */ -export interface DefaultIdsModuleInput { - id?: string; - databaseId: string; -} -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - /** The `AppLimitCreditRedemption` to be created by this mutation. */ - appLimitCreditRedemption: AppLimitCreditRedemptionInput; -} -/** An input for mutations affecting `AppLimitCreditRedemption` */ -export interface AppLimitCreditRedemptionInput { - id?: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId: string; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId: string; -} -export interface CreateFunctionInput { - clientMutationId?: string; - /** The `Function` to be created by this mutation. */ - function: FunctionInput; -} -/** An input for mutations affecting `Function` */ -export interface FunctionInput { - id?: string; - databaseId: string; - schemaId: string; - name: string; -} -export interface CreateViewTableInput { - clientMutationId?: string; - /** The `ViewTable` to be created by this mutation. */ - viewTable: ViewTableInput; -} -/** An input for mutations affecting `ViewTable` */ -export interface ViewTableInput { - id?: string; - viewId: string; - tableId: string; - joinOrder?: number; -} -export interface CreateApiSchemaInput { - clientMutationId?: string; - /** The `ApiSchema` to be created by this mutation. */ - apiSchema: ApiSchemaInput; -} -/** An input for mutations affecting `ApiSchema` */ -export interface ApiSchemaInput { - /** Unique identifier for this API-schema mapping */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Metaschema schema being exposed through the API */ - schemaId: string; - /** API that exposes this schema */ - apiId: string; -} -export interface CreateSiteThemeInput { - clientMutationId?: string; - /** The `SiteTheme` to be created by this mutation. */ - siteTheme: SiteThemeInput; -} -/** An input for mutations affecting `SiteTheme` */ -export interface SiteThemeInput { - /** Unique identifier for this theme record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Site this theme belongs to */ - siteId: string; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme: unknown; -} -export interface CreateOrgMemberInput { - clientMutationId?: string; - /** The `OrgMember` to be created by this mutation. */ - orgMember: OrgMemberInput; -} -/** An input for mutations affecting `OrgMember` */ -export interface OrgMemberInput { - id?: string; - /** Whether this member has admin privileges */ - isAdmin?: boolean; - /** References the user who is a member */ - actorId: string; - /** References the entity (org or group) this member belongs to */ - entityId: string; -} -export interface CreateCorsSettingInput { - clientMutationId?: string; - /** The `CorsSetting` to be created by this mutation. */ - corsSetting: CorsSettingInput; -} -/** An input for mutations affecting `CorsSetting` */ -export interface CorsSettingInput { - /** Unique identifier for this CORS settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Optional API for per-API override; NULL means database-wide default */ - apiId?: string; - /** Array of allowed CORS origins (e.g. https://example.com) */ - allowedOrigins?: string[]; -} -export interface CreateIdentityProviderInput { - clientMutationId?: string; - /** The `IdentityProvider` to be created by this mutation. */ - identityProvider: IdentityProviderInput; -} -/** An input for mutations affecting `IdentityProvider` */ -export interface IdentityProviderInput { - slug?: string; - kind?: string; - displayName?: string; - enabled?: boolean; - isBuiltIn?: boolean; -} -export interface CreateConfigSecretsOrgModuleInput { - clientMutationId?: string; - /** The `ConfigSecretsOrgModule` to be created by this mutation. */ - configSecretsOrgModule: ConfigSecretsOrgModuleInput; -} -/** An input for mutations affecting `ConfigSecretsOrgModule` */ -export interface ConfigSecretsOrgModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface CreateMembershipTypesModuleInput { - clientMutationId?: string; - /** The `MembershipTypesModule` to be created by this mutation. */ - membershipTypesModule: MembershipTypesModuleInput; -} -/** An input for mutations affecting `MembershipTypesModule` */ -export interface MembershipTypesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - 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 CreateAppPermissionDefaultInput { - clientMutationId?: string; - /** The `AppPermissionDefault` to be created by this mutation. */ - appPermissionDefault: AppPermissionDefaultInput; -} -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -export interface CreateApiModuleInput { - clientMutationId?: string; - /** The `ApiModule` to be created by this mutation. */ - apiModule: ApiModuleInput; -} -/** An input for mutations affecting `ApiModule` */ -export interface ApiModuleInput { - /** Unique identifier for this API module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** API this module configuration belongs to */ - apiId: string; - /** Module name (e.g. auth, uploads, webhooks) */ - name: string; - /** JSON configuration data for this module */ - data: unknown; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - /** The `SiteModule` to be created by this mutation. */ - siteModule: SiteModuleInput; -} -/** An input for mutations affecting `SiteModule` */ -export interface SiteModuleInput { - /** Unique identifier for this site module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Site this module configuration belongs to */ - siteId: string; - /** Module name (e.g. user_auth_module, analytics) */ - name: string; - /** JSON configuration data for this module */ - data: unknown; -} -export interface CreateRoleTypeInput { - clientMutationId?: string; - /** The `RoleType` to be created by this mutation. */ - roleType: RoleTypeInput; -} -/** An input for mutations affecting `RoleType` */ -export interface RoleTypeInput { - id: number; - name: string; -} -export interface CreateSchemaGrantInput { - clientMutationId?: string; - /** The `SchemaGrant` to be created by this mutation. */ - schemaGrant: SchemaGrantInput; -} -/** An input for mutations affecting `SchemaGrant` */ -export interface SchemaGrantInput { - id?: string; - databaseId?: string; - schemaId: string; - granteeName: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateTriggerFunctionInput { - clientMutationId?: string; - /** The `TriggerFunction` to be created by this mutation. */ - triggerFunction: TriggerFunctionInput; -} -/** An input for mutations affecting `TriggerFunction` */ -export interface TriggerFunctionInput { - id?: string; - databaseId: string; - name: string; - code?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateViewRuleInput { - clientMutationId?: string; - /** The `ViewRule` to be created by this mutation. */ - viewRule: ViewRuleInput; -} -/** An input for mutations affecting `ViewRule` */ -export interface ViewRuleInput { - id?: string; - databaseId?: string; - viewId: string; - name: string; - /** INSERT, UPDATE, or DELETE */ - event: string; - /** NOTHING (for read-only) or custom action */ - action?: 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; - schemaId?: string; - tableId?: string; - tableName?: string; - configDefinitionsTableId?: string; -} -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; - tableId?: string; - tableName?: string; -} -export interface CreateSessionSecretsModuleInput { - clientMutationId?: string; - /** The `SessionSecretsModule` to be created by this mutation. */ - sessionSecretsModule: SessionSecretsModuleInput; -} -/** 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; -} -export interface CreateAppAdminGrantInput { - clientMutationId?: string; - /** The `AppAdminGrant` to be created by this mutation. */ - appAdminGrant: AppAdminGrantInput; -} -/** An input for mutations affecting `AppAdminGrant` */ -export interface AppAdminGrantInput { - id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppOwnerGrantInput { - clientMutationId?: string; - /** The `AppOwnerGrant` to be created by this mutation. */ - appOwnerGrant: AppOwnerGrantInput; -} -/** An input for mutations affecting `AppOwnerGrant` */ -export interface AppOwnerGrantInput { - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - /** The `OrgPermissionDefault` to be created by this mutation. */ - orgPermissionDefault: OrgPermissionDefaultInput; -} -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; - /** References the entity these default permissions apply to */ - entityId: string; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - /** The `MigrateFile` to be created by this mutation. */ - migrateFile: MigrateFileInput; -} -/** An input for mutations affecting `MigrateFile` */ -export interface MigrateFileInput { - id?: string; - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; -} -export interface CreateDefaultPrivilegeInput { - clientMutationId?: string; - /** The `DefaultPrivilege` to be created by this mutation. */ - defaultPrivilege: DefaultPrivilegeInput; -} -/** An input for mutations affecting `DefaultPrivilege` */ -export interface DefaultPrivilegeInput { - id?: string; - databaseId?: string; - schemaId: string; - objectType: string; - privilege: string; - granteeName: string; - isGrant?: boolean; -} -export interface CreateViewGrantInput { - clientMutationId?: string; - /** The `ViewGrant` to be created by this mutation. */ - viewGrant: ViewGrantInput; -} -/** An input for mutations affecting `ViewGrant` */ -export interface ViewGrantInput { - id?: string; - databaseId?: string; - viewId: string; - granteeName: string; - privilege: string; - withGrantOption?: boolean; - isGrant?: boolean; -} -export interface CreateApiInput { - clientMutationId?: string; - /** The `Api` to be created by this mutation. */ - api: ApiInput; -} -/** An input for mutations affecting `Api` */ -export interface ApiInput { - /** Unique identifier for this API */ - id?: string; - /** Reference to the metaschema database this API serves */ - databaseId: string; - /** Unique name for this API within its database */ - name: string; - /** PostgreSQL database name to connect to */ - dbname?: string; - /** PostgreSQL role used for authenticated requests */ - roleName?: string; - /** PostgreSQL role used for anonymous/unauthenticated requests */ - anonRole?: string; - /** Whether this API is publicly accessible without authentication */ - isPublic?: boolean; -} -export interface CreateConnectedAccountsModuleInput { - clientMutationId?: string; - /** The `ConnectedAccountsModule` to be created by this mutation. */ - connectedAccountsModule: ConnectedAccountsModuleInput; -} -/** An input for mutations affecting `ConnectedAccountsModule` */ -export interface ConnectedAccountsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; -} -export interface CreateDevicesModuleInput { - clientMutationId?: string; - /** The `DevicesModule` to be created by this mutation. */ - devicesModule: DevicesModuleInput; -} -/** An input for mutations affecting `DevicesModule` */ -export interface DevicesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; -} -export interface CreateEmailsModuleInput { - clientMutationId?: string; - /** The `EmailsModule` to be created by this mutation. */ - emailsModule: EmailsModuleInput; -} -/** An input for mutations affecting `EmailsModule` */ -export interface EmailsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; -} -export interface CreatePhoneNumbersModuleInput { - clientMutationId?: string; - /** The `PhoneNumbersModule` to be created by this mutation. */ - phoneNumbersModule: PhoneNumbersModuleInput; -} -/** An input for mutations affecting `PhoneNumbersModule` */ -export interface PhoneNumbersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; -} -export interface CreateUsersModuleInput { - clientMutationId?: string; - /** The `UsersModule` to be created by this mutation. */ - usersModule: UsersModuleInput; -} -/** An input for mutations affecting `UsersModule` */ -export interface UsersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - typeTableId?: string; - typeTableName?: string; -} -export interface CreateWebauthnCredentialsModuleInput { - clientMutationId?: string; - /** The `WebauthnCredentialsModule` to be created by this mutation. */ - webauthnCredentialsModule: WebauthnCredentialsModuleInput; -} -/** An input for mutations affecting `WebauthnCredentialsModule` */ -export interface WebauthnCredentialsModuleInput { - 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; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - /** The `AppMembershipDefault` to be created by this mutation. */ - appMembershipDefault: AppMembershipDefaultInput; -} -/** An input for mutations affecting `AppMembershipDefault` */ -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - /** The `OrgAdminGrant` to be created by this mutation. */ - orgAdminGrant: OrgAdminGrantInput; -} -/** An input for mutations affecting `OrgAdminGrant` */ -export interface OrgAdminGrantInput { - id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId: string; - /** The entity (org or group) this admin grant applies to */ - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - /** The `OrgMembershipDefault` to be created by this mutation. */ - orgMembershipDefault: OrgMembershipDefaultInput; -} -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - /** The `OrgOwnerGrant` to be created by this mutation. */ - orgOwnerGrant: OrgOwnerGrantInput; -} -/** An input for mutations affecting `OrgOwnerGrant` */ -export interface OrgOwnerGrantInput { - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId: string; - /** The entity (org or group) this ownership grant applies to */ - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - /** The `NodeTypeRegistry` to be created by this mutation. */ - nodeTypeRegistry: NodeTypeRegistryInput; -} -/** An input for mutations affecting `NodeTypeRegistry` */ -export interface NodeTypeRegistryInput { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: unknown; - tags?: string[]; -} -export interface CreateAppLimitCapsDefaultInput { - clientMutationId?: string; - /** The `AppLimitCapsDefault` to be created by this mutation. */ - appLimitCapsDefault: AppLimitCapsDefaultInput; -} -/** An input for mutations affecting `AppLimitCapsDefault` */ -export interface AppLimitCapsDefaultInput { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface CreateOrgLimitCapsDefaultInput { - clientMutationId?: string; - /** The `OrgLimitCapsDefault` to be created by this mutation. */ - orgLimitCapsDefault: OrgLimitCapsDefaultInput; -} -/** An input for mutations affecting `OrgLimitCapsDefault` */ -export interface OrgLimitCapsDefaultInput { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface CreateAppLimitCapInput { - clientMutationId?: string; - /** The `AppLimitCap` to be created by this mutation. */ - appLimitCap: AppLimitCapInput; -} -/** An input for mutations affecting `AppLimitCap` */ -export interface AppLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - /** The `OrgLimitCap` to be created by this mutation. */ - orgLimitCap: OrgLimitCapInput; -} -/** An input for mutations affecting `OrgLimitCap` */ -export interface OrgLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - /** The `UserConnectedAccount` to be created by this mutation. */ - userConnectedAccount: UserConnectedAccountInput; -} -/** An input for mutations affecting `UserConnectedAccount` */ -export interface UserConnectedAccountInput { - id?: string; - ownerId?: string; - service?: string; - identifier?: string; - details?: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateDatabaseInput { - clientMutationId?: string; - /** The `Database` to be created by this mutation. */ - database: DatabaseInput; -} -/** An input for mutations affecting `Database` */ -export interface DatabaseInput { - id?: string; - ownerId?: string; - schemaHash?: string; - name?: string; - label?: string; - hash?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateCryptoAddressesModuleInput { - clientMutationId?: string; - /** The `CryptoAddressesModule` to be created by this mutation. */ - cryptoAddressesModule: CryptoAddressesModuleInput; -} -/** An input for mutations affecting `CryptoAddressesModule` */ -export interface CryptoAddressesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - cryptoNetwork?: string; -} -export interface CreateOrgChartEdgeInput { - clientMutationId?: string; - /** The `OrgChartEdge` to be created by this mutation. */ - orgChartEdge: OrgChartEdgeInput; -} -/** An input for mutations affecting `OrgChartEdge` */ -export interface OrgChartEdgeInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface CreateCryptoAddressInput { - clientMutationId?: string; - /** The `CryptoAddress` to be created by this mutation. */ - cryptoAddress: CryptoAddressInput; -} -/** An input for mutations affecting `CryptoAddress` */ -export interface CryptoAddressInput { - id?: string; - ownerId?: string; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address: string; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean; - /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - /** The `AppLimitCreditCodeItem` to be created by this mutation. */ - appLimitCreditCodeItem: AppLimitCreditCodeItemInput; -} -/** An input for mutations affecting `AppLimitCreditCodeItem` */ -export interface AppLimitCreditCodeItemInput { - id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId: string; - /** Number of credits this item grants per redemption */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; -} -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; -} -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { - id?: string; - /** Name identifier of the limit this default applies to */ - name: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; -} -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { - id?: string; - /** Name identifier of the limit this default applies to */ - name: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} -export interface CreateAppPermissionInput { - clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; -} -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; -} -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - /** The `AppLimitCreditCode` to be created by this mutation. */ - appLimitCreditCode: AppLimitCreditCodeInput; -} -/** An input for mutations affecting `AppLimitCreditCode` */ -export interface AppLimitCreditCodeInput { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - /** The `AppLimitWarning` to be created by this mutation. */ - appLimitWarning: AppLimitWarningInput; -} -/** An input for mutations affecting `AppLimitWarning` */ -export interface AppLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; -} -export interface CreateFullTextSearchInput { - clientMutationId?: string; - /** The `FullTextSearch` to be created by this mutation. */ - fullTextSearch: FullTextSearchInput; -} -/** An input for mutations affecting `FullTextSearch` */ -export interface FullTextSearchInput { - id?: string; - databaseId?: string; - tableId: string; - fieldId: string; - fieldIds: string[]; - weights: string[]; - langs: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateTableGrantInput { - clientMutationId?: string; - /** The `TableGrant` to be created by this mutation. */ - tableGrant: TableGrantInput; -} -/** An input for mutations affecting `TableGrant` */ -export interface TableGrantInput { - id?: string; - databaseId?: string; - tableId: string; - privilege: string; - granteeName: string; - fieldIds?: string[]; - isGrant?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateSiteMetadatumInput { - clientMutationId?: string; - /** The `SiteMetadatum` to be created by this mutation. */ - siteMetadatum: SiteMetadatumInput; -} -/** An input for mutations affecting `SiteMetadatum` */ -export interface SiteMetadatumInput { - /** Unique identifier for this metadata record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Site this metadata belongs to */ - siteId: string; - /** Page title for SEO (max 120 characters) */ - title?: string; - /** Meta description for SEO and social sharing (max 120 characters) */ - description?: string; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage; -} -export interface CreatePubkeySettingInput { - clientMutationId?: string; - /** The `PubkeySetting` to be created by this mutation. */ - pubkeySetting: PubkeySettingInput; -} -/** An input for mutations affecting `PubkeySetting` */ -export interface PubkeySettingInput { - /** Unique identifier for this pubkey settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string; - /** Field name used to identify the user in crypto auth functions */ - userField?: string; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string; -} -export interface CreateRateLimitsModuleInput { - clientMutationId?: string; - /** The `RateLimitsModule` to be created by this mutation. */ - rateLimitsModule: RateLimitsModuleInput; -} -/** An input for mutations affecting `RateLimitsModule` */ -export interface RateLimitsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - rateLimitSettingsTableId?: string; - ipRateLimitsTableId?: string; - rateLimitsTableId?: string; - rateLimitSettingsTable?: string; - ipRateLimitsTable?: string; - rateLimitsTable?: string; -} -export interface CreateOrgChartEdgeGrantInput { - clientMutationId?: string; - /** The `OrgChartEdgeGrant` to be created by this mutation. */ - orgChartEdgeGrant: OrgChartEdgeGrantInput; -} -/** An input for mutations affecting `OrgChartEdgeGrant` */ -export interface OrgChartEdgeGrantInput { - id?: string; - /** Organization this grant applies to */ - entityId: string; - /** User ID of the subordinate being placed in the hierarchy */ - childId: string; - /** User ID of the manager being assigned; NULL for top-level positions */ - parentId?: string; - /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ - grantorId?: string; - /** TRUE to add/update the edge, FALSE to remove it */ - isGrant?: boolean; - /** Job title or role name being assigned in this grant */ - positionTitle?: string; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - /** The `PhoneNumber` to be created by this mutation. */ - phoneNumber: PhoneNumberInput; -} -/** An input for mutations affecting `PhoneNumber` */ -export interface PhoneNumberInput { - id?: string; - ownerId?: string; - /** Country calling code (e.g. +1, +44) */ - cc: string; - /** The phone number without country code */ - number: string; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean; - /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - /** The `AppLimitCredit` to be created by this mutation. */ - appLimitCredit: AppLimitCreditInput; -} -/** An input for mutations affecting `AppLimitCredit` */ -export interface AppLimitCreditInput { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -export interface CreateOrgLimitCreditInput { - clientMutationId?: string; - /** The `OrgLimitCredit` to be created by this mutation. */ - orgLimitCredit: OrgLimitCreditInput; -} -/** An input for mutations affecting `OrgLimitCredit` */ -export interface OrgLimitCreditInput { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - /** The `AppClaimedInvite` to be created by this mutation. */ - appClaimedInvite: AppClaimedInviteInput; -} -/** An input for mutations affecting `AppClaimedInvite` */ -export interface AppClaimedInviteInput { - id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - /** The `OrgLimitWarning` to be created by this mutation. */ - orgLimitWarning: OrgLimitWarningInput; -} -/** An input for mutations affecting `OrgLimitWarning` */ -export interface OrgLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; -} -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name: string; - /** Description of what this membership type represents */ - description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; -} -export interface CreateDomainInput { - clientMutationId?: string; - /** The `Domain` to be created by this mutation. */ - domain: DomainInput; -} -/** An input for mutations affecting `Domain` */ -export interface DomainInput { - /** Unique identifier for this domain record */ - id?: string; - /** Reference to the metaschema database this domain belongs to */ - databaseId: string; - /** API endpoint this domain routes to (mutually exclusive with site_id) */ - apiId?: string; - /** Site this domain routes to (mutually exclusive with api_id) */ - siteId?: string; - /** Subdomain portion of the hostname */ - subdomain?: ConstructiveInternalTypeHostname; - /** Root domain of the hostname */ - domain?: ConstructiveInternalTypeHostname; -} -export interface CreateRlsSettingInput { - clientMutationId?: string; - /** The `RlsSetting` to be created by this mutation. */ - rlsSetting: RlsSettingInput; -} -/** An input for mutations affecting `RlsSetting` */ -export interface RlsSettingInput { - /** Unique identifier for this RLS settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ - authenticateSchemaId?: string; - /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ - roleSchemaId?: string; - /** Reference to the authenticate function (FK to metaschema_public.function) */ - authenticateFunctionId?: string; - /** Reference to the strict authenticate function (FK to metaschema_public.function) */ - authenticateStrictFunctionId?: string; - /** Reference to the current_role function (FK to metaschema_public.function) */ - currentRoleFunctionId?: string; - /** Reference to the current_role_id function (FK to metaschema_public.function) */ - currentRoleIdFunctionId?: string; - /** Reference to the current_user_agent function (FK to metaschema_public.function) */ - currentUserAgentFunctionId?: string; - /** Reference to the current_ip_address function (FK to metaschema_public.function) */ - currentIpAddressFunctionId?: string; -} -export interface CreateAppGrantInput { - clientMutationId?: string; - /** The `AppGrant` to be created by this mutation. */ - appGrant: AppGrantInput; -} -/** An input for mutations affecting `AppGrant` */ -export interface AppGrantInput { - id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgClaimedInviteInput { - clientMutationId?: string; - /** The `OrgClaimedInvite` to be created by this mutation. */ - orgClaimedInvite: OrgClaimedInviteInput; -} -/** An input for mutations affecting `OrgClaimedInvite` */ -export interface OrgClaimedInviteInput { - id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId: string; -} -export interface CreateAuditLogAuthInput { - clientMutationId?: string; - /** The `AuditLogAuth` to be created by this mutation. */ - auditLogAuth: AuditLogAuthInput; -} -/** An input for mutations affecting `AuditLogAuth` */ -export interface AuditLogAuthInput { - createdAt?: string; - /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ - id?: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event: string; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin; - /** Browser or client user-agent string from the request */ - userAgent?: string; - /** IP address of the client that initiated the auth event */ - ipAddress?: string; - /** Whether the authentication attempt succeeded */ - success: boolean; -} -export interface CreateBlueprintConstructionInput { - clientMutationId?: string; - /** The `BlueprintConstruction` to be created by this mutation. */ - blueprintConstruction: BlueprintConstructionInput; -} -/** An input for mutations affecting `BlueprintConstruction` */ -export interface BlueprintConstructionInput { - /** 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; - /** 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 CreateRlsModuleInput { - clientMutationId?: string; - /** The `RlsModule` to be created by this mutation. */ - rlsModule: RlsModuleInput; -} -/** An input for mutations affecting `RlsModule` */ -export interface RlsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; -} -export interface CreateSessionsModuleInput { - clientMutationId?: string; - /** The `SessionsModule` to be created by this mutation. */ - sessionsModule: SessionsModuleInput; -} -/** An input for mutations affecting `SessionsModule` */ -export interface SessionsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - authSettingsTableId?: string; - usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - /** The `OrgMemberProfile` to be created by this mutation. */ - orgMemberProfile: OrgMemberProfileInput; -} -/** An input for mutations affecting `OrgMemberProfile` */ -export interface OrgMemberProfileInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - /** The `OrgGrant` to be created by this mutation. */ - orgGrant: OrgGrantInput; -} -/** An input for mutations affecting `OrgGrant` */ -export interface OrgGrantInput { - id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId: string; - /** The entity (org or group) this permission grant applies to */ - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateBlueprintInput { - clientMutationId?: string; - /** The `Blueprint` to be created by this mutation. */ - blueprint: BlueprintInput; -} -/** An input for mutations affecting `Blueprint` */ -export interface BlueprintInput { - /** 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; - /** 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 CreateDenormalizedTableFieldInput { - clientMutationId?: string; - /** The `DenormalizedTableField` to be created by this mutation. */ - denormalizedTableField: DenormalizedTableFieldInput; -} -/** An input for mutations affecting `DenormalizedTableField` */ -export interface DenormalizedTableFieldInput { - 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 CreateRateLimitMetersModuleInput { - clientMutationId?: string; - /** The `RateLimitMetersModule` to be created by this mutation. */ - rateLimitMetersModule: RateLimitMetersModuleInput; -} -/** An input for mutations affecting `RateLimitMetersModule` */ -export interface RateLimitMetersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: 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; -} -export interface CreatePartitionInput { - clientMutationId?: string; - /** The `Partition` to be created by this mutation. */ - partition: PartitionInput; -} -/** An input for mutations affecting `Partition` */ -export interface PartitionInput { - id?: string; - databaseId: string; - tableId: string; - strategy: string; - partitionKeyId: string; - interval?: string; - retention?: string; - retentionKeepTable?: boolean; - premake?: number; - namingPattern?: string; - isParented?: boolean; - createdAt?: string; - updatedAt?: 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; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - prefix?: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - /** The email address */ - email: ConstructiveInternalTypeEmail; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean; - /** Whether this is the user's primary email address */ - isPrimary?: boolean; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateSqlActionInput { - clientMutationId?: string; - /** The `SqlAction` to be created by this mutation. */ - sqlAction: SqlActionInput; -} -/** An input for mutations affecting `SqlAction` */ -export interface SqlActionInput { - id?: number; - name?: string; - databaseId?: string; - deploy?: string; - deps?: string[]; - payload?: unknown; - content?: string; - revert?: string; - verify?: string; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} -export interface CreateDatabaseTransferInput { - clientMutationId?: string; - /** The `DatabaseTransfer` to be created by this mutation. */ - databaseTransfer: DatabaseTransferInput; -} -/** An input for mutations affecting `DatabaseTransfer` */ -export interface DatabaseTransferInput { - id?: string; - databaseId: string; - targetOwnerId: string; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: string; - targetApprovedAt?: string; - status?: string; - initiatedBy: string; - notes?: string; - expiresAt?: string; - createdAt?: string; - updatedAt?: string; - completedAt?: string; -} -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - /** The `DatabaseSetting` to be created by this mutation. */ - databaseSetting: DatabaseSettingInput; -} -/** An input for mutations affecting `DatabaseSetting` */ -export interface DatabaseSettingInput { - /** Unique identifier for this settings record */ - id?: string; - /** Reference to the metaschema database these settings apply to */ - databaseId: string; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean; - /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ - enableBulk?: boolean; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: unknown; -} -export interface CreateCryptoAuthModuleInput { - clientMutationId?: string; - /** The `CryptoAuthModule` to be created by this mutation. */ - cryptoAuthModule: CryptoAuthModuleInput; -} -/** An input for mutations affecting `CryptoAuthModule` */ -export interface CryptoAuthModuleInput { - 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; -} -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; - /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ - modules?: string[]; - /** 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 CreateInvitesModuleInput { - clientMutationId?: string; - /** The `InvitesModule` to be created by this mutation. */ - invitesModule: InvitesModuleInput; -} -/** An input for mutations affecting `InvitesModule` */ -export interface InvitesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - /** The `OrgMembershipSetting` to be created by this mutation. */ - orgMembershipSetting: OrgMembershipSettingInput; -} -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface OrgMembershipSettingInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; -} -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - /** The `SecureTableProvision` to be created by this mutation. */ - secureTableProvision: SecureTableProvisionInput; -} -/** An input for mutations affecting `SecureTableProvision` */ -export interface SecureTableProvisionInput { - /** 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; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string; - /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ - tableName?: string; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: unknown; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ - useRls?: boolean; - /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ - fields?: unknown[]; - /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ - grants?: unknown; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: unknown; - /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; -} -export interface CreateApiSettingInput { - clientMutationId?: string; - /** The `ApiSetting` to be created by this mutation. */ - apiSetting: ApiSettingInput; -} -/** An input for mutations affecting `ApiSetting` */ -export interface ApiSettingInput { - /** Unique identifier for this API settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** API these settings override for */ - apiId: string; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ - enableAggregates?: boolean; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ - enablePostgis?: boolean; - /** Override: enable unified search (NULL = inherit from database_settings) */ - enableSearch?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ - enablePresignedUploads?: boolean; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ - enableManyToMany?: boolean; - /** Override: enable connection filter (NULL = inherit from database_settings) */ - enableConnectionFilter?: boolean; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ - enableLtree?: boolean; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ - enableLlm?: boolean; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ - enableRealtime?: boolean; - /** Override: enable bulk mutations (NULL = inherit from database_settings) */ - enableBulk?: boolean; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ - options?: unknown; -} -export interface CreateComputeLogModuleInput { - clientMutationId?: string; - /** The `ComputeLogModule` to be created by this mutation. */ - computeLogModule: ComputeLogModuleInput; -} -/** An input for mutations affecting `ComputeLogModule` */ -export interface ComputeLogModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface CreateInferenceLogModuleInput { - clientMutationId?: string; - /** The `InferenceLogModule` to be created by this mutation. */ - inferenceLogModule: InferenceLogModuleInput; -} -/** An input for mutations affecting `InferenceLogModule` */ -export interface InferenceLogModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface 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; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - createdAt?: string; -} -export interface CreateStorageLogModuleInput { - clientMutationId?: string; - /** The `StorageLogModule` to be created by this mutation. */ - storageLogModule: StorageLogModuleInput; -} -/** An input for mutations affecting `StorageLogModule` */ -export interface StorageLogModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface CreateTransferLogModuleInput { - clientMutationId?: string; - /** The `TransferLogModule` to be created by this mutation. */ - transferLogModule: TransferLogModuleInput; -} -/** An input for mutations affecting `TransferLogModule` */ -export interface TransferLogModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface CreateEnumInput { - clientMutationId?: string; - /** The `Enum` to be created by this mutation. */ - enum: EnumInput; -} -/** An input for mutations affecting `Enum` */ -export interface EnumInput { - id?: string; - databaseId: string; - schemaId: string; - name: string; - label?: string; - description?: string; - values?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - /** The `AppLimitEvent` to be created by this mutation. */ - appLimitEvent: AppLimitEventInput; -} -/** An input for mutations affecting `AppLimitEvent` */ -export interface AppLimitEventInput { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - /** The `OrgLimitEvent` to be created by this mutation. */ - orgLimitEvent: OrgLimitEventInput; -} -/** An input for mutations affecting `OrgLimitEvent` */ -export interface OrgLimitEventInput { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface CreateViewInput { - clientMutationId?: string; - /** The `View` to be created by this mutation. */ - view: ViewInput; -} -/** An input for mutations affecting `View` */ -export interface ViewInput { - id?: string; - databaseId?: string; - schemaId: string; - name: string; - tableId?: string; - viewType: string; - data?: unknown; - filterType?: string; - filterData?: unknown; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; -} -export interface CreateWebauthnAuthModuleInput { - clientMutationId?: string; - /** The `WebauthnAuthModule` to be created by this mutation. */ - webauthnAuthModule: WebauthnAuthModuleInput; -} -/** An input for mutations affecting `WebauthnAuthModule` */ -export interface WebauthnAuthModuleInput { - id?: string; - 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; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; -} -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - profileId?: string; -} -export interface CreateUserInput { - clientMutationId?: string; - /** The `User` to be created by this mutation. */ - user: UserInput; -} -/** An input for mutations affecting `User` */ -export interface UserInput { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; -} -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface CreateAppInput { - clientMutationId?: string; - /** The `App` to be created by this mutation. */ - app: AppInput; -} -/** An input for mutations affecting `App` */ -export interface AppInput { - /** Unique identifier for this app */ - id?: string; - /** Reference to the metaschema database this app belongs to */ - databaseId: string; - /** Site this app is associated with (one app per site) */ - siteId: string; - /** Display name of the app */ - name?: string; - /** App icon or promotional image */ - appImage?: ConstructiveInternalTypeImage; - /** URL to the Apple App Store listing */ - appStoreLink?: ConstructiveInternalTypeUrl; - /** Apple App Store application identifier */ - appStoreId?: string; - /** Apple App ID prefix (Team ID) for universal links and associated domains */ - appIdPrefix?: string; - /** URL to the Google Play Store listing */ - playStoreLink?: ConstructiveInternalTypeUrl; -} -export interface CreateSiteInput { - clientMutationId?: string; - /** The `Site` to be created by this mutation. */ - site: SiteInput; -} -/** An input for mutations affecting `Site` */ -export interface SiteInput { - /** Unique identifier for this site */ - id?: string; - /** Reference to the metaschema database this site belongs to */ - databaseId: string; - /** Display title for the site (max 120 characters) */ - title?: string; - /** Short description of the site (max 120 characters) */ - description?: string; - /** Open Graph image used for social media link previews */ - ogImage?: ConstructiveInternalTypeImage; - /** Browser favicon attachment */ - favicon?: ConstructiveInternalTypeAttachment; - /** Apple touch icon for iOS home screen bookmarks */ - appleTouchIcon?: ConstructiveInternalTypeImage; - /** Primary logo image for the site */ - logo?: ConstructiveInternalTypeImage; - /** PostgreSQL database name this site connects to */ - dbname?: string; -} -export interface CreateDbUsageModuleInput { - clientMutationId?: string; - /** The `DbUsageModule` to be created by this mutation. */ - dbUsageModule: DbUsageModuleInput; -} -/** An input for mutations affecting `DbUsageModule` */ -export interface DbUsageModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - prefix?: string; -} -export interface 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; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; -} -export interface CreateNotificationsModuleInput { - clientMutationId?: string; - /** The `NotificationsModule` to be created by this mutation. */ - notificationsModule: NotificationsModuleInput; -} -/** An input for mutations affecting `NotificationsModule` */ -export interface NotificationsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - readStateTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; -} -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; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - prefix?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; -} -export interface CreateAstMigrationInput { - clientMutationId?: string; - /** The `AstMigration` to be created by this mutation. */ - astMigration: AstMigrationInput; -} -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: unknown; - deploys?: string; - deploy?: unknown; - revert?: unknown; - verify?: unknown; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} -export interface CreateWebauthnCredentialInput { - clientMutationId?: string; - /** The `WebauthnCredential` to be created by this mutation. */ - webauthnCredential: WebauthnCredentialInput; -} -/** An input for mutations affecting `WebauthnCredential` */ -export interface WebauthnCredentialInput { - id?: string; - ownerId?: string; - /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ - credentialId: string; - /** COSE-encoded public key bytes from the authenticator attestation. */ - publicKey: Base64EncodedBinary; - /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ - signCount?: string; - /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ - webauthnUserId: string; - /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ - transports?: string[]; - /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ - credentialDeviceType: string; - /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ - backupEligible?: boolean; - /** Current backup state; updated on each successful sign-in assertion. */ - backupState?: boolean; - /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ - name?: string; - /** Timestamp of the most recent successful sign-in assertion using this credential. */ - lastUsedAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreatePrimaryKeyConstraintInput { - clientMutationId?: string; - /** The `PrimaryKeyConstraint` to be created by this mutation. */ - primaryKeyConstraint: PrimaryKeyConstraintInput; -} -/** An input for mutations affecting `PrimaryKeyConstraint` */ -export interface PrimaryKeyConstraintInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateTriggerInput { - clientMutationId?: string; - /** The `Trigger` to be created by this mutation. */ - trigger: TriggerInput; -} -/** An input for mutations affecting `Trigger` */ -export interface TriggerInput { - id?: string; - databaseId?: string; - tableId: string; - name: string; - event?: string; - functionName?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateCheckConstraintInput { - clientMutationId?: string; - /** The `CheckConstraint` to be created by this mutation. */ - checkConstraint: CheckConstraintInput; -} -/** An input for mutations affecting `CheckConstraint` */ -export interface CheckConstraintInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - expr?: unknown; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateUniqueConstraintInput { - clientMutationId?: string; - /** The `UniqueConstraint` to be created by this mutation. */ - uniqueConstraint: UniqueConstraintInput; -} -/** An input for mutations affecting `UniqueConstraint` */ -export interface UniqueConstraintInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: unknown; - type?: string; - fieldIds: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateSpatialRelationInput { - clientMutationId?: string; - /** The `SpatialRelation` to be created by this mutation. */ - spatialRelation: SpatialRelationInput; -} -/** An input for mutations affecting `SpatialRelation` */ -export interface SpatialRelationInput { - id?: string; - databaseId?: string; - tableId: string; - fieldId: string; - refTableId: string; - refFieldId: string; - name: string; - operator: string; - paramName?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreatePolicyInput { - clientMutationId?: string; - /** The `Policy` to be created by this mutation. */ - policy: PolicyInput; -} -/** An input for mutations affecting `Policy` */ -export interface PolicyInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - granteeName?: string; - privilege?: string; - permissive?: boolean; - disabled?: boolean; - policyType?: string; - data?: unknown; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - /** The `OrgLimitAggregate` to be created by this mutation. */ - orgLimitAggregate: OrgLimitAggregateInput; -} -/** An input for mutations affecting `OrgLimitAggregate` */ -export interface OrgLimitAggregateInput { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - /** The `OrgLimit` to be created by this mutation. */ - orgLimit: OrgLimitInput; -} -/** An input for mutations affecting `OrgLimit` */ -export interface OrgLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - entityId: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface CreateWebauthnSettingInput { - clientMutationId?: string; - /** The `WebauthnSetting` to be created by this mutation. */ - webauthnSetting: WebauthnSettingInput; -} -/** An input for mutations affecting `WebauthnSetting` */ -export interface WebauthnSettingInput { - /** Unique identifier for this WebAuthn settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ - schemaId?: string; - /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ - credentialsSchemaId?: string; - /** Schema of the sessions table (FK to metaschema_public.schema) */ - sessionsSchemaId?: string; - /** Schema of the session_secrets table (FK to metaschema_public.schema) */ - sessionSecretsSchemaId?: string; - /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ - credentialsTableId?: string; - /** Reference to the sessions table (FK to metaschema_public.table) */ - sessionsTableId?: string; - /** Reference to the session_credentials table (FK to metaschema_public.table) */ - sessionCredentialsTableId?: string; - /** Reference to the session_secrets table (FK to metaschema_public.table) */ - sessionSecretsTableId?: string; - /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ - userFieldId?: string; - /** WebAuthn Relying Party ID (typically the domain name) */ - rpId?: string; - /** WebAuthn Relying Party display name */ - rpName?: string; - /** Allowed origins for WebAuthn registration and authentication */ - originAllowlist?: string[]; - /** Attestation conveyance preference (none, indirect, direct, enterprise) */ - attestationType?: string; - /** Whether to require user verification (biometric/PIN) during auth */ - requireUserVerification?: boolean; - /** Resident key requirement (discouraged, preferred, required) */ - residentKey?: string; - /** Challenge TTL in seconds (default 300 = 5 minutes) */ - challengeExpirySeconds?: 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; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - recordUsageFunction?: string; - prefix?: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; -} -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; -} -export interface CreateSchemaInput { - clientMutationId?: string; - /** The `Schema` to be created by this mutation. */ - schema: SchemaInput; -} -/** An input for mutations affecting `Schema` */ -export interface SchemaInput { - id?: string; - databaseId: string; - name: string; - schemaName: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateIndexInput { - clientMutationId?: string; - /** The `Index` to be created by this mutation. */ - index: IndexInput; -} -/** An input for mutations affecting `Index` */ -export interface IndexInput { - id?: string; - databaseId: string; - tableId: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: unknown; - whereClause?: unknown; - isUnique?: boolean; - options?: unknown; - opClasses?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateGraphModuleInput { - clientMutationId?: string; - /** The `GraphModule` to be created by this mutation. */ - graphModule: GraphModuleInput; -} -/** An input for mutations affecting `GraphModule` */ -export interface GraphModuleInput { - id?: string; - databaseId: string; - publicSchemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - prefix?: string; - merkleStoreModuleId: string; - graphsTableId?: string; - executionsTableId?: string; - outputsTableId?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - membershipType?: number; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; - createdAt?: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; -} -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateBillingProviderModuleInput { - clientMutationId?: string; - /** The `BillingProviderModule` to be created by this mutation. */ - billingProviderModule: BillingProviderModuleInput; -} -/** An input for mutations affecting `BillingProviderModule` */ -export interface BillingProviderModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - provider?: string; - productsTableId?: string; - pricesTableId?: string; - subscriptionsTableId?: string; - billingCustomersTableId?: string; - billingCustomersTableName?: string; - billingProductsTableId?: string; - billingProductsTableName?: string; - billingPricesTableId?: string; - billingPricesTableName?: string; - billingSubscriptionsTableId?: string; - billingSubscriptionsTableName?: string; - billingWebhookEventsTableId?: string; - billingWebhookEventsTableName?: string; - processBillingEventFunction?: string; - prefix?: string; -} -export interface CreateBlueprintTemplateInput { - clientMutationId?: string; - /** The `BlueprintTemplate` to be created by this mutation. */ - blueprintTemplate: BlueprintTemplateInput; -} -/** An input for mutations affecting `BlueprintTemplate` */ -export interface BlueprintTemplateInput { - /** Unique identifier for this template. */ - id?: string; - /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ - name: string; - /** Semantic version string. Defaults to 1.0.0. */ - version?: string; - /** Human-readable display name for the template (e.g. E-Commerce Basic). */ - displayName: string; - /** Optional description of what the template provisions. */ - description?: string; - /** The user who created or published this template. */ - ownerId: string; - /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ - visibility?: string; - /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ - categories?: string[]; - /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ - tags?: string[]; - /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ - definition: unknown; - /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ - definitionSchemaVersion?: string; - /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ - source?: string; - /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ - complexity?: string; - /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ - copyCount?: number; - /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ - forkCount?: number; - /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ - forkedFromId?: string; - /** 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?: string; - /** 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?: unknown; - /** Timestamp when this template was created. */ - createdAt?: string; - /** Timestamp when this template was last modified. */ - updatedAt?: string; -} -export interface CreateHierarchyModuleInput { - clientMutationId?: string; - /** The `HierarchyModule` to be created by this mutation. */ - hierarchyModule: HierarchyModuleInput; -} -/** An input for mutations affecting `HierarchyModule` */ -export interface HierarchyModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId: string; - usersTableId: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - createdAt?: 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; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; -} -export interface CreateEmbeddingChunkInput { - clientMutationId?: string; - /** The `EmbeddingChunk` to be created by this mutation. */ - embeddingChunk: EmbeddingChunkInput; -} -/** An input for mutations affecting `EmbeddingChunk` */ -export interface EmbeddingChunkInput { - id?: string; - databaseId?: string; - tableId: string; - embeddingFieldId?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; - dimensions?: number; - metric?: string; - chunkSize?: number; - chunkOverlap?: number; - chunkStrategy?: string; - metadataFields?: unknown; - searchIndexes?: unknown; - enqueueChunkingJob?: boolean; - chunkingTaskName?: string; - embeddingModel?: string; - embeddingProvider?: string; - parentFkFieldId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateForeignKeyConstraintInput { - clientMutationId?: string; - /** The `ForeignKeyConstraint` to be created by this mutation. */ - foreignKeyConstraint: ForeignKeyConstraintInput; -} -/** An input for mutations affecting `ForeignKeyConstraint` */ -export interface ForeignKeyConstraintInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: unknown; - type?: string; - fieldIds: string[]; - refTableId: string; - refFieldIds: string[]; - deleteAction?: string; - updateAction?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - /** The `OrgInvite` to be created by this mutation. */ - orgInvite: OrgInviteInput; -} -/** An input for mutations affecting `OrgInvite` */ -export interface OrgInviteInput { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; - entityId: string; -} -export interface CreateAgentModuleInput { - clientMutationId?: string; - /** The `AgentModule` to be created by this mutation. */ - agentModule: AgentModuleInput; -} -/** An input for mutations affecting `AgentModule` */ -export interface AgentModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - threadTableId?: string; - messageTableId?: string; - taskTableId?: string; - promptsTableId?: string; - knowledgeTableId?: string; - threadTableName?: string; - messageTableName?: string; - taskTableName?: string; - promptsTableName?: string; - knowledgeTableName?: string; - hasKnowledge?: boolean; - apiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: unknown; - knowledgeConfig?: unknown; - knowledgePolicies?: unknown; - provisions?: unknown; -} -export interface CreateRelationProvisionInput { - clientMutationId?: string; - /** The `RelationProvision` to be created by this mutation. */ - relationProvision: RelationProvisionInput; -} -/** An input for mutations affecting `RelationProvision` */ -export interface RelationProvisionInput { - /** 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. */ - databaseId: 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: string; - /** - * 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: string; - /** - * 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?: string; - /** 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?: string; - /** 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?: unknown; - /** 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?: unknown; - /** - * 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?: unknown; - /** 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?: string; - /** 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?: string; - /** 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?: string; - /** 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; -} -export interface CreateUserAuthModuleInput { - clientMutationId?: string; - /** The `UserAuthModule` to be created by this mutation. */ - userAuthModule: UserAuthModuleInput; -} -/** An input for mutations affecting `UserAuthModule` */ -export interface UserAuthModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - emailsTableId?: string; - usersTableId?: string; - secretsTableId?: string; - encryptedTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - 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; -} -export interface CreateFieldInput { - clientMutationId?: string; - /** The `Field` to be created by this mutation. */ - field: FieldInput; -} -/** An input for mutations affecting `Field` */ -export interface FieldInput { - id?: string; - databaseId?: string; - tableId: string; - name: string; - label?: string; - description?: string; - smartTags?: unknown; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: unknown; - type: unknown; - fieldOrder?: number; - regexp?: string; - chk?: unknown; - chkExpr?: unknown; - min?: number; - max?: number; - tags?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - 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; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - prefix?: string; - key?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; -} -export interface CreateTableInput { - clientMutationId?: string; - /** The `Table` to be created by this mutation. */ - table: TableInput; -} -/** An input for mutations affecting `Table` */ -export interface TableInput { - id?: string; - databaseId?: string; - schemaId: string; - name: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: string; - singularName?: string; - tags?: string[]; - partitioned?: boolean; - partitionStrategy?: string; - partitionKeyNames?: string[]; - partitionKeyTypes?: string[]; - inheritsId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateLimitsModuleInput { - clientMutationId?: string; - /** The `LimitsModule` to be created by this mutation. */ - limitsModule: LimitsModuleInput; -} -/** An input for mutations affecting `LimitsModule` */ -export interface LimitsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - limitIncrementFunction?: string; - limitDecrementFunction?: string; - limitIncrementTrigger?: string; - limitDecrementTrigger?: string; - limitUpdateTrigger?: string; - limitCheckFunction?: string; - limitCreditsTableId?: string; - eventsTableId?: string; - creditCodesTableId?: string; - creditCodeItemsTableId?: string; - creditRedemptionsTableId?: string; - aggregateTableId?: string; - limitCapsTableId?: string; - limitCapsDefaultsTableId?: string; - capCheckTrigger?: string; - resolveCapFunction?: string; - limitWarningsTableId?: string; - limitWarningStateTableId?: string; - limitCheckSoftFunction?: string; - limitAggregateCheckSoftFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; -} -export interface CreateStorageModuleInput { - clientMutationId?: string; - /** The `StorageModule` to be created by this mutation. */ - storageModule: StorageModuleInput; -} -/** An input for mutations affecting `StorageModule` */ -export interface StorageModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - key?: 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; -} -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; - 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; - membershipType: number; - entityTableId?: string; - entityTableOwnerId?: string; - prefix?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: 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; - schemaId?: string; - privateSchemaId?: 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; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; -} -export interface CreateEntityTypeProvisionInput { - clientMutationId?: string; - /** The `EntityTypeProvision` to be created by this mutation. */ - entityTypeProvision: EntityTypeProvisionInput; -} -/** An input for mutations affecting `EntityTypeProvision` */ -export interface EntityTypeProvisionInput { - /** Unique identifier for this provision row. */ - id?: string; - /** The database to provision this entity type in. Required. */ - databaseId: string; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name: string; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ - prefix: string; - /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ - description?: string; - /** - * Prefix of the parent entity type. The trigger resolves this to a membership_type integer - * by looking up memberships_module WHERE prefix = parent_entity. - * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - * (e.g. 'data_room' for a team_channel nested under data_room). - * The parent type must already be provisioned before this INSERT. - */ - parentEntity?: string; - /** - * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - * (e.g. prefix 'data_room' produces table 'data_rooms'). - * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - */ - tableName?: string; - /** - * Whether members of the parent entity can see child entities. Defaults to true. - * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - * When false: only direct members of the entity itself can see it (private entity mode). - * Controls whether the parent_member SELECT policy is created on the entity table. - * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - * skip_entity_policies=true, since no default policies are being applied in those cases. - */ - isVisible?: boolean; - /** - * Whether to apply limits_module security for this type. Defaults to false. - * The limits_module table structure is always created (memberships_module requires it), - * but when false, no RLS policies are applied to the limits tables. - * Set to true if this entity type needs configurable resource limits per membership. - */ - hasLimits?: boolean; - /** - * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. - */ - hasProfiles?: boolean; - /** - * Whether to provision events_module for this type. Defaults to false. - * Levels provide gamification/achievement tracking for members. - * When true, creates level steps, achievements, and level tables with security. - */ - hasLevels?: boolean; - /** - * Whether to provision invites_module for this type. Defaults to false. - * When true, the trigger inserts a row into invites_module which in turn - * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - * repeated INSERTs safe. - */ - hasInvites?: boolean; - /** - * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - * When true, the trigger calls event_tracker() on the claimed_invites table with - * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - * crediting the SENDER (inviter) when someone claims their invite code. - * Developers can then define achievements in the blueprint achievements[] section - * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - */ - hasInviteAchievements?: boolean; - /** - * Optional JSON array of storage module definitions. Presence triggers provisioning - * (same inference model as namespaces, functions, agents). - * Each element provisions a separate storage module with its own tables - * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - * NULL = do not provision storage. '[{}]' = provision one default storage module. - * Each array element recognizes (all optional): - * - key (text) module discriminator, max 16 chars, lowercase snake_case. - * Defaults to 'default' (omitted from table names). - * Non-default keys become infixes: {prefix}_{key}_buckets. - * (storage_key accepted for backward compat) - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this module - * - allowed_origins (text[]) default CORS origins for all buckets in this module - * - restrict_reads (boolean) require read_files permission for SELECT on files - * - has_path_shares (boolean) enable virtual filesystem + path share policies - * - has_versioning (boolean) enable file version chains - * - has_content_hash (boolean) enable content hash for dedup - * - has_custom_keys (boolean) allow client-provided S3 keys - * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow - * - confirm_upload_delay (interval) delay before first confirmation attempt - * - buckets (jsonb[]) array of initial bucket definitions to seed. - * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - * Each value: { nodes, fields, grants, use_rls, policies }. - * Example (single module, backward compat): - * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - * Example (multi-module): - * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - */ - storage?: unknown; - /** - * Optional JSON array of namespace module definitions. Presence triggers provisioning. - * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. - * Example: namespaces := '[{}]'::jsonb - */ - namespaces?: unknown; - /** - * Optional JSON array of function module definitions. Presence triggers provisioning. - * NULL = do not provision functions. '[{}]' = provision one default function module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. - * Example: functions := '[{}]'::jsonb - */ - functions?: unknown; - /** - * Optional JSON array of graph module definitions. Presence triggers provisioning. - * NULL = do not provision graphs. '[{}]' = provision one default graph module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. - * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned - * separately with the merkle store dependency resolved. - * Example: graphs := '[{}]'::jsonb - */ - graphs?: unknown; - agents?: unknown; - /** - * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - * Use this only when you want the entity table provisioned with zero policies (e.g. because you - * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - * false and either accepting the five defaults (table_provision=NULL) or overriding them via - * table_provision. - * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself - * - DELETE: owner of the entity can delete it - */ - skipEntityPolicies?: boolean; - /** - * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - * entries, so an entity table is configured the same way an ordinary blueprint table is. - * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - * table_provision.policies[] (is_visible becomes a no-op on this path). - * Recognized keys (all optional): - * - use_rls (boolean, default true) - * - nodes (jsonb array of {"$type","data"} Data* module entries) - * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - * - grants (jsonb array of grant objects; each with roles[] and privileges[]) - * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - * against the newly created entity table. - * Example — override with two SELECT policies: - * table_provision := jsonb_build_object( - * 'policies', jsonb_build_array( - * jsonb_build_object( - * '$type', 'AuthzEntityMembership', - * 'privileges', jsonb_build_array('select'), - * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - * 'name', 'self_member' - * ), - * jsonb_build_object( - * '$type', 'AuthzDirectOwner', - * 'privileges', jsonb_build_array('select', 'update'), - * 'data', jsonb_build_object('owner_field', 'owner_id') - * ) - * ) - * ) - */ - tableProvision?: unknown; - /** - * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - * This is the ID used in entity_types, memberships_module, and all module tables. - */ - outMembershipType?: number; - /** - * Output: the UUID of the created entity table. Populated by the trigger. - * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - */ - outEntityTableId?: string; - /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ - outEntityTableName?: string; - /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - * Populated by the trigger. Useful for verifying which modules were provisioned. - */ - outInstalledModules?: string[]; - /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ - outStorageModuleId?: string; - /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ - outBucketsTableId?: string; - /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ - outFilesTableId?: string; - outPathSharesTableId?: string; - /** - * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - * (i.e. the invites_module row was created in a previous run). - */ - outInvitesModuleId?: string; - /** - * Output: the UUID of the namespace_module row created (or found) for this entity type. - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceModuleId?: string; - /** - * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespacesTableId?: string; - /** - * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: 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 UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditRedemption` being updated. */ - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -/** Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. */ -export interface AppLimitCreditRedemptionPatch { - id?: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string; -} -export interface UpdateFunctionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Function` being updated. */ - functionPatch: FunctionPatch; -} -/** Represents an update to a `Function`. Fields that are set will be updated. */ -export interface FunctionPatch { - id?: string; - databaseId?: string; - schemaId?: string; - name?: string; -} -export interface UpdateViewTableInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ViewTable` being updated. */ - viewTablePatch: ViewTablePatch; -} -/** Represents an update to a `ViewTable`. Fields that are set will be updated. */ -export interface ViewTablePatch { - id?: string; - viewId?: string; - tableId?: string; - joinOrder?: number; -} -export interface UpdateApiSchemaInput { - clientMutationId?: string; - /** Unique identifier for this API-schema mapping */ - id: string; - /** An object where the defined keys will be set on the `ApiSchema` being updated. */ - apiSchemaPatch: ApiSchemaPatch; -} -/** Represents an update to a `ApiSchema`. Fields that are set will be updated. */ -export interface ApiSchemaPatch { - /** Unique identifier for this API-schema mapping */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Metaschema schema being exposed through the API */ - schemaId?: string; - /** API that exposes this schema */ - apiId?: string; -} -export interface UpdateSiteThemeInput { - clientMutationId?: string; - /** Unique identifier for this theme record */ - id: string; - /** An object where the defined keys will be set on the `SiteTheme` being updated. */ - siteThemePatch: SiteThemePatch; -} -/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ -export interface SiteThemePatch { - /** Unique identifier for this theme record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this theme belongs to */ - siteId?: string; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme?: unknown; -} -export interface UpdateOrgMemberInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMember` being updated. */ - orgMemberPatch: OrgMemberPatch; -} -/** Represents an update to a `OrgMember`. Fields that are set will be updated. */ -export interface OrgMemberPatch { - id?: string; - /** Whether this member has admin privileges */ - isAdmin?: boolean; - /** References the user who is a member */ - actorId?: string; - /** References the entity (org or group) this member belongs to */ - entityId?: string; -} -export interface UpdateCorsSettingInput { - clientMutationId?: string; - /** Unique identifier for this CORS settings record */ - id: string; - /** An object where the defined keys will be set on the `CorsSetting` being updated. */ - corsSettingPatch: CorsSettingPatch; -} -/** Represents an update to a `CorsSetting`. Fields that are set will be updated. */ -export interface CorsSettingPatch { - /** Unique identifier for this CORS settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Optional API for per-API override; NULL means database-wide default */ - apiId?: string; - /** Array of allowed CORS origins (e.g. https://example.com) */ - allowedOrigins?: string[]; -} -export interface UpdateConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. */ - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; -} -/** Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. */ -export interface ConfigSecretsOrgModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface 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 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; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ -export interface AppPermissionDefaultPatch { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; -} -export interface UpdateApiModuleInput { - clientMutationId?: string; - /** Unique identifier for this API module record */ - id: string; - /** An object where the defined keys will be set on the `ApiModule` being updated. */ - apiModulePatch: ApiModulePatch; -} -/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ -export interface ApiModulePatch { - /** Unique identifier for this API module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** API this module configuration belongs to */ - apiId?: string; - /** Module name (e.g. auth, uploads, webhooks) */ - name?: string; - /** JSON configuration data for this module */ - data?: unknown; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - /** Unique identifier for this site module record */ - id: string; - /** An object where the defined keys will be set on the `SiteModule` being updated. */ - siteModulePatch: SiteModulePatch; -} -/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ -export interface SiteModulePatch { - /** Unique identifier for this site module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this module configuration belongs to */ - siteId?: string; - /** Module name (e.g. user_auth_module, analytics) */ - name?: string; - /** JSON configuration data for this module */ - data?: unknown; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `RoleType` being updated. */ - roleTypePatch: RoleTypePatch; -} -/** Represents an update to a `RoleType`. Fields that are set will be updated. */ -export interface RoleTypePatch { - id?: number; - name?: string; -} -export interface UpdateSchemaGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SchemaGrant` being updated. */ - schemaGrantPatch: SchemaGrantPatch; -} -/** Represents an update to a `SchemaGrant`. Fields that are set will be updated. */ -export interface SchemaGrantPatch { - id?: string; - databaseId?: string; - schemaId?: string; - granteeName?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateTriggerFunctionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TriggerFunction` being updated. */ - triggerFunctionPatch: TriggerFunctionPatch; -} -/** Represents an update to a `TriggerFunction`. Fields that are set will be updated. */ -export interface TriggerFunctionPatch { - id?: string; - databaseId?: string; - name?: string; - code?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateViewRuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ViewRule` being updated. */ - viewRulePatch: ViewRulePatch; -} -/** Represents an update to a `ViewRule`. Fields that are set will be updated. */ -export interface ViewRulePatch { - id?: string; - databaseId?: string; - viewId?: string; - name?: string; - /** INSERT, UPDATE, or DELETE */ - event?: string; - /** NOTHING (for read-only) or custom action */ - action?: string; -} -export interface UpdateConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. */ - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; -} -/** Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. */ -export interface ConfigSecretsUserModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; - configDefinitionsTableId?: string; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */ - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ -export interface IdentityProvidersModulePatch { - 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; - 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 UpdateAppAdminGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppAdminGrant` being updated. */ - appAdminGrantPatch: AppAdminGrantPatch; -} -/** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ -export interface AppAdminGrantPatch { - id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppOwnerGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ - appOwnerGrantPatch: AppOwnerGrantPatch; -} -/** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ -export interface AppOwnerGrantPatch { - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultPatch { - id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; - /** References the entity these default permissions apply to */ - entityId?: string; -} -export interface UpdateDefaultPrivilegeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `DefaultPrivilege` being updated. */ - defaultPrivilegePatch: DefaultPrivilegePatch; -} -/** Represents an update to a `DefaultPrivilege`. Fields that are set will be updated. */ -export interface DefaultPrivilegePatch { - id?: string; - databaseId?: string; - schemaId?: string; - objectType?: string; - privilege?: string; - granteeName?: string; - isGrant?: boolean; -} -export interface UpdateViewGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ViewGrant` being updated. */ - viewGrantPatch: ViewGrantPatch; -} -/** Represents an update to a `ViewGrant`. Fields that are set will be updated. */ -export interface ViewGrantPatch { - id?: string; - databaseId?: string; - viewId?: string; - granteeName?: string; - privilege?: string; - withGrantOption?: boolean; - isGrant?: boolean; -} -export interface UpdateApiInput { - clientMutationId?: string; - /** Unique identifier for this API */ - id: string; - /** An object where the defined keys will be set on the `Api` being updated. */ - apiPatch: ApiPatch; -} -/** Represents an update to a `Api`. Fields that are set will be updated. */ -export interface ApiPatch { - /** Unique identifier for this API */ - id?: string; - /** Reference to the metaschema database this API serves */ - databaseId?: string; - /** Unique name for this API within its database */ - name?: string; - /** PostgreSQL database name to connect to */ - dbname?: string; - /** PostgreSQL role used for authenticated requests */ - roleName?: string; - /** PostgreSQL role used for anonymous/unauthenticated requests */ - anonRole?: string; - /** Whether this API is publicly accessible without authentication */ - isPublic?: boolean; -} -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; -} -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 UpdateEmailsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `EmailsModule` being updated. */ - emailsModulePatch: EmailsModulePatch; -} -/** Represents an update to a `EmailsModule`. Fields that are set will be updated. */ -export interface EmailsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -export interface UpdatePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PhoneNumbersModule` being updated. */ - phoneNumbersModulePatch: PhoneNumbersModulePatch; -} -/** Represents an update to a `PhoneNumbersModule`. Fields that are set will be updated. */ -export interface PhoneNumbersModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -export interface UpdateUsersModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `UsersModule` being updated. */ - usersModulePatch: UsersModulePatch; -} -/** 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; -} -export interface UpdateWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `WebauthnCredentialsModule` being updated. */ - webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; -} -/** 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; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ - orgAdminGrantPatch: OrgAdminGrantPatch; -} -/** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ -export interface OrgAdminGrantPatch { - id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId?: string; - /** The entity (org or group) this admin grant applies to */ - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ -export interface OrgMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId?: string; -} -export interface UpdateOrgOwnerGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ - orgOwnerGrantPatch: OrgOwnerGrantPatch; -} -/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ -export interface OrgOwnerGrantPatch { - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId?: string; - /** The entity (org or group) this ownership grant applies to */ - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - name: string; - /** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */ - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */ -export interface NodeTypeRegistryPatch { - name?: string; - slug?: string; - category?: string; - displayName?: string; - description?: string; - parameterSchema?: unknown; - tags?: string[]; -} -export interface UpdateAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. */ - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; -} -/** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */ -export interface AppLimitCapsDefaultPatch { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface UpdateOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; -} -/** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */ -export interface OrgLimitCapsDefaultPatch { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ - appLimitCapPatch: AppLimitCapPatch; -} -/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ -export interface AppLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */ - orgLimitCapPatch: OrgLimitCapPatch; -} -/** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */ -export interface OrgLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateDatabaseInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Database` being updated. */ - databasePatch: DatabasePatch; -} -/** Represents an update to a `Database`. Fields that are set will be updated. */ -export interface DatabasePatch { - id?: string; - ownerId?: string; - schemaHash?: string; - name?: string; - label?: string; - hash?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `CryptoAddressesModule` being updated. */ - cryptoAddressesModulePatch: CryptoAddressesModulePatch; -} -/** 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; -} -export interface UpdateOrgChartEdgeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ - orgChartEdgePatch: OrgChartEdgePatch; -} -/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ -export interface OrgChartEdgePatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId?: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `CryptoAddress` being updated. */ - cryptoAddressPatch: CryptoAddressPatch; -} -/** Represents an update to a `CryptoAddress`. Fields that are set will be updated. */ -export interface CryptoAddressPatch { - id?: string; - ownerId?: string; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean; - /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ -export interface AppLimitCreditCodeItemPatch { - id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string; - /** Number of credits this item grants per redemption */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; -} -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { - id?: string; - /** Name identifier of the limit this default applies to */ - name?: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { - id?: string; - /** Name identifier of the limit this default applies to */ - name?: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; -} -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ -export interface AppLimitCreditCodePatch { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ - appLimitWarningPatch: AppLimitWarningPatch; -} -/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ -export interface AppLimitWarningPatch { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; -} -export interface UpdateFullTextSearchInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `FullTextSearch` being updated. */ - fullTextSearchPatch: FullTextSearchPatch; -} -/** Represents an update to a `FullTextSearch`. Fields that are set will be updated. */ -export interface FullTextSearchPatch { - id?: string; - databaseId?: string; - tableId?: string; - fieldId?: string; - fieldIds?: string[]; - weights?: string[]; - langs?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateTableGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TableGrant` being updated. */ - tableGrantPatch: TableGrantPatch; -} -/** Represents an update to a `TableGrant`. Fields that are set will be updated. */ -export interface TableGrantPatch { - id?: string; - databaseId?: string; - tableId?: string; - privilege?: string; - granteeName?: string; - fieldIds?: string[]; - isGrant?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - /** Unique identifier for this metadata record */ - id: string; - /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ - siteMetadatumPatch: SiteMetadatumPatch; -} -/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ -export interface SiteMetadatumPatch { - /** Unique identifier for this metadata record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this metadata belongs to */ - siteId?: string; - /** Page title for SEO (max 120 characters) */ - title?: string; - /** Meta description for SEO and social sharing (max 120 characters) */ - description?: string; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage; - /** Upload for Open Graph image for social media previews */ - ogImageUpload?: File; -} -export interface UpdatePubkeySettingInput { - clientMutationId?: string; - /** Unique identifier for this pubkey settings record */ - id: string; - /** An object where the defined keys will be set on the `PubkeySetting` being updated. */ - pubkeySettingPatch: PubkeySettingPatch; -} -/** Represents an update to a `PubkeySetting`. Fields that are set will be updated. */ -export interface PubkeySettingPatch { - /** Unique identifier for this pubkey settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string; - /** Field name used to identify the user in crypto auth functions */ - userField?: string; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: 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 UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. */ - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -/** Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. */ -export interface OrgChartEdgeGrantPatch { - id?: string; - /** Organization this grant applies to */ - entityId?: string; - /** User ID of the subordinate being placed in the hierarchy */ - childId?: string; - /** User ID of the manager being assigned; NULL for top-level positions */ - parentId?: string; - /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ - grantorId?: string; - /** TRUE to add/update the edge, FALSE to remove it */ - isGrant?: boolean; - /** Job title or role name being assigned in this grant */ - positionTitle?: string; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PhoneNumber` being updated. */ - phoneNumberPatch: PhoneNumberPatch; -} -/** Represents an update to a `PhoneNumber`. Fields that are set will be updated. */ -export interface PhoneNumberPatch { - id?: string; - ownerId?: string; - /** Country calling code (e.g. +1, +44) */ - cc?: string; - /** The phone number without country code */ - number?: string; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean; - /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */ - appLimitCreditPatch: AppLimitCreditPatch; -} -/** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */ -export interface AppLimitCreditPatch { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ - orgLimitCreditPatch: OrgLimitCreditPatch; -} -/** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */ -export interface OrgLimitCreditPatch { - id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; -} -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppClaimedInvite` being updated. */ - appClaimedInvitePatch: AppClaimedInvitePatch; -} -/** Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. */ -export interface AppClaimedInvitePatch { - id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ - orgLimitWarningPatch: OrgLimitWarningPatch; -} -/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ -export interface OrgLimitWarningPatch { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; -} -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id?: number; - /** Human-readable name of the membership type */ - name?: string; - /** Description of what this membership type represents */ - description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; -} -export interface UpdateDomainInput { - clientMutationId?: string; - /** Unique identifier for this domain record */ - id: string; - /** An object where the defined keys will be set on the `Domain` being updated. */ - domainPatch: DomainPatch; -} -/** Represents an update to a `Domain`. Fields that are set will be updated. */ -export interface DomainPatch { - /** Unique identifier for this domain record */ - id?: string; - /** Reference to the metaschema database this domain belongs to */ - databaseId?: string; - /** API endpoint this domain routes to (mutually exclusive with site_id) */ - apiId?: string; - /** Site this domain routes to (mutually exclusive with api_id) */ - siteId?: string; - /** Subdomain portion of the hostname */ - subdomain?: ConstructiveInternalTypeHostname; - /** Root domain of the hostname */ - domain?: ConstructiveInternalTypeHostname; -} -export interface UpdateRlsSettingInput { - clientMutationId?: string; - /** Unique identifier for this RLS settings record */ - id: string; - /** An object where the defined keys will be set on the `RlsSetting` being updated. */ - rlsSettingPatch: RlsSettingPatch; -} -/** Represents an update to a `RlsSetting`. Fields that are set will be updated. */ -export interface RlsSettingPatch { - /** Unique identifier for this RLS settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ - authenticateSchemaId?: string; - /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ - roleSchemaId?: string; - /** Reference to the authenticate function (FK to metaschema_public.function) */ - authenticateFunctionId?: string; - /** Reference to the strict authenticate function (FK to metaschema_public.function) */ - authenticateStrictFunctionId?: string; - /** Reference to the current_role function (FK to metaschema_public.function) */ - currentRoleFunctionId?: string; - /** Reference to the current_role_id function (FK to metaschema_public.function) */ - currentRoleIdFunctionId?: string; - /** Reference to the current_user_agent function (FK to metaschema_public.function) */ - currentUserAgentFunctionId?: string; - /** Reference to the current_ip_address function (FK to metaschema_public.function) */ - currentIpAddressFunctionId?: string; -} -export interface UpdateAppGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppGrant` being updated. */ - appGrantPatch: AppGrantPatch; -} -/** Represents an update to a `AppGrant`. Fields that are set will be updated. */ -export interface AppGrantPatch { - id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgClaimedInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgClaimedInvite` being updated. */ - orgClaimedInvitePatch: OrgClaimedInvitePatch; -} -/** Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. */ -export interface OrgClaimedInvitePatch { - id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface UpdateAuditLogAuthInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ - id: string; - /** An object where the defined keys will be set on the `AuditLogAuth` being updated. */ - auditLogAuthPatch: AuditLogAuthPatch; -} -/** Represents an update to a `AuditLogAuth`. Fields that are set will be updated. */ -export interface AuditLogAuthPatch { - createdAt?: string; - /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ - id?: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin; - /** Browser or client user-agent string from the request */ - userAgent?: string; - /** IP address of the client that initiated the auth event */ - ipAddress?: string; - /** Whether the authentication attempt succeeded */ - success?: boolean; -} -export interface UpdateBlueprintConstructionInput { - clientMutationId?: string; - /** Unique identifier for this construction attempt. */ - id: string; - /** An object where the defined keys will be set on the `BlueprintConstruction` being updated. */ - blueprintConstructionPatch: BlueprintConstructionPatch; -} -/** 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; - /** 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 UpdateRlsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `RlsModule` being updated. */ - rlsModulePatch: RlsModulePatch; -} -/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ -export interface RlsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; -} -export interface UpdateSessionsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SessionsModule` being updated. */ - sessionsModulePatch: SessionsModulePatch; -} -/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ -export interface SessionsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - authSettingsTableId?: string; - usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ - orgMemberProfilePatch: OrgMemberProfilePatch; -} -/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ -export interface OrgMemberProfilePatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; - /** Upload for Profile picture visible to other entity members */ - profilePictureUpload?: File; -} -export interface UpdateOrgGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgGrant` being updated. */ - orgGrantPatch: OrgGrantPatch; -} -/** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ -export interface OrgGrantPatch { - id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId?: string; - /** The entity (org or group) this permission grant applies to */ - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateBlueprintInput { - 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; -} -/** 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; - /** 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 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 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; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: 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; -} -export interface UpdatePartitionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Partition` being updated. */ - partitionPatch: PartitionPatch; -} -/** Represents an update to a `Partition`. Fields that are set will be updated. */ -export interface PartitionPatch { - id?: string; - databaseId?: string; - tableId?: string; - strategy?: string; - partitionKeyId?: string; - interval?: string; - retention?: string; - retentionKeepTable?: boolean; - premake?: number; - namingPattern?: string; - isParented?: boolean; - createdAt?: string; - updatedAt?: 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; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - prefix?: string; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - /** The email address */ - email?: ConstructiveInternalTypeEmail; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean; - /** Whether this is the user's primary email address */ - isPrimary?: boolean; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateDatabaseTransferInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `DatabaseTransfer` being updated. */ - databaseTransferPatch: DatabaseTransferPatch; -} -/** Represents an update to a `DatabaseTransfer`. Fields that are set will be updated. */ -export interface DatabaseTransferPatch { - id?: string; - databaseId?: string; - targetOwnerId?: string; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: string; - targetApprovedAt?: string; - status?: string; - initiatedBy?: string; - notes?: string; - expiresAt?: string; - createdAt?: string; - updatedAt?: string; - completedAt?: string; -} -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - /** Unique identifier for this settings record */ - id: string; - /** An object where the defined keys will be set on the `DatabaseSetting` being updated. */ - databaseSettingPatch: DatabaseSettingPatch; -} -/** Represents an update to a `DatabaseSetting`. Fields that are set will be updated. */ -export interface DatabaseSettingPatch { - /** Unique identifier for this settings record */ - id?: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean; - /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ - enableBulk?: boolean; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: unknown; -} -export interface UpdateCryptoAuthModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `CryptoAuthModule` being updated. */ - cryptoAuthModulePatch: CryptoAuthModulePatch; -} -/** Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. */ -export interface CryptoAuthModulePatch { - 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; -} -export interface UpdateDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. */ - databaseProvisionModulePatch: DatabaseProvisionModulePatch; -} -/** 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; - /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ - modules?: string[]; - /** 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 UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `InvitesModule` being updated. */ - invitesModulePatch: InvitesModulePatch; -} -/** Represents an update to a `InvitesModule`. Fields that are set will be updated. */ -export interface InvitesModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - prefix?: string; - membershipType?: number; - entityTableId?: string; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ -export interface OrgMembershipSettingPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; -} -export interface UpdateSecureTableProvisionInput { - clientMutationId?: string; - /** Unique identifier for this provision row. */ - id: string; - /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ - secureTableProvisionPatch: SecureTableProvisionPatch; -} -/** 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; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string; - /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ - tableName?: string; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: unknown; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ - useRls?: boolean; - /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ - fields?: unknown[]; - /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ - grants?: unknown; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: unknown; - /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; -} -export interface UpdateApiSettingInput { - clientMutationId?: string; - /** Unique identifier for this API settings record */ - id: string; - /** An object where the defined keys will be set on the `ApiSetting` being updated. */ - apiSettingPatch: ApiSettingPatch; -} -/** Represents an update to a `ApiSetting`. Fields that are set will be updated. */ -export interface ApiSettingPatch { - /** Unique identifier for this API settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** API these settings override for */ - apiId?: string; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ - enableAggregates?: boolean; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ - enablePostgis?: boolean; - /** Override: enable unified search (NULL = inherit from database_settings) */ - enableSearch?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ - enablePresignedUploads?: boolean; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ - enableManyToMany?: boolean; - /** Override: enable connection filter (NULL = inherit from database_settings) */ - enableConnectionFilter?: boolean; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ - enableLtree?: boolean; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ - enableLlm?: boolean; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ - enableRealtime?: boolean; - /** Override: enable bulk mutations (NULL = inherit from database_settings) */ - enableBulk?: boolean; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ - options?: unknown; -} -export interface UpdateComputeLogModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ComputeLogModule` being updated. */ - computeLogModulePatch: ComputeLogModulePatch; -} -/** Represents an update to a `ComputeLogModule`. Fields that are set will be updated. */ -export interface ComputeLogModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface UpdateInferenceLogModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `InferenceLogModule` being updated. */ - inferenceLogModulePatch: InferenceLogModulePatch; -} -/** Represents an update to a `InferenceLogModule`. Fields that are set will be updated. */ -export interface InferenceLogModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface UpdateMerkleStoreModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `MerkleStoreModule` being updated. */ - merkleStoreModulePatch: MerkleStoreModulePatch; -} -/** Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. */ -export interface MerkleStoreModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - createdAt?: string; -} -export interface UpdateStorageLogModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `StorageLogModule` being updated. */ - storageLogModulePatch: StorageLogModulePatch; -} -/** Represents an update to a `StorageLogModule`. Fields that are set will be updated. */ -export interface StorageLogModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface UpdateTransferLogModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `TransferLogModule` being updated. */ - transferLogModulePatch: TransferLogModulePatch; -} -/** Represents an update to a `TransferLogModule`. Fields that are set will be updated. */ -export interface TransferLogModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; -} -export interface UpdateEnumInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Enum` being updated. */ - enumPatch: EnumPatch; -} -/** Represents an update to a `Enum`. Fields that are set will be updated. */ -export interface EnumPatch { - id?: string; - databaseId?: string; - schemaId?: string; - name?: string; - label?: string; - description?: string; - values?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ - id: string; - /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */ - appLimitEventPatch: AppLimitEventPatch; -} -/** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */ -export interface AppLimitEventPatch { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ - id: string; - /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ - orgLimitEventPatch: OrgLimitEventPatch; -} -/** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */ -export interface OrgLimitEventPatch { - createdAt?: string; - /** Unique identifier for each limit event */ - id?: string; - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface UpdateViewInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `View` being updated. */ - viewPatch: ViewPatch; -} -/** Represents an update to a `View`. Fields that are set will be updated. */ -export interface ViewPatch { - id?: string; - databaseId?: string; - schemaId?: string; - name?: string; - tableId?: string; - viewType?: string; - data?: unknown; - filterType?: string; - filterData?: unknown; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; -} -export interface UpdateWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `WebauthnAuthModule` being updated. */ - webauthnAuthModulePatch: WebauthnAuthModulePatch; -} -/** 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; - rpId?: string; - rpName?: string; - originAllowlist?: string[]; - attestationType?: string; - requireUserVerification?: boolean; - residentKey?: string; - challengeExpiry?: IntervalInput; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembership` being updated. */ - appMembershipPatch: AppMembershipPatch; -} -/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ -export interface AppMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - profileId?: string; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `User` being updated. */ - userPatch: UserPatch; -} -/** Represents an update to a `User`. Fields that are set will be updated. */ -export interface UserPatch { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - createdAt?: string; - updatedAt?: string; - /** File upload for the `profilePicture` field. */ - profilePictureUpload?: File; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimit` being updated. */ - appLimitPatch: AppLimitPatch; -} -/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ -export interface AppLimitPatch { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface UpdateAppInput { - clientMutationId?: string; - /** Unique identifier for this app */ - id: string; - /** An object where the defined keys will be set on the `App` being updated. */ - appPatch: AppPatch; -} -/** Represents an update to a `App`. Fields that are set will be updated. */ -export interface AppPatch { - /** Unique identifier for this app */ - id?: string; - /** Reference to the metaschema database this app belongs to */ - databaseId?: string; - /** Site this app is associated with (one app per site) */ - siteId?: string; - /** Display name of the app */ - name?: string; - /** App icon or promotional image */ - appImage?: ConstructiveInternalTypeImage; - /** URL to the Apple App Store listing */ - appStoreLink?: ConstructiveInternalTypeUrl; - /** Apple App Store application identifier */ - appStoreId?: string; - /** Apple App ID prefix (Team ID) for universal links and associated domains */ - appIdPrefix?: string; - /** URL to the Google Play Store listing */ - playStoreLink?: ConstructiveInternalTypeUrl; - /** Upload for App icon or promotional image */ - appImageUpload?: File; -} -export interface UpdateSiteInput { - clientMutationId?: string; - /** Unique identifier for this site */ - id: string; - /** An object where the defined keys will be set on the `Site` being updated. */ - sitePatch: SitePatch; -} -/** Represents an update to a `Site`. Fields that are set will be updated. */ -export interface SitePatch { - /** Unique identifier for this site */ - id?: string; - /** Reference to the metaschema database this site belongs to */ - databaseId?: string; - /** Display title for the site (max 120 characters) */ - title?: string; - /** Short description of the site (max 120 characters) */ - description?: string; - /** Open Graph image used for social media link previews */ - ogImage?: ConstructiveInternalTypeImage; - /** Browser favicon attachment */ - favicon?: ConstructiveInternalTypeAttachment; - /** Apple touch icon for iOS home screen bookmarks */ - appleTouchIcon?: ConstructiveInternalTypeImage; - /** Primary logo image for the site */ - logo?: ConstructiveInternalTypeImage; - /** PostgreSQL database name this site connects to */ - dbname?: string; - /** Upload for Open Graph image used for social media link previews */ - ogImageUpload?: File; - /** Upload for Browser favicon attachment */ - faviconUpload?: File; - /** Upload for Apple touch icon for iOS home screen bookmarks */ - appleTouchIconUpload?: File; - /** Upload for Primary logo image for the site */ - logoUpload?: File; -} -export interface UpdateDbUsageModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `DbUsageModule` being updated. */ - dbUsageModulePatch: DbUsageModulePatch; -} -/** Represents an update to a `DbUsageModule`. Fields that are set will be updated. */ -export interface DbUsageModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - prefix?: string; -} -export interface 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; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; -} -export interface UpdateNotificationsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ - notificationsModulePatch: NotificationsModulePatch; -} -/** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */ -export interface NotificationsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - readStateTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; -} -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; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; - prefix?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; -} -export interface UpdateWebauthnCredentialInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `WebauthnCredential` being updated. */ - webauthnCredentialPatch: WebauthnCredentialPatch; -} -/** Represents an update to a `WebauthnCredential`. Fields that are set will be updated. */ -export interface WebauthnCredentialPatch { - id?: string; - ownerId?: string; - /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ - credentialId?: string; - /** COSE-encoded public key bytes from the authenticator attestation. */ - publicKey?: Base64EncodedBinary; - /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ - signCount?: string; - /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ - webauthnUserId?: string; - /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ - transports?: string[]; - /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ - credentialDeviceType?: string; - /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ - backupEligible?: boolean; - /** Current backup state; updated on each successful sign-in assertion. */ - backupState?: boolean; - /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ - name?: string; - /** Timestamp of the most recent successful sign-in assertion using this credential. */ - lastUsedAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdatePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PrimaryKeyConstraint` being updated. */ - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; -} -/** Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. */ -export interface PrimaryKeyConstraintPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - type?: string; - fieldIds?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateTriggerInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Trigger` being updated. */ - triggerPatch: TriggerPatch; -} -/** Represents an update to a `Trigger`. Fields that are set will be updated. */ -export interface TriggerPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - event?: string; - functionName?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateCheckConstraintInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ - checkConstraintPatch: CheckConstraintPatch; -} -/** Represents an update to a `CheckConstraint`. Fields that are set will be updated. */ -export interface CheckConstraintPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - type?: string; - fieldIds?: string[]; - expr?: unknown; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateUniqueConstraintInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `UniqueConstraint` being updated. */ - uniqueConstraintPatch: UniqueConstraintPatch; -} -/** Represents an update to a `UniqueConstraint`. Fields that are set will be updated. */ -export interface UniqueConstraintPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - description?: string; - smartTags?: unknown; - type?: string; - fieldIds?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateSpatialRelationInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SpatialRelation` being updated. */ - spatialRelationPatch: SpatialRelationPatch; -} -/** Represents an update to a `SpatialRelation`. Fields that are set will be updated. */ -export interface SpatialRelationPatch { - id?: string; - databaseId?: string; - tableId?: string; - fieldId?: string; - refTableId?: string; - refFieldId?: string; - name?: string; - operator?: string; - paramName?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdatePolicyInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Policy` being updated. */ - policyPatch: PolicyPatch; -} -/** Represents an update to a `Policy`. Fields that are set will be updated. */ -export interface PolicyPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - granteeName?: string; - privilege?: string; - permissive?: boolean; - disabled?: boolean; - policyType?: string; - data?: unknown; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ -export interface OrgLimitAggregatePatch { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimit` being updated. */ - orgLimitPatch: OrgLimitPatch; -} -/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ -export interface OrgLimitPatch { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - entityId?: string; - /** Resolved billable organization via get_organization_id */ - organizationId?: string; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string; -} -export interface UpdateWebauthnSettingInput { - clientMutationId?: string; - /** Unique identifier for this WebAuthn settings record */ - id: string; - /** An object where the defined keys will be set on the `WebauthnSetting` being updated. */ - webauthnSettingPatch: WebauthnSettingPatch; -} -/** Represents an update to a `WebauthnSetting`. Fields that are set will be updated. */ -export interface WebauthnSettingPatch { - /** Unique identifier for this WebAuthn settings record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ - schemaId?: string; - /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ - credentialsSchemaId?: string; - /** Schema of the sessions table (FK to metaschema_public.schema) */ - sessionsSchemaId?: string; - /** Schema of the session_secrets table (FK to metaschema_public.schema) */ - sessionSecretsSchemaId?: string; - /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ - credentialsTableId?: string; - /** Reference to the sessions table (FK to metaschema_public.table) */ - sessionsTableId?: string; - /** Reference to the session_credentials table (FK to metaschema_public.table) */ - sessionCredentialsTableId?: string; - /** Reference to the session_secrets table (FK to metaschema_public.table) */ - sessionSecretsTableId?: string; - /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ - userFieldId?: string; - /** WebAuthn Relying Party ID (typically the domain name) */ - rpId?: string; - /** WebAuthn Relying Party display name */ - rpName?: string; - /** Allowed origins for WebAuthn registration and authentication */ - originAllowlist?: string[]; - /** Attestation conveyance preference (none, indirect, direct, enterprise) */ - attestationType?: string; - /** Whether to require user verification (biometric/PIN) during auth */ - requireUserVerification?: boolean; - /** Resident key requirement (discouraged, preferred, required) */ - residentKey?: string; - /** Challenge TTL in seconds (default 300 = 5 minutes) */ - challengeExpirySeconds?: 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; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - recordUsageFunction?: string; - prefix?: string; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; -} -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - /** References the entity (org or group) this membership belongs to */ - entityId?: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; -} -export interface UpdateSchemaInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Schema` being updated. */ - schemaPatch: SchemaPatch; -} -/** Represents an update to a `Schema`. Fields that are set will be updated. */ -export interface SchemaPatch { - id?: string; - databaseId?: string; - name?: string; - schemaName?: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateIndexInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Index` being updated. */ - indexPatch: IndexPatch; -} -/** Represents an update to a `Index`. Fields that are set will be updated. */ -export interface IndexPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: unknown; - whereClause?: unknown; - isUnique?: boolean; - options?: unknown; - opClasses?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateGraphModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `GraphModule` being updated. */ - graphModulePatch: GraphModulePatch; -} -/** Represents an update to a `GraphModule`. Fields that are set will be updated. */ -export interface GraphModulePatch { - id?: string; - databaseId?: string; - publicSchemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - prefix?: string; - merkleStoreModuleId?: string; - graphsTableId?: string; - executionsTableId?: string; - outputsTableId?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - membershipType?: number; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; - createdAt?: string; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppInvite` being updated. */ - appInvitePatch: AppInvitePatch; -} -/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ -export interface AppInvitePatch { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateBillingProviderModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `BillingProviderModule` being updated. */ - billingProviderModulePatch: BillingProviderModulePatch; -} -/** Represents an update to a `BillingProviderModule`. Fields that are set will be updated. */ -export interface BillingProviderModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - provider?: string; - productsTableId?: string; - pricesTableId?: string; - subscriptionsTableId?: string; - billingCustomersTableId?: string; - billingCustomersTableName?: string; - billingProductsTableId?: string; - billingProductsTableName?: string; - billingPricesTableId?: string; - billingPricesTableName?: string; - billingSubscriptionsTableId?: string; - billingSubscriptionsTableName?: string; - billingWebhookEventsTableId?: string; - billingWebhookEventsTableName?: string; - processBillingEventFunction?: string; - prefix?: string; -} -export interface UpdateBlueprintTemplateInput { - clientMutationId?: string; - /** Unique identifier for this template. */ - id: string; - /** An object where the defined keys will be set on the `BlueprintTemplate` being updated. */ - blueprintTemplatePatch: BlueprintTemplatePatch; -} -/** Represents an update to a `BlueprintTemplate`. Fields that are set will be updated. */ -export interface BlueprintTemplatePatch { - /** Unique identifier for this template. */ - id?: string; - /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ - name?: string; - /** Semantic version string. Defaults to 1.0.0. */ - version?: string; - /** Human-readable display name for the template (e.g. E-Commerce Basic). */ - displayName?: string; - /** Optional description of what the template provisions. */ - description?: string; - /** The user who created or published this template. */ - ownerId?: string; - /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ - visibility?: string; - /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ - categories?: string[]; - /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ - tags?: string[]; - /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ - definition?: unknown; - /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ - definitionSchemaVersion?: string; - /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ - source?: string; - /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ - complexity?: string; - /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ - copyCount?: number; - /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ - forkCount?: number; - /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ - forkedFromId?: string; - /** 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?: string; - /** 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?: unknown; - /** Timestamp when this template was created. */ - createdAt?: string; - /** Timestamp when this template was last modified. */ - updatedAt?: string; -} -export interface UpdateHierarchyModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `HierarchyModule` being updated. */ - hierarchyModulePatch: HierarchyModulePatch; -} -/** Represents an update to a `HierarchyModule`. Fields that are set will be updated. */ -export interface HierarchyModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId?: string; - usersTableId?: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - createdAt?: 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; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; -} -export interface UpdateEmbeddingChunkInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `EmbeddingChunk` being updated. */ - embeddingChunkPatch: EmbeddingChunkPatch; -} -/** Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. */ -export interface EmbeddingChunkPatch { - id?: string; - databaseId?: string; - tableId?: string; - embeddingFieldId?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; - dimensions?: number; - metric?: string; - chunkSize?: number; - chunkOverlap?: number; - chunkStrategy?: string; - metadataFields?: unknown; - searchIndexes?: unknown; - enqueueChunkingJob?: boolean; - chunkingTaskName?: string; - embeddingModel?: string; - embeddingProvider?: string; - parentFkFieldId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateForeignKeyConstraintInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. */ - foreignKeyConstraintPatch: ForeignKeyConstraintPatch; -} -/** Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. */ -export interface ForeignKeyConstraintPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - description?: string; - smartTags?: unknown; - type?: string; - fieldIds?: string[]; - refTableId?: string; - refFieldIds?: string[]; - deleteAction?: string; - updateAction?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgInvite` being updated. */ - orgInvitePatch: OrgInvitePatch; -} -/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ -export interface OrgInvitePatch { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface UpdateAgentModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AgentModule` being updated. */ - agentModulePatch: AgentModulePatch; -} -/** Represents an update to a `AgentModule`. Fields that are set will be updated. */ -export interface AgentModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - threadTableId?: string; - messageTableId?: string; - taskTableId?: string; - promptsTableId?: string; - knowledgeTableId?: string; - threadTableName?: string; - messageTableName?: string; - taskTableName?: string; - promptsTableName?: string; - knowledgeTableName?: string; - hasKnowledge?: boolean; - apiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: unknown; - knowledgeConfig?: unknown; - knowledgePolicies?: unknown; - provisions?: unknown; -} -export interface UpdateRelationProvisionInput { - clientMutationId?: string; - /** Unique identifier for this relation provision row. */ - id: string; - /** An object where the defined keys will be set on the `RelationProvision` being updated. */ - relationProvisionPatch: RelationProvisionPatch; -} -/** Represents an update to a `RelationProvision`. Fields that are set will be updated. */ -export interface RelationProvisionPatch { - /** 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. */ - databaseId?: 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?: string; - /** - * 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?: string; - /** - * 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?: string; - /** 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?: string; - /** 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?: unknown; - /** 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?: unknown; - /** - * 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?: unknown; - /** 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?: string; - /** 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?: string; - /** 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?: string; - /** 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; -} -export interface UpdateUserAuthModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `UserAuthModule` being updated. */ - userAuthModulePatch: UserAuthModulePatch; -} -/** Represents an update to a `UserAuthModule`. Fields that are set will be updated. */ -export interface UserAuthModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - emailsTableId?: string; - usersTableId?: string; - secretsTableId?: string; - encryptedTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - 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; -} -export interface UpdateFieldInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Field` being updated. */ - fieldPatch: FieldPatch; -} -/** Represents an update to a `Field`. Fields that are set will be updated. */ -export interface FieldPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - label?: string; - description?: string; - smartTags?: unknown; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: unknown; - type?: unknown; - fieldOrder?: number; - regexp?: string; - chk?: unknown; - chkExpr?: unknown; - min?: number; - max?: number; - tags?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - createdAt?: string; - updatedAt?: 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; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - prefix?: string; - key?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; -} -export interface UpdateTableInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Table` being updated. */ - tablePatch: TablePatch; -} -/** Represents an update to a `Table`. Fields that are set will be updated. */ -export interface TablePatch { - id?: string; - databaseId?: string; - schemaId?: string; - name?: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: string; - singularName?: string; - tags?: string[]; - partitioned?: boolean; - partitionStrategy?: string; - partitionKeyNames?: string[]; - partitionKeyTypes?: string[]; - inheritsId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateLimitsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `LimitsModule` being updated. */ - limitsModulePatch: LimitsModulePatch; -} -/** Represents an update to a `LimitsModule`. Fields that are set will be updated. */ -export interface LimitsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - limitIncrementFunction?: string; - limitDecrementFunction?: string; - limitIncrementTrigger?: string; - limitDecrementTrigger?: string; - limitUpdateTrigger?: string; - limitCheckFunction?: string; - limitCreditsTableId?: string; - eventsTableId?: string; - creditCodesTableId?: string; - creditCodeItemsTableId?: string; - creditRedemptionsTableId?: string; - aggregateTableId?: string; - limitCapsTableId?: string; - limitCapsDefaultsTableId?: string; - capCheckTrigger?: string; - resolveCapFunction?: string; - limitWarningsTableId?: string; - limitWarningStateTableId?: string; - limitCheckSoftFunction?: string; - limitAggregateCheckSoftFunction?: string; - prefix?: string; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; -} -export interface UpdateStorageModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `StorageModule` being updated. */ - storageModulePatch: StorageModulePatch; -} -/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ -export interface StorageModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - key?: 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; -} -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; - 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; - membershipType?: number; - entityTableId?: string; - entityTableOwnerId?: string; - prefix?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; -} -export interface UpdateEventsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `EventsModule` being updated. */ - eventsModulePatch: EventsModulePatch; -} -/** Represents an update to a `EventsModule`. Fields that are set will be updated. */ -export interface EventsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: 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; - prefix?: string; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; -} -export interface UpdateEntityTypeProvisionInput { - clientMutationId?: string; - /** Unique identifier for this provision row. */ - id: string; - /** An object where the defined keys will be set on the `EntityTypeProvision` being updated. */ - entityTypeProvisionPatch: EntityTypeProvisionPatch; -} -/** Represents an update to a `EntityTypeProvision`. Fields that are set will be updated. */ -export interface EntityTypeProvisionPatch { - /** Unique identifier for this provision row. */ - id?: string; - /** The database to provision this entity type in. Required. */ - databaseId?: string; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name?: string; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ - prefix?: string; - /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ - description?: string; - /** - * Prefix of the parent entity type. The trigger resolves this to a membership_type integer - * by looking up memberships_module WHERE prefix = parent_entity. - * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - * (e.g. 'data_room' for a team_channel nested under data_room). - * The parent type must already be provisioned before this INSERT. - */ - parentEntity?: string; - /** - * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - * (e.g. prefix 'data_room' produces table 'data_rooms'). - * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - */ - tableName?: string; - /** - * Whether members of the parent entity can see child entities. Defaults to true. - * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - * When false: only direct members of the entity itself can see it (private entity mode). - * Controls whether the parent_member SELECT policy is created on the entity table. - * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - * skip_entity_policies=true, since no default policies are being applied in those cases. - */ - isVisible?: boolean; - /** - * Whether to apply limits_module security for this type. Defaults to false. - * The limits_module table structure is always created (memberships_module requires it), - * but when false, no RLS policies are applied to the limits tables. - * Set to true if this entity type needs configurable resource limits per membership. - */ - hasLimits?: boolean; - /** - * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. - */ - hasProfiles?: boolean; - /** - * Whether to provision events_module for this type. Defaults to false. - * Levels provide gamification/achievement tracking for members. - * When true, creates level steps, achievements, and level tables with security. - */ - hasLevels?: boolean; - /** - * Whether to provision invites_module for this type. Defaults to false. - * When true, the trigger inserts a row into invites_module which in turn - * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - * repeated INSERTs safe. - */ - hasInvites?: boolean; - /** - * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - * When true, the trigger calls event_tracker() on the claimed_invites table with - * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - * crediting the SENDER (inviter) when someone claims their invite code. - * Developers can then define achievements in the blueprint achievements[] section - * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - */ - hasInviteAchievements?: boolean; - /** - * Optional JSON array of storage module definitions. Presence triggers provisioning - * (same inference model as namespaces, functions, agents). - * Each element provisions a separate storage module with its own tables - * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - * NULL = do not provision storage. '[{}]' = provision one default storage module. - * Each array element recognizes (all optional): - * - key (text) module discriminator, max 16 chars, lowercase snake_case. - * Defaults to 'default' (omitted from table names). - * Non-default keys become infixes: {prefix}_{key}_buckets. - * (storage_key accepted for backward compat) - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this module - * - allowed_origins (text[]) default CORS origins for all buckets in this module - * - restrict_reads (boolean) require read_files permission for SELECT on files - * - has_path_shares (boolean) enable virtual filesystem + path share policies - * - has_versioning (boolean) enable file version chains - * - has_content_hash (boolean) enable content hash for dedup - * - has_custom_keys (boolean) allow client-provided S3 keys - * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow - * - confirm_upload_delay (interval) delay before first confirmation attempt - * - buckets (jsonb[]) array of initial bucket definitions to seed. - * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - * Each value: { nodes, fields, grants, use_rls, policies }. - * Example (single module, backward compat): - * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - * Example (multi-module): - * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - */ - storage?: unknown; - /** - * Optional JSON array of namespace module definitions. Presence triggers provisioning. - * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. - * Example: namespaces := '[{}]'::jsonb - */ - namespaces?: unknown; - /** - * Optional JSON array of function module definitions. Presence triggers provisioning. - * NULL = do not provision functions. '[{}]' = provision one default function module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. - * Example: functions := '[{}]'::jsonb - */ - functions?: unknown; - /** - * Optional JSON array of graph module definitions. Presence triggers provisioning. - * NULL = do not provision graphs. '[{}]' = provision one default graph module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. - * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned - * separately with the merkle store dependency resolved. - * Example: graphs := '[{}]'::jsonb - */ - graphs?: unknown; - agents?: unknown; - /** - * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - * Use this only when you want the entity table provisioned with zero policies (e.g. because you - * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - * false and either accepting the five defaults (table_provision=NULL) or overriding them via - * table_provision. - * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself - * - DELETE: owner of the entity can delete it - */ - skipEntityPolicies?: boolean; - /** - * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - * entries, so an entity table is configured the same way an ordinary blueprint table is. - * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - * table_provision.policies[] (is_visible becomes a no-op on this path). - * Recognized keys (all optional): - * - use_rls (boolean, default true) - * - nodes (jsonb array of {"$type","data"} Data* module entries) - * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - * - grants (jsonb array of grant objects; each with roles[] and privileges[]) - * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - * against the newly created entity table. - * Example — override with two SELECT policies: - * table_provision := jsonb_build_object( - * 'policies', jsonb_build_array( - * jsonb_build_object( - * '$type', 'AuthzEntityMembership', - * 'privileges', jsonb_build_array('select'), - * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - * 'name', 'self_member' - * ), - * jsonb_build_object( - * '$type', 'AuthzDirectOwner', - * 'privileges', jsonb_build_array('select', 'update'), - * 'data', jsonb_build_object('owner_field', 'owner_id') - * ) - * ) - * ) - */ - tableProvision?: unknown; - /** - * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - * This is the ID used in entity_types, memberships_module, and all module tables. - */ - outMembershipType?: number; - /** - * Output: the UUID of the created entity table. Populated by the trigger. - * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - */ - outEntityTableId?: string; - /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ - outEntityTableName?: string; - /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - * Populated by the trigger. Useful for verifying which modules were provisioned. - */ - outInstalledModules?: string[]; - /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ - outStorageModuleId?: string; - /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ - outBucketsTableId?: string; - /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ - outFilesTableId?: string; - outPathSharesTableId?: string; - /** - * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - * (i.e. the invites_module row was created in a previous run). - */ - outInvitesModuleId?: string; - /** - * Output: the UUID of the namespace_module row created (or found) for this entity type. - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceModuleId?: string; - /** - * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespacesTableId?: string; - /** - * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: string; -} -export interface DeleteDefaultIdsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteFunctionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteViewTableInput { - clientMutationId?: string; - id: string; -} -export interface DeleteApiSchemaInput { - clientMutationId?: string; - /** Unique identifier for this API-schema mapping */ - id: string; -} -export interface DeleteSiteThemeInput { - clientMutationId?: string; - /** Unique identifier for this theme record */ - id: string; -} -export interface DeleteOrgMemberInput { - clientMutationId?: string; - id: string; -} -export interface DeleteCorsSettingInput { - clientMutationId?: string; - /** Unique identifier for this CORS settings record */ - id: string; -} -export interface DeleteConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMembershipTypesModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteUserStateModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteApiModuleInput { - clientMutationId?: string; - /** Unique identifier for this API module record */ - id: string; -} -export interface DeleteSiteModuleInput { - clientMutationId?: string; - /** Unique identifier for this site module record */ - id: string; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} -export interface DeleteSchemaGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteTriggerFunctionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteViewRuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSessionSecretsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteDefaultPrivilegeInput { - clientMutationId?: string; - id: string; -} -export interface DeleteViewGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteApiInput { - clientMutationId?: string; - /** Unique identifier for this API */ - id: string; -} -export interface DeleteConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteDevicesModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteEmailsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeletePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteUsersModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteNodeTypeRegistryInput { - clientMutationId?: string; - name: string; -} -export interface DeleteAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteDatabaseInput { - clientMutationId?: string; - id: string; -} -export interface DeleteCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgChartEdgeInput { - clientMutationId?: string; - id: string; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface DeleteFullTextSearchInput { - clientMutationId?: string; - id: string; -} -export interface DeleteTableGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSiteMetadatumInput { - clientMutationId?: string; - /** Unique identifier for this metadata record */ - id: string; -} -export interface DeletePubkeySettingInput { - clientMutationId?: string; - /** Unique identifier for this pubkey settings record */ - id: string; -} -export interface DeleteRateLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeletePhoneNumberInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; -} -export interface DeleteDomainInput { - clientMutationId?: string; - /** Unique identifier for this domain record */ - id: string; -} -export interface DeleteRlsSettingInput { - clientMutationId?: string; - /** Unique identifier for this RLS settings record */ - id: string; -} -export interface DeleteAppGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAuditLogAuthInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ - id: string; -} -export interface DeleteBlueprintConstructionInput { - clientMutationId?: string; - /** Unique identifier for this construction attempt. */ - id: string; -} -export interface DeleteRlsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSessionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgGrantInput { - clientMutationId?: string; - id: string; -} -export interface DeleteBlueprintInput { - clientMutationId?: string; - /** Unique identifier for this blueprint. */ - id: string; -} -export interface DeleteDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; -} -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteRealtimeModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeletePartitionInput { - clientMutationId?: string; - id: string; -} -export interface DeletePlansModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} -export interface DeleteDatabaseTransferInput { - clientMutationId?: string; - id: string; -} -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - /** Unique identifier for this settings record */ - id: string; -} -export interface DeleteCryptoAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteInvitesModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSecureTableProvisionInput { - clientMutationId?: string; - /** Unique identifier for this provision row. */ - id: string; -} -export interface DeleteApiSettingInput { - clientMutationId?: string; - /** Unique identifier for this API settings record */ - id: string; -} -export interface DeleteComputeLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteInferenceLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMerkleStoreModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteStorageLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteTransferLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteEnumInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ - id: string; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - createdAt: string; - /** Unique identifier for each limit event */ - id: string; -} -export interface DeleteViewInput { - clientMutationId?: string; - id: string; -} -export interface DeleteWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppInput { - clientMutationId?: string; - /** Unique identifier for this app */ - id: string; -} -export interface DeleteSiteInput { - clientMutationId?: string; - /** Unique identifier for this site */ - id: string; -} -export interface DeleteDbUsageModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteNamespaceModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteNotificationsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteWebauthnCredentialInput { - clientMutationId?: string; - id: string; -} -export interface DeletePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface DeleteTriggerInput { - clientMutationId?: string; - id: string; -} -export interface DeleteCheckConstraintInput { - clientMutationId?: string; - id: string; -} -export interface DeleteUniqueConstraintInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSpatialRelationInput { - clientMutationId?: string; - id: string; -} -export interface DeletePolicyInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitAggregateInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface DeleteWebauthnSettingInput { - clientMutationId?: string; - /** Unique identifier for this WebAuthn settings record */ - id: string; -} -export interface DeleteBillingModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSchemaInput { - clientMutationId?: string; - id: string; -} -export interface DeleteIndexInput { - clientMutationId?: string; - id: string; -} -export interface DeleteGraphModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface DeleteBillingProviderModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteBlueprintTemplateInput { - clientMutationId?: string; - /** Unique identifier for this template. */ - id: string; -} -export interface DeleteHierarchyModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteProfilesModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteEmbeddingChunkInput { - clientMutationId?: string; - id: string; -} -export interface DeleteForeignKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAgentModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteRelationProvisionInput { - clientMutationId?: string; - /** Unique identifier for this relation provision row. */ - id: string; -} -export interface DeleteUserAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteFieldInput { - clientMutationId?: string; - id: string; -} -export interface DeleteFunctionModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteTableInput { - clientMutationId?: string; - id: string; -} -export interface DeleteLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteStorageModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMembershipsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteEventsModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteEntityTypeProvisionInput { - clientMutationId?: string; - /** Unique identifier for this provision row. */ - 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 `OrgGetManagersRecord` values. */ -export interface OrgGetManagersConnection { - nodes: OrgGetManagersRecord[]; - edges: OrgGetManagersEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgGetSubordinatesRecord` values. */ -export interface OrgGetSubordinatesConnection { - nodes: OrgGetSubordinatesRecord[]; - edges: OrgGetSubordinatesEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppPermission` values. */ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `DefaultIdsModule` values. */ -export interface DefaultIdsModuleConnection { - nodes: DefaultIdsModule[]; - edges: DefaultIdsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCreditRedemption` values. */ -export interface AppLimitCreditRedemptionConnection { - nodes: AppLimitCreditRedemption[]; - edges: AppLimitCreditRedemptionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Function` values. */ -export interface FunctionConnection { - nodes: Function[]; - edges: FunctionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ViewTable` values. */ -export interface ViewTableConnection { - nodes: ViewTable[]; - edges: ViewTableEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ApiSchema` values. */ -export interface ApiSchemaConnection { - nodes: ApiSchema[]; - edges: ApiSchemaEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SiteTheme` values. */ -export interface SiteThemeConnection { - nodes: SiteTheme[]; - edges: SiteThemeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMember` values. */ -export interface OrgMemberConnection { - nodes: OrgMember[]; - edges: OrgMemberEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `CorsSetting` values. */ -export interface CorsSettingConnection { - nodes: CorsSetting[]; - edges: CorsSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `IdentityProvider` values. */ -export interface IdentityProviderConnection { - nodes: IdentityProvider[]; - edges: IdentityProviderEdge[]; - 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 `MembershipTypesModule` values. */ -export interface MembershipTypesModuleConnection { - nodes: MembershipTypesModule[]; - edges: MembershipTypesModuleEdge[]; - 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 `AppPermissionDefault` values. */ -export interface AppPermissionDefaultConnection { - nodes: AppPermissionDefault[]; - edges: AppPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ApiModule` values. */ -export interface ApiModuleConnection { - nodes: ApiModule[]; - edges: ApiModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SiteModule` values. */ -export interface SiteModuleConnection { - nodes: SiteModule[]; - edges: SiteModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `RoleType` values. */ -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SchemaGrant` values. */ -export interface SchemaGrantConnection { - nodes: SchemaGrant[]; - edges: SchemaGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TriggerFunction` values. */ -export interface TriggerFunctionConnection { - nodes: TriggerFunction[]; - edges: TriggerFunctionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ViewRule` values. */ -export interface ViewRuleConnection { - nodes: ViewRule[]; - edges: ViewRuleEdge[]; - 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 `IdentityProvidersModule` values. */ -export interface IdentityProvidersModuleConnection { - nodes: IdentityProvidersModule[]; - edges: IdentityProvidersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SessionSecretsModule` values. */ -export interface SessionSecretsModuleConnection { - nodes: SessionSecretsModule[]; - edges: SessionSecretsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppAdminGrant` values. */ -export interface AppAdminGrantConnection { - nodes: AppAdminGrant[]; - edges: AppAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppOwnerGrant` values. */ -export interface AppOwnerGrantConnection { - nodes: AppOwnerGrant[]; - edges: AppOwnerGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgPermissionDefault` values. */ -export interface OrgPermissionDefaultConnection { - nodes: OrgPermissionDefault[]; - edges: OrgPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MigrateFile` values. */ -export interface MigrateFileConnection { - nodes: MigrateFile[]; - edges: MigrateFileEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `DefaultPrivilege` values. */ -export interface DefaultPrivilegeConnection { - nodes: DefaultPrivilege[]; - edges: DefaultPrivilegeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ViewGrant` values. */ -export interface ViewGrantConnection { - nodes: ViewGrant[]; - edges: ViewGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Api` values. */ -export interface ApiConnection { - nodes: Api[]; - edges: ApiEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ConnectedAccountsModule` values. */ -export interface ConnectedAccountsModuleConnection { - nodes: ConnectedAccountsModule[]; - edges: ConnectedAccountsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `DevicesModule` values. */ -export interface DevicesModuleConnection { - nodes: DevicesModule[]; - edges: DevicesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `EmailsModule` values. */ -export interface EmailsModuleConnection { - nodes: EmailsModule[]; - edges: EmailsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PhoneNumbersModule` values. */ -export interface PhoneNumbersModuleConnection { - nodes: PhoneNumbersModule[]; - edges: PhoneNumbersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `UsersModule` values. */ -export interface UsersModuleConnection { - nodes: UsersModule[]; - edges: UsersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `WebauthnCredentialsModule` values. */ -export interface WebauthnCredentialsModuleConnection { - nodes: WebauthnCredentialsModule[]; - edges: WebauthnCredentialsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppMembershipDefault` values. */ -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgAdminGrant` values. */ -export interface OrgAdminGrantConnection { - nodes: OrgAdminGrant[]; - edges: OrgAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipDefault` values. */ -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgOwnerGrant` values. */ -export interface OrgOwnerGrantConnection { - nodes: OrgOwnerGrant[]; - edges: OrgOwnerGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `NodeTypeRegistry` values. */ -export interface NodeTypeRegistryConnection { - nodes: NodeTypeRegistry[]; - edges: NodeTypeRegistryEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCapsDefault` values. */ -export interface AppLimitCapsDefaultConnection { - nodes: AppLimitCapsDefault[]; - edges: AppLimitCapsDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitCapsDefault` values. */ -export interface OrgLimitCapsDefaultConnection { - nodes: OrgLimitCapsDefault[]; - edges: OrgLimitCapsDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCap` values. */ -export interface AppLimitCapConnection { - nodes: AppLimitCap[]; - edges: AppLimitCapEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitCap` values. */ -export interface OrgLimitCapConnection { - nodes: OrgLimitCap[]; - edges: OrgLimitCapEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `UserConnectedAccount` values. */ -export interface UserConnectedAccountConnection { - nodes: UserConnectedAccount[]; - edges: UserConnectedAccountEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Database` values. */ -export interface DatabaseConnection { - nodes: Database[]; - edges: DatabaseEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `CryptoAddressesModule` values. */ -export interface CryptoAddressesModuleConnection { - nodes: CryptoAddressesModule[]; - edges: CryptoAddressesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgChartEdge` values. */ -export interface OrgChartEdgeConnection { - nodes: OrgChartEdge[]; - edges: OrgChartEdgeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `CryptoAddress` values. */ -export interface CryptoAddressConnection { - nodes: CryptoAddress[]; - edges: CryptoAddressEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCreditCodeItem` values. */ -export interface AppLimitCreditCodeItemConnection { - nodes: AppLimitCreditCodeItem[]; - edges: AppLimitCreditCodeItemEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCreditCode` values. */ -export interface AppLimitCreditCodeConnection { - nodes: AppLimitCreditCode[]; - edges: AppLimitCreditCodeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitWarning` values. */ -export interface AppLimitWarningConnection { - nodes: AppLimitWarning[]; - edges: AppLimitWarningEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `FullTextSearch` values. */ -export interface FullTextSearchConnection { - nodes: FullTextSearch[]; - edges: FullTextSearchEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TableGrant` values. */ -export interface TableGrantConnection { - nodes: TableGrant[]; - edges: TableGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SiteMetadatum` values. */ -export interface SiteMetadatumConnection { - nodes: SiteMetadatum[]; - edges: SiteMetadatumEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PubkeySetting` values. */ -export interface PubkeySettingConnection { - nodes: PubkeySetting[]; - edges: PubkeySettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `RateLimitsModule` values. */ -export interface RateLimitsModuleConnection { - nodes: RateLimitsModule[]; - edges: RateLimitsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgChartEdgeGrant` values. */ -export interface OrgChartEdgeGrantConnection { - nodes: OrgChartEdgeGrant[]; - edges: OrgChartEdgeGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PhoneNumber` values. */ -export interface PhoneNumberConnection { - nodes: PhoneNumber[]; - edges: PhoneNumberEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCredit` values. */ -export interface AppLimitCreditConnection { - nodes: AppLimitCredit[]; - edges: AppLimitCreditEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitCredit` values. */ -export interface OrgLimitCreditConnection { - nodes: OrgLimitCredit[]; - edges: OrgLimitCreditEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppClaimedInvite` values. */ -export interface AppClaimedInviteConnection { - nodes: AppClaimedInvite[]; - edges: AppClaimedInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitWarning` values. */ -export interface OrgLimitWarningConnection { - nodes: OrgLimitWarning[]; - edges: OrgLimitWarningEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Domain` values. */ -export interface DomainConnection { - nodes: Domain[]; - edges: DomainEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `RlsSetting` values. */ -export interface RlsSettingConnection { - nodes: RlsSetting[]; - edges: RlsSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppGrant` values. */ -export interface AppGrantConnection { - nodes: AppGrant[]; - edges: AppGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgClaimedInvite` values. */ -export interface OrgClaimedInviteConnection { - nodes: OrgClaimedInvite[]; - edges: OrgClaimedInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AuditLogAuth` values. */ -export interface AuditLogAuthConnection { - nodes: AuditLogAuth[]; - edges: AuditLogAuthEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `BlueprintConstruction` values. */ -export interface BlueprintConstructionConnection { - nodes: BlueprintConstruction[]; - edges: BlueprintConstructionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `RlsModule` values. */ -export interface RlsModuleConnection { - nodes: RlsModule[]; - edges: RlsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SessionsModule` values. */ -export interface SessionsModuleConnection { - nodes: SessionsModule[]; - edges: SessionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMemberProfile` values. */ -export interface OrgMemberProfileConnection { - nodes: OrgMemberProfile[]; - edges: OrgMemberProfileEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgGrant` values. */ -export interface OrgGrantConnection { - nodes: OrgGrant[]; - edges: OrgGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Blueprint` values. */ -export interface BlueprintConnection { - nodes: Blueprint[]; - edges: BlueprintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `DenormalizedTableField` values. */ -export interface DenormalizedTableFieldConnection { - nodes: DenormalizedTableField[]; - edges: DenormalizedTableFieldEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `RateLimitMetersModule` values. */ -export interface RateLimitMetersModuleConnection { - nodes: RateLimitMetersModule[]; - edges: RateLimitMetersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** 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 `Partition` values. */ -export interface PartitionConnection { - nodes: Partition[]; - edges: PartitionEdge[]; - 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 `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SqlAction` values. */ -export interface SqlActionConnection { - nodes: SqlAction[]; - edges: SqlActionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `DatabaseTransfer` values. */ -export interface DatabaseTransferConnection { - nodes: DatabaseTransfer[]; - edges: DatabaseTransferEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `DatabaseSetting` values. */ -export interface DatabaseSettingConnection { - nodes: DatabaseSetting[]; - edges: DatabaseSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `CryptoAuthModule` values. */ -export interface CryptoAuthModuleConnection { - nodes: CryptoAuthModule[]; - edges: CryptoAuthModuleEdge[]; - 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 `InvitesModule` values. */ -export interface InvitesModuleConnection { - nodes: InvitesModule[]; - edges: InvitesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipSetting` values. */ -export interface OrgMembershipSettingConnection { - nodes: OrgMembershipSetting[]; - edges: OrgMembershipSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SecureTableProvision` values. */ -export interface SecureTableProvisionConnection { - nodes: SecureTableProvision[]; - edges: SecureTableProvisionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ApiSetting` values. */ -export interface ApiSettingConnection { - nodes: ApiSetting[]; - edges: ApiSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ComputeLogModule` values. */ -export interface ComputeLogModuleConnection { - nodes: ComputeLogModule[]; - edges: ComputeLogModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `InferenceLogModule` values. */ -export interface InferenceLogModuleConnection { - nodes: InferenceLogModule[]; - edges: InferenceLogModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MerkleStoreModule` values. */ -export interface MerkleStoreModuleConnection { - nodes: MerkleStoreModule[]; - edges: MerkleStoreModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `StorageLogModule` values. */ -export interface StorageLogModuleConnection { - nodes: StorageLogModule[]; - edges: StorageLogModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `TransferLogModule` values. */ -export interface TransferLogModuleConnection { - nodes: TransferLogModule[]; - edges: TransferLogModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Enum` values. */ -export interface EnumConnection { - nodes: Enum[]; - edges: EnumEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitEvent` values. */ -export interface AppLimitEventConnection { - nodes: AppLimitEvent[]; - edges: AppLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitEvent` values. */ -export interface OrgLimitEventConnection { - nodes: OrgLimitEvent[]; - edges: OrgLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `View` values. */ -export interface ViewConnection { - nodes: View[]; - edges: ViewEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `WebauthnAuthModule` values. */ -export interface WebauthnAuthModuleConnection { - nodes: WebauthnAuthModule[]; - edges: WebauthnAuthModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppMembership` values. */ -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `User` values. */ -export interface UserConnection { - nodes: User[]; - edges: UserEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimit` values. */ -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `App` values. */ -export interface AppConnection { - nodes: App[]; - edges: AppEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Site` values. */ -export interface SiteConnection { - nodes: Site[]; - edges: SiteEdge[]; - 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 `NamespaceModule` values. */ -export interface NamespaceModuleConnection { - nodes: NamespaceModule[]; - edges: NamespaceModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `NotificationsModule` values. */ -export interface NotificationsModuleConnection { - nodes: NotificationsModule[]; - edges: NotificationsModuleEdge[]; - 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 `AstMigration` values. */ -export interface AstMigrationConnection { - nodes: AstMigration[]; - edges: AstMigrationEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `WebauthnCredential` values. */ -export interface WebauthnCredentialConnection { - nodes: WebauthnCredential[]; - edges: WebauthnCredentialEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PrimaryKeyConstraint` values. */ -export interface PrimaryKeyConstraintConnection { - nodes: PrimaryKeyConstraint[]; - edges: PrimaryKeyConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Trigger` values. */ -export interface TriggerConnection { - nodes: Trigger[]; - edges: TriggerEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `CheckConstraint` values. */ -export interface CheckConstraintConnection { - nodes: CheckConstraint[]; - edges: CheckConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `UniqueConstraint` values. */ -export interface UniqueConstraintConnection { - nodes: UniqueConstraint[]; - edges: UniqueConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SpatialRelation` values. */ -export interface SpatialRelationConnection { - nodes: SpatialRelation[]; - edges: SpatialRelationEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Policy` values. */ -export interface PolicyConnection { - nodes: Policy[]; - edges: PolicyEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitAggregate` values. */ -export interface OrgLimitAggregateConnection { - nodes: OrgLimitAggregate[]; - edges: OrgLimitAggregateEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimit` values. */ -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `WebauthnSetting` values. */ -export interface WebauthnSettingConnection { - nodes: WebauthnSetting[]; - edges: WebauthnSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `BillingModule` values. */ -export interface BillingModuleConnection { - nodes: BillingModule[]; - edges: BillingModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Schema` values. */ -export interface SchemaConnection { - nodes: Schema[]; - edges: SchemaEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Index` values. */ -export interface IndexConnection { - nodes: Index[]; - edges: IndexEdge[]; - 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 `AppInvite` values. */ -export interface AppInviteConnection { - nodes: AppInvite[]; - edges: AppInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `BillingProviderModule` values. */ -export interface BillingProviderModuleConnection { - nodes: BillingProviderModule[]; - edges: BillingProviderModuleEdge[]; - 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 `HierarchyModule` values. */ -export interface HierarchyModuleConnection { - nodes: HierarchyModule[]; - edges: HierarchyModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ProfilesModule` values. */ -export interface ProfilesModuleConnection { - nodes: ProfilesModule[]; - edges: ProfilesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `EmbeddingChunk` values. */ -export interface EmbeddingChunkConnection { - nodes: EmbeddingChunk[]; - edges: EmbeddingChunkEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ForeignKeyConstraint` values. */ -export interface ForeignKeyConstraintConnection { - nodes: ForeignKeyConstraint[]; - edges: ForeignKeyConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgInvite` values. */ -export interface OrgInviteConnection { - nodes: OrgInvite[]; - edges: OrgInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AgentModule` values. */ -export interface AgentModuleConnection { - nodes: AgentModule[]; - edges: AgentModuleEdge[]; - 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 `UserAuthModule` values. */ -export interface UserAuthModuleConnection { - nodes: UserAuthModule[]; - edges: UserAuthModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Field` values. */ -export interface FieldConnection { - nodes: Field[]; - edges: FieldEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `FunctionModule` values. */ -export interface FunctionModuleConnection { - nodes: FunctionModule[]; - edges: FunctionModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Table` values. */ -export interface TableConnection { - nodes: Table[]; - edges: TableEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `LimitsModule` values. */ -export interface LimitsModuleConnection { - nodes: LimitsModule[]; - edges: LimitsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `StorageModule` values. */ -export interface StorageModuleConnection { - nodes: StorageModule[]; - edges: StorageModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MembershipsModule` values. */ -export interface MembershipsModuleConnection { - nodes: MembershipsModule[]; - edges: MembershipsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `EventsModule` values. */ -export interface EventsModuleConnection { - nodes: EventsModule[]; - edges: EventsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `EntityTypeProvision` values. */ -export interface EntityTypeProvisionConnection { - nodes: EntityTypeProvision[]; - edges: EntityTypeProvisionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** Root meta schema type */ -export interface MetaSchema { - tables: MetaTable[]; -} -export interface SendAccountDeletionEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface SignOutPayload { - clientMutationId?: string | null; -} -export interface AcceptDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface CancelDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface RejectDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface DisconnectAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface RevokeApiKeyPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface RevokeSessionPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface VerifyPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface VerifyTotpPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface SubmitAppInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface SubmitOrgInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface CheckPasswordPayload { - clientMutationId?: string | null; -} -export interface ConfirmDeleteAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface SetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface VerifyEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface ConstructBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ProvisionNewUserPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ResetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; -} -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface CopyTemplateToBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} -export interface SignUpPayload { - clientMutationId?: string | null; - result?: SignUpRecord | null; -} -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export interface SetFieldOrderPayload { - clientMutationId?: string | null; -} -export interface ApplyRlsPayload { - clientMutationId?: string | null; -} -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export interface CreateUserDatabasePayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ExtendTokenExpiresPayload { - clientMutationId?: string | null; - result?: ExtendTokenExpiresRecord[] | null; -} -export interface CreateApiKeyPayload { - clientMutationId?: string | null; - result?: CreateApiKeyRecord | null; -} -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; -} -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export interface CreateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was created by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export interface CreateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was created by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export interface CreateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was created by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export interface CreateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was created by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was created by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface CreateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was created by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export interface CreateIdentityProviderPayload { - clientMutationId?: string | null; - /** The `IdentityProvider` that was created by this mutation. */ - identityProvider?: IdentityProvider | null; -} -export interface CreateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export interface CreateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was created by this mutation. */ - 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 CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface CreateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was created by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was created by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface CreateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was created by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export interface CreateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was created by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export interface CreateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was created by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export interface CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export interface CreateSessionSecretsModulePayload { - clientMutationId?: string | null; - /** The `SessionSecretsModule` that was created by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; -} -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export interface CreateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was created by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export interface CreateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was created by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export interface CreateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was created by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export interface CreateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was created by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export interface CreateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export interface CreateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was created by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export interface CreatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was created by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export interface CreateUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was created by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export interface CreateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was created by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export interface CreateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface CreateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface CreateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export interface CreateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was created by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export interface CreateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was created by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface CreateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export interface CreateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export interface CreateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was created by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export interface CreateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was created by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export interface CreateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was created by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export interface CreatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was created by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export interface CreateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export interface CreateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was created by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export interface CreatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was created by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export interface CreateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export interface CreateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface CreateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was created by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export interface CreateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was created by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export interface CreateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface CreateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was created by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface CreateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was created by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export interface CreateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was created by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export interface CreateRlsModulePayload { - clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export interface CreateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export interface CreateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was created by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface CreateBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was created by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export interface CreateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was created by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export interface CreateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was created by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export interface CreatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was created by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export interface CreatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface CreateSqlActionPayload { - clientMutationId?: string | null; - /** The `SqlAction` that was created by this mutation. */ - sqlAction?: SqlAction | null; -} -export interface CreateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was created by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export interface CreateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was created by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export interface CreateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export interface CreateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was created by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export interface CreateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was created by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export interface CreateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was created by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export interface CreateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was created by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export interface CreateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was created by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export interface CreateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was created by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export interface CreateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was created by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export interface CreateViewPayload { - clientMutationId?: string | null; - /** The `View` that was created by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export interface CreateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface CreateUserPayload { - clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface CreateAppPayload { - clientMutationId?: string | null; - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface CreateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was created by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface CreateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export interface CreateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export interface CreateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; -} -export interface CreateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was created by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export interface CreatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was created by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export interface CreateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was created by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export interface CreateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was created by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export interface CreateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was created by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export interface CreateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was created by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export interface CreatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was created by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export interface CreateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface CreateWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was created by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export interface CreateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface CreateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was created by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface CreateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was created by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export interface CreateGraphModulePayload { - clientMutationId?: string | null; - /** The `GraphModule` that was created by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; -} -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export interface CreateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export interface CreateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export interface CreateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was created by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export interface CreateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was created by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export interface CreateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was created by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export interface CreateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was created by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export interface CreateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was created by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface CreateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was created by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export interface CreateRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was created by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} -export interface CreateUserAuthModulePayload { - clientMutationId?: string | null; - /** The `UserAuthModule` that was created by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export interface CreateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was created by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export interface CreateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was created by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export interface CreateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface CreateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was created by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export interface CreateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was created by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export interface CreateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was created by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export interface UpdateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was updated by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export interface UpdateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was updated by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export interface UpdateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was updated by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export interface UpdateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was updated by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was updated by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface UpdateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was updated by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export interface UpdateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export interface UpdateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was updated by this mutation. */ - 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 UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was updated by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was updated by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface UpdateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was updated by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export interface UpdateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was updated by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export interface UpdateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was updated by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export interface UpdateSessionSecretsModulePayload { - clientMutationId?: string | null; - /** The `SessionSecretsModule` that was updated by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; -} -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface UpdateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was updated by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export interface UpdateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was updated by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export interface UpdateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was updated by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export interface UpdateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was updated by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export interface UpdateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export interface UpdateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was updated by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export interface UpdatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was updated by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export interface UpdateUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was updated by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export interface UpdateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was updated by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export interface UpdateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface UpdateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface UpdateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was updated by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export interface UpdateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was updated by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface UpdateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export interface UpdateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export interface UpdateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was updated by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export interface UpdateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was updated by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export interface UpdateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was updated by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export interface UpdatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was updated by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export interface UpdateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export interface UpdateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was updated by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export interface UpdatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was updated by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export interface UpdateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export interface UpdateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface UpdateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was updated by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export interface UpdateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was updated by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export interface UpdateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface UpdateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was updated by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface UpdateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was updated by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export interface UpdateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was updated by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export interface UpdateRlsModulePayload { - clientMutationId?: string | null; - /** The `RlsModule` that was updated by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export interface UpdateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export interface UpdateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was updated by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface UpdateBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was updated by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export interface UpdateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was updated by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export interface UpdateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was updated by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export interface UpdatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was updated by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export interface UpdatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface UpdateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was updated by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export interface UpdateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was updated by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export interface UpdateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export interface UpdateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was updated by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export interface UpdateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was updated by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export interface UpdateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was updated by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export interface UpdateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was updated by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export interface UpdateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was updated by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export interface UpdateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was updated by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export interface UpdateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was updated by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export interface UpdateViewPayload { - clientMutationId?: string | null; - /** The `View` that was updated by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export interface UpdateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface UpdateUserPayload { - clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface UpdateAppPayload { - clientMutationId?: string | null; - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface UpdateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was updated by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface UpdateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export interface UpdateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export interface UpdateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface UpdateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was updated by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export interface UpdatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was updated by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export interface UpdateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was updated by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export interface UpdateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was updated by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export interface UpdateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was updated by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export interface UpdateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was updated by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export interface UpdatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was updated by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface UpdateWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was updated by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export interface UpdateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was updated by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface UpdateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was updated by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export interface UpdateGraphModulePayload { - clientMutationId?: string | null; - /** The `GraphModule` that was updated by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; -} -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export interface UpdateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export interface UpdateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export interface UpdateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was updated by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export interface UpdateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was updated by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export interface UpdateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was updated by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export interface UpdateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was updated by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export interface UpdateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface UpdateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was updated by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export interface UpdateRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was updated by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} -export interface UpdateUserAuthModulePayload { - clientMutationId?: string | null; - /** The `UserAuthModule` that was updated by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export interface UpdateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was updated by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export interface UpdateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was updated by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export interface UpdateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was updated by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface UpdateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was updated by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export interface UpdateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was updated by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export interface UpdateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was updated by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export interface DeleteDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was deleted by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export interface DeleteFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was deleted by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export interface DeleteViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was deleted by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export interface DeleteApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was deleted by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was deleted by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface DeleteCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was deleted by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export interface DeleteConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export interface DeleteMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was deleted by this mutation. */ - 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 DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was deleted by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was deleted by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface DeleteSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was deleted by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export interface DeleteTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was deleted by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export interface DeleteViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was deleted by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export interface DeleteIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export interface DeleteSessionSecretsModulePayload { - clientMutationId?: string | null; - /** The `SessionSecretsModule` that was deleted by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; -} -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface DeleteDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was deleted by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export interface DeleteViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was deleted by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export interface DeleteApiPayload { - clientMutationId?: string | null; - /** The `Api` that was deleted by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export interface DeleteConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was deleted by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export interface DeleteDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export interface DeleteEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was deleted by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export interface DeletePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was deleted by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export interface DeleteUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was deleted by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export interface DeleteWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface DeleteNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface DeleteOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface DeleteDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was deleted by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface DeleteAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export interface DeleteAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export interface DeleteFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was deleted by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export interface DeleteTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was deleted by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export interface DeleteSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was deleted by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export interface DeletePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was deleted by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export interface DeleteOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export interface DeleteOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export interface DeleteAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface DeleteDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was deleted by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export interface DeleteRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was deleted by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export interface DeleteAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface DeleteOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was deleted by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface DeleteAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was deleted by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export interface DeleteBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was deleted by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export interface DeleteRlsModulePayload { - clientMutationId?: string | null; - /** The `RlsModule` that was deleted by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export interface DeleteSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export interface DeleteOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was deleted by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface DeleteBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was deleted by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export interface DeleteDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was deleted by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export interface DeleteRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was deleted by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export interface DeletePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was deleted by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export interface DeletePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface DeleteDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was deleted by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export interface DeleteCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was deleted by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export interface DeleteDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export interface DeleteOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export interface DeleteApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was deleted by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export interface DeleteComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was deleted by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export interface DeleteInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was deleted by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export interface DeleteMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was deleted by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export interface DeleteStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was deleted by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export interface DeleteTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was deleted by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export interface DeleteEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was deleted by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export interface DeleteViewPayload { - clientMutationId?: string | null; - /** The `View` that was deleted by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export interface DeleteWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface DeleteUserPayload { - clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface DeleteAppPayload { - clientMutationId?: string | null; - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface DeleteSitePayload { - clientMutationId?: string | null; - /** The `Site` that was deleted by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface DeleteDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export interface DeleteNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export interface DeleteNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface DeleteWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was deleted by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export interface DeletePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export interface DeleteTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was deleted by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export interface DeleteCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was deleted by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export interface DeleteUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was deleted by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export interface DeleteSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was deleted by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export interface DeletePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was deleted by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface DeleteWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was deleted by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export interface DeleteBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was deleted by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface DeleteIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was deleted by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export interface DeleteGraphModulePayload { - clientMutationId?: string | null; - /** The `GraphModule` that was deleted by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; -} -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export interface DeleteBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export interface DeleteBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export interface DeleteHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was deleted by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export interface DeleteProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was deleted by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export interface DeleteEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was deleted by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export interface DeleteForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was deleted by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export interface DeleteOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface DeleteAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was deleted by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export interface DeleteRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was deleted by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} -export interface DeleteUserAuthModulePayload { - clientMutationId?: string | null; - /** The `UserAuthModule` that was deleted by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export interface DeleteFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was deleted by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export interface DeleteTablePayload { - clientMutationId?: string | null; - /** The `Table` that was deleted by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export interface DeleteLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was deleted by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface DeleteStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was deleted by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export interface DeleteMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was deleted by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export interface DeleteEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was deleted by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | 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 `OrgGetManagersRecord` edge in the connection. */ -export interface OrgGetManagersEdge { - cursor?: string | null; - /** The `OrgGetManagersRecord` at the end of the edge. */ - node?: OrgGetManagersRecord | 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 `OrgGetSubordinatesRecord` edge in the connection. */ -export interface OrgGetSubordinatesEdge { - cursor?: string | null; - /** The `OrgGetSubordinatesRecord` at the end of the edge. */ - node?: OrgGetSubordinatesRecord | null; -} -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} -/** A `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { - cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; -} -/** A `DefaultIdsModule` edge in the connection. */ -export interface DefaultIdsModuleEdge { - cursor?: string | null; - /** The `DefaultIdsModule` at the end of the edge. */ - node?: DefaultIdsModule | null; -} -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} -/** A `Function` edge in the connection. */ -export interface FunctionEdge { - cursor?: string | null; - /** The `Function` at the end of the edge. */ - node?: Function | null; -} -/** A `ViewTable` edge in the connection. */ -export interface ViewTableEdge { - cursor?: string | null; - /** The `ViewTable` at the end of the edge. */ - node?: ViewTable | null; -} -/** A `ApiSchema` edge in the connection. */ -export interface ApiSchemaEdge { - cursor?: string | null; - /** The `ApiSchema` at the end of the edge. */ - node?: ApiSchema | null; -} -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} -/** A `OrgMember` edge in the connection. */ -export interface OrgMemberEdge { - cursor?: string | null; - /** The `OrgMember` at the end of the edge. */ - node?: OrgMember | null; -} -/** A `CorsSetting` edge in the connection. */ -export interface CorsSettingEdge { - cursor?: string | null; - /** The `CorsSetting` at the end of the edge. */ - node?: CorsSetting | null; -} -/** A `IdentityProvider` edge in the connection. */ -export interface IdentityProviderEdge { - cursor?: string | null; - /** The `IdentityProvider` at the end of the edge. */ - node?: IdentityProvider | 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 `MembershipTypesModule` edge in the connection. */ -export interface MembershipTypesModuleEdge { - cursor?: string | null; - /** 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 `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -/** A `ApiModule` edge in the connection. */ -export interface ApiModuleEdge { - cursor?: string | null; - /** The `ApiModule` at the end of the edge. */ - node?: ApiModule | null; -} -/** A `SiteModule` edge in the connection. */ -export interface SiteModuleEdge { - cursor?: string | null; - /** The `SiteModule` at the end of the edge. */ - node?: SiteModule | null; -} -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} -/** A `SchemaGrant` edge in the connection. */ -export interface SchemaGrantEdge { - cursor?: string | null; - /** The `SchemaGrant` at the end of the edge. */ - node?: SchemaGrant | null; -} -/** A `TriggerFunction` edge in the connection. */ -export interface TriggerFunctionEdge { - cursor?: string | null; - /** The `TriggerFunction` at the end of the edge. */ - node?: TriggerFunction | null; -} -/** A `ViewRule` edge in the connection. */ -export interface ViewRuleEdge { - cursor?: string | null; - /** The `ViewRule` at the end of the edge. */ - node?: ViewRule | 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 `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | 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 `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { - cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; -} -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { - cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; -} -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -/** A `MigrateFile` edge in the connection. */ -export interface MigrateFileEdge { - cursor?: string | null; - /** The `MigrateFile` at the end of the edge. */ - node?: MigrateFile | null; -} -/** A `DefaultPrivilege` edge in the connection. */ -export interface DefaultPrivilegeEdge { - cursor?: string | null; - /** The `DefaultPrivilege` at the end of the edge. */ - node?: DefaultPrivilege | null; -} -/** A `ViewGrant` edge in the connection. */ -export interface ViewGrantEdge { - cursor?: string | null; - /** The `ViewGrant` at the end of the edge. */ - node?: ViewGrant | null; -} -/** A `Api` edge in the connection. */ -export interface ApiEdge { - cursor?: string | null; - /** The `Api` at the end of the edge. */ - node?: Api | null; -} -/** A `ConnectedAccountsModule` edge in the connection. */ -export interface ConnectedAccountsModuleEdge { - cursor?: string | null; - /** The `ConnectedAccountsModule` at the end of the edge. */ - node?: ConnectedAccountsModule | null; -} -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { - cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; -} -/** A `EmailsModule` edge in the connection. */ -export interface EmailsModuleEdge { - cursor?: string | null; - /** The `EmailsModule` at the end of the edge. */ - node?: EmailsModule | null; -} -/** A `PhoneNumbersModule` edge in the connection. */ -export interface PhoneNumbersModuleEdge { - cursor?: string | null; - /** The `PhoneNumbersModule` at the end of the edge. */ - node?: PhoneNumbersModule | null; -} -/** A `UsersModule` edge in the connection. */ -export interface UsersModuleEdge { - cursor?: string | null; - /** The `UsersModule` at the end of the edge. */ - node?: UsersModule | null; -} -/** A `WebauthnCredentialsModule` edge in the connection. */ -export interface WebauthnCredentialsModuleEdge { - cursor?: string | null; - /** The `WebauthnCredentialsModule` at the end of the edge. */ - node?: WebauthnCredentialsModule | null; -} -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -/** A `UserConnectedAccount` edge in the connection. */ -export interface UserConnectedAccountEdge { - cursor?: string | null; - /** The `UserConnectedAccount` at the end of the edge. */ - node?: UserConnectedAccount | null; -} -/** A `Database` edge in the connection. */ -export interface DatabaseEdge { - cursor?: string | null; - /** The `Database` at the end of the edge. */ - node?: Database | null; -} -/** A `CryptoAddressesModule` edge in the connection. */ -export interface CryptoAddressesModuleEdge { - cursor?: string | null; - /** The `CryptoAddressesModule` at the end of the edge. */ - node?: CryptoAddressesModule | null; -} -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} -/** A `FullTextSearch` edge in the connection. */ -export interface FullTextSearchEdge { - cursor?: string | null; - /** The `FullTextSearch` at the end of the edge. */ - node?: FullTextSearch | null; -} -/** A `TableGrant` edge in the connection. */ -export interface TableGrantEdge { - cursor?: string | null; - /** The `TableGrant` at the end of the edge. */ - node?: TableGrant | null; -} -/** A `SiteMetadatum` edge in the connection. */ -export interface SiteMetadatumEdge { - cursor?: string | null; - /** The `SiteMetadatum` at the end of the edge. */ - node?: SiteMetadatum | null; -} -/** A `PubkeySetting` edge in the connection. */ -export interface PubkeySettingEdge { - cursor?: string | null; - /** The `PubkeySetting` at the end of the edge. */ - node?: PubkeySetting | null; -} -/** A `RateLimitsModule` edge in the connection. */ -export interface RateLimitsModuleEdge { - cursor?: string | null; - /** The `RateLimitsModule` at the end of the edge. */ - node?: RateLimitsModule | null; -} -/** A `OrgChartEdgeGrant` edge in the connection. */ -export interface OrgChartEdgeGrantEdge { - cursor?: string | null; - /** The `OrgChartEdgeGrant` at the end of the edge. */ - node?: OrgChartEdgeGrant | null; -} -/** A `PhoneNumber` edge in the connection. */ -export interface PhoneNumberEdge { - cursor?: string | null; - /** The `PhoneNumber` at the end of the edge. */ - node?: PhoneNumber | null; -} -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { - cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; -} -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -/** A `Domain` edge in the connection. */ -export interface DomainEdge { - cursor?: string | null; - /** The `Domain` at the end of the edge. */ - node?: Domain | null; -} -/** A `RlsSetting` edge in the connection. */ -export interface RlsSettingEdge { - cursor?: string | null; - /** The `RlsSetting` at the end of the edge. */ - node?: RlsSetting | null; -} -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { - cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; -} -/** A `OrgClaimedInvite` edge in the connection. */ -export interface OrgClaimedInviteEdge { - cursor?: string | null; - /** The `OrgClaimedInvite` at the end of the edge. */ - node?: OrgClaimedInvite | null; -} -/** A `AuditLogAuth` edge in the connection. */ -export interface AuditLogAuthEdge { - cursor?: string | null; - /** The `AuditLogAuth` at the end of the edge. */ - node?: AuditLogAuth | null; -} -/** A `BlueprintConstruction` edge in the connection. */ -export interface BlueprintConstructionEdge { - cursor?: string | null; - /** The `BlueprintConstruction` at the end of the edge. */ - node?: BlueprintConstruction | null; -} -/** A `RlsModule` edge in the connection. */ -export interface RlsModuleEdge { - cursor?: string | null; - /** The `RlsModule` at the end of the edge. */ - node?: RlsModule | null; -} -/** A `SessionsModule` edge in the connection. */ -export interface SessionsModuleEdge { - cursor?: string | null; - /** The `SessionsModule` at the end of the edge. */ - node?: SessionsModule | null; -} -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -/** A `OrgGrant` edge in the connection. */ -export interface OrgGrantEdge { - cursor?: string | null; - /** The `OrgGrant` at the end of the edge. */ - node?: OrgGrant | null; -} -/** A `Blueprint` edge in the connection. */ -export interface BlueprintEdge { - cursor?: string | null; - /** The `Blueprint` at the end of the edge. */ - node?: Blueprint | null; -} -/** A `DenormalizedTableField` edge in the connection. */ -export interface DenormalizedTableFieldEdge { - cursor?: string | null; - /** The `DenormalizedTableField` at the end of the edge. */ - node?: DenormalizedTableField | null; -} -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} -/** A `RealtimeModule` edge in the connection. */ -export interface RealtimeModuleEdge { - cursor?: string | null; - /** The `RealtimeModule` at the end of the edge. */ - node?: RealtimeModule | null; -} -/** A `Partition` edge in the connection. */ -export interface PartitionEdge { - cursor?: string | null; - /** The `Partition` at the end of the edge. */ - node?: Partition | null; -} -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { - cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; -} -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -/** A `SqlAction` edge in the connection. */ -export interface SqlActionEdge { - cursor?: string | null; - /** The `SqlAction` at the end of the edge. */ - node?: SqlAction | null; -} -/** A `DatabaseTransfer` edge in the connection. */ -export interface DatabaseTransferEdge { - cursor?: string | null; - /** The `DatabaseTransfer` at the end of the edge. */ - node?: DatabaseTransfer | null; -} -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} -/** A `CryptoAuthModule` edge in the connection. */ -export interface CryptoAuthModuleEdge { - cursor?: string | null; - /** The `CryptoAuthModule` at the end of the edge. */ - node?: CryptoAuthModule | 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 `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { - cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; -} -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { - cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; -} -/** A `ApiSetting` edge in the connection. */ -export interface ApiSettingEdge { - cursor?: string | null; - /** The `ApiSetting` at the end of the edge. */ - node?: ApiSetting | null; -} -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { - cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; -} -/** A `InferenceLogModule` edge in the connection. */ -export interface InferenceLogModuleEdge { - cursor?: string | null; - /** The `InferenceLogModule` at the end of the edge. */ - node?: InferenceLogModule | null; -} -/** A `MerkleStoreModule` edge in the connection. */ -export interface MerkleStoreModuleEdge { - cursor?: string | null; - /** The `MerkleStoreModule` at the end of the edge. */ - node?: MerkleStoreModule | null; -} -/** A `StorageLogModule` edge in the connection. */ -export interface StorageLogModuleEdge { - cursor?: string | null; - /** The `StorageLogModule` at the end of the edge. */ - node?: StorageLogModule | null; -} -/** A `TransferLogModule` edge in the connection. */ -export interface TransferLogModuleEdge { - cursor?: string | null; - /** The `TransferLogModule` at the end of the edge. */ - node?: TransferLogModule | null; -} -/** A `Enum` edge in the connection. */ -export interface EnumEdge { - cursor?: string | null; - /** The `Enum` at the end of the edge. */ - node?: Enum | null; -} -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { - cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; -} -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { - cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; -} -/** A `View` edge in the connection. */ -export interface ViewEdge { - cursor?: string | null; - /** The `View` at the end of the edge. */ - node?: View | null; -} -/** A `WebauthnAuthModule` edge in the connection. */ -export interface WebauthnAuthModuleEdge { - cursor?: string | null; - /** The `WebauthnAuthModule` at the end of the edge. */ - node?: WebauthnAuthModule | null; -} -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { - cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; -} -/** A `User` edge in the connection. */ -export interface UserEdge { - cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; -} -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -/** A `App` edge in the connection. */ -export interface AppEdge { - cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; -} -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { - cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; -} -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { - cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | 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 `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} -/** A `AstMigration` edge in the connection. */ -export interface AstMigrationEdge { - cursor?: string | null; - /** The `AstMigration` at the end of the edge. */ - node?: AstMigration | null; -} -/** A `WebauthnCredential` edge in the connection. */ -export interface WebauthnCredentialEdge { - cursor?: string | null; - /** The `WebauthnCredential` at the end of the edge. */ - node?: WebauthnCredential | null; -} -/** A `PrimaryKeyConstraint` edge in the connection. */ -export interface PrimaryKeyConstraintEdge { - cursor?: string | null; - /** The `PrimaryKeyConstraint` at the end of the edge. */ - node?: PrimaryKeyConstraint | null; -} -/** A `Trigger` edge in the connection. */ -export interface TriggerEdge { - cursor?: string | null; - /** The `Trigger` at the end of the edge. */ - node?: Trigger | null; -} -/** A `CheckConstraint` edge in the connection. */ -export interface CheckConstraintEdge { - cursor?: string | null; - /** The `CheckConstraint` at the end of the edge. */ - node?: CheckConstraint | null; -} -/** A `UniqueConstraint` edge in the connection. */ -export interface UniqueConstraintEdge { - cursor?: string | null; - /** The `UniqueConstraint` at the end of the edge. */ - node?: UniqueConstraint | null; -} -/** A `SpatialRelation` edge in the connection. */ -export interface SpatialRelationEdge { - cursor?: string | null; - /** The `SpatialRelation` at the end of the edge. */ - node?: SpatialRelation | null; -} -/** A `Policy` edge in the connection. */ -export interface PolicyEdge { - cursor?: string | null; - /** The `Policy` at the end of the edge. */ - node?: Policy | null; -} -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -/** A `WebauthnSetting` edge in the connection. */ -export interface WebauthnSettingEdge { - cursor?: string | null; - /** The `WebauthnSetting` at the end of the edge. */ - node?: WebauthnSetting | null; -} -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { - cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; -} -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -/** A `Schema` edge in the connection. */ -export interface SchemaEdge { - cursor?: string | null; - /** The `Schema` at the end of the edge. */ - node?: Schema | null; -} -/** A `Index` edge in the connection. */ -export interface IndexEdge { - cursor?: string | null; - /** The `Index` at the end of the edge. */ - node?: Index | 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 `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | 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 `BlueprintTemplate` edge in the connection. */ -export interface BlueprintTemplateEdge { - cursor?: string | null; - /** The `BlueprintTemplate` at the end of the edge. */ - node?: BlueprintTemplate | null; -} -/** A `HierarchyModule` edge in the connection. */ -export interface HierarchyModuleEdge { - cursor?: string | null; - /** The `HierarchyModule` at the end of the edge. */ - node?: HierarchyModule | null; -} -/** A `ProfilesModule` edge in the connection. */ -export interface ProfilesModuleEdge { - cursor?: string | null; - /** The `ProfilesModule` at the end of the edge. */ - node?: ProfilesModule | null; -} -/** A `EmbeddingChunk` edge in the connection. */ -export interface EmbeddingChunkEdge { - cursor?: string | null; - /** The `EmbeddingChunk` at the end of the edge. */ - node?: EmbeddingChunk | null; -} -/** A `ForeignKeyConstraint` edge in the connection. */ -export interface ForeignKeyConstraintEdge { - cursor?: string | null; - /** The `ForeignKeyConstraint` at the end of the edge. */ - node?: ForeignKeyConstraint | null; -} -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { - cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; -} -/** A `AgentModule` edge in the connection. */ -export interface AgentModuleEdge { - cursor?: string | null; - /** The `AgentModule` at the end of the edge. */ - node?: AgentModule | 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 `UserAuthModule` edge in the connection. */ -export interface UserAuthModuleEdge { - cursor?: string | null; - /** The `UserAuthModule` at the end of the edge. */ - node?: UserAuthModule | null; -} -/** A `Field` edge in the connection. */ -export interface FieldEdge { - cursor?: string | null; - /** The `Field` at the end of the edge. */ - node?: Field | null; -} -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} -/** A `Table` edge in the connection. */ -export interface TableEdge { - cursor?: string | null; - /** The `Table` at the end of the edge. */ - node?: Table | null; -} -/** A `LimitsModule` edge in the connection. */ -export interface LimitsModuleEdge { - cursor?: string | null; - /** The `LimitsModule` at the end of the edge. */ - node?: LimitsModule | null; -} -/** A `StorageModule` edge in the connection. */ -export interface StorageModuleEdge { - cursor?: string | null; - /** The `StorageModule` at the end of the edge. */ - node?: StorageModule | null; -} -/** A `MembershipsModule` edge in the connection. */ -export interface MembershipsModuleEdge { - cursor?: string | null; - /** The `MembershipsModule` at the end of the edge. */ - node?: MembershipsModule | null; -} -/** A `EventsModule` edge in the connection. */ -export interface EventsModuleEdge { - cursor?: string | null; - /** The `EventsModule` at the end of the edge. */ - node?: EventsModule | null; -} -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | 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; -} -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export interface BootstrapUserRecord { - outUserId?: string | null; - outEmail?: string | null; - outUsername?: string | null; - outDisplayName?: string | null; - outIsAdmin?: boolean | null; - outIsOwner?: boolean | null; - outIsSudo?: boolean | null; - outApiKey?: string | null; -} -export interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export interface ExtendTokenExpiresRecord { - id?: string | null; - sessionId?: string | null; - expiresAt?: string | null; -} -export interface CreateApiKeyRecord { - apiKey?: string | null; - keyId?: string | null; - expiresAt?: string | null; -} -export interface ProvisionTableRecord { - outTableId?: string | null; - outFields?: string[] | 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; -} -/** 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; -} -/** Information about a PostgreSQL type */ -export interface MetaType { - pgType: string; - gqlType: string; - isArray: boolean; - isNotNull?: boolean | null; - hasDefault?: boolean | null; - subtype?: string | null; -} -/** 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; -} diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts deleted file mode 100644 index f801db36d9..0000000000 --- a/sdk/constructive-react/src/public/types.ts +++ /dev/null @@ -1,2224 +0,0 @@ -/** - * Entity types and filter types - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import type { ObjectCategory } from './schema-types'; -export type Base64EncodedBinary = unknown; -export type ConstructiveInternalTypeAttachment = unknown; -export type ConstructiveInternalTypeEmail = unknown; -export type ConstructiveInternalTypeHostname = unknown; -export type ConstructiveInternalTypeImage = unknown; -export type ConstructiveInternalTypeOrigin = unknown; -export type ConstructiveInternalTypeUpload = unknown; -export type ConstructiveInternalTypeUrl = unknown; -export interface OrgGetManagersRecord { - userId: string | null; - depth: number | null; -} -export interface OrgGetSubordinatesRecord { - userId: string | null; - depth: number | null; -} -export interface AppPermission { - id: string | null; - name: string | null; - bitnum: number | null; - bitstr: string | null; - description: string | null; -} -export interface OrgPermission { - id: string | null; - name: string | null; - bitnum: number | null; - bitstr: string | null; - description: string | null; -} -export interface Database { - id: string | null; - ownerId: string | null; - schemaHash: string | null; - name: string | null; - label: string | null; - hash: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface Schema { - id: string | null; - databaseId: string | null; - name: string | null; - schemaName: string | null; - label: string | null; - description: string | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - isPublic: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface Table { - id: string | null; - databaseId: string | null; - schemaId: string | null; - name: string | null; - label: string | null; - description: string | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - useRls: boolean | null; - timestamps: boolean | null; - peoplestamps: boolean | null; - pluralName: string | null; - singularName: string | null; - tags: string[] | null; - partitioned: boolean | null; - partitionStrategy: string | null; - partitionKeyNames: string[] | null; - partitionKeyTypes: string[] | null; - inheritsId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface CheckConstraint { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - type: string | null; - fieldIds: string[] | null; - expr: unknown | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface Field { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - label: string | null; - description: string | null; - smartTags: unknown | null; - isRequired: boolean | null; - apiRequired: boolean | null; - defaultValue: unknown | null; - type: unknown | null; - fieldOrder: number | null; - regexp: string | null; - chk: unknown | null; - chkExpr: unknown | null; - min: number | null; - max: number | null; - tags: string[] | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface SpatialRelation { - id: string | null; - databaseId: string | null; - tableId: string | null; - fieldId: string | null; - refTableId: string | null; - refFieldId: string | null; - name: string | null; - operator: string | null; - paramName: string | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface ForeignKeyConstraint { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - description: string | null; - smartTags: unknown | null; - type: string | null; - fieldIds: string[] | null; - refTableId: string | null; - refFieldIds: string[] | null; - deleteAction: string | null; - updateAction: string | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface FullTextSearch { - id: string | null; - databaseId: string | null; - tableId: string | null; - fieldId: string | null; - fieldIds: string[] | null; - weights: string[] | null; - langs: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface Index { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - fieldIds: string[] | null; - includeFieldIds: string[] | null; - accessMethod: string | null; - indexParams: unknown | null; - whereClause: unknown | null; - isUnique: boolean | null; - options: unknown | null; - opClasses: string[] | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface Policy { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - granteeName: string | null; - privilege: string | null; - permissive: boolean | null; - disabled: boolean | null; - policyType: string | null; - data: unknown | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface PrimaryKeyConstraint { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - type: string | null; - fieldIds: string[] | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface TableGrant { - id: string | null; - databaseId: string | null; - tableId: string | null; - privilege: string | null; - granteeName: string | null; - fieldIds: string[] | null; - isGrant: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface Trigger { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - event: string | null; - functionName: string | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface UniqueConstraint { - id: string | null; - databaseId: string | null; - tableId: string | null; - name: string | null; - description: string | null; - smartTags: unknown | null; - type: string | null; - fieldIds: string[] | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface View { - id: string | null; - databaseId: string | null; - schemaId: string | null; - name: string | null; - tableId: string | null; - viewType: string | null; - data: unknown | null; - filterType: string | null; - filterData: unknown | null; - securityInvoker: boolean | null; - isReadOnly: boolean | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; -} -export interface ViewTable { - id: string | null; - viewId: string | null; - tableId: string | null; - joinOrder: number | null; -} -export interface ViewGrant { - id: string | null; - databaseId: string | null; - viewId: string | null; - granteeName: string | null; - privilege: string | null; - withGrantOption: boolean | null; - isGrant: boolean | null; -} -export interface ViewRule { - id: string | null; - databaseId: string | null; - viewId: string | null; - name: string | null; - event: string | null; - action: string | null; -} -export interface EmbeddingChunk { - id: string | null; - databaseId: string | null; - tableId: string | null; - embeddingFieldId: string | null; - chunksTableId: string | null; - chunksTableName: string | null; - contentFieldName: string | null; - dimensions: number | null; - metric: string | null; - chunkSize: number | null; - chunkOverlap: number | null; - chunkStrategy: string | null; - metadataFields: unknown | null; - searchIndexes: unknown | null; - enqueueChunkingJob: boolean | null; - chunkingTaskName: string | null; - embeddingModel: string | null; - embeddingProvider: string | null; - parentFkFieldId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface SecureTableProvision { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; - nodes: unknown | null; - useRls: boolean | null; - fields: unknown[] | null; - grants: unknown | null; - policies: unknown | null; - outFields: 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 SessionSecretsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; - sessionsTableId: string | null; -} -export interface IdentityProvidersModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - tableName: 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; -} -export interface ConfigSecretsOrgModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; -} -export interface SchemaGrant { - id: string | null; - databaseId: string | null; - schemaId: string | null; - granteeName: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface DefaultPrivilege { - id: string | null; - databaseId: string | null; - schemaId: string | null; - objectType: string | null; - privilege: string | null; - granteeName: string | null; - isGrant: boolean | null; -} -export interface Enum { - id: string | null; - databaseId: string | null; - schemaId: string | null; - name: string | null; - label: string | null; - description: string | null; - values: string[] | null; - smartTags: unknown | null; - category: ObjectCategory | null; - module: string | null; - scope: number | null; - tags: string[] | null; -} -export interface Function { - id: string | null; - databaseId: string | null; - schemaId: string | null; - name: string | null; -} -export interface ApiSchema { - id: string | null; - databaseId: string | null; - schemaId: string | null; - apiId: string | null; -} -export interface ApiModule { - id: string | null; - databaseId: string | null; - apiId: string | null; - name: string | null; - data: unknown | null; -} -export interface Domain { - id: string | null; - databaseId: string | null; - apiId: string | null; - siteId: string | null; - subdomain: ConstructiveInternalTypeHostname | null; - domain: ConstructiveInternalTypeHostname | null; -} -export interface SiteMetadatum { - id: string | null; - databaseId: string | null; - siteId: string | null; - title: string | null; - description: string | null; - ogImage: ConstructiveInternalTypeImage | null; -} -export interface SiteModule { - id: string | null; - databaseId: string | null; - siteId: string | null; - name: string | null; - data: unknown | null; -} -export interface SiteTheme { - id: string | null; - databaseId: string | null; - siteId: string | null; - theme: unknown | null; -} -export interface CorsSetting { - id: string | null; - databaseId: string | null; - apiId: string | null; - allowedOrigins: string[] | null; -} -export interface MerkleStoreModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - objectTableId: string | null; - storeTableId: string | null; - commitTableId: string | null; - refTableId: string | null; - prefix: string | null; - apiName: string | null; - privateApiName: string | null; - scopeField: string | null; - createdAt: string | null; -} -export interface GraphModule { - id: string | null; - databaseId: string | null; - publicSchemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - prefix: string | null; - merkleStoreModuleId: string | null; - graphsTableId: string | null; - executionsTableId: string | null; - outputsTableId: string | null; - apiName: string | null; - privateApiName: string | null; - scopeField: string | null; - membershipType: number | null; - entityTableId: string | null; - policies: unknown | null; - provisions: unknown | null; - createdAt: string | null; -} -export interface TriggerFunction { - id: string | null; - databaseId: string | null; - name: string | null; - code: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface Partition { - id: string | null; - databaseId: string | null; - tableId: string | null; - strategy: string | null; - partitionKeyId: string | null; - interval: string | null; - retention: string | null; - retentionKeepTable: boolean | null; - premake: number | null; - namingPattern: string | null; - isParented: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface DatabaseTransfer { - id: string | null; - databaseId: string | null; - targetOwnerId: string | null; - sourceApproved: boolean | null; - targetApproved: boolean | null; - sourceApprovedAt: string | null; - targetApprovedAt: string | null; - status: string | null; - initiatedBy: string | null; - notes: string | null; - expiresAt: string | null; - createdAt: string | null; - updatedAt: string | null; - completedAt: string | null; -} -export interface Api { - id: string | null; - databaseId: string | null; - name: string | null; - dbname: string | null; - roleName: string | null; - anonRole: string | null; - isPublic: boolean | null; -} -export interface Site { - id: string | null; - databaseId: string | null; - title: string | null; - description: string | null; - ogImage: ConstructiveInternalTypeImage | null; - favicon: ConstructiveInternalTypeAttachment | null; - appleTouchIcon: ConstructiveInternalTypeImage | null; - logo: ConstructiveInternalTypeImage | null; - dbname: string | null; -} -export interface App { - id: string | null; - databaseId: string | null; - siteId: string | null; - name: string | null; - appImage: ConstructiveInternalTypeImage | null; - appStoreLink: ConstructiveInternalTypeUrl | null; - appStoreId: string | null; - appIdPrefix: string | null; - playStoreLink: ConstructiveInternalTypeUrl | null; -} -export interface ApiSetting { - id: string | null; - databaseId: string | null; - apiId: string | null; - enableAggregates: boolean | null; - enablePostgis: boolean | null; - enableSearch: boolean | null; - enableDirectUploads: boolean | null; - enablePresignedUploads: boolean | null; - enableManyToMany: boolean | null; - enableConnectionFilter: boolean | null; - enableLtree: boolean | null; - enableLlm: boolean | null; - enableRealtime: boolean | null; - enableBulk: boolean | null; - options: unknown | null; -} -export interface ConnectedAccountsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - ownerTableId: string | null; - tableName: string | null; -} -export interface CryptoAddressesModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - ownerTableId: string | null; - tableName: string | null; - cryptoNetwork: string | null; -} -export interface CryptoAuthModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - usersTableId: string | null; - secretsTableId: string | null; - sessionsTableId: string | null; - sessionCredentialsTableId: string | null; - addressesTableId: string | null; - userField: string | null; - cryptoNetwork: string | null; - signInRequestChallenge: string | null; - signInRecordFailure: string | null; - signUpWithKey: string | null; - signInWithChallenge: string | null; -} -export interface DefaultIdsModule { - id: string | null; - databaseId: string | null; -} -export interface DenormalizedTableField { - id: string | null; - databaseId: string | null; - tableId: string | null; - fieldId: string | null; - setIds: string[] | null; - refTableId: string | null; - refFieldId: string | null; - refIds: string[] | null; - useUpdates: boolean | null; - updateDefaults: boolean | null; - funcName: string | null; - funcOrder: number | null; -} -export interface EmailsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - ownerTableId: string | null; - tableName: string | null; -} -export interface ConfigSecretsUserModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; - configDefinitionsTableId: string | null; -} -export interface InvitesModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - emailsTableId: string | null; - usersTableId: string | null; - invitesTableId: string | null; - claimedInvitesTableId: string | null; - invitesTableName: string | null; - claimedInvitesTableName: string | null; - submitInviteCodeFunction: string | null; - prefix: string | null; - membershipType: number | null; - entityTableId: string | null; -} -export interface EventsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - eventsTableId: string | null; - eventsTableName: string | null; - eventAggregatesTableId: string | null; - eventAggregatesTableName: string | null; - eventTypesTableId: string | null; - eventTypesTableName: string | null; - levelsTableId: string | null; - levelsTableName: string | null; - levelRequirementsTableId: string | null; - levelRequirementsTableName: string | null; - levelGrantsTableId: string | null; - levelGrantsTableName: string | null; - achievementRewardsTableId: string | null; - achievementRewardsTableName: string | null; - recordEvent: string | null; - removeEvent: string | null; - tgEvent: string | null; - tgEventToggle: string | null; - tgEventToggleBool: string | null; - tgEventBool: string | null; - upsertAggregate: string | null; - tgUpdateAggregates: string | null; - pruneEvents: string | null; - stepsRequired: string | null; - levelAchieved: string | null; - tgCheckAchievements: string | null; - grantAchievement: string | null; - tgAchievementReward: string | null; - interval: string | null; - retention: string | null; - premake: number | null; - prefix: string | null; - membershipType: number | null; - entityTableId: string | null; - actorTableId: string | null; -} -export interface LimitsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - tableName: string | null; - defaultTableId: string | null; - defaultTableName: string | null; - limitIncrementFunction: string | null; - limitDecrementFunction: string | null; - limitIncrementTrigger: string | null; - limitDecrementTrigger: string | null; - limitUpdateTrigger: string | null; - limitCheckFunction: string | null; - limitCreditsTableId: string | null; - eventsTableId: string | null; - creditCodesTableId: string | null; - creditCodeItemsTableId: string | null; - creditRedemptionsTableId: string | null; - aggregateTableId: string | null; - limitCapsTableId: string | null; - limitCapsDefaultsTableId: string | null; - capCheckTrigger: string | null; - resolveCapFunction: string | null; - limitWarningsTableId: string | null; - limitWarningStateTableId: string | null; - limitCheckSoftFunction: string | null; - limitAggregateCheckSoftFunction: string | null; - prefix: string | null; - membershipType: number | null; - entityTableId: string | null; - actorTableId: string | null; -} -export interface MembershipTypesModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; -} -export interface MembershipsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: 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; - membershipType: number | null; - entityTableId: string | null; - entityTableOwnerId: string | null; - prefix: string | null; - getOrgFn: string | null; - actorMaskCheck: string | null; - actorPermCheck: string | null; - entityIdsByMask: string | null; - entityIdsByPerm: string | null; - entityIdsFunction: string | null; - memberProfilesTableId: string | null; -} -export interface PermissionsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - tableName: string | null; - defaultTableId: string | null; - defaultTableName: string | null; - bitlen: number | null; - membershipType: number | null; - entityTableId: string | null; - actorTableId: string | null; - prefix: string | null; - getPaddedMask: string | null; - getMask: string | null; - getByMask: string | null; - getMaskByName: string | null; -} -export interface PhoneNumbersModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - ownerTableId: string | null; - tableName: string | null; -} -export interface ProfilesModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: 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; - membershipType: number | null; - entityTableId: string | null; - actorTableId: string | null; - permissionsTableId: string | null; - membershipsTableId: string | null; - prefix: string | null; -} -export interface UserStateModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; -} -export interface SessionsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - sessionsTableId: string | null; - sessionCredentialsTableId: string | null; - authSettingsTableId: string | null; - usersTableId: string | null; - sessionsDefaultExpiration: string | null; - sessionsTable: string | null; - sessionCredentialsTable: string | null; - authSettingsTable: string | null; -} -export interface UserAuthModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - emailsTableId: string | null; - usersTableId: string | null; - secretsTableId: string | null; - encryptedTableId: string | null; - sessionsTableId: string | null; - sessionCredentialsTableId: string | null; - auditsTableId: string | null; - auditsTableName: string | null; - signInFunction: string | null; - signUpFunction: string | null; - signOutFunction: string | null; - setPasswordFunction: string | null; - resetPasswordFunction: string | null; - forgotPasswordFunction: string | null; - sendVerificationEmailFunction: string | null; - verifyEmailFunction: string | null; - verifyPasswordFunction: string | null; - checkPasswordFunction: string | null; - sendAccountDeletionEmailFunction: string | null; - deleteAccountFunction: string | null; - signInCrossOriginFunction: string | null; - requestCrossOriginTokenFunction: string | null; - extendTokenExpires: string | null; -} -export interface UsersModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; - typeTableId: string | null; - typeTableName: string | null; -} -export interface Blueprint { - id: string | null; - ownerId: string | null; - databaseId: string | null; - name: string | null; - displayName: string | null; - description: string | null; - definition: unknown | null; - templateId: string | null; - definitionHash: string | null; - tableHashes: unknown | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface BlueprintTemplate { - id: string | null; - name: string | null; - version: string | null; - displayName: string | null; - description: string | null; - ownerId: string | null; - visibility: string | null; - categories: string[] | null; - tags: string[] | null; - definition: unknown | null; - definitionSchemaVersion: string | null; - source: string | null; - complexity: string | null; - copyCount: number | null; - forkCount: number | null; - forkedFromId: string | null; - definitionHash: string | null; - tableHashes: unknown | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface BlueprintConstruction { - id: string | null; - blueprintId: string | null; - databaseId: string | null; - schemaId: string | null; - status: string | null; - errorDetails: string | null; - tableMap: unknown | null; - constructedDefinition: unknown | null; - constructedAt: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface StorageModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - bucketsTableId: string | null; - filesTableId: string | null; - bucketsTableName: string | null; - filesTableName: string | null; - membershipType: number | null; - key: string | null; - policies: unknown | null; - provisions: unknown | null; - entityTableId: string | null; - endpoint: string | null; - publicUrlPrefix: string | null; - provider: string | null; - allowedOrigins: string[] | null; - restrictReads: boolean | null; - hasPathShares: boolean | null; - pathSharesTableId: string | null; - uploadUrlExpirySeconds: number | null; - downloadUrlExpirySeconds: number | null; - defaultMaxFileSize: string | null; - maxFilenameLength: number | null; - cacheTtlSeconds: number | null; - maxBulkFiles: number | null; - maxBulkTotalSize: string | null; - hasVersioning: boolean | null; - hasContentHash: boolean | null; - hasCustomKeys: boolean | null; - hasAuditLog: boolean | null; - hasConfirmUpload: boolean | null; - confirmUploadDelay: string | null; - fileEventsTableId: string | null; -} -export interface EntityTypeProvision { - id: string | null; - databaseId: string | null; - name: string | null; - prefix: string | null; - description: string | null; - parentEntity: string | null; - tableName: string | null; - isVisible: boolean | null; - hasLimits: boolean | null; - hasProfiles: boolean | null; - hasLevels: boolean | null; - hasInvites: boolean | null; - hasInviteAchievements: boolean | null; - storage: unknown | null; - namespaces: unknown | null; - functions: unknown | null; - graphs: unknown | null; - agents: unknown | null; - skipEntityPolicies: boolean | null; - tableProvision: unknown | null; - outMembershipType: number | null; - outEntityTableId: string | null; - outEntityTableName: string | null; - outInstalledModules: string[] | null; - outStorageModuleId: string | null; - outBucketsTableId: string | null; - outFilesTableId: string | null; - outPathSharesTableId: string | null; - outInvitesModuleId: string | null; - outNamespaceModuleId: string | null; - outNamespacesTableId: string | null; - outNamespaceEventsTableId: string | null; - outFunctionModuleId: string | null; - outDefinitionsTableId: string | null; - outInvocationsTableId: string | null; - outExecutionLogsTableId: string | null; - outSecretDefinitionsTableId: string | null; - outRequirementsTableId: string | null; - outConfigRequirementsTableId: string | null; - outGraphModuleId: string | null; - outGraphsTableId: string | null; - outAgentModuleId: string | null; -} -export interface WebauthnCredentialsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - ownerTableId: string | null; - tableName: string | null; -} -export interface WebauthnAuthModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - usersTableId: string | null; - credentialsTableId: string | null; - sessionsTableId: string | null; - sessionCredentialsTableId: string | null; - sessionSecretsTableId: string | null; - authSettingsTableId: string | null; - rpId: string | null; - rpName: string | null; - originAllowlist: string[] | null; - attestationType: string | null; - requireUserVerification: boolean | null; - residentKey: string | null; - challengeExpiry: string | null; -} -export interface NotificationsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - notificationsTableId: string | null; - readStateTableId: string | null; - preferencesTableId: string | null; - channelsTableId: string | null; - deliveryLogTableId: string | null; - ownerTableId: string | null; - userSettingsTableId: string | null; - organizationSettingsTableId: string | null; - hasChannels: boolean | null; - hasPreferences: boolean | null; - hasSettingsExtension: boolean | null; - hasDigestMetadata: boolean | null; - hasSubscriptions: boolean | null; -} -export interface InferenceLogModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - inferenceLogTableId: string | null; - inferenceLogTableName: string | null; - usageDailyTableId: string | null; - usageDailyTableName: string | null; - interval: string | null; - retention: string | null; - premake: number | null; - scope: string | null; - actorFkTableId: string | null; - entityFkTableId: string | null; - prefix: string | null; -} -export interface ComputeLogModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - computeLogTableId: string | null; - computeLogTableName: string | null; - usageDailyTableId: string | null; - usageDailyTableName: string | null; - interval: string | null; - retention: string | null; - premake: number | null; - scope: string | null; - actorFkTableId: string | null; - entityFkTableId: string | null; - prefix: string | null; -} -export interface TransferLogModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - transferLogTableId: string | null; - transferLogTableName: string | null; - usageDailyTableId: string | null; - usageDailyTableName: string | null; - interval: string | null; - retention: string | null; - premake: number | null; - scope: string | null; - actorFkTableId: string | null; - entityFkTableId: string | null; - prefix: string | null; -} -export interface StorageLogModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - storageLogTableId: string | null; - storageLogTableName: string | null; - usageDailyTableId: string | null; - usageDailyTableName: string | null; - interval: string | null; - retention: string | null; - premake: number | null; - scope: string | null; - actorFkTableId: string | null; - entityFkTableId: string | null; - prefix: string | null; -} -export interface DbUsageModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableStatsLogTableId: string | null; - tableStatsLogTableName: string | null; - tableStatsDailyTableId: string | null; - tableStatsDailyTableName: string | null; - queryStatsLogTableId: string | null; - queryStatsLogTableName: string | null; - queryStatsDailyTableId: string | null; - queryStatsDailyTableName: string | null; - interval: string | null; - retention: string | null; - premake: number | null; - scope: string | null; - prefix: string | null; -} -export interface AgentModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - threadTableId: string | null; - messageTableId: string | null; - taskTableId: string | null; - promptsTableId: string | null; - knowledgeTableId: string | null; - threadTableName: string | null; - messageTableName: string | null; - taskTableName: string | null; - promptsTableName: string | null; - knowledgeTableName: string | null; - hasKnowledge: boolean | null; - apiName: string | null; - membershipType: number | null; - key: string | null; - entityTableId: string | null; - policies: unknown | null; - knowledgeConfig: unknown | null; - knowledgePolicies: unknown | null; - provisions: unknown | 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; - membershipType: number | null; - key: string | null; - entityTableId: string | null; - policies: unknown | null; - provisions: unknown | null; -} -export interface FunctionModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - definitionsTableId: string | null; - invocationsTableId: string | null; - executionLogsTableId: string | null; - secretDefinitionsTableId: string | null; - requirementsTableId: string | null; - configDefinitionsTableId: string | null; - configRequirementsTableId: string | null; - definitionsTableName: string | null; - invocationsTableName: string | null; - executionLogsTableName: string | null; - secretDefinitionsTableName: string | null; - requirementsTableName: string | null; - configRequirementsTableName: string | null; - apiName: string | null; - privateApiName: string | null; - membershipType: number | null; - prefix: string | null; - key: string | null; - entityTableId: string | null; - policies: unknown | null; - provisions: unknown | null; -} -export interface DatabaseProvisionModule { - id: string | null; - databaseName: string | null; - ownerId: string | null; - subdomain: string | null; - domain: string | null; - modules: string[] | 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; -} -export interface AppAdminGrant { - id: string | null; - isGrant: boolean | null; - actorId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface AppOwnerGrant { - id: string | null; - isGrant: boolean | null; - actorId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface AppGrant { - id: string | null; - permissions: string | null; - isGrant: boolean | null; - actorId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface OrgMembership { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isActive: boolean | null; - isExternal: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - entityId: string | null; - isReadOnly: boolean | null; - profileId: string | null; -} -export interface OrgMember { - id: string | null; - isAdmin: boolean | null; - actorId: string | null; - entityId: string | null; -} -export interface OrgAdminGrant { - id: string | null; - isGrant: boolean | null; - actorId: string | null; - entityId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface OrgOwnerGrant { - id: string | null; - isGrant: boolean | null; - actorId: string | null; - entityId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface OrgMemberProfile { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - membershipId: string | null; - entityId: string | null; - actorId: string | null; - displayName: string | null; - email: string | null; - title: string | null; - bio: string | null; - profilePicture: ConstructiveInternalTypeImage | null; -} -export interface OrgGrant { - id: string | null; - permissions: string | null; - isGrant: boolean | null; - actorId: string | null; - entityId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface OrgChartEdge { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - entityId: string | null; - childId: string | null; - parentId: string | null; - positionTitle: string | null; - positionLevel: number | null; -} -export interface OrgChartEdgeGrant { - id: string | null; - entityId: string | null; - childId: string | null; - parentId: string | null; - grantorId: string | null; - isGrant: boolean | null; - positionTitle: string | null; - positionLevel: number | null; - createdAt: string | null; -} -export interface OrgPermissionDefault { - id: string | null; - permissions: string | null; - entityId: string | null; -} -export interface AppLimit { - id: string | null; - name: string | null; - actorId: string | null; - num: string | null; - max: string | null; - softMax: string | null; - windowStart: string | null; - windowDuration: string | null; - planMax: string | null; - purchasedCredits: string | null; - periodCredits: string | null; - organizationId: string | null; - entityType: string | null; -} -export interface AppLimitCredit { - id: string | null; - defaultLimitId: string | null; - actorId: string | null; - amount: string | null; - creditType: string | null; - reason: string | null; -} -export interface AppLimitCreditCodeItem { - id: string | null; - creditCodeId: string | null; - defaultLimitId: string | null; - amount: string | null; - creditType: string | null; -} -export interface AppLimitCreditRedemption { - id: string | null; - creditCodeId: string | null; - entityId: string | null; -} -export interface OrgLimit { - id: string | null; - name: string | null; - actorId: string | null; - num: string | null; - max: string | null; - softMax: string | null; - windowStart: string | null; - windowDuration: string | null; - planMax: string | null; - purchasedCredits: string | null; - periodCredits: string | null; - entityId: string | null; - organizationId: string | null; - entityType: string | null; -} -export interface OrgLimitCredit { - id: string | null; - defaultLimitId: string | null; - actorId: string | null; - entityId: string | null; - amount: string | null; - creditType: string | null; - reason: string | null; -} -export interface OrgLimitAggregate { - id: string | null; - name: string | null; - entityId: string | null; - num: string | null; - max: string | null; - softMax: string | null; - windowStart: string | null; - windowDuration: string | null; - planMax: string | null; - purchasedCredits: string | null; - periodCredits: string | null; - reserved: string | null; - organizationId: string | null; - entityType: string | null; -} -export interface OrgLimitWarning { - id: string | null; - name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; - entityId: string | null; -} -export interface Email { - id: string | null; - ownerId: string | null; - email: ConstructiveInternalTypeEmail | null; - isVerified: boolean | null; - isPrimary: boolean | null; - name: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface PhoneNumber { - id: string | null; - ownerId: string | null; - cc: string | null; - number: string | null; - isVerified: boolean | null; - isPrimary: boolean | null; - name: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface CryptoAddress { - id: string | null; - ownerId: string | null; - address: string | null; - isVerified: boolean | null; - isPrimary: boolean | null; - name: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface WebauthnCredential { - id: string | null; - ownerId: string | null; - credentialId: string | null; - publicKey: Base64EncodedBinary | null; - signCount: string | null; - webauthnUserId: string | null; - transports: string[] | null; - credentialDeviceType: string | null; - backupEligible: boolean | null; - backupState: boolean | null; - name: string | null; - lastUsedAt: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface AppInvite { - id: string | null; - email: ConstructiveInternalTypeEmail | null; - senderId: string | null; - inviteToken: string | null; - inviteValid: boolean | null; - inviteLimit: number | null; - inviteCount: number | null; - multiple: boolean | null; - data: unknown | null; - profileId: string | null; - expiresAt: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface AppClaimedInvite { - id: string | null; - data: unknown | null; - senderId: string | null; - receiverId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface OrgInvite { - id: string | null; - email: ConstructiveInternalTypeEmail | null; - senderId: string | null; - receiverId: string | null; - inviteToken: string | null; - inviteValid: boolean | null; - inviteLimit: number | null; - inviteCount: number | null; - multiple: boolean | null; - data: unknown | null; - profileId: string | null; - isReadOnly: boolean | null; - expiresAt: string | null; - createdAt: string | null; - updatedAt: string | null; - entityId: string | null; -} -export interface OrgClaimedInvite { - id: string | null; - data: unknown | null; - senderId: string | null; - receiverId: string | null; - createdAt: string | null; - updatedAt: string | null; - entityId: string | null; -} -export interface AuditLogAuth { - createdAt: string | null; - id: string | null; - event: string | null; - actorId: string | null; - origin: ConstructiveInternalTypeOrigin | null; - userAgent: string | null; - ipAddress: string | null; - success: boolean | null; -} -export interface IdentityProvider { - slug: string | null; - kind: string | null; - displayName: string | null; - enabled: boolean | null; - isBuiltIn: boolean | null; -} -export interface AppPermissionDefault { - id: string | null; - permissions: string | null; -} -export interface RoleType { - id: number | null; - name: string | null; -} -export interface MigrateFile { - id: string | null; - databaseId: string | null; - upload: ConstructiveInternalTypeUpload | null; -} -export interface DevicesModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - userDevicesTableId: string | null; - deviceSettingsTableId: string | null; - userDevicesTable: string | null; - deviceSettingsTable: string | null; -} -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; -} -export interface OrgMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - entityId: string | null; -} -export interface NodeTypeRegistry { - name: string | null; - slug: string | null; - category: string | null; - displayName: string | null; - description: string | null; - parameterSchema: unknown | null; - tags: string[] | null; -} -export interface AppLimitCapsDefault { - id: string | null; - name: string | null; - max: string | null; -} -export interface OrgLimitCapsDefault { - id: string | null; - name: string | null; - max: string | null; -} -export interface AppLimitCap { - id: string | null; - name: string | null; - entityId: string | null; - max: string | null; -} -export interface OrgLimitCap { - id: string | null; - name: string | null; - entityId: string | null; - max: string | null; -} -export interface UserConnectedAccount { - id: string | null; - ownerId: string | null; - service: string | null; - identifier: string | null; - details: unknown | null; - isVerified: boolean | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface AppLimitDefault { - id: string | null; - name: string | null; - max: string | null; - softMax: string | null; -} -export interface OrgLimitDefault { - id: string | null; - name: string | null; - max: string | null; - softMax: string | null; -} -export interface AppLimitCreditCode { - id: string | null; - code: string | null; - maxRedemptions: number | null; - currentRedemptions: number | null; - expiresAt: string | null; -} -export interface AppLimitWarning { - id: string | null; - name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; -} -export interface PubkeySetting { - id: string | null; - databaseId: string | null; - schemaId: string | null; - cryptoNetwork: string | null; - userField: string | null; - signUpWithKeyFunctionId: string | null; - signInRequestChallengeFunctionId: string | null; - signInRecordFailureFunctionId: string | null; - signInWithChallengeFunctionId: string | null; -} -export interface RateLimitsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - rateLimitSettingsTableId: string | null; - ipRateLimitsTableId: string | null; - rateLimitsTableId: string | null; - rateLimitSettingsTable: string | null; - ipRateLimitsTable: string | null; - rateLimitsTable: string | null; -} -export interface MembershipType { - id: number | null; - name: string | null; - description: string | null; - prefix: string | null; - parentMembershipType: number | null; - hasUsersTableEntry: boolean | null; -} -export interface RlsSetting { - id: string | null; - databaseId: string | null; - authenticateSchemaId: string | null; - roleSchemaId: string | null; - authenticateFunctionId: string | null; - authenticateStrictFunctionId: string | null; - currentRoleFunctionId: string | null; - currentRoleIdFunctionId: string | null; - currentUserAgentFunctionId: string | null; - currentIpAddressFunctionId: string | null; -} -export interface RlsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - sessionCredentialsTableId: string | null; - sessionsTableId: string | null; - usersTableId: string | null; - authenticate: string | null; - authenticateStrict: string | null; - currentRole: string | null; - currentRoleId: string | null; -} -export interface RateLimitMetersModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - rateLimitStateTableId: string | null; - rateLimitStateTableName: string | null; - rateLimitOverridesTableId: string | null; - rateLimitOverridesTableName: string | null; - rateWindowLimitsTableId: string | null; - rateWindowLimitsTableName: string | null; - checkRateLimitFunction: string | null; - prefix: string | null; -} -export interface PlansModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - plansTableId: string | null; - plansTableName: string | null; - planLimitsTableId: string | null; - planLimitsTableName: string | null; - planPricingTableId: string | null; - planOverridesTableId: string | null; - applyPlanFunction: string | null; - applyPlanAggregateFunction: string | null; - prefix: string | null; -} -export interface SqlAction { - id: number | null; - name: string | null; - databaseId: string | null; - deploy: string | null; - deps: string[] | null; - payload: unknown | null; - content: string | null; - revert: string | null; - verify: string | null; - createdAt: string | null; - action: string | null; - actionId: string | null; - actorId: string | null; -} -export interface DatabaseSetting { - id: string | null; - databaseId: string | null; - enableAggregates: boolean | null; - enablePostgis: boolean | null; - enableSearch: boolean | null; - enableDirectUploads: boolean | null; - enablePresignedUploads: boolean | null; - enableManyToMany: boolean | null; - enableConnectionFilter: boolean | null; - enableLtree: boolean | null; - enableLlm: boolean | null; - enableRealtime: boolean | null; - enableBulk: boolean | null; - options: unknown | null; -} -export interface OrgMembershipSetting { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - entityId: string | null; - deleteMemberCascadeChildren: boolean | null; - createChildCascadeOwners: boolean | null; - createChildCascadeAdmins: boolean | null; - createChildCascadeMembers: boolean | null; - allowExternalMembers: boolean | null; - inviteProfileAssignmentMode: string | null; - populateMemberEmail: boolean | null; - limitAllocationMode: string | null; -} -export interface AppLimitEvent { - createdAt: string | null; - id: string | null; - name: string | null; - actorId: string | null; - entityId: string | null; - organizationId: string | null; - entityType: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} -export interface OrgLimitEvent { - createdAt: string | null; - id: string | null; - name: string | null; - actorId: string | null; - entityId: string | null; - organizationId: string | null; - entityType: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} -export interface AppMembership { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isVerified: boolean | null; - isActive: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - profileId: string | null; -} -export interface User { - id: string | null; - username: string | null; - displayName: string | null; - profilePicture: ConstructiveInternalTypeImage | null; - searchTsv: string | null; - type: number | null; - createdAt: string | null; - updatedAt: string | null; - searchTsvRank: number | null; - displayNameTrgmSimilarity: number | null; - searchScore: number | 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; - schemaId: string | null; - credentialsSchemaId: string | null; - sessionsSchemaId: string | null; - sessionSecretsSchemaId: string | null; - credentialsTableId: string | null; - sessionsTableId: string | null; - sessionCredentialsTableId: string | null; - sessionSecretsTableId: string | null; - userFieldId: string | null; - rpId: string | null; - rpName: string | null; - originAllowlist: string[] | null; - attestationType: string | null; - requireUserVerification: boolean | null; - residentKey: string | null; - challengeExpirySeconds: string | null; -} -export interface BillingModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - metersTableId: string | null; - metersTableName: string | null; - planSubscriptionsTableId: string | null; - planSubscriptionsTableName: string | null; - ledgerTableId: string | null; - ledgerTableName: string | null; - balancesTableId: string | null; - balancesTableName: string | null; - meterCreditsTableId: string | null; - meterCreditsTableName: string | null; - meterSourcesTableId: string | null; - meterSourcesTableName: string | null; - recordUsageFunction: string | null; - prefix: string | null; -} -export interface BillingProviderModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - provider: string | null; - productsTableId: string | null; - pricesTableId: string | null; - subscriptionsTableId: string | null; - billingCustomersTableId: string | null; - billingCustomersTableName: string | null; - billingProductsTableId: string | null; - billingProductsTableName: string | null; - billingPricesTableId: string | null; - billingPricesTableName: string | null; - billingSubscriptionsTableId: string | null; - billingSubscriptionsTableName: string | null; - billingWebhookEventsTableId: string | null; - billingWebhookEventsTableName: string | null; - processBillingEventFunction: string | null; - prefix: string | null; -} -export interface HierarchyModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - chartEdgesTableId: string | null; - chartEdgesTableName: string | null; - hierarchySprtTableId: string | null; - hierarchySprtTableName: string | null; - chartEdgeGrantsTableId: string | null; - chartEdgeGrantsTableName: string | null; - entityTableId: string | null; - usersTableId: string | null; - prefix: string | null; - privateSchemaName: string | null; - sprtTableName: string | null; - rebuildHierarchyFunction: string | null; - getSubordinatesFunction: string | null; - getManagersFunction: string | null; - isManagerOfFunction: string | null; - createdAt: 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/usage/README.md b/sdk/constructive-react/src/usage/README.md new file mode 100644 index 0000000000..e3bdc45b68 --- /dev/null +++ b/sdk/constructive-react/src/usage/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 18 +- **Custom queries:** 0 +- **Custom mutations:** 5 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. + +--- + +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/usage/hooks/README.md b/sdk/constructive-react/src/usage/hooks/README.md new file mode 100644 index 0000000000..b09b847b05 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/README.md @@ -0,0 +1,582 @@ +# 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 | +|------|------|-------------| +| `useAppLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useAppLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useCreateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useUpdateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useDeleteAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useOrgLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useOrgLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useCreateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useUpdateOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useDeleteOrgLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | +| `useAppLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useAppLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useCreateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useUpdateAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useDeleteAppLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useOrgLimitCapsQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useOrgLimitCapQuery` | Query | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | +| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useAppLimitCreditsQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | +| `useAppLimitCreditQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | +| `useCreateAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useUpdateAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useDeleteAppLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useAppLimitCreditCodeItemsQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | +| `useAppLimitCreditCodeItemQuery` | Query | Items within a credit code — each row grants credits for a specific limit definition | +| `useCreateAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | +| `useUpdateAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | +| `useDeleteAppLimitCreditCodeItemMutation` | Mutation | Items within a credit code — each row grants credits for a specific limit definition | +| `useAppLimitCreditRedemptionsQuery` | Query | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | +| `useAppLimitCreditRedemptionQuery` | Query | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | +| `useCreateAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | +| `useUpdateAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | +| `useDeleteAppLimitCreditRedemptionMutation` | Mutation | Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits | +| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitCreditsQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | +| `useOrgLimitCreditQuery` | Query | Append-only ledger of credit grants that automatically update limit ceilings | +| `useCreateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useUpdateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useDeleteOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useOrgLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useOrgLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useCreateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useUpdateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useDeleteOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useAppLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useUpdateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useDeleteOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useSeedAppLimitCapsDefaultsMutation` | Mutation | seedAppLimitCapsDefaults | +| `useSeedAppLimitDefaultsMutation` | Mutation | seedAppLimitDefaults | +| `useSeedOrgLimitCapsDefaultsMutation` | Mutation | seedOrgLimitCapsDefaults | +| `useSeedOrgLimitDefaultsMutation` | Mutation | seedOrgLimitDefaults | +| `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 + +### AppLimitCapsDefault + +```typescript +// List all appLimitCapsDefaults +const { data, isLoading } = useAppLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Get one appLimitCapsDefault +const { data: item } = useAppLimitCapsDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Create a appLimitCapsDefault +const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', max: '' }); +``` + +### OrgLimitCapsDefault + +```typescript +// List all orgLimitCapsDefaults +const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Get one orgLimitCapsDefault +const { data: item } = useOrgLimitCapsDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Create a orgLimitCapsDefault +const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', max: '' }); +``` + +### AppLimitCap + +```typescript +// List all appLimitCaps +const { data, isLoading } = useAppLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Get one appLimitCap +const { data: item } = useAppLimitCapQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Create a appLimitCap +const { mutate: create } = useCreateAppLimitCapMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', max: '' }); +``` + +### OrgLimitCap + +```typescript +// List all orgLimitCaps +const { data, isLoading } = useOrgLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Get one orgLimitCap +const { data: item } = useOrgLimitCapQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Create a orgLimitCap +const { mutate: create } = useCreateOrgLimitCapMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', max: '' }); +``` + +### AppLimitDefault + +```typescript +// List all appLimitDefaults +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, +}); + +// Get one appLimitDefault +const { data: item } = useAppLimitDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true, softMax: true } }, +}); + +// Create a appLimitDefault +const { mutate: create } = useCreateAppLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', max: '', softMax: '' }); +``` + +### AppLimitCredit + +```typescript +// List all appLimitCredits +const { data, isLoading } = useAppLimitCreditsQuery({ + selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, +}); + +// Get one appLimitCredit +const { data: item } = useAppLimitCreditQuery({ + id: '', + selection: { fields: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }, +}); + +// Create a appLimitCredit +const { mutate: create } = useCreateAppLimitCreditMutation({ + selection: { fields: { id: true } }, +}); +create({ defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }); +``` + +### AppLimitCreditCodeItem + +```typescript +// List all appLimitCreditCodeItems +const { data, isLoading } = useAppLimitCreditCodeItemsQuery({ + selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, +}); + +// Get one appLimitCreditCodeItem +const { data: item } = useAppLimitCreditCodeItemQuery({ + id: '', + selection: { fields: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }, +}); + +// Create a appLimitCreditCodeItem +const { mutate: create } = useCreateAppLimitCreditCodeItemMutation({ + selection: { fields: { id: true } }, +}); +create({ creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }); +``` + +### AppLimitCreditRedemption + +```typescript +// List all appLimitCreditRedemptions +const { data, isLoading } = useAppLimitCreditRedemptionsQuery({ + selection: { fields: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }, +}); + +// Get one appLimitCreditRedemption +const { data: item } = useAppLimitCreditRedemptionQuery({ + id: '', + selection: { fields: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }, +}); + +// Create a appLimitCreditRedemption +const { mutate: create } = useCreateAppLimitCreditRedemptionMutation({ + selection: { fields: { id: true } }, +}); +create({ creditCodeId: '', entityId: '', organizationId: '', entityType: '' }); +``` + +### OrgLimitDefault + +```typescript +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, +}); + +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true, softMax: true } }, +}); + +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', max: '', softMax: '' }); +``` + +### OrgLimitCredit + +```typescript +// List all orgLimitCredits +const { data, isLoading } = useOrgLimitCreditsQuery({ + selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }, +}); + +// Get one orgLimitCredit +const { data: item } = useOrgLimitCreditQuery({ + id: '', + selection: { fields: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }, +}); + +// Create a orgLimitCredit +const { mutate: create } = useCreateOrgLimitCreditMutation({ + selection: { fields: { id: true } }, +}); +create({ defaultLimitId: '', actorId: '', entityId: '', organizationId: '', entityType: '', amount: '', creditType: '', reason: '' }); +``` + +### AppLimitWarning + +```typescript +// List all appLimitWarnings +const { data, isLoading } = useAppLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +}); + +// Get one appLimitWarning +const { data: item } = useAppLimitWarningQuery({ + id: '', + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +}); + +// Create a appLimitWarning +const { mutate: create } = useCreateAppLimitWarningMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); +``` + +### OrgLimitWarning + +```typescript +// List all orgLimitWarnings +const { data, isLoading } = useOrgLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, +}); + +// Get one orgLimitWarning +const { data: item } = useOrgLimitWarningQuery({ + id: '', + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, +}); + +// Create a orgLimitWarning +const { mutate: create } = useCreateOrgLimitWarningMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); +``` + +### AppLimitCreditCode + +```typescript +// List all appLimitCreditCodes +const { data, isLoading } = useAppLimitCreditCodesQuery({ + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +}); + +// Get one appLimitCreditCode +const { data: item } = useAppLimitCreditCodeQuery({ + id: '', + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +}); + +// Create a appLimitCreditCode +const { mutate: create } = useCreateAppLimitCreditCodeMutation({ + selection: { fields: { id: true } }, +}); +create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); +``` + +### AppLimitEvent + +```typescript +// List all appLimitEvents +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Get one appLimitEvent +const { data: item } = useAppLimitEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a appLimitEvent +const { mutate: create } = useCreateAppLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + +### OrgLimitEvent + +```typescript +// List all orgLimitEvents +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Get one orgLimitEvent +const { data: item } = useOrgLimitEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a orgLimitEvent +const { mutate: create } = useCreateOrgLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + +### AppLimit + +```typescript +// List all appLimits +const { data, isLoading } = useAppLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, +}); + +// Get one appLimit +const { data: item } = useAppLimitQuery({ + id: '', + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }, +}); + +// Create a appLimit +const { mutate: create } = useCreateAppLimitMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }); +``` + +### OrgLimitAggregate + +```typescript +// List all orgLimitAggregates +const { data, isLoading } = useOrgLimitAggregatesQuery({ + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, +}); + +// Get one orgLimitAggregate +const { data: item } = useOrgLimitAggregateQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }, +}); + +// Create a orgLimitAggregate +const { mutate: create } = useCreateOrgLimitAggregateMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }); +``` + +### OrgLimit + +```typescript +// List all orgLimits +const { data, isLoading } = useOrgLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, +}); + +// Get one orgLimit +const { data: item } = useOrgLimitQuery({ + id: '', + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }, +}); + +// Create a orgLimit +const { mutate: create } = useCreateOrgLimitMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }); +``` + +## Custom Operation Hooks + +### `useSeedAppLimitCapsDefaultsMutation` + +seedAppLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitCapsDefaultsInput (required) | + +### `useSeedAppLimitDefaultsMutation` + +seedAppLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitDefaultsInput (required) | + +### `useSeedOrgLimitCapsDefaultsMutation` + +seedOrgLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitCapsDefaultsInput (required) | + +### `useSeedOrgLimitDefaultsMutation` + +seedOrgLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitDefaultsInput (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/usage/hooks/client.ts b/sdk/constructive-react/src/usage/hooks/client.ts new file mode 100644 index 0000000000..47b9aa63f4 --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/hooks/index.ts b/sdk/constructive-react/src/usage/hooks/index.ts new file mode 100644 index 0000000000..78be7e2593 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, AppLimitDefault, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimitDefault, OrgLimitCredit, AppLimitWarning, OrgLimitWarning, AppLimitCreditCode, AppLimitEvent, OrgLimitEvent, AppLimit, OrgLimitAggregate, OrgLimit + * + * 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/usage/hooks/invalidation.ts b/sdk/constructive-react/src/usage/hooks/invalidation.ts new file mode 100644 index 0000000000..ee315de5cb --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/invalidation.ts @@ -0,0 +1,508 @@ +/** + * 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 { + appLimitCapsDefaultKeys, + orgLimitCapsDefaultKeys, + appLimitCapKeys, + orgLimitCapKeys, + appLimitDefaultKeys, + appLimitCreditKeys, + appLimitCreditCodeItemKeys, + appLimitCreditRedemptionKeys, + orgLimitDefaultKeys, + orgLimitCreditKeys, + appLimitWarningKeys, + orgLimitWarningKeys, + appLimitCreditCodeKeys, + appLimitEventKeys, + orgLimitEventKeys, + appLimitKeys, + orgLimitAggregateKeys, + orgLimitKeys, +} 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 appLimitCapsDefault queries */ appLimitCapsDefault: { + /** Invalidate all appLimitCapsDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCapsDefaultKeys.all, + }), + /** Invalidate appLimitCapsDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCapsDefaultKeys.lists(), + }), + /** Invalidate a specific appLimitCapsDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitCapsDefaultKeys.detail(id), + }), + }, + /** Invalidate orgLimitCapsDefault queries */ orgLimitCapsDefault: { + /** Invalidate all orgLimitCapsDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitCapsDefaultKeys.all, + }), + /** Invalidate orgLimitCapsDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitCapsDefaultKeys.lists(), + }), + /** Invalidate a specific orgLimitCapsDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitCapsDefaultKeys.detail(id), + }), + }, + /** Invalidate appLimitCap queries */ appLimitCap: { + /** Invalidate all appLimitCap queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCapKeys.all, + }), + /** Invalidate appLimitCap list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCapKeys.lists(), + }), + /** Invalidate a specific appLimitCap */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitCapKeys.detail(id), + }), + }, + /** Invalidate orgLimitCap queries */ orgLimitCap: { + /** Invalidate all orgLimitCap queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitCapKeys.all, + }), + /** Invalidate orgLimitCap list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitCapKeys.lists(), + }), + /** Invalidate a specific orgLimitCap */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitCapKeys.detail(id), + }), + }, + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.all, + }), + /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }), + /** Invalidate a specific appLimitDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.detail(id), + }), + }, + /** Invalidate appLimitCredit queries */ appLimitCredit: { + /** Invalidate all appLimitCredit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditKeys.all, + }), + /** Invalidate appLimitCredit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditKeys.lists(), + }), + /** Invalidate a specific appLimitCredit */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditKeys.detail(id), + }), + }, + /** Invalidate appLimitCreditCodeItem queries */ appLimitCreditCodeItem: { + /** Invalidate all appLimitCreditCodeItem queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditCodeItemKeys.all, + }), + /** Invalidate appLimitCreditCodeItem list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditCodeItemKeys.lists(), + }), + /** Invalidate a specific appLimitCreditCodeItem */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditCodeItemKeys.detail(id), + }), + }, + /** Invalidate appLimitCreditRedemption queries */ appLimitCreditRedemption: { + /** Invalidate all appLimitCreditRedemption queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditRedemptionKeys.all, + }), + /** Invalidate appLimitCreditRedemption list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditRedemptionKeys.lists(), + }), + /** Invalidate a specific appLimitCreditRedemption */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditRedemptionKeys.detail(id), + }), + }, + /** Invalidate orgLimitDefault queries */ orgLimitDefault: { + /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.all, + }), + /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }), + /** Invalidate a specific orgLimitDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.detail(id), + }), + }, + /** Invalidate orgLimitCredit queries */ orgLimitCredit: { + /** Invalidate all orgLimitCredit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitCreditKeys.all, + }), + /** Invalidate orgLimitCredit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitCreditKeys.lists(), + }), + /** Invalidate a specific orgLimitCredit */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitCreditKeys.detail(id), + }), + }, + /** Invalidate appLimitWarning queries */ appLimitWarning: { + /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitWarningKeys.all, + }), + /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitWarningKeys.lists(), + }), + /** Invalidate a specific appLimitWarning */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitWarningKeys.detail(id), + }), + }, + /** Invalidate orgLimitWarning queries */ orgLimitWarning: { + /** Invalidate all orgLimitWarning queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitWarningKeys.all, + }), + /** Invalidate orgLimitWarning list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitWarningKeys.lists(), + }), + /** Invalidate a specific orgLimitWarning */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitWarningKeys.detail(id), + }), + }, + /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { + /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditCodeKeys.all, + }), + /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditCodeKeys.lists(), + }), + /** Invalidate a specific appLimitCreditCode */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitCreditCodeKeys.detail(id), + }), + }, + /** Invalidate appLimitEvent queries */ appLimitEvent: { + /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.all, + }), + /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }), + /** Invalidate a specific appLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(id), + }), + }, + /** Invalidate orgLimitEvent queries */ orgLimitEvent: { + /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.all, + }), + /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }), + /** Invalidate a specific orgLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(id), + }), + }, + /** Invalidate appLimit queries */ appLimit: { + /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.all, + }), + /** Invalidate appLimit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }), + /** Invalidate a specific appLimit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.detail(id), + }), + }, + /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { + /** Invalidate all orgLimitAggregate queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.all, + }), + /** Invalidate orgLimitAggregate list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }), + /** Invalidate a specific orgLimitAggregate */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.detail(id), + }), + }, + /** Invalidate orgLimit queries */ orgLimit: { + /** Invalidate all orgLimit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.all, + }), + /** Invalidate orgLimit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }), + /** Invalidate a specific orgLimit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.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 appLimitCapsDefault from cache */ appLimitCapsDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitCapsDefaultKeys.detail(id), + }); + }, + /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitCapsDefaultKeys.detail(id), + }); + }, + /** Remove appLimitCap from cache */ appLimitCap: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitCapKeys.detail(id), + }); + }, + /** Remove orgLimitCap from cache */ orgLimitCap: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitCapKeys.detail(id), + }); + }, + /** Remove appLimitDefault from cache */ appLimitDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitDefaultKeys.detail(id), + }); + }, + /** Remove appLimitCredit from cache */ appLimitCredit: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitCreditKeys.detail(id), + }); + }, + /** Remove appLimitCreditCodeItem from cache */ appLimitCreditCodeItem: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitCreditCodeItemKeys.detail(id), + }); + }, + /** Remove appLimitCreditRedemption from cache */ appLimitCreditRedemption: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitCreditRedemptionKeys.detail(id), + }); + }, + /** Remove orgLimitDefault from cache */ orgLimitDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitDefaultKeys.detail(id), + }); + }, + /** Remove orgLimitCredit from cache */ orgLimitCredit: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitCreditKeys.detail(id), + }); + }, + /** Remove appLimitWarning from cache */ appLimitWarning: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitWarningKeys.detail(id), + }); + }, + /** Remove orgLimitWarning from cache */ orgLimitWarning: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitWarningKeys.detail(id), + }); + }, + /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitCreditCodeKeys.detail(id), + }); + }, + /** Remove appLimitEvent from cache */ appLimitEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitEventKeys.detail(id), + }); + }, + /** Remove orgLimitEvent from cache */ orgLimitEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitEventKeys.detail(id), + }); + }, + /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLimitKeys.detail(id), + }); + }, + /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitAggregateKeys.detail(id), + }); + }, + /** Remove orgLimit from cache */ orgLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgLimitKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/usage/hooks/mutation-keys.ts b/sdk/constructive-react/src/usage/hooks/mutation-keys.ts new file mode 100644 index 0000000000..f8fc9e9ee2 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/mutation-keys.ts @@ -0,0 +1,260 @@ +/** + * 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 appLimitCapsDefaultMutationKeys = { + /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'] as const, + /** Create appLimitCapsDefault mutation key */ create: () => + ['mutation', 'applimitcapsdefault', 'create'] as const, + /** Update appLimitCapsDefault mutation key */ update: (id: string | number) => + ['mutation', 'applimitcapsdefault', 'update', id] as const, + /** Delete appLimitCapsDefault mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcapsdefault', 'delete', id] as const, +} as const; +export const orgLimitCapsDefaultMutationKeys = { + /** All orgLimitCapsDefault mutation keys */ all: ['mutation', 'orglimitcapsdefault'] as const, + /** Create orgLimitCapsDefault mutation key */ create: () => + ['mutation', 'orglimitcapsdefault', 'create'] as const, + /** Update orgLimitCapsDefault mutation key */ update: (id: string | number) => + ['mutation', 'orglimitcapsdefault', 'update', id] as const, + /** Delete orgLimitCapsDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitcapsdefault', 'delete', id] as const, +} as const; +export const appLimitCapMutationKeys = { + /** All appLimitCap mutation keys */ all: ['mutation', 'applimitcap'] as const, + /** Create appLimitCap mutation key */ create: () => + ['mutation', 'applimitcap', 'create'] as const, + /** Update appLimitCap mutation key */ update: (id: string | number) => + ['mutation', 'applimitcap', 'update', id] as const, + /** Delete appLimitCap mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcap', 'delete', id] as const, +} as const; +export const orgLimitCapMutationKeys = { + /** All orgLimitCap mutation keys */ all: ['mutation', 'orglimitcap'] as const, + /** Create orgLimitCap mutation key */ create: () => + ['mutation', 'orglimitcap', 'create'] as const, + /** Update orgLimitCap mutation key */ update: (id: string | number) => + ['mutation', 'orglimitcap', 'update', id] as const, + /** Delete orgLimitCap mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitcap', 'delete', id] as const, +} as const; +export const appLimitDefaultMutationKeys = { + /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, + /** Create appLimitDefault mutation key */ create: () => + ['mutation', 'applimitdefault', 'create'] as const, + /** Update appLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'applimitdefault', 'update', id] as const, + /** Delete appLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'applimitdefault', 'delete', id] as const, +} as const; +export const appLimitCreditMutationKeys = { + /** All appLimitCredit mutation keys */ all: ['mutation', 'applimitcredit'] as const, + /** Create appLimitCredit mutation key */ create: () => + ['mutation', 'applimitcredit', 'create'] as const, + /** Update appLimitCredit mutation key */ update: (id: string | number) => + ['mutation', 'applimitcredit', 'update', id] as const, + /** Delete appLimitCredit mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcredit', 'delete', id] as const, +} as const; +export const appLimitCreditCodeItemMutationKeys = { + /** All appLimitCreditCodeItem mutation keys */ all: [ + 'mutation', + 'applimitcreditcodeitem', + ] as const, + /** Create appLimitCreditCodeItem mutation key */ create: () => + ['mutation', 'applimitcreditcodeitem', 'create'] as const, + /** Update appLimitCreditCodeItem mutation key */ update: (id: string | number) => + ['mutation', 'applimitcreditcodeitem', 'update', id] as const, + /** Delete appLimitCreditCodeItem mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcreditcodeitem', 'delete', id] as const, +} as const; +export const appLimitCreditRedemptionMutationKeys = { + /** All appLimitCreditRedemption mutation keys */ all: [ + 'mutation', + 'applimitcreditredemption', + ] as const, + /** Create appLimitCreditRedemption mutation key */ create: () => + ['mutation', 'applimitcreditredemption', 'create'] as const, + /** Update appLimitCreditRedemption mutation key */ update: (id: string | number) => + ['mutation', 'applimitcreditredemption', 'update', id] as const, + /** Delete appLimitCreditRedemption mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcreditredemption', 'delete', id] as const, +} as const; +export const orgLimitDefaultMutationKeys = { + /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, + /** Create orgLimitDefault mutation key */ create: () => + ['mutation', 'orglimitdefault', 'create'] as const, + /** Update orgLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'orglimitdefault', 'update', id] as const, + /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitdefault', 'delete', id] as const, +} as const; +export const orgLimitCreditMutationKeys = { + /** All orgLimitCredit mutation keys */ all: ['mutation', 'orglimitcredit'] as const, + /** Create orgLimitCredit mutation key */ create: () => + ['mutation', 'orglimitcredit', 'create'] as const, + /** Update orgLimitCredit mutation key */ update: (id: string | number) => + ['mutation', 'orglimitcredit', 'update', id] as const, + /** Delete orgLimitCredit mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitcredit', 'delete', id] as const, +} as const; +export const appLimitWarningMutationKeys = { + /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, + /** Create appLimitWarning mutation key */ create: () => + ['mutation', 'applimitwarning', 'create'] as const, + /** Update appLimitWarning mutation key */ update: (id: string | number) => + ['mutation', 'applimitwarning', 'update', id] as const, + /** Delete appLimitWarning mutation key */ delete: (id: string | number) => + ['mutation', 'applimitwarning', 'delete', id] as const, +} as const; +export const orgLimitWarningMutationKeys = { + /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'] as const, + /** Create orgLimitWarning mutation key */ create: () => + ['mutation', 'orglimitwarning', 'create'] as const, + /** Update orgLimitWarning mutation key */ update: (id: string | number) => + ['mutation', 'orglimitwarning', 'update', id] as const, + /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitwarning', 'delete', id] as const, +} as const; +export const appLimitCreditCodeMutationKeys = { + /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, + /** Create appLimitCreditCode mutation key */ create: () => + ['mutation', 'applimitcreditcode', 'create'] as const, + /** Update appLimitCreditCode mutation key */ update: (id: string | number) => + ['mutation', 'applimitcreditcode', 'update', id] as const, + /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcreditcode', 'delete', id] as const, +} as const; +export const appLimitEventMutationKeys = { + /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, + /** Create appLimitEvent mutation key */ create: () => + ['mutation', 'applimitevent', 'create'] as const, + /** Update appLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'applimitevent', 'update', id] as const, + /** Delete appLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'applimitevent', 'delete', id] as const, +} as const; +export const orgLimitEventMutationKeys = { + /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, + /** Create orgLimitEvent mutation key */ create: () => + ['mutation', 'orglimitevent', 'create'] as const, + /** Update orgLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'orglimitevent', 'update', id] as const, + /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitevent', 'delete', id] as const, +} as const; +export const appLimitMutationKeys = { + /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, + /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, + /** Update appLimit mutation key */ update: (id: string | number) => + ['mutation', 'applimit', 'update', id] as const, + /** Delete appLimit mutation key */ delete: (id: string | number) => + ['mutation', 'applimit', 'delete', id] as const, +} as const; +export const orgLimitAggregateMutationKeys = { + /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, + /** Create orgLimitAggregate mutation key */ create: () => + ['mutation', 'orglimitaggregate', 'create'] as const, + /** Update orgLimitAggregate mutation key */ update: (id: string | number) => + ['mutation', 'orglimitaggregate', 'update', id] as const, + /** Delete orgLimitAggregate mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitaggregate', 'delete', id] as const, +} as const; +export const orgLimitMutationKeys = { + /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, + /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, + /** Update orgLimit mutation key */ update: (id: string | number) => + ['mutation', 'orglimit', 'update', id] as const, + /** Delete orgLimit mutation key */ delete: (id: string | number) => + ['mutation', 'orglimit', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for seedAppLimitCapsDefaults */ seedAppLimitCapsDefaults: ( + identifier?: string + ) => + identifier + ? (['mutation', 'seedAppLimitCapsDefaults', identifier] as const) + : (['mutation', 'seedAppLimitCapsDefaults'] as const), + /** Mutation key for seedAppLimitDefaults */ seedAppLimitDefaults: (identifier?: string) => + identifier + ? (['mutation', 'seedAppLimitDefaults', identifier] as const) + : (['mutation', 'seedAppLimitDefaults'] as const), + /** Mutation key for seedOrgLimitCapsDefaults */ seedOrgLimitCapsDefaults: ( + identifier?: string + ) => + identifier + ? (['mutation', 'seedOrgLimitCapsDefaults', identifier] as const) + : (['mutation', 'seedOrgLimitCapsDefaults'] as const), + /** Mutation key for seedOrgLimitDefaults */ seedOrgLimitDefaults: (identifier?: string) => + identifier + ? (['mutation', 'seedOrgLimitDefaults', identifier] as const) + : (['mutation', 'seedOrgLimitDefaults'] 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 = { + appLimitCapsDefault: appLimitCapsDefaultMutationKeys, + orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, + appLimitCap: appLimitCapMutationKeys, + orgLimitCap: orgLimitCapMutationKeys, + appLimitDefault: appLimitDefaultMutationKeys, + appLimitCredit: appLimitCreditMutationKeys, + appLimitCreditCodeItem: appLimitCreditCodeItemMutationKeys, + appLimitCreditRedemption: appLimitCreditRedemptionMutationKeys, + orgLimitDefault: orgLimitDefaultMutationKeys, + orgLimitCredit: orgLimitCreditMutationKeys, + appLimitWarning: appLimitWarningMutationKeys, + orgLimitWarning: orgLimitWarningMutationKeys, + appLimitCreditCode: appLimitCreditCodeMutationKeys, + appLimitEvent: appLimitEventMutationKeys, + orgLimitEvent: orgLimitEventMutationKeys, + appLimit: appLimitMutationKeys, + orgLimitAggregate: orgLimitAggregateMutationKeys, + orgLimit: orgLimitMutationKeys, + custom: customMutationKeys, +} as const; diff --git a/sdk/constructive-react/src/usage/hooks/mutations/index.ts b/sdk/constructive-react/src/usage/hooks/mutations/index.ts new file mode 100644 index 0000000000..5b5b2dca21 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/mutations/index.ts @@ -0,0 +1,64 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateAppLimitCapsDefaultMutation'; +export * from './useUpdateAppLimitCapsDefaultMutation'; +export * from './useDeleteAppLimitCapsDefaultMutation'; +export * from './useCreateOrgLimitCapsDefaultMutation'; +export * from './useUpdateOrgLimitCapsDefaultMutation'; +export * from './useDeleteOrgLimitCapsDefaultMutation'; +export * from './useCreateAppLimitCapMutation'; +export * from './useUpdateAppLimitCapMutation'; +export * from './useDeleteAppLimitCapMutation'; +export * from './useCreateOrgLimitCapMutation'; +export * from './useUpdateOrgLimitCapMutation'; +export * from './useDeleteOrgLimitCapMutation'; +export * from './useCreateAppLimitDefaultMutation'; +export * from './useUpdateAppLimitDefaultMutation'; +export * from './useDeleteAppLimitDefaultMutation'; +export * from './useCreateAppLimitCreditMutation'; +export * from './useUpdateAppLimitCreditMutation'; +export * from './useDeleteAppLimitCreditMutation'; +export * from './useCreateAppLimitCreditCodeItemMutation'; +export * from './useUpdateAppLimitCreditCodeItemMutation'; +export * from './useDeleteAppLimitCreditCodeItemMutation'; +export * from './useCreateAppLimitCreditRedemptionMutation'; +export * from './useUpdateAppLimitCreditRedemptionMutation'; +export * from './useDeleteAppLimitCreditRedemptionMutation'; +export * from './useCreateOrgLimitDefaultMutation'; +export * from './useUpdateOrgLimitDefaultMutation'; +export * from './useDeleteOrgLimitDefaultMutation'; +export * from './useCreateOrgLimitCreditMutation'; +export * from './useUpdateOrgLimitCreditMutation'; +export * from './useDeleteOrgLimitCreditMutation'; +export * from './useCreateAppLimitWarningMutation'; +export * from './useUpdateAppLimitWarningMutation'; +export * from './useDeleteAppLimitWarningMutation'; +export * from './useCreateOrgLimitWarningMutation'; +export * from './useUpdateOrgLimitWarningMutation'; +export * from './useDeleteOrgLimitWarningMutation'; +export * from './useCreateAppLimitCreditCodeMutation'; +export * from './useUpdateAppLimitCreditCodeMutation'; +export * from './useDeleteAppLimitCreditCodeMutation'; +export * from './useCreateAppLimitEventMutation'; +export * from './useUpdateAppLimitEventMutation'; +export * from './useDeleteAppLimitEventMutation'; +export * from './useCreateOrgLimitEventMutation'; +export * from './useUpdateOrgLimitEventMutation'; +export * from './useDeleteOrgLimitEventMutation'; +export * from './useCreateAppLimitMutation'; +export * from './useUpdateAppLimitMutation'; +export * from './useDeleteAppLimitMutation'; +export * from './useCreateOrgLimitAggregateMutation'; +export * from './useUpdateOrgLimitAggregateMutation'; +export * from './useDeleteOrgLimitAggregateMutation'; +export * from './useCreateOrgLimitMutation'; +export * from './useUpdateOrgLimitMutation'; +export * from './useDeleteOrgLimitMutation'; +export * from './useSeedAppLimitCapsDefaultsMutation'; +export * from './useSeedAppLimitDefaultsMutation'; +export * from './useSeedOrgLimitCapsDefaultsMutation'; +export * from './useSeedOrgLimitDefaultsMutation'; +export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCapMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCapMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCapMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCapsDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCapsDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCapsDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditCodeItemMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeItemMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditCodeItemMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeItemMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditCodeMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditRedemptionMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditRedemptionMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitCreditRedemptionMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitCreditRedemptionMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitEventMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitEventMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitEventMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitWarningMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitWarningMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitWarningMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateAppLimitWarningMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitAggregateMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitAggregateMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitCapMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitCapMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitCapMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitCapsDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitCapsDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitCapsDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitCreditMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitCreditMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitCreditMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitEventMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitEventMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitEventMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitWarningMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitWarningMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitWarningMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useCreateOrgLimitWarningMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCapMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCapMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCapMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCapsDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCapsDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCapsDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditCodeItemMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeItemMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditCodeItemMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeItemMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditCodeMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditRedemptionMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditRedemptionMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitCreditRedemptionMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitCreditRedemptionMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitEventMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitEventMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitWarningMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitWarningMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitWarningMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteAppLimitWarningMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitCapMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitCapMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitCapMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitCapsDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitCapsDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitCapsDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitCreditMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitCreditMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitCreditMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitEventMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitEventMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitWarningMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitWarningMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitWarningMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useDeleteOrgLimitWarningMutation.ts diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useProvisionBucketMutation.ts new file mode 100644 index 0000000000..2613680e69 --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/hooks/mutations/useSeedAppLimitCapsDefaultsMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useSeedAppLimitCapsDefaultsMutation.ts new file mode 100644 index 0000000000..8f9efce4e0 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/mutations/useSeedAppLimitCapsDefaultsMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for seedAppLimitCapsDefaults + * @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 { SeedAppLimitCapsDefaultsVariables } from '../../orm/mutation'; +import type { + SeedAppLimitCapsDefaultsPayloadSelect, + SeedAppLimitCapsDefaultsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SeedAppLimitCapsDefaultsVariables } from '../../orm/mutation'; +export type { SeedAppLimitCapsDefaultsPayloadSelect } from '../../orm/input-types'; +export function useSeedAppLimitCapsDefaultsMutation< + S extends SeedAppLimitCapsDefaultsPayloadSelect, +>( + params: { + selection: { + fields: S & SeedAppLimitCapsDefaultsPayloadSelect; + } & HookStrictSelect, SeedAppLimitCapsDefaultsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + seedAppLimitCapsDefaults: InferSelectResult | null; + }, + Error, + SeedAppLimitCapsDefaultsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + seedAppLimitCapsDefaults: InferSelectResult | null; + }, + Error, + SeedAppLimitCapsDefaultsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.seedAppLimitCapsDefaults(), + mutationFn: (variables: SeedAppLimitCapsDefaultsVariables) => + getClient() + .mutation.seedAppLimitCapsDefaults(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useSeedAppLimitDefaultsMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useSeedAppLimitDefaultsMutation.ts new file mode 100644 index 0000000000..cd19a46885 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/mutations/useSeedAppLimitDefaultsMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for seedAppLimitDefaults + * @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 { SeedAppLimitDefaultsVariables } from '../../orm/mutation'; +import type { + SeedAppLimitDefaultsPayloadSelect, + SeedAppLimitDefaultsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SeedAppLimitDefaultsVariables } from '../../orm/mutation'; +export type { SeedAppLimitDefaultsPayloadSelect } from '../../orm/input-types'; +export function useSeedAppLimitDefaultsMutation( + params: { + selection: { + fields: S & SeedAppLimitDefaultsPayloadSelect; + } & HookStrictSelect, SeedAppLimitDefaultsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + seedAppLimitDefaults: InferSelectResult | null; + }, + Error, + SeedAppLimitDefaultsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + seedAppLimitDefaults: InferSelectResult | null; + }, + Error, + SeedAppLimitDefaultsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.seedAppLimitDefaults(), + mutationFn: (variables: SeedAppLimitDefaultsVariables) => + getClient() + .mutation.seedAppLimitDefaults(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useSeedOrgLimitCapsDefaultsMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useSeedOrgLimitCapsDefaultsMutation.ts new file mode 100644 index 0000000000..708376b59a --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/mutations/useSeedOrgLimitCapsDefaultsMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for seedOrgLimitCapsDefaults + * @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 { SeedOrgLimitCapsDefaultsVariables } from '../../orm/mutation'; +import type { + SeedOrgLimitCapsDefaultsPayloadSelect, + SeedOrgLimitCapsDefaultsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SeedOrgLimitCapsDefaultsVariables } from '../../orm/mutation'; +export type { SeedOrgLimitCapsDefaultsPayloadSelect } from '../../orm/input-types'; +export function useSeedOrgLimitCapsDefaultsMutation< + S extends SeedOrgLimitCapsDefaultsPayloadSelect, +>( + params: { + selection: { + fields: S & SeedOrgLimitCapsDefaultsPayloadSelect; + } & HookStrictSelect, SeedOrgLimitCapsDefaultsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + seedOrgLimitCapsDefaults: InferSelectResult | null; + }, + Error, + SeedOrgLimitCapsDefaultsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + seedOrgLimitCapsDefaults: InferSelectResult | null; + }, + Error, + SeedOrgLimitCapsDefaultsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.seedOrgLimitCapsDefaults(), + mutationFn: (variables: SeedOrgLimitCapsDefaultsVariables) => + getClient() + .mutation.seedOrgLimitCapsDefaults(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/usage/hooks/mutations/useSeedOrgLimitDefaultsMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useSeedOrgLimitDefaultsMutation.ts new file mode 100644 index 0000000000..ca4003a6cb --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/mutations/useSeedOrgLimitDefaultsMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for seedOrgLimitDefaults + * @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 { SeedOrgLimitDefaultsVariables } from '../../orm/mutation'; +import type { + SeedOrgLimitDefaultsPayloadSelect, + SeedOrgLimitDefaultsPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SeedOrgLimitDefaultsVariables } from '../../orm/mutation'; +export type { SeedOrgLimitDefaultsPayloadSelect } from '../../orm/input-types'; +export function useSeedOrgLimitDefaultsMutation( + params: { + selection: { + fields: S & SeedOrgLimitDefaultsPayloadSelect; + } & HookStrictSelect, SeedOrgLimitDefaultsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + seedOrgLimitDefaults: InferSelectResult | null; + }, + Error, + SeedOrgLimitDefaultsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + seedOrgLimitDefaults: InferSelectResult | null; + }, + Error, + SeedOrgLimitDefaultsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.seedOrgLimitDefaults(), + mutationFn: (variables: SeedOrgLimitDefaultsVariables) => + getClient() + .mutation.seedOrgLimitDefaults(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCapMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCapMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCapMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCapsDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCapsDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCapsDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditCodeItemMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeItemMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditCodeItemMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeItemMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditCodeMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditRedemptionMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditRedemptionMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitCreditRedemptionMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitCreditRedemptionMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitEventMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitEventMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitWarningMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitWarningMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitWarningMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateAppLimitWarningMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitCapMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitCapMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitCapMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitCapMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitCapsDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitCapsDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitCapsDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitCapsDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitCreditMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitCreditMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitCreditMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitCreditMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitEventMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitEventMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitMutation.ts diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitWarningMutation.ts b/sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitWarningMutation.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitWarningMutation.ts rename to sdk/constructive-react/src/usage/hooks/mutations/useUpdateOrgLimitWarningMutation.ts diff --git a/sdk/constructive-react/src/usage/hooks/queries/index.ts b/sdk/constructive-react/src/usage/hooks/queries/index.ts new file mode 100644 index 0000000000..658b5bc518 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/queries/index.ts @@ -0,0 +1,41 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useAppLimitCapsDefaultsQuery'; +export * from './useAppLimitCapsDefaultQuery'; +export * from './useOrgLimitCapsDefaultsQuery'; +export * from './useOrgLimitCapsDefaultQuery'; +export * from './useAppLimitCapsQuery'; +export * from './useAppLimitCapQuery'; +export * from './useOrgLimitCapsQuery'; +export * from './useOrgLimitCapQuery'; +export * from './useAppLimitDefaultsQuery'; +export * from './useAppLimitDefaultQuery'; +export * from './useAppLimitCreditsQuery'; +export * from './useAppLimitCreditQuery'; +export * from './useAppLimitCreditCodeItemsQuery'; +export * from './useAppLimitCreditCodeItemQuery'; +export * from './useAppLimitCreditRedemptionsQuery'; +export * from './useAppLimitCreditRedemptionQuery'; +export * from './useOrgLimitDefaultsQuery'; +export * from './useOrgLimitDefaultQuery'; +export * from './useOrgLimitCreditsQuery'; +export * from './useOrgLimitCreditQuery'; +export * from './useAppLimitWarningsQuery'; +export * from './useAppLimitWarningQuery'; +export * from './useOrgLimitWarningsQuery'; +export * from './useOrgLimitWarningQuery'; +export * from './useAppLimitCreditCodesQuery'; +export * from './useAppLimitCreditCodeQuery'; +export * from './useAppLimitEventsQuery'; +export * from './useAppLimitEventQuery'; +export * from './useOrgLimitEventsQuery'; +export * from './useOrgLimitEventQuery'; +export * from './useAppLimitsQuery'; +export * from './useAppLimitQuery'; +export * from './useOrgLimitAggregatesQuery'; +export * from './useOrgLimitAggregateQuery'; +export * from './useOrgLimitsQuery'; +export * from './useOrgLimitQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapsDefaultQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapsDefaultQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapsDefaultQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapsDefaultQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapsDefaultsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapsDefaultsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapsDefaultsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapsDefaultsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCapsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCapsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodeItemQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeItemQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodeItemQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeItemQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodeItemsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeItemsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodeItemsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeItemsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodeQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodeQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodeQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodesQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditCodesQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditCodesQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditRedemptionQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditRedemptionQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditRedemptionQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditRedemptionQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditRedemptionsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditRedemptionsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditRedemptionsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditRedemptionsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitCreditsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitCreditsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitDefaultQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitDefaultQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitDefaultsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitDefaultsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitEventQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitEventQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitEventsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitEventsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitWarningQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitWarningQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitWarningQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitWarningQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitWarningsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitWarningsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitWarningsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitWarningsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useAppLimitsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useAppLimitsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregateQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitAggregateQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregateQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitAggregateQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregatesQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitAggregatesQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregatesQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitAggregatesQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapsDefaultQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapsDefaultQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapsDefaultQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapsDefaultQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapsDefaultsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapsDefaultsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapsDefaultsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapsDefaultsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCapsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCapsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCreditQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCreditQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCreditQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCreditQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCreditsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCreditsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitCreditsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitCreditsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitDefaultQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitDefaultQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitDefaultsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitDefaultsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitEventQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitEventQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitEventsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitEventsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitWarningQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitWarningQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitWarningQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitWarningQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitWarningsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitWarningsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitWarningsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitWarningsQuery.ts diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/usage/hooks/queries/useOrgLimitsQuery.ts similarity index 100% rename from sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts rename to sdk/constructive-react/src/usage/hooks/queries/useOrgLimitsQuery.ts diff --git a/sdk/constructive-react/src/usage/hooks/query-keys.ts b/sdk/constructive-react/src/usage/hooks/query-keys.ts new file mode 100644 index 0000000000..ac5955d501 --- /dev/null +++ b/sdk/constructive-react/src/usage/hooks/query-keys.ts @@ -0,0 +1,227 @@ +/** + * 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 appLimitCapsDefaultKeys = { + /** All appLimitCapsDefault queries */ all: ['applimitcapsdefault'] as const, + /** List query keys */ lists: () => [...appLimitCapsDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCapsDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCapsDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCapsDefaultKeys.details(), id] as const, +} as const; +export const orgLimitCapsDefaultKeys = { + /** All orgLimitCapsDefault queries */ all: ['orglimitcapsdefault'] as const, + /** List query keys */ lists: () => [...orgLimitCapsDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitCapsDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitCapsDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitCapsDefaultKeys.details(), id] as const, +} as const; +export const appLimitCapKeys = { + /** All appLimitCap queries */ all: ['applimitcap'] as const, + /** List query keys */ lists: () => [...appLimitCapKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCapKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCapKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCapKeys.details(), id] as const, +} as const; +export const orgLimitCapKeys = { + /** All orgLimitCap queries */ all: ['orglimitcap'] as const, + /** List query keys */ lists: () => [...orgLimitCapKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitCapKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitCapKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitCapKeys.details(), id] as const, +} as const; +export const appLimitDefaultKeys = { + /** All appLimitDefault queries */ all: ['applimitdefault'] as const, + /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitDefaultKeys.details(), id] as const, +} as const; +export const appLimitCreditKeys = { + /** All appLimitCredit queries */ all: ['applimitcredit'] as const, + /** List query keys */ lists: () => [...appLimitCreditKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditKeys.details(), id] as const, +} as const; +export const appLimitCreditCodeItemKeys = { + /** All appLimitCreditCodeItem queries */ all: ['applimitcreditcodeitem'] as const, + /** List query keys */ lists: () => [...appLimitCreditCodeItemKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditCodeItemKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditCodeItemKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditCodeItemKeys.details(), id] as const, +} as const; +export const appLimitCreditRedemptionKeys = { + /** All appLimitCreditRedemption queries */ all: ['applimitcreditredemption'] as const, + /** List query keys */ lists: () => [...appLimitCreditRedemptionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditRedemptionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditRedemptionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditRedemptionKeys.details(), id] as const, +} as const; +export const orgLimitDefaultKeys = { + /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, + /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitDefaultKeys.details(), id] as const, +} as const; +export const orgLimitCreditKeys = { + /** All orgLimitCredit queries */ all: ['orglimitcredit'] as const, + /** List query keys */ lists: () => [...orgLimitCreditKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitCreditKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitCreditKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitCreditKeys.details(), id] as const, +} as const; +export const appLimitWarningKeys = { + /** All appLimitWarning queries */ all: ['applimitwarning'] as const, + /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitWarningKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitWarningKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitWarningKeys.details(), id] as const, +} as const; +export const orgLimitWarningKeys = { + /** All orgLimitWarning queries */ all: ['orglimitwarning'] as const, + /** List query keys */ lists: () => [...orgLimitWarningKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitWarningKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitWarningKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitWarningKeys.details(), id] as const, +} as const; +export const appLimitCreditCodeKeys = { + /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, + /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditCodeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditCodeKeys.details(), id] as const, +} as const; +export const appLimitEventKeys = { + /** All appLimitEvent queries */ all: ['applimitevent'] as const, + /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitEventKeys.details(), id] as const, +} as const; +export const orgLimitEventKeys = { + /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, + /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitEventKeys.details(), id] as const, +} as const; +export const appLimitKeys = { + /** All appLimit queries */ all: ['applimit'] as const, + /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitKeys.details(), id] as const, +} as const; +export const orgLimitAggregateKeys = { + /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, + /** List query keys */ lists: () => [...orgLimitAggregateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitAggregateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitAggregateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitAggregateKeys.details(), id] as const, +} as const; +export const orgLimitKeys = { + /** All orgLimit queries */ all: ['orglimit'] as const, + /** List query keys */ lists: () => [...orgLimitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitKeys.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 = { + appLimitCapsDefault: appLimitCapsDefaultKeys, + orgLimitCapsDefault: orgLimitCapsDefaultKeys, + appLimitCap: appLimitCapKeys, + orgLimitCap: orgLimitCapKeys, + appLimitDefault: appLimitDefaultKeys, + appLimitCredit: appLimitCreditKeys, + appLimitCreditCodeItem: appLimitCreditCodeItemKeys, + appLimitCreditRedemption: appLimitCreditRedemptionKeys, + orgLimitDefault: orgLimitDefaultKeys, + orgLimitCredit: orgLimitCreditKeys, + appLimitWarning: appLimitWarningKeys, + orgLimitWarning: orgLimitWarningKeys, + appLimitCreditCode: appLimitCreditCodeKeys, + appLimitEvent: appLimitEventKeys, + orgLimitEvent: orgLimitEventKeys, + appLimit: appLimitKeys, + orgLimitAggregate: orgLimitAggregateKeys, + orgLimit: orgLimitKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/usage/hooks/selection.ts b/sdk/constructive-react/src/usage/hooks/selection.ts new file mode 100644 index 0000000000..2952aab647 --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/index.ts b/sdk/constructive-react/src/usage/index.ts new file mode 100644 index 0000000000..2b8402539a --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/orm/README.md b/sdk/constructive-react/src/usage/orm/README.md new file mode 100644 index 0000000000..445adc76d8 --- /dev/null +++ b/sdk/constructive-react/src/usage/orm/README.md @@ -0,0 +1,767 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `appLimitCapsDefault` | findMany, findOne, create, update, delete | +| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | +| `appLimitCap` | findMany, findOne, create, update, delete | +| `orgLimitCap` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `appLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | +| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitWarning` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.appLimitCapsDefault` + +CRUD operations for AppLimitCapsDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitCapsDefault records +const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCapsDefault` + +CRUD operations for OrgLimitCapsDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitCapsDefault records +const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCap` + +CRUD operations for AppLimitCap records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitCap records +const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Create +const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCap` + +CRUD operations for OrgLimitCap records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCredit` + +CRUD operations for AppLimitCredit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `defaultLimitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCredit records +const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditCodeItem` + +CRUD operations for AppLimitCreditCodeItem records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `creditCodeId` | UUID | Yes | +| `defaultLimitId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditCodeItem records +const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); + +// Create +const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditRedemption` + +CRUD operations for AppLimitCreditRedemption records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `creditCodeId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditRedemption records +const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCredit` + +CRUD operations for OrgLimitCredit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `defaultLimitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitCredit records +const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', organizationId: '', entityType: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitWarning` + +CRUD operations for AppLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitWarning` + +CRUD operations for OrgLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditCode` + +CRUD operations for AppLimitCreditCode records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); + +// Create +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `reserved` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimit` + +CRUD operations for OrgLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.seedAppLimitCapsDefaults` + +seedAppLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitCapsDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedAppLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedAppLimitDefaults` + +seedAppLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedAppLimitDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedOrgLimitCapsDefaults` + +seedOrgLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitCapsDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedOrgLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedOrgLimitDefaults` + +seedOrgLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedOrgLimitDefaults({ input: { defaults: '' } }).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/usage/orm/client.ts b/sdk/constructive-react/src/usage/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/orm/index.ts b/sdk/constructive-react/src/usage/orm/index.ts new file mode 100644 index 0000000000..9b85b8933c --- /dev/null +++ b/sdk/constructive-react/src/usage/orm/index.ts @@ -0,0 +1,79 @@ +/** + * 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 { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; +import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; +import { AppLimitCapModel } from './models/appLimitCap'; +import { OrgLimitCapModel } from './models/orgLimitCap'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { AppLimitCreditModel } from './models/appLimitCredit'; +import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; +import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitWarningModel } from './models/appLimitWarning'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; +import { AppLimitModel } from './models/appLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; +import { OrgLimitModel } from './models/orgLimit'; +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 { + appLimitCapsDefault: new AppLimitCapsDefaultModel(client), + orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), + appLimitCap: new AppLimitCapModel(client), + orgLimitCap: new OrgLimitCapModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + appLimitCredit: new AppLimitCreditModel(client), + appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), + appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), + orgLimitCredit: new OrgLimitCreditModel(client), + appLimitWarning: new AppLimitWarningModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), + appLimit: new AppLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), + orgLimit: new OrgLimitModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-react/src/usage/orm/input-types.ts b/sdk/constructive-react/src/usage/orm/input-types.ts new file mode 100644 index 0000000000..8c8382f866 --- /dev/null +++ b/sdk/constructive-react/src/usage/orm/input-types.ts @@ -0,0 +1,3642 @@ +/** + * 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; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +// ============ Entity Types ============ +export interface AppLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface OrgLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Append-only ledger of credit grants that automatically update limit ceilings */ +export interface AppLimitCredit { + id: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string | null; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string | null; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string | null; +} +/** Items within a credit code — each row grants credits for a specific limit definition */ +export interface AppLimitCreditCodeItem { + id: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string | null; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId?: string | null; + /** Number of credits this item grants per redemption */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; +} +/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ +export interface AppLimitCreditRedemption { + id: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId?: string | null; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Append-only ledger of credit grants that automatically update limit ceilings */ +export interface OrgLimitCredit { + id: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string | null; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string | null; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string | null; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface AppLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface AppLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface OrgLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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 AppLimitCapsDefaultRelations {} +export interface OrgLimitCapsDefaultRelations {} +export interface AppLimitCapRelations {} +export interface OrgLimitCapRelations {} +export interface AppLimitDefaultRelations { + appLimitCreditsByDefaultLimitId?: ConnectionResult; + appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; +} +export interface AppLimitCreditRelations { + defaultLimit?: AppLimitDefault | null; +} +export interface AppLimitCreditCodeItemRelations { + creditCode?: AppLimitCreditCode | null; + defaultLimit?: AppLimitDefault | null; +} +export interface AppLimitCreditRedemptionRelations { + creditCode?: AppLimitCreditCode | null; +} +export interface OrgLimitDefaultRelations { + orgLimitCreditsByDefaultLimitId?: ConnectionResult; +} +export interface OrgLimitCreditRelations { + defaultLimit?: OrgLimitDefault | null; +} +export interface AppLimitWarningRelations {} +export interface OrgLimitWarningRelations {} +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} +export interface AppLimitRelations {} +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +// ============ Entity Types With Relations ============ +export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; +export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; +export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; +export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; +export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & + AppLimitCreditCodeItemRelations; +export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & + AppLimitCreditRedemptionRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +// ============ Entity Select Types ============ +export type AppLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; + appLimitCreditsByDefaultLimitId?: { + select: AppLimitCreditSelect; + first?: number; + filter?: AppLimitCreditFilter; + orderBy?: AppLimitCreditOrderBy[]; + }; + appLimitCreditCodeItemsByDefaultLimitId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; +}; +export type AppLimitCreditSelect = { + id?: boolean; + defaultLimitId?: boolean; + actorId?: boolean; + amount?: boolean; + creditType?: boolean; + reason?: boolean; + defaultLimit?: { + select: AppLimitDefaultSelect; + }; +}; +export type AppLimitCreditCodeItemSelect = { + id?: boolean; + creditCodeId?: boolean; + defaultLimitId?: boolean; + amount?: boolean; + creditType?: boolean; + creditCode?: { + select: AppLimitCreditCodeSelect; + }; + defaultLimit?: { + select: AppLimitDefaultSelect; + }; +}; +export type AppLimitCreditRedemptionSelect = { + id?: boolean; + creditCodeId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + creditCode?: { + select: AppLimitCreditCodeSelect; + }; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; + orgLimitCreditsByDefaultLimitId?: { + select: OrgLimitCreditSelect; + first?: number; + filter?: OrgLimitCreditFilter; + orderBy?: OrgLimitCreditOrderBy[]; + }; +}; +export type OrgLimitCreditSelect = { + id?: boolean; + defaultLimitId?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + amount?: boolean; + creditType?: boolean; + reason?: boolean; + defaultLimit?: { + select: OrgLimitDefaultSelect; + }; +}; +export type AppLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; +}; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + reserved?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +export type OrgLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +// ============ Table Filter Types ============ +export interface AppLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +export interface OrgLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} +export interface AppLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; + /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ + orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; + /** `orgLimitCreditsByDefaultLimitId` exist. */ + orgLimitCreditsByDefaultLimitIdExist?: boolean; +} +export interface OrgLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCreditFilter[]; + /** Negates the expression. */ + not?: OrgLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: OrgLimitDefaultFilter; +} +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +// ============ OrderBy Types ============ +export type AppLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type AppLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitCreditCodeItemOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC'; +export type AppLimitCreditRedemptionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'RESERVED_ASC' + | 'RESERVED_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +// ============ CRUD Input Types ============ +export interface CreateAppLimitCapsDefaultInput { + clientMutationId?: string; + appLimitCapsDefault: { + name: string; + max?: string; + }; +} +export interface AppLimitCapsDefaultPatch { + name?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; +} +export interface DeleteAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCapsDefaultInput { + clientMutationId?: string; + orgLimitCapsDefault: { + name: string; + max?: string; + }; +} +export interface OrgLimitCapsDefaultPatch { + name?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; +} +export interface DeleteOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCapInput { + clientMutationId?: string; + appLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface AppLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + appLimitCapPatch: AppLimitCapPatch; +} +export interface DeleteAppLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + orgLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface OrgLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + orgLimitCapPatch: OrgLimitCapPatch; +} +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: { + name: string; + max?: string; + softMax?: string; + }; +} +export interface AppLimitDefaultPatch { + name?: string | null; + max?: string | null; + softMax?: string | null; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditInput { + clientMutationId?: string; + appLimitCredit: { + defaultLimitId: string; + actorId?: string; + amount: string; + creditType?: string; + reason?: string; + }; +} +export interface AppLimitCreditPatch { + defaultLimitId?: string | null; + actorId?: string | null; + amount?: string | null; + creditType?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitCreditInput { + clientMutationId?: string; + id: string; + appLimitCreditPatch: AppLimitCreditPatch; +} +export interface DeleteAppLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditCodeItemInput { + clientMutationId?: string; + appLimitCreditCodeItem: { + creditCodeId: string; + defaultLimitId: string; + amount: string; + creditType?: string; + }; +} +export interface AppLimitCreditCodeItemPatch { + creditCodeId?: string | null; + defaultLimitId?: string | null; + amount?: string | null; + creditType?: string | null; +} +export interface UpdateAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; +} +export interface DeleteAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditRedemptionInput { + clientMutationId?: string; + appLimitCreditRedemption: { + creditCodeId: string; + entityId: string; + organizationId?: string; + entityType?: string; + }; +} +export interface AppLimitCreditRedemptionPatch { + creditCodeId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; + appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; +} +export interface DeleteAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: { + name: string; + max?: string; + softMax?: string; + }; +} +export interface OrgLimitDefaultPatch { + name?: string | null; + max?: string | null; + softMax?: string | null; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCreditInput { + clientMutationId?: string; + orgLimitCredit: { + defaultLimitId: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + amount: string; + creditType?: string; + reason?: string; + }; +} +export interface OrgLimitCreditPatch { + defaultLimitId?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + amount?: string | null; + creditType?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitCreditInput { + clientMutationId?: string; + id: string; + orgLimitCreditPatch: OrgLimitCreditPatch; +} +export interface DeleteOrgLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + appLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + }; +} +export interface AppLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + appLimitWarningPatch: AppLimitWarningPatch; +} +export interface DeleteAppLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitWarningInput { + clientMutationId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; + }; +} +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; +} +export interface UpdateOrgLimitWarningInput { + clientMutationId?: string; + id: string; + orgLimitWarningPatch: OrgLimitWarningPatch; +} +export interface DeleteOrgLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + organizationId?: string; + entityType?: string; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + reserved?: string; + organizationId?: string; + entityType?: string; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + reserved?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + orgLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + entityId: string; + organizationId?: string; + entityType?: string; + }; +} +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + AppLimitDefault: { + appLimitCreditsByDefaultLimitId: 'AppLimitCredit', + appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', + }, + OrgLimitDefault: { + orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', + }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SeedAppLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedAppLimitDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedOrgLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedOrgLimitDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditFilter; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultToManyOrgLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitCreditFilter; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + 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; +} +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCreditFilter[]; + /** Negates the expression. */ + not?: OrgLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: OrgLimitDefaultFilter; +} +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * 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 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; +} +/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ +export interface BigIntFilter { + /** 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; +} +/** 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; +} +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} +/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; + /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ + orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; + /** `orgLimitCreditsByDefaultLimitId` exist. */ + orgLimitCreditsByDefaultLimitIdExist?: boolean; +} +/** 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; +} +/** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface SeedAppLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedAppLimitCapsDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedAppLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedAppLimitDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedOrgLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedOrgLimitCapsDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedOrgLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedOrgLimitDefaultsPayloadSelect = { + 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 CreateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was created by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type CreateAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was updated by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type UpdateAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was deleted by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type DeleteAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was created by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type CreateOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was updated by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type UpdateOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type DeleteOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type CreateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type UpdateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type DeleteAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface CreateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type CreateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type UpdateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type DeleteOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type UpdateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type DeleteAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was created by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type CreateAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was updated by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type UpdateAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was deleted by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type DeleteAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface CreateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type CreateAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type UpdateAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type DeleteAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface CreateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was created by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type CreateAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was updated by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type UpdateAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type DeleteAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type CreateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type UpdateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type DeleteOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was created by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type CreateOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface UpdateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was updated by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type UpdateOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface DeleteOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was deleted by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type DeleteOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface CreateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was created by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type CreateAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface UpdateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was updated by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type UpdateAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface DeleteAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was deleted by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type DeleteAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface CreateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type CreateOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface UpdateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type UpdateOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface DeleteOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type DeleteOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type UpdateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type DeleteOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type UpdateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type DeleteOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +/** A `AppLimitCapsDefault` edge in the connection. */ +export interface AppLimitCapsDefaultEdge { + cursor?: string | null; + /** The `AppLimitCapsDefault` at the end of the edge. */ + node?: AppLimitCapsDefault | null; +} +export type AppLimitCapsDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapsDefaultSelect; + }; +}; +/** A `OrgLimitCapsDefault` edge in the connection. */ +export interface OrgLimitCapsDefaultEdge { + cursor?: string | null; + /** The `OrgLimitCapsDefault` at the end of the edge. */ + node?: OrgLimitCapsDefault | null; +} +export type OrgLimitCapsDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapsDefaultSelect; + }; +}; +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} +export type AppLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapSelect; + }; +}; +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} +export type OrgLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapSelect; + }; +}; +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +/** A `AppLimitCredit` edge in the connection. */ +export interface AppLimitCreditEdge { + cursor?: string | null; + /** The `AppLimitCredit` at the end of the edge. */ + node?: AppLimitCredit | null; +} +export type AppLimitCreditEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditSelect; + }; +}; +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { + cursor?: string | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; +} +export type AppLimitCreditCodeItemEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeItemSelect; + }; +}; +/** A `AppLimitCreditRedemption` edge in the connection. */ +export interface AppLimitCreditRedemptionEdge { + cursor?: string | null; + /** The `AppLimitCreditRedemption` at the end of the edge. */ + node?: AppLimitCreditRedemption | null; +} +export type AppLimitCreditRedemptionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditRedemptionSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; +/** A `OrgLimitCredit` edge in the connection. */ +export interface OrgLimitCreditEdge { + cursor?: string | null; + /** The `OrgLimitCredit` at the end of the edge. */ + node?: OrgLimitCredit | null; +} +export type OrgLimitCreditEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCreditSelect; + }; +}; +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { + cursor?: string | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; +} +export type AppLimitWarningEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitWarningSelect; + }; +}; +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { + cursor?: string | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; +} +export type OrgLimitWarningEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitWarningSelect; + }; +}; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +export type AppLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitEventSelect; + }; +}; +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} +export type OrgLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitEventSelect; + }; +}; +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; diff --git a/sdk/constructive-cli/src/public/orm/models/appLimit.ts b/sdk/constructive-react/src/usage/orm/models/appLimit.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimit.ts rename to sdk/constructive-react/src/usage/orm/models/appLimit.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitCap.ts b/sdk/constructive-react/src/usage/orm/models/appLimitCap.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitCap.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitCap.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitCapsDefault.ts b/sdk/constructive-react/src/usage/orm/models/appLimitCapsDefault.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitCapsDefault.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitCapsDefault.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitCredit.ts b/sdk/constructive-react/src/usage/orm/models/appLimitCredit.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitCredit.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitCredit.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitCreditCode.ts b/sdk/constructive-react/src/usage/orm/models/appLimitCreditCode.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitCreditCode.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitCreditCode.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitCreditCodeItem.ts b/sdk/constructive-react/src/usage/orm/models/appLimitCreditCodeItem.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitCreditCodeItem.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitCreditCodeItem.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitCreditRedemption.ts b/sdk/constructive-react/src/usage/orm/models/appLimitCreditRedemption.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitCreditRedemption.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitCreditRedemption.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitDefault.ts b/sdk/constructive-react/src/usage/orm/models/appLimitDefault.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitDefault.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitDefault.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/usage/orm/models/appLimitEvent.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitEvent.ts diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitWarning.ts b/sdk/constructive-react/src/usage/orm/models/appLimitWarning.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/appLimitWarning.ts rename to sdk/constructive-react/src/usage/orm/models/appLimitWarning.ts diff --git a/sdk/constructive-react/src/usage/orm/models/index.ts b/sdk/constructive-react/src/usage/orm/models/index.ts new file mode 100644 index 0000000000..d3736dc9d5 --- /dev/null +++ b/sdk/constructive-react/src/usage/orm/models/index.ts @@ -0,0 +1,23 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; +export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; +export { AppLimitCapModel } from './appLimitCap'; +export { OrgLimitCapModel } from './orgLimitCap'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { AppLimitCreditModel } from './appLimitCredit'; +export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; +export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitWarningModel } from './appLimitWarning'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; +export { AppLimitModel } from './appLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; +export { OrgLimitModel } from './orgLimit'; diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimit.ts b/sdk/constructive-react/src/usage/orm/models/orgLimit.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimit.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimit.ts diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitAggregate.ts b/sdk/constructive-react/src/usage/orm/models/orgLimitAggregate.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimitAggregate.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimitAggregate.ts diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitCap.ts b/sdk/constructive-react/src/usage/orm/models/orgLimitCap.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimitCap.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimitCap.ts diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitCapsDefault.ts b/sdk/constructive-react/src/usage/orm/models/orgLimitCapsDefault.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimitCapsDefault.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimitCapsDefault.ts diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitCredit.ts b/sdk/constructive-react/src/usage/orm/models/orgLimitCredit.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimitCredit.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimitCredit.ts diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitDefault.ts b/sdk/constructive-react/src/usage/orm/models/orgLimitDefault.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimitDefault.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimitDefault.ts diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/usage/orm/models/orgLimitEvent.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimitEvent.ts diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitWarning.ts b/sdk/constructive-react/src/usage/orm/models/orgLimitWarning.ts similarity index 100% rename from sdk/constructive-cli/src/public/orm/models/orgLimitWarning.ts rename to sdk/constructive-react/src/usage/orm/models/orgLimitWarning.ts diff --git a/sdk/constructive-react/src/usage/orm/mutation/index.ts b/sdk/constructive-react/src/usage/orm/mutation/index.ts new file mode 100644 index 0000000000..5a5a61c0df --- /dev/null +++ b/sdk/constructive-react/src/usage/orm/mutation/index.ts @@ -0,0 +1,197 @@ +/** + * 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 { + SeedAppLimitCapsDefaultsInput, + SeedAppLimitDefaultsInput, + SeedOrgLimitCapsDefaultsInput, + SeedOrgLimitDefaultsInput, + ProvisionBucketInput, + SeedAppLimitCapsDefaultsPayload, + SeedAppLimitDefaultsPayload, + SeedOrgLimitCapsDefaultsPayload, + SeedOrgLimitDefaultsPayload, + ProvisionBucketPayload, + SeedAppLimitCapsDefaultsPayloadSelect, + SeedAppLimitDefaultsPayloadSelect, + SeedOrgLimitCapsDefaultsPayloadSelect, + SeedOrgLimitDefaultsPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface SeedAppLimitCapsDefaultsVariables { + input: SeedAppLimitCapsDefaultsInput; +} +export interface SeedAppLimitDefaultsVariables { + input: SeedAppLimitDefaultsInput; +} +export interface SeedOrgLimitCapsDefaultsVariables { + input: SeedOrgLimitCapsDefaultsInput; +} +export interface SeedOrgLimitDefaultsVariables { + input: SeedOrgLimitDefaultsInput; +} +/** + * 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 { + seedAppLimitCapsDefaults: ( + args: SeedAppLimitCapsDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedAppLimitCapsDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedAppLimitCapsDefaults', + fieldName: 'seedAppLimitCapsDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedAppLimitCapsDefaults', + 'seedAppLimitCapsDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedAppLimitCapsDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedAppLimitCapsDefaultsPayload' + ), + }), + seedAppLimitDefaults: ( + args: SeedAppLimitDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedAppLimitDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedAppLimitDefaults', + fieldName: 'seedAppLimitDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedAppLimitDefaults', + 'seedAppLimitDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedAppLimitDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedAppLimitDefaultsPayload' + ), + }), + seedOrgLimitCapsDefaults: ( + args: SeedOrgLimitCapsDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedOrgLimitCapsDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedOrgLimitCapsDefaults', + fieldName: 'seedOrgLimitCapsDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedOrgLimitCapsDefaults', + 'seedOrgLimitCapsDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedOrgLimitCapsDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedOrgLimitCapsDefaultsPayload' + ), + }), + seedOrgLimitDefaults: ( + args: SeedOrgLimitDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedOrgLimitDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedOrgLimitDefaults', + fieldName: 'seedOrgLimitDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedOrgLimitDefaults', + 'seedOrgLimitDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedOrgLimitDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedOrgLimitDefaultsPayload' + ), + }), + 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/usage/orm/query-builder.ts b/sdk/constructive-react/src/usage/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-react/src/usage/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/usage/orm/realtime.ts b/sdk/constructive-react/src/usage/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/orm/select-types.ts b/sdk/constructive-react/src/usage/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/orm/types.ts b/sdk/constructive-react/src/usage/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-react/src/usage/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/usage/schema-types.ts b/sdk/constructive-react/src/usage/schema-types.ts new file mode 100644 index 0000000000..7ef36822c6 --- /dev/null +++ b/sdk/constructive-react/src/usage/schema-types.ts @@ -0,0 +1,2560 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + AppLimit, + AppLimitCap, + AppLimitCapsDefault, + AppLimitCredit, + AppLimitCreditCode, + AppLimitCreditCodeItem, + AppLimitCreditRedemption, + AppLimitDefault, + AppLimitEvent, + AppLimitWarning, + OrgLimit, + OrgLimitAggregate, + OrgLimitCap, + OrgLimitCapsDefault, + OrgLimitCredit, + OrgLimitDefault, + OrgLimitEvent, + OrgLimitWarning, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, + VectorFilter, +} from './types'; +/** Methods to use when ordering `AppLimitCapsDefault`. */ +export type AppLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +/** Methods to use when ordering `OrgLimitCapsDefault`. */ +export type OrgLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +/** Methods to use when ordering `AppLimitCap`. */ +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +/** Methods to use when ordering `OrgLimitCap`. */ +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +/** Methods to use when ordering `AppLimitCredit`. */ +export type AppLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `AppLimitCreditCodeItem`. */ +export type AppLimitCreditCodeItemOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC'; +/** Methods to use when ordering `AppLimitCreditRedemption`. */ +export type AppLimitCreditRedemptionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +/** Methods to use when ordering `OrgLimitCredit`. */ +export type OrgLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +/** Methods to use when ordering `AppLimitWarning`. */ +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +/** Methods to use when ordering `OrgLimitWarning`. */ +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppLimitCreditCode`. */ +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +/** Methods to use when ordering `AppLimitEvent`. */ +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `OrgLimitEvent`. */ +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `AppLimit`. */ +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +/** Methods to use when ordering `OrgLimitAggregate`. */ +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'RESERVED_ASC' + | 'RESERVED_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +/** Methods to use when ordering `OrgLimit`. */ +export type OrgLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} +/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditFilter; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} +/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCreditFilter[]; + /** Negates the expression. */ + not?: OrgLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: OrgLimitDefaultFilter; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; + /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ + orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; + /** `orgLimitCreditsByDefaultLimitId` exist. */ + orgLimitCreditsByDefaultLimitIdExist?: boolean; +} +/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultToManyOrgLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitCreditFilter; +} +/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} +/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +/** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +/** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +/** 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 `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +export interface SeedAppLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: unknown; +} +export interface SeedAppLimitDefaultsInput { + clientMutationId?: string; + defaults?: unknown; +} +export interface SeedOrgLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: unknown; +} +export interface SeedOrgLimitDefaultsInput { + clientMutationId?: string; + defaults?: unknown; +} +export interface CreateAppLimitCapsDefaultInput { + clientMutationId?: string; + /** The `AppLimitCapsDefault` to be created by this mutation. */ + appLimitCapsDefault: AppLimitCapsDefaultInput; +} +/** An input for mutations affecting `AppLimitCapsDefault` */ +export interface AppLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +export interface CreateOrgLimitCapsDefaultInput { + clientMutationId?: string; + /** The `OrgLimitCapsDefault` to be created by this mutation. */ + orgLimitCapsDefault: OrgLimitCapsDefaultInput; +} +/** An input for mutations affecting `OrgLimitCapsDefault` */ +export interface OrgLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +export interface CreateAppLimitCapInput { + clientMutationId?: string; + /** The `AppLimitCap` to be created by this mutation. */ + appLimitCap: AppLimitCapInput; +} +/** An input for mutations affecting `AppLimitCap` */ +export interface AppLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + /** The `OrgLimitCap` to be created by this mutation. */ + orgLimitCap: OrgLimitCapInput; +} +/** An input for mutations affecting `OrgLimitCap` */ +export interface OrgLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; +} +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; +} +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} +export interface CreateAppLimitCreditRedemptionInput { + clientMutationId?: string; + /** The `AppLimitCreditRedemption` to be created by this mutation. */ + appLimitCreditRedemption: AppLimitCreditRedemptionInput; +} +/** An input for mutations affecting `AppLimitCreditRedemption` */ +export interface AppLimitCreditRedemptionInput { + id?: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId: string; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; +} +export interface CreateAppLimitCreditCodeItemInput { + clientMutationId?: string; + /** The `AppLimitCreditCodeItem` to be created by this mutation. */ + appLimitCreditCodeItem: AppLimitCreditCodeItemInput; +} +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId: string; + /** Number of credits this item grants per redemption */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + /** The `AppLimitWarning` to be created by this mutation. */ + appLimitWarning: AppLimitWarningInput; +} +/** An input for mutations affecting `AppLimitWarning` */ +export interface AppLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; +} +export interface CreateAppLimitCreditInput { + clientMutationId?: string; + /** The `AppLimitCredit` to be created by this mutation. */ + appLimitCredit: AppLimitCreditInput; +} +/** An input for mutations affecting `AppLimitCredit` */ +export interface AppLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +export interface CreateOrgLimitWarningInput { + clientMutationId?: string; + /** The `OrgLimitWarning` to be created by this mutation. */ + orgLimitWarning: OrgLimitWarningInput; +} +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +export interface CreateOrgLimitCreditInput { + clientMutationId?: string; + /** The `OrgLimitCredit` to be created by this mutation. */ + orgLimitCredit: OrgLimitCreditInput; +} +/** An input for mutations affecting `OrgLimitCredit` */ +export interface OrgLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + /** The `AppLimitCreditCode` to be created by this mutation. */ + appLimitCreditCode: AppLimitCreditCodeInput; +} +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +export interface CreateAppLimitEventInput { + clientMutationId?: string; + /** The `AppLimitEvent` to be created by this mutation. */ + appLimitEvent: AppLimitEventInput; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + /** The `OrgLimitEvent` to be created by this mutation. */ + orgLimitEvent: OrgLimitEventInput; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + /** The `AppLimit` to be created by this mutation. */ + appLimit: AppLimitInput; +} +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + /** The `OrgLimitAggregate` to be created by this mutation. */ + orgLimitAggregate: OrgLimitAggregateInput; +} +/** An input for mutations affecting `OrgLimitAggregate` */ +export interface OrgLimitAggregateInput { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + /** The `OrgLimit` to be created by this mutation. */ + orgLimit: OrgLimitInput; +} +/** An input for mutations affecting `OrgLimit` */ +export interface OrgLimitInput { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +export interface UpdateAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. */ + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; +} +/** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */ +export interface AppLimitCapsDefaultPatch { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +export interface UpdateOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */ + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; +} +/** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */ +export interface OrgLimitCapsDefaultPatch { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ + appLimitCapPatch: AppLimitCapPatch; +} +/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ +export interface AppLimitCapPatch { + id?: string; + /** Name identifier of the cap being overridden */ + name?: string; + /** Entity this cap override applies to */ + entityId?: string; + /** Override cap value for this entity */ + max?: string; +} +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */ + orgLimitCapPatch: OrgLimitCapPatch; +} +/** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */ +export interface OrgLimitCapPatch { + id?: string; + /** Name identifier of the cap being overridden */ + name?: string; + /** Entity this cap override applies to */ + entityId?: string; + /** Override cap value for this entity */ + max?: string; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; +} +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} +export interface UpdateAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCreditRedemption` being updated. */ + appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; +} +/** Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. */ +export interface AppLimitCreditRedemptionPatch { + id?: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId?: string; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; +} +export interface UpdateAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; +} +/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ +export interface AppLimitCreditCodeItemPatch { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId?: string; + /** Number of credits this item grants per redemption */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ + appLimitWarningPatch: AppLimitWarningPatch; +} +/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ +export interface AppLimitWarningPatch { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; +} +export interface UpdateAppLimitCreditInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */ + appLimitCreditPatch: AppLimitCreditPatch; +} +/** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */ +export interface AppLimitCreditPatch { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +export interface UpdateOrgLimitWarningInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ + orgLimitWarningPatch: OrgLimitWarningPatch; +} +/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ +export interface OrgLimitWarningPatch { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +export interface UpdateOrgLimitCreditInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ + orgLimitCreditPatch: OrgLimitCreditPatch; +} +/** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */ +export interface OrgLimitCreditPatch { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ +export interface AppLimitCreditCodePatch { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */ + appLimitEventPatch: AppLimitEventPatch; +} +/** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */ +export interface AppLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ + orgLimitEventPatch: OrgLimitEventPatch; +} +/** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */ +export interface OrgLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimit` being updated. */ + appLimitPatch: AppLimitPatch; +} +/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ +export interface AppLimitPatch { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId?: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ +export interface OrgLimitAggregatePatch { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; +} +/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ +export interface OrgLimitPatch { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId?: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +export interface DeleteAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + 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 `AppLimitCapsDefault` values. */ +export interface AppLimitCapsDefaultConnection { + nodes: AppLimitCapsDefault[]; + edges: AppLimitCapsDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitCapsDefault` values. */ +export interface OrgLimitCapsDefaultConnection { + nodes: OrgLimitCapsDefault[]; + edges: OrgLimitCapsDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitCap` values. */ +export interface AppLimitCapConnection { + nodes: AppLimitCap[]; + edges: AppLimitCapEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitCap` values. */ +export interface OrgLimitCapConnection { + nodes: OrgLimitCap[]; + edges: OrgLimitCapEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitCreditRedemption` values. */ +export interface AppLimitCreditRedemptionConnection { + nodes: AppLimitCreditRedemption[]; + edges: AppLimitCreditRedemptionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitCreditCodeItem` values. */ +export interface AppLimitCreditCodeItemConnection { + nodes: AppLimitCreditCodeItem[]; + edges: AppLimitCreditCodeItemEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitWarning` values. */ +export interface AppLimitWarningConnection { + nodes: AppLimitWarning[]; + edges: AppLimitWarningEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitCredit` values. */ +export interface AppLimitCreditConnection { + nodes: AppLimitCredit[]; + edges: AppLimitCreditEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitWarning` values. */ +export interface OrgLimitWarningConnection { + nodes: OrgLimitWarning[]; + edges: OrgLimitWarningEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitCredit` values. */ +export interface OrgLimitCreditConnection { + nodes: OrgLimitCredit[]; + edges: OrgLimitCreditEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitCreditCode` values. */ +export interface AppLimitCreditCodeConnection { + nodes: AppLimitCreditCode[]; + edges: AppLimitCreditCodeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitEvent` values. */ +export interface AppLimitEventConnection { + nodes: AppLimitEvent[]; + edges: AppLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitEvent` values. */ +export interface OrgLimitEventConnection { + nodes: OrgLimitEvent[]; + edges: OrgLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimit` values. */ +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitAggregate` values. */ +export interface OrgLimitAggregateConnection { + nodes: OrgLimitAggregate[]; + edges: OrgLimitAggregateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimit` values. */ +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface SeedAppLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SeedAppLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SeedOrgLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SeedOrgLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface CreateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was created by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export interface CreateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was created by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export interface CreateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface CreateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was created by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export interface CreateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export interface CreateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was created by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export interface CreateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was created by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export interface CreateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export interface CreateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was created by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface UpdateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was updated by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export interface UpdateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was updated by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface UpdateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was updated by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export interface UpdateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export interface UpdateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was updated by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export interface UpdateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was updated by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export interface UpdateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export interface UpdateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was updated by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface DeleteAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was deleted by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export interface DeleteOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface DeleteAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export interface DeleteAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export interface DeleteAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was deleted by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export interface DeleteAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was deleted by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export interface DeleteOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export interface DeleteOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was deleted by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface 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 `AppLimitCapsDefault` edge in the connection. */ +export interface AppLimitCapsDefaultEdge { + cursor?: string | null; + /** The `AppLimitCapsDefault` at the end of the edge. */ + node?: AppLimitCapsDefault | 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 `OrgLimitCapsDefault` edge in the connection. */ +export interface OrgLimitCapsDefaultEdge { + cursor?: string | null; + /** The `OrgLimitCapsDefault` at the end of the edge. */ + node?: OrgLimitCapsDefault | null; +} +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +/** A `AppLimitCreditRedemption` edge in the connection. */ +export interface AppLimitCreditRedemptionEdge { + cursor?: string | null; + /** The `AppLimitCreditRedemption` at the end of the edge. */ + node?: AppLimitCreditRedemption | null; +} +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { + cursor?: string | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; +} +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { + cursor?: string | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; +} +/** A `AppLimitCredit` edge in the connection. */ +export interface AppLimitCreditEdge { + cursor?: string | null; + /** The `AppLimitCredit` at the end of the edge. */ + node?: AppLimitCredit | null; +} +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { + cursor?: string | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; +} +/** A `OrgLimitCredit` edge in the connection. */ +export interface OrgLimitCreditEdge { + cursor?: string | null; + /** The `OrgLimitCredit` at the end of the edge. */ + node?: OrgLimitCredit | null; +} +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +/** 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; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; + isPrimaryKey: boolean; + isForeignKey: boolean; + description?: string | 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; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; + subtype?: string | null; +} +/** 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; +} diff --git a/sdk/constructive-react/src/usage/types.ts b/sdk/constructive-react/src/usage/types.ts new file mode 100644 index 0000000000..e283999a83 --- /dev/null +++ b/sdk/constructive-react/src/usage/types.ts @@ -0,0 +1,395 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface AppLimitCapsDefault { + id: string | null; + name: string | null; + max: string | null; +} +export interface OrgLimitCapsDefault { + id: string | null; + name: string | null; + max: string | null; +} +export interface AppLimitCap { + id: string | null; + name: string | null; + entityId: string | null; + max: string | null; +} +export interface OrgLimitCap { + id: string | null; + name: string | null; + entityId: string | null; + max: string | null; +} +export interface AppLimitDefault { + id: string | null; + name: string | null; + max: string | null; + softMax: string | null; +} +export interface AppLimitCredit { + id: string | null; + defaultLimitId: string | null; + actorId: string | null; + amount: string | null; + creditType: string | null; + reason: string | null; +} +export interface AppLimitCreditCodeItem { + id: string | null; + creditCodeId: string | null; + defaultLimitId: string | null; + amount: string | null; + creditType: string | null; +} +export interface AppLimitCreditRedemption { + id: string | null; + creditCodeId: string | null; + entityId: string | null; + organizationId: string | null; + entityType: string | null; +} +export interface OrgLimitDefault { + id: string | null; + name: string | null; + max: string | null; + softMax: string | null; +} +export interface OrgLimitCredit { + id: string | null; + defaultLimitId: string | null; + actorId: string | null; + entityId: string | null; + organizationId: string | null; + entityType: string | null; + amount: string | null; + creditType: string | null; + reason: string | null; +} +export interface AppLimitWarning { + id: string | null; + name: string | null; + warningType: string | null; + thresholdValue: string | null; + taskIdentifier: string | null; +} +export interface OrgLimitWarning { + id: string | null; + name: string | null; + warningType: string | null; + thresholdValue: string | null; + taskIdentifier: string | null; + entityId: string | null; +} +export interface AppLimitCreditCode { + id: string | null; + code: string | null; + maxRedemptions: number | null; + currentRedemptions: number | null; + expiresAt: string | null; +} +export interface AppLimitEvent { + createdAt: string | null; + id: string | null; + name: string | null; + actorId: string | null; + entityId: string | null; + organizationId: string | null; + entityType: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} +export interface OrgLimitEvent { + createdAt: string | null; + id: string | null; + name: string | null; + actorId: string | null; + entityId: string | null; + organizationId: string | null; + entityType: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} +export interface AppLimit { + id: string | null; + name: string | null; + actorId: string | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; + planMax: string | null; + purchasedCredits: string | null; + periodCredits: string | null; + organizationId: string | null; + entityType: string | null; +} +export interface OrgLimitAggregate { + id: string | null; + name: string | null; + entityId: string | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; + planMax: string | null; + purchasedCredits: string | null; + periodCredits: string | null; + reserved: string | null; + organizationId: string | null; + entityType: string | null; +} +export interface OrgLimit { + id: string | null; + name: string | null; + actorId: string | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; + planMax: string | null; + purchasedCredits: string | null; + periodCredits: string | null; + entityId: string | null; + organizationId: string | null; + entityType: 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-sdk/README.md b/sdk/constructive-sdk/README.md index ec3441f5c6..5fbe99712f 100644 --- a/sdk/constructive-sdk/README.md +++ b/sdk/constructive-sdk/README.md @@ -11,9 +11,12 @@ | API | Endpoint | Generators | Docs | |-----|----------|------------|------| | admin | - | ORM | [./src/admin/README.md](./src/admin/README.md) | +| agent | - | ORM | [./src/agent/README.md](./src/agent/README.md) | +| api | - | ORM | [./src/api/README.md](./src/api/README.md) | | auth | - | ORM | [./src/auth/README.md](./src/auth/README.md) | +| modules | - | ORM | [./src/modules/README.md](./src/modules/README.md) | | objects | - | ORM | [./src/objects/README.md](./src/objects/README.md) | -| public | - | ORM | [./src/public/README.md](./src/public/README.md) | +| usage | - | ORM | [./src/usage/README.md](./src/usage/README.md) | --- diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index ec23399d66..b2a8bba9ab 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -82,37 +82,6 @@ type Query { after: Cursor ): OrgPermissionConnection - """ - Reads and enables pagination through a set of `AppLimitCreditRedemption`. - """ - appLimitCreditRedemptions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditRedemptionFilter - - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionConnection - """Reads and enables pagination through a set of `OrgMember`.""" orgMembers( """Only read the first `n` values of the set.""" @@ -171,64 +140,6 @@ type Query { orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): AppPermissionDefaultConnection - """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppAdminGrantFilter - - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAdminGrantConnection - - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppOwnerGrantFilter - - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection - """Reads and enables pagination through a set of `OrgPermissionDefault`.""" orgPermissionDefaults( """Only read the first `n` values of the set.""" @@ -258,8 +169,8 @@ type Query { orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgPermissionDefaultConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -281,14 +192,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter + where: AppAdminGrantFilter - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrants( + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( """Only read the first `n` values of the set.""" first: Int @@ -310,14 +221,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgAdminGrantFilter + where: AppOwnerGrantFilter - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -339,11 +250,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipDefaultFilter + where: OrgAdminGrantFilter - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection """Reads and enables pagination through a set of `OrgOwnerGrant`.""" orgOwnerGrants( @@ -374,8 +285,8 @@ type Query { orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgOwnerGrantConnection - """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" - appLimitCapsDefaults( + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( """Only read the first `n` values of the set.""" first: Int @@ -397,14 +308,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCapsDefaultFilter + where: AppPermissionFilter - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultConnection + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection - """Reads and enables pagination through a set of `OrgLimitCapsDefault`.""" - orgLimitCapsDefaults( + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( """Only read the first `n` values of the set.""" first: Int @@ -426,14 +337,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCapsDefaultFilter + where: OrgPermissionFilter - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultConnection + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection - """Reads and enables pagination through a set of `AppLimitCap`.""" - appLimitCaps( + """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" + orgChartEdgeGrants( """Only read the first `n` values of the set.""" first: Int @@ -455,14 +366,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCapFilter + where: OrgChartEdgeGrantFilter - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCapConnection + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantConnection - """Reads and enables pagination through a set of `OrgLimitCap`.""" - orgLimitCaps( + """Reads and enables pagination through a set of `AppClaimedInvite`.""" + appClaimedInvites( """Only read the first `n` values of the set.""" first: Int @@ -484,14 +395,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCapFilter + where: AppClaimedInviteFilter - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCapConnection + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( """Only read the first `n` values of the set.""" first: Int @@ -513,16 +424,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeFilter + where: MembershipTypeFilter - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItems( + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( """Only read the first `n` values of the set.""" first: Int @@ -544,14 +453,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeItemFilter + where: AppGrantFilter - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -573,14 +482,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: AppMembershipDefaultFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -602,14 +511,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: OrgMembershipDefaultFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvites( """Only read the first `n` values of the set.""" first: Int @@ -631,14 +540,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionFilter + where: OrgClaimedInviteFilter - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( """Only read the first `n` values of the set.""" first: Int @@ -660,14 +569,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionFilter + where: OrgGrantFilter - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection - """Reads and enables pagination through a set of `AppLimitCreditCode`.""" - appLimitCreditCodes( + """Reads and enables pagination through a set of `OrgChartEdge`.""" + orgChartEdges( """Only read the first `n` values of the set.""" first: Int @@ -689,14 +598,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeFilter + where: OrgChartEdgeFilter - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeConnection + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeConnection - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( + """Reads and enables pagination through a set of `OrgMembershipSetting`.""" + orgMembershipSettings( """Only read the first `n` values of the set.""" first: Int @@ -718,14 +627,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitWarningFilter + where: OrgMembershipSettingFilter - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitWarningConnection + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingConnection - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrants( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Only read the first `n` values of the set.""" first: Int @@ -747,14 +656,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeGrantFilter + where: AppMembershipFilter - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Only read the first `n` values of the set.""" first: Int @@ -776,14 +685,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditFilter + where: AppInviteFilter - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppInviteConnection - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCredits( + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( """Only read the first `n` values of the set.""" first: Int @@ -805,14 +714,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCreditFilter + where: OrgMembershipFilter - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvites( + """Reads and enables pagination through a set of `OrgMemberProfile`.""" + orgMemberProfiles( """Only read the first `n` values of the set.""" first: Int @@ -834,14 +743,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppClaimedInviteFilter + where: OrgMemberProfileFilter - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppClaimedInviteConnection + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberProfileConnection - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarnings( + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvites( """Only read the first `n` values of the set.""" first: Int @@ -863,1077 +772,1021 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitWarningFilter + where: OrgInviteFilter - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitWarningConnection + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""A string representing a series of binary bits""" +scalar BitString - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""A connection to a list of `OrgGetManagersRecord` values.""" +type OrgGetManagersConnection { + """A list of `OrgGetManagersRecord` objects.""" + nodes: [OrgGetManagersRecord]! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: MembershipTypeFilter + """ + A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. + """ + edges: [OrgGetManagersEdge]! - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( - """Only read the first `n` values of the set.""" - first: Int + """ + The count of *all* `OrgGetManagersRecord` you could get from the connection. + """ + totalCount: Int! +} - """Only read the last `n` values of the set.""" - last: Int +type OrgGetManagersRecord { + userId: UUID + depth: Int +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""A `OrgGetManagersRecord` edge in the connection.""" +type OrgGetManagersEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Read all values in the set before (above) this cursor.""" - before: Cursor + """The `OrgGetManagersRecord` at the end of the edge.""" + node: OrgGetManagersRecord +} - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppGrantFilter +"""Information about pagination in a connection.""" +type PageInfo { + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! - """Reads and enables pagination through a set of `OrgClaimedInvite`.""" - orgClaimedInvites( - """Only read the first `n` values of the set.""" - first: Int + """When paginating backwards, the cursor to continue.""" + startCursor: Cursor - """Only read the last `n` values of the set.""" - last: Int + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor +} - """ - 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 `OrgGetSubordinatesRecord` values.""" +type OrgGetSubordinatesConnection { + """A list of `OrgGetSubordinatesRecord` objects.""" + nodes: [OrgGetSubordinatesRecord]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. + """ + edges: [OrgGetSubordinatesEdge]! - """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: OrgClaimedInviteFilter + """ + The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. + """ + totalCount: Int! +} - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteConnection +type OrgGetSubordinatesRecord { + userId: UUID + depth: Int +} - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrants( - """Only read the first `n` values of the set.""" - first: Int +"""A `OrgGetSubordinatesRecord` edge in the connection.""" +type OrgGetSubordinatesEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Only read the last `n` values of the set.""" - last: Int + """The `OrgGetSubordinatesRecord` at the end of the edge.""" + node: OrgGetSubordinatesRecord +} - """ - 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 `AppPermission` values.""" +type AppPermissionConnection { + """A list of `AppPermission` objects.""" + nodes: [AppPermission]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + A list of edges which contains the `AppPermission` and cursor to aid in pagination. + """ + edges: [AppPermissionEdge]! - """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: OrgGrantFilter + """The count of *all* `AppPermission` you could get from the connection.""" + totalCount: Int! +} - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection +""" +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +""" +type AppPermission { + id: UUID! - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( - """Only read the first `n` values of the set.""" - first: Int + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """Only read the last `n` values of the set.""" - last: Int + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Human-readable description of what this permission allows""" + description: String +} - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""A `AppPermission` edge in the connection.""" +type AppPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipSettingFilter + """The `AppPermission` at the end of the edge.""" + node: AppPermission +} - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection +"""A connection to a list of `OrgPermission` values.""" +type OrgPermissionConnection { + """A list of `OrgPermission` objects.""" + nodes: [OrgPermission]! - """Reads and enables pagination through a set of `AppLimitEvent`.""" - appLimitEvents( - """Only read the first `n` values of the set.""" - first: Int + """ + A list of edges which contains the `OrgPermission` and cursor to aid in pagination. + """ + edges: [OrgPermissionEdge]! - """Only read the last `n` values of the set.""" - last: Int + """Information to aid in pagination.""" + pageInfo: PageInfo! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """The count of *all* `OrgPermission` you could get from the connection.""" + totalCount: Int! +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +""" +type OrgPermission { + id: UUID! - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitEventFilter - - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitEventConnection + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """Reads and enables pagination through a set of `OrgLimitEvent`.""" - orgLimitEvents( - """Only read the first `n` values of the set.""" - first: Int + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString! - """Only read the last `n` values of the set.""" - last: Int + """Human-readable description of what this permission allows""" + description: String +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +"""A `OrgPermission` edge in the connection.""" +type OrgPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Read all values in the set before (above) this cursor.""" - before: Cursor + """The `OrgPermission` at the end of the edge.""" + node: OrgPermission +} - """Read all values in the set after (below) this cursor.""" - after: Cursor +"""A connection to a list of `OrgMember` values.""" +type OrgMemberConnection { + """A list of `OrgMember` objects.""" + nodes: [OrgMember]! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitEventFilter + """ + A list of edges which contains the `OrgMember` and cursor to aid in pagination. + """ + edges: [OrgMemberEdge]! - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitEventConnection + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( - """Only read the first `n` values of the set.""" - first: Int + """The count of *all* `OrgMember` you could get from the connection.""" + totalCount: Int! +} - """Only read the last `n` values of the set.""" - last: Int +""" +Simplified view of active members in an entity, used for listing who belongs to an org or group +""" +type OrgMember { + id: UUID! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Whether this member has admin privileges""" + isAdmin: Boolean! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """References the user who is a member""" + actorId: UUID! - """Read all values in the set after (below) this cursor.""" - after: Cursor + """References the entity (org or group) this member belongs to""" + entityId: UUID! +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppMembershipFilter +"""A `OrgMember` edge in the connection.""" +type OrgMemberEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipConnection + """The `OrgMember` at the end of the edge.""" + node: OrgMember +} - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( - """Only read the first `n` values of the set.""" - first: Int +""" +A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMemberFilter { + """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 `isAdmin` field.""" + isAdmin: BooleanFilter - """ - 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 `actorId` field.""" + actorId: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Checks for all expressions in this list.""" + and: [OrgMemberFilter!] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipFilter + """Checks for any expressions in this list.""" + or: [OrgMemberFilter!] - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection + """Negates the expression.""" + not: OrgMemberFilter +} - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfiles( - """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: OrgMemberProfileFilter + """Included in the specified list.""" + in: [UUID!] - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection + """Not included in the specified list.""" + notIn: [UUID!] - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( - """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 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 - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppInviteFilter + """Equal to the specified value.""" + equalTo: Boolean - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection + """Not equal to the specified value.""" + notEqualTo: Boolean - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( - """Only read the first `n` values of the set.""" - first: Int + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean - """Only read the last `n` values of the set.""" - last: Int + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean - """ - 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: [Boolean!] - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Not included in the specified list.""" + notIn: [Boolean!] - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Less than the specified value.""" + lessThan: Boolean - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitFilter + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection + """Greater than the specified value.""" + greaterThan: Boolean - """Reads and enables pagination through a set of `OrgLimitAggregate`.""" - orgLimitAggregates( - """Only read the first `n` values of the set.""" - first: Int + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean +} - """Only read the last `n` values of the set.""" - last: 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: OrgLimitAggregateFilter - - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateConnection - - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int +"""Methods to use when ordering `OrgMember`.""" +enum OrgMemberOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} - """ - 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 `AppPermissionDefault` values.""" +type AppPermissionDefaultConnection { + """A list of `AppPermissionDefault` objects.""" + nodes: [AppPermissionDefault]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. + """ + edges: [AppPermissionDefaultEdge]! - """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: OrgLimitFilter + """ + The count of *all* `AppPermissionDefault` you could get from the connection. + """ + totalCount: Int! +} - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection +""" +Stores the default permission bitmask assigned to new members upon joining +""" +type AppPermissionDefault { + id: UUID! - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvites( - """Only read the first `n` values of the set.""" - first: Int + """Default permission bitmask applied to new members""" + permissions: BitString! +} - """Only read the last `n` values of the set.""" - last: Int +"""A `AppPermissionDefault` edge in the connection.""" +type AppPermissionDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """The `AppPermissionDefault` at the end of the edge.""" + node: AppPermissionDefault +} - """Read all values in the set before (above) this cursor.""" - before: Cursor +""" +A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input AppPermissionDefaultFilter { + """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 `permissions` field.""" + permissions: BitStringFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgInviteFilter + """Checks for all expressions in this list.""" + and: [AppPermissionDefaultFilter!] - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection + """Checks for any expressions in this list.""" + or: [AppPermissionDefaultFilter!] - """ - Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. - """ - _meta: MetaSchema + """Negates the expression.""" + not: AppPermissionDefaultFilter } -"""A string representing a series of binary bits""" -scalar BitString - """ -A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ """ -scalar UUID - -"""A connection to a list of `OrgGetManagersRecord` values.""" -type OrgGetManagersConnection { - """A list of `OrgGetManagersRecord` objects.""" - nodes: [OrgGetManagersRecord]! - +input BitStringFilter { """ - A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - edges: [OrgGetManagersEdge]! + isNull: Boolean - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value.""" + equalTo: BitString + + """Not equal to the specified value.""" + notEqualTo: BitString """ - The count of *all* `OrgGetManagersRecord` you could get from the connection. + Not equal to the specified value, treating null like an ordinary value. """ - totalCount: Int! -} + distinctFrom: BitString -type OrgGetManagersRecord { - userId: UUID - depth: Int -} + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BitString -"""A `OrgGetManagersRecord` edge in the connection.""" -type OrgGetManagersEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Included in the specified list.""" + in: [BitString!] - """The `OrgGetManagersRecord` at the end of the edge.""" - node: OrgGetManagersRecord -} + """Not included in the specified list.""" + notIn: [BitString!] -"""A location in a connection that can be used for resuming pagination.""" -scalar Cursor + """Less than the specified value.""" + lessThan: BitString -"""Information about pagination in a connection.""" -type PageInfo { - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BitString - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! + """Greater than the specified value.""" + greaterThan: BitString - """When paginating backwards, the cursor to continue.""" - startCursor: Cursor + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BitString +} - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor +"""Methods to use when ordering `AppPermissionDefault`.""" +enum AppPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC } -"""A connection to a list of `OrgGetSubordinatesRecord` values.""" -type OrgGetSubordinatesConnection { - """A list of `OrgGetSubordinatesRecord` objects.""" - nodes: [OrgGetSubordinatesRecord]! +"""A connection to a list of `OrgPermissionDefault` values.""" +type OrgPermissionDefaultConnection { + """A list of `OrgPermissionDefault` objects.""" + nodes: [OrgPermissionDefault]! """ - A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. + A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. """ - edges: [OrgGetSubordinatesEdge]! + edges: [OrgPermissionDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. + The count of *all* `OrgPermissionDefault` you could get from the connection. """ totalCount: Int! } -type OrgGetSubordinatesRecord { - userId: UUID - depth: Int +""" +Stores the default permission bitmask assigned to new members upon joining +""" +type OrgPermissionDefault { + id: UUID! + + """Default permission bitmask applied to new members""" + permissions: BitString! + + """References the entity these default permissions apply to""" + entityId: UUID! } -"""A `OrgGetSubordinatesRecord` edge in the connection.""" -type OrgGetSubordinatesEdge { +"""A `OrgPermissionDefault` edge in the connection.""" +type OrgPermissionDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGetSubordinatesRecord` at the end of the edge.""" - node: OrgGetSubordinatesRecord + """The `OrgPermissionDefault` at the end of the edge.""" + node: OrgPermissionDefault } -"""A connection to a list of `AppPermission` values.""" -type AppPermissionConnection { - """A list of `AppPermission` objects.""" - nodes: [AppPermission]! +""" +A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A list of edges which contains the `AppPermission` and cursor to aid in pagination. - """ - edges: [AppPermissionEdge]! + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """The count of *all* `AppPermission` you could get from the connection.""" - totalCount: Int! -} - -""" -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control -""" -type AppPermission { - id: UUID! - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int + """Checks for all expressions in this list.""" + and: [OrgPermissionDefaultFilter!] - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString! + """Checks for any expressions in this list.""" + or: [OrgPermissionDefaultFilter!] - """Human-readable description of what this permission allows""" - description: String + """Negates the expression.""" + not: OrgPermissionDefaultFilter } -"""A `AppPermission` edge in the connection.""" -type AppPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermission` at the end of the edge.""" - node: AppPermission +"""Methods to use when ordering `OrgPermissionDefault`.""" +enum OrgPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `OrgPermission` values.""" -type OrgPermissionConnection { - """A list of `OrgPermission` objects.""" - nodes: [OrgPermission]! +"""A connection to a list of `AppAdminGrant` values.""" +type AppAdminGrantConnection { + """A list of `AppAdminGrant` objects.""" + nodes: [AppAdminGrant]! """ - A list of edges which contains the `OrgPermission` and cursor to aid in pagination. + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. """ - edges: [OrgPermissionEdge]! + edges: [AppAdminGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgPermission` you could get from the connection.""" + """The count of *all* `AppAdminGrant` you could get from the connection.""" totalCount: Int! } -""" -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control -""" -type OrgPermission { +"""Records of admin role grants and revocations between members""" +type AppAdminGrant { id: UUID! - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString! + """True to grant admin, false to revoke admin""" + isGrant: Boolean! - """Human-readable description of what this permission allows""" - description: String + """The member receiving or losing the admin grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `OrgPermission` edge in the connection.""" -type OrgPermissionEdge { +""" +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 `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgPermission` at the end of the edge.""" - node: OrgPermission -} - -"""A connection to a list of `AppLimitCreditRedemption` values.""" -type AppLimitCreditRedemptionConnection { - """A list of `AppLimitCreditRedemption` objects.""" - nodes: [AppLimitCreditRedemption]! - - """ - A list of edges which contains the `AppLimitCreditRedemption` and cursor to aid in pagination. - """ - edges: [AppLimitCreditRedemptionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitCreditRedemption` you could get from the connection. - """ - totalCount: Int! + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant } """ -Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits +A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ """ -type AppLimitCreditRedemption { - id: UUID! +input AppAdminGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID! + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID! + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """ - Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditRedemption`. - """ - creditCode: AppLimitCreditCode -} + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter -""" -Redeemable credit codes managed by admins with the add_credits permission -""" -type AppLimitCreditCode { - id: UUID! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Human-readable credit code (case-insensitive, unique)""" - code: String! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int + """Checks for all expressions in this list.""" + and: [AppAdminGrantFilter!] - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int! + """Checks for any expressions in this list.""" + or: [AppAdminGrantFilter!] - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime + """Negates the expression.""" + not: AppAdminGrantFilter +} +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - appLimitCreditCodeItemsByCreditCodeId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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 + isNull: Boolean - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeItemFilter + """Equal to the specified value.""" + equalTo: Datetime - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection! + """Not equal to the specified value.""" + notEqualTo: Datetime """ - Reads and enables pagination through a set of `AppLimitCreditRedemption`. + Not equal to the specified value, treating null like an ordinary value. """ - appLimitCreditRedemptionsByCreditCodeId( - """Only read the first `n` values of the set.""" - first: Int + distinctFrom: Datetime - """Only read the last `n` values of the set.""" - last: Int + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime - """ - 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: [Datetime!] - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Not included in the specified list.""" + notIn: [Datetime!] - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Less than the specified value.""" + lessThan: Datetime - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditRedemptionFilter + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionConnection! + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: 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 +"""Methods to use when ordering `AppAdminGrant`.""" +enum AppAdminGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} -"""A connection to a list of `AppLimitCreditCodeItem` values.""" -type AppLimitCreditCodeItemConnection { - """A list of `AppLimitCreditCodeItem` objects.""" - nodes: [AppLimitCreditCodeItem]! +"""A connection to a list of `AppOwnerGrant` values.""" +type AppOwnerGrantConnection { + """A list of `AppOwnerGrant` objects.""" + nodes: [AppOwnerGrant]! """ - A list of edges which contains the `AppLimitCreditCodeItem` and cursor to aid in pagination. + A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. """ - edges: [AppLimitCreditCodeItemEdge]! + edges: [AppOwnerGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppLimitCreditCodeItem` you could get from the connection. - """ + """The count of *all* `AppOwnerGrant` you could get from the connection.""" totalCount: Int! } -""" -Items within a credit code — each row grants credits for a specific limit definition -""" -type AppLimitCreditCodeItem { +"""Records of ownership transfers and grants between members""" +type AppOwnerGrant { id: UUID! - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! + """The member receiving or losing the ownership grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} - """Number of credits this item grants per redemption""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! - - """ - Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditCodeItem`. - """ - creditCode: AppLimitCreditCode +"""A `AppOwnerGrant` edge in the connection.""" +type AppOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Reads a single `AppLimitDefault` that is related to this `AppLimitCreditCodeItem`. - """ - defaultLimit: AppLimitDefault + """The `AppOwnerGrant` at the end of the edge.""" + node: AppOwnerGrant } """ -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 - -""" -Default maximum values for each named limit, applied when no per-actor override exists +A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ """ -type AppLimitDefault { - id: UUID! - - """Name identifier of the limit this default applies to""" - name: String! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCreditsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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 +input AppOwnerGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection! + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItemsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int + """Filter by the object’s `grantorId` field.""" + grantorId: 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 + """Checks for all expressions in this list.""" + and: [AppOwnerGrantFilter!] - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Checks for any expressions in this list.""" + or: [AppOwnerGrantFilter!] - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppLimitCreditCodeItemFilter + """Negates the expression.""" + not: AppOwnerGrantFilter +} - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection! +"""Methods to use when ordering `AppOwnerGrant`.""" +enum AppOwnerGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `AppLimitCredit` values.""" -type AppLimitCreditConnection { - """A list of `AppLimitCredit` objects.""" - nodes: [AppLimitCredit]! +"""A connection to a list of `OrgAdminGrant` values.""" +type OrgAdminGrantConnection { + """A list of `OrgAdminGrant` objects.""" + nodes: [OrgAdminGrant]! """ - A list of edges which contains the `AppLimitCredit` and cursor to aid in pagination. + A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. """ - edges: [AppLimitCreditEdge]! + edges: [OrgAdminGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitCredit` you could get from the connection.""" + """The count of *all* `OrgAdminGrant` you could get from the connection.""" totalCount: Int! } -""" -Append-only ledger of credit grants that automatically update limit ceilings -""" -type AppLimitCredit { +"""Records of admin role grants and revocations between members""" +type OrgAdminGrant { id: UUID! - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! + """True to grant admin, false to revoke admin""" + isGrant: Boolean! - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """The member receiving or losing the admin grant""" + actorId: UUID! - """ - Reads a single `AppLimitDefault` that is related to this `AppLimitCredit`. - """ - defaultLimit: AppLimitDefault + """The entity (org or group) this admin grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `AppLimitCredit` edge in the connection.""" -type AppLimitCreditEdge { +"""A `OrgAdminGrant` edge in the connection.""" +type OrgAdminGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCredit` at the end of the edge.""" - node: AppLimitCredit + """The `OrgAdminGrant` at the end of the edge.""" + node: OrgAdminGrant } """ -A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCreditFilter { +input OrgAdminGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `amount` field.""" - amount: BigIntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `creditType` field.""" - creditType: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppLimitCreditFilter!] + and: [OrgAdminGrantFilter!] """Checks for any expressions in this list.""" - or: [AppLimitCreditFilter!] + or: [OrgAdminGrantFilter!] """Negates the expression.""" - not: AppLimitCreditFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: AppLimitDefaultFilter + not: OrgAdminGrantFilter } -""" -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 +"""Methods to use when ordering `OrgAdminGrant`.""" +enum OrgAdminGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Not equal to the specified value.""" - notEqualTo: UUID +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! """ - Not equal to the specified value, treating null like an ordinary value. + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. """ - distinctFrom: UUID + edges: [OrgOwnerGrantEdge]! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: UUID + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Included in the specified list.""" - in: [UUID!] + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + totalCount: Int! +} - """Not included in the specified list.""" - notIn: [UUID!] +"""Records of ownership transfers and grants between members""" +type OrgOwnerGrant { + id: UUID! - """Less than the specified value.""" - lessThan: UUID + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: UUID + """The member receiving or losing the ownership grant""" + actorId: UUID! - """Greater than the specified value.""" - greaterThan: UUID + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: UUID +"""A `OrgOwnerGrant` edge in the connection.""" +type OrgOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgOwnerGrant` at the end of the edge.""" + node: OrgOwnerGrant } """ -A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ """ -input BigIntFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean +input OrgOwnerGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Equal to the specified value.""" - equalTo: BigInt + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Not equal to the specified value.""" - notEqualTo: BigInt + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: BigInt + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BigInt + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Included in the specified list.""" - in: [BigInt!] + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Not included in the specified list.""" - notIn: [BigInt!] + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Less than the specified value.""" - lessThan: BigInt + """Checks for all expressions in this list.""" + and: [OrgOwnerGrantFilter!] - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BigInt + """Checks for any expressions in this list.""" + or: [OrgOwnerGrantFilter!] - """Greater than the specified value.""" - greaterThan: BigInt + """Negates the expression.""" + not: OrgOwnerGrantFilter +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BigInt +"""Methods to use when ordering `OrgOwnerGrant`.""" +enum OrgOwnerGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +""" +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +""" +input AppPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter + + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Checks for all expressions in this list.""" + and: [AppPermissionFilter!] + + """Checks for any expressions in this list.""" + or: [AppPermissionFilter!] + + """Negates the expression.""" + not: AppPermissionFilter } """ @@ -2068,154 +1921,6 @@ input StringFilter { greaterThanOrEqualToInsensitive: String } -""" -A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitDefaultFilter!] - - """Negates the expression.""" - not: AppLimitDefaultFilter - - """Filter by the object’s `appLimitCreditsByDefaultLimitId` relation.""" - appLimitCreditsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditFilter - - """`appLimitCreditsByDefaultLimitId` exist.""" - appLimitCreditsByDefaultLimitIdExist: Boolean - - """ - Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. - """ - appLimitCreditCodeItemsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditCodeItemFilter - - """`appLimitCreditCodeItemsByDefaultLimitId` exist.""" - appLimitCreditCodeItemsByDefaultLimitIdExist: Boolean -} - -""" -A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultToManyAppLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditFilter -} - -""" -A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditCodeItemFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditCodeItemFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditCodeItemFilter -} - -""" -A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeItemFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `creditCodeId` field.""" - creditCodeId: UUIDFilter - - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter - - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCreditCodeItemFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCreditCodeItemFilter!] - - """Negates the expression.""" - not: AppLimitCreditCodeItemFilter - - """Filter by the object’s `creditCode` relation.""" - creditCode: AppLimitCreditCodeFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: AppLimitDefaultFilter -} - -""" -A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `code` field.""" - code: StringFilter - - """Filter by the object’s `maxRedemptions` field.""" - maxRedemptions: IntFilter - - """Filter by the object’s `currentRedemptions` field.""" - currentRedemptions: IntFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCreditCodeFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCreditCodeFilter!] - - """Negates the expression.""" - not: AppLimitCreditCodeFilter - - """ - Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. - """ - appLimitCreditCodeItemsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter - - """`appLimitCreditCodeItemsByCreditCodeId` exist.""" - appLimitCreditCodeItemsByCreditCodeIdExist: Boolean - - """ - Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. - """ - appLimitCreditRedemptionsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter - - """`appLimitCreditRedemptionsByCreditCodeId` exist.""" - appLimitCreditRedemptionsByCreditCodeIdExist: Boolean -} - """ A filter to be used against Int fields. All fields are combined with a logical ‘and.’ """ @@ -2258,452 +1963,458 @@ input IntFilter { greaterThanOrEqualTo: Int } -""" -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 many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditCodeItemFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditCodeItemFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditCodeItemFilter -} - -""" -A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditRedemptionFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditRedemptionFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditRedemptionFilter +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC } """ -A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCreditRedemptionFilter { +input OrgPermissionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `creditCodeId` field.""" - creditCodeId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter """Checks for all expressions in this list.""" - and: [AppLimitCreditRedemptionFilter!] + and: [OrgPermissionFilter!] """Checks for any expressions in this list.""" - or: [AppLimitCreditRedemptionFilter!] + or: [OrgPermissionFilter!] """Negates the expression.""" - not: AppLimitCreditRedemptionFilter - - """Filter by the object’s `creditCode` relation.""" - creditCode: AppLimitCreditCodeFilter + not: OrgPermissionFilter } -"""Methods to use when ordering `AppLimitCredit`.""" -enum AppLimitCreditOrderBy { +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - REASON_ASC - REASON_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC } -"""Methods to use when ordering `AppLimitCreditCodeItem`.""" -enum AppLimitCreditCodeItemOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREDIT_CODE_ID_ASC - CREDIT_CODE_ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC -} - -"""A `AppLimitCreditCodeItem` edge in the connection.""" -type AppLimitCreditCodeItemEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""A connection to a list of `OrgChartEdgeGrant` values.""" +type OrgChartEdgeGrantConnection { + """A list of `OrgChartEdgeGrant` objects.""" + nodes: [OrgChartEdgeGrant]! - """The `AppLimitCreditCodeItem` at the end of the edge.""" - node: AppLimitCreditCodeItem -} - -"""Methods to use when ordering `AppLimitCreditRedemption`.""" -enum AppLimitCreditRedemptionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREDIT_CODE_ID_ASC - CREDIT_CODE_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A `AppLimitCreditRedemption` edge in the connection.""" -type AppLimitCreditRedemptionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCreditRedemption` at the end of the edge.""" - node: AppLimitCreditRedemption -} - -"""A connection to a list of `OrgMember` values.""" -type OrgMemberConnection { - """A list of `OrgMember` objects.""" - nodes: [OrgMember]! - - """ - A list of edges which contains the `OrgMember` and cursor to aid in pagination. - """ - edges: [OrgMemberEdge]! + """ + A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. + """ + edges: [OrgChartEdgeGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgMember` you could get from the connection.""" + """ + The count of *all* `OrgChartEdgeGrant` you could get from the connection. + """ totalCount: Int! } """ -Simplified view of active members in an entity, used for listing who belongs to an org or group +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table """ -type OrgMember { +type OrgChartEdgeGrant { id: UUID! - """Whether this member has admin privileges""" - isAdmin: Boolean! + """Organization this grant applies to""" + entityId: UUID! - """References the user who is a member""" - actorId: UUID! + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! - """References the entity (org or group) this member belongs to""" - entityId: UUID! + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID + + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean! + + """Job title or role name being assigned in this grant""" + positionTitle: String + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime! } -"""A `OrgMember` edge in the connection.""" -type OrgMemberEdge { +"""A `OrgChartEdgeGrant` edge in the connection.""" +type OrgChartEdgeGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMember` at the end of the edge.""" - node: OrgMember + """The `OrgChartEdgeGrant` at the end of the edge.""" + node: OrgChartEdgeGrant } """ -A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgMemberFilter { +input OrgChartEdgeGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Checks for all expressions in this list.""" - and: [OrgMemberFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMemberFilter!] - - """Negates the expression.""" - not: OrgMemberFilter -} - -""" -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 + """Filter by the object’s `childId` field.""" + childId: UUIDFilter - """Not equal to the specified value.""" - notEqualTo: Boolean + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Boolean + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Boolean + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Included in the specified list.""" - in: [Boolean!] + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter - """Not included in the specified list.""" - notIn: [Boolean!] + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter - """Less than the specified value.""" - lessThan: Boolean + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Boolean + """Checks for all expressions in this list.""" + and: [OrgChartEdgeGrantFilter!] - """Greater than the specified value.""" - greaterThan: Boolean + """Checks for any expressions in this list.""" + or: [OrgChartEdgeGrantFilter!] - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Boolean + """Negates the expression.""" + not: OrgChartEdgeGrantFilter } -"""Methods to use when ordering `OrgMember`.""" -enum OrgMemberOrderBy { +"""Methods to use when ordering `OrgChartEdgeGrant`.""" +enum OrgChartEdgeGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC + CHILD_ID_ASC + CHILD_ID_DESC + PARENT_ID_ASC + PARENT_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC + CREATED_AT_ASC + CREATED_AT_DESC } -"""A connection to a list of `AppPermissionDefault` values.""" -type AppPermissionDefaultConnection { - """A list of `AppPermissionDefault` objects.""" - nodes: [AppPermissionDefault]! +"""A connection to a list of `AppClaimedInvite` values.""" +type AppClaimedInviteConnection { + """A list of `AppClaimedInvite` objects.""" + nodes: [AppClaimedInvite]! """ - A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. + A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. """ - edges: [AppPermissionDefaultEdge]! + edges: [AppClaimedInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppPermissionDefault` you could get from the connection. + The count of *all* `AppClaimedInvite` you could get from the connection. """ totalCount: Int! } """ -Stores the default permission bitmask assigned to new members upon joining +Records of successfully claimed invitations, linking senders to receivers """ -type AppPermissionDefault { +type AppClaimedInvite { id: UUID! - """Default permission bitmask applied to new members""" - permissions: BitString! + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `AppPermissionDefault` edge in the connection.""" -type AppPermissionDefaultEdge { +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `AppClaimedInvite` edge in the connection.""" +type AppClaimedInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppPermissionDefault` at the end of the edge.""" - node: AppPermissionDefault + """The `AppClaimedInvite` at the end of the edge.""" + node: AppClaimedInvite } """ -A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ -input AppPermissionDefaultFilter { +input AppClaimedInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter + + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppPermissionDefaultFilter!] + and: [AppClaimedInviteFilter!] """Checks for any expressions in this list.""" - or: [AppPermissionDefaultFilter!] + or: [AppClaimedInviteFilter!] """Negates the expression.""" - not: AppPermissionDefaultFilter + not: AppClaimedInviteFilter } -""" -A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ -""" -input BitStringFilter { +"""Methods to use when ordering `AppClaimedInvite`.""" +enum AppClaimedInviteOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATA_ASC + DATA_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! + """ - Is null (if `true` is specified) or is not null (if `false` is specified). + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - isNull: Boolean + edges: [MembershipTypeEdge]! - """Equal to the specified value.""" - equalTo: BitString + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Not equal to the specified value.""" - notEqualTo: BitString + """The count of *all* `MembershipType` you could get from the connection.""" + totalCount: Int! +} +""" +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +""" +type MembershipType { """ - Not equal to the specified value, treating null like an ordinary value. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - distinctFrom: BitString + id: Int! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BitString + """Human-readable name of the membership type""" + name: String! - """Included in the specified list.""" - in: [BitString!] + """Description of what this membership type represents""" + description: String! - """Not included in the specified list.""" - notIn: [BitString!] + """ + Scope identifier for this membership type, used to resolve scope on module config tables + """ + scope: String! - """Less than the specified value.""" - lessThan: BitString + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BitString + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean! +} - """Greater than the specified value.""" - greaterThan: BitString +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BitString + """The `MembershipType` at the end of the edge.""" + node: MembershipType } -"""Methods to use when ordering `AppPermissionDefault`.""" -enum AppPermissionDefaultOrderBy { +""" +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +""" +input MembershipTypeFilter { + """Filter by the object’s `id` field.""" + id: IntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter + + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter + + """Checks for all expressions in this list.""" + and: [MembershipTypeFilter!] + + """Checks for any expressions in this list.""" + or: [MembershipTypeFilter!] + + """Negates the expression.""" + not: MembershipTypeFilter +} + +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SCOPE_ASC + SCOPE_DESC + PARENT_MEMBERSHIP_TYPE_ASC + PARENT_MEMBERSHIP_TYPE_DESC + HAS_USERS_TABLE_ENTRY_ASC + HAS_USERS_TABLE_ENTRY_DESC } -"""A connection to a list of `AppAdminGrant` values.""" -type AppAdminGrantConnection { - """A list of `AppAdminGrant` objects.""" - nodes: [AppAdminGrant]! +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! """ - A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. + A list of edges which contains the `AppGrant` and cursor to aid in pagination. """ - edges: [AppAdminGrantEdge]! + edges: [AppGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppAdminGrant` you could get from the connection.""" + """The count of *all* `AppGrant` you could get from the connection.""" totalCount: Int! } -"""Records of admin role grants and revocations between members""" -type AppAdminGrant { +""" +Records of individual permission grants and revocations for members via bitmask +""" +type AppGrant { id: UUID! - """True to grant admin, false to revoke admin""" + """Bitmask of permissions being granted or revoked""" + permissions: BitString! + + """True to grant the permissions, false to revoke them""" isGrant: Boolean! - """The member receiving or losing the admin grant""" + """The member receiving or losing the permission grant""" actorId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""A `AppAdminGrant` edge in the connection.""" -type AppAdminGrantEdge { +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppAdminGrant` at the end of the edge.""" - node: AppAdminGrant + """The `AppGrant` at the end of the edge.""" + node: AppGrant } """ -A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppAdminGrantFilter { +input AppGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + """Filter by the object’s `isGrant` field.""" isGrant: BooleanFilter @@ -2720,22 +2431,24 @@ input AppAdminGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppAdminGrantFilter!] + and: [AppGrantFilter!] """Checks for any expressions in this list.""" - or: [AppAdminGrantFilter!] + or: [AppGrantFilter!] """Negates the expression.""" - not: AppAdminGrantFilter + not: AppGrantFilter } -"""Methods to use when ordering `AppAdminGrant`.""" -enum AppAdminGrantOrderBy { +"""Methods to use when ordering `AppGrant`.""" +enum AppGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC IS_GRANT_ASC IS_GRANT_DESC ACTOR_ID_ASC @@ -2748,325 +2461,366 @@ enum AppAdminGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `AppOwnerGrant` values.""" -type AppOwnerGrantConnection { - """A list of `AppOwnerGrant` objects.""" - nodes: [AppOwnerGrant]! +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! """ - A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. """ - edges: [AppOwnerGrantEdge]! + edges: [AppMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppOwnerGrant` you could get from the connection.""" + """ + The count of *all* `AppMembershipDefault` you could get from the connection. + """ totalCount: Int! } -"""Records of ownership transfers and grants between members""" -type AppOwnerGrant { +""" +Default membership settings per entity, controlling initial approval and verification state for new members +""" +type AppMembershipDefault { id: UUID! - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! - - """The member receiving or losing the ownership grant""" - actorId: UUID! - grantorId: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean! } -"""A `AppOwnerGrant` edge in the connection.""" -type AppOwnerGrantEdge { +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppOwnerGrant` at the end of the edge.""" - node: AppOwnerGrant + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault } """ -A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppOwnerGrantFilter { +input AppMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + """Checks for all expressions in this list.""" - and: [AppOwnerGrantFilter!] + and: [AppMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppOwnerGrantFilter!] + or: [AppMembershipDefaultFilter!] """Negates the expression.""" - not: AppOwnerGrantFilter + not: AppMembershipDefaultFilter } -"""Methods to use when ordering `AppOwnerGrant`.""" -enum AppOwnerGrantOrderBy { +"""Methods to use when ordering `AppMembershipDefault`.""" +enum AppMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC } -"""A connection to a list of `OrgPermissionDefault` values.""" -type OrgPermissionDefaultConnection { - """A list of `OrgPermissionDefault` objects.""" - nodes: [OrgPermissionDefault]! +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! """ - A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. """ - edges: [OrgPermissionDefaultEdge]! + edges: [OrgMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgPermissionDefault` you could get from the connection. + The count of *all* `OrgMembershipDefault` you could get from the connection. """ totalCount: Int! } """ -Stores the default permission bitmask assigned to new members upon joining +Default membership settings per entity, controlling initial approval and verification state for new members """ -type OrgPermissionDefault { +type OrgMembershipDefault { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Default permission bitmask applied to new members""" - permissions: BitString! + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! - """References the entity these default permissions apply to""" + """References the entity these membership defaults apply to""" entityId: UUID! } -"""A `OrgPermissionDefault` edge in the connection.""" -type OrgPermissionDefaultEdge { +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgPermissionDefault` at the end of the edge.""" - node: OrgPermissionDefault + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault } """ -A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input OrgPermissionDefaultFilter { +input OrgMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultFilter!] + and: [OrgMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultFilter!] + or: [OrgMembershipDefaultFilter!] """Negates the expression.""" - not: OrgPermissionDefaultFilter + not: OrgMembershipDefaultFilter } -"""Methods to use when ordering `OrgPermissionDefault`.""" -enum OrgPermissionDefaultOrderBy { +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC ENTITY_ID_ASC ENTITY_ID_DESC } -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. """ - edges: [AppMembershipDefaultEdge]! + edges: [OrgClaimedInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppMembershipDefault` you could get from the connection. + The count of *all* `OrgClaimedInvite` you could get from the connection. """ totalCount: Int! } """ -Default membership settings per entity, controlling initial approval and verification state for new members +Records of successfully claimed invitations, linking senders to receivers """ -type AppMembershipDefault { +type OrgClaimedInvite { id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! } -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite } """ -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ -input AppMembershipDefaultFilter { +input OrgClaimedInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter + + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppMembershipDefaultFilter!] + and: [OrgClaimedInviteFilter!] """Checks for any expressions in this list.""" - or: [AppMembershipDefaultFilter!] + or: [OrgClaimedInviteFilter!] """Negates the expression.""" - not: AppMembershipDefaultFilter + not: OrgClaimedInviteFilter } -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum OrgClaimedInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + DATA_ASC + DATA_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `OrgAdminGrant` values.""" -type OrgAdminGrantConnection { - """A list of `OrgAdminGrant` objects.""" - nodes: [OrgAdminGrant]! +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! """ - A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. """ - edges: [OrgAdminGrantEdge]! + edges: [OrgGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgAdminGrant` you could get from the connection.""" + """The count of *all* `OrgGrant` you could get from the connection.""" totalCount: Int! } -"""Records of admin role grants and revocations between members""" -type OrgAdminGrant { +""" +Records of individual permission grants and revocations for members via bitmask +""" +type OrgGrant { id: UUID! - """True to grant admin, false to revoke admin""" + """Bitmask of permissions being granted or revoked""" + permissions: BitString! + + """True to grant the permissions, false to revoke them""" isGrant: Boolean! - """The member receiving or losing the admin grant""" + """The member receiving or losing the permission grant""" actorId: UUID! - """The entity (org or group) this admin grant applies to""" + """The entity (org or group) this permission grant applies to""" entityId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""A `OrgAdminGrant` edge in the connection.""" -type OrgAdminGrantEdge { +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgAdminGrant` at the end of the edge.""" - node: OrgAdminGrant + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant } """ -A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgAdminGrantFilter { +input OrgGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + """Filter by the object’s `isGrant` field.""" isGrant: BooleanFilter @@ -3086,22 +2840,24 @@ input OrgAdminGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgAdminGrantFilter!] + and: [OrgGrantFilter!] """Checks for any expressions in this list.""" - or: [OrgAdminGrantFilter!] + or: [OrgGrantFilter!] """Negates the expression.""" - not: OrgAdminGrantFilter + not: OrgGrantFilter } -"""Methods to use when ordering `OrgAdminGrant`.""" -enum OrgAdminGrantOrderBy { +"""Methods to use when ordering `OrgGrant`.""" +enum OrgGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC IS_GRANT_ASC IS_GRANT_DESC ACTOR_ID_ASC @@ -3116,55 +2872,62 @@ enum OrgAdminGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! +"""A connection to a list of `OrgChartEdge` values.""" +type OrgChartEdgeConnection { + """A list of `OrgChartEdge` objects.""" + nodes: [OrgChartEdge]! """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. """ - edges: [OrgMembershipDefaultEdge]! + edges: [OrgChartEdgeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ + """The count of *all* `OrgChartEdge` you could get from the connection.""" totalCount: Int! } """ -Default membership settings per entity, controlling initial approval and verification state for new members +Organizational chart edges defining parent-child reporting relationships between members within an entity """ -type OrgMembershipDefault { +type OrgChartEdge { id: UUID! createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """References the entity these membership defaults apply to""" + """Organization this hierarchy edge belongs to""" entityId: UUID! -} -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault -} + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int +} + +"""A `OrgChartEdge` edge in the connection.""" +type OrgChartEdgeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgChartEdge` at the end of the edge.""" + node: OrgChartEdge +} """ -A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipDefaultFilter { +A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ +""" +input OrgChartEdgeFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -3174,30 +2937,33 @@ input OrgMembershipDefaultFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `childId` field.""" + childId: UUIDFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter + + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] + and: [OrgChartEdgeFilter!] """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] + or: [OrgChartEdgeFilter!] """Negates the expression.""" - not: OrgMembershipDefaultFilter + not: OrgChartEdgeFilter } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { +"""Methods to use when ordering `OrgChartEdge`.""" +enum OrgChartEdgeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -3207,7822 +2973,2058 @@ enum OrgMembershipDefaultOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC ENTITY_ID_ASC ENTITY_ID_DESC + CHILD_ID_ASC + CHILD_ID_DESC + PARENT_ID_ASC + PARENT_ID_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC } -"""A connection to a list of `OrgOwnerGrant` values.""" -type OrgOwnerGrantConnection { - """A list of `OrgOwnerGrant` objects.""" - nodes: [OrgOwnerGrant]! +"""A connection to a list of `OrgMembershipSetting` values.""" +type OrgMembershipSettingConnection { + """A list of `OrgMembershipSetting` objects.""" + nodes: [OrgMembershipSetting]! """ - A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. """ - edges: [OrgOwnerGrantEdge]! + edges: [OrgMembershipSettingEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + """ + The count of *all* `OrgMembershipSetting` you could get from the connection. + """ totalCount: Int! } -"""Records of ownership transfers and grants between members""" -type OrgOwnerGrant { +"""Per-entity settings for the memberships module""" +type OrgMembershipSetting { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! + """References the entity these settings apply to""" + entityId: UUID! - """The member receiving or losing the ownership grant""" - actorId: UUID! + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean! - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean! + + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean! + + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean! + + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean! + + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String! + + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean! + + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String! } -"""A `OrgOwnerGrant` edge in the connection.""" -type OrgOwnerGrantEdge { +"""A `OrgMembershipSetting` edge in the connection.""" +type OrgMembershipSettingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgOwnerGrant` at the end of the edge.""" - node: OrgOwnerGrant + """The `OrgMembershipSetting` at the end of the edge.""" + node: OrgMembershipSetting } """ -A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ """ -input OrgOwnerGrantFilter { +input OrgMembershipSettingFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Filter by the object’s `deleteMemberCascadeChildren` field.""" + deleteMemberCascadeChildren: BooleanFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `createChildCascadeOwners` field.""" + createChildCascadeOwners: BooleanFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `createChildCascadeAdmins` field.""" + createChildCascadeAdmins: BooleanFilter + + """Filter by the object’s `createChildCascadeMembers` field.""" + createChildCascadeMembers: BooleanFilter + + """Filter by the object’s `allowExternalMembers` field.""" + allowExternalMembers: BooleanFilter + + """Filter by the object’s `inviteProfileAssignmentMode` field.""" + inviteProfileAssignmentMode: StringFilter + + """Filter by the object’s `populateMemberEmail` field.""" + populateMemberEmail: BooleanFilter + + """Filter by the object’s `limitAllocationMode` field.""" + limitAllocationMode: StringFilter """Checks for all expressions in this list.""" - and: [OrgOwnerGrantFilter!] + and: [OrgMembershipSettingFilter!] """Checks for any expressions in this list.""" - or: [OrgOwnerGrantFilter!] + or: [OrgMembershipSettingFilter!] """Negates the expression.""" - not: OrgOwnerGrantFilter + not: OrgMembershipSettingFilter } -"""Methods to use when ordering `OrgOwnerGrant`.""" -enum OrgOwnerGrantOrderBy { +"""Methods to use when ordering `OrgMembershipSetting`.""" +enum OrgMembershipSettingOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + DELETE_MEMBER_CASCADE_CHILDREN_ASC + DELETE_MEMBER_CASCADE_CHILDREN_DESC + CREATE_CHILD_CASCADE_OWNERS_ASC + CREATE_CHILD_CASCADE_OWNERS_DESC + CREATE_CHILD_CASCADE_ADMINS_ASC + CREATE_CHILD_CASCADE_ADMINS_DESC + CREATE_CHILD_CASCADE_MEMBERS_ASC + CREATE_CHILD_CASCADE_MEMBERS_DESC + ALLOW_EXTERNAL_MEMBERS_ASC + ALLOW_EXTERNAL_MEMBERS_DESC + INVITE_PROFILE_ASSIGNMENT_MODE_ASC + INVITE_PROFILE_ASSIGNMENT_MODE_DESC + POPULATE_MEMBER_EMAIL_ASC + POPULATE_MEMBER_EMAIL_DESC + LIMIT_ALLOCATION_MODE_ASC + LIMIT_ALLOCATION_MODE_DESC } -"""A connection to a list of `AppLimitCapsDefault` values.""" -type AppLimitCapsDefaultConnection { - """A list of `AppLimitCapsDefault` objects.""" - nodes: [AppLimitCapsDefault]! +"""A connection to a list of `AppMembership` values.""" +type AppMembershipConnection { + """A list of `AppMembership` objects.""" + nodes: [AppMembership]! """ - A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. + A list of edges which contains the `AppMembership` and cursor to aid in pagination. """ - edges: [AppLimitCapsDefaultEdge]! + edges: [AppMembershipEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppLimitCapsDefault` you could get from the connection. - """ + """The count of *all* `AppMembership` you could get from the connection.""" totalCount: Int! } """ -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status """ -type AppLimitCapsDefault { +type AppMembership { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! + """Whether this membership has been approved by an admin""" + isApproved: Boolean! - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! -} + """Whether this member has been banned from the entity""" + isBanned: Boolean! -"""A `AppLimitCapsDefault` edge in the connection.""" -type AppLimitCapsDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCapsDefault` at the end of the edge.""" - node: AppLimitCapsDefault -} - -""" -A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCapsDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCapsDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCapsDefaultFilter!] - - """Negates the expression.""" - not: AppLimitCapsDefaultFilter -} - -"""Methods to use when ordering `AppLimitCapsDefault`.""" -enum AppLimitCapsDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC -} + """Whether this membership is temporarily disabled""" + isDisabled: Boolean! -"""A connection to a list of `OrgLimitCapsDefault` values.""" -type OrgLimitCapsDefaultConnection { - """A list of `OrgLimitCapsDefault` objects.""" - nodes: [OrgLimitCapsDefault]! + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean! """ - A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - edges: [OrgLimitCapsDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + isActive: Boolean! - """ - The count of *all* `OrgLimitCapsDefault` you could get from the connection. - """ - totalCount: Int! -} + """Whether the actor is the owner of this entity""" + isOwner: Boolean! -""" -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. -""" -type OrgLimitCapsDefault { - id: UUID! + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean! """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + Aggregated permission bitmask combining profile-based and directly granted permissions """ - name: String! + permissions: BitString! """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + Bitmask of permissions directly granted to this member (not from profiles) """ - max: BigInt! + granted: BitString! + + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID } -"""A `OrgLimitCapsDefault` edge in the connection.""" -type OrgLimitCapsDefaultEdge { +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitCapsDefault` at the end of the edge.""" - node: OrgLimitCapsDefault + """The `AppMembership` at the end of the edge.""" + node: AppMembership } """ -A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitCapsDefaultFilter { +input AppMembershipFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCapsDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCapsDefaultFilter!] - - """Negates the expression.""" - not: OrgLimitCapsDefaultFilter -} - -"""Methods to use when ordering `OrgLimitCapsDefault`.""" -enum OrgLimitCapsDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC -} + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter -"""A connection to a list of `AppLimitCap` values.""" -type AppLimitCapConnection { - """A list of `AppLimitCap` objects.""" - nodes: [AppLimitCap]! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. - """ - edges: [AppLimitCapEdge]! + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """The count of *all* `AppLimitCap` you could get from the connection.""" - totalCount: Int! -} + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type AppLimitCap { - id: UUID! + """Filter by the object’s `isBanned` field.""" + isBanned: BooleanFilter - """Name identifier of the cap being overridden""" - name: String! + """Filter by the object’s `isDisabled` field.""" + isDisabled: BooleanFilter - """Entity this cap override applies to""" - entityId: UUID! + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter - """Override cap value for this entity""" - max: BigInt! -} + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter -"""A `AppLimitCap` edge in the connection.""" -type AppLimitCapEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter - """The `AppLimitCap` at the end of the edge.""" - node: AppLimitCap -} + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter -""" -A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCapFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `granted` field.""" + granted: BitStringFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppLimitCapFilter!] + and: [AppMembershipFilter!] """Checks for any expressions in this list.""" - or: [AppLimitCapFilter!] + or: [AppMembershipFilter!] """Negates the expression.""" - not: AppLimitCapFilter + not: AppMembershipFilter } -"""Methods to use when ordering `AppLimitCap`.""" -enum AppLimitCapOrderBy { +"""Methods to use when ordering `AppMembership`.""" +enum AppMembershipOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + GRANTED_ASC + GRANTED_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC } -"""A connection to a list of `OrgLimitCap` values.""" -type OrgLimitCapConnection { - """A list of `OrgLimitCap` objects.""" - nodes: [OrgLimitCap]! +"""A connection to a list of `AppInvite` values.""" +type AppInviteConnection { + """A list of `AppInvite` objects.""" + nodes: [AppInvite]! """ - A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. + A list of edges which contains the `AppInvite` and cursor to aid in pagination. """ - edges: [OrgLimitCapEdge]! + edges: [AppInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimitCap` you could get from the connection.""" + """The count of *all* `AppInvite` you could get from the connection.""" totalCount: Int! } """ -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +Invitation records sent to prospective members via email, with token-based redemption and expiration """ -type OrgLimitCap { +type AppInvite { id: UUID! - """Name identifier of the cap being overridden""" - name: String! + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """Entity this cap override applies to""" - entityId: UUID! + """User ID of the member who sent this invitation""" + senderId: UUID! + + """Unique random hex token used to redeem this invitation""" + inviteToken: String! - """Override cap value for this entity""" - max: BigInt! + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean! + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int! + + """Running count of how many times this invite has been claimed""" + inviteCount: Int! + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean! + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime } -"""A `OrgLimitCap` edge in the connection.""" -type OrgLimitCapEdge { +scalar ConstructiveInternalTypeEmail + +"""A `AppInvite` edge in the connection.""" +type AppInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitCap` at the end of the edge.""" - node: OrgLimitCap + """The `AppInvite` at the end of the edge.""" + node: AppInvite } """ -A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitCapFilter { +input AppInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `email` field.""" + email: ConstructiveInternalTypeEmailFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `inviteToken` field.""" + inviteToken: StringFilter - """Checks for all expressions in this list.""" - and: [OrgLimitCapFilter!] + """Filter by the object’s `inviteValid` field.""" + inviteValid: BooleanFilter - """Checks for any expressions in this list.""" - or: [OrgLimitCapFilter!] + """Filter by the object’s `inviteLimit` field.""" + inviteLimit: IntFilter - """Negates the expression.""" - not: OrgLimitCapFilter -} + """Filter by the object’s `inviteCount` field.""" + inviteCount: IntFilter -"""Methods to use when ordering `OrgLimitCap`.""" -enum OrgLimitCapOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC -} + """Filter by the object’s `multiple` field.""" + multiple: BooleanFilter -"""A connection to a list of `OrgChartEdge` values.""" -type OrgChartEdgeConnection { - """A list of `OrgChartEdge` objects.""" - nodes: [OrgChartEdge]! + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter - """ - A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. - """ - edges: [OrgChartEdgeEdge]! + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """The count of *all* `OrgChartEdge` you could get from the connection.""" - totalCount: Int! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AppInviteFilter!] + + """Checks for any expressions in this list.""" + or: [AppInviteFilter!] + + """Negates the expression.""" + not: AppInviteFilter } """ -Organizational chart edges defining parent-child reporting relationships between members within an entity +A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ """ -type OrgChartEdge { - id: UUID! - createdAt: Datetime - updatedAt: Datetime +input ConstructiveInternalTypeEmailFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Organization this hierarchy edge belongs to""" - entityId: UUID! + """Equal to the specified value.""" + equalTo: String - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! + """Not equal to the specified value.""" + notEqualTo: String """ - User ID of the manager; NULL indicates a top-level position with no direct report + Not equal to the specified value, treating null like an ordinary value. """ - parentId: UUID + distinctFrom: String - """Job title or role name for this position in the org chart""" - positionTitle: String + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int -} + """Included in the specified list.""" + in: [String!] -"""A `OrgChartEdge` edge in the connection.""" -type OrgChartEdgeEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Not included in the specified list.""" + notIn: [String!] - """The `OrgChartEdge` at the end of the edge.""" - node: OrgChartEdge -} + """Less than the specified value.""" + lessThan: String -""" -A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Greater than the specified value.""" + greaterThan: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Contains the specified string (case-sensitive).""" + includes: String - """Filter by the object’s `childId` field.""" - childId: UUIDFilter + """Does not contain the specified string (case-sensitive).""" + notIncludes: String - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeEmail - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter + """Starts with the specified string (case-sensitive).""" + startsWith: String - """Checks for all expressions in this list.""" - and: [OrgChartEdgeFilter!] + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String - """Checks for any expressions in this list.""" - or: [OrgChartEdgeFilter!] + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeEmail - """Negates the expression.""" - not: OrgChartEdgeFilter -} + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeEmail -"""Methods to use when ordering `OrgChartEdge`.""" -enum OrgChartEdgeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC -} + """Ends with the specified string (case-sensitive).""" + endsWith: String + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String -"""A connection to a list of `AppLimitDefault` values.""" -type AppLimitDefaultConnection { - """A list of `AppLimitDefault` objects.""" - nodes: [AppLimitDefault]! + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: ConstructiveInternalTypeEmail + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeEmail """ - A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - edges: [AppLimitDefaultEdge]! + like: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + 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 """ - The count of *all* `AppLimitDefault` you could get from the connection. + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - totalCount: Int! -} + likeInsensitive: ConstructiveInternalTypeEmail -"""A `AppLimitDefault` edge in the connection.""" -type AppLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: ConstructiveInternalTypeEmail + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: ConstructiveInternalTypeEmail + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: ConstructiveInternalTypeEmail + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: ConstructiveInternalTypeEmail + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: ConstructiveInternalTypeEmail + + """Included in the specified list (case-insensitive).""" + inInsensitive: [ConstructiveInternalTypeEmail!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [ConstructiveInternalTypeEmail!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: ConstructiveInternalTypeEmail + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: ConstructiveInternalTypeEmail - """The `AppLimitDefault` at the end of the edge.""" - node: AppLimitDefault + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail } -"""Methods to use when ordering `AppLimitDefault`.""" -enum AppLimitDefaultOrderBy { +"""Methods to use when ordering `AppInvite`.""" +enum AppInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC + EMAIL_ASC + EMAIL_DESC + SENDER_ID_ASC + SENDER_ID_DESC + INVITE_TOKEN_ASC + INVITE_TOKEN_DESC + INVITE_VALID_ASC + INVITE_VALID_DESC + INVITE_LIMIT_ASC + INVITE_LIMIT_DESC + INVITE_COUNT_ASC + INVITE_COUNT_DESC + MULTIPLE_ASC + MULTIPLE_DESC + DATA_ASC + DATA_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `OrgLimitDefault` values.""" -type OrgLimitDefaultConnection { - """A list of `OrgLimitDefault` objects.""" - nodes: [OrgLimitDefault]! +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! """ - A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. """ - edges: [OrgLimitDefaultEdge]! + edges: [OrgMembershipEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgLimitDefault` you could get from the connection. - """ + """The count of *all* `OrgMembership` you could get from the connection.""" totalCount: Int! } """ -Default maximum values for each named limit, applied when no per-actor override exists +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status """ -type OrgLimitDefault { +type OrgMembership { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Name identifier of the limit this default applies to""" - name: String! + """Whether this membership has been approved by an admin""" + isApproved: Boolean! - """Default maximum usage allowed for this limit""" - max: BigInt + """Whether this member has been banned from the entity""" + isBanned: Boolean! - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Whether this membership is temporarily disabled""" + isDisabled: Boolean! - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCreditsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean! - """Only read the last `n` values of the set.""" - last: Int + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Whether the actor is the owner of this entity""" + isOwner: Boolean! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean! - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitCreditFilter + """ + Bitmask of permissions directly granted to this member (not from profiles) + """ + granted: BitString! - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection! -} + """References the user who holds this membership""" + actorId: UUID! + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! -"""A connection to a list of `OrgLimitCredit` values.""" -type OrgLimitCreditConnection { - """A list of `OrgLimitCredit` objects.""" - nodes: [OrgLimitCredit]! + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean! + profileId: UUID """ - A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. + Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. """ - edges: [OrgLimitCreditEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitCredit` you could get from the connection.""" - totalCount: Int! + orgMemberProfileByMembershipId: OrgMemberProfile } """ -Append-only ledger of credit grants that automatically update limit ceilings +Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) """ -type OrgLimitCredit { +type OrgMemberProfile { id: UUID! + createdAt: Datetime + updatedAt: Datetime - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! + """Display name shown to other entity members""" + displayName: String """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Email address visible to other entity members (auto-populated from verified primary email) """ - creditType: String! + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage """ - Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. + Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. """ - defaultLimit: OrgLimitDefault + membership: OrgMembership } -"""A `OrgLimitCredit` edge in the connection.""" -type OrgLimitCreditEdge { +scalar ConstructiveInternalTypeImage + +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitCredit` at the end of the edge.""" - node: OrgLimitCredit + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership } """ -A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitCreditFilter { +input OrgMembershipFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filter by the object’s `amount` field.""" - amount: BigIntFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Filter by the object’s `creditType` field.""" - creditType: StringFilter + """Filter by the object’s `isBanned` field.""" + isBanned: BooleanFilter - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `isDisabled` field.""" + isDisabled: BooleanFilter - """Checks for all expressions in this list.""" - and: [OrgLimitCreditFilter!] + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Checks for any expressions in this list.""" - or: [OrgLimitCreditFilter!] + """Filter by the object’s `isExternal` field.""" + isExternal: BooleanFilter - """Negates the expression.""" - not: OrgLimitCreditFilter + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: OrgLimitDefaultFilter -} + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter -""" -A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `granted` field.""" + granted: BitStringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgLimitDefaultFilter!] + and: [OrgMembershipFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitDefaultFilter!] + or: [OrgMembershipFilter!] """Negates the expression.""" - not: OrgLimitDefaultFilter + not: OrgMembershipFilter - """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" - orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter + """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" + orgMemberProfileByMembershipId: OrgMemberProfileFilter - """`orgLimitCreditsByDefaultLimitId` exist.""" - orgLimitCreditsByDefaultLimitIdExist: Boolean + """A related `orgMemberProfileByMembershipId` exists.""" + orgMemberProfileByMembershipIdExists: Boolean } """ -A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitDefaultToManyOrgLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitCreditFilter +input OrgMemberProfileFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filters to entities where no related entity matches.""" - none: OrgLimitCreditFilter -} + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter -"""Methods to use when ordering `OrgLimitCredit`.""" -enum OrgLimitCreditOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - REASON_ASC - REASON_DESC -} + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter -"""A `OrgLimitDefault` edge in the connection.""" -type OrgLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `membershipId` field.""" + membershipId: UUIDFilter - """The `OrgLimitDefault` at the end of the edge.""" - node: OrgLimitDefault -} + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter -"""Methods to use when ordering `OrgLimitDefault`.""" -enum OrgLimitDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC -} + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter -""" -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `displayName` field.""" + displayName: StringFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `email` field.""" + email: StringFilter - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Filter by the object’s `title` field.""" + title: StringFilter - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """Filter by the object’s `bio` field.""" + bio: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `profilePicture` field.""" + profilePicture: ConstructiveInternalTypeImageFilter """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] + and: [OrgMemberProfileFilter!] """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] + or: [OrgMemberProfileFilter!] """Negates the expression.""" - not: AppPermissionFilter -} + not: OrgMemberProfileFilter -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + """Filter by the object’s `membership` relation.""" + membership: OrgMembershipFilter } """ -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ """ -input OrgPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +input ConstructiveInternalTypeImageFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Filter by the object’s `name` field.""" - name: StringFilter + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeImage - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeImage - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeImage - """Filter by the object’s `description` field.""" - description: StringFilter + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeImage - """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] + """Included in the specified list.""" + in: [ConstructiveInternalTypeImage!] - """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeImage!] - """Negates the expression.""" - not: OrgPermissionFilter + """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 `OrgPermission`.""" -enum OrgPermissionOrderBy { +"""Methods to use when ordering `OrgMembership`.""" +enum OrgMembershipOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_EXTERNAL_ASC + IS_EXTERNAL_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + GRANTED_ASC + GRANTED_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC } -"""A connection to a list of `AppLimitCreditCode` values.""" -type AppLimitCreditCodeConnection { - """A list of `AppLimitCreditCode` objects.""" - nodes: [AppLimitCreditCode]! +"""A connection to a list of `OrgMemberProfile` values.""" +type OrgMemberProfileConnection { + """A list of `OrgMemberProfile` objects.""" + nodes: [OrgMemberProfile]! """ - A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. + A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. """ - edges: [AppLimitCreditCodeEdge]! + edges: [OrgMemberProfileEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppLimitCreditCode` you could get from the connection. + The count of *all* `OrgMemberProfile` you could get from the connection. """ totalCount: Int! } -"""A `AppLimitCreditCode` edge in the connection.""" -type AppLimitCreditCodeEdge { +"""A `OrgMemberProfile` edge in the connection.""" +type OrgMemberProfileEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCreditCode` at the end of the edge.""" - node: AppLimitCreditCode + """The `OrgMemberProfile` at the end of the edge.""" + node: OrgMemberProfile } -"""Methods to use when ordering `AppLimitCreditCode`.""" -enum AppLimitCreditCodeOrderBy { +"""Methods to use when ordering `OrgMemberProfile`.""" +enum OrgMemberProfileOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CODE_ASC - CODE_DESC - MAX_REDEMPTIONS_ASC - MAX_REDEMPTIONS_DESC - CURRENT_REDEMPTIONS_ASC - CURRENT_REDEMPTIONS_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + MEMBERSHIP_ID_ASC + MEMBERSHIP_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + EMAIL_ASC + EMAIL_DESC + TITLE_ASC + TITLE_DESC + BIO_ASC + BIO_DESC + PROFILE_PICTURE_ASC + PROFILE_PICTURE_DESC } -"""A connection to a list of `AppLimitWarning` values.""" -type AppLimitWarningConnection { - """A list of `AppLimitWarning` objects.""" - nodes: [AppLimitWarning]! +"""A connection to a list of `OrgInvite` values.""" +type OrgInviteConnection { + """A list of `OrgInvite` objects.""" + nodes: [OrgInvite]! """ - A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. + A list of edges which contains the `OrgInvite` and cursor to aid in pagination. """ - edges: [AppLimitWarningEdge]! + edges: [OrgInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppLimitWarning` you could get from the connection. - """ + """The count of *all* `OrgInvite` you could get from the connection.""" totalCount: Int! } """ -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +Invitation records sent to prospective members via email, with token-based redemption and expiration """ -type AppLimitWarning { +type OrgInvite { id: UUID! - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID! + + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String! + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean! + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int! + + """Running count of how many times this invite has been claimed""" + inviteCount: Int! - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean! + + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - thresholdValue: BigInt! + profileId: UUID """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Whether the resulting membership should be read-only when this invite is claimed """ - taskIdentifier: String! + isReadOnly: Boolean! + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! } -"""A `AppLimitWarning` edge in the connection.""" -type AppLimitWarningEdge { +"""A `OrgInvite` edge in the connection.""" +type OrgInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitWarning` at the end of the edge.""" - node: AppLimitWarning + """The `OrgInvite` at the end of the edge.""" + node: OrgInvite } """ -A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitWarningFilter { +input OrgInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `email` field.""" + email: ConstructiveInternalTypeEmailFilter + + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter + + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter + + """Filter by the object’s `inviteToken` field.""" + inviteToken: StringFilter + + """Filter by the object’s `inviteValid` field.""" + inviteValid: BooleanFilter + + """Filter by the object’s `inviteLimit` field.""" + inviteLimit: IntFilter + + """Filter by the object’s `inviteCount` field.""" + inviteCount: IntFilter + + """Filter by the object’s `multiple` field.""" + multiple: BooleanFilter + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter - """Filter by the object’s `warningType` field.""" - warningType: StringFilter + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppLimitWarningFilter!] + and: [OrgInviteFilter!] """Checks for any expressions in this list.""" - or: [AppLimitWarningFilter!] + or: [OrgInviteFilter!] """Negates the expression.""" - not: AppLimitWarningFilter + not: OrgInviteFilter } -"""Methods to use when ordering `AppLimitWarning`.""" -enum AppLimitWarningOrderBy { +"""Methods to use when ordering `OrgInvite`.""" +enum OrgInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC + EMAIL_ASC + EMAIL_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + INVITE_TOKEN_ASC + INVITE_TOKEN_DESC + INVITE_VALID_ASC + INVITE_VALID_DESC + INVITE_LIMIT_ASC + INVITE_LIMIT_DESC + INVITE_COUNT_ASC + INVITE_COUNT_DESC + MULTIPLE_ASC + MULTIPLE_DESC + DATA_ASC + DATA_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `OrgChartEdgeGrant` values.""" -type OrgChartEdgeGrantConnection { - """A list of `OrgChartEdgeGrant` objects.""" - nodes: [OrgChartEdgeGrant]! +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} - """ - A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. - """ - edges: [OrgChartEdgeGrantEdge]! +"""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! +} - """Information to aid in pagination.""" - pageInfo: PageInfo! +"""Information about a table field/column""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! + isPrimaryKey: Boolean! + isForeignKey: Boolean! + description: String +} - """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. - """ - totalCount: Int! +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean + subtype: String } -""" -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table -""" -type OrgChartEdgeGrant { - id: UUID! +"""Information about a database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} - """Organization this grant applies to""" - entityId: UUID! +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean! +"""Reference to a related table""" +type MetaRefTable { + name: String! +} - """Job title or role name being assigned in this grant""" - positionTitle: String +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} - """Numeric seniority level being assigned in this grant""" - positionLevel: Int +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime! +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! } -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""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! +} - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant +"""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 } """ -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ +The root mutation type which contains root level fields which mutate data. """ -input OrgChartEdgeGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +type Mutation { + submitAppInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitAppInviteCodeInput! + ): SubmitAppInviteCodePayload + submitOrgInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitOrgInviteCodeInput! + ): SubmitOrgInviteCodePayload - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Creates a single `OrgMember`.""" + createOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberInput! + ): CreateOrgMemberPayload - """Filter by the object’s `childId` field.""" - childId: UUIDFilter + """Creates a single `AppPermissionDefault`.""" + createAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionDefaultInput! + ): CreateAppPermissionDefaultPayload - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter + """Creates a single `OrgPermissionDefault`.""" + createOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionDefaultInput! + ): CreateOrgPermissionDefaultPayload - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Creates a single `AppAdminGrant`.""" + createAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppAdminGrantInput! + ): CreateAppAdminGrantPayload - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Creates a single `AppOwnerGrant`.""" + createAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppOwnerGrantInput! + ): CreateAppOwnerGrantPayload - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter + """Creates a single `OrgAdminGrant`.""" + createOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgAdminGrantInput! + ): CreateOrgAdminGrantPayload - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter + """Creates a single `OrgOwnerGrant`.""" + createOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgOwnerGrantInput! + ): CreateOrgOwnerGrantPayload - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Creates a single `AppPermission`.""" + createAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload - """Checks for all expressions in this list.""" - and: [OrgChartEdgeGrantFilter!] - - """Checks for any expressions in this list.""" - or: [OrgChartEdgeGrantFilter!] - - """Negates the expression.""" - not: OrgChartEdgeGrantFilter -} - -"""Methods to use when ordering `OrgChartEdgeGrant`.""" -enum OrgChartEdgeGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} - -"""A connection to a list of `AppClaimedInvite` values.""" -type AppClaimedInviteConnection { - """A list of `AppClaimedInvite` objects.""" - nodes: [AppClaimedInvite]! - - """ - A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. - """ - edges: [AppClaimedInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppClaimedInvite` you could get from the connection. - """ - totalCount: Int! -} - -""" -Records of successfully claimed invitations, linking senders to receivers -""" -type AppClaimedInvite { - id: UUID! - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON - -"""A `AppClaimedInvite` edge in the connection.""" -type AppClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppClaimedInvite` at the end of the edge.""" - node: AppClaimedInvite -} - -""" -A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input AppClaimedInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppClaimedInviteFilter!] - - """Checks for any expressions in this list.""" - or: [AppClaimedInviteFilter!] - - """Negates the expression.""" - not: AppClaimedInviteFilter -} - -"""Methods to use when ordering `AppClaimedInvite`.""" -enum AppClaimedInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgLimitWarning` values.""" -type OrgLimitWarningConnection { - """A list of `OrgLimitWarning` objects.""" - nodes: [OrgLimitWarning]! - - """ - A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. - """ - edges: [OrgLimitWarningEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitWarning` you could get from the connection. - """ - totalCount: Int! -} - -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type OrgLimitWarning { - id: UUID! - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID -} - -"""A `OrgLimitWarning` edge in the connection.""" -type OrgLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitWarning` at the end of the edge.""" - node: OrgLimitWarning -} - -""" -A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitWarningFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `warningType` field.""" - warningType: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitWarningFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitWarningFilter!] - - """Negates the expression.""" - not: OrgLimitWarningFilter -} - -"""Methods to use when ordering `OrgLimitWarning`.""" -enum OrgLimitWarningOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! - - """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. - """ - edges: [MembershipTypeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `MembershipType` you could get from the connection.""" - totalCount: Int! -} - -""" -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) -""" -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean! -} - -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MembershipType` at the end of the edge.""" - node: MembershipType -} - -""" -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ -""" -input MembershipTypeFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter - - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter - - """Checks for all expressions in this list.""" - and: [MembershipTypeFilter!] - - """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] - - """Negates the expression.""" - not: MembershipTypeFilter -} - -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PREFIX_ASC - PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC -} - -"""A connection to a list of `AppGrant` values.""" -type AppGrantConnection { - """A list of `AppGrant` objects.""" - nodes: [AppGrant]! - - """ - A list of edges which contains the `AppGrant` and cursor to aid in pagination. - """ - edges: [AppGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppGrant` you could get from the connection.""" - totalCount: Int! -} - -""" -Records of individual permission grants and revocations for members via bitmask -""" -type AppGrant { - id: UUID! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""A `AppGrant` edge in the connection.""" -type AppGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppGrant` at the end of the edge.""" - node: AppGrant -} - -""" -A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppGrantFilter!] - - """Checks for any expressions in this list.""" - or: [AppGrantFilter!] - - """Negates the expression.""" - not: AppGrantFilter -} - -"""Methods to use when ordering `AppGrant`.""" -enum AppGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! - - """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. - """ - edges: [OrgClaimedInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgClaimedInvite` you could get from the connection. - """ - totalCount: Int! -} - -""" -Records of successfully claimed invitations, linking senders to receivers -""" -type OrgClaimedInvite { - id: UUID! - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! -} - -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite -} - -""" -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input OrgClaimedInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] - - """Checks for any expressions in this list.""" - or: [OrgClaimedInviteFilter!] - - """Negates the expression.""" - not: OrgClaimedInviteFilter -} - -"""Methods to use when ordering `OrgClaimedInvite`.""" -enum OrgClaimedInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `OrgGrant` values.""" -type OrgGrantConnection { - """A list of `OrgGrant` objects.""" - nodes: [OrgGrant]! - - """ - A list of edges which contains the `OrgGrant` and cursor to aid in pagination. - """ - edges: [OrgGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgGrant` you could get from the connection.""" - totalCount: Int! -} - -""" -Records of individual permission grants and revocations for members via bitmask -""" -type OrgGrant { - id: UUID! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! - - """The member receiving or losing the permission grant""" - actorId: UUID! - - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant -} - -""" -A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [OrgGrantFilter!] - - """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] - - """Negates the expression.""" - not: OrgGrantFilter -} - -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! - - """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. - """ - edges: [OrgMembershipSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipSetting` you could get from the connection. - """ - totalCount: Int! -} - -"""Per-entity settings for the memberships module""" -type OrgMembershipSetting { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean! - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean! - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean! - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean! - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean! - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String! - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean! - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String! -} - -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting -} - -""" -A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipSettingFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `deleteMemberCascadeChildren` field.""" - deleteMemberCascadeChildren: BooleanFilter - - """Filter by the object’s `createChildCascadeOwners` field.""" - createChildCascadeOwners: BooleanFilter - - """Filter by the object’s `createChildCascadeAdmins` field.""" - createChildCascadeAdmins: BooleanFilter - - """Filter by the object’s `createChildCascadeMembers` field.""" - createChildCascadeMembers: BooleanFilter - - """Filter by the object’s `allowExternalMembers` field.""" - allowExternalMembers: BooleanFilter - - """Filter by the object’s `inviteProfileAssignmentMode` field.""" - inviteProfileAssignmentMode: StringFilter - - """Filter by the object’s `populateMemberEmail` field.""" - populateMemberEmail: BooleanFilter - - """Filter by the object’s `limitAllocationMode` field.""" - limitAllocationMode: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgMembershipSettingFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMembershipSettingFilter!] - - """Negates the expression.""" - not: OrgMembershipSettingFilter -} - -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - DELETE_MEMBER_CASCADE_CHILDREN_ASC - DELETE_MEMBER_CASCADE_CHILDREN_DESC - CREATE_CHILD_CASCADE_OWNERS_ASC - CREATE_CHILD_CASCADE_OWNERS_DESC - CREATE_CHILD_CASCADE_ADMINS_ASC - CREATE_CHILD_CASCADE_ADMINS_DESC - CREATE_CHILD_CASCADE_MEMBERS_ASC - CREATE_CHILD_CASCADE_MEMBERS_DESC - ALLOW_EXTERNAL_MEMBERS_ASC - ALLOW_EXTERNAL_MEMBERS_DESC - INVITE_PROFILE_ASSIGNMENT_MODE_ASC - INVITE_PROFILE_ASSIGNMENT_MODE_DESC - POPULATE_MEMBER_EMAIL_ASC - POPULATE_MEMBER_EMAIL_DESC - LIMIT_ALLOCATION_MODE_ASC - LIMIT_ALLOCATION_MODE_DESC -} - -"""A connection to a list of `AppLimitEvent` values.""" -type AppLimitEventConnection { - """A list of `AppLimitEvent` objects.""" - nodes: [AppLimitEvent]! - - """ - A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. - """ - edges: [AppLimitEventEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimitEvent` you could get from the connection.""" - totalCount: Int! -} - -"""Append-only log of limit events for historical reporting and audit""" -type AppLimitEvent { - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""A `AppLimitEvent` edge in the connection.""" -type AppLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitEvent` at the end of the edge.""" - node: AppLimitEvent -} - -""" -A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitEventFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitEventFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitEventFilter!] - - """Negates the expression.""" - not: AppLimitEventFilter -} - -"""Methods to use when ordering `AppLimitEvent`.""" -enum AppLimitEventOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC -} - -"""A connection to a list of `OrgLimitEvent` values.""" -type OrgLimitEventConnection { - """A list of `OrgLimitEvent` objects.""" - nodes: [OrgLimitEvent]! - - """ - A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. - """ - edges: [OrgLimitEventEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitEvent` you could get from the connection.""" - totalCount: Int! -} - -"""Append-only log of limit events for historical reporting and audit""" -type OrgLimitEvent { - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""A `OrgLimitEvent` edge in the connection.""" -type OrgLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitEvent` at the end of the edge.""" - node: OrgLimitEvent -} - -""" -A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitEventFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitEventFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitEventFilter!] - - """Negates the expression.""" - not: OrgLimitEventFilter -} - -"""Methods to use when ordering `OrgLimitEvent`.""" -enum OrgLimitEventOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC -} - -"""A connection to a list of `AppMembership` values.""" -type AppMembershipConnection { - """A list of `AppMembership` objects.""" - nodes: [AppMembership]! - - """ - A list of edges which contains the `AppMembership` and cursor to aid in pagination. - """ - edges: [AppMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppMembership` you could get from the connection.""" - totalCount: Int! -} - -""" -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status -""" -type AppMembership { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean! - - """Whether this member has been banned from the entity""" - isBanned: Boolean! - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean! - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean! - - """Whether the actor is the owner of this entity""" - isOwner: Boolean! - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString! - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString! - - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID -} - -"""A `AppMembership` edge in the connection.""" -type AppMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppMembership` at the end of the edge.""" - node: AppMembership -} - -""" -A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ -""" -input AppMembershipFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter - - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `granted` field.""" - granted: BitStringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [AppMembershipFilter!] - - """Checks for any expressions in this list.""" - or: [AppMembershipFilter!] - - """Negates the expression.""" - not: AppMembershipFilter -} - -"""Methods to use when ordering `AppMembership`.""" -enum AppMembershipOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} - -"""A connection to a list of `OrgMembership` values.""" -type OrgMembershipConnection { - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! - - """ - A list of edges which contains the `OrgMembership` and cursor to aid in pagination. - """ - edges: [OrgMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgMembership` you could get from the connection.""" - totalCount: Int! -} - -""" -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status -""" -type OrgMembership { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean! - - """Whether this member has been banned from the entity""" - isBanned: Boolean! - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean! - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean! - - """Whether the actor is the owner of this entity""" - isOwner: Boolean! - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString! - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString! - - """References the user who holds this membership""" - actorId: UUID! - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean! - profileId: UUID - - """ - Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. - """ - orgMemberProfileByMembershipId: OrgMemberProfile -} - -""" -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) -""" -type OrgMemberProfile { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """ - Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. - """ - membership: OrgMembership -} - -scalar ConstructiveInternalTypeImage - -"""A `OrgMembership` edge in the connection.""" -type OrgMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembership` at the end of the edge.""" - node: OrgMembership -} - -""" -A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter - - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter - - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `granted` field.""" - granted: BitStringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgMembershipFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMembershipFilter!] - - """Negates the expression.""" - not: OrgMembershipFilter - - """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" - orgMemberProfileByMembershipId: OrgMemberProfileFilter - - """A related `orgMemberProfileByMembershipId` exists.""" - orgMemberProfileByMembershipIdExists: Boolean -} - -""" -A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMemberProfileFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `email` field.""" - email: StringFilter - - """Filter by the object’s `title` field.""" - title: StringFilter - - """Filter by the object’s `bio` field.""" - bio: StringFilter - - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter - - """Checks for all expressions in this list.""" - and: [OrgMemberProfileFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMemberProfileFilter!] - - """Negates the expression.""" - not: OrgMemberProfileFilter - - """Filter by the object’s `membership` relation.""" - membership: OrgMembershipFilter -} - -""" -A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeImageFilter { - """ - 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 `OrgMembership`.""" -enum OrgMembershipOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_EXTERNAL_ASC - IS_EXTERNAL_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} - -"""A connection to a list of `OrgMemberProfile` values.""" -type OrgMemberProfileConnection { - """A list of `OrgMemberProfile` objects.""" - nodes: [OrgMemberProfile]! - - """ - A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. - """ - edges: [OrgMemberProfileEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMemberProfile` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMemberProfile` edge in the connection.""" -type OrgMemberProfileEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMemberProfile` at the end of the edge.""" - node: OrgMemberProfile -} - -"""Methods to use when ordering `OrgMemberProfile`.""" -enum OrgMemberProfileOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - EMAIL_ASC - EMAIL_DESC - TITLE_ASC - TITLE_DESC - BIO_ASC - BIO_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC -} - -"""A connection to a list of `AppInvite` values.""" -type AppInviteConnection { - """A list of `AppInvite` objects.""" - nodes: [AppInvite]! - - """ - A list of edges which contains the `AppInvite` and cursor to aid in pagination. - """ - edges: [AppInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppInvite` you could get from the connection.""" - totalCount: Int! -} - -""" -Invitation records sent to prospective members via email, with token-based redemption and expiration -""" -type AppInvite { - id: UUID! - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID! - - """Unique random hex token used to redeem this invitation""" - inviteToken: String! - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int! - - """Running count of how many times this invite has been claimed""" - inviteCount: Int! - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! - createdAt: Datetime - updatedAt: Datetime -} - -scalar ConstructiveInternalTypeEmail - -"""A `AppInvite` edge in the connection.""" -type AppInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppInvite` at the end of the edge.""" - node: AppInvite -} - -""" -A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ -""" -input AppInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter - - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter - - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter - - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter - - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppInviteFilter!] - - """Checks for any expressions in this list.""" - or: [AppInviteFilter!] - - """Negates the expression.""" - not: AppInviteFilter -} - -""" -A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeEmailFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: String - - """Not equal to the specified value.""" - notEqualTo: String - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: String - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String - - """Included in the specified list.""" - in: [String!] - - """Not included in the specified list.""" - notIn: [String!] - - """Less than the specified value.""" - lessThan: String - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String - - """Greater than the specified value.""" - greaterThan: String - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String - - """Contains the specified string (case-sensitive).""" - includes: String - - """Does not contain the specified string (case-sensitive).""" - notIncludes: String - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeEmail - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeEmail - - """Starts with the specified string (case-sensitive).""" - startsWith: String - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeEmail - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeEmail - - """Ends with the specified string (case-sensitive).""" - endsWith: String - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeEmail - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeEmail - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: String - - """ - Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLike: String - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeEmail - - """ - Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLikeInsensitive: ConstructiveInternalTypeEmail - - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail - - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail - - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: ConstructiveInternalTypeEmail - - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail - - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] - - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] - - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail - - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail - - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail - - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail -} - -"""Methods to use when ordering `AppInvite`.""" -enum AppInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - EMAIL_ASC - EMAIL_DESC - SENDER_ID_ASC - SENDER_ID_DESC - INVITE_TOKEN_ASC - INVITE_TOKEN_DESC - INVITE_VALID_ASC - INVITE_VALID_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - MULTIPLE_ASC - MULTIPLE_DESC - DATA_ASC - DATA_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppLimit` values.""" -type AppLimitConnection { - """A list of `AppLimit` objects.""" - nodes: [AppLimit]! - - """ - A list of edges which contains the `AppLimit` and cursor to aid in pagination. - """ - edges: [AppLimitEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimit` you could get from the connection.""" - totalCount: Int! -} - -"""Tracks per-actor usage counts against configurable maximum limits""" -type AppLimit { - id: UUID! - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -type Interval { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of days.""" - days: Int - - """A quantity of months.""" - months: Int - - """A quantity of years.""" - years: Int -} - -"""A `AppLimit` edge in the connection.""" -type AppLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimit` at the end of the edge.""" - node: AppLimit -} - -""" -A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitFilter!] - - """Negates the expression.""" - not: AppLimitFilter -} - -""" -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ -""" -input IntervalFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: IntervalInput - - """Not equal to the specified value.""" - notEqualTo: IntervalInput - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: IntervalInput - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput - - """Included in the specified list.""" - in: [IntervalInput!] - - """Not included in the specified list.""" - notIn: [IntervalInput!] - - """Less than the specified value.""" - lessThan: IntervalInput - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput - - """Greater than the specified value.""" - greaterThan: IntervalInput - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of days.""" - days: Int - - """A quantity of months.""" - months: Int - - """A quantity of years.""" - years: Int -} - -"""Methods to use when ordering `AppLimit`.""" -enum AppLimitOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC -} - -"""A connection to a list of `OrgLimitAggregate` values.""" -type OrgLimitAggregateConnection { - """A list of `OrgLimitAggregate` objects.""" - nodes: [OrgLimitAggregate]! - - """ - A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. - """ - edges: [OrgLimitAggregateEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitAggregate` you could get from the connection. - """ - totalCount: Int! -} - -""" -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) -""" -type OrgLimitAggregate { - id: UUID! - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""A `OrgLimitAggregate` edge in the connection.""" -type OrgLimitAggregateEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitAggregate` at the end of the edge.""" - node: OrgLimitAggregate -} - -""" -A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitAggregateFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `reserved` field.""" - reserved: BigIntFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitAggregateFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitAggregateFilter!] - - """Negates the expression.""" - not: OrgLimitAggregateFilter -} - -"""Methods to use when ordering `OrgLimitAggregate`.""" -enum OrgLimitAggregateOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - RESERVED_ASC - RESERVED_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC -} - -"""A connection to a list of `OrgLimit` values.""" -type OrgLimitConnection { - """A list of `OrgLimit` objects.""" - nodes: [OrgLimit]! - - """ - A list of edges which contains the `OrgLimit` and cursor to aid in pagination. - """ - edges: [OrgLimitEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimit` you could get from the connection.""" - totalCount: Int! -} - -"""Tracks per-actor usage counts against configurable maximum limits""" -type OrgLimit { - id: UUID! - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""A `OrgLimit` edge in the connection.""" -type OrgLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimit` at the end of the edge.""" - node: OrgLimit -} - -""" -A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitFilter!] - - """Negates the expression.""" - not: OrgLimitFilter -} - -"""Methods to use when ordering `OrgLimit`.""" -enum OrgLimitOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC -} - -"""A connection to a list of `OrgInvite` values.""" -type OrgInviteConnection { - """A list of `OrgInvite` objects.""" - nodes: [OrgInvite]! - - """ - A list of edges which contains the `OrgInvite` and cursor to aid in pagination. - """ - edges: [OrgInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgInvite` you could get from the connection.""" - totalCount: Int! -} - -""" -Invitation records sent to prospective members via email, with token-based redemption and expiration -""" -type OrgInvite { - id: UUID! - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID! - - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String! - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int! - - """Running count of how many times this invite has been claimed""" - inviteCount: Int! - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean! - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! -} - -"""A `OrgInvite` edge in the connection.""" -type OrgInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgInvite` at the end of the edge.""" - node: OrgInvite -} - -""" -A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ -""" -input OrgInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter - - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter - - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter - - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter - - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter - - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgInviteFilter!] - - """Checks for any expressions in this list.""" - or: [OrgInviteFilter!] - - """Negates the expression.""" - not: OrgInviteFilter -} - -"""Methods to use when ordering `OrgInvite`.""" -enum OrgInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - EMAIL_ASC - EMAIL_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - INVITE_TOKEN_ASC - INVITE_TOKEN_DESC - INVITE_VALID_ASC - INVITE_VALID_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - MULTIPLE_ASC - MULTIPLE_DESC - DATA_ASC - DATA_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_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! -} - -"""Information about a table field/column""" -type MetaField { - name: String! - type: MetaType! - isNotNull: Boolean! - hasDefault: Boolean! - isPrimaryKey: Boolean! - isForeignKey: Boolean! - description: String -} - -"""Information about a PostgreSQL type""" -type MetaType { - pgType: String! - gqlType: String! - isArray: Boolean! - isNotNull: Boolean - hasDefault: Boolean - subtype: 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 -} - -""" -The root mutation type which contains root level fields which mutate data. -""" -type Mutation { - submitAppInviteCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SubmitAppInviteCodeInput! - ): SubmitAppInviteCodePayload - submitOrgInviteCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SubmitOrgInviteCodeInput! - ): SubmitOrgInviteCodePayload - - """Creates a single `AppLimitCreditRedemption`.""" - createAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditRedemptionInput! - ): CreateAppLimitCreditRedemptionPayload - - """Creates a single `OrgMember`.""" - createOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberInput! - ): CreateOrgMemberPayload - - """Creates a single `AppPermissionDefault`.""" - createAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionDefaultInput! - ): CreateAppPermissionDefaultPayload - - """Creates a single `AppAdminGrant`.""" - createAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppAdminGrantInput! - ): CreateAppAdminGrantPayload - - """Creates a single `AppOwnerGrant`.""" - createAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppOwnerGrantInput! - ): CreateAppOwnerGrantPayload - - """Creates a single `OrgPermissionDefault`.""" - createOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionDefaultInput! - ): CreateOrgPermissionDefaultPayload - - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload - - """Creates a single `OrgAdminGrant`.""" - createOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgAdminGrantInput! - ): CreateOrgAdminGrantPayload - - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload - - """Creates a single `OrgOwnerGrant`.""" - createOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgOwnerGrantInput! - ): CreateOrgOwnerGrantPayload - - """Creates a single `AppLimitCapsDefault`.""" - createAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapsDefaultInput! - ): CreateAppLimitCapsDefaultPayload - - """Creates a single `OrgLimitCapsDefault`.""" - createOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapsDefaultInput! - ): CreateOrgLimitCapsDefaultPayload - - """Creates a single `AppLimitCap`.""" - createAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapInput! - ): CreateAppLimitCapPayload - - """Creates a single `OrgLimitCap`.""" - createOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapInput! - ): CreateOrgLimitCapPayload - - """Creates a single `OrgChartEdge`.""" - createOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeInput! - ): CreateOrgChartEdgePayload - - """Creates a single `AppLimitCreditCodeItem`.""" - createAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditCodeItemInput! - ): CreateAppLimitCreditCodeItemPayload - - """Creates a single `AppLimitDefault`.""" - createAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitDefaultInput! - ): CreateAppLimitDefaultPayload - - """Creates a single `OrgLimitDefault`.""" - createOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitDefaultInput! - ): CreateOrgLimitDefaultPayload - - """Creates a single `AppPermission`.""" - createAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload - - """Creates a single `OrgPermission`.""" - createOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload - - """Creates a single `AppLimitCreditCode`.""" - createAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditCodeInput! - ): CreateAppLimitCreditCodePayload - - """Creates a single `AppLimitWarning`.""" - createAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitWarningInput! - ): CreateAppLimitWarningPayload - - """Creates a single `OrgChartEdgeGrant`.""" - createOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeGrantInput! - ): CreateOrgChartEdgeGrantPayload - - """Creates a single `AppLimitCredit`.""" - createAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditInput! - ): CreateAppLimitCreditPayload - - """Creates a single `OrgLimitCredit`.""" - createOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCreditInput! - ): CreateOrgLimitCreditPayload - - """Creates a single `AppClaimedInvite`.""" - createAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppClaimedInviteInput! - ): CreateAppClaimedInvitePayload - - """Creates a single `OrgLimitWarning`.""" - createOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitWarningInput! - ): CreateOrgLimitWarningPayload - - """Creates a single `MembershipType`.""" - createMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload - - """Creates a single `AppGrant`.""" - createAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppGrantInput! - ): CreateAppGrantPayload - - """Creates a single `OrgClaimedInvite`.""" - createOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgClaimedInviteInput! - ): CreateOrgClaimedInvitePayload - - """Creates a single `OrgGrant`.""" - createOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgGrantInput! - ): CreateOrgGrantPayload - - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload - - """Creates a single `AppLimitEvent`.""" - createAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitEventInput! - ): CreateAppLimitEventPayload - - """Creates a single `OrgLimitEvent`.""" - createOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitEventInput! - ): CreateOrgLimitEventPayload - - """Creates a single `AppMembership`.""" - createAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipInput! - ): CreateAppMembershipPayload - - """Creates a single `OrgMembership`.""" - createOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload - - """Creates a single `OrgMemberProfile`.""" - createOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberProfileInput! - ): CreateOrgMemberProfilePayload - - """Creates a single `AppInvite`.""" - createAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload - - """Creates a single `AppLimit`.""" - createAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitInput! - ): CreateAppLimitPayload - - """Creates a single `OrgLimitAggregate`.""" - createOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitAggregateInput! - ): CreateOrgLimitAggregatePayload - - """Creates a single `OrgLimit`.""" - createOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitInput! - ): CreateOrgLimitPayload - - """Creates a single `OrgInvite`.""" - createOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgInviteInput! - ): CreateOrgInvitePayload - - """ - Updates a single `AppLimitCreditRedemption` using a unique key and a patch. - """ - updateAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditRedemptionInput! - ): UpdateAppLimitCreditRedemptionPayload - - """Updates a single `OrgMember` using a unique key and a patch.""" - updateOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMemberInput! - ): UpdateOrgMemberPayload - - """ - Updates a single `AppPermissionDefault` using a unique key and a patch. - """ - updateAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionDefaultInput! - ): UpdateAppPermissionDefaultPayload - - """Updates a single `AppAdminGrant` using a unique key and a patch.""" - updateAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppAdminGrantInput! - ): UpdateAppAdminGrantPayload - - """Updates a single `AppOwnerGrant` using a unique key and a patch.""" - updateAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppOwnerGrantInput! - ): UpdateAppOwnerGrantPayload - - """ - Updates a single `OrgPermissionDefault` using a unique key and a patch. - """ - updateOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionDefaultInput! - ): UpdateOrgPermissionDefaultPayload - - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload - - """Updates a single `OrgAdminGrant` using a unique key and a patch.""" - updateOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgAdminGrantInput! - ): UpdateOrgAdminGrantPayload - - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload - - """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" - updateOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgOwnerGrantInput! - ): UpdateOrgOwnerGrantPayload - - """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" - updateAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapsDefaultInput! - ): UpdateAppLimitCapsDefaultPayload - - """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" - updateOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapsDefaultInput! - ): UpdateOrgLimitCapsDefaultPayload - - """Updates a single `AppLimitCap` using a unique key and a patch.""" - updateAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapInput! - ): UpdateAppLimitCapPayload - - """Updates a single `OrgLimitCap` using a unique key and a patch.""" - updateOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapInput! - ): UpdateOrgLimitCapPayload - - """Updates a single `OrgChartEdge` using a unique key and a patch.""" - updateOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeInput! - ): UpdateOrgChartEdgePayload - - """ - Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. - """ - updateAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditCodeItemInput! - ): UpdateAppLimitCreditCodeItemPayload - - """Updates a single `AppLimitDefault` using a unique key and a patch.""" - updateAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitDefaultInput! - ): UpdateAppLimitDefaultPayload - - """Updates a single `OrgLimitDefault` using a unique key and a patch.""" - updateOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitDefaultInput! - ): UpdateOrgLimitDefaultPayload - - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload - - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload - - """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" - updateAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditCodeInput! - ): UpdateAppLimitCreditCodePayload - - """Updates a single `AppLimitWarning` using a unique key and a patch.""" - updateAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitWarningInput! - ): UpdateAppLimitWarningPayload - - """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" - updateOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeGrantInput! - ): UpdateOrgChartEdgeGrantPayload - - """Updates a single `AppLimitCredit` using a unique key and a patch.""" - updateAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditInput! - ): UpdateAppLimitCreditPayload - - """Updates a single `OrgLimitCredit` using a unique key and a patch.""" - updateOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCreditInput! - ): UpdateOrgLimitCreditPayload - - """Updates a single `AppClaimedInvite` using a unique key and a patch.""" - updateAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppClaimedInviteInput! - ): UpdateAppClaimedInvitePayload - - """Updates a single `OrgLimitWarning` using a unique key and a patch.""" - updateOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitWarningInput! - ): UpdateOrgLimitWarningPayload - - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload - - """Updates a single `AppGrant` using a unique key and a patch.""" - updateAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppGrantInput! - ): UpdateAppGrantPayload - - """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" - updateOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgClaimedInviteInput! - ): UpdateOrgClaimedInvitePayload - - """Updates a single `OrgGrant` using a unique key and a patch.""" - updateOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgGrantInput! - ): UpdateOrgGrantPayload - - """ - Updates a single `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload - - """Updates a single `AppLimitEvent` using a unique key and a patch.""" - updateAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitEventInput! - ): UpdateAppLimitEventPayload - - """Updates a single `OrgLimitEvent` using a unique key and a patch.""" - updateOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitEventInput! - ): UpdateOrgLimitEventPayload - - """Updates a single `AppMembership` using a unique key and a patch.""" - updateAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipInput! - ): UpdateAppMembershipPayload - - """Updates a single `OrgMembership` using a unique key and a patch.""" - updateOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipInput! - ): UpdateOrgMembershipPayload - - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" - updateOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMemberProfileInput! - ): UpdateOrgMemberProfilePayload - - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload - - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload - - """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" - updateOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitAggregateInput! - ): UpdateOrgLimitAggregatePayload - - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload - - """Updates a single `OrgInvite` using a unique key and a patch.""" - updateOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgInviteInput! - ): UpdateOrgInvitePayload - - """Deletes a single `AppLimitCreditRedemption` using a unique key.""" - deleteAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditRedemptionInput! - ): DeleteAppLimitCreditRedemptionPayload - - """Deletes a single `OrgMember` using a unique key.""" - deleteOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMemberInput! - ): DeleteOrgMemberPayload - - """Deletes a single `AppPermissionDefault` using a unique key.""" - deleteAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionDefaultInput! - ): DeleteAppPermissionDefaultPayload - - """Deletes a single `AppAdminGrant` using a unique key.""" - deleteAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppAdminGrantInput! - ): DeleteAppAdminGrantPayload - - """Deletes a single `AppOwnerGrant` using a unique key.""" - deleteAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppOwnerGrantInput! - ): DeleteAppOwnerGrantPayload - - """Deletes a single `OrgPermissionDefault` using a unique key.""" - deleteOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionDefaultInput! - ): DeleteOrgPermissionDefaultPayload - - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload - - """Deletes a single `OrgAdminGrant` using a unique key.""" - deleteOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgAdminGrantInput! - ): DeleteOrgAdminGrantPayload - - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload - - """Deletes a single `OrgOwnerGrant` using a unique key.""" - deleteOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgOwnerGrantInput! - ): DeleteOrgOwnerGrantPayload - - """Deletes a single `AppLimitCapsDefault` using a unique key.""" - deleteAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapsDefaultInput! - ): DeleteAppLimitCapsDefaultPayload - - """Deletes a single `OrgLimitCapsDefault` using a unique key.""" - deleteOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapsDefaultInput! - ): DeleteOrgLimitCapsDefaultPayload - - """Deletes a single `AppLimitCap` using a unique key.""" - deleteAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapInput! - ): DeleteAppLimitCapPayload - - """Deletes a single `OrgLimitCap` using a unique key.""" - deleteOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapInput! - ): DeleteOrgLimitCapPayload - - """Deletes a single `OrgChartEdge` using a unique key.""" - deleteOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeInput! - ): DeleteOrgChartEdgePayload - - """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" - deleteAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditCodeItemInput! - ): DeleteAppLimitCreditCodeItemPayload - - """Deletes a single `AppLimitDefault` using a unique key.""" - deleteAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitDefaultInput! - ): DeleteAppLimitDefaultPayload - - """Deletes a single `OrgLimitDefault` using a unique key.""" - deleteOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitDefaultInput! - ): DeleteOrgLimitDefaultPayload - - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload - - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload - - """Deletes a single `AppLimitCreditCode` using a unique key.""" - deleteAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditCodeInput! - ): DeleteAppLimitCreditCodePayload - - """Deletes a single `AppLimitWarning` using a unique key.""" - deleteAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitWarningInput! - ): DeleteAppLimitWarningPayload - - """Deletes a single `OrgChartEdgeGrant` using a unique key.""" - deleteOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeGrantInput! - ): DeleteOrgChartEdgeGrantPayload - - """Deletes a single `AppLimitCredit` using a unique key.""" - deleteAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditInput! - ): DeleteAppLimitCreditPayload - - """Deletes a single `OrgLimitCredit` using a unique key.""" - deleteOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCreditInput! - ): DeleteOrgLimitCreditPayload - - """Deletes a single `AppClaimedInvite` using a unique key.""" - deleteAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppClaimedInviteInput! - ): DeleteAppClaimedInvitePayload - - """Deletes a single `OrgLimitWarning` using a unique key.""" - deleteOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitWarningInput! - ): DeleteOrgLimitWarningPayload - - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload - - """Deletes a single `AppGrant` using a unique key.""" - deleteAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppGrantInput! - ): DeleteAppGrantPayload - - """Deletes a single `OrgClaimedInvite` using a unique key.""" - deleteOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgClaimedInviteInput! - ): DeleteOrgClaimedInvitePayload - - """Deletes a single `OrgGrant` using a unique key.""" - deleteOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgGrantInput! - ): DeleteOrgGrantPayload - - """Deletes a single `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload - - """Deletes a single `AppLimitEvent` using a unique key.""" - deleteAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitEventInput! - ): DeleteAppLimitEventPayload - - """Deletes a single `OrgLimitEvent` using a unique key.""" - deleteOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitEventInput! - ): DeleteOrgLimitEventPayload - - """Deletes a single `AppMembership` using a unique key.""" - deleteAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipInput! - ): DeleteAppMembershipPayload - - """Deletes a single `OrgMembership` using a unique key.""" - deleteOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipInput! - ): DeleteOrgMembershipPayload - - """Deletes a single `OrgMemberProfile` using a unique key.""" - deleteOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMemberProfileInput! - ): DeleteOrgMemberProfilePayload - - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload - - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload - - """Deletes a single `OrgLimitAggregate` using a unique key.""" - deleteOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitAggregateInput! - ): DeleteOrgLimitAggregatePayload - - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload - - """Deletes a single `OrgInvite` using a unique key.""" - deleteOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgInviteInput! - ): DeleteOrgInvitePayload - - """ - 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 `submitAppInviteCode` mutation.""" -type SubmitAppInviteCodePayload { - """ - The 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 `submitAppInviteCode` mutation.""" -input SubmitAppInviteCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - token: String -} - -"""The output of our `submitOrgInviteCode` mutation.""" -type SubmitOrgInviteCodePayload { - """ - The 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 `submitOrgInviteCode` mutation.""" -input SubmitOrgInviteCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - token: String -} - -"""The output of our create `AppLimitCreditRedemption` mutation.""" -type CreateAppLimitCreditRedemptionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditRedemption` that was created by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge -} - -"""All input for the create `AppLimitCreditRedemption` mutation.""" -input CreateAppLimitCreditRedemptionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCreditRedemption` to be created by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemptionInput! -} - -"""An input for mutations affecting `AppLimitCreditRedemption`""" -input AppLimitCreditRedemptionInput { - id: UUID - - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID! - - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID! -} - -"""The output of our create `OrgMember` mutation.""" -type CreateOrgMemberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMember` that was created by this mutation.""" - orgMember: OrgMember - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge -} - -"""All input for the create `OrgMember` mutation.""" -input CreateOrgMemberInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMember` to be created by this mutation.""" - orgMember: OrgMemberInput! -} - -"""An input for mutations affecting `OrgMember`""" -input OrgMemberInput { - id: UUID - - """Whether this member has admin privileges""" - isAdmin: Boolean - - """References the user who is a member""" - actorId: UUID! - - """References the entity (org or group) this member belongs to""" - entityId: UUID! -} - -"""The output of our create `AppPermissionDefault` mutation.""" -type CreateAppPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermissionDefault` that was created by this mutation.""" - appPermissionDefault: AppPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge -} - -"""All input for the create `AppPermissionDefault` mutation.""" -input CreateAppPermissionDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppPermissionDefault` to be created by this mutation.""" - appPermissionDefault: AppPermissionDefaultInput! -} - -"""An input for mutations affecting `AppPermissionDefault`""" -input AppPermissionDefaultInput { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString -} - -"""The output of our create `AppAdminGrant` mutation.""" -type CreateAppAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppAdminGrant` that was created by this mutation.""" - appAdminGrant: AppAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge -} - -"""All input for the create `AppAdminGrant` mutation.""" -input CreateAppAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppAdminGrant` to be created by this mutation.""" - appAdminGrant: AppAdminGrantInput! -} - -"""An input for mutations affecting `AppAdminGrant`""" -input AppAdminGrantInput { - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `AppOwnerGrant` mutation.""" -type CreateAppOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppOwnerGrant` that was created by this mutation.""" - appOwnerGrant: AppOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge -} - -"""All input for the create `AppOwnerGrant` mutation.""" -input CreateAppOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppOwnerGrant` to be created by this mutation.""" - appOwnerGrant: AppOwnerGrantInput! -} - -"""An input for mutations affecting `AppOwnerGrant`""" -input AppOwnerGrantInput { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - - """The member receiving or losing the ownership grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgPermissionDefault` mutation.""" -type CreateOrgPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefault` that was created by this mutation.""" - orgPermissionDefault: OrgPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge -} - -"""All input for the create `OrgPermissionDefault` mutation.""" -input CreateOrgPermissionDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgPermissionDefault` to be created by this mutation.""" - orgPermissionDefault: OrgPermissionDefaultInput! -} - -"""An input for mutations affecting `OrgPermissionDefault`""" -input OrgPermissionDefaultInput { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString - - """References the entity these default permissions apply to""" - entityId: UUID! -} - -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge -} - -"""All input for the create `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! -} - -"""An input for mutations affecting `AppMembershipDefault`""" -input AppMembershipDefaultInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean -} - -"""The output of our create `OrgAdminGrant` mutation.""" -type CreateOrgAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgAdminGrant` that was created by this mutation.""" - orgAdminGrant: OrgAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge -} - -"""All input for the create `OrgAdminGrant` mutation.""" -input CreateOrgAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgAdminGrant` to be created by this mutation.""" - orgAdminGrant: OrgAdminGrantInput! -} - -"""An input for mutations affecting `OrgAdminGrant`""" -input OrgAdminGrantInput { - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} - -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! -} - -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """References the entity these membership defaults apply to""" - entityId: UUID! -} - -"""The output of our create `OrgOwnerGrant` mutation.""" -type CreateOrgOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgOwnerGrant` that was created by this mutation.""" - orgOwnerGrant: OrgOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge -} - -"""All input for the create `OrgOwnerGrant` mutation.""" -input CreateOrgOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgOwnerGrant` to be created by this mutation.""" - orgOwnerGrant: OrgOwnerGrantInput! -} - -"""An input for mutations affecting `OrgOwnerGrant`""" -input OrgOwnerGrantInput { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - - """The member receiving or losing the ownership grant""" - actorId: UUID! - - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `AppLimitCapsDefault` mutation.""" -type CreateAppLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` that was created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the create `AppLimitCapsDefault` mutation.""" -input CreateAppLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` to be created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefaultInput! -} - -"""An input for mutations affecting `AppLimitCapsDefault`""" -input AppLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `OrgLimitCapsDefault` mutation.""" -type CreateOrgLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` that was created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the create `OrgLimitCapsDefault` mutation.""" -input CreateOrgLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` to be created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefaultInput! -} - -"""An input for mutations affecting `OrgLimitCapsDefault`""" -input OrgLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `AppLimitCap` mutation.""" -type CreateAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCap` that was created by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the create `AppLimitCap` mutation.""" -input CreateAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCap` to be created by this mutation.""" - appLimitCap: AppLimitCapInput! -} - -"""An input for mutations affecting `AppLimitCap`""" -input AppLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `OrgLimitCap` mutation.""" -type CreateOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was created by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the create `OrgLimitCap` mutation.""" -input CreateOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCap` to be created by this mutation.""" - orgLimitCap: OrgLimitCapInput! -} - -"""An input for mutations affecting `OrgLimitCap`""" -input OrgLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `OrgChartEdge` mutation.""" -type CreateOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was created by this mutation.""" - orgChartEdge: OrgChartEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} - -"""All input for the create `OrgChartEdge` mutation.""" -input CreateOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgChartEdge` to be created by this mutation.""" - orgChartEdge: OrgChartEdgeInput! -} - -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID! - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Job title or role name for this position in the org chart""" - positionTitle: String - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int -} - -"""The output of our create `AppLimitCreditCodeItem` mutation.""" -type CreateAppLimitCreditCodeItemPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCodeItem` that was created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge -} - -"""All input for the create `AppLimitCreditCodeItem` mutation.""" -input CreateAppLimitCreditCodeItemInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCreditCodeItem` to be created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItemInput! -} - -"""An input for mutations affecting `AppLimitCreditCodeItem`""" -input AppLimitCreditCodeItemInput { - id: UUID - - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! - - """Number of credits this item grants per redemption""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String -} - -"""The output of our create `AppLimitDefault` mutation.""" -type CreateAppLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitDefault` that was created by this mutation.""" - appLimitDefault: AppLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge -} - -"""All input for the create `AppLimitDefault` mutation.""" -input CreateAppLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitDefault` to be created by this mutation.""" - appLimitDefault: AppLimitDefaultInput! -} - -"""An input for mutations affecting `AppLimitDefault`""" -input AppLimitDefaultInput { - id: UUID - - """Name identifier of the limit this default applies to""" - name: String! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""The output of our create `OrgLimitDefault` mutation.""" -type CreateOrgLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitDefault` that was created by this mutation.""" - orgLimitDefault: OrgLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge -} - -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! -} - -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { - id: UUID - - """Name identifier of the limit this default applies to""" - name: String! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was created by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! -} - -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! -} - -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `AppLimitCreditCode` mutation.""" -type CreateAppLimitCreditCodePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCode` that was created by this mutation.""" - appLimitCreditCode: AppLimitCreditCode - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge -} - -"""All input for the create `AppLimitCreditCode` mutation.""" -input CreateAppLimitCreditCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCreditCode` to be created by this mutation.""" - appLimitCreditCode: AppLimitCreditCodeInput! -} - -"""An input for mutations affecting `AppLimitCreditCode`""" -input AppLimitCreditCodeInput { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String! - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime -} - -"""The output of our create `AppLimitWarning` mutation.""" -type CreateAppLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitWarning` that was created by this mutation.""" - appLimitWarning: AppLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge -} - -"""All input for the create `AppLimitWarning` mutation.""" -input CreateAppLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitWarning` to be created by this mutation.""" - appLimitWarning: AppLimitWarningInput! -} - -"""An input for mutations affecting `AppLimitWarning`""" -input AppLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! -} - -"""The output of our create `OrgChartEdgeGrant` mutation.""" -type CreateOrgChartEdgeGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdgeGrant` that was created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge -} - -"""All input for the create `OrgChartEdgeGrant` mutation.""" -input CreateOrgChartEdgeGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgChartEdgeGrant` to be created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrantInput! -} - -"""An input for mutations affecting `OrgChartEdgeGrant`""" -input OrgChartEdgeGrantInput { - id: UUID - - """Organization this grant applies to""" - entityId: UUID! - - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean - - """Job title or role name being assigned in this grant""" - positionTitle: String - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime -} - -"""The output of our create `AppLimitCredit` mutation.""" -type CreateAppLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCredit` that was created by this mutation.""" - appLimitCredit: AppLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge -} - -"""All input for the create `AppLimitCredit` mutation.""" -input CreateAppLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCredit` to be created by this mutation.""" - appLimitCredit: AppLimitCreditInput! -} - -"""An input for mutations affecting `AppLimitCredit`""" -input AppLimitCreditInput { - id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our create `OrgLimitCredit` mutation.""" -type CreateOrgLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCredit` that was created by this mutation.""" - orgLimitCredit: OrgLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge -} - -"""All input for the create `OrgLimitCredit` mutation.""" -input CreateOrgLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCredit` to be created by this mutation.""" - orgLimitCredit: OrgLimitCreditInput! -} - -"""An input for mutations affecting `OrgLimitCredit`""" -input OrgLimitCreditInput { - id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our create `AppClaimedInvite` mutation.""" -type CreateAppClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppClaimedInvite` that was created by this mutation.""" - appClaimedInvite: AppClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge -} - -"""All input for the create `AppClaimedInvite` mutation.""" -input CreateAppClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppClaimedInvite` to be created by this mutation.""" - appClaimedInvite: AppClaimedInviteInput! -} - -"""An input for mutations affecting `AppClaimedInvite`""" -input AppClaimedInviteInput { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgLimitWarning` mutation.""" -type CreateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was created by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the create `OrgLimitWarning` mutation.""" -input CreateOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitWarning` to be created by this mutation.""" - orgLimitWarning: OrgLimitWarningInput! -} - -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID -} - -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was created by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! -} - -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean -} - -"""The output of our create `AppGrant` mutation.""" -type CreateAppGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppGrant` that was created by this mutation.""" - appGrant: AppGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge -} - -"""All input for the create `AppGrant` mutation.""" -input CreateAppGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppGrant` to be created by this mutation.""" - appGrant: AppGrantInput! -} - -"""An input for mutations affecting `AppGrant`""" -input AppGrantInput { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgClaimedInvite` mutation.""" -type CreateOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgClaimedInvite` that was created by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge -} - -"""All input for the create `OrgClaimedInvite` mutation.""" -input CreateOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgClaimedInvite` to be created by this mutation.""" - orgClaimedInvite: OrgClaimedInviteInput! -} - -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! -} - -"""The output of our create `OrgGrant` mutation.""" -type CreateOrgGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgGrant` that was created by this mutation.""" - orgGrant: OrgGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge -} - -"""All input for the create `OrgGrant` mutation.""" -input CreateOrgGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgGrant` to be created by this mutation.""" - orgGrant: OrgGrantInput! -} - -"""An input for mutations affecting `OrgGrant`""" -input OrgGrantInput { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID! - - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge -} - -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! -} - -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String -} - -"""The output of our create `AppLimitEvent` mutation.""" -type CreateAppLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitEvent` that was created by this mutation.""" - appLimitEvent: AppLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge -} - -"""All input for the create `AppLimitEvent` mutation.""" -input CreateAppLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitEvent` to be created by this mutation.""" - appLimitEvent: AppLimitEventInput! -} - -"""An input for mutations affecting `AppLimitEvent`""" -input AppLimitEventInput { - createdAt: Datetime - - """Unique identifier for each limit event""" - id: UUID - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our create `OrgLimitEvent` mutation.""" -type CreateOrgLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitEvent` that was created by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge -} - -"""All input for the create `OrgLimitEvent` mutation.""" -input CreateOrgLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitEvent` to be created by this mutation.""" - orgLimitEvent: OrgLimitEventInput! -} - -"""An input for mutations affecting `OrgLimitEvent`""" -input OrgLimitEventInput { - createdAt: Datetime - - """Unique identifier for each limit event""" - id: UUID - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembership` that was created by this mutation.""" - appMembership: AppMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge -} - -"""All input for the create `AppMembership` mutation.""" -input CreateAppMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! -} - -"""An input for mutations affecting `AppMembership`""" -input AppMembershipInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID -} - -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! -} - -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID -} - -"""The output of our create `OrgMemberProfile` mutation.""" -type CreateOrgMemberProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMemberProfile` that was created by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the create `OrgMemberProfile` mutation.""" -input CreateOrgMemberProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMemberProfile` to be created by this mutation.""" - orgMemberProfile: OrgMemberProfileInput! -} - -"""An input for mutations affecting `OrgMemberProfile`""" -input OrgMemberProfileInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage -} - -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppInvite` that was created by this mutation.""" - appInvite: AppInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge -} - -"""All input for the create `AppInvite` mutation.""" -input CreateAppInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! -} - -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `AppLimit` mutation.""" -type CreateAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was created by this mutation.""" - appLimit: AppLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} - -"""All input for the create `AppLimit` mutation.""" -input CreateAppLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimit` to be created by this mutation.""" - appLimit: AppLimitInput! -} + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload -"""An input for mutations affecting `AppLimit`""" -input AppLimitInput { - id: UUID + """Creates a single `OrgChartEdgeGrant`.""" + createOrgChartEdgeGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgChartEdgeGrantInput! + ): CreateOrgChartEdgeGrantPayload - """Name identifier of the limit being tracked""" - name: String + """Creates a single `AppClaimedInvite`.""" + createAppClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppClaimedInviteInput! + ): CreateAppClaimedInvitePayload - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Creates a single `MembershipType`.""" + createMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload - """Current usage count for this actor and limit""" - num: BigInt + """Creates a single `AppGrant`.""" + createAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppGrantInput! + ): CreateAppGrantPayload - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """Creates a single `OrgClaimedInvite`.""" + createOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgClaimedInviteInput! + ): CreateOrgClaimedInvitePayload - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput + """Creates a single `OrgGrant`.""" + createOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgGrantInput! + ): CreateOrgGrantPayload - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt + """Creates a single `OrgChartEdge`.""" + createOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgChartEdgeInput! + ): CreateOrgChartEdgePayload - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt + """Creates a single `AppMembership`.""" + createAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload + + """Creates a single `AppInvite`.""" + createAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppInviteInput! + ): CreateAppInvitePayload - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """Creates a single `OrgMembership`.""" + createOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} + """Creates a single `OrgMemberProfile`.""" + createOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberProfileInput! + ): CreateOrgMemberProfilePayload -"""The output of our create `OrgLimitAggregate` mutation.""" -type CreateOrgLimitAggregatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Creates a single `OrgInvite`.""" + createOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgInviteInput! + ): CreateOrgInvitePayload - """The `OrgLimitAggregate` that was created by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """Updates a single `OrgMember` using a unique key and a patch.""" + updateOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberInput! + ): UpdateOrgMemberPayload """ - Our root query field type. Allows us to run any query from our mutation payload. + Updates a single `AppPermissionDefault` using a unique key and a patch. """ - query: Query - - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge -} + updateAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionDefaultInput! + ): UpdateAppPermissionDefaultPayload -"""All input for the create `OrgLimitAggregate` mutation.""" -input CreateOrgLimitAggregateInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Updates a single `OrgPermissionDefault` using a unique key and a patch. """ - clientMutationId: String - - """The `OrgLimitAggregate` to be created by this mutation.""" - orgLimitAggregate: OrgLimitAggregateInput! -} - -"""An input for mutations affecting `OrgLimitAggregate`""" -input OrgLimitAggregateInput { - id: UUID + updateOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionDefaultInput! + ): UpdateOrgPermissionDefaultPayload - """Name identifier of the aggregate limit being tracked""" - name: String + """Updates a single `AppAdminGrant` using a unique key and a patch.""" + updateAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppAdminGrantInput! + ): UpdateAppAdminGrantPayload - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! + """Updates a single `AppOwnerGrant` using a unique key and a patch.""" + updateAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppOwnerGrantInput! + ): UpdateAppOwnerGrantPayload - """Current aggregate usage count for this entity and limit""" - num: BigInt + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" + updateOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgAdminGrantInput! + ): UpdateOrgAdminGrantPayload - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" + updateOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgOwnerGrantInput! + ): UpdateOrgOwnerGrantPayload - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput + """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" + updateOrgChartEdgeGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgChartEdgeGrantInput! + ): UpdateOrgChartEdgeGrantPayload - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt + """Updates a single `AppClaimedInvite` using a unique key and a patch.""" + updateAppClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppClaimedInviteInput! + ): UpdateAppClaimedInvitePayload - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt + """Updates a single `AppGrant` using a unique key and a patch.""" + updateAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppGrantInput! + ): UpdateAppGrantPayload """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + Updates a single `AppMembershipDefault` using a unique key and a patch. """ - reserved: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} + updateAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload -"""The output of our create `OrgLimit` mutation.""" -type CreateOrgLimitPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Updates a single `OrgMembershipDefault` using a unique key and a patch. """ - clientMutationId: String + updateOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload - """The `OrgLimit` that was created by this mutation.""" - orgLimit: OrgLimit + """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" + updateOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgClaimedInviteInput! + ): UpdateOrgClaimedInvitePayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Updates a single `OrgGrant` using a unique key and a patch.""" + updateOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgGrantInput! + ): UpdateOrgGrantPayload - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge -} + """Updates a single `OrgChartEdge` using a unique key and a patch.""" + updateOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgChartEdgeInput! + ): UpdateOrgChartEdgePayload -"""All input for the create `OrgLimit` mutation.""" -input CreateOrgLimitInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Updates a single `OrgMembershipSetting` using a unique key and a patch. """ - clientMutationId: String + updateOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipSettingInput! + ): UpdateOrgMembershipSettingPayload - """The `OrgLimit` to be created by this mutation.""" - orgLimit: OrgLimitInput! -} + """Updates a single `AppMembership` using a unique key and a patch.""" + updateAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipInput! + ): UpdateAppMembershipPayload -"""An input for mutations affecting `OrgLimit`""" -input OrgLimitInput { - id: UUID + """Updates a single `AppInvite` using a unique key and a patch.""" + updateAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppInviteInput! + ): UpdateAppInvitePayload - """Name identifier of the limit being tracked""" - name: String + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Updates a single `OrgMemberProfile` using a unique key and a patch.""" + updateOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberProfileInput! + ): UpdateOrgMemberProfilePayload - """Current usage count for this actor and limit""" - num: BigInt + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt + """Deletes a single `OrgMember` using a unique key.""" + deleteOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberInput! + ): DeleteOrgMemberPayload - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt + """Deletes a single `AppPermissionDefault` using a unique key.""" + deleteAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionDefaultInput! + ): DeleteAppPermissionDefaultPayload - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """Deletes a single `OrgPermissionDefault` using a unique key.""" + deleteOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionDefaultInput! + ): DeleteOrgPermissionDefaultPayload - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput + """Deletes a single `AppAdminGrant` using a unique key.""" + deleteAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppAdminGrantInput! + ): DeleteAppAdminGrantPayload - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt + """Deletes a single `AppOwnerGrant` using a unique key.""" + deleteAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppOwnerGrantInput! + ): DeleteAppOwnerGrantPayload - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """Deletes a single `OrgAdminGrant` using a unique key.""" + deleteOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgAdminGrantInput! + ): DeleteOrgAdminGrantPayload - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID! + """Deletes a single `OrgOwnerGrant` using a unique key.""" + deleteOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgOwnerGrantInput! + ): DeleteOrgOwnerGrantPayload - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload -"""The output of our create `OrgInvite` mutation.""" -type CreateOrgInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Deletes a single `OrgChartEdgeGrant` using a unique key.""" + deleteOrgChartEdgeGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgChartEdgeGrantInput! + ): DeleteOrgChartEdgeGrantPayload - """The `OrgInvite` that was created by this mutation.""" - orgInvite: OrgInvite + """Deletes a single `AppClaimedInvite` using a unique key.""" + deleteAppClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppClaimedInviteInput! + ): DeleteAppClaimedInvitePayload - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge -} + """Deletes a single `AppGrant` using a unique key.""" + deleteAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppGrantInput! + ): DeleteAppGrantPayload -"""All input for the create `OrgInvite` mutation.""" -input CreateOrgInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload - """The `OrgInvite` to be created by this mutation.""" - orgInvite: OrgInviteInput! -} + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload -"""An input for mutations affecting `OrgInvite`""" -input OrgInviteInput { - id: UUID + """Deletes a single `OrgClaimedInvite` using a unique key.""" + deleteOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgClaimedInviteInput! + ): DeleteOrgClaimedInvitePayload - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Deletes a single `OrgGrant` using a unique key.""" + deleteOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgGrantInput! + ): DeleteOrgGrantPayload - """User ID of the member who sent this invitation""" - senderId: UUID + """Deletes a single `OrgChartEdge` using a unique key.""" + deleteOrgChartEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgChartEdgeInput! + ): DeleteOrgChartEdgePayload - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID + """Deletes a single `OrgMembershipSetting` using a unique key.""" + deleteOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipSettingInput! + ): DeleteOrgMembershipSettingPayload - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """Deletes a single `AppMembership` using a unique key.""" + deleteAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipInput! + ): DeleteAppMembershipPayload - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """Deletes a single `AppInvite` using a unique key.""" + deleteAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppInviteInput! + ): DeleteAppInvitePayload - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """Deletes a single `OrgMemberProfile` using a unique key.""" + deleteOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberProfileInput! + ): DeleteOrgMemberProfilePayload - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Provision an S3 bucket for a logical bucket in the database. + Reads the bucket config via RLS, then creates and configures + the S3 bucket with the appropriate privacy policies, CORS rules, + and lifecycle settings. + """ + 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 `submitAppInviteCode` mutation.""" +type SubmitAppInviteCodePayload { """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - profileId: UUID + clientMutationId: String + result: Boolean """ - Whether the resulting membership should be read-only when this invite is claimed + Our root query field type. Allows us to run any query from our mutation payload. """ - isReadOnly: Boolean + query: Query +} - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! +"""All input for the `submitAppInviteCode` mutation.""" +input SubmitAppInviteCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + token: String } -"""The output of our update `AppLimitCreditRedemption` mutation.""" -type UpdateAppLimitCreditRedemptionPayload { +"""The output of our `submitOrgInviteCode` mutation.""" +type SubmitOrgInviteCodePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - - """The `AppLimitCreditRedemption` that was updated by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption + result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge } -"""All input for the `updateAppLimitCreditRedemption` mutation.""" -input UpdateAppLimitCreditRedemptionInput { +"""All input for the `submitOrgInviteCode` mutation.""" +input SubmitOrgInviteCodeInput { """ An arbitrary string value 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 `AppLimitCreditRedemption` being updated. - """ - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch! -} - -""" -Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. -""" -input AppLimitCreditRedemptionPatch { - id: UUID - - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID - - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID + token: String } -"""The output of our update `OrgMember` mutation.""" -type UpdateOrgMemberPayload { +"""The output of our create `OrgMember` mutation.""" +type CreateOrgMemberPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMember` that was updated by this mutation.""" + """The `OrgMember` that was created by this mutation.""" orgMember: OrgMember """ @@ -11037,46 +5039,41 @@ type UpdateOrgMemberPayload { ): OrgMemberEdge } -"""All input for the `updateOrgMember` mutation.""" -input UpdateOrgMemberInput { +"""All input for the create `OrgMember` mutation.""" +input CreateOrgMemberInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgMember` being updated. - """ - orgMemberPatch: OrgMemberPatch! + """The `OrgMember` to be created by this mutation.""" + orgMember: OrgMemberInput! } -""" -Represents an update to a `OrgMember`. Fields that are set will be updated. -""" -input OrgMemberPatch { +"""An input for mutations affecting `OrgMember`""" +input OrgMemberInput { id: UUID """Whether this member has admin privileges""" isAdmin: Boolean """References the user who is a member""" - actorId: UUID + actorId: UUID! """References the entity (org or group) this member belongs to""" - entityId: UUID + entityId: UUID! } -"""The output of our update `AppPermissionDefault` mutation.""" -type UpdateAppPermissionDefaultPayload { +"""The output of our create `AppPermissionDefault` mutation.""" +type CreateAppPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermissionDefault` that was updated by this mutation.""" + """The `AppPermissionDefault` that was created by this mutation.""" appPermissionDefault: AppPermissionDefault """ @@ -11091,40 +5088,81 @@ type UpdateAppPermissionDefaultPayload { ): AppPermissionDefaultEdge } -"""All input for the `updateAppPermissionDefault` mutation.""" -input UpdateAppPermissionDefaultInput { +"""All input for the create `AppPermissionDefault` mutation.""" +input CreateAppPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! + """The `AppPermissionDefault` to be created by this mutation.""" + appPermissionDefault: AppPermissionDefaultInput! +} + +"""An input for mutations affecting `AppPermissionDefault`""" +input AppPermissionDefaultInput { + id: UUID + + """Default permission bitmask applied to new members""" + permissions: BitString +} + +"""The output of our create `OrgPermissionDefault` mutation.""" +type CreateOrgPermissionDefaultPayload { """ - An object where the defined keys will be set on the `AppPermissionDefault` 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. """ - appPermissionDefaultPatch: AppPermissionDefaultPatch! + clientMutationId: String + + """The `OrgPermissionDefault` that was created by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge } -""" -Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. -""" -input AppPermissionDefaultPatch { +"""All input for the create `OrgPermissionDefault` mutation.""" +input CreateOrgPermissionDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgPermissionDefault` to be created by this mutation.""" + orgPermissionDefault: OrgPermissionDefaultInput! +} + +"""An input for mutations affecting `OrgPermissionDefault`""" +input OrgPermissionDefaultInput { id: UUID """Default permission bitmask applied to new members""" permissions: BitString + + """References the entity these default permissions apply to""" + entityId: UUID! } -"""The output of our update `AppAdminGrant` mutation.""" -type UpdateAppAdminGrantPayload { +"""The output of our create `AppAdminGrant` mutation.""" +type CreateAppAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAdminGrant` that was updated by this mutation.""" + """The `AppAdminGrant` that was created by this mutation.""" appAdminGrant: AppAdminGrant """ @@ -11139,46 +5177,41 @@ type UpdateAppAdminGrantPayload { ): AppAdminGrantEdge } -"""All input for the `updateAppAdminGrant` mutation.""" -input UpdateAppAdminGrantInput { +"""All input for the create `AppAdminGrant` mutation.""" +input CreateAppAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppAdminGrant` being updated. - """ - appAdminGrantPatch: AppAdminGrantPatch! + """The `AppAdminGrant` to be created by this mutation.""" + appAdminGrant: AppAdminGrantInput! } -""" -Represents an update to a `AppAdminGrant`. Fields that are set will be updated. -""" -input AppAdminGrantPatch { +"""An input for mutations affecting `AppAdminGrant`""" +input AppAdminGrantInput { id: UUID """True to grant admin, false to revoke admin""" isGrant: Boolean """The member receiving or losing the admin grant""" - actorId: UUID + actorId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""The output of our update `AppOwnerGrant` mutation.""" -type UpdateAppOwnerGrantPayload { +"""The output of our create `AppOwnerGrant` mutation.""" +type CreateAppOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppOwnerGrant` that was updated by this mutation.""" + """The `AppOwnerGrant` that was created by this mutation.""" appOwnerGrant: AppOwnerGrant """ @@ -11193,1419 +5226,1308 @@ type UpdateAppOwnerGrantPayload { ): AppOwnerGrantEdge } -"""All input for the `updateAppOwnerGrant` mutation.""" -input UpdateAppOwnerGrantInput { +"""All input for the create `AppOwnerGrant` mutation.""" +input CreateAppOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppOwnerGrant` being updated. - """ - appOwnerGrantPatch: AppOwnerGrantPatch! + """The `AppOwnerGrant` to be created by this mutation.""" + appOwnerGrant: AppOwnerGrantInput! } -""" -Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. -""" -input AppOwnerGrantPatch { +"""An input for mutations affecting `AppOwnerGrant`""" +input AppOwnerGrantInput { id: UUID """True to grant ownership, false to revoke ownership""" isGrant: Boolean """The member receiving or losing the ownership grant""" - actorId: UUID + actorId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""The output of our update `OrgPermissionDefault` mutation.""" -type UpdateOrgPermissionDefaultPayload { +"""The output of our create `OrgAdminGrant` mutation.""" +type CreateOrgAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermissionDefault` that was updated by this mutation.""" - orgPermissionDefault: OrgPermissionDefault + """The `OrgAdminGrant` that was created by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the `updateOrgPermissionDefault` mutation.""" -input UpdateOrgPermissionDefaultInput { +"""All input for the create `OrgAdminGrant` mutation.""" +input CreateOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgPermissionDefault` being updated. - """ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch! + """The `OrgAdminGrant` to be created by this mutation.""" + orgAdminGrant: OrgAdminGrantInput! } -""" -Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. -""" -input OrgPermissionDefaultPatch { +"""An input for mutations affecting `OrgAdminGrant`""" +input OrgAdminGrantInput { id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """References the entity these default permissions apply to""" - entityId: UUID + """The member receiving or losing the admin grant""" + actorId: UUID! + + """The entity (org or group) this admin grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { +"""The output of our create `OrgOwnerGrant` mutation.""" +type CreateOrgOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgOwnerGrant` that was created by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { +"""All input for the create `OrgOwnerGrant` mutation.""" +input CreateOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. - """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! + """The `OrgOwnerGrant` to be created by this mutation.""" + orgOwnerGrant: OrgOwnerGrantInput! } -""" -Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. -""" -input AppMembershipDefaultPatch { +"""An input for mutations affecting `OrgOwnerGrant`""" +input OrgOwnerGrantInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + """The member receiving or losing the ownership grant""" + actorId: UUID! + + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgAdminGrant` mutation.""" -type UpdateOrgAdminGrantPayload { +"""The output of our create `AppPermission` mutation.""" +type CreateAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgAdminGrant` that was updated by this mutation.""" - orgAdminGrant: OrgAdminGrant + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `updateOrgAdminGrant` mutation.""" -input UpdateOrgAdminGrantInput { +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgAdminGrant` being updated. - """ - orgAdminGrantPatch: OrgAdminGrantPatch! + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! } -""" -Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. -""" -input OrgAdminGrantPatch { +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { id: UUID - """True to grant admin, false to revoke admin""" - isGrant: Boolean + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """The member receiving or losing the admin grant""" - actorId: UUID + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """The entity (org or group) this admin grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `OrgMembershipDefault` mutation.""" -type UpdateOrgMembershipDefaultPayload { +"""The output of our create `OrgPermission` mutation.""" +type CreateOrgPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was updated by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the `updateOrgMembershipDefault` mutation.""" -input UpdateOrgMembershipDefaultInput { +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgMembershipDefault` being updated. - """ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch! + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! } -""" -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. -""" -input OrgMembershipDefaultPatch { +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """References the entity these membership defaults apply to""" - entityId: UUID + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `OrgOwnerGrant` mutation.""" -type UpdateOrgOwnerGrantPayload { +"""The output of our create `OrgChartEdgeGrant` mutation.""" +type CreateOrgChartEdgeGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgOwnerGrant` that was updated by this mutation.""" - orgOwnerGrant: OrgOwnerGrant + """The `OrgChartEdgeGrant` that was created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the `updateOrgOwnerGrant` mutation.""" -input UpdateOrgOwnerGrantInput { +"""All input for the create `OrgChartEdgeGrant` mutation.""" +input CreateOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgOwnerGrant` being updated. - """ - orgOwnerGrantPatch: OrgOwnerGrantPatch! + """The `OrgChartEdgeGrant` to be created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrantInput! } -""" -Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. -""" -input OrgOwnerGrantPatch { +"""An input for mutations affecting `OrgChartEdgeGrant`""" +input OrgChartEdgeGrantInput { id: UUID - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + """Organization this grant applies to""" + entityId: UUID! - """The member receiving or losing the ownership grant""" - actorId: UUID + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! - """The entity (org or group) this ownership grant applies to""" - entityId: UUID + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ grantorId: UUID + + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean + + """Job title or role name being assigned in this grant""" + positionTitle: String + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Timestamp when this grant or revocation was recorded""" createdAt: Datetime - updatedAt: Datetime } -"""The output of our update `AppLimitCapsDefault` mutation.""" -type UpdateAppLimitCapsDefaultPayload { +"""The output of our create `AppClaimedInvite` mutation.""" +type CreateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCapsDefault` that was updated by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault + """The `AppClaimedInvite` that was created by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `updateAppLimitCapsDefault` mutation.""" -input UpdateAppLimitCapsDefaultInput { +"""All input for the create `AppClaimedInvite` mutation.""" +input CreateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. - """ - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch! + """The `AppClaimedInvite` to be created by this mutation.""" + appClaimedInvite: AppClaimedInviteInput! } -""" -Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. -""" -input AppLimitCapsDefaultPatch { +"""An input for mutations affecting `AppClaimedInvite`""" +input AppClaimedInviteInput { id: UUID - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgLimitCapsDefault` mutation.""" -type UpdateOrgLimitCapsDefaultPayload { +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCapsDefault` that was updated by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `updateOrgLimitCapsDefault` mutation.""" -input UpdateOrgLimitCapsDefaultInput { +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. - """ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch! + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! } -""" -Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. -""" -input OrgLimitCapsDefaultPatch { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String - +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - max: BigInt -} + id: Int! -"""The output of our update `AppLimitCap` mutation.""" -type UpdateAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Human-readable name of the membership type""" + name: String! - """The `AppLimitCap` that was updated by this mutation.""" - appLimitCap: AppLimitCap + """Description of what this membership type represents""" + description: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Scope identifier for this membership type, used to resolve scope on module config tables """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} + scope: String! -"""All input for the `updateAppLimitCap` mutation.""" -input UpdateAppLimitCapInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - clientMutationId: String - id: UUID! + parentMembershipType: Int """ - An object where the defined keys will be set on the `AppLimitCap` being updated. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - appLimitCapPatch: AppLimitCapPatch! -} - -""" -Represents an update to a `AppLimitCap`. Fields that are set will be updated. -""" -input AppLimitCapPatch { - id: UUID - - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID - - """Override cap value for this entity""" - max: BigInt + hasUsersTableEntry: Boolean } -"""The output of our update `OrgLimitCap` mutation.""" -type UpdateOrgLimitCapPayload { +"""The output of our create `AppGrant` mutation.""" +type CreateAppGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCap` that was updated by this mutation.""" - orgLimitCap: OrgLimitCap + """The `AppGrant` that was created by this mutation.""" + appGrant: AppGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge } -"""All input for the `updateOrgLimitCap` mutation.""" -input UpdateOrgLimitCapInput { +"""All input for the create `AppGrant` mutation.""" +input CreateAppGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgLimitCap` being updated. - """ - orgLimitCapPatch: OrgLimitCapPatch! + """The `AppGrant` to be created by this mutation.""" + appGrant: AppGrantInput! } -""" -Represents an update to a `OrgLimitCap`. Fields that are set will be updated. -""" -input OrgLimitCapPatch { +"""An input for mutations affecting `AppGrant`""" +input AppGrantInput { id: UUID - """Name identifier of the cap being overridden""" - name: String + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """Entity this cap override applies to""" - entityId: UUID + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """Override cap value for this entity""" - max: BigInt + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgChartEdge` mutation.""" -type UpdateOrgChartEdgePayload { +"""The output of our create `AppMembershipDefault` mutation.""" +type CreateAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdge` that was updated by this mutation.""" - orgChartEdge: OrgChartEdge + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `updateOrgChartEdge` mutation.""" -input UpdateOrgChartEdgeInput { +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgChartEdge` being updated. - """ - orgChartEdgePatch: OrgChartEdgePatch! + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! } -""" -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. -""" -input OrgChartEdgePatch { +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { id: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Organization this hierarchy edge belongs to""" - entityId: UUID - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Job title or role name for this position in the org chart""" - positionTitle: String + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """Whether new members are automatically verified upon joining""" + isVerified: Boolean } -"""The output of our update `AppLimitCreditCodeItem` mutation.""" -type UpdateAppLimitCreditCodeItemPayload { +"""The output of our create `OrgMembershipDefault` mutation.""" +type CreateOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was updated by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the `updateAppLimitCreditCodeItem` mutation.""" -input UpdateAppLimitCreditCodeItemInput { +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. - """ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! } -""" -Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. -""" -input AppLimitCreditCodeItemPatch { +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID - - """Number of credits this item grants per redemption""" - amount: BigInt + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String + """References the entity these membership defaults apply to""" + entityId: UUID! } -"""The output of our update `AppLimitDefault` mutation.""" -type UpdateAppLimitDefaultPayload { +"""The output of our create `OrgClaimedInvite` mutation.""" +type CreateOrgClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was updated by this mutation.""" - appLimitDefault: AppLimitDefault + """The `OrgClaimedInvite` that was created by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the `updateAppLimitDefault` mutation.""" -input UpdateAppLimitDefaultInput { +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppLimitDefault` being updated. - """ - appLimitDefaultPatch: AppLimitDefaultPatch! + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! } -""" -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. -""" -input AppLimitDefaultPatch { +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { id: UUID - """Name identifier of the limit this default applies to""" - name: String + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Default maximum usage allowed for this limit""" - max: BigInt + """User ID of the original invitation sender""" + senderId: UUID - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! } -"""The output of our update `OrgLimitDefault` mutation.""" -type UpdateOrgLimitDefaultPayload { +"""The output of our create `OrgGrant` mutation.""" +type CreateOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was updated by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `OrgGrant` that was created by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `updateOrgLimitDefault` mutation.""" -input UpdateOrgLimitDefaultInput { +"""All input for the create `OrgGrant` mutation.""" +input CreateOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgLimitDefault` being updated. - """ - orgLimitDefaultPatch: OrgLimitDefaultPatch! + """The `OrgGrant` to be created by this mutation.""" + orgGrant: OrgGrantInput! } -""" -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. -""" -input OrgLimitDefaultPatch { +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { id: UUID - """Name identifier of the limit this default applies to""" - name: String + """Bitmask of permissions being granted or revoked""" + permissions: BitString + + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """Default maximum usage allowed for this limit""" - max: BigInt + """The member receiving or losing the permission grant""" + actorId: UUID! - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """The entity (org or group) this permission grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { +"""The output of our create `OrgChartEdge` mutation.""" +type CreateOrgChartEdgePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission + """The `OrgChartEdge` that was created by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + query: Query + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { +"""All input for the create `OrgChartEdge` mutation.""" +input CreateOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppPermission` being updated. - """ - appPermissionPatch: AppPermissionPatch! + """The `OrgChartEdge` to be created by this mutation.""" + orgChartEdge: OrgChartEdgeInput! } -""" -Represents an update to a `AppPermission`. Fields that are set will be updated. -""" -input AppPermissionPatch { +"""An input for mutations affecting `OrgChartEdge`""" +input OrgChartEdgeInput { id: UUID + createdAt: Datetime + updatedAt: Datetime - """Human-readable permission name (e.g. read, write, manage)""" - name: String + """Organization this hierarchy edge belongs to""" + entityId: UUID! - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + User ID of the manager; NULL indicates a top-level position with no direct report """ - bitstr: BitString + parentId: UUID - """Human-readable description of what this permission allows""" - description: String + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgPermission` being updated. - """ - orgPermissionPatch: OrgPermissionPatch! + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! } -""" -Represents an update to a `OrgPermission`. Fields that are set will be updated. -""" -input OrgPermissionPatch { +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String + """References the entity these settings apply to""" + entityId: UUID! """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - bitnum: Int + deleteMemberCascadeChildren: Boolean """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} + createChildCascadeOwners: Boolean -"""The output of our update `AppLimitCreditCode` mutation.""" -type UpdateAppLimitCreditCodePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - clientMutationId: String - - """The `AppLimitCreditCode` that was updated by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + createChildCascadeAdmins: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - query: Query - - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge -} + createChildCascadeMembers: Boolean -"""All input for the `updateAppLimitCreditCode` mutation.""" -input UpdateAppLimitCreditCodeInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - clientMutationId: String - id: UUID! + allowExternalMembers: Boolean """ - An object where the defined keys will be set on the `AppLimitCreditCode` being updated. + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) """ - appLimitCreditCodePatch: AppLimitCreditCodePatch! -} - -""" -Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. -""" -input AppLimitCreditCodePatch { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int + inviteProfileAssignmentMode: String """ - Current number of redemptions (incremented by trigger on credit_redemptions) + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. """ - currentRedemptions: Int + populateMemberEmail: Boolean - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String } -"""The output of our update `AppLimitWarning` mutation.""" -type UpdateAppLimitWarningPayload { +"""The output of our create `AppMembership` mutation.""" +type CreateAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitWarning` that was updated by this mutation.""" - appLimitWarning: AppLimitWarning + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `updateAppLimitWarning` mutation.""" -input UpdateAppLimitWarningInput { +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppLimitWarning` being updated. - """ - appLimitWarningPatch: AppLimitWarningPatch! + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! } -""" -Represents an update to a `AppLimitWarning`. Fields that are set will be updated. -""" -input AppLimitWarningPatch { +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Limit name this warning applies to (must match a default_limits entry)""" - name: String + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean + + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Aggregated permission bitmask combining profile-based and directly granted permissions """ - thresholdValue: BigInt + permissions: BitString """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Bitmask of permissions directly granted to this member (not from profiles) """ - taskIdentifier: String + granted: BitString + + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID } -"""The output of our update `OrgChartEdgeGrant` mutation.""" -type UpdateOrgChartEdgeGrantPayload { +"""The output of our create `AppInvite` mutation.""" +type CreateAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdgeGrant` that was updated by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `AppInvite` that was created by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `updateOrgChartEdgeGrant` mutation.""" -input UpdateOrgChartEdgeGrantInput { +"""All input for the create `AppInvite` mutation.""" +input CreateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. - """ - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch! + """The `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! } -""" -Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. -""" -input OrgChartEdgeGrantPatch { +"""An input for mutations affecting `AppInvite`""" +input AppInviteInput { id: UUID - """Organization this grant applies to""" - entityId: UUID + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID + """User ID of the member who sent this invitation""" + senderId: UUID - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID + """Unique random hex token used to redeem this invitation""" + inviteToken: String - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """Job title or role name being assigned in this grant""" - positionTitle: String + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID - """Timestamp when this grant or revocation was recorded""" + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppLimitCredit` mutation.""" -type UpdateAppLimitCreditPayload { +"""The output of our create `OrgMembership` mutation.""" +type CreateOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCredit` that was updated by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `updateAppLimitCredit` mutation.""" -input UpdateAppLimitCreditInput { +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppLimitCredit` being updated. - """ - appLimitCreditPatch: AppLimitCreditPatch! + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! } -""" -Represents an update to a `AppLimitCredit`. Fields that are set will be updated. -""" -input AppLimitCreditPatch { +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean + + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Bitmask of permissions directly granted to this member (not from profiles) """ - creditType: String + granted: BitString + + """References the user who holds this membership""" + actorId: UUID! - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } -"""The output of our update `OrgLimitCredit` mutation.""" -type UpdateOrgLimitCreditPayload { +"""The output of our create `OrgMemberProfile` mutation.""" +type CreateOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCredit` that was updated by this mutation.""" - orgLimitCredit: OrgLimitCredit + """The `OrgMemberProfile` that was created by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `updateOrgLimitCredit` mutation.""" -input UpdateOrgLimitCreditInput { +"""All input for the create `OrgMemberProfile` mutation.""" +input CreateOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `OrgLimitCredit` being updated. - """ - orgLimitCreditPatch: OrgLimitCreditPatch! + """The `OrgMemberProfile` to be created by this mutation.""" + orgMemberProfile: OrgMemberProfileInput! } -""" -Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. -""" -input OrgLimitCreditPatch { +"""An input for mutations affecting `OrgMemberProfile`""" +input OrgMemberProfileInput { id: UUID + createdAt: Datetime + updatedAt: Datetime - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt + """Display name shown to other entity members""" + displayName: String """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Email address visible to other entity members (auto-populated from verified primary email) """ - creditType: String + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage } -"""The output of our update `AppClaimedInvite` mutation.""" -type UpdateAppClaimedInvitePayload { +"""The output of our create `OrgInvite` mutation.""" +type CreateOrgInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was updated by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge } -"""All input for the `updateAppClaimedInvite` mutation.""" -input UpdateAppClaimedInviteInput { +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - """ - An object where the defined keys will be set on the `AppClaimedInvite` being updated. - """ - appClaimedInvitePatch: AppClaimedInvitePatch! + """The `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! } -""" -Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. -""" -input AppClaimedInvitePatch { +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """User ID of the original invitation sender""" + """User ID of the member who sent this invitation""" senderId: UUID - """User ID of the person who claimed and redeemed the invitation""" + """User ID of the intended recipient, if targeting a specific user""" receiverId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgLimitWarning` mutation.""" -type UpdateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - """The `OrgLimitWarning` that was updated by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} + """Unique random hex token used to redeem this invitation""" + inviteToken: String -"""All input for the `updateOrgLimitWarning` mutation.""" -input UpdateOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean - """ - An object where the defined keys will be set on the `OrgLimitWarning` being updated. - """ - orgLimitWarningPatch: OrgLimitWarningPatch! -} + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int -""" -Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. -""" -input OrgLimitWarningPatch { - id: UUID + """Running count of how many times this invite has been claimed""" + inviteCount: Int - """Limit name this warning applies to (must match a default_limits entry)""" - name: String + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - thresholdValue: BigInt + profileId: UUID """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Whether the resulting membership should be read-only when this invite is claimed """ - taskIdentifier: String + isReadOnly: Boolean - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! } -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { +"""The output of our update `OrgMember` mutation.""" +type UpdateOrgMemberPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType + """The `OrgMember` that was updated by this mutation.""" + orgMember: OrgMember """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge } -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { +"""All input for the `updateOrgMember` mutation.""" +input UpdateOrgMemberInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """ - An object where the defined keys will be set on the `MembershipType` being updated. + An object where the defined keys will be set on the `OrgMember` being updated. """ - membershipTypePatch: MembershipTypePatch! + orgMemberPatch: OrgMemberPatch! } """ -Represents an update to a `MembershipType`. Fields that are set will be updated. -""" -input MembershipTypePatch { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int - - """Human-readable name of the membership type""" - name: String - - """Description of what this membership type represents""" - description: String +Represents an update to a `OrgMember`. Fields that are set will be updated. +""" +input OrgMemberPatch { + id: UUID - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String + """Whether this member has admin privileges""" + isAdmin: Boolean - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """References the user who is a member""" + actorId: UUID - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean + """References the entity (org or group) this member belongs to""" + entityId: UUID } -"""The output of our update `AppGrant` mutation.""" -type UpdateAppGrantPayload { +"""The output of our update `AppPermissionDefault` mutation.""" +type UpdateAppPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppGrant` that was updated by this mutation.""" - appGrant: AppGrant + """The `AppPermissionDefault` that was updated by this mutation.""" + appPermissionDefault: AppPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge } -"""All input for the `updateAppGrant` mutation.""" -input UpdateAppGrantInput { +"""All input for the `updateAppPermissionDefault` mutation.""" +input UpdateAppPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12614,55 +6536,46 @@ input UpdateAppGrantInput { id: UUID! """ - An object where the defined keys will be set on the `AppGrant` being updated. + An object where the defined keys will be set on the `AppPermissionDefault` being updated. """ - appGrantPatch: AppGrantPatch! + appPermissionDefaultPatch: AppPermissionDefaultPatch! } """ -Represents an update to a `AppGrant`. Fields that are set will be updated. +Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. """ -input AppGrantPatch { +input AppPermissionDefaultPatch { id: UUID - """Bitmask of permissions being granted or revoked""" + """Default permission bitmask applied to new members""" permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime } -"""The output of our update `OrgClaimedInvite` mutation.""" -type UpdateOrgClaimedInvitePayload { +"""The output of our update `OrgPermissionDefault` mutation.""" +type UpdateOrgPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgClaimedInvite` that was updated by this mutation.""" - orgClaimedInvite: OrgClaimedInvite + """The `OrgPermissionDefault` that was updated by this mutation.""" + orgPermissionDefault: OrgPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge } -"""All input for the `updateOrgClaimedInvite` mutation.""" -input UpdateOrgClaimedInviteInput { +"""All input for the `updateOrgPermissionDefault` mutation.""" +input UpdateOrgPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12671,55 +6584,49 @@ input UpdateOrgClaimedInviteInput { id: UUID! """ - An object where the defined keys will be set on the `OrgClaimedInvite` being updated. + An object where the defined keys will be set on the `OrgPermissionDefault` being updated. """ - orgClaimedInvitePatch: OrgClaimedInvitePatch! + orgPermissionDefaultPatch: OrgPermissionDefaultPatch! } """ -Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. +Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. """ -input OrgClaimedInvitePatch { +input OrgPermissionDefaultPatch { id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID + """Default permission bitmask applied to new members""" + permissions: BitString - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime + """References the entity these default permissions apply to""" entityId: UUID } -"""The output of our update `OrgGrant` mutation.""" -type UpdateOrgGrantPayload { +"""The output of our update `AppAdminGrant` mutation.""" +type UpdateAppAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgGrant` that was updated by this mutation.""" - orgGrant: OrgGrant + """The `AppAdminGrant` that was updated by this mutation.""" + appAdminGrant: AppAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge } -"""All input for the `updateOrgGrant` mutation.""" -input UpdateOrgGrantInput { +"""All input for the `updateAppAdminGrant` mutation.""" +input UpdateAppAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12728,58 +6635,52 @@ input UpdateOrgGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgGrant` being updated. + An object where the defined keys will be set on the `AppAdminGrant` being updated. """ - orgGrantPatch: OrgGrantPatch! + appAdminGrantPatch: AppAdminGrantPatch! } """ -Represents an update to a `OrgGrant`. Fields that are set will be updated. +Represents an update to a `AppAdminGrant`. Fields that are set will be updated. """ -input OrgGrantPatch { +input AppAdminGrantPatch { id: UUID - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" + """True to grant admin, false to revoke admin""" isGrant: Boolean - """The member receiving or losing the permission grant""" + """The member receiving or losing the admin grant""" actorId: UUID - - """The entity (org or group) this permission grant applies to""" - entityId: UUID grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { +"""The output of our update `AppOwnerGrant` mutation.""" +type UpdateAppOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `AppOwnerGrant` that was updated by this mutation.""" + appOwnerGrant: AppOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge } -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { +"""All input for the `updateAppOwnerGrant` mutation.""" +input UpdateAppOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12788,266 +6689,166 @@ input UpdateOrgMembershipSettingInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + An object where the defined keys will be set on the `AppOwnerGrant` being updated. """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! + appOwnerGrantPatch: AppOwnerGrantPatch! } """ -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. """ -input OrgMembershipSettingPatch { +input AppOwnerGrantPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String + """The member receiving or losing the ownership grant""" + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppLimitEvent` mutation.""" -type UpdateAppLimitEventPayload { +"""The output of our update `OrgAdminGrant` mutation.""" +type UpdateOrgAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitEvent` that was updated by this mutation.""" - appLimitEvent: AppLimitEvent + """The `OrgAdminGrant` that was updated by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the `updateAppLimitEvent` mutation.""" -input UpdateAppLimitEventInput { +"""All input for the `updateOrgAdminGrant` mutation.""" +input UpdateOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `AppLimitEvent` being updated. + An object where the defined keys will be set on the `OrgAdminGrant` being updated. """ - appLimitEventPatch: AppLimitEventPatch! + orgAdminGrantPatch: OrgAdminGrantPatch! } """ -Represents an update to a `AppLimitEvent`. Fields that are set will be updated. -""" -input AppLimitEventPatch { - createdAt: Datetime - - """Unique identifier for each limit event""" - id: UUID - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt +Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. +""" +input OrgAdminGrantPatch { + id: UUID - """Usage count after this event""" - numAfter: BigInt + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """The member receiving or losing the admin grant""" + actorId: UUID - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String + """The entity (org or group) this admin grant applies to""" + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgLimitEvent` mutation.""" -type UpdateOrgLimitEventPayload { +"""The output of our update `OrgOwnerGrant` mutation.""" +type UpdateOrgOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitEvent` that was updated by this mutation.""" - orgLimitEvent: OrgLimitEvent + """The `OrgOwnerGrant` that was updated by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the `updateOrgLimitEvent` mutation.""" -input UpdateOrgLimitEventInput { +"""All input for the `updateOrgOwnerGrant` mutation.""" +input UpdateOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `OrgLimitEvent` being updated. + An object where the defined keys will be set on the `OrgOwnerGrant` being updated. """ - orgLimitEventPatch: OrgLimitEventPatch! + orgOwnerGrantPatch: OrgOwnerGrantPatch! } """ -Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. +Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. """ -input OrgLimitEventPatch { - createdAt: Datetime - - """Unique identifier for each limit event""" +input OrgOwnerGrantPatch { id: UUID - """Limit name this event applies to""" - name: String + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean - """User who triggered this event; NULL for system/aggregate events""" + """The member receiving or losing the ownership grant""" actorId: UUID - """Entity this event applies to; NULL for app-level events""" + """The entity (org or group) this ownership grant applies to""" entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppMembership` mutation.""" -type UpdateAppMembershipPayload { +"""The output of our update `AppPermission` mutation.""" +type UpdateAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was updated by this mutation.""" - appMembership: AppMembership + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `updateAppMembership` mutation.""" -input UpdateAppMembershipInput { +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13056,84 +6857,59 @@ input UpdateAppMembershipInput { id: UUID! """ - An object where the defined keys will be set on the `AppMembership` being updated. + An object where the defined keys will be set on the `AppPermission` being updated. """ - appMembershipPatch: AppMembershipPatch! + appPermissionPatch: AppPermissionPatch! } """ -Represents an update to a `AppMembership`. Fields that are set will be updated. +Represents an update to a `AppPermission`. Fields that are set will be updated. """ -input AppMembershipPatch { +input AppPermissionPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """Human-readable permission name (e.g. read, write, manage)""" + name: String """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Position of this permission in the bitmask (1-indexed), must be unique per permission set """ - permissions: BitString + bitnum: Int """ - Bitmask of permissions directly granted to this member (not from profiles) + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations """ - granted: BitString + bitstr: BitString - """References the user who holds this membership""" - actorId: UUID - profileId: UUID + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `OrgMembership` mutation.""" -type UpdateOrgMembershipPayload { +"""The output of our update `OrgPermission` mutation.""" +type UpdateOrgPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembership` that was updated by this mutation.""" - orgMembership: OrgMembership + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the `updateOrgMembership` mutation.""" -input UpdateOrgMembershipInput { +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13142,92 +6918,59 @@ input UpdateOrgMembershipInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembership` being updated. + An object where the defined keys will be set on the `OrgPermission` being updated. """ - orgMembershipPatch: OrgMembershipPatch! + orgPermissionPatch: OrgPermissionPatch! } """ -Represents an update to a `OrgMembership`. Fields that are set will be updated. +Represents an update to a `OrgPermission`. Fields that are set will be updated. """ -input OrgMembershipPatch { +input OrgPermissionPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """Human-readable permission name (e.g. read, write, manage)""" + name: String """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Position of this permission in the bitmask (1-indexed), must be unique per permission set """ - permissions: BitString + bitnum: Int """ - Bitmask of permissions directly granted to this member (not from profiles) + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - - """References the entity (org or group) this membership belongs to""" - entityId: UUID + bitstr: BitString - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `OrgMemberProfile` mutation.""" -type UpdateOrgMemberProfilePayload { +"""The output of our update `OrgChartEdgeGrant` mutation.""" +type UpdateOrgChartEdgeGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was updated by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `OrgChartEdgeGrant` that was updated by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the `updateOrgMemberProfile` mutation.""" -input UpdateOrgMemberProfileInput { +"""All input for the `updateOrgChartEdgeGrant` mutation.""" +input UpdateOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13236,77 +6979,69 @@ input UpdateOrgMemberProfileInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMemberProfile` being updated. + An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. """ - orgMemberProfilePatch: OrgMemberProfilePatch! + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch! } """ -Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. """ -input OrgMemberProfilePatch { +input OrgChartEdgeGrantPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - """References the membership this profile belongs to (1:1)""" - membershipId: UUID - - """References the entity this profile belongs to (used for RLS lookups)""" + """Organization this grant applies to""" entityId: UUID - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID - """Display name shown to other entity members""" - displayName: String + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID """ - Email address visible to other entity members (auto-populated from verified primary email) + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - email: String + grantorId: UUID - """Job title or role description visible to other entity members""" - title: String + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean - """Short biography visible to other entity members""" - bio: String + """Job title or role name being assigned in this grant""" + positionTitle: String - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Numeric seniority level being assigned in this grant""" + positionLevel: Int - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - -"""The output of our update `AppInvite` mutation.""" -type UpdateAppInvitePayload { +"""The output of our update `AppClaimedInvite` mutation.""" +type UpdateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite + """The `AppClaimedInvite` that was updated by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `updateAppInvite` mutation.""" -input UpdateAppInviteInput { +"""All input for the `updateAppClaimedInvite` mutation.""" +input UpdateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13315,170 +7050,127 @@ input UpdateAppInviteInput { id: UUID! """ - An object where the defined keys will be set on the `AppInvite` being updated. + An object where the defined keys will be set on the `AppClaimedInvite` being updated. """ - appInvitePatch: AppInvitePatch! + appClaimedInvitePatch: AppClaimedInvitePatch! } """ -Represents an update to a `AppInvite`. Fields that are set will be updated. +Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. """ -input AppInvitePatch { +input AppClaimedInvitePatch { id: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" + """Optional JSON payload captured at the time the invite was claimed""" data: JSON - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID + """User ID of the original invitation sender""" + senderId: UUID - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID createdAt: Datetime updatedAt: Datetime } -"""The output of our update `AppLimit` mutation.""" -type UpdateAppLimitPayload { +"""The output of our update `MembershipType` mutation.""" +type UpdateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimit` that was updated by this mutation.""" - appLimit: AppLimit + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `updateAppLimit` mutation.""" -input UpdateAppLimitInput { +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! """ - An object where the defined keys will be set on the `AppLimit` being updated. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - appLimitPatch: AppLimitPatch! -} - -""" -Represents an update to a `AppLimit`. Fields that are set will be updated. -""" -input AppLimitPatch { - id: UUID - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID - - """Current usage count for this actor and limit""" - num: BigInt + id: Int! """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + An object where the defined keys will be set on the `MembershipType` being updated. """ - max: BigInt + membershipTypePatch: MembershipTypePatch! +} +""" +Represents an update to a `MembershipType`. Fields that are set will be updated. +""" +input MembershipTypePatch { """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - softMax: BigInt + id: Int - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """Human-readable name of the membership type""" + name: String - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput + """Description of what this membership type represents""" + description: String """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + Scope identifier for this membership type, used to resolve scope on module config tables """ - planMax: BigInt + scope: String """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - purchasedCredits: BigInt + parentMembershipType: Int """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - periodCredits: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String + hasUsersTableEntry: Boolean } -"""The output of our update `OrgLimitAggregate` mutation.""" -type UpdateOrgLimitAggregatePayload { +"""The output of our update `AppGrant` mutation.""" +type UpdateAppGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitAggregate` that was updated by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """The `AppGrant` that was updated by this mutation.""" + appGrant: AppGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge } -"""All input for the `updateOrgLimitAggregate` mutation.""" -input UpdateOrgLimitAggregateInput { +"""All input for the `updateAppGrant` mutation.""" +input UpdateAppGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13487,92 +7179,110 @@ input UpdateOrgLimitAggregateInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitAggregate` being updated. + An object where the defined keys will be set on the `AppGrant` being updated. """ - orgLimitAggregatePatch: OrgLimitAggregatePatch! + appGrantPatch: AppGrantPatch! } """ -Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. +Represents an update to a `AppGrant`. Fields that are set will be updated. """ -input OrgLimitAggregatePatch { +input AppGrantPatch { id: UUID - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """The member receiving or losing the permission grant""" + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our update `AppMembershipDefault` mutation.""" +type UpdateAppMembershipDefaultPayload { """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - windowDuration: IntervalInput + clientMutationId: String - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + Our root query field type. Allows us to run any query from our mutation payload. """ - purchasedCredits: BigInt + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - periodCredits: BigInt + clientMutationId: String + id: UUID! """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + An object where the defined keys will be set on the `AppMembershipDefault` being updated. """ - reserved: BigInt + appMembershipDefaultPatch: AppMembershipDefaultPatch! +} + +""" +Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +""" +input AppMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Resolved billable organization via get_organization_id""" - organizationId: UUID + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String + """Whether new members are automatically verified upon joining""" + isVerified: Boolean } -"""The output of our update `OrgLimit` mutation.""" -type UpdateOrgLimitPayload { +"""The output of our update `OrgMembershipDefault` mutation.""" +type UpdateOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was updated by this mutation.""" - orgLimit: OrgLimit + """The `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the `updateOrgLimit` mutation.""" -input UpdateOrgLimitInput { +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13581,92 +7291,110 @@ input UpdateOrgLimitInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimit` being updated. + An object where the defined keys will be set on the `OrgMembershipDefault` being updated. """ - orgLimitPatch: OrgLimitPatch! + orgMembershipDefaultPatch: OrgMembershipDefaultPatch! } """ -Represents an update to a `OrgLimit`. Fields that are set will be updated. +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. """ -input OrgLimitPatch { +input OrgMembershipDefaultPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """Current usage count for this actor and limit""" - num: BigInt + """References the entity these membership defaults apply to""" + entityId: UUID +} +"""The output of our update `OrgClaimedInvite` mutation.""" +type UpdateOrgClaimedInvitePayload { """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - max: BigInt + clientMutationId: String + + """The `OrgClaimedInvite` that was updated by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + Our root query field type. Allows us to run any query from our mutation payload. """ - softMax: BigInt + query: Query - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the `updateOrgClaimedInvite` mutation.""" +input UpdateOrgClaimedInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + An object where the defined keys will be set on the `OrgClaimedInvite` being updated. """ - windowDuration: IntervalInput + orgClaimedInvitePatch: OrgClaimedInvitePatch! +} + +""" +Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. +""" +input OrgClaimedInvitePatch { + id: UUID - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """User ID of the original invitation sender""" + senderId: UUID - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime entityId: UUID - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String } -"""The output of our update `OrgInvite` mutation.""" -type UpdateOrgInvitePayload { +"""The output of our update `OrgGrant` mutation.""" +type UpdateOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgInvite` that was updated by this mutation.""" - orgInvite: OrgInvite + """The `OrgGrant` that was updated by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `updateOrgInvite` mutation.""" -input UpdateOrgInviteInput { +"""All input for the `updateOrgGrant` mutation.""" +input UpdateOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13675,581 +7403,640 @@ input UpdateOrgInviteInput { id: UUID! """ - An object where the defined keys will be set on the `OrgInvite` being updated. + An object where the defined keys will be set on the `OrgGrant` being updated. """ - orgInvitePatch: OrgInvitePatch! + orgGrantPatch: OrgGrantPatch! } """ -Represents an update to a `OrgInvite`. Fields that are set will be updated. +Represents an update to a `OrgGrant`. Fields that are set will be updated. """ -input OrgInvitePatch { +input OrgGrantPatch { id: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean + """The member receiving or losing the permission grant""" + actorId: UUID - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime + """The entity (org or group) this permission grant applies to""" + entityId: UUID + grantorId: UUID createdAt: Datetime updatedAt: Datetime - entityId: UUID } -"""The output of our delete `AppLimitCreditRedemption` mutation.""" -type DeleteAppLimitCreditRedemptionPayload { +"""The output of our update `OrgChartEdge` mutation.""" +type UpdateOrgChartEdgePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditRedemption` that was deleted by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption + """The `OrgChartEdge` that was updated by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the `deleteAppLimitCreditRedemption` mutation.""" -input DeleteAppLimitCreditRedemptionInput { +"""All input for the `updateOrgChartEdge` mutation.""" +input UpdateOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! -} -"""The output of our delete `OrgMember` mutation.""" -type DeleteOrgMemberPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + An object where the defined keys will be set on the `OrgChartEdge` being updated. """ - clientMutationId: String + orgChartEdgePatch: OrgChartEdgePatch! +} - """The `OrgMember` that was deleted by this mutation.""" - orgMember: OrgMember +""" +Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +""" +input OrgChartEdgePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Organization this hierarchy edge belongs to""" + entityId: UUID - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge -} + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID -"""All input for the `deleteOrgMember` mutation.""" -input DeleteOrgMemberInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + User ID of the manager; NULL indicates a top-level position with no direct report """ - clientMutationId: String - id: UUID! + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""The output of our delete `AppPermissionDefault` mutation.""" -type DeleteAppPermissionDefaultPayload { +"""The output of our update `OrgMembershipSetting` mutation.""" +type UpdateOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermissionDefault` that was deleted by this mutation.""" - appPermissionDefault: AppPermissionDefault + """The `OrgMembershipSetting` that was updated by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `deleteAppPermissionDefault` mutation.""" -input DeleteAppPermissionDefaultInput { +"""All input for the `updateOrgMembershipSetting` mutation.""" +input UpdateOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! -} -"""The output of our delete `AppAdminGrant` mutation.""" -type DeleteAppAdminGrantPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + An object where the defined keys will be set on the `OrgMembershipSetting` being updated. """ - clientMutationId: String + orgMembershipSettingPatch: OrgMembershipSettingPatch! +} - """The `AppAdminGrant` that was deleted by this mutation.""" - appAdminGrant: AppAdminGrant +""" +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +""" +input OrgMembershipSettingPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" + entityId: UUID """ - Our root query field type. Allows us to run any query from our mutation payload. + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - query: Query + deleteMemberCascadeChildren: Boolean - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge -} + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean -"""All input for the `deleteAppAdminGrant` mutation.""" -input DeleteAppAdminGrantInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - clientMutationId: String - id: UUID! -} + createChildCascadeAdmins: Boolean -"""The output of our delete `AppOwnerGrant` mutation.""" -type DeleteAppOwnerGrantPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - clientMutationId: String + createChildCascadeMembers: Boolean - """The `AppOwnerGrant` that was deleted by this mutation.""" - appOwnerGrant: AppOwnerGrant + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) """ - query: Query + inviteProfileAssignmentMode: String - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge -} + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean -"""All input for the `deleteAppOwnerGrant` mutation.""" -input DeleteAppOwnerGrantInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) """ - clientMutationId: String - id: UUID! + limitAllocationMode: String } -"""The output of our delete `OrgPermissionDefault` mutation.""" -type DeleteOrgPermissionDefaultPayload { +"""The output of our update `AppMembership` mutation.""" +type UpdateAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermissionDefault` that was deleted by this mutation.""" - orgPermissionDefault: OrgPermissionDefault + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `deleteOrgPermissionDefault` mutation.""" -input DeleteOrgPermissionDefaultInput { +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! -} -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + An object where the defined keys will be set on the `AppMembership` being updated. """ - clientMutationId: String + appMembershipPatch: AppMembershipPatch! +} - """The `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault +""" +Represents an update to a `AppMembership`. Fields that are set will be updated. +""" +input AppMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - query: Query + isActive: Boolean - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge -} + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean -"""All input for the `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - clientMutationId: String - id: UUID! + permissions: BitString + + """ + Bitmask of permissions directly granted to this member (not from profiles) + """ + granted: BitString + + """References the user who holds this membership""" + actorId: UUID + profileId: UUID } -"""The output of our delete `OrgAdminGrant` mutation.""" -type DeleteOrgAdminGrantPayload { +"""The output of our update `AppInvite` mutation.""" +type UpdateAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgAdminGrant` that was deleted by this mutation.""" - orgAdminGrant: OrgAdminGrant + """The `AppInvite` that was updated by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `deleteOrgAdminGrant` mutation.""" -input DeleteOrgAdminGrantInput { +"""All input for the `updateAppInvite` mutation.""" +input UpdateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! -} -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + An object where the defined keys will be set on the `AppInvite` being updated. """ - clientMutationId: String + appInvitePatch: AppInvitePatch! +} - """The `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault +""" +Represents an update to a `AppInvite`. Fields that are set will be updated. +""" +input AppInvitePatch { + id: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} + """User ID of the member who sent this invitation""" + senderId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - clientMutationId: String - id: UUID! + profileId: UUID + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime } -"""The output of our delete `OrgOwnerGrant` mutation.""" -type DeleteOrgOwnerGrantPayload { +"""The output of our update `OrgMembership` mutation.""" +type UpdateOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgOwnerGrant` that was deleted by this mutation.""" - orgOwnerGrant: OrgOwnerGrant + """The `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `deleteOrgOwnerGrant` mutation.""" -input DeleteOrgOwnerGrantInput { +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! -} -"""The output of our delete `AppLimitCapsDefault` mutation.""" -type DeleteAppLimitCapsDefaultPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + An object where the defined keys will be set on the `OrgMembership` being updated. """ - clientMutationId: String + orgMembershipPatch: OrgMembershipPatch! +} - """The `AppLimitCapsDefault` that was deleted by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault +""" +Represents an update to a `OrgMembership`. Fields that are set will be updated. +""" +input OrgMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean -"""All input for the `deleteAppLimitCapsDefault` mutation.""" -input DeleteAppLimitCapsDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - clientMutationId: String - id: UUID! -} + isActive: Boolean -"""The output of our delete `OrgLimitCapsDefault` mutation.""" -type DeleteOrgLimitCapsDefaultPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. """ - clientMutationId: String + isExternal: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """The `OrgLimitCapsDefault` that was deleted by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} + permissions: BitString -"""All input for the `deleteOrgLimitCapsDefault` mutation.""" -input DeleteOrgLimitCapsDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Bitmask of permissions directly granted to this member (not from profiles) """ - clientMutationId: String - id: UUID! + granted: BitString + + """References the user who holds this membership""" + actorId: UUID + + """References the entity (org or group) this membership belongs to""" + entityId: UUID + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } -"""The output of our delete `AppLimitCap` mutation.""" -type DeleteAppLimitCapPayload { +"""The output of our update `OrgMemberProfile` mutation.""" +type UpdateOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCap` that was deleted by this mutation.""" - appLimitCap: AppLimitCap + """The `OrgMemberProfile` that was updated by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `deleteAppLimitCap` mutation.""" -input DeleteAppLimitCapInput { +"""All input for the `updateOrgMemberProfile` mutation.""" +input UpdateOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! + + """ + An object where the defined keys will be set on the `OrgMemberProfile` being updated. + """ + orgMemberProfilePatch: OrgMemberProfilePatch! +} + +""" +Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +""" +input OrgMemberProfilePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID + + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Upload for Profile picture visible to other entity members""" + profilePictureUpload: Upload } -"""The output of our delete `OrgLimitCap` mutation.""" -type DeleteOrgLimitCapPayload { +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + +"""The output of our update `OrgInvite` mutation.""" +type UpdateOrgInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCap` that was deleted by this mutation.""" - orgLimitCap: OrgLimitCap + """The `OrgInvite` that was updated by this mutation.""" + orgInvite: OrgInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge } -"""All input for the `deleteOrgLimitCap` mutation.""" -input DeleteOrgLimitCapInput { +"""All input for the `updateOrgInvite` mutation.""" +input UpdateOrgInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! -} -"""The output of our delete `OrgChartEdge` mutation.""" -type DeleteOrgChartEdgePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + An object where the defined keys will be set on the `OrgInvite` being updated. """ - clientMutationId: String + orgInvitePatch: OrgInvitePatch! +} - """The `OrgChartEdge` that was deleted by this mutation.""" - orgChartEdge: OrgChartEdge +""" +Represents an update to a `OrgInvite`. Fields that are set will be updated. +""" +input OrgInvitePatch { + id: UUID + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} + profileId: UUID -"""All input for the `deleteOrgChartEdge` mutation.""" -input DeleteOrgChartEdgeInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Whether the resulting membership should be read-only when this invite is claimed """ - clientMutationId: String - id: UUID! + isReadOnly: Boolean + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID } -"""The output of our delete `AppLimitCreditCodeItem` mutation.""" -type DeleteAppLimitCreditCodeItemPayload { +"""The output of our delete `OrgMember` mutation.""" +type DeleteOrgMemberPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `OrgMember` that was deleted by this mutation.""" + orgMember: OrgMember """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge } -"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" -input DeleteAppLimitCreditCodeItemInput { +"""All input for the `deleteOrgMember` mutation.""" +input DeleteOrgMemberInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14258,31 +8045,31 @@ input DeleteAppLimitCreditCodeItemInput { id: UUID! } -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { +"""The output of our delete `AppPermissionDefault` mutation.""" +type DeleteAppPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppPermissionDefault` that was deleted by this mutation.""" + appPermissionDefault: AppPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge } -"""All input for the `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { +"""All input for the `deleteAppPermissionDefault` mutation.""" +input DeleteAppPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14291,31 +8078,31 @@ input DeleteAppLimitDefaultInput { id: UUID! } -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { +"""The output of our delete `OrgPermissionDefault` mutation.""" +type DeleteOrgPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `OrgPermissionDefault` that was deleted by this mutation.""" + orgPermissionDefault: OrgPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge } -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { +"""All input for the `deleteOrgPermissionDefault` mutation.""" +input DeleteOrgPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14324,31 +8111,31 @@ input DeleteOrgLimitDefaultInput { id: UUID! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { +"""The output of our delete `AppAdminGrant` mutation.""" +type DeleteAppAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission + """The `AppAdminGrant` that was deleted by this mutation.""" + appAdminGrant: AppAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge } -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { +"""All input for the `deleteAppAdminGrant` mutation.""" +input DeleteAppAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14357,31 +8144,31 @@ input DeleteAppPermissionInput { id: UUID! } -"""The output of our delete `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { +"""The output of our delete `AppOwnerGrant` mutation.""" +type DeleteAppOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission + """The `AppOwnerGrant` that was deleted by this mutation.""" + appOwnerGrant: AppOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge } -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { +"""All input for the `deleteAppOwnerGrant` mutation.""" +input DeleteAppOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14390,31 +8177,31 @@ input DeleteOrgPermissionInput { id: UUID! } -"""The output of our delete `AppLimitCreditCode` mutation.""" -type DeleteAppLimitCreditCodePayload { +"""The output of our delete `OrgAdminGrant` mutation.""" +type DeleteOrgAdminGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCreditCode` that was deleted by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `OrgAdminGrant` that was deleted by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the `deleteAppLimitCreditCode` mutation.""" -input DeleteAppLimitCreditCodeInput { +"""All input for the `deleteOrgAdminGrant` mutation.""" +input DeleteOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14423,31 +8210,31 @@ input DeleteAppLimitCreditCodeInput { id: UUID! } -"""The output of our delete `AppLimitWarning` mutation.""" -type DeleteAppLimitWarningPayload { +"""The output of our delete `OrgOwnerGrant` mutation.""" +type DeleteOrgOwnerGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitWarning` that was deleted by this mutation.""" - appLimitWarning: AppLimitWarning + """The `OrgOwnerGrant` that was deleted by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the `deleteAppLimitWarning` mutation.""" -input DeleteAppLimitWarningInput { +"""All input for the `deleteOrgOwnerGrant` mutation.""" +input DeleteOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14456,31 +8243,31 @@ input DeleteAppLimitWarningInput { id: UUID! } -"""The output of our delete `OrgChartEdgeGrant` mutation.""" -type DeleteOrgChartEdgeGrantPayload { +"""The output of our delete `AppPermission` mutation.""" +type DeleteAppPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdgeGrant` that was deleted by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `deleteOrgChartEdgeGrant` mutation.""" -input DeleteOrgChartEdgeGrantInput { +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14489,31 +8276,31 @@ input DeleteOrgChartEdgeGrantInput { id: UUID! } -"""The output of our delete `AppLimitCredit` mutation.""" -type DeleteAppLimitCreditPayload { +"""The output of our delete `OrgPermission` mutation.""" +type DeleteOrgPermissionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitCredit` that was deleted by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the `deleteAppLimitCredit` mutation.""" -input DeleteAppLimitCreditInput { +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14522,31 +8309,31 @@ input DeleteAppLimitCreditInput { id: UUID! } -"""The output of our delete `OrgLimitCredit` mutation.""" -type DeleteOrgLimitCreditPayload { +"""The output of our delete `OrgChartEdgeGrant` mutation.""" +type DeleteOrgChartEdgeGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitCredit` that was deleted by this mutation.""" - orgLimitCredit: OrgLimitCredit + """The `OrgChartEdgeGrant` that was deleted by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the `deleteOrgLimitCredit` mutation.""" -input DeleteOrgLimitCreditInput { +"""All input for the `deleteOrgChartEdgeGrant` mutation.""" +input DeleteOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14588,39 +8375,6 @@ input DeleteAppClaimedInviteInput { id: UUID! } -"""The output of our delete `OrgLimitWarning` mutation.""" -type DeleteOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was deleted by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the `deleteOrgLimitWarning` mutation.""" -input DeleteOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `MembershipType` mutation.""" type DeleteMembershipTypePayload { """ @@ -14691,64 +8445,31 @@ input DeleteAppGrantInput { id: UUID! } -"""The output of our delete `OrgClaimedInvite` mutation.""" -type DeleteOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgClaimedInvite` that was deleted by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge -} - -"""All input for the `deleteOrgClaimedInvite` mutation.""" -input DeleteOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgGrant` mutation.""" -type DeleteOrgGrantPayload { +"""The output of our delete `AppMembershipDefault` mutation.""" +type DeleteAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgGrant` that was deleted by this mutation.""" - orgGrant: OrgGrant + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `deleteOrgGrant` mutation.""" -input DeleteOrgGrantInput { +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14757,31 +8478,31 @@ input DeleteOrgGrantInput { id: UUID! } -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { +"""The output of our delete `OrgMembershipDefault` mutation.""" +type DeleteOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14790,103 +8511,97 @@ input DeleteOrgMembershipSettingInput { id: UUID! } -"""The output of our delete `AppLimitEvent` mutation.""" -type DeleteAppLimitEventPayload { +"""The output of our delete `OrgClaimedInvite` mutation.""" +type DeleteOrgClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitEvent` that was deleted by this mutation.""" - appLimitEvent: AppLimitEvent + """The `OrgClaimedInvite` that was deleted by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the `deleteAppLimitEvent` mutation.""" -input DeleteAppLimitEventInput { +"""All input for the `deleteOrgClaimedInvite` mutation.""" +input DeleteOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" id: UUID! } -"""The output of our delete `OrgLimitEvent` mutation.""" -type DeleteOrgLimitEventPayload { +"""The output of our delete `OrgGrant` mutation.""" +type DeleteOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitEvent` that was deleted by this mutation.""" - orgLimitEvent: OrgLimitEvent + """The `OrgGrant` that was deleted by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `deleteOrgLimitEvent` mutation.""" -input DeleteOrgLimitEventInput { +"""All input for the `deleteOrgGrant` mutation.""" +input DeleteOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" id: UUID! } -"""The output of our delete `AppMembership` mutation.""" -type DeleteAppMembershipPayload { +"""The output of our delete `OrgChartEdge` mutation.""" +type DeleteOrgChartEdgePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership + """The `OrgChartEdge` that was deleted by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { +"""All input for the `deleteOrgChartEdge` mutation.""" +input DeleteOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14895,31 +8610,31 @@ input DeleteAppMembershipInput { id: UUID! } -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership + """The `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14928,31 +8643,31 @@ input DeleteOrgMembershipInput { id: UUID! } -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { +"""The output of our delete `AppMembership` mutation.""" +type DeleteAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14994,64 +8709,31 @@ input DeleteAppInviteInput { id: UUID! } -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} - -"""All input for the `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitAggregate` mutation.""" -type DeleteOrgLimitAggregatePayload { +"""The output of our delete `OrgMembership` mutation.""" +type DeleteOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitAggregate` that was deleted by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `deleteOrgLimitAggregate` mutation.""" -input DeleteOrgLimitAggregateInput { +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -15060,31 +8742,31 @@ input DeleteOrgLimitAggregateInput { id: UUID! } -"""The output of our delete `OrgLimit` mutation.""" -type DeleteOrgLimitPayload { +"""The output of our delete `OrgMemberProfile` mutation.""" +type DeleteOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was deleted by this mutation.""" - orgLimit: OrgLimit + """The `OrgMemberProfile` that was deleted by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `deleteOrgLimit` mutation.""" -input DeleteOrgLimitInput { +"""All input for the `deleteOrgMemberProfile` mutation.""" +input DeleteOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. diff --git a/sdk/constructive-sdk/schemas/agent.graphql b/sdk/constructive-sdk/schemas/agent.graphql new file mode 100644 index 0000000000..7cb4e1a3f8 --- /dev/null +++ b/sdk/constructive-sdk/schemas/agent.graphql @@ -0,0 +1,3258 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + """Reads and enables pagination through a set of `AgentPlan`.""" + agentPlans( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AgentPlanFilter + + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentPlanConnection + + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessages( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentMessageFilter + + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentMessageConnection + + """Reads and enables pagination through a set of `AgentThread`.""" + agentThreads( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentThreadFilter + + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentThreadConnection + + """Reads and enables pagination through a set of `AgentPrompt`.""" + agentPrompts( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AgentPromptFilter + + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentPromptConnection + + """Reads and enables pagination through a set of `AgentTask`.""" + agentTasks( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentTaskFilter + + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentTaskConnection + + """Reads and enables pagination through a set of `AgentSkill`.""" + agentSkills( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AgentSkillFilter + + """The method to use when ordering `AgentSkill`.""" + orderBy: [AgentSkillOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentSkillConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +"""A connection to a list of `AgentPlan` values.""" +type AgentPlanConnection { + """A list of `AgentPlan` objects.""" + nodes: [AgentPlan]! + + """ + A list of edges which contains the `AgentPlan` and cursor to aid in pagination. + """ + edges: [AgentPlanEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentPlan` you could get from the connection.""" + totalCount: Int! +} + +""" +Workflow plan attached to an agent thread with ordered tasks and optional approval gates +""" +type AgentPlan { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """User who owns this plan""" + ownerId: UUID! + + """Foreign key to agent_thread""" + threadId: UUID! + + """Human-readable plan name""" + title: String! + + """Overall goal or context for this plan""" + description: String + + """Plan lifecycle: draft, active, completed, failed, cancelled""" + status: String! + + """Reads a single `AgentThread` that is related to this `AgentPlan`.""" + thread: AgentThread + + """Reads and enables pagination through a set of `AgentTask`.""" + agentTasksByPlanId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentTaskFilter + + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentTaskConnection! +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""Top-level AI/LLM conversation thread""" +type AgentThread { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """User who owns this thread""" + ownerId: UUID! + + """Current status of this thread""" + status: String! + + """Human-readable conversation title""" + title: String + + """Conversation mode: ask (plain Q&A) or agent (tool-enabled)""" + mode: String! + + """LLM model id this thread is bound to""" + model: String + + """System prompt active for this thread""" + systemPrompt: String + + """Optional FK to a shared prompt template""" + promptTemplateId: UUID + + """Reads a single `AgentPrompt` that is related to this `AgentThread`.""" + promptTemplate: AgentPrompt + + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessagesByThreadId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentMessageFilter + + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentMessageConnection! + + """Reads and enables pagination through a set of `AgentPlan`.""" + agentPlansByThreadId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AgentPlanFilter + + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentPlanConnection! +} + +"""Shared system prompt templates for agent conversations""" +type AgentPrompt { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" + name: String! + + """The system prompt template content""" + content: String! + + """What this prompt template is for""" + description: String + + """Whether this is the default prompt for the entity/app""" + isDefault: Boolean! + + """Variables, tags, category metadata""" + metadata: JSON +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A connection to a list of `AgentMessage` values.""" +type AgentMessageConnection { + """A list of `AgentMessage` objects.""" + nodes: [AgentMessage]! + + """ + A list of edges which contains the `AgentMessage` and cursor to aid in pagination. + """ + edges: [AgentMessageEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentMessage` you could get from the connection.""" + totalCount: Int! +} + +"""Message within an agent thread with TextPart/ToolPart jsonb parts""" +type AgentMessage { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """User who owns this message""" + ownerId: UUID! + + """Message content: TextPart and ToolPart array""" + parts: JSON + + """Foreign key to agent_thread""" + threadId: UUID! + + """Who authored this message: user or assistant""" + authorRole: String! + + """LLM model that generated this response""" + model: String + + """Reads a single `AgentThread` that is related to this `AgentMessage`.""" + thread: AgentThread +} + +"""A `AgentMessage` edge in the connection.""" +type AgentMessageEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentMessage` at the end of the edge.""" + node: AgentMessage +} + +"""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 filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input AgentMessageFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `parts` field.""" + parts: JSONFilter + + """Filter by the object’s `threadId` field.""" + threadId: UUIDFilter + + """Filter by the object’s `authorRole` field.""" + authorRole: StringFilter + + """Filter by the object’s `model` field.""" + model: StringFilter + + """Checks for all expressions in this list.""" + and: [AgentMessageFilter!] + + """Checks for any expressions in this list.""" + or: [AgentMessageFilter!] + + """Negates the expression.""" + not: AgentMessageFilter + + """Filter by the object’s `thread` relation.""" + thread: AgentThreadFilter +} + +""" +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 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 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 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 +} + +""" +A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ +""" +input AgentThreadFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `mode` field.""" + mode: StringFilter + + """Filter by the object’s `model` field.""" + model: StringFilter + + """Filter by the object’s `systemPrompt` field.""" + systemPrompt: StringFilter + + """Filter by the object’s `promptTemplateId` field.""" + promptTemplateId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [AgentThreadFilter!] + + """Checks for any expressions in this list.""" + or: [AgentThreadFilter!] + + """Negates the expression.""" + not: AgentThreadFilter + + """Filter by the object’s `promptTemplate` relation.""" + promptTemplate: AgentPromptFilter + + """A related `promptTemplate` exists.""" + promptTemplateExists: Boolean + + """Filter by the object’s `agentMessagesByThreadId` relation.""" + agentMessagesByThreadId: AgentThreadToManyAgentMessageFilter + + """`agentMessagesByThreadId` exist.""" + agentMessagesByThreadIdExist: Boolean + + """Filter by the object’s `agentPlansByThreadId` relation.""" + agentPlansByThreadId: AgentThreadToManyAgentPlanFilter + + """`agentPlansByThreadId` exist.""" + agentPlansByThreadIdExist: Boolean +} + +""" +A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ +""" +input AgentPromptFilter { + """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 `name` field.""" + name: StringFilter + + """Filter by the object’s `content` field.""" + content: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `isDefault` field.""" + isDefault: BooleanFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Checks for all expressions in this list.""" + and: [AgentPromptFilter!] + + """Checks for any expressions in this list.""" + or: [AgentPromptFilter!] + + """Negates the expression.""" + not: AgentPromptFilter +} + +""" +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 `AgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input AgentThreadToManyAgentMessageFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentMessageFilter + + """Filters to entities where every related entity matches.""" + every: AgentMessageFilter + + """Filters to entities where no related entity matches.""" + none: AgentMessageFilter +} + +""" +A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ +""" +input AgentThreadToManyAgentPlanFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentPlanFilter + + """Filters to entities where every related entity matches.""" + every: AgentPlanFilter + + """Filters to entities where no related entity matches.""" + none: AgentPlanFilter +} + +""" +A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ +""" +input AgentPlanFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `threadId` field.""" + threadId: UUIDFilter + + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Checks for all expressions in this list.""" + and: [AgentPlanFilter!] + + """Checks for any expressions in this list.""" + or: [AgentPlanFilter!] + + """Negates the expression.""" + not: AgentPlanFilter + + """Filter by the object’s `thread` relation.""" + thread: AgentThreadFilter + + """Filter by the object’s `agentTasksByPlanId` relation.""" + agentTasksByPlanId: AgentPlanToManyAgentTaskFilter + + """`agentTasksByPlanId` exist.""" + agentTasksByPlanIdExist: Boolean +} + +""" +A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ +""" +input AgentPlanToManyAgentTaskFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentTaskFilter + + """Filters to entities where every related entity matches.""" + every: AgentTaskFilter + + """Filters to entities where no related entity matches.""" + none: AgentTaskFilter +} + +""" +A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ +""" +input AgentTaskFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `planId` field.""" + planId: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `source` field.""" + source: StringFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `orderIndex` field.""" + orderIndex: IntFilter + + """Filter by the object’s `requiresApproval` field.""" + requiresApproval: BooleanFilter + + """Filter by the object’s `approvalStatus` field.""" + approvalStatus: StringFilter + + """Filter by the object’s `approvedBy` field.""" + approvedBy: UUIDFilter + + """Filter by the object’s `approvedAt` field.""" + approvedAt: DatetimeFilter + + """Filter by the object’s `approvalFeedback` field.""" + approvalFeedback: StringFilter + + """Checks for all expressions in this list.""" + and: [AgentTaskFilter!] + + """Checks for any expressions in this list.""" + or: [AgentTaskFilter!] + + """Negates the expression.""" + not: AgentTaskFilter + + """Filter by the object’s `plan` relation.""" + plan: AgentPlanFilter +} + +""" +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 +} + +"""Methods to use when ordering `AgentMessage`.""" +enum AgentMessageOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + OWNER_ID_ASC + OWNER_ID_DESC + PARTS_ASC + PARTS_DESC + THREAD_ID_ASC + THREAD_ID_DESC + AUTHOR_ROLE_ASC + AUTHOR_ROLE_DESC + MODEL_ASC + MODEL_DESC +} + +"""Methods to use when ordering `AgentPlan`.""" +enum AgentPlanOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + OWNER_ID_ASC + OWNER_ID_DESC + THREAD_ID_ASC + THREAD_ID_DESC + TITLE_ASC + TITLE_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + STATUS_ASC + STATUS_DESC +} + +"""A connection to a list of `AgentTask` values.""" +type AgentTaskConnection { + """A list of `AgentTask` objects.""" + nodes: [AgentTask]! + + """ + A list of edges which contains the `AgentTask` and cursor to aid in pagination. + """ + edges: [AgentTaskEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentTask` you could get from the connection.""" + totalCount: Int! +} + +"""Task within a plan, with ordering and optional approval gates""" +type AgentTask { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """User who owns this task""" + ownerId: UUID! + + """Current status of this task""" + status: String! + + """Foreign key to agent_plan""" + planId: UUID! + + """Natural-language description of the work to do""" + description: String! + + """Who created the task: agent or user""" + source: String! + + """Error message captured when the task failed""" + error: String + + """Position within the plan (for ordered task lists)""" + orderIndex: Int + + """Whether this task is an approval gate requiring human decision""" + requiresApproval: Boolean! + + """ + Approval decision: pending, approved, rejected (NULL if not an approval task) + """ + approvalStatus: String + + """User who approved or rejected this task""" + approvedBy: UUID + + """Timestamp of the approval or rejection decision""" + approvedAt: Datetime + + """Reviewer feedback or reason for the decision""" + approvalFeedback: String + + """Reads a single `AgentPlan` that is related to this `AgentTask`.""" + plan: AgentPlan +} + +"""A `AgentTask` edge in the connection.""" +type AgentTaskEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentTask` at the end of the edge.""" + node: AgentTask +} + +"""Methods to use when ordering `AgentTask`.""" +enum AgentTaskOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + OWNER_ID_ASC + OWNER_ID_DESC + STATUS_ASC + STATUS_DESC + PLAN_ID_ASC + PLAN_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SOURCE_ASC + SOURCE_DESC + ERROR_ASC + ERROR_DESC + ORDER_INDEX_ASC + ORDER_INDEX_DESC + REQUIRES_APPROVAL_ASC + REQUIRES_APPROVAL_DESC + APPROVAL_STATUS_ASC + APPROVAL_STATUS_DESC + APPROVED_BY_ASC + APPROVED_BY_DESC + APPROVED_AT_ASC + APPROVED_AT_DESC + APPROVAL_FEEDBACK_ASC + APPROVAL_FEEDBACK_DESC +} + +"""A `AgentPlan` edge in the connection.""" +type AgentPlanEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentPlan` at the end of the edge.""" + node: AgentPlan +} + +"""A connection to a list of `AgentThread` values.""" +type AgentThreadConnection { + """A list of `AgentThread` objects.""" + nodes: [AgentThread]! + + """ + A list of edges which contains the `AgentThread` and cursor to aid in pagination. + """ + edges: [AgentThreadEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentThread` you could get from the connection.""" + totalCount: Int! +} + +"""A `AgentThread` edge in the connection.""" +type AgentThreadEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentThread` at the end of the edge.""" + node: AgentThread +} + +"""Methods to use when ordering `AgentThread`.""" +enum AgentThreadOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + OWNER_ID_ASC + OWNER_ID_DESC + STATUS_ASC + STATUS_DESC + TITLE_ASC + TITLE_DESC + MODE_ASC + MODE_DESC + MODEL_ASC + MODEL_DESC + SYSTEM_PROMPT_ASC + SYSTEM_PROMPT_DESC + PROMPT_TEMPLATE_ID_ASC + PROMPT_TEMPLATE_ID_DESC +} + +"""A connection to a list of `AgentPrompt` values.""" +type AgentPromptConnection { + """A list of `AgentPrompt` objects.""" + nodes: [AgentPrompt]! + + """ + A list of edges which contains the `AgentPrompt` and cursor to aid in pagination. + """ + edges: [AgentPromptEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentPrompt` you could get from the connection.""" + totalCount: Int! +} + +"""A `AgentPrompt` edge in the connection.""" +type AgentPromptEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentPrompt` at the end of the edge.""" + node: AgentPrompt +} + +"""Methods to use when ordering `AgentPrompt`.""" +enum AgentPromptOrderBy { + 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 + NAME_ASC + NAME_DESC + CONTENT_ASC + CONTENT_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + IS_DEFAULT_ASC + IS_DEFAULT_DESC + METADATA_ASC + METADATA_DESC +} + +"""A connection to a list of `AgentSkill` values.""" +type AgentSkillConnection { + """A list of `AgentSkill` objects.""" + nodes: [AgentSkill]! + + """ + A list of edges which contains the `AgentSkill` and cursor to aid in pagination. + """ + edges: [AgentSkillEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentSkill` you could get from the connection.""" + totalCount: Int! +} + +""" +@@searchConfig {"weights": {"tsv": 1}, "fts_field": "search", "fts_source_fields": [{"field": "title", "weight": "A"}, {"field": "description", "weight": "B"}, {"field": "body", "weight": "C"}]} +Structured procedural instructions for agent workflows +""" +type AgentSkill { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Skill name or title""" + title: String! + + """Brief description of when this skill applies""" + description: String + + """Full skill instructions (markdown)""" + body: String! + + """Keywords for deterministic retrieval routing""" + keywords: [String] + + """Whether this skill is active and retrievable""" + isActive: Boolean! + + """Structured metadata: category, version, author, custom attributes""" + metadata: JSON + search: FullText + embedding: Vector + + """@@behavior -insert -update""" + embeddingUpdatedAt: Datetime + + """ + TSV rank when searching `search`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """ + VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. + """ + embeddingVectorDistance: Float + + """ + TRGM similarity when searching `title`. Returns null when no trgm search filter is active. + """ + titleTrgmSimilarity: Float + + """ + TRGM similarity when searching `description`. Returns null when no trgm search filter is active. + """ + descriptionTrgmSimilarity: Float + + """ + TRGM similarity when searching `body`. Returns null when no trgm search filter is active. + """ + bodyTrgmSimilarity: Float + + """ + Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float +} + +"""A full-text search tsvector value represented as a string.""" +scalar FullText + +""" +A pgvector embedding — array of floats. Dimensions must match the column (e.g. 768 for nomic-embed-text). +""" +scalar Vector + +"""A `AgentSkill` edge in the connection.""" +type AgentSkillEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentSkill` at the end of the edge.""" + node: AgentSkill +} + +""" +A filter to be used against `AgentSkill` object types. All fields are combined with a logical ‘and.’ +""" +input AgentSkillFilter { + """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 `title` field.""" + title: StringTrgmFilter + + """Filter by the object’s `description` field.""" + description: StringTrgmFilter + + """Filter by the object’s `body` field.""" + body: StringTrgmFilter + + """Filter by the object’s `keywords` field.""" + keywords: StringListFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `search` field.""" + search: FullTextFilter + + """Filter by the object’s `embedding` field.""" + embedding: VectorFilter + + """Filter by the object’s `embeddingUpdatedAt` field.""" + embeddingUpdatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AgentSkillFilter!] + + """Checks for any expressions in this list.""" + or: [AgentSkillFilter!] + + """Negates the expression.""" + not: AgentSkillFilter + + """TSV search on the `search` column.""" + tsvSearch: String + + """VECTOR search on the `embedding` column.""" + vectorEmbedding: VectorNearbyInput + + """TRGM search on the `title` column.""" + trgmTitle: TrgmSearchInput + + """TRGM search on the `description` column.""" + trgmDescription: TrgmSearchInput + + """TRGM search on the `body` column.""" + trgmBody: TrgmSearchInput + + """ + Composite unified search. Provide a search string and it will be dispatched to + all text-compatible search algorithms (tsvector, BM25, pg_trgm) + simultaneously. Rows matching ANY algorithm are returned. All matching score + fields are populated. + """ + unifiedSearch: String +} + +""" +A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ +""" +input StringTrgmFilter { + """ + 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 + + """ + Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + """ + similarTo: TrgmSearchInput + + """ + Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. + """ + wordSimilarTo: TrgmSearchInput +} + +""" +Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. +""" +input TrgmSearchInput { + """The text to fuzzy-match against. Typos and misspellings are tolerated.""" + value: String! + + """ + Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. + """ + threshold: Float +} + +""" +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 FullText fields. All fields are combined with a logical ‘and.’ +""" +input FullTextFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: FullText + + """Not equal to the specified value.""" + notEqualTo: FullText + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: FullText + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: FullText + + """Included in the specified list.""" + in: [FullText!] + + """Not included in the specified list.""" + notIn: [FullText!] + + """Performs a full text search on the field.""" + matches: String +} + +""" +A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ +""" +input VectorFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Vector + + """Not equal to the specified value.""" + notEqualTo: Vector + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Vector + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Vector + + """Included in the specified list.""" + in: [Vector!] + + """Not included in the specified list.""" + notIn: [Vector!] +} + +""" +Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. +""" +input VectorNearbyInput { + """Query vector for similarity search.""" + vector: [Float!]! + + """Similarity metric to use (default: COSINE).""" + metric: VectorMetric + + """ + Maximum distance threshold. Only rows within this distance are returned. + """ + distance: Float + + """ + When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. + """ + includeChunks: Boolean +} + +"""Similarity metric for vector search""" +enum VectorMetric { + """ + Cosine distance (1 - cosine similarity). Range: 0 (identical) to 2 (opposite). + """ + COSINE + + """Euclidean (L2) distance. Range: 0 (identical) to infinity.""" + L2 + + """Negative inner product. Higher (less negative) = more similar.""" + IP +} + +"""Methods to use when ordering `AgentSkill`.""" +enum AgentSkillOrderBy { + 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 + TITLE_ASC + TITLE_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + BODY_ASC + BODY_DESC + KEYWORDS_ASC + KEYWORDS_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + METADATA_ASC + METADATA_DESC + SEARCH_ASC + SEARCH_DESC + EMBEDDING_ASC + EMBEDDING_DESC + EMBEDDING_UPDATED_AT_ASC + EMBEDDING_UPDATED_AT_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + EMBEDDING_VECTOR_DISTANCE_ASC + EMBEDDING_VECTOR_DISTANCE_DESC + TITLE_TRGM_SIMILARITY_ASC + TITLE_TRGM_SIMILARITY_DESC + DESCRIPTION_TRGM_SIMILARITY_ASC + DESCRIPTION_TRGM_SIMILARITY_DESC + BODY_TRGM_SIMILARITY_ASC + BODY_TRGM_SIMILARITY_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_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! +} + +"""Information about a table field/column""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! + isPrimaryKey: Boolean! + isForeignKey: Boolean! + description: String +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean + subtype: 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 +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + """Creates a single `AgentPlan`.""" + createAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentPlanInput! + ): CreateAgentPlanPayload + + """Creates a single `AgentMessage`.""" + createAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentMessageInput! + ): CreateAgentMessagePayload + + """Creates a single `AgentThread`.""" + createAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentThreadInput! + ): CreateAgentThreadPayload + + """Creates a single `AgentPrompt`.""" + createAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentPromptInput! + ): CreateAgentPromptPayload + + """Creates a single `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 `AgentSkill`.""" + createAgentSkill( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentSkillInput! + ): CreateAgentSkillPayload + + """Updates a single `AgentPlan` using a unique key and a patch.""" + updateAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentPlanInput! + ): UpdateAgentPlanPayload + + """Updates a single `AgentMessage` using a unique key and a patch.""" + updateAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentMessageInput! + ): UpdateAgentMessagePayload + + """Updates a single `AgentThread` using a unique key and a patch.""" + updateAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentThreadInput! + ): UpdateAgentThreadPayload + + """Updates a single `AgentPrompt` using a unique key and a patch.""" + updateAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentPromptInput! + ): UpdateAgentPromptPayload + + """Updates a single `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 `AgentSkill` using a unique key and a patch.""" + updateAgentSkill( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentSkillInput! + ): UpdateAgentSkillPayload + + """Deletes a single `AgentPlan` using a unique key.""" + deleteAgentPlan( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentPlanInput! + ): DeleteAgentPlanPayload + + """Deletes a single `AgentMessage` using a unique key.""" + deleteAgentMessage( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentMessageInput! + ): DeleteAgentMessagePayload + + """Deletes a single `AgentThread` using a unique key.""" + deleteAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentThreadInput! + ): DeleteAgentThreadPayload + + """Deletes a single `AgentPrompt` using a unique key.""" + deleteAgentPrompt( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentPromptInput! + ): DeleteAgentPromptPayload + + """Deletes a single `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 `AgentSkill` using a unique key.""" + deleteAgentSkill( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentSkillInput! + ): DeleteAgentSkillPayload + + """ + 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 create `AgentPlan` mutation.""" +type CreateAgentPlanPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentPlan` that was created by this mutation.""" + agentPlan: AgentPlan + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentPlan`. May be used by Relay 1.""" + agentPlanEdge( + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPlanEdge +} + +"""All input for the create `AgentPlan` mutation.""" +input CreateAgentPlanInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentPlan` to be created by this mutation.""" + agentPlan: AgentPlanInput! +} + +"""An input for mutations affecting `AgentPlan`""" +input AgentPlanInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this plan""" + ownerId: UUID + + """Foreign key to agent_thread""" + threadId: UUID! + + """Human-readable plan name""" + title: String! + + """Overall goal or context for this plan""" + description: String + + """Plan lifecycle: draft, active, completed, failed, cancelled""" + status: String +} + +"""The output of our create `AgentMessage` mutation.""" +type CreateAgentMessagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentMessage` that was created by this mutation.""" + agentMessage: AgentMessage + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge +} + +"""All input for the create `AgentMessage` mutation.""" +input CreateAgentMessageInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentMessage` to be created by this mutation.""" + agentMessage: AgentMessageInput! +} + +"""An input for mutations affecting `AgentMessage`""" +input AgentMessageInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this message""" + ownerId: UUID + + """Message content: TextPart and ToolPart array""" + parts: JSON + + """Foreign key to agent_thread""" + threadId: UUID! + + """Who authored this message: user or assistant""" + authorRole: String! + + """LLM model that generated this response""" + model: String +} + +"""The output of our create `AgentThread` mutation.""" +type CreateAgentThreadPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentThread` that was created by this mutation.""" + agentThread: AgentThread + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge +} + +"""All input for the create `AgentThread` mutation.""" +input CreateAgentThreadInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentThread` to be created by this mutation.""" + agentThread: AgentThreadInput! +} + +"""An input for mutations affecting `AgentThread`""" +input AgentThreadInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this thread""" + ownerId: UUID + + """Current status of this thread""" + status: String + + """Human-readable conversation title""" + title: String + + """Conversation mode: ask (plain Q&A) or agent (tool-enabled)""" + mode: String + + """LLM model id this thread is bound to""" + model: String + + """System prompt active for this thread""" + systemPrompt: String + + """Optional FK to a shared prompt template""" + promptTemplateId: UUID +} + +"""The output of our create `AgentPrompt` mutation.""" +type CreateAgentPromptPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentPrompt` that was created by this mutation.""" + agentPrompt: AgentPrompt + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentPrompt`. May be used by Relay 1.""" + agentPromptEdge( + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPromptEdge +} + +"""All input for the create `AgentPrompt` mutation.""" +input CreateAgentPromptInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentPrompt` to be created by this mutation.""" + agentPrompt: AgentPromptInput! +} + +"""An input for mutations affecting `AgentPrompt`""" +input AgentPromptInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" + name: String! + + """The system prompt template content""" + content: String! + + """What this prompt template is for""" + description: String + + """Whether this is the default prompt for the entity/app""" + isDefault: Boolean + + """Variables, tags, category metadata""" + metadata: JSON +} + +"""The output of our create `AgentTask` mutation.""" +type CreateAgentTaskPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentTask` that was created by this mutation.""" + agentTask: AgentTask + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge +} + +"""All input for the create `AgentTask` mutation.""" +input CreateAgentTaskInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentTask` to be created by this mutation.""" + agentTask: AgentTaskInput! +} + +"""An input for mutations affecting `AgentTask`""" +input AgentTaskInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this task""" + ownerId: UUID + + """Current status of this task""" + status: String + + """Foreign key to agent_plan""" + planId: UUID! + + """Natural-language description of the work to do""" + description: String! + + """Who created the task: agent or user""" + source: String + + """Error message captured when the task failed""" + error: String + + """Position within the plan (for ordered task lists)""" + orderIndex: Int + + """Whether this task is an approval gate requiring human decision""" + requiresApproval: Boolean + + """ + Approval decision: pending, approved, rejected (NULL if not an approval task) + """ + approvalStatus: String + + """User who approved or rejected this task""" + approvedBy: UUID + + """Timestamp of the approval or rejection decision""" + approvedAt: Datetime + + """Reviewer feedback or reason for the decision""" + approvalFeedback: String +} + +"""The output of our create `AgentSkill` mutation.""" +type CreateAgentSkillPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentSkill` that was created by this mutation.""" + agentSkill: AgentSkill + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentSkill`. May be used by Relay 1.""" + agentSkillEdge( + """The method to use when ordering `AgentSkill`.""" + orderBy: [AgentSkillOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentSkillEdge +} + +"""All input for the create `AgentSkill` mutation.""" +input CreateAgentSkillInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentSkill` to be created by this mutation.""" + agentSkill: AgentSkillInput! +} + +"""An input for mutations affecting `AgentSkill`""" +input AgentSkillInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Skill name or title""" + title: String! + + """Brief description of when this skill applies""" + description: String + + """Full skill instructions (markdown)""" + body: String! + + """Keywords for deterministic retrieval routing""" + keywords: [String] + + """Whether this skill is active and retrievable""" + isActive: Boolean + + """Structured metadata: category, version, author, custom attributes""" + metadata: JSON + embedding: Vector + + """@@behavior -insert -update""" + embeddingUpdatedAt: Datetime +} + +"""The output of our update `AgentPlan` mutation.""" +type UpdateAgentPlanPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentPlan` that was updated by this mutation.""" + agentPlan: AgentPlan + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentPlan`. May be used by Relay 1.""" + agentPlanEdge( + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPlanEdge +} + +"""All input for the `updateAgentPlan` mutation.""" +input UpdateAgentPlanInput { + """ + An arbitrary string value 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 `AgentPlan` being updated. + """ + agentPlanPatch: AgentPlanPatch! +} + +""" +Represents an update to a `AgentPlan`. Fields that are set will be updated. +""" +input AgentPlanPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this plan""" + ownerId: UUID + + """Foreign key to agent_thread""" + threadId: UUID + + """Human-readable plan name""" + title: String + + """Overall goal or context for this plan""" + description: String + + """Plan lifecycle: draft, active, completed, failed, cancelled""" + status: String +} + +"""The output of our update `AgentMessage` mutation.""" +type UpdateAgentMessagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentMessage` that was updated by this mutation.""" + agentMessage: AgentMessage + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge +} + +"""All input for the `updateAgentMessage` mutation.""" +input UpdateAgentMessageInput { + """ + An arbitrary string value 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 `AgentMessage` being updated. + """ + agentMessagePatch: AgentMessagePatch! +} + +""" +Represents an update to a `AgentMessage`. Fields that are set will be updated. +""" +input AgentMessagePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this message""" + ownerId: UUID + + """Message content: TextPart and ToolPart array""" + parts: JSON + + """Foreign key to agent_thread""" + threadId: UUID + + """Who authored this message: user or assistant""" + authorRole: String + + """LLM model that generated this response""" + model: String +} + +"""The output of our update `AgentThread` mutation.""" +type UpdateAgentThreadPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentThread` that was updated by this mutation.""" + agentThread: AgentThread + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge +} + +"""All input for the `updateAgentThread` mutation.""" +input UpdateAgentThreadInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AgentThread` being updated. + """ + agentThreadPatch: AgentThreadPatch! +} + +""" +Represents an update to a `AgentThread`. Fields that are set will be updated. +""" +input AgentThreadPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this thread""" + ownerId: UUID + + """Current status of this thread""" + status: String + + """Human-readable conversation title""" + title: String + + """Conversation mode: ask (plain Q&A) or agent (tool-enabled)""" + mode: String + + """LLM model id this thread is bound to""" + model: String + + """System prompt active for this thread""" + systemPrompt: String + + """Optional FK to a shared prompt template""" + promptTemplateId: UUID +} + +"""The output of our update `AgentPrompt` mutation.""" +type UpdateAgentPromptPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentPrompt` that was updated by this mutation.""" + agentPrompt: AgentPrompt + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentPrompt`. May be used by Relay 1.""" + agentPromptEdge( + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPromptEdge +} + +"""All input for the `updateAgentPrompt` mutation.""" +input UpdateAgentPromptInput { + """ + An arbitrary string value 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 `AgentPrompt` being updated. + """ + agentPromptPatch: AgentPromptPatch! +} + +""" +Represents an update to a `AgentPrompt`. Fields that are set will be updated. +""" +input AgentPromptPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" + name: String + + """The system prompt template content""" + content: String + + """What this prompt template is for""" + description: String + + """Whether this is the default prompt for the entity/app""" + isDefault: Boolean + + """Variables, tags, category metadata""" + metadata: JSON +} + +"""The output of our update `AgentTask` mutation.""" +type UpdateAgentTaskPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentTask` that was updated by this mutation.""" + agentTask: AgentTask + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge +} + +"""All input for the `updateAgentTask` mutation.""" +input UpdateAgentTaskInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AgentTask` being updated. + """ + agentTaskPatch: AgentTaskPatch! +} + +""" +Represents an update to a `AgentTask`. Fields that are set will be updated. +""" +input AgentTaskPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """User who owns this task""" + ownerId: UUID + + """Current status of this task""" + status: String + + """Foreign key to agent_plan""" + planId: UUID + + """Natural-language description of the work to do""" + description: String + + """Who created the task: agent or user""" + source: String + + """Error message captured when the task failed""" + error: String + + """Position within the plan (for ordered task lists)""" + orderIndex: Int + + """Whether this task is an approval gate requiring human decision""" + requiresApproval: Boolean + + """ + Approval decision: pending, approved, rejected (NULL if not an approval task) + """ + approvalStatus: String + + """User who approved or rejected this task""" + approvedBy: UUID + + """Timestamp of the approval or rejection decision""" + approvedAt: Datetime + + """Reviewer feedback or reason for the decision""" + approvalFeedback: String +} + +"""The output of our update `AgentSkill` mutation.""" +type UpdateAgentSkillPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentSkill` that was updated by this mutation.""" + agentSkill: AgentSkill + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentSkill`. May be used by Relay 1.""" + agentSkillEdge( + """The method to use when ordering `AgentSkill`.""" + orderBy: [AgentSkillOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentSkillEdge +} + +"""All input for the `updateAgentSkill` mutation.""" +input UpdateAgentSkillInput { + """ + An arbitrary string value 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 `AgentSkill` being updated. + """ + agentSkillPatch: AgentSkillPatch! +} + +""" +Represents an update to a `AgentSkill`. Fields that are set will be updated. +""" +input AgentSkillPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Skill name or title""" + title: String + + """Brief description of when this skill applies""" + description: String + + """Full skill instructions (markdown)""" + body: String + + """Keywords for deterministic retrieval routing""" + keywords: [String] + + """Whether this skill is active and retrievable""" + isActive: Boolean + + """Structured metadata: category, version, author, custom attributes""" + metadata: JSON + embedding: Vector + + """@@behavior -insert -update""" + embeddingUpdatedAt: Datetime +} + +"""The output of our delete `AgentPlan` mutation.""" +type DeleteAgentPlanPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentPlan` that was deleted by this mutation.""" + agentPlan: AgentPlan + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentPlan`. May be used by Relay 1.""" + agentPlanEdge( + """The method to use when ordering `AgentPlan`.""" + orderBy: [AgentPlanOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPlanEdge +} + +"""All input for the `deleteAgentPlan` mutation.""" +input DeleteAgentPlanInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentMessage` mutation.""" +type DeleteAgentMessagePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentMessage` that was deleted by this mutation.""" + agentMessage: AgentMessage + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge +} + +"""All input for the `deleteAgentMessage` mutation.""" +input DeleteAgentMessageInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentThread` mutation.""" +type DeleteAgentThreadPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentThread` that was deleted by this mutation.""" + agentThread: AgentThread + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge +} + +"""All input for the `deleteAgentThread` mutation.""" +input DeleteAgentThreadInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentPrompt` mutation.""" +type DeleteAgentPromptPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentPrompt` that was deleted by this mutation.""" + agentPrompt: AgentPrompt + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentPrompt`. May be used by Relay 1.""" + agentPromptEdge( + """The method to use when ordering `AgentPrompt`.""" + orderBy: [AgentPromptOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentPromptEdge +} + +"""All input for the `deleteAgentPrompt` mutation.""" +input DeleteAgentPromptInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentTask` mutation.""" +type DeleteAgentTaskPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentTask` that was deleted by this mutation.""" + agentTask: AgentTask + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge +} + +"""All input for the `deleteAgentTask` mutation.""" +input DeleteAgentTaskInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentSkill` mutation.""" +type DeleteAgentSkillPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentSkill` that was deleted by this mutation.""" + agentSkill: AgentSkill + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentSkill`. May be used by Relay 1.""" + agentSkillEdge( + """The method to use when ordering `AgentSkill`.""" + orderBy: [AgentSkillOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentSkillEdge +} + +"""All input for the `deleteAgentSkill` mutation.""" +input DeleteAgentSkillInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +input ProvisionBucketInput { + """The logical bucket key (e.g., "public", "private")""" + bucketKey: String! + + """ + 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/api.graphql b/sdk/constructive-sdk/schemas/api.graphql new file mode 100644 index 0000000000..33de4d0fca --- /dev/null +++ b/sdk/constructive-sdk/schemas/api.graphql @@ -0,0 +1,20454 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + applyRegistryDefaults(nodeType: String, data: JSON): JSON + + """Reads and enables pagination through a set of `Function`.""" + functions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: FunctionFilter + + """The method to use when ordering `Function`.""" + orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionConnection + + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewTableFilter + + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection + + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteThemeFilter + + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection + + """Reads and enables pagination through a set of `ViewRule`.""" + viewRules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewRuleFilter + + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewRuleConnection + + """Reads and enables pagination through a set of `MigrateFile`.""" + migrateFiles( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: MigrateFileFilter + + """The method to use when ordering `MigrateFile`.""" + orderBy: [MigrateFileOrderBy!] = [NATURAL] + ): MigrateFileConnection + + """Reads and enables pagination through a set of `DefaultPrivilege`.""" + defaultPrivileges( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DefaultPrivilegeFilter + + """The method to use when ordering `DefaultPrivilege`.""" + orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] + ): DefaultPrivilegeConnection + + """Reads and enables pagination through a set of `ViewGrant`.""" + viewGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewGrantFilter + + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewGrantConnection + + """Reads and enables pagination through a set of `Api`.""" + apis( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiFilter + + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiConnection + + """Reads and enables pagination through a set of `CorsSetting`.""" + corsSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CorsSettingFilter + + """The method to use when ordering `CorsSetting`.""" + orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): CorsSettingConnection + + """Reads and enables pagination through a set of `NodeTypeRegistry`.""" + nodeTypeRegistries( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: NodeTypeRegistryFilter + + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!] = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryConnection + + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiModuleFilter + + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection + + """Reads and enables pagination through a set of `SiteModule`.""" + siteModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteModuleFilter + + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteModuleConnection + + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteMetadatumFilter + + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection + + """Reads and enables pagination through a set of `PubkeySetting`.""" + pubkeySettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: PubkeySettingFilter + + """The method to use when ordering `PubkeySetting`.""" + orderBy: [PubkeySettingOrderBy!] = [PRIMARY_KEY_ASC] + ): PubkeySettingConnection + + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SchemaGrantFilter + + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection + + """Reads and enables pagination through a set of `TriggerFunction`.""" + triggerFunctions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TriggerFunctionFilter + + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerFunctionConnection + + """Reads and enables pagination through a set of `Database`.""" + databases( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DatabaseFilter + + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseConnection + + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TableGrantFilter + + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection + + """Reads and enables pagination through a set of `RlsSetting`.""" + rlsSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: RlsSettingFilter + + """The method to use when ordering `RlsSetting`.""" + orderBy: [RlsSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): RlsSettingConnection + + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FullTextSearchFilter + + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection + + """Reads and enables pagination through a set of `Partition`.""" + partitions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PartitionFilter + + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] + ): PartitionConnection + + """Reads and enables pagination through a set of `SqlAction`.""" + sqlActions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SqlActionFilter + + """The method to use when ordering `SqlAction`.""" + orderBy: [SqlActionOrderBy!] = [NATURAL] + ): SqlActionConnection + + """Reads and enables pagination through a set of `DatabaseSetting`.""" + databaseSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DatabaseSettingFilter + + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseSettingConnection + + """Reads and enables pagination through a set of `Enum`.""" + enums( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EnumFilter + + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection + + """Reads and enables pagination through a set of `ApiSetting`.""" + apiSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiSettingFilter + + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSettingConnection + + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DatabaseTransferFilter + + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection + + """Reads and enables pagination through a set of `App`.""" + apps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppFilter + + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection + + """Reads and enables pagination through a set of `Site`.""" + sites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteFilter + + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteConnection + + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PrimaryKeyConstraintFilter + + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection + + """Reads and enables pagination through a set of `Trigger`.""" + triggers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TriggerFilter + + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerConnection + + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CheckConstraintFilter + + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection + + """Reads and enables pagination through a set of `UniqueConstraint`.""" + uniqueConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: UniqueConstraintFilter + + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): UniqueConstraintConnection + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SpatialRelationFilter + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + ): SpatialRelationConnection + + """Reads and enables pagination through a set of `Policy`.""" + policies( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PolicyFilter + + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection + + """Reads and enables pagination through a set of `Schema`.""" + schemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SchemaFilter + + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaConnection + + """Reads and enables pagination through a set of `Index`.""" + indices( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: IndexFilter + + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection + + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EmbeddingChunkFilter + + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection + + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ForeignKeyConstraintFilter + + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection + + """Reads and enables pagination through a set of `WebauthnSetting`.""" + webauthnSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: WebauthnSettingFilter + + """The method to use when ordering `WebauthnSetting`.""" + orderBy: [WebauthnSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnSettingConnection + + """Reads and enables pagination through a set of `AstMigration`.""" + astMigrations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AstMigrationFilter + + """The method to use when ordering `AstMigration`.""" + orderBy: [AstMigrationOrderBy!] = [NATURAL] + ): AstMigrationConnection + + """Reads and enables pagination through a set of `Field`.""" + fields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: FieldFilter + + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection + + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A connection to a list of `Function` values.""" +type FunctionConnection { + """A list of `Function` objects.""" + nodes: [Function]! + + """ + A list of edges which contains the `Function` and cursor to aid in pagination. + """ + edges: [FunctionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Function` you could get from the connection.""" + totalCount: Int! +} + +type Function { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + + """Reads a single `Database` that is related to this `Function`.""" + database: Database + + """Reads a single `Schema` that is related to this `Function`.""" + schema: Schema +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +type Database { + id: UUID! + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads and enables pagination through a set of `Schema`.""" + schemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SchemaFilter + + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaConnection! + + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection! + + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CheckConstraintFilter + + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection! + + """Reads and enables pagination through a set of `Field`.""" + fields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: FieldFilter + + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection! + + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ForeignKeyConstraintFilter + + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection! + + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FullTextSearchFilter + + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection! + + """Reads and enables pagination through a set of `Index`.""" + indices( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: IndexFilter + + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection! + + """Reads and enables pagination through a set of `Policy`.""" + policies( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PolicyFilter + + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection! + + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PrimaryKeyConstraintFilter + + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection! + + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SchemaGrantFilter + + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection! + + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TableGrantFilter + + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection! + + """Reads and enables pagination through a set of `TriggerFunction`.""" + triggerFunctions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TriggerFunctionFilter + + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerFunctionConnection! + + """Reads and enables pagination through a set of `Trigger`.""" + triggers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TriggerFilter + + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerConnection! + + """Reads and enables pagination through a set of `UniqueConstraint`.""" + uniqueConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: UniqueConstraintFilter + + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): UniqueConstraintConnection! + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection! + + """Reads and enables pagination through a set of `ViewGrant`.""" + viewGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewGrantFilter + + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewGrantConnection! + + """Reads and enables pagination through a set of `ViewRule`.""" + viewRules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewRuleFilter + + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewRuleConnection! + + """Reads and enables pagination through a set of `DefaultPrivilege`.""" + defaultPrivileges( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DefaultPrivilegeFilter + + """The method to use when ordering `DefaultPrivilege`.""" + orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] + ): DefaultPrivilegeConnection! + + """Reads and enables pagination through a set of `Enum`.""" + enums( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EnumFilter + + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection! + + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EmbeddingChunkFilter + + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection! + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SpatialRelationFilter + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + ): SpatialRelationConnection! + + """Reads and enables pagination through a set of `Function`.""" + functions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: FunctionFilter + + """The method to use when ordering `Function`.""" + orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionConnection! + + """Reads and enables pagination through a set of `Partition`.""" + partitions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PartitionFilter + + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] + ): PartitionConnection! + + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DatabaseTransferFilter + + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection! + + """Reads and enables pagination through a set of `Api`.""" + apis( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiFilter + + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiConnection! + + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiModuleFilter + + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection! + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection! + + """Reads and enables pagination through a set of `Site`.""" + sites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteFilter + + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteConnection! + + """Reads and enables pagination through a set of `App`.""" + apps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppFilter + + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection! + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection! + + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteMetadatumFilter + + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection! + + """Reads and enables pagination through a set of `SiteModule`.""" + siteModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteModuleFilter + + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteModuleConnection! + + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteThemeFilter + + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection! + + """Reads a single `DatabaseSetting` that is related to this `Database`.""" + databaseSetting: DatabaseSetting + + """Reads and enables pagination through a set of `ApiSetting`.""" + apiSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiSettingFilter + + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSettingConnection! + + """Reads a single `RlsSetting` that is related to this `Database`.""" + rlsSetting: RlsSetting + + """Reads and enables pagination through a set of `CorsSetting`.""" + corsSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CorsSettingFilter + + """The method to use when ordering `CorsSetting`.""" + orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): CorsSettingConnection! + + """Reads a single `PubkeySetting` that is related to this `Database`.""" + pubkeySetting: PubkeySetting + + """Reads a single `WebauthnSetting` that is related to this `Database`.""" + webauthnSetting: WebauthnSetting +} + +""" +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 `Schema` values.""" +type SchemaConnection { + """A list of `Schema` objects.""" + nodes: [Schema]! + + """ + A list of edges which contains the `Schema` and cursor to aid in pagination. + """ + edges: [SchemaEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Schema` you could get from the connection.""" + totalCount: Int! +} + +type Schema { + id: UUID! + databaseId: UUID! + name: String! + schemaName: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + isPublic: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Schema`.""" + database: Database + + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection! + + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SchemaGrantFilter + + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection! + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection! + + """Reads and enables pagination through a set of `DefaultPrivilege`.""" + defaultPrivileges( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DefaultPrivilegeFilter + + """The method to use when ordering `DefaultPrivilege`.""" + orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] + ): DefaultPrivilegeConnection! + + """Reads and enables pagination through a set of `Enum`.""" + enums( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EnumFilter + + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection! + + """Reads and enables pagination through a set of `Function`.""" + functions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: FunctionFilter + + """The method to use when ordering `Function`.""" + orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionConnection! + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection! +} + +enum ObjectCategory { + CORE + MODULE + APP +} + +"""A connection to a list of `Table` values.""" +type TableConnection { + """A list of `Table` objects.""" + nodes: [Table]! + + """ + A list of edges which contains the `Table` and cursor to aid in pagination. + """ + edges: [TableEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Table` you could get from the connection.""" + totalCount: Int! +} + +type Table { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + useRls: Boolean! + timestamps: Boolean! + peoplestamps: Boolean! + pluralName: String + singularName: String + tags: [String]! + partitioned: Boolean! + partitionStrategy: String + partitionKeyNames: [String] + partitionKeyTypes: [String] + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Table`.""" + database: Database + + """Reads a single `Schema` that is related to this `Table`.""" + schema: Schema + + """Reads a single `Table` that is related to this `Table`.""" + inherits: Table + + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CheckConstraintFilter + + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection! + + """Reads and enables pagination through a set of `Field`.""" + fields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: FieldFilter + + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection! + + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ForeignKeyConstraintFilter + + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection! + + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FullTextSearchFilter + + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection! + + """Reads and enables pagination through a set of `Index`.""" + indices( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: IndexFilter + + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection! + + """Reads and enables pagination through a set of `Policy`.""" + policies( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PolicyFilter + + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection! + + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PrimaryKeyConstraintFilter + + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection! + + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TableGrantFilter + + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection! + + """Reads and enables pagination through a set of `Trigger`.""" + triggers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: TriggerFilter + + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerConnection! + + """Reads and enables pagination through a set of `UniqueConstraint`.""" + uniqueConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: UniqueConstraintFilter + + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): UniqueConstraintConnection! + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection! + + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewTableFilter + + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection! + + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunksByChunksTableId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EmbeddingChunkFilter + + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection! + + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EmbeddingChunkFilter + + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection! + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelationsByRefTableId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SpatialRelationFilter + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + ): SpatialRelationConnection! + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SpatialRelationFilter + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + ): SpatialRelationConnection! + + """Reads a single `Partition` that is related to this `Table`.""" + partition: Partition +} + +"""A connection to a list of `CheckConstraint` values.""" +type CheckConstraintConnection { + """A list of `CheckConstraint` objects.""" + nodes: [CheckConstraint]! + + """ + A list of edges which contains the `CheckConstraint` and cursor to aid in pagination. + """ + edges: [CheckConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `CheckConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type CheckConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + expr: JSON + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `CheckConstraint`.""" + database: Database + + """Reads a single `Table` that is related to this `CheckConstraint`.""" + table: Table +} + +"""A `CheckConstraint` edge in the connection.""" +type CheckConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CheckConstraint` at the end of the edge.""" + node: CheckConstraint +} + +"""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 filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input CheckConstraintFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `type` field.""" + type: StringFilter + + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter + + """Filter by the object’s `expr` field.""" + expr: JSONFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [CheckConstraintFilter!] + + """Checks for any expressions in this list.""" + or: [CheckConstraintFilter!] + + """Negates the expression.""" + not: CheckConstraintFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +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 +} + +""" +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 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 ObjectCategory fields. All fields are combined with a logical ‘and.’ +""" +input ObjectCategoryFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ObjectCategory + + """Not equal to the specified value.""" + notEqualTo: ObjectCategory + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ObjectCategory + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ObjectCategory + + """Included in the specified list.""" + in: [ObjectCategory!] + + """Not included in the specified list.""" + notIn: [ObjectCategory!] + + """Less than the specified value.""" + lessThan: ObjectCategory + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ObjectCategory + + """Greater than the specified value.""" + greaterThan: ObjectCategory + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ObjectCategory +} + +""" +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 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 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 `Database` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `schemaHash` field.""" + schemaHash: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """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: [DatabaseFilter!] + + """Checks for any expressions in this list.""" + or: [DatabaseFilter!] + + """Negates the expression.""" + not: DatabaseFilter + + """Filter by the object’s `schemas` relation.""" + schemas: DatabaseToManySchemaFilter + + """`schemas` exist.""" + schemasExist: Boolean + + """Filter by the object’s `tables` relation.""" + tables: DatabaseToManyTableFilter + + """`tables` exist.""" + tablesExist: Boolean + + """Filter by the object’s `checkConstraints` relation.""" + checkConstraints: DatabaseToManyCheckConstraintFilter + + """`checkConstraints` exist.""" + checkConstraintsExist: Boolean + + """Filter by the object’s `fields` relation.""" + fields: DatabaseToManyFieldFilter + + """`fields` exist.""" + fieldsExist: Boolean + + """Filter by the object’s `foreignKeyConstraints` relation.""" + foreignKeyConstraints: DatabaseToManyForeignKeyConstraintFilter + + """`foreignKeyConstraints` exist.""" + foreignKeyConstraintsExist: Boolean + + """Filter by the object’s `fullTextSearches` relation.""" + fullTextSearches: DatabaseToManyFullTextSearchFilter + + """`fullTextSearches` exist.""" + fullTextSearchesExist: Boolean + + """Filter by the object’s `indices` relation.""" + indices: DatabaseToManyIndexFilter + + """`indices` exist.""" + indicesExist: Boolean + + """Filter by the object’s `policies` relation.""" + policies: DatabaseToManyPolicyFilter + + """`policies` exist.""" + policiesExist: Boolean + + """Filter by the object’s `primaryKeyConstraints` relation.""" + primaryKeyConstraints: DatabaseToManyPrimaryKeyConstraintFilter + + """`primaryKeyConstraints` exist.""" + primaryKeyConstraintsExist: Boolean + + """Filter by the object’s `schemaGrants` relation.""" + schemaGrants: DatabaseToManySchemaGrantFilter + + """`schemaGrants` exist.""" + schemaGrantsExist: Boolean + + """Filter by the object’s `tableGrants` relation.""" + tableGrants: DatabaseToManyTableGrantFilter + + """`tableGrants` exist.""" + tableGrantsExist: Boolean + + """Filter by the object’s `triggerFunctions` relation.""" + triggerFunctions: DatabaseToManyTriggerFunctionFilter + + """`triggerFunctions` exist.""" + triggerFunctionsExist: Boolean + + """Filter by the object’s `triggers` relation.""" + triggers: DatabaseToManyTriggerFilter + + """`triggers` exist.""" + triggersExist: Boolean + + """Filter by the object’s `uniqueConstraints` relation.""" + uniqueConstraints: DatabaseToManyUniqueConstraintFilter + + """`uniqueConstraints` exist.""" + uniqueConstraintsExist: Boolean + + """Filter by the object’s `views` relation.""" + views: DatabaseToManyViewFilter + + """`views` exist.""" + viewsExist: Boolean + + """Filter by the object’s `viewGrants` relation.""" + viewGrants: DatabaseToManyViewGrantFilter + + """`viewGrants` exist.""" + viewGrantsExist: Boolean + + """Filter by the object’s `viewRules` relation.""" + viewRules: DatabaseToManyViewRuleFilter + + """`viewRules` exist.""" + viewRulesExist: Boolean + + """Filter by the object’s `defaultPrivileges` relation.""" + defaultPrivileges: DatabaseToManyDefaultPrivilegeFilter + + """`defaultPrivileges` exist.""" + defaultPrivilegesExist: Boolean + + """Filter by the object’s `enums` relation.""" + enums: DatabaseToManyEnumFilter + + """`enums` exist.""" + enumsExist: Boolean + + """Filter by the object’s `embeddingChunks` relation.""" + embeddingChunks: DatabaseToManyEmbeddingChunkFilter + + """`embeddingChunks` exist.""" + embeddingChunksExist: Boolean + + """Filter by the object’s `spatialRelations` relation.""" + spatialRelations: DatabaseToManySpatialRelationFilter + + """`spatialRelations` exist.""" + spatialRelationsExist: Boolean + + """Filter by the object’s `functions` relation.""" + functions: DatabaseToManyFunctionFilter + + """`functions` exist.""" + functionsExist: Boolean + + """Filter by the object’s `partitions` relation.""" + partitions: DatabaseToManyPartitionFilter + + """`partitions` exist.""" + partitionsExist: Boolean + + """Filter by the object’s `databaseTransfers` relation.""" + databaseTransfers: DatabaseToManyDatabaseTransferFilter + + """`databaseTransfers` exist.""" + databaseTransfersExist: Boolean + + """Filter by the object’s `apis` relation.""" + apis: DatabaseToManyApiFilter + + """`apis` exist.""" + apisExist: Boolean + + """Filter by the object’s `apiModules` relation.""" + apiModules: DatabaseToManyApiModuleFilter + + """`apiModules` exist.""" + apiModulesExist: Boolean + + """Filter by the object’s `apiSchemas` relation.""" + apiSchemas: DatabaseToManyApiSchemaFilter + + """`apiSchemas` exist.""" + apiSchemasExist: Boolean + + """Filter by the object’s `sites` relation.""" + sites: DatabaseToManySiteFilter + + """`sites` exist.""" + sitesExist: Boolean + + """Filter by the object’s `apps` relation.""" + apps: DatabaseToManyAppFilter + + """`apps` exist.""" + appsExist: Boolean + + """Filter by the object’s `domains` relation.""" + domains: DatabaseToManyDomainFilter + + """`domains` exist.""" + domainsExist: Boolean + + """Filter by the object’s `siteMetadata` relation.""" + siteMetadata: DatabaseToManySiteMetadatumFilter + + """`siteMetadata` exist.""" + siteMetadataExist: Boolean + + """Filter by the object’s `siteModules` relation.""" + siteModules: DatabaseToManySiteModuleFilter + + """`siteModules` exist.""" + siteModulesExist: Boolean + + """Filter by the object’s `siteThemes` relation.""" + siteThemes: DatabaseToManySiteThemeFilter + + """`siteThemes` exist.""" + siteThemesExist: Boolean + + """Filter by the object’s `databaseSetting` relation.""" + databaseSetting: DatabaseSettingFilter + + """A related `databaseSetting` exists.""" + databaseSettingExists: Boolean + + """Filter by the object’s `apiSettings` relation.""" + apiSettings: DatabaseToManyApiSettingFilter + + """`apiSettings` exist.""" + apiSettingsExist: Boolean + + """Filter by the object’s `rlsSetting` relation.""" + rlsSetting: RlsSettingFilter + + """A related `rlsSetting` exists.""" + rlsSettingExists: Boolean + + """Filter by the object’s `corsSettings` relation.""" + corsSettings: DatabaseToManyCorsSettingFilter + + """`corsSettings` exist.""" + corsSettingsExist: Boolean + + """Filter by the object’s `pubkeySetting` relation.""" + pubkeySetting: PubkeySettingFilter + + """A related `pubkeySetting` exists.""" + pubkeySettingExists: Boolean + + """Filter by the object’s `webauthnSetting` relation.""" + webauthnSetting: WebauthnSettingFilter + + """A related `webauthnSetting` exists.""" + webauthnSettingExists: Boolean +} + +""" +A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySchemaFilter { + """Filters to entities where at least one related entity matches.""" + some: SchemaFilter + + """Filters to entities where every related entity matches.""" + every: SchemaFilter + + """Filters to entities where no related entity matches.""" + none: SchemaFilter +} + +""" +A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `schemaName` field.""" + schemaName: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: 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: [SchemaFilter!] + + """Checks for any expressions in this list.""" + or: [SchemaFilter!] + + """Negates the expression.""" + not: SchemaFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `tables` relation.""" + tables: SchemaToManyTableFilter + + """`tables` exist.""" + tablesExist: Boolean + + """Filter by the object’s `schemaGrants` relation.""" + schemaGrants: SchemaToManySchemaGrantFilter + + """`schemaGrants` exist.""" + schemaGrantsExist: Boolean + + """Filter by the object’s `views` relation.""" + views: SchemaToManyViewFilter + + """`views` exist.""" + viewsExist: Boolean + + """Filter by the object’s `defaultPrivileges` relation.""" + defaultPrivileges: SchemaToManyDefaultPrivilegeFilter + + """`defaultPrivileges` exist.""" + defaultPrivilegesExist: Boolean + + """Filter by the object’s `enums` relation.""" + enums: SchemaToManyEnumFilter + + """`enums` exist.""" + enumsExist: Boolean + + """Filter by the object’s `functions` relation.""" + functions: SchemaToManyFunctionFilter + + """`functions` exist.""" + functionsExist: Boolean + + """Filter by the object’s `apiSchemas` relation.""" + apiSchemas: SchemaToManyApiSchemaFilter + + """`apiSchemas` exist.""" + 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 many `Table` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyTableFilter { + """Filters to entities where at least one related entity matches.""" + some: TableFilter + + """Filters to entities where every related entity matches.""" + every: TableFilter + + """Filters to entities where no related entity matches.""" + none: TableFilter +} + +""" +A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ +""" +input TableFilter { + """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 `name` field.""" + name: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `useRls` field.""" + useRls: BooleanFilter + + """Filter by the object’s `timestamps` field.""" + timestamps: BooleanFilter + + """Filter by the object’s `peoplestamps` field.""" + peoplestamps: BooleanFilter + + """Filter by the object’s `pluralName` field.""" + pluralName: StringFilter + + """Filter by the object’s `singularName` field.""" + singularName: StringFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `partitioned` field.""" + partitioned: BooleanFilter + + """Filter by the object’s `partitionStrategy` field.""" + partitionStrategy: StringFilter + + """Filter by the object’s `partitionKeyNames` field.""" + partitionKeyNames: StringListFilter + + """Filter by the object’s `partitionKeyTypes` field.""" + partitionKeyTypes: StringListFilter + + """Filter by the object’s `inheritsId` field.""" + inheritsId: 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: [TableFilter!] + + """Checks for any expressions in this list.""" + or: [TableFilter!] + + """Negates the expression.""" + not: TableFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `inherits` relation.""" + inherits: TableFilter + + """A related `inherits` exists.""" + inheritsExists: Boolean + + """Filter by the object’s `checkConstraints` relation.""" + checkConstraints: TableToManyCheckConstraintFilter + + """`checkConstraints` exist.""" + checkConstraintsExist: Boolean + + """Filter by the object’s `fields` relation.""" + fields: TableToManyFieldFilter + + """`fields` exist.""" + fieldsExist: Boolean + + """Filter by the object’s `foreignKeyConstraints` relation.""" + foreignKeyConstraints: TableToManyForeignKeyConstraintFilter + + """`foreignKeyConstraints` exist.""" + foreignKeyConstraintsExist: Boolean + + """Filter by the object’s `fullTextSearches` relation.""" + fullTextSearches: TableToManyFullTextSearchFilter + + """`fullTextSearches` exist.""" + fullTextSearchesExist: Boolean + + """Filter by the object’s `indices` relation.""" + indices: TableToManyIndexFilter + + """`indices` exist.""" + indicesExist: Boolean + + """Filter by the object’s `policies` relation.""" + policies: TableToManyPolicyFilter + + """`policies` exist.""" + policiesExist: Boolean + + """Filter by the object’s `primaryKeyConstraints` relation.""" + primaryKeyConstraints: TableToManyPrimaryKeyConstraintFilter + + """`primaryKeyConstraints` exist.""" + primaryKeyConstraintsExist: Boolean + + """Filter by the object’s `tableGrants` relation.""" + tableGrants: TableToManyTableGrantFilter + + """`tableGrants` exist.""" + tableGrantsExist: Boolean + + """Filter by the object’s `triggers` relation.""" + triggers: TableToManyTriggerFilter + + """`triggers` exist.""" + triggersExist: Boolean + + """Filter by the object’s `uniqueConstraints` relation.""" + uniqueConstraints: TableToManyUniqueConstraintFilter + + """`uniqueConstraints` exist.""" + uniqueConstraintsExist: Boolean + + """Filter by the object’s `views` relation.""" + views: TableToManyViewFilter + + """`views` exist.""" + viewsExist: Boolean + + """Filter by the object’s `viewTables` relation.""" + viewTables: TableToManyViewTableFilter + + """`viewTables` exist.""" + viewTablesExist: Boolean + + """Filter by the object’s `embeddingChunksByChunksTableId` relation.""" + embeddingChunksByChunksTableId: TableToManyEmbeddingChunkFilter + + """`embeddingChunksByChunksTableId` exist.""" + embeddingChunksByChunksTableIdExist: Boolean + + """Filter by the object’s `embeddingChunks` relation.""" + embeddingChunks: TableToManyEmbeddingChunkFilter + + """`embeddingChunks` exist.""" + embeddingChunksExist: Boolean + + """Filter by the object’s `spatialRelationsByRefTableId` relation.""" + spatialRelationsByRefTableId: TableToManySpatialRelationFilter + + """`spatialRelationsByRefTableId` exist.""" + spatialRelationsByRefTableIdExist: Boolean + + """Filter by the object’s `spatialRelations` relation.""" + spatialRelations: TableToManySpatialRelationFilter + + """`spatialRelations` exist.""" + spatialRelationsExist: Boolean + + """Filter by the object’s `partition` relation.""" + partition: PartitionFilter + + """A related `partition` exists.""" + partitionExists: Boolean +} + +""" +A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyCheckConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: CheckConstraintFilter + + """Filters to entities where every related entity matches.""" + every: CheckConstraintFilter + + """Filters to entities where no related entity matches.""" + none: CheckConstraintFilter +} + +""" +A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyFieldFilter { + """Filters to entities where at least one related entity matches.""" + some: FieldFilter + + """Filters to entities where every related entity matches.""" + every: FieldFilter + + """Filters to entities where no related entity matches.""" + none: FieldFilter +} + +""" +A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ +""" +input FieldFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `isRequired` field.""" + isRequired: BooleanFilter + + """Filter by the object’s `apiRequired` field.""" + apiRequired: BooleanFilter + + """Filter by the object’s `defaultValue` field.""" + defaultValue: JSONFilter + + """Filter by the object’s `type` field.""" + type: JSONFilter + + """Filter by the object’s `fieldOrder` field.""" + fieldOrder: IntFilter + + """Filter by the object’s `regexp` field.""" + regexp: StringFilter + + """Filter by the object’s `chk` field.""" + chk: JSONFilter + + """Filter by the object’s `chkExpr` field.""" + chkExpr: JSONFilter + + """Filter by the object’s `min` field.""" + min: FloatFilter + + """Filter by the object’s `max` field.""" + max: FloatFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """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: [FieldFilter!] + + """Checks for any expressions in this list.""" + or: [FieldFilter!] + + """Negates the expression.""" + not: FieldFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter + + """Filter by the object’s `spatialRelations` relation.""" + spatialRelations: FieldToManySpatialRelationFilter + + """`spatialRelations` exist.""" + spatialRelationsExist: Boolean + + """Filter by the object’s `spatialRelationsByRefFieldId` relation.""" + spatialRelationsByRefFieldId: FieldToManySpatialRelationFilter + + """`spatialRelationsByRefFieldId` exist.""" + spatialRelationsByRefFieldIdExist: Boolean +} + +""" +A filter to be used against Float fields. All fields are combined with a logical ‘and.’ +""" +input FloatFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Float + + """Not equal to the specified value.""" + notEqualTo: Float + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Float + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Float + + """Included in the specified list.""" + in: [Float!] + + """Not included in the specified list.""" + notIn: [Float!] + + """Less than the specified value.""" + lessThan: Float + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Float + + """Greater than the specified value.""" + greaterThan: Float + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Float +} + +""" +A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ +""" +input FieldToManySpatialRelationFilter { + """Filters to entities where at least one related entity matches.""" + some: SpatialRelationFilter + + """Filters to entities where every related entity matches.""" + every: SpatialRelationFilter + + """Filters to entities where no related entity matches.""" + none: SpatialRelationFilter +} + +""" +A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ +""" +input SpatialRelationFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter + + """Filter by the object’s `refTableId` field.""" + refTableId: UUIDFilter + + """Filter by the object’s `refFieldId` field.""" + refFieldId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `operator` field.""" + operator: StringFilter + + """Filter by the object’s `paramName` field.""" + paramName: StringFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [SpatialRelationFilter!] + + """Checks for any expressions in this list.""" + or: [SpatialRelationFilter!] + + """Negates the expression.""" + not: SpatialRelationFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `field` relation.""" + field: FieldFilter + + """Filter by the object’s `refField` relation.""" + refField: FieldFilter + + """Filter by the object’s `refTable` relation.""" + refTable: TableFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyForeignKeyConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: ForeignKeyConstraintFilter + + """Filters to entities where every related entity matches.""" + every: ForeignKeyConstraintFilter + + """Filters to entities where no related entity matches.""" + none: ForeignKeyConstraintFilter +} + +""" +A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input ForeignKeyConstraintFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `type` field.""" + type: StringFilter + + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter + + """Filter by the object’s `refTableId` field.""" + refTableId: UUIDFilter + + """Filter by the object’s `refFieldIds` field.""" + refFieldIds: UUIDListFilter + + """Filter by the object’s `deleteAction` field.""" + deleteAction: StringFilter + + """Filter by the object’s `updateAction` field.""" + updateAction: StringFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [ForeignKeyConstraintFilter!] + + """Checks for any expressions in this list.""" + or: [ForeignKeyConstraintFilter!] + + """Negates the expression.""" + not: ForeignKeyConstraintFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `refTable` relation.""" + refTable: TableFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyFullTextSearchFilter { + """Filters to entities where at least one related entity matches.""" + some: FullTextSearchFilter + + """Filters to entities where every related entity matches.""" + every: FullTextSearchFilter + + """Filters to entities where no related entity matches.""" + none: FullTextSearchFilter +} + +""" +A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ +""" +input FullTextSearchFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter + + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter + + """Filter by the object’s `weights` field.""" + weights: StringListFilter + + """Filter by the object’s `langs` field.""" + langs: StringListFilter + + """Filter by the object’s `langColumn` field.""" + langColumn: 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: [FullTextSearchFilter!] + + """Checks for any expressions in this list.""" + or: [FullTextSearchFilter!] + + """Negates the expression.""" + not: FullTextSearchFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyIndexFilter { + """Filters to entities where at least one related entity matches.""" + some: IndexFilter + + """Filters to entities where every related entity matches.""" + every: IndexFilter + + """Filters to entities where no related entity matches.""" + none: IndexFilter +} + +""" +A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ +""" +input IndexFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter + + """Filter by the object’s `includeFieldIds` field.""" + includeFieldIds: UUIDListFilter + + """Filter by the object’s `accessMethod` field.""" + accessMethod: StringFilter + + """Filter by the object’s `indexParams` field.""" + indexParams: JSONFilter + + """Filter by the object’s `whereClause` field.""" + whereClause: JSONFilter + + """Filter by the object’s `isUnique` field.""" + isUnique: BooleanFilter + + """Filter by the object’s `options` field.""" + options: JSONFilter + + """Filter by the object’s `opClasses` field.""" + opClasses: StringListFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [IndexFilter!] + + """Checks for any expressions in this list.""" + or: [IndexFilter!] + + """Negates the expression.""" + not: IndexFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyPolicyFilter { + """Filters to entities where at least one related entity matches.""" + some: PolicyFilter + + """Filters to entities where every related entity matches.""" + every: PolicyFilter + + """Filters to entities where no related entity matches.""" + none: PolicyFilter +} + +""" +A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ +""" +input PolicyFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `granteeName` field.""" + granteeName: StringFilter + + """Filter by the object’s `privilege` field.""" + privilege: StringFilter + + """Filter by the object’s `permissive` field.""" + permissive: BooleanFilter + + """Filter by the object’s `disabled` field.""" + disabled: BooleanFilter + + """Filter by the object’s `policyType` field.""" + policyType: StringFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [PolicyFilter!] + + """Checks for any expressions in this list.""" + or: [PolicyFilter!] + + """Negates the expression.""" + not: PolicyFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyPrimaryKeyConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: PrimaryKeyConstraintFilter + + """Filters to entities where every related entity matches.""" + every: PrimaryKeyConstraintFilter + + """Filters to entities where no related entity matches.""" + none: PrimaryKeyConstraintFilter +} + +""" +A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input PrimaryKeyConstraintFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `type` field.""" + type: StringFilter + + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [PrimaryKeyConstraintFilter!] + + """Checks for any expressions in this list.""" + or: [PrimaryKeyConstraintFilter!] + + """Negates the expression.""" + not: PrimaryKeyConstraintFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyTableGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: TableGrantFilter + + """Filters to entities where every related entity matches.""" + every: TableGrantFilter + + """Filters to entities where no related entity matches.""" + none: TableGrantFilter +} + +""" +A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ +""" +input TableGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `privilege` field.""" + privilege: StringFilter + + """Filter by the object’s `granteeName` field.""" + granteeName: StringFilter + + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: 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: [TableGrantFilter!] + + """Checks for any expressions in this list.""" + or: [TableGrantFilter!] + + """Negates the expression.""" + not: TableGrantFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyTriggerFilter { + """Filters to entities where at least one related entity matches.""" + some: TriggerFilter + + """Filters to entities where every related entity matches.""" + every: TriggerFilter + + """Filters to entities where no related entity matches.""" + none: TriggerFilter +} + +""" +A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ +""" +input TriggerFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `event` field.""" + event: StringFilter + + """Filter by the object’s `functionName` field.""" + functionName: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [TriggerFilter!] + + """Checks for any expressions in this list.""" + or: [TriggerFilter!] + + """Negates the expression.""" + not: TriggerFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyUniqueConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: UniqueConstraintFilter + + """Filters to entities where every related entity matches.""" + every: UniqueConstraintFilter + + """Filters to entities where no related entity matches.""" + none: UniqueConstraintFilter +} + +""" +A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input UniqueConstraintFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `type` field.""" + type: StringFilter + + """Filter by the object’s `fieldIds` field.""" + fieldIds: UUIDListFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """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: [UniqueConstraintFilter!] + + """Checks for any expressions in this list.""" + or: [UniqueConstraintFilter!] + + """Negates the expression.""" + not: UniqueConstraintFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyViewFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewFilter + + """Filters to entities where every related entity matches.""" + every: ViewFilter + + """Filters to entities where no related entity matches.""" + none: ViewFilter +} + +""" +A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ +""" +input ViewFilter { + """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 `name` field.""" + name: StringFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `viewType` field.""" + viewType: StringFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `filterType` field.""" + filterType: StringFilter + + """Filter by the object’s `filterData` field.""" + filterData: JSONFilter + + """Filter by the object’s `securityInvoker` field.""" + securityInvoker: BooleanFilter + + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Checks for all expressions in this list.""" + and: [ViewFilter!] + + """Checks for any expressions in this list.""" + or: [ViewFilter!] + + """Negates the expression.""" + not: ViewFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter + + """A related `table` exists.""" + tableExists: Boolean + + """Filter by the object’s `viewTables` relation.""" + viewTables: ViewToManyViewTableFilter + + """`viewTables` exist.""" + viewTablesExist: Boolean + + """Filter by the object’s `viewGrants` relation.""" + viewGrants: ViewToManyViewGrantFilter + + """`viewGrants` exist.""" + viewGrantsExist: Boolean + + """Filter by the object’s `viewRules` relation.""" + viewRules: ViewToManyViewRuleFilter + + """`viewRules` exist.""" + viewRulesExist: Boolean +} + +""" +A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ +""" +input ViewToManyViewTableFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewTableFilter + + """Filters to entities where every related entity matches.""" + every: ViewTableFilter + + """Filters to entities where no related entity matches.""" + none: ViewTableFilter +} + +""" +A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ +""" +input ViewTableFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `viewId` field.""" + viewId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `joinOrder` field.""" + joinOrder: IntFilter + + """Checks for all expressions in this list.""" + and: [ViewTableFilter!] + + """Checks for any expressions in this list.""" + or: [ViewTableFilter!] + + """Negates the expression.""" + not: ViewTableFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter + + """Filter by the object’s `view` relation.""" + view: ViewFilter +} + +""" +A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ +""" +input ViewToManyViewGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewGrantFilter + + """Filters to entities where every related entity matches.""" + every: ViewGrantFilter + + """Filters to entities where no related entity matches.""" + none: ViewGrantFilter +} + +""" +A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ +""" +input ViewGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `viewId` field.""" + viewId: UUIDFilter + + """Filter by the object’s `granteeName` field.""" + granteeName: StringFilter + + """Filter by the object’s `privilege` field.""" + privilege: StringFilter + + """Filter by the object’s `withGrantOption` field.""" + withGrantOption: BooleanFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + + """Checks for all expressions in this list.""" + and: [ViewGrantFilter!] + + """Checks for any expressions in this list.""" + or: [ViewGrantFilter!] + + """Negates the expression.""" + not: ViewGrantFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `view` relation.""" + view: ViewFilter +} + +""" +A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ +""" +input ViewToManyViewRuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewRuleFilter + + """Filters to entities where every related entity matches.""" + every: ViewRuleFilter + + """Filters to entities where no related entity matches.""" + none: ViewRuleFilter +} + +""" +A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ +""" +input ViewRuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `viewId` field.""" + viewId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `event` field.""" + event: StringFilter + + """Filter by the object’s `action` field.""" + action: StringFilter + + """Checks for all expressions in this list.""" + and: [ViewRuleFilter!] + + """Checks for any expressions in this list.""" + or: [ViewRuleFilter!] + + """Negates the expression.""" + not: ViewRuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `view` relation.""" + view: ViewFilter +} + +""" +A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyViewTableFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewTableFilter + + """Filters to entities where every related entity matches.""" + every: ViewTableFilter + + """Filters to entities where no related entity matches.""" + none: ViewTableFilter +} + +""" +A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyEmbeddingChunkFilter { + """Filters to entities where at least one related entity matches.""" + some: EmbeddingChunkFilter + + """Filters to entities where every related entity matches.""" + every: EmbeddingChunkFilter + + """Filters to entities where no related entity matches.""" + none: EmbeddingChunkFilter +} + +""" +A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +""" +input EmbeddingChunkFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `embeddingFieldId` field.""" + embeddingFieldId: UUIDFilter + + """Filter by the object’s `chunksTableId` field.""" + chunksTableId: UUIDFilter + + """Filter by the object’s `chunksTableName` field.""" + chunksTableName: StringFilter + + """Filter by the object’s `contentFieldName` field.""" + contentFieldName: StringFilter + + """Filter by the object’s `dimensions` field.""" + dimensions: IntFilter + + """Filter by the object’s `metric` field.""" + metric: StringFilter + + """Filter by the object’s `chunkSize` field.""" + chunkSize: IntFilter + + """Filter by the object’s `chunkOverlap` field.""" + chunkOverlap: IntFilter + + """Filter by the object’s `chunkStrategy` field.""" + chunkStrategy: StringFilter + + """Filter by the object’s `metadataFields` field.""" + metadataFields: JSONFilter + + """Filter by the object’s `searchIndexes` field.""" + searchIndexes: JSONFilter + + """Filter by the object’s `enqueueChunkingJob` field.""" + enqueueChunkingJob: BooleanFilter + + """Filter by the object’s `chunkingTaskName` field.""" + chunkingTaskName: StringFilter + + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringFilter + + """Filter by the object’s `embeddingProvider` field.""" + embeddingProvider: StringFilter + + """Filter by the object’s `parentFkFieldId` field.""" + parentFkFieldId: 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: [EmbeddingChunkFilter!] + + """Checks for any expressions in this list.""" + or: [EmbeddingChunkFilter!] + + """Negates the expression.""" + not: EmbeddingChunkFilter + + """Filter by the object’s `chunksTable` relation.""" + chunksTable: TableFilter + + """A related `chunksTable` exists.""" + chunksTableExists: Boolean + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `embeddingField` relation.""" + embeddingField: FieldFilter + + """A related `embeddingField` exists.""" + embeddingFieldExists: Boolean + + """Filter by the object’s `parentFkField` relation.""" + parentFkField: FieldFilter + + """A related `parentFkField` exists.""" + parentFkFieldExists: Boolean + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManySpatialRelationFilter { + """Filters to entities where at least one related entity matches.""" + some: SpatialRelationFilter + + """Filters to entities where every related entity matches.""" + every: SpatialRelationFilter + + """Filters to entities where no related entity matches.""" + none: SpatialRelationFilter +} + +""" +A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ +""" +input PartitionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `strategy` field.""" + strategy: StringFilter + + """Filter by the object’s `partitionKeyId` field.""" + partitionKeyId: UUIDFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `retentionKeepTable` field.""" + retentionKeepTable: BooleanFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `namingPattern` field.""" + namingPattern: StringFilter + + """Filter by the object’s `isParented` field.""" + isParented: 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: [PartitionFilter!] + + """Checks for any expressions in this list.""" + or: [PartitionFilter!] + + """Negates the expression.""" + not: PartitionFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `partitionKey` relation.""" + partitionKey: FieldFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + +""" +A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManySchemaGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: SchemaGrantFilter + + """Filters to entities where every related entity matches.""" + every: SchemaGrantFilter + + """Filters to entities where no related entity matches.""" + none: SchemaGrantFilter +} + +""" +A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaGrantFilter { + """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 `granteeName` field.""" + granteeName: 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: [SchemaGrantFilter!] + + """Checks for any expressions in this list.""" + or: [SchemaGrantFilter!] + + """Negates the expression.""" + not: SchemaGrantFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + +""" +A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyViewFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewFilter + + """Filters to entities where every related entity matches.""" + every: ViewFilter + + """Filters to entities where no related entity matches.""" + none: ViewFilter +} + +""" +A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyDefaultPrivilegeFilter { + """Filters to entities where at least one related entity matches.""" + some: DefaultPrivilegeFilter + + """Filters to entities where every related entity matches.""" + every: DefaultPrivilegeFilter + + """Filters to entities where no related entity matches.""" + none: DefaultPrivilegeFilter +} + +""" +A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ +""" +input DefaultPrivilegeFilter { + """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 `objectType` field.""" + objectType: StringFilter + + """Filter by the object’s `privilege` field.""" + privilege: StringFilter + + """Filter by the object’s `granteeName` field.""" + granteeName: StringFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + + """Checks for all expressions in this list.""" + and: [DefaultPrivilegeFilter!] + + """Checks for any expressions in this list.""" + or: [DefaultPrivilegeFilter!] + + """Negates the expression.""" + not: DefaultPrivilegeFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + +""" +A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyEnumFilter { + """Filters to entities where at least one related entity matches.""" + some: EnumFilter + + """Filters to entities where every related entity matches.""" + every: EnumFilter + + """Filters to entities where no related entity matches.""" + none: EnumFilter +} + +""" +A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ +""" +input EnumFilter { + """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 `name` field.""" + name: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `values` field.""" + values: StringListFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Checks for all expressions in this list.""" + and: [EnumFilter!] + + """Checks for any expressions in this list.""" + or: [EnumFilter!] + + """Negates the expression.""" + not: EnumFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + +""" +A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyFunctionFilter { + """Filters to entities where at least one related entity matches.""" + some: FunctionFilter + + """Filters to entities where every related entity matches.""" + every: FunctionFilter + + """Filters to entities where no related entity matches.""" + none: FunctionFilter +} + +""" +A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionFilter { + """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 `name` field.""" + name: StringFilter + + """Checks for all expressions in this list.""" + and: [FunctionFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionFilter!] + + """Negates the expression.""" + not: FunctionFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + +""" +A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyApiSchemaFilter { + """Filters to entities where at least one related entity matches.""" + some: ApiSchemaFilter + + """Filters to entities where every related entity matches.""" + every: ApiSchemaFilter + + """Filters to entities where no related entity matches.""" + none: ApiSchemaFilter +} + +""" +A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input ApiSchemaFilter { + """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 `apiId` field.""" + apiId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [ApiSchemaFilter!] + + """Checks for any expressions in this list.""" + or: [ApiSchemaFilter!] + + """Negates the expression.""" + not: ApiSchemaFilter + + """Filter by the object’s `api` relation.""" + api: ApiFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + +""" +A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ +""" +input ApiFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `dbname` field.""" + dbname: StringFilter + + """Filter by the object’s `roleName` field.""" + roleName: StringFilter + + """Filter by the object’s `anonRole` field.""" + anonRole: StringFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: BooleanFilter + + """Checks for all expressions in this list.""" + and: [ApiFilter!] + + """Checks for any expressions in this list.""" + or: [ApiFilter!] + + """Negates the expression.""" + not: ApiFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `apiModules` relation.""" + apiModules: ApiToManyApiModuleFilter + + """`apiModules` exist.""" + apiModulesExist: Boolean + + """Filter by the object’s `apiSchemas` relation.""" + apiSchemas: ApiToManyApiSchemaFilter + + """`apiSchemas` exist.""" + apiSchemasExist: Boolean + + """Filter by the object’s `domains` relation.""" + domains: ApiToManyDomainFilter + + """`domains` exist.""" + domainsExist: Boolean + + """Filter by the object’s `apiSetting` relation.""" + apiSetting: ApiSettingFilter + + """A related `apiSetting` exists.""" + apiSettingExists: Boolean + + """Filter by the object’s `corsSettings` relation.""" + corsSettings: ApiToManyCorsSettingFilter + + """`corsSettings` exist.""" + corsSettingsExist: Boolean +} + +""" +A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ +""" +input ApiToManyApiModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ApiModuleFilter + + """Filters to entities where every related entity matches.""" + every: ApiModuleFilter + + """Filters to entities where no related entity matches.""" + none: ApiModuleFilter +} + +""" +A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ +""" +input ApiModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Checks for all expressions in this list.""" + and: [ApiModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ApiModuleFilter!] + + """Negates the expression.""" + not: ApiModuleFilter + + """Filter by the object’s `api` relation.""" + api: ApiFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + +""" +A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input ApiToManyApiSchemaFilter { + """Filters to entities where at least one related entity matches.""" + some: ApiSchemaFilter + + """Filters to entities where every related entity matches.""" + every: ApiSchemaFilter + + """Filters to entities where no related entity matches.""" + none: ApiSchemaFilter +} + +""" +A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ +""" +input ApiToManyDomainFilter { + """Filters to entities where at least one related entity matches.""" + some: DomainFilter + + """Filters to entities where every related entity matches.""" + every: DomainFilter + + """Filters to entities where no related entity matches.""" + none: DomainFilter +} + +""" +A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ +""" +input DomainFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter + + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter + + """Filter by the object’s `subdomain` field.""" + subdomain: ConstructiveInternalTypeHostnameFilter + + """Filter by the object’s `domain` field.""" + domain: ConstructiveInternalTypeHostnameFilter + + """Checks for all expressions in this list.""" + and: [DomainFilter!] + + """Checks for any expressions in this list.""" + or: [DomainFilter!] + + """Negates the expression.""" + not: DomainFilter + + """Filter by the object’s `api` relation.""" + api: ApiFilter + + """A related `api` exists.""" + apiExists: Boolean + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `site` relation.""" + site: SiteFilter + + """A related `site` exists.""" + siteExists: Boolean +} + +""" +A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeHostnameFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeHostname + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeHostname + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeHostname + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeHostname + + """Included in the specified list.""" + in: [ConstructiveInternalTypeHostname!] + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeHostname!] + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeHostname + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeHostname + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeHostname + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeHostname + + """Contains the specified string (case-sensitive).""" + includes: ConstructiveInternalTypeHostname + + """Does not contain the specified string (case-sensitive).""" + notIncludes: ConstructiveInternalTypeHostname + + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeHostname + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeHostname + + """Starts with the specified string (case-sensitive).""" + startsWith: ConstructiveInternalTypeHostname + + """Does not start with the specified string (case-sensitive).""" + notStartsWith: ConstructiveInternalTypeHostname + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeHostname + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeHostname + + """Ends with the specified string (case-sensitive).""" + endsWith: ConstructiveInternalTypeHostname + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: ConstructiveInternalTypeHostname + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: ConstructiveInternalTypeHostname + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeHostname + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: ConstructiveInternalTypeHostname + + """ + 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: ConstructiveInternalTypeHostname + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: ConstructiveInternalTypeHostname + + """ + 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: ConstructiveInternalTypeHostname + + """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 +} + +scalar ConstructiveInternalTypeHostname + +""" +A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ +""" +input SiteFilter { + """Filter by the object’s `id` field.""" + id: 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.""" + description: StringFilter + + """Filter by the object’s `ogImage` field.""" + ogImage: ConstructiveInternalTypeImageFilter + + """Filter by the object’s `favicon` field.""" + favicon: ConstructiveInternalTypeAttachmentFilter + + """Filter by the object’s `appleTouchIcon` field.""" + appleTouchIcon: ConstructiveInternalTypeImageFilter + + """Filter by the object’s `logo` field.""" + logo: ConstructiveInternalTypeImageFilter + + """Filter by the object’s `dbname` field.""" + dbname: StringFilter + + """Checks for all expressions in this list.""" + and: [SiteFilter!] + + """Checks for any expressions in this list.""" + or: [SiteFilter!] + + """Negates the expression.""" + not: SiteFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `app` relation.""" + app: AppFilter + + """A related `app` exists.""" + appExists: Boolean + + """Filter by the object’s `domains` relation.""" + domains: SiteToManyDomainFilter + + """`domains` exist.""" + domainsExist: Boolean + + """Filter by the object’s `siteMetadata` relation.""" + siteMetadata: SiteToManySiteMetadatumFilter + + """`siteMetadata` exist.""" + siteMetadataExist: Boolean + + """Filter by the object’s `siteModules` relation.""" + siteModules: SiteToManySiteModuleFilter + + """`siteModules` exist.""" + siteModulesExist: Boolean + + """Filter by the object’s `siteThemes` relation.""" + siteThemes: SiteToManySiteThemeFilter + + """`siteThemes` exist.""" + siteThemesExist: Boolean +} + +""" +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 +} + +scalar ConstructiveInternalTypeImage + +""" +A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeAttachmentFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeAttachment + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeAttachment + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeAttachment + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeAttachment + + """Included in the specified list.""" + in: [ConstructiveInternalTypeAttachment!] + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeAttachment!] + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeAttachment + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeAttachment + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeAttachment + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeAttachment + + """Contains the specified string (case-sensitive).""" + includes: ConstructiveInternalTypeAttachment + + """Does not contain the specified string (case-sensitive).""" + notIncludes: ConstructiveInternalTypeAttachment + + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeAttachment + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeAttachment + + """Starts with the specified string (case-sensitive).""" + startsWith: ConstructiveInternalTypeAttachment + + """Does not start with the specified string (case-sensitive).""" + notStartsWith: ConstructiveInternalTypeAttachment + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeAttachment + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeAttachment + + """Ends with the specified string (case-sensitive).""" + endsWith: ConstructiveInternalTypeAttachment + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: ConstructiveInternalTypeAttachment + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: ConstructiveInternalTypeAttachment + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeAttachment + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: ConstructiveInternalTypeAttachment + + """ + 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: ConstructiveInternalTypeAttachment + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: ConstructiveInternalTypeAttachment + + """ + 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: ConstructiveInternalTypeAttachment + + """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 +} + +scalar ConstructiveInternalTypeAttachment + +""" +A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ +""" +input AppFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `appImage` field.""" + appImage: ConstructiveInternalTypeImageFilter + + """Filter by the object’s `appStoreLink` field.""" + appStoreLink: ConstructiveInternalTypeUrlFilter + + """Filter by the object’s `appStoreId` field.""" + appStoreId: StringFilter + + """Filter by the object’s `appIdPrefix` field.""" + appIdPrefix: StringFilter + + """Filter by the object’s `playStoreLink` field.""" + playStoreLink: ConstructiveInternalTypeUrlFilter + + """Checks for all expressions in this list.""" + and: [AppFilter!] + + """Checks for any expressions in this list.""" + or: [AppFilter!] + + """Negates the expression.""" + not: AppFilter + + """Filter by the object’s `site` relation.""" + site: SiteFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + +""" +A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeUrlFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeUrl + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeUrl + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeUrl + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeUrl + + """Included in the specified list.""" + in: [ConstructiveInternalTypeUrl!] + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeUrl!] + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeUrl + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeUrl + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeUrl + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeUrl + + """Contains the specified string (case-sensitive).""" + includes: ConstructiveInternalTypeUrl + + """Does not contain the specified string (case-sensitive).""" + notIncludes: ConstructiveInternalTypeUrl + + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeUrl + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeUrl + + """Starts with the specified string (case-sensitive).""" + startsWith: ConstructiveInternalTypeUrl + + """Does not start with the specified string (case-sensitive).""" + notStartsWith: ConstructiveInternalTypeUrl + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeUrl + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeUrl + + """Ends with the specified string (case-sensitive).""" + endsWith: ConstructiveInternalTypeUrl + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: ConstructiveInternalTypeUrl + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: ConstructiveInternalTypeUrl + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeUrl + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: ConstructiveInternalTypeUrl + + """ + 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: ConstructiveInternalTypeUrl + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: ConstructiveInternalTypeUrl + + """ + 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: ConstructiveInternalTypeUrl + + """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 +} + +scalar ConstructiveInternalTypeUrl + +""" +A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ +""" +input SiteToManyDomainFilter { + """Filters to entities where at least one related entity matches.""" + some: DomainFilter + + """Filters to entities where every related entity matches.""" + every: DomainFilter + + """Filters to entities where no related entity matches.""" + none: DomainFilter +} + +""" +A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ +""" +input SiteToManySiteMetadatumFilter { + """Filters to entities where at least one related entity matches.""" + some: SiteMetadatumFilter + + """Filters to entities where every related entity matches.""" + every: SiteMetadatumFilter + + """Filters to entities where no related entity matches.""" + none: SiteMetadatumFilter +} + +""" +A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ +""" +input SiteMetadatumFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter + + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `ogImage` field.""" + ogImage: ConstructiveInternalTypeImageFilter + + """Checks for all expressions in this list.""" + and: [SiteMetadatumFilter!] + + """Checks for any expressions in this list.""" + or: [SiteMetadatumFilter!] + + """Negates the expression.""" + not: SiteMetadatumFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `site` relation.""" + site: SiteFilter +} + +""" +A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ +""" +input SiteToManySiteModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: SiteModuleFilter + + """Filters to entities where every related entity matches.""" + every: SiteModuleFilter + + """Filters to entities where no related entity matches.""" + none: SiteModuleFilter +} + +""" +A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ +""" +input SiteModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Checks for all expressions in this list.""" + and: [SiteModuleFilter!] + + """Checks for any expressions in this list.""" + or: [SiteModuleFilter!] + + """Negates the expression.""" + not: SiteModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `site` relation.""" + site: SiteFilter +} + +""" +A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ +""" +input SiteToManySiteThemeFilter { + """Filters to entities where at least one related entity matches.""" + some: SiteThemeFilter + + """Filters to entities where every related entity matches.""" + every: SiteThemeFilter + + """Filters to entities where no related entity matches.""" + none: SiteThemeFilter +} + +""" +A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ +""" +input SiteThemeFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `siteId` field.""" + siteId: UUIDFilter + + """Filter by the object’s `theme` field.""" + theme: JSONFilter + + """Checks for all expressions in this list.""" + and: [SiteThemeFilter!] + + """Checks for any expressions in this list.""" + or: [SiteThemeFilter!] + + """Negates the expression.""" + not: SiteThemeFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `site` relation.""" + site: SiteFilter +} + +""" +A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ +""" +input ApiSettingFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter + + """Filter by the object’s `enableAggregates` field.""" + enableAggregates: BooleanFilter + + """Filter by the object’s `enablePostgis` field.""" + enablePostgis: BooleanFilter + + """Filter by the object’s `enableSearch` field.""" + enableSearch: BooleanFilter + + """Filter by the object’s `enableDirectUploads` field.""" + enableDirectUploads: BooleanFilter + + """Filter by the object’s `enablePresignedUploads` field.""" + enablePresignedUploads: BooleanFilter + + """Filter by the object’s `enableManyToMany` field.""" + enableManyToMany: BooleanFilter + + """Filter by the object’s `enableConnectionFilter` field.""" + enableConnectionFilter: BooleanFilter + + """Filter by the object’s `enableLtree` field.""" + enableLtree: BooleanFilter + + """Filter by the object’s `enableLlm` field.""" + enableLlm: BooleanFilter + + """Filter by the object’s `enableRealtime` field.""" + enableRealtime: BooleanFilter + + """Filter by the object’s `enableBulk` field.""" + enableBulk: BooleanFilter + + """Filter by the object’s `enableI18N` field.""" + enableI18N: BooleanFilter + + """Filter by the object’s `options` field.""" + options: JSONFilter + + """Checks for all expressions in this list.""" + and: [ApiSettingFilter!] + + """Checks for any expressions in this list.""" + or: [ApiSettingFilter!] + + """Negates the expression.""" + not: ApiSettingFilter + + """Filter by the object’s `api` relation.""" + api: ApiFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + +""" +A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ +""" +input ApiToManyCorsSettingFilter { + """Filters to entities where at least one related entity matches.""" + some: CorsSettingFilter + + """Filters to entities where every related entity matches.""" + every: CorsSettingFilter + + """Filters to entities where no related entity matches.""" + none: CorsSettingFilter +} + +""" +A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ +""" +input CorsSettingFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter + + """Filter by the object’s `allowedOrigins` field.""" + allowedOrigins: StringListFilter + + """Checks for all expressions in this list.""" + and: [CorsSettingFilter!] + + """Checks for any expressions in this list.""" + or: [CorsSettingFilter!] + + """Negates the expression.""" + not: CorsSettingFilter + + """Filter by the object’s `api` relation.""" + api: ApiFilter + + """A related `api` exists.""" + apiExists: Boolean + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + +""" +A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyTableFilter { + """Filters to entities where at least one related entity matches.""" + some: TableFilter + + """Filters to entities where every related entity matches.""" + every: TableFilter + + """Filters to entities where no related entity matches.""" + none: TableFilter +} + +""" +A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyCheckConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: CheckConstraintFilter + + """Filters to entities where every related entity matches.""" + every: CheckConstraintFilter + + """Filters to entities where no related entity matches.""" + none: CheckConstraintFilter +} + +""" +A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyFieldFilter { + """Filters to entities where at least one related entity matches.""" + some: FieldFilter + + """Filters to entities where every related entity matches.""" + every: FieldFilter + + """Filters to entities where no related entity matches.""" + none: FieldFilter +} + +""" +A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyForeignKeyConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: ForeignKeyConstraintFilter + + """Filters to entities where every related entity matches.""" + every: ForeignKeyConstraintFilter + + """Filters to entities where no related entity matches.""" + none: ForeignKeyConstraintFilter +} + +""" +A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyFullTextSearchFilter { + """Filters to entities where at least one related entity matches.""" + some: FullTextSearchFilter + + """Filters to entities where every related entity matches.""" + every: FullTextSearchFilter + + """Filters to entities where no related entity matches.""" + none: FullTextSearchFilter +} + +""" +A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyIndexFilter { + """Filters to entities where at least one related entity matches.""" + some: IndexFilter + + """Filters to entities where every related entity matches.""" + every: IndexFilter + + """Filters to entities where no related entity matches.""" + none: IndexFilter +} + +""" +A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyPolicyFilter { + """Filters to entities where at least one related entity matches.""" + some: PolicyFilter + + """Filters to entities where every related entity matches.""" + every: PolicyFilter + + """Filters to entities where no related entity matches.""" + none: PolicyFilter +} + +""" +A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyPrimaryKeyConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: PrimaryKeyConstraintFilter + + """Filters to entities where every related entity matches.""" + every: PrimaryKeyConstraintFilter + + """Filters to entities where no related entity matches.""" + none: PrimaryKeyConstraintFilter +} + +""" +A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySchemaGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: SchemaGrantFilter + + """Filters to entities where every related entity matches.""" + every: SchemaGrantFilter + + """Filters to entities where no related entity matches.""" + none: SchemaGrantFilter +} + +""" +A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyTableGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: TableGrantFilter + + """Filters to entities where every related entity matches.""" + every: TableGrantFilter + + """Filters to entities where no related entity matches.""" + none: TableGrantFilter +} + +""" +A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyTriggerFunctionFilter { + """Filters to entities where at least one related entity matches.""" + some: TriggerFunctionFilter + + """Filters to entities where every related entity matches.""" + every: TriggerFunctionFilter + + """Filters to entities where no related entity matches.""" + none: TriggerFunctionFilter +} + +""" +A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ +""" +input TriggerFunctionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `code` field.""" + code: 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: [TriggerFunctionFilter!] + + """Checks for any expressions in this list.""" + or: [TriggerFunctionFilter!] + + """Negates the expression.""" + not: TriggerFunctionFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + +""" +A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyTriggerFilter { + """Filters to entities where at least one related entity matches.""" + some: TriggerFilter + + """Filters to entities where every related entity matches.""" + every: TriggerFilter + + """Filters to entities where no related entity matches.""" + none: TriggerFilter +} + +""" +A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyUniqueConstraintFilter { + """Filters to entities where at least one related entity matches.""" + some: UniqueConstraintFilter + + """Filters to entities where every related entity matches.""" + every: UniqueConstraintFilter + + """Filters to entities where no related entity matches.""" + none: UniqueConstraintFilter +} + +""" +A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyViewFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewFilter + + """Filters to entities where every related entity matches.""" + every: ViewFilter + + """Filters to entities where no related entity matches.""" + none: ViewFilter +} + +""" +A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyViewGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewGrantFilter + + """Filters to entities where every related entity matches.""" + every: ViewGrantFilter + + """Filters to entities where no related entity matches.""" + none: ViewGrantFilter +} + +""" +A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyViewRuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewRuleFilter + + """Filters to entities where every related entity matches.""" + every: ViewRuleFilter + + """Filters to entities where no related entity matches.""" + none: ViewRuleFilter +} + +""" +A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyDefaultPrivilegeFilter { + """Filters to entities where at least one related entity matches.""" + some: DefaultPrivilegeFilter + + """Filters to entities where every related entity matches.""" + every: DefaultPrivilegeFilter + + """Filters to entities where no related entity matches.""" + none: DefaultPrivilegeFilter +} + +""" +A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyEnumFilter { + """Filters to entities where at least one related entity matches.""" + some: EnumFilter + + """Filters to entities where every related entity matches.""" + every: EnumFilter + + """Filters to entities where no related entity matches.""" + none: EnumFilter +} + +""" +A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyEmbeddingChunkFilter { + """Filters to entities where at least one related entity matches.""" + some: EmbeddingChunkFilter + + """Filters to entities where every related entity matches.""" + every: EmbeddingChunkFilter + + """Filters to entities where no related entity matches.""" + none: EmbeddingChunkFilter +} + +""" +A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySpatialRelationFilter { + """Filters to entities where at least one related entity matches.""" + some: SpatialRelationFilter + + """Filters to entities where every related entity matches.""" + every: SpatialRelationFilter + + """Filters to entities where no related entity matches.""" + none: SpatialRelationFilter +} + +""" +A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyFunctionFilter { + """Filters to entities where at least one related entity matches.""" + some: FunctionFilter + + """Filters to entities where every related entity matches.""" + every: FunctionFilter + + """Filters to entities where no related entity matches.""" + none: FunctionFilter +} + +""" +A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyPartitionFilter { + """Filters to entities where at least one related entity matches.""" + some: PartitionFilter + + """Filters to entities where every related entity matches.""" + every: PartitionFilter + + """Filters to entities where no related entity matches.""" + none: PartitionFilter +} + +""" +A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyDatabaseTransferFilter { + """Filters to entities where at least one related entity matches.""" + some: DatabaseTransferFilter + + """Filters to entities where every related entity matches.""" + every: DatabaseTransferFilter + + """Filters to entities where no related entity matches.""" + none: DatabaseTransferFilter +} + +""" +A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseTransferFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `targetOwnerId` field.""" + targetOwnerId: UUIDFilter + + """Filter by the object’s `sourceApproved` field.""" + sourceApproved: BooleanFilter + + """Filter by the object’s `targetApproved` field.""" + targetApproved: BooleanFilter + + """Filter by the object’s `sourceApprovedAt` field.""" + sourceApprovedAt: DatetimeFilter + + """Filter by the object’s `targetApprovedAt` field.""" + targetApprovedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `initiatedBy` field.""" + initiatedBy: UUIDFilter + + """Filter by the object’s `notes` field.""" + notes: StringFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [DatabaseTransferFilter!] + + """Checks for any expressions in this list.""" + or: [DatabaseTransferFilter!] + + """Negates the expression.""" + not: DatabaseTransferFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + +""" +A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyApiFilter { + """Filters to entities where at least one related entity matches.""" + some: ApiFilter + + """Filters to entities where every related entity matches.""" + every: ApiFilter + + """Filters to entities where no related entity matches.""" + none: ApiFilter +} + +""" +A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyApiModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ApiModuleFilter + + """Filters to entities where every related entity matches.""" + every: ApiModuleFilter + + """Filters to entities where no related entity matches.""" + none: ApiModuleFilter +} + +""" +A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyApiSchemaFilter { + """Filters to entities where at least one related entity matches.""" + some: ApiSchemaFilter + + """Filters to entities where every related entity matches.""" + every: ApiSchemaFilter + + """Filters to entities where no related entity matches.""" + none: ApiSchemaFilter +} + +""" +A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySiteFilter { + """Filters to entities where at least one related entity matches.""" + some: SiteFilter + + """Filters to entities where every related entity matches.""" + every: SiteFilter + + """Filters to entities where no related entity matches.""" + none: SiteFilter +} + +""" +A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyAppFilter { + """Filters to entities where at least one related entity matches.""" + some: AppFilter + + """Filters to entities where every related entity matches.""" + every: AppFilter + + """Filters to entities where no related entity matches.""" + none: AppFilter +} + +""" +A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyDomainFilter { + """Filters to entities where at least one related entity matches.""" + some: DomainFilter + + """Filters to entities where every related entity matches.""" + every: DomainFilter + + """Filters to entities where no related entity matches.""" + none: DomainFilter +} + +""" +A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySiteMetadatumFilter { + """Filters to entities where at least one related entity matches.""" + some: SiteMetadatumFilter + + """Filters to entities where every related entity matches.""" + every: SiteMetadatumFilter + + """Filters to entities where no related entity matches.""" + none: SiteMetadatumFilter +} + +""" +A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySiteModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: SiteModuleFilter + + """Filters to entities where every related entity matches.""" + every: SiteModuleFilter + + """Filters to entities where no related entity matches.""" + none: SiteModuleFilter +} + +""" +A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySiteThemeFilter { + """Filters to entities where at least one related entity matches.""" + some: SiteThemeFilter + + """Filters to entities where every related entity matches.""" + every: SiteThemeFilter + + """Filters to entities where no related entity matches.""" + none: SiteThemeFilter +} + +""" +A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseSettingFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `enableAggregates` field.""" + enableAggregates: BooleanFilter + + """Filter by the object’s `enablePostgis` field.""" + enablePostgis: BooleanFilter + + """Filter by the object’s `enableSearch` field.""" + enableSearch: BooleanFilter + + """Filter by the object’s `enableDirectUploads` field.""" + enableDirectUploads: BooleanFilter + + """Filter by the object’s `enablePresignedUploads` field.""" + enablePresignedUploads: BooleanFilter + + """Filter by the object’s `enableManyToMany` field.""" + enableManyToMany: BooleanFilter + + """Filter by the object’s `enableConnectionFilter` field.""" + enableConnectionFilter: BooleanFilter + + """Filter by the object’s `enableLtree` field.""" + enableLtree: BooleanFilter + + """Filter by the object’s `enableLlm` field.""" + enableLlm: BooleanFilter + + """Filter by the object’s `enableRealtime` field.""" + enableRealtime: BooleanFilter + + """Filter by the object’s `enableBulk` field.""" + enableBulk: BooleanFilter + + """Filter by the object’s `enableI18N` field.""" + enableI18N: BooleanFilter + + """Filter by the object’s `options` field.""" + options: JSONFilter + + """Checks for all expressions in this list.""" + and: [DatabaseSettingFilter!] + + """Checks for any expressions in this list.""" + or: [DatabaseSettingFilter!] + + """Negates the expression.""" + not: DatabaseSettingFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + +""" +A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyApiSettingFilter { + """Filters to entities where at least one related entity matches.""" + some: ApiSettingFilter + + """Filters to entities where every related entity matches.""" + every: ApiSettingFilter + + """Filters to entities where no related entity matches.""" + none: ApiSettingFilter +} + +""" +A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ +""" +input RlsSettingFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `authenticateSchemaId` field.""" + authenticateSchemaId: UUIDFilter + + """Filter by the object’s `roleSchemaId` field.""" + roleSchemaId: UUIDFilter + + """Filter by the object’s `authenticateFunctionId` field.""" + authenticateFunctionId: UUIDFilter + + """Filter by the object’s `authenticateStrictFunctionId` field.""" + authenticateStrictFunctionId: UUIDFilter + + """Filter by the object’s `currentRoleFunctionId` field.""" + currentRoleFunctionId: UUIDFilter + + """Filter by the object’s `currentRoleIdFunctionId` field.""" + currentRoleIdFunctionId: UUIDFilter + + """Filter by the object’s `currentUserAgentFunctionId` field.""" + currentUserAgentFunctionId: UUIDFilter + + """Filter by the object’s `currentIpAddressFunctionId` field.""" + currentIpAddressFunctionId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [RlsSettingFilter!] + + """Checks for any expressions in this list.""" + or: [RlsSettingFilter!] + + """Negates the expression.""" + not: RlsSettingFilter + + """Filter by the object’s `authenticateFunction` relation.""" + authenticateFunction: FunctionFilter + + """A related `authenticateFunction` exists.""" + authenticateFunctionExists: Boolean + + """Filter by the object’s `authenticateSchema` relation.""" + authenticateSchema: SchemaFilter + + """A related `authenticateSchema` exists.""" + authenticateSchemaExists: Boolean + + """Filter by the object’s `authenticateStrictFunction` relation.""" + authenticateStrictFunction: FunctionFilter + + """A related `authenticateStrictFunction` exists.""" + authenticateStrictFunctionExists: Boolean + + """Filter by the object’s `currentIpAddressFunction` relation.""" + currentIpAddressFunction: FunctionFilter + + """A related `currentIpAddressFunction` exists.""" + currentIpAddressFunctionExists: Boolean + + """Filter by the object’s `currentRoleFunction` relation.""" + currentRoleFunction: FunctionFilter + + """A related `currentRoleFunction` exists.""" + currentRoleFunctionExists: Boolean + + """Filter by the object’s `currentRoleIdFunction` relation.""" + currentRoleIdFunction: FunctionFilter + + """A related `currentRoleIdFunction` exists.""" + currentRoleIdFunctionExists: Boolean + + """Filter by the object’s `currentUserAgentFunction` relation.""" + currentUserAgentFunction: FunctionFilter + + """A related `currentUserAgentFunction` exists.""" + currentUserAgentFunctionExists: Boolean + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `roleSchema` relation.""" + roleSchema: SchemaFilter + + """A related `roleSchema` exists.""" + roleSchemaExists: Boolean +} + +""" +A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyCorsSettingFilter { + """Filters to entities where at least one related entity matches.""" + some: CorsSettingFilter + + """Filters to entities where every related entity matches.""" + every: CorsSettingFilter + + """Filters to entities where no related entity matches.""" + none: CorsSettingFilter +} + +""" +A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ +""" +input PubkeySettingFilter { + """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 `cryptoNetwork` field.""" + cryptoNetwork: StringFilter + + """Filter by the object’s `userField` field.""" + userField: StringFilter + + """Filter by the object’s `signUpWithKeyFunctionId` field.""" + signUpWithKeyFunctionId: UUIDFilter + + """Filter by the object’s `signInRequestChallengeFunctionId` field.""" + signInRequestChallengeFunctionId: UUIDFilter + + """Filter by the object’s `signInRecordFailureFunctionId` field.""" + signInRecordFailureFunctionId: UUIDFilter + + """Filter by the object’s `signInWithChallengeFunctionId` field.""" + signInWithChallengeFunctionId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PubkeySettingFilter!] + + """Checks for any expressions in this list.""" + or: [PubkeySettingFilter!] + + """Negates the expression.""" + not: PubkeySettingFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """A related `schema` exists.""" + schemaExists: Boolean + + """Filter by the object’s `signInRecordFailureFunction` relation.""" + signInRecordFailureFunction: FunctionFilter + + """A related `signInRecordFailureFunction` exists.""" + signInRecordFailureFunctionExists: Boolean + + """Filter by the object’s `signInRequestChallengeFunction` relation.""" + signInRequestChallengeFunction: FunctionFilter + + """A related `signInRequestChallengeFunction` exists.""" + signInRequestChallengeFunctionExists: Boolean + + """Filter by the object’s `signInWithChallengeFunction` relation.""" + signInWithChallengeFunction: FunctionFilter + + """A related `signInWithChallengeFunction` exists.""" + signInWithChallengeFunctionExists: Boolean + + """Filter by the object’s `signUpWithKeyFunction` relation.""" + signUpWithKeyFunction: FunctionFilter + + """A related `signUpWithKeyFunction` exists.""" + signUpWithKeyFunctionExists: Boolean +} + +""" +A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ +""" +input WebauthnSettingFilter { + """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 `credentialsSchemaId` field.""" + credentialsSchemaId: UUIDFilter + + """Filter by the object’s `sessionsSchemaId` field.""" + sessionsSchemaId: UUIDFilter + + """Filter by the object’s `sessionSecretsSchemaId` field.""" + sessionSecretsSchemaId: 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 `userFieldId` field.""" + userFieldId: 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 `challengeExpirySeconds` field.""" + challengeExpirySeconds: BigIntFilter + + """Checks for all expressions in this list.""" + and: [WebauthnSettingFilter!] + + """Checks for any expressions in this list.""" + or: [WebauthnSettingFilter!] + + """Negates the expression.""" + not: WebauthnSettingFilter + + """Filter by the object’s `credentialsSchema` relation.""" + credentialsSchema: SchemaFilter + + """A related `credentialsSchema` exists.""" + credentialsSchemaExists: Boolean + + """Filter by the object’s `credentialsTable` relation.""" + credentialsTable: TableFilter + + """A related `credentialsTable` exists.""" + credentialsTableExists: Boolean + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """A related `schema` exists.""" + schemaExists: Boolean + + """Filter by the object’s `sessionCredentialsTable` relation.""" + sessionCredentialsTable: TableFilter + + """A related `sessionCredentialsTable` exists.""" + sessionCredentialsTableExists: Boolean + + """Filter by the object’s `sessionSecretsSchema` relation.""" + sessionSecretsSchema: SchemaFilter + + """A related `sessionSecretsSchema` exists.""" + sessionSecretsSchemaExists: Boolean + + """Filter by the object’s `sessionSecretsTable` relation.""" + sessionSecretsTable: TableFilter + + """A related `sessionSecretsTable` exists.""" + sessionSecretsTableExists: Boolean + + """Filter by the object’s `sessionsSchema` relation.""" + sessionsSchema: SchemaFilter + + """A related `sessionsSchema` exists.""" + sessionsSchemaExists: Boolean + + """Filter by the object’s `sessionsTable` relation.""" + sessionsTable: TableFilter + + """A related `sessionsTable` exists.""" + sessionsTableExists: Boolean + + """Filter by the object’s `userField` relation.""" + userField: FieldFilter + + """A related `userField` exists.""" + userFieldExists: Boolean +} + +""" +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 +} + +""" +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 + +"""Methods to use when ordering `CheckConstraint`.""" +enum CheckConstraintOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + TYPE_ASC + TYPE_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + EXPR_ASC + EXPR_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `Field` values.""" +type FieldConnection { + """A list of `Field` objects.""" + nodes: [Field]! + + """ + A list of edges which contains the `Field` and cursor to aid in pagination. + """ + edges: [FieldEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Field` you could get from the connection.""" + totalCount: Int! +} + +type Field { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String! + label: String + description: String + smartTags: JSON + isRequired: Boolean! + apiRequired: Boolean! + defaultValue: JSON + type: JSON! + fieldOrder: Int! + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String]! + category: ObjectCategory! + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Field`.""" + database: Database + + """Reads a single `Table` that is related to this `Field`.""" + table: Table + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SpatialRelationFilter + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + ): SpatialRelationConnection! + + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelationsByRefFieldId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SpatialRelationFilter + + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + ): SpatialRelationConnection! +} + +"""A connection to a list of `SpatialRelation` values.""" +type SpatialRelationConnection { + """A list of `SpatialRelation` objects.""" + nodes: [SpatialRelation]! + + """ + A list of edges which contains the `SpatialRelation` and cursor to aid in pagination. + """ + edges: [SpatialRelationEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `SpatialRelation` you could get from the connection. + """ + totalCount: Int! +} + +type SpatialRelation { + id: UUID! + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + refTableId: UUID! + refFieldId: UUID! + name: String! + operator: String! + paramName: String + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `SpatialRelation`.""" + database: Database + + """Reads a single `Field` that is related to this `SpatialRelation`.""" + field: Field + + """Reads a single `Field` that is related to this `SpatialRelation`.""" + refField: Field + + """Reads a single `Table` that is related to this `SpatialRelation`.""" + refTable: Table + + """Reads a single `Table` that is related to this `SpatialRelation`.""" + table: Table +} + +"""A `SpatialRelation` edge in the connection.""" +type SpatialRelationEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SpatialRelation` at the end of the edge.""" + node: SpatialRelation +} + +"""Methods to use when ordering `SpatialRelation`.""" +enum SpatialRelationOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + FIELD_ID_ASC + FIELD_ID_DESC + REF_TABLE_ID_ASC + REF_TABLE_ID_DESC + REF_FIELD_ID_ASC + REF_FIELD_ID_DESC + NAME_ASC + NAME_DESC + OPERATOR_ASC + OPERATOR_DESC + PARAM_NAME_ASC + PARAM_NAME_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A `Field` edge in the connection.""" +type FieldEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Field` at the end of the edge.""" + node: Field +} + +"""Methods to use when ordering `Field`.""" +enum FieldOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + LABEL_ASC + LABEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + IS_REQUIRED_ASC + IS_REQUIRED_DESC + API_REQUIRED_ASC + API_REQUIRED_DESC + DEFAULT_VALUE_ASC + DEFAULT_VALUE_DESC + TYPE_ASC + TYPE_DESC + FIELD_ORDER_ASC + FIELD_ORDER_DESC + REGEXP_ASC + REGEXP_DESC + CHK_ASC + CHK_DESC + CHK_EXPR_ASC + CHK_EXPR_DESC + MIN_ASC + MIN_DESC + MAX_ASC + MAX_DESC + TAGS_ASC + TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `ForeignKeyConstraint` values.""" +type ForeignKeyConstraintConnection { + """A list of `ForeignKeyConstraint` objects.""" + nodes: [ForeignKeyConstraint]! + + """ + A list of edges which contains the `ForeignKeyConstraint` and cursor to aid in pagination. + """ + edges: [ForeignKeyConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ForeignKeyConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type ForeignKeyConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + refTableId: UUID! + refFieldIds: [UUID]! + deleteAction: String + updateAction: String + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """ + Reads a single `Database` that is related to this `ForeignKeyConstraint`. + """ + database: Database + + """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" + refTable: Table + + """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" + table: Table +} + +"""A `ForeignKeyConstraint` edge in the connection.""" +type ForeignKeyConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ForeignKeyConstraint` at the end of the edge.""" + node: ForeignKeyConstraint +} + +"""Methods to use when ordering `ForeignKeyConstraint`.""" +enum ForeignKeyConstraintOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + TYPE_ASC + TYPE_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + REF_TABLE_ID_ASC + REF_TABLE_ID_DESC + REF_FIELD_IDS_ASC + REF_FIELD_IDS_DESC + DELETE_ACTION_ASC + DELETE_ACTION_DESC + UPDATE_ACTION_ASC + UPDATE_ACTION_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `FullTextSearch` values.""" +type FullTextSearchConnection { + """A list of `FullTextSearch` objects.""" + nodes: [FullTextSearch]! + + """ + A list of edges which contains the `FullTextSearch` and cursor to aid in pagination. + """ + edges: [FullTextSearchEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `FullTextSearch` you could get from the connection.""" + totalCount: Int! +} + +type FullTextSearch { + id: UUID! + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + fieldIds: [UUID]! + weights: [String]! + langs: [String]! + langColumn: String + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `FullTextSearch`.""" + database: Database + + """Reads a single `Table` that is related to this `FullTextSearch`.""" + table: Table +} + +"""A `FullTextSearch` edge in the connection.""" +type FullTextSearchEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FullTextSearch` at the end of the edge.""" + node: FullTextSearch +} + +"""Methods to use when ordering `FullTextSearch`.""" +enum FullTextSearchOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + FIELD_ID_ASC + FIELD_ID_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + WEIGHTS_ASC + WEIGHTS_DESC + LANGS_ASC + LANGS_DESC + LANG_COLUMN_ASC + LANG_COLUMN_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `Index` values.""" +type IndexConnection { + """A list of `Index` objects.""" + nodes: [Index]! + + """ + A list of edges which contains the `Index` and cursor to aid in pagination. + """ + edges: [IndexEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Index` you could get from the connection.""" + totalCount: Int! +} + +type Index { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String! + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String! + indexParams: JSON + whereClause: JSON + isUnique: Boolean! + options: JSON + opClasses: [String] + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Index`.""" + database: Database + + """Reads a single `Table` that is related to this `Index`.""" + table: Table +} + +"""A `Index` edge in the connection.""" +type IndexEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Index` at the end of the edge.""" + node: Index +} + +"""Methods to use when ordering `Index`.""" +enum IndexOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + INCLUDE_FIELD_IDS_ASC + INCLUDE_FIELD_IDS_DESC + ACCESS_METHOD_ASC + ACCESS_METHOD_DESC + INDEX_PARAMS_ASC + INDEX_PARAMS_DESC + WHERE_CLAUSE_ASC + WHERE_CLAUSE_DESC + IS_UNIQUE_ASC + IS_UNIQUE_DESC + OPTIONS_ASC + OPTIONS_DESC + OP_CLASSES_ASC + OP_CLASSES_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `Policy` values.""" +type PolicyConnection { + """A list of `Policy` objects.""" + nodes: [Policy]! + + """ + A list of edges which contains the `Policy` and cursor to aid in pagination. + """ + edges: [PolicyEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Policy` you could get from the connection.""" + totalCount: Int! +} + +type Policy { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + granteeName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Policy`.""" + database: Database + + """Reads a single `Table` that is related to this `Policy`.""" + table: Table +} + +"""A `Policy` edge in the connection.""" +type PolicyEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Policy` at the end of the edge.""" + node: Policy +} + +"""Methods to use when ordering `Policy`.""" +enum PolicyOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + GRANTEE_NAME_ASC + GRANTEE_NAME_DESC + PRIVILEGE_ASC + PRIVILEGE_DESC + PERMISSIVE_ASC + PERMISSIVE_DESC + DISABLED_ASC + DISABLED_DESC + POLICY_TYPE_ASC + POLICY_TYPE_DESC + DATA_ASC + DATA_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `PrimaryKeyConstraint` values.""" +type PrimaryKeyConstraintConnection { + """A list of `PrimaryKeyConstraint` objects.""" + nodes: [PrimaryKeyConstraint]! + + """ + A list of edges which contains the `PrimaryKeyConstraint` and cursor to aid in pagination. + """ + edges: [PrimaryKeyConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PrimaryKeyConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type PrimaryKeyConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """ + Reads a single `Database` that is related to this `PrimaryKeyConstraint`. + """ + database: Database + + """Reads a single `Table` that is related to this `PrimaryKeyConstraint`.""" + table: Table +} + +"""A `PrimaryKeyConstraint` edge in the connection.""" +type PrimaryKeyConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PrimaryKeyConstraint` at the end of the edge.""" + node: PrimaryKeyConstraint +} + +"""Methods to use when ordering `PrimaryKeyConstraint`.""" +enum PrimaryKeyConstraintOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + TYPE_ASC + TYPE_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `TableGrant` values.""" +type TableGrantConnection { + """A list of `TableGrant` objects.""" + nodes: [TableGrant]! + + """ + A list of edges which contains the `TableGrant` and cursor to aid in pagination. + """ + edges: [TableGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `TableGrant` you could get from the connection.""" + totalCount: Int! +} + +type TableGrant { + id: UUID! + databaseId: UUID! + tableId: UUID! + privilege: String! + granteeName: String! + fieldIds: [UUID] + isGrant: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `TableGrant`.""" + database: Database + + """Reads a single `Table` that is related to this `TableGrant`.""" + table: Table +} + +"""A `TableGrant` edge in the connection.""" +type TableGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TableGrant` at the end of the edge.""" + node: TableGrant +} + +"""Methods to use when ordering `TableGrant`.""" +enum TableGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + PRIVILEGE_ASC + PRIVILEGE_DESC + GRANTEE_NAME_ASC + GRANTEE_NAME_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + IS_GRANT_ASC + IS_GRANT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `Trigger` values.""" +type TriggerConnection { + """A list of `Trigger` objects.""" + nodes: [Trigger]! + + """ + A list of edges which contains the `Trigger` and cursor to aid in pagination. + """ + edges: [TriggerEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Trigger` you could get from the connection.""" + totalCount: Int! +} + +type Trigger { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String! + event: String + functionName: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Trigger`.""" + database: Database + + """Reads a single `Table` that is related to this `Trigger`.""" + table: Table +} + +"""A `Trigger` edge in the connection.""" +type TriggerEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Trigger` at the end of the edge.""" + node: Trigger +} + +"""Methods to use when ordering `Trigger`.""" +enum TriggerOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + EVENT_ASC + EVENT_DESC + FUNCTION_NAME_ASC + FUNCTION_NAME_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `UniqueConstraint` values.""" +type UniqueConstraintConnection { + """A list of `UniqueConstraint` objects.""" + nodes: [UniqueConstraint]! + + """ + A list of edges which contains the `UniqueConstraint` and cursor to aid in pagination. + """ + edges: [UniqueConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `UniqueConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type UniqueConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `UniqueConstraint`.""" + database: Database + + """Reads a single `Table` that is related to this `UniqueConstraint`.""" + table: Table +} + +"""A `UniqueConstraint` edge in the connection.""" +type UniqueConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UniqueConstraint` at the end of the edge.""" + node: UniqueConstraint +} + +"""Methods to use when ordering `UniqueConstraint`.""" +enum UniqueConstraintOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + TYPE_ASC + TYPE_DESC + FIELD_IDS_ASC + FIELD_IDS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `View` values.""" +type ViewConnection { + """A list of `View` objects.""" + nodes: [View]! + + """ + A list of edges which contains the `View` and cursor to aid in pagination. + """ + edges: [ViewEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `View` you could get from the connection.""" + totalCount: Int! +} + +type View { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + tableId: UUID + viewType: String! + data: JSON + filterType: String + filterData: JSON + securityInvoker: Boolean + isReadOnly: Boolean + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + + """Reads a single `Database` that is related to this `View`.""" + database: Database + + """Reads a single `Schema` that is related to this `View`.""" + schema: Schema + + """Reads a single `Table` that is related to this `View`.""" + table: Table + + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewTableFilter + + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection! + + """Reads and enables pagination through a set of `ViewGrant`.""" + viewGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewGrantFilter + + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewGrantConnection! + + """Reads and enables pagination through a set of `ViewRule`.""" + viewRules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ViewRuleFilter + + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewRuleConnection! +} + +"""A connection to a list of `ViewTable` values.""" +type ViewTableConnection { + """A list of `ViewTable` objects.""" + nodes: [ViewTable]! + + """ + A list of edges which contains the `ViewTable` and cursor to aid in pagination. + """ + edges: [ViewTableEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ViewTable` you could get from the connection.""" + totalCount: Int! +} + +""" +Junction table linking views to their joined tables for referential integrity +""" +type ViewTable { + id: UUID! + viewId: UUID! + tableId: UUID! + joinOrder: Int! + + """Reads a single `Table` that is related to this `ViewTable`.""" + table: Table + + """Reads a single `View` that is related to this `ViewTable`.""" + view: View +} + +"""A `ViewTable` edge in the connection.""" +type ViewTableEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ViewTable` at the end of the edge.""" + node: ViewTable +} + +"""Methods to use when ordering `ViewTable`.""" +enum ViewTableOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + VIEW_ID_ASC + VIEW_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + JOIN_ORDER_ASC + JOIN_ORDER_DESC +} + +"""A connection to a list of `ViewGrant` values.""" +type ViewGrantConnection { + """A list of `ViewGrant` objects.""" + nodes: [ViewGrant]! + + """ + A list of edges which contains the `ViewGrant` and cursor to aid in pagination. + """ + edges: [ViewGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ViewGrant` you could get from the connection.""" + totalCount: Int! +} + +type ViewGrant { + id: UUID! + databaseId: UUID! + viewId: UUID! + granteeName: String! + privilege: String! + withGrantOption: Boolean + isGrant: Boolean! + + """Reads a single `Database` that is related to this `ViewGrant`.""" + database: Database + + """Reads a single `View` that is related to this `ViewGrant`.""" + view: View +} + +"""A `ViewGrant` edge in the connection.""" +type ViewGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ViewGrant` at the end of the edge.""" + node: ViewGrant +} + +"""Methods to use when ordering `ViewGrant`.""" +enum ViewGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + VIEW_ID_ASC + VIEW_ID_DESC + GRANTEE_NAME_ASC + GRANTEE_NAME_DESC + PRIVILEGE_ASC + PRIVILEGE_DESC + WITH_GRANT_OPTION_ASC + WITH_GRANT_OPTION_DESC + IS_GRANT_ASC + IS_GRANT_DESC +} + +"""A connection to a list of `ViewRule` values.""" +type ViewRuleConnection { + """A list of `ViewRule` objects.""" + nodes: [ViewRule]! + + """ + A list of edges which contains the `ViewRule` and cursor to aid in pagination. + """ + edges: [ViewRuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ViewRule` you could get from the connection.""" + totalCount: Int! +} + +"""DO INSTEAD rules for views (e.g., read-only enforcement)""" +type ViewRule { + id: UUID! + databaseId: UUID! + viewId: UUID! + name: String! + + """INSERT, UPDATE, or DELETE""" + event: String! + + """NOTHING (for read-only) or custom action""" + action: String! + + """Reads a single `Database` that is related to this `ViewRule`.""" + database: Database + + """Reads a single `View` that is related to this `ViewRule`.""" + view: View +} + +"""A `ViewRule` edge in the connection.""" +type ViewRuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ViewRule` at the end of the edge.""" + node: ViewRule +} + +"""Methods to use when ordering `ViewRule`.""" +enum ViewRuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + VIEW_ID_ASC + VIEW_ID_DESC + NAME_ASC + NAME_DESC + EVENT_ASC + EVENT_DESC + ACTION_ASC + ACTION_DESC +} + +"""A `View` edge in the connection.""" +type ViewEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `View` at the end of the edge.""" + node: View +} + +"""Methods to use when ordering `View`.""" +enum ViewOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + NAME_ASC + NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + VIEW_TYPE_ASC + VIEW_TYPE_DESC + DATA_ASC + DATA_DESC + FILTER_TYPE_ASC + FILTER_TYPE_DESC + FILTER_DATA_ASC + FILTER_DATA_DESC + SECURITY_INVOKER_ASC + SECURITY_INVOKER_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC +} + +"""A connection to a list of `EmbeddingChunk` values.""" +type EmbeddingChunkConnection { + """A list of `EmbeddingChunk` objects.""" + nodes: [EmbeddingChunk]! + + """ + A list of edges which contains the `EmbeddingChunk` and cursor to aid in pagination. + """ + edges: [EmbeddingChunkEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `EmbeddingChunk` you could get from the connection.""" + totalCount: Int! +} + +type EmbeddingChunk { + id: UUID! + databaseId: UUID! + tableId: UUID! + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String! + dimensions: Int! + metric: String! + chunkSize: Int! + chunkOverlap: Int! + chunkStrategy: String! + metadataFields: JSON + searchIndexes: JSON + enqueueChunkingJob: Boolean! + chunkingTaskName: String! + embeddingModel: String + embeddingProvider: String + parentFkFieldId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Table` that is related to this `EmbeddingChunk`.""" + chunksTable: Table + + """Reads a single `Database` that is related to this `EmbeddingChunk`.""" + database: Database + + """Reads a single `Field` that is related to this `EmbeddingChunk`.""" + embeddingField: Field + + """Reads a single `Field` that is related to this `EmbeddingChunk`.""" + parentFkField: Field + + """Reads a single `Table` that is related to this `EmbeddingChunk`.""" + table: Table +} + +"""A `EmbeddingChunk` edge in the connection.""" +type EmbeddingChunkEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EmbeddingChunk` at the end of the edge.""" + node: EmbeddingChunk +} + +"""Methods to use when ordering `EmbeddingChunk`.""" +enum EmbeddingChunkOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + EMBEDDING_FIELD_ID_ASC + EMBEDDING_FIELD_ID_DESC + CHUNKS_TABLE_ID_ASC + CHUNKS_TABLE_ID_DESC + CHUNKS_TABLE_NAME_ASC + CHUNKS_TABLE_NAME_DESC + CONTENT_FIELD_NAME_ASC + CONTENT_FIELD_NAME_DESC + DIMENSIONS_ASC + DIMENSIONS_DESC + METRIC_ASC + METRIC_DESC + CHUNK_SIZE_ASC + CHUNK_SIZE_DESC + CHUNK_OVERLAP_ASC + CHUNK_OVERLAP_DESC + CHUNK_STRATEGY_ASC + CHUNK_STRATEGY_DESC + METADATA_FIELDS_ASC + METADATA_FIELDS_DESC + SEARCH_INDEXES_ASC + SEARCH_INDEXES_DESC + ENQUEUE_CHUNKING_JOB_ASC + ENQUEUE_CHUNKING_JOB_DESC + CHUNKING_TASK_NAME_ASC + CHUNKING_TASK_NAME_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_PROVIDER_ASC + EMBEDDING_PROVIDER_DESC + PARENT_FK_FIELD_ID_ASC + PARENT_FK_FIELD_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +type Partition { + id: UUID! + databaseId: UUID! + tableId: UUID! + strategy: String! + partitionKeyId: UUID! + interval: String + retention: String + retentionKeepTable: Boolean! + premake: Int! + namingPattern: String! + isParented: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Partition`.""" + database: Database + + """Reads a single `Field` that is related to this `Partition`.""" + partitionKey: Field + + """Reads a single `Table` that is related to this `Partition`.""" + table: Table +} + +"""A `Table` edge in the connection.""" +type TableEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Table` at the end of the edge.""" + node: Table +} + +"""Methods to use when ordering `Table`.""" +enum TableOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + NAME_ASC + NAME_DESC + LABEL_ASC + LABEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + USE_RLS_ASC + USE_RLS_DESC + TIMESTAMPS_ASC + TIMESTAMPS_DESC + PEOPLESTAMPS_ASC + PEOPLESTAMPS_DESC + PLURAL_NAME_ASC + PLURAL_NAME_DESC + SINGULAR_NAME_ASC + SINGULAR_NAME_DESC + TAGS_ASC + TAGS_DESC + PARTITIONED_ASC + PARTITIONED_DESC + PARTITION_STRATEGY_ASC + PARTITION_STRATEGY_DESC + PARTITION_KEY_NAMES_ASC + PARTITION_KEY_NAMES_DESC + PARTITION_KEY_TYPES_ASC + PARTITION_KEY_TYPES_DESC + INHERITS_ID_ASC + INHERITS_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `SchemaGrant` values.""" +type SchemaGrantConnection { + """A list of `SchemaGrant` objects.""" + nodes: [SchemaGrant]! + + """ + A list of edges which contains the `SchemaGrant` and cursor to aid in pagination. + """ + edges: [SchemaGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SchemaGrant` you could get from the connection.""" + totalCount: Int! +} + +type SchemaGrant { + id: UUID! + databaseId: UUID! + schemaId: UUID! + granteeName: String! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `SchemaGrant`.""" + database: Database + + """Reads a single `Schema` that is related to this `SchemaGrant`.""" + schema: Schema +} + +"""A `SchemaGrant` edge in the connection.""" +type SchemaGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SchemaGrant` at the end of the edge.""" + node: SchemaGrant +} + +"""Methods to use when ordering `SchemaGrant`.""" +enum SchemaGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + GRANTEE_NAME_ASC + GRANTEE_NAME_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `DefaultPrivilege` values.""" +type DefaultPrivilegeConnection { + """A list of `DefaultPrivilege` objects.""" + nodes: [DefaultPrivilege]! + + """ + A list of edges which contains the `DefaultPrivilege` and cursor to aid in pagination. + """ + edges: [DefaultPrivilegeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DefaultPrivilege` you could get from the connection. + """ + totalCount: Int! +} + +type DefaultPrivilege { + id: UUID! + databaseId: UUID! + schemaId: UUID! + objectType: String! + privilege: String! + granteeName: String! + isGrant: Boolean! + + """Reads a single `Database` that is related to this `DefaultPrivilege`.""" + database: Database + + """Reads a single `Schema` that is related to this `DefaultPrivilege`.""" + schema: Schema +} + +"""A `DefaultPrivilege` edge in the connection.""" +type DefaultPrivilegeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DefaultPrivilege` at the end of the edge.""" + node: DefaultPrivilege +} + +"""Methods to use when ordering `DefaultPrivilege`.""" +enum DefaultPrivilegeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + OBJECT_TYPE_ASC + OBJECT_TYPE_DESC + PRIVILEGE_ASC + PRIVILEGE_DESC + GRANTEE_NAME_ASC + GRANTEE_NAME_DESC + IS_GRANT_ASC + IS_GRANT_DESC +} + +"""A connection to a list of `Enum` values.""" +type EnumConnection { + """A list of `Enum` objects.""" + nodes: [Enum]! + + """ + A list of edges which contains the `Enum` and cursor to aid in pagination. + """ + edges: [EnumEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Enum` you could get from the connection.""" + totalCount: Int! +} + +type Enum { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + values: [String]! + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + + """Reads a single `Database` that is related to this `Enum`.""" + database: Database + + """Reads a single `Schema` that is related to this `Enum`.""" + schema: Schema +} + +"""A `Enum` edge in the connection.""" +type EnumEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Enum` at the end of the edge.""" + node: Enum +} + +"""Methods to use when ordering `Enum`.""" +enum EnumOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + NAME_ASC + NAME_DESC + LABEL_ASC + LABEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + VALUES_ASC + VALUES_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC +} + +"""Methods to use when ordering `Function`.""" +enum FunctionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `ApiSchema` values.""" +type ApiSchemaConnection { + """A list of `ApiSchema` objects.""" + nodes: [ApiSchema]! + + """ + A list of edges which contains the `ApiSchema` and cursor to aid in pagination. + """ + edges: [ApiSchemaEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ApiSchema` you could get from the connection.""" + totalCount: Int! +} + +""" +Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API +""" +type ApiSchema { + """Unique identifier for this API-schema mapping""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """Metaschema schema being exposed through the API""" + schemaId: UUID! + + """API that exposes this schema""" + apiId: UUID! + + """Reads a single `Api` that is related to this `ApiSchema`.""" + api: Api + + """Reads a single `Database` that is related to this `ApiSchema`.""" + database: Database + + """Reads a single `Schema` that is related to this `ApiSchema`.""" + schema: Schema +} + +""" +API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings +""" +type Api { + """Unique identifier for this API""" + id: UUID! + + """Reference to the metaschema database this API serves""" + databaseId: UUID! + + """Unique name for this API within its database""" + name: String! + + """PostgreSQL database name to connect to""" + dbname: String! + + """PostgreSQL role used for authenticated requests""" + roleName: String! + + """PostgreSQL role used for anonymous/unauthenticated requests""" + anonRole: String! + + """Whether this API is publicly accessible without authentication""" + isPublic: Boolean! + + """Reads a single `Database` that is related to this `Api`.""" + database: Database + + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiModuleFilter + + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection! + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection! + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection! + + """Reads a single `ApiSetting` that is related to this `Api`.""" + apiSetting: ApiSetting + + """Reads and enables pagination through a set of `CorsSetting`.""" + corsSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CorsSettingFilter + + """The method to use when ordering `CorsSetting`.""" + orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): CorsSettingConnection! +} + +"""A connection to a list of `ApiModule` values.""" +type ApiModuleConnection { + """A list of `ApiModule` objects.""" + nodes: [ApiModule]! + + """ + A list of edges which contains the `ApiModule` and cursor to aid in pagination. + """ + edges: [ApiModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ApiModule` you could get from the connection.""" + totalCount: Int! +} + +""" +Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server +""" +type ApiModule { + """Unique identifier for this API module record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """API this module configuration belongs to""" + apiId: UUID! + + """Module name (e.g. auth, uploads, webhooks)""" + name: String! + + """JSON configuration data for this module""" + data: JSON! + + """Reads a single `Api` that is related to this `ApiModule`.""" + api: Api + + """Reads a single `Database` that is related to this `ApiModule`.""" + database: Database +} + +"""A `ApiModule` edge in the connection.""" +type ApiModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ApiModule` at the end of the edge.""" + node: ApiModule +} + +"""Methods to use when ordering `ApiModule`.""" +enum ApiModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + API_ID_ASC + API_ID_DESC + NAME_ASC + NAME_DESC + DATA_ASC + DATA_DESC +} + +"""Methods to use when ordering `ApiSchema`.""" +enum ApiSchemaOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + API_ID_ASC + API_ID_DESC +} + +"""A connection to a list of `Domain` values.""" +type DomainConnection { + """A list of `Domain` objects.""" + nodes: [Domain]! + + """ + A list of edges which contains the `Domain` and cursor to aid in pagination. + """ + edges: [DomainEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Domain` you could get from the connection.""" + totalCount: Int! +} + +""" +DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site +""" +type Domain { + """Unique identifier for this domain record""" + id: UUID! + + """Reference to the metaschema database this domain belongs to""" + databaseId: UUID! + + """API endpoint this domain routes to (mutually exclusive with site_id)""" + apiId: UUID + + """Site this domain routes to (mutually exclusive with api_id)""" + siteId: UUID + + """Subdomain portion of the hostname""" + subdomain: ConstructiveInternalTypeHostname + + """Root domain of the hostname""" + domain: ConstructiveInternalTypeHostname + + """Reads a single `Api` that is related to this `Domain`.""" + api: Api + + """Reads a single `Database` that is related to this `Domain`.""" + database: Database + + """Reads a single `Site` that is related to this `Domain`.""" + site: Site +} + +""" +Top-level site configuration: branding assets, title, and description for a deployed application +""" +type Site { + """Unique identifier for this site""" + id: UUID! + + """Reference to the metaschema database this site belongs to""" + databaseId: UUID! + + """Display title for the site (max 120 characters)""" + title: String + + """Short description of the site (max 120 characters)""" + description: String + + """Open Graph image used for social media link previews""" + ogImage: ConstructiveInternalTypeImage + + """Browser favicon attachment""" + favicon: ConstructiveInternalTypeAttachment + + """Apple touch icon for iOS home screen bookmarks""" + appleTouchIcon: ConstructiveInternalTypeImage + + """Primary logo image for the site""" + logo: ConstructiveInternalTypeImage + + """PostgreSQL database name this site connects to""" + dbname: String! + + """Reads a single `Database` that is related to this `Site`.""" + database: Database + + """Reads a single `App` that is related to this `Site`.""" + app: App + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection! + + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteMetadatumFilter + + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection! + + """Reads and enables pagination through a set of `SiteModule`.""" + siteModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteModuleFilter + + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteModuleConnection! + + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SiteThemeFilter + + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection! +} + +""" +Mobile and native app configuration linked to a site, including store links and identifiers +""" +type App { + """Unique identifier for this app""" + id: UUID! + + """Reference to the metaschema database this app belongs to""" + databaseId: UUID! + + """Site this app is associated with (one app per site)""" + siteId: UUID! + + """Display name of the app""" + name: String + + """App icon or promotional image""" + appImage: ConstructiveInternalTypeImage + + """URL to the Apple App Store listing""" + appStoreLink: ConstructiveInternalTypeUrl + + """Apple App Store application identifier""" + appStoreId: String + + """ + Apple App ID prefix (Team ID) for universal links and associated domains + """ + appIdPrefix: String + + """URL to the Google Play Store listing""" + playStoreLink: ConstructiveInternalTypeUrl + + """Reads a single `Site` that is related to this `App`.""" + site: Site + + """Reads a single `Database` that is related to this `App`.""" + database: Database +} + +"""Methods to use when ordering `Domain`.""" +enum DomainOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + API_ID_ASC + API_ID_DESC + SITE_ID_ASC + SITE_ID_DESC + SUBDOMAIN_ASC + SUBDOMAIN_DESC + DOMAIN_ASC + DOMAIN_DESC +} + +"""A connection to a list of `SiteMetadatum` values.""" +type SiteMetadatumConnection { + """A list of `SiteMetadatum` objects.""" + nodes: [SiteMetadatum]! + + """ + A list of edges which contains the `SiteMetadatum` and cursor to aid in pagination. + """ + edges: [SiteMetadatumEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SiteMetadatum` you could get from the connection.""" + totalCount: Int! +} + +""" +SEO and social sharing metadata for a site: page title, description, and Open Graph image +""" +type SiteMetadatum { + """Unique identifier for this metadata record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this metadata belongs to""" + siteId: UUID! + + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String + + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage + + """Reads a single `Database` that is related to this `SiteMetadatum`.""" + database: Database + + """Reads a single `Site` that is related to this `SiteMetadatum`.""" + site: Site +} + +"""A `SiteMetadatum` edge in the connection.""" +type SiteMetadatumEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SiteMetadatum` at the end of the edge.""" + node: SiteMetadatum +} + +"""Methods to use when ordering `SiteMetadatum`.""" +enum SiteMetadatumOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC + TITLE_ASC + TITLE_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + OG_IMAGE_ASC + OG_IMAGE_DESC +} + +"""A connection to a list of `SiteModule` values.""" +type SiteModuleConnection { + """A list of `SiteModule` objects.""" + nodes: [SiteModule]! + + """ + A list of edges which contains the `SiteModule` and cursor to aid in pagination. + """ + edges: [SiteModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SiteModule` you could get from the connection.""" + totalCount: Int! +} + +""" +Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site +""" +type SiteModule { + """Unique identifier for this site module record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this module configuration belongs to""" + siteId: UUID! + + """Module name (e.g. user_auth_module, analytics)""" + name: String! + + """JSON configuration data for this module""" + data: JSON! + + """Reads a single `Database` that is related to this `SiteModule`.""" + database: Database + + """Reads a single `Site` that is related to this `SiteModule`.""" + site: Site +} + +"""A `SiteModule` edge in the connection.""" +type SiteModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SiteModule` at the end of the edge.""" + node: SiteModule +} + +"""Methods to use when ordering `SiteModule`.""" +enum SiteModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC + NAME_ASC + NAME_DESC + DATA_ASC + DATA_DESC +} + +"""A connection to a list of `SiteTheme` values.""" +type SiteThemeConnection { + """A list of `SiteTheme` objects.""" + nodes: [SiteTheme]! + + """ + A list of edges which contains the `SiteTheme` and cursor to aid in pagination. + """ + edges: [SiteThemeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SiteTheme` you could get from the connection.""" + totalCount: Int! +} + +""" +Theme configuration for a site; stores design tokens, colors, and typography as JSONB +""" +type SiteTheme { + """Unique identifier for this theme record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this theme belongs to""" + siteId: UUID! + + """ + JSONB object containing theme tokens (colors, typography, spacing, etc.) + """ + theme: JSON! + + """Reads a single `Database` that is related to this `SiteTheme`.""" + database: Database + + """Reads a single `Site` that is related to this `SiteTheme`.""" + site: Site +} + +"""A `SiteTheme` edge in the connection.""" +type SiteThemeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SiteTheme` at the end of the edge.""" + node: SiteTheme +} + +"""Methods to use when ordering `SiteTheme`.""" +enum SiteThemeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC + THEME_ASC + THEME_DESC +} + +"""A `Domain` edge in the connection.""" +type DomainEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Domain` at the end of the edge.""" + node: Domain +} + +""" +Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default +""" +type ApiSetting { + """Unique identifier for this API settings record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """API these settings override for""" + apiId: UUID! + + """ + Override: enable aggregate queries (NULL = inherit from database_settings) + """ + enableAggregates: Boolean + + """ + Override: enable PostGIS spatial types (NULL = inherit from database_settings) + """ + enablePostgis: Boolean + + """ + Override: enable unified search (NULL = inherit from database_settings) + """ + enableSearch: Boolean + + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean + + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean + + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean + + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean + + """ + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) + """ + enableLtree: Boolean + + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean + + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean + + """ + Override: enable bulk mutations (NULL = inherit from database_settings) + """ + enableBulk: Boolean + + """ + Override: enable internationalization plugin (NULL = inherit from database_settings) + """ + enableI18N: Boolean + + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON! + + """Reads a single `Api` that is related to this `ApiSetting`.""" + api: Api + + """Reads a single `Database` that is related to this `ApiSetting`.""" + database: Database +} + +"""A connection to a list of `CorsSetting` values.""" +type CorsSettingConnection { + """A list of `CorsSetting` objects.""" + nodes: [CorsSetting]! + + """ + A list of edges which contains the `CorsSetting` and cursor to aid in pagination. + """ + edges: [CorsSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `CorsSetting` you could get from the connection.""" + totalCount: Int! +} + +""" +Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries +""" +type CorsSetting { + """Unique identifier for this CORS settings record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """Optional API for per-API override; NULL means database-wide default""" + apiId: UUID + + """Array of allowed CORS origins (e.g. https://example.com)""" + allowedOrigins: [String]! + + """Reads a single `Api` that is related to this `CorsSetting`.""" + api: Api + + """Reads a single `Database` that is related to this `CorsSetting`.""" + database: Database +} + +"""A `CorsSetting` edge in the connection.""" +type CorsSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CorsSetting` at the end of the edge.""" + node: CorsSetting +} + +"""Methods to use when ordering `CorsSetting`.""" +enum CorsSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + API_ID_ASC + API_ID_DESC + ALLOWED_ORIGINS_ASC + ALLOWED_ORIGINS_DESC +} + +"""A `ApiSchema` edge in the connection.""" +type ApiSchemaEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ApiSchema` at the end of the edge.""" + node: ApiSchema +} + +"""A `Schema` edge in the connection.""" +type SchemaEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Schema` at the end of the edge.""" + node: Schema +} + +"""Methods to use when ordering `Schema`.""" +enum SchemaOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + SCHEMA_NAME_ASC + SCHEMA_NAME_DESC + LABEL_ASC + LABEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + MODULE_ASC + MODULE_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC + IS_PUBLIC_ASC + IS_PUBLIC_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `TriggerFunction` values.""" +type TriggerFunctionConnection { + """A list of `TriggerFunction` objects.""" + nodes: [TriggerFunction]! + + """ + A list of edges which contains the `TriggerFunction` and cursor to aid in pagination. + """ + edges: [TriggerFunctionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `TriggerFunction` you could get from the connection. + """ + totalCount: Int! +} + +type TriggerFunction { + id: UUID! + databaseId: UUID! + name: String! + code: String + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `TriggerFunction`.""" + database: Database +} + +"""A `TriggerFunction` edge in the connection.""" +type TriggerFunctionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TriggerFunction` at the end of the edge.""" + node: TriggerFunction +} + +"""Methods to use when ordering `TriggerFunction`.""" +enum TriggerFunctionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + CODE_ASC + CODE_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `Partition` values.""" +type PartitionConnection { + """A list of `Partition` objects.""" + nodes: [Partition]! + + """ + A list of edges which contains the `Partition` and cursor to aid in pagination. + """ + edges: [PartitionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Partition` you could get from the connection.""" + totalCount: Int! +} + +"""A `Partition` edge in the connection.""" +type PartitionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Partition` at the end of the edge.""" + node: Partition +} + +"""Methods to use when ordering `Partition`.""" +enum PartitionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + STRATEGY_ASC + STRATEGY_DESC + PARTITION_KEY_ID_ASC + PARTITION_KEY_ID_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + RETENTION_KEEP_TABLE_ASC + RETENTION_KEEP_TABLE_DESC + PREMAKE_ASC + PREMAKE_DESC + NAMING_PATTERN_ASC + NAMING_PATTERN_DESC + IS_PARENTED_ASC + IS_PARENTED_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `DatabaseTransfer` values.""" +type DatabaseTransferConnection { + """A list of `DatabaseTransfer` objects.""" + nodes: [DatabaseTransfer]! + + """ + A list of edges which contains the `DatabaseTransfer` and cursor to aid in pagination. + """ + edges: [DatabaseTransferEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DatabaseTransfer` you could get from the connection. + """ + totalCount: Int! +} + +type DatabaseTransfer { + id: UUID! + databaseId: UUID! + targetOwnerId: UUID! + sourceApproved: Boolean! + targetApproved: Boolean! + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String! + initiatedBy: UUID! + notes: String + expiresAt: Datetime! + createdAt: Datetime! + updatedAt: Datetime! + completedAt: Datetime + + """Reads a single `Database` that is related to this `DatabaseTransfer`.""" + database: Database +} + +"""A `DatabaseTransfer` edge in the connection.""" +type DatabaseTransferEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DatabaseTransfer` at the end of the edge.""" + node: DatabaseTransfer +} + +"""Methods to use when ordering `DatabaseTransfer`.""" +enum DatabaseTransferOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TARGET_OWNER_ID_ASC + TARGET_OWNER_ID_DESC + SOURCE_APPROVED_ASC + SOURCE_APPROVED_DESC + TARGET_APPROVED_ASC + TARGET_APPROVED_DESC + SOURCE_APPROVED_AT_ASC + SOURCE_APPROVED_AT_DESC + TARGET_APPROVED_AT_ASC + TARGET_APPROVED_AT_DESC + STATUS_ASC + STATUS_DESC + INITIATED_BY_ASC + INITIATED_BY_DESC + NOTES_ASC + NOTES_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC +} + +"""A connection to a list of `Api` values.""" +type ApiConnection { + """A list of `Api` objects.""" + nodes: [Api]! + + """ + A list of edges which contains the `Api` and cursor to aid in pagination. + """ + edges: [ApiEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Api` you could get from the connection.""" + totalCount: Int! +} + +"""A `Api` edge in the connection.""" +type ApiEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Api` at the end of the edge.""" + node: Api +} + +"""Methods to use when ordering `Api`.""" +enum ApiOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + DBNAME_ASC + DBNAME_DESC + ROLE_NAME_ASC + ROLE_NAME_DESC + ANON_ROLE_ASC + ANON_ROLE_DESC + IS_PUBLIC_ASC + IS_PUBLIC_DESC +} + +"""A connection to a list of `Site` values.""" +type SiteConnection { + """A list of `Site` objects.""" + nodes: [Site]! + + """ + A list of edges which contains the `Site` and cursor to aid in pagination. + """ + edges: [SiteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Site` you could get from the connection.""" + totalCount: Int! +} + +"""A `Site` edge in the connection.""" +type SiteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Site` at the end of the edge.""" + node: Site +} + +"""Methods to use when ordering `Site`.""" +enum SiteOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TITLE_ASC + TITLE_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + OG_IMAGE_ASC + OG_IMAGE_DESC + FAVICON_ASC + FAVICON_DESC + APPLE_TOUCH_ICON_ASC + APPLE_TOUCH_ICON_DESC + LOGO_ASC + LOGO_DESC + DBNAME_ASC + DBNAME_DESC +} + +"""A connection to a list of `App` values.""" +type AppConnection { + """A list of `App` objects.""" + nodes: [App]! + + """ + A list of edges which contains the `App` and cursor to aid in pagination. + """ + edges: [AppEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `App` you could get from the connection.""" + totalCount: Int! +} + +"""A `App` edge in the connection.""" +type AppEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `App` at the end of the edge.""" + node: App +} + +"""Methods to use when ordering `App`.""" +enum AppOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC + NAME_ASC + NAME_DESC + APP_IMAGE_ASC + APP_IMAGE_DESC + APP_STORE_LINK_ASC + APP_STORE_LINK_DESC + APP_STORE_ID_ASC + APP_STORE_ID_DESC + APP_ID_PREFIX_ASC + APP_ID_PREFIX_DESC + PLAY_STORE_LINK_ASC + PLAY_STORE_LINK_DESC +} + +""" +Database-wide feature flags and settings; controls which platform features are available to all APIs in this database +""" +type DatabaseSetting { + """Unique identifier for this settings record""" + id: UUID! + + """Reference to the metaschema database these settings apply to""" + databaseId: UUID! + + """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" + enableAggregates: Boolean! + + """Enable PostGIS spatial types and operators in the GraphQL API""" + enablePostgis: Boolean! + + """ + Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API + """ + enableSearch: Boolean! + + """Enable direct (multipart) file upload mutations in the GraphQL API""" + enableDirectUploads: Boolean! + + """Enable presigned URL upload flow for S3/MinIO storage""" + enablePresignedUploads: Boolean! + + """Enable many-to-many relationship queries in the GraphQL API""" + enableManyToMany: Boolean! + + """Enable connection filter (where argument) in the GraphQL API""" + enableConnectionFilter: Boolean! + + """Enable ltree hierarchical data type support in the GraphQL API""" + enableLtree: Boolean! + + """Enable LLM/AI integration features in the GraphQL API""" + enableLlm: Boolean! + + """ + Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API + """ + enableRealtime: Boolean! + + """ + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + """ + enableBulk: Boolean! + + """ + Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API + """ + enableI18N: Boolean! + + """ + Extensible JSON for additional settings that do not have dedicated columns + """ + options: JSON! + + """Reads a single `Database` that is related to this `DatabaseSetting`.""" + database: Database +} + +"""A connection to a list of `ApiSetting` values.""" +type ApiSettingConnection { + """A list of `ApiSetting` objects.""" + nodes: [ApiSetting]! + + """ + A list of edges which contains the `ApiSetting` and cursor to aid in pagination. + """ + edges: [ApiSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ApiSetting` you could get from the connection.""" + totalCount: Int! +} + +"""A `ApiSetting` edge in the connection.""" +type ApiSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ApiSetting` at the end of the edge.""" + node: ApiSetting +} + +"""Methods to use when ordering `ApiSetting`.""" +enum ApiSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + API_ID_ASC + API_ID_DESC + ENABLE_AGGREGATES_ASC + ENABLE_AGGREGATES_DESC + ENABLE_POSTGIS_ASC + ENABLE_POSTGIS_DESC + ENABLE_SEARCH_ASC + ENABLE_SEARCH_DESC + ENABLE_DIRECT_UPLOADS_ASC + ENABLE_DIRECT_UPLOADS_DESC + ENABLE_PRESIGNED_UPLOADS_ASC + ENABLE_PRESIGNED_UPLOADS_DESC + ENABLE_MANY_TO_MANY_ASC + ENABLE_MANY_TO_MANY_DESC + ENABLE_CONNECTION_FILTER_ASC + ENABLE_CONNECTION_FILTER_DESC + ENABLE_LTREE_ASC + ENABLE_LTREE_DESC + ENABLE_LLM_ASC + ENABLE_LLM_DESC + ENABLE_REALTIME_ASC + ENABLE_REALTIME_DESC + ENABLE_BULK_ASC + ENABLE_BULK_DESC + ENABLE_I18N_ASC + ENABLE_I18N_DESC + OPTIONS_ASC + OPTIONS_DESC +} + +""" +Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries +""" +type RlsSetting { + """Unique identifier for this RLS settings record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """ + Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) + """ + authenticateSchemaId: UUID + + """ + Schema containing current_role and related functions (FK to metaschema_public.schema) + """ + roleSchemaId: UUID + + """ + Reference to the authenticate function (FK to metaschema_public.function) + """ + authenticateFunctionId: UUID + + """ + Reference to the strict authenticate function (FK to metaschema_public.function) + """ + authenticateStrictFunctionId: UUID + + """ + Reference to the current_role function (FK to metaschema_public.function) + """ + currentRoleFunctionId: UUID + + """ + Reference to the current_role_id function (FK to metaschema_public.function) + """ + currentRoleIdFunctionId: UUID + + """ + Reference to the current_user_agent function (FK to metaschema_public.function) + """ + currentUserAgentFunctionId: UUID + + """ + Reference to the current_ip_address function (FK to metaschema_public.function) + """ + currentIpAddressFunctionId: UUID + + """Reads a single `Function` that is related to this `RlsSetting`.""" + authenticateFunction: Function + + """Reads a single `Schema` that is related to this `RlsSetting`.""" + authenticateSchema: Schema + + """Reads a single `Function` that is related to this `RlsSetting`.""" + authenticateStrictFunction: Function + + """Reads a single `Function` that is related to this `RlsSetting`.""" + currentIpAddressFunction: Function + + """Reads a single `Function` that is related to this `RlsSetting`.""" + currentRoleFunction: Function + + """Reads a single `Function` that is related to this `RlsSetting`.""" + currentRoleIdFunction: Function + + """Reads a single `Function` that is related to this `RlsSetting`.""" + currentUserAgentFunction: Function + + """Reads a single `Database` that is related to this `RlsSetting`.""" + database: Database + + """Reads a single `Schema` that is related to this `RlsSetting`.""" + roleSchema: Schema +} + +""" +Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries +""" +type PubkeySetting { + """Unique identifier for this pubkey settings record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """ + Schema containing the crypto auth functions (FK to metaschema_public.schema) + """ + schemaId: UUID + + """Crypto network for key derivation (e.g. cosmos, ethereum)""" + cryptoNetwork: String! + + """Field name used to identify the user in crypto auth functions""" + userField: String! + + """ + Reference to the sign-up-with-key function (FK to metaschema_public.function) + """ + signUpWithKeyFunctionId: UUID + + """ + Reference to the sign-in challenge request function (FK to metaschema_public.function) + """ + signInRequestChallengeFunctionId: UUID + + """ + Reference to the sign-in failure recording function (FK to metaschema_public.function) + """ + signInRecordFailureFunctionId: UUID + + """ + Reference to the sign-in-with-challenge function (FK to metaschema_public.function) + """ + signInWithChallengeFunctionId: UUID + + """Reads a single `Database` that is related to this `PubkeySetting`.""" + database: Database + + """Reads a single `Schema` that is related to this `PubkeySetting`.""" + schema: Schema + + """Reads a single `Function` that is related to this `PubkeySetting`.""" + signInRecordFailureFunction: Function + + """Reads a single `Function` that is related to this `PubkeySetting`.""" + signInRequestChallengeFunction: Function + + """Reads a single `Function` that is related to this `PubkeySetting`.""" + signInWithChallengeFunction: Function + + """Reads a single `Function` that is related to this `PubkeySetting`.""" + signUpWithKeyFunction: Function +} + +""" +Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries +""" +type WebauthnSetting { + """Unique identifier for this WebAuthn settings record""" + id: UUID! + + """Reference to the metaschema database""" + databaseId: UUID! + + """ + Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) + """ + schemaId: UUID + + """ + Schema of the webauthn_credentials table (FK to metaschema_public.schema) + """ + credentialsSchemaId: UUID + + """Schema of the sessions table (FK to metaschema_public.schema)""" + sessionsSchemaId: UUID + + """Schema of the session_secrets table (FK to metaschema_public.schema)""" + sessionSecretsSchemaId: UUID + + """ + Reference to the webauthn_credentials table (FK to metaschema_public.table) + """ + credentialsTableId: UUID + + """Reference to the sessions table (FK to metaschema_public.table)""" + sessionsTableId: UUID + + """ + Reference to the session_credentials table (FK to metaschema_public.table) + """ + sessionCredentialsTableId: UUID + + """Reference to the session_secrets table (FK to metaschema_public.table)""" + sessionSecretsTableId: UUID + + """ + Reference to the user field on webauthn_credentials (FK to metaschema_public.field) + """ + userFieldId: UUID + + """WebAuthn Relying Party ID (typically the domain name)""" + rpId: String! + + """WebAuthn Relying Party display name""" + rpName: String! + + """Allowed origins for WebAuthn registration and authentication""" + originAllowlist: [String]! + + """Attestation conveyance preference (none, indirect, direct, enterprise)""" + attestationType: String! + + """Whether to require user verification (biometric/PIN) during auth""" + requireUserVerification: Boolean! + + """Resident key requirement (discouraged, preferred, required)""" + residentKey: String! + + """Challenge TTL in seconds (default 300 = 5 minutes)""" + challengeExpirySeconds: BigInt! + + """Reads a single `Schema` that is related to this `WebauthnSetting`.""" + credentialsSchema: Schema + + """Reads a single `Table` that is related to this `WebauthnSetting`.""" + credentialsTable: Table + + """Reads a single `Database` that is related to this `WebauthnSetting`.""" + database: Database + + """Reads a single `Schema` that is related to this `WebauthnSetting`.""" + schema: Schema + + """Reads a single `Table` that is related to this `WebauthnSetting`.""" + sessionCredentialsTable: Table + + """Reads a single `Schema` that is related to this `WebauthnSetting`.""" + sessionSecretsSchema: Schema + + """Reads a single `Table` that is related to this `WebauthnSetting`.""" + sessionSecretsTable: Table + + """Reads a single `Schema` that is related to this `WebauthnSetting`.""" + sessionsSchema: Schema + + """Reads a single `Table` that is related to this `WebauthnSetting`.""" + sessionsTable: Table + + """Reads a single `Field` that is related to this `WebauthnSetting`.""" + userField: Field +} + +"""A `Function` edge in the connection.""" +type FunctionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Function` at the end of the edge.""" + node: Function +} + +"""A connection to a list of `MigrateFile` values.""" +type MigrateFileConnection { + """A list of `MigrateFile` objects.""" + nodes: [MigrateFile]! + + """ + A list of edges which contains the `MigrateFile` and cursor to aid in pagination. + """ + edges: [MigrateFileEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MigrateFile` you could get from the connection.""" + totalCount: Int! +} + +type MigrateFile { + id: UUID + databaseId: UUID + upload: ConstructiveInternalTypeUpload +} + +scalar ConstructiveInternalTypeUpload + +"""A `MigrateFile` edge in the connection.""" +type MigrateFileEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MigrateFile` at the end of the edge.""" + node: MigrateFile +} + +""" +A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ +""" +input MigrateFileFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `upload` field.""" + upload: ConstructiveInternalTypeUploadFilter + + """Checks for all expressions in this list.""" + and: [MigrateFileFilter!] + + """Checks for any expressions in this list.""" + or: [MigrateFileFilter!] + + """Negates the expression.""" + not: MigrateFileFilter +} + +""" +A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeUploadFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeUpload + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeUpload + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeUpload + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeUpload + + """Included in the specified list.""" + in: [ConstructiveInternalTypeUpload!] + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeUpload!] + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeUpload + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeUpload + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeUpload + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeUpload + + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeUpload + + """Contains the specified key.""" + containsKey: String + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeUpload +} + +"""Methods to use when ordering `MigrateFile`.""" +enum MigrateFileOrderBy { + NATURAL + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + UPLOAD_ASC + UPLOAD_DESC +} + +"""A connection to a list of `NodeTypeRegistry` values.""" +type NodeTypeRegistryConnection { + """A list of `NodeTypeRegistry` objects.""" + nodes: [NodeTypeRegistry]! + + """ + A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. + """ + edges: [NodeTypeRegistryEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `NodeTypeRegistry` you could get from the connection. + """ + totalCount: Int! +} + +type NodeTypeRegistry { + name: String! + slug: String! + category: String! + displayName: String + description: String + parameterSchema: JSON! + tags: [String]! +} + +"""A `NodeTypeRegistry` edge in the connection.""" +type NodeTypeRegistryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `NodeTypeRegistry` at the end of the edge.""" + node: NodeTypeRegistry +} + +""" +A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ +""" +input NodeTypeRegistryFilter { + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `parameterSchema` field.""" + parameterSchema: JSONFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Checks for all expressions in this list.""" + and: [NodeTypeRegistryFilter!] + + """Checks for any expressions in this list.""" + or: [NodeTypeRegistryFilter!] + + """Negates the expression.""" + not: NodeTypeRegistryFilter +} + +"""Methods to use when ordering `NodeTypeRegistry`.""" +enum NodeTypeRegistryOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + NAME_ASC + NAME_DESC + SLUG_ASC + SLUG_DESC + CATEGORY_ASC + CATEGORY_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PARAMETER_SCHEMA_ASC + PARAMETER_SCHEMA_DESC + TAGS_ASC + TAGS_DESC +} + +"""A connection to a list of `PubkeySetting` values.""" +type PubkeySettingConnection { + """A list of `PubkeySetting` objects.""" + nodes: [PubkeySetting]! + + """ + A list of edges which contains the `PubkeySetting` and cursor to aid in pagination. + """ + edges: [PubkeySettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PubkeySetting` you could get from the connection.""" + totalCount: Int! +} + +"""A `PubkeySetting` edge in the connection.""" +type PubkeySettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PubkeySetting` at the end of the edge.""" + node: PubkeySetting +} + +"""Methods to use when ordering `PubkeySetting`.""" +enum PubkeySettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + CRYPTO_NETWORK_ASC + CRYPTO_NETWORK_DESC + USER_FIELD_ASC + USER_FIELD_DESC + SIGN_UP_WITH_KEY_FUNCTION_ID_ASC + SIGN_UP_WITH_KEY_FUNCTION_ID_DESC + SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC + SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC + SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC + SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC + SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC + SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC +} + +"""A connection to a list of `Database` values.""" +type DatabaseConnection { + """A list of `Database` objects.""" + nodes: [Database]! + + """ + A list of edges which contains the `Database` and cursor to aid in pagination. + """ + edges: [DatabaseEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Database` you could get from the connection.""" + totalCount: Int! +} + +"""A `Database` edge in the connection.""" +type DatabaseEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Database` at the end of the edge.""" + node: Database +} + +"""Methods to use when ordering `Database`.""" +enum DatabaseOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + SCHEMA_HASH_ASC + SCHEMA_HASH_DESC + NAME_ASC + NAME_DESC + LABEL_ASC + LABEL_DESC + HASH_ASC + HASH_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `RlsSetting` values.""" +type RlsSettingConnection { + """A list of `RlsSetting` objects.""" + nodes: [RlsSetting]! + + """ + A list of edges which contains the `RlsSetting` and cursor to aid in pagination. + """ + edges: [RlsSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RlsSetting` you could get from the connection.""" + totalCount: Int! +} + +"""A `RlsSetting` edge in the connection.""" +type RlsSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RlsSetting` at the end of the edge.""" + node: RlsSetting +} + +"""Methods to use when ordering `RlsSetting`.""" +enum RlsSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + AUTHENTICATE_SCHEMA_ID_ASC + AUTHENTICATE_SCHEMA_ID_DESC + ROLE_SCHEMA_ID_ASC + ROLE_SCHEMA_ID_DESC + AUTHENTICATE_FUNCTION_ID_ASC + AUTHENTICATE_FUNCTION_ID_DESC + AUTHENTICATE_STRICT_FUNCTION_ID_ASC + AUTHENTICATE_STRICT_FUNCTION_ID_DESC + CURRENT_ROLE_FUNCTION_ID_ASC + CURRENT_ROLE_FUNCTION_ID_DESC + CURRENT_ROLE_ID_FUNCTION_ID_ASC + CURRENT_ROLE_ID_FUNCTION_ID_DESC + CURRENT_USER_AGENT_FUNCTION_ID_ASC + CURRENT_USER_AGENT_FUNCTION_ID_DESC + CURRENT_IP_ADDRESS_FUNCTION_ID_ASC + CURRENT_IP_ADDRESS_FUNCTION_ID_DESC +} + +"""A connection to a list of `SqlAction` values.""" +type SqlActionConnection { + """A list of `SqlAction` objects.""" + nodes: [SqlAction]! + + """ + A list of edges which contains the `SqlAction` and cursor to aid in pagination. + """ + edges: [SqlActionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SqlAction` you could get from the connection.""" + totalCount: Int! +} + +type SqlAction { + id: Int + name: String + databaseId: UUID + deploy: String + deps: [String] + payload: JSON + content: String + revert: String + verify: String + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + +"""A `SqlAction` edge in the connection.""" +type SqlActionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SqlAction` at the end of the edge.""" + node: SqlAction +} + +""" +A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ +""" +input SqlActionFilter { + """Filter by the object’s `id` field.""" + id: IntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `deploy` field.""" + deploy: StringFilter + + """Filter by the object’s `deps` field.""" + deps: StringListFilter + + """Filter by the object’s `content` field.""" + content: StringFilter + + """Filter by the object’s `revert` field.""" + revert: StringFilter + + """Filter by the object’s `verify` field.""" + verify: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `action` field.""" + action: StringFilter + + """Filter by the object’s `actionId` field.""" + actionId: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [SqlActionFilter!] + + """Checks for any expressions in this list.""" + or: [SqlActionFilter!] + + """Negates the expression.""" + not: SqlActionFilter +} + +"""Methods to use when ordering `SqlAction`.""" +enum SqlActionOrderBy { + NATURAL + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEPLOY_ASC + DEPLOY_DESC + DEPS_ASC + DEPS_DESC + PAYLOAD_ASC + PAYLOAD_DESC + CONTENT_ASC + CONTENT_DESC + REVERT_ASC + REVERT_DESC + VERIFY_ASC + VERIFY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ACTION_ASC + ACTION_DESC + ACTION_ID_ASC + ACTION_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC +} + +"""A connection to a list of `DatabaseSetting` values.""" +type DatabaseSettingConnection { + """A list of `DatabaseSetting` objects.""" + nodes: [DatabaseSetting]! + + """ + A list of edges which contains the `DatabaseSetting` and cursor to aid in pagination. + """ + edges: [DatabaseSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DatabaseSetting` you could get from the connection. + """ + totalCount: Int! +} + +"""A `DatabaseSetting` edge in the connection.""" +type DatabaseSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DatabaseSetting` at the end of the edge.""" + node: DatabaseSetting +} + +"""Methods to use when ordering `DatabaseSetting`.""" +enum DatabaseSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENABLE_AGGREGATES_ASC + ENABLE_AGGREGATES_DESC + ENABLE_POSTGIS_ASC + ENABLE_POSTGIS_DESC + ENABLE_SEARCH_ASC + ENABLE_SEARCH_DESC + ENABLE_DIRECT_UPLOADS_ASC + ENABLE_DIRECT_UPLOADS_DESC + ENABLE_PRESIGNED_UPLOADS_ASC + ENABLE_PRESIGNED_UPLOADS_DESC + ENABLE_MANY_TO_MANY_ASC + ENABLE_MANY_TO_MANY_DESC + ENABLE_CONNECTION_FILTER_ASC + ENABLE_CONNECTION_FILTER_DESC + ENABLE_LTREE_ASC + ENABLE_LTREE_DESC + ENABLE_LLM_ASC + ENABLE_LLM_DESC + ENABLE_REALTIME_ASC + ENABLE_REALTIME_DESC + ENABLE_BULK_ASC + ENABLE_BULK_DESC + ENABLE_I18N_ASC + ENABLE_I18N_DESC + OPTIONS_ASC + OPTIONS_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.""" + nodes: [AstMigration]! + + """ + A list of edges which contains the `AstMigration` and cursor to aid in pagination. + """ + edges: [AstMigrationEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AstMigration` you could get from the connection.""" + totalCount: Int! +} + +type AstMigration { + 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 +} + +"""A `AstMigration` edge in the connection.""" +type AstMigrationEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AstMigration` at the end of the edge.""" + node: AstMigration +} + +""" +A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AstMigration`.""" +enum 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 +} + +"""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! +} + +"""Information about a table field/column""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! + isPrimaryKey: Boolean! + isForeignKey: Boolean! + description: String +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean + subtype: 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 +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + acceptDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AcceptDatabaseTransferInput! + ): AcceptDatabaseTransferPayload + cancelDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CancelDatabaseTransferInput! + ): CancelDatabaseTransferPayload + rejectDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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. + """ + input: SetFieldOrderInput! + ): SetFieldOrderPayload + applyRls( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserDatabaseInput! + ): CreateUserDatabasePayload + + """Creates a single `Function`.""" + createFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionInput! + ): CreateFunctionPayload + + """Creates a single `ViewTable`.""" + createViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewTableInput! + ): CreateViewTablePayload + + """Creates a single `ApiSchema`.""" + createApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiSchemaInput! + ): CreateApiSchemaPayload + + """Creates a single `SiteTheme`.""" + createSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteThemeInput! + ): CreateSiteThemePayload + + """Creates a single `ViewRule`.""" + createViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewRuleInput! + ): CreateViewRulePayload + + """Creates a single `MigrateFile`.""" + createMigrateFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMigrateFileInput! + ): CreateMigrateFilePayload + + """Creates a single `DefaultPrivilege`.""" + createDefaultPrivilege( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDefaultPrivilegeInput! + ): CreateDefaultPrivilegePayload + + """Creates a single `ViewGrant`.""" + createViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewGrantInput! + ): CreateViewGrantPayload + + """Creates a single `Api`.""" + createApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiInput! + ): CreateApiPayload + + """Creates a single `CorsSetting`.""" + createCorsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCorsSettingInput! + ): CreateCorsSettingPayload + + """Creates a single `NodeTypeRegistry`.""" + createNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNodeTypeRegistryInput! + ): CreateNodeTypeRegistryPayload + + """Creates a single `ApiModule`.""" + createApiModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiModuleInput! + ): CreateApiModulePayload + + """Creates a single `SiteModule`.""" + createSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteModuleInput! + ): CreateSiteModulePayload + + """Creates a single `SiteMetadatum`.""" + createSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteMetadatumInput! + ): CreateSiteMetadatumPayload + + """Creates a single `PubkeySetting`.""" + createPubkeySetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePubkeySettingInput! + ): CreatePubkeySettingPayload + + """Creates a single `SchemaGrant`.""" + createSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSchemaGrantInput! + ): CreateSchemaGrantPayload + + """Creates a single `TriggerFunction`.""" + createTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTriggerFunctionInput! + ): CreateTriggerFunctionPayload + + """Creates a single `Database`.""" + createDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseInput! + ): CreateDatabasePayload + + """Creates a single `TableGrant`.""" + createTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableGrantInput! + ): CreateTableGrantPayload + + """Creates a single `Domain`.""" + createDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDomainInput! + ): CreateDomainPayload + + """Creates a single `RlsSetting`.""" + createRlsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRlsSettingInput! + ): CreateRlsSettingPayload + + """Creates a single `FullTextSearch`.""" + createFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFullTextSearchInput! + ): CreateFullTextSearchPayload + + """Creates a single `Partition`.""" + createPartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePartitionInput! + ): CreatePartitionPayload + + """Creates a single `SqlAction`.""" + createSqlAction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSqlActionInput! + ): CreateSqlActionPayload + + """Creates a single `DatabaseSetting`.""" + createDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseSettingInput! + ): CreateDatabaseSettingPayload + + """Creates a single `Enum`.""" + createEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEnumInput! + ): CreateEnumPayload + + """Creates a single `View`.""" + createView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewInput! + ): CreateViewPayload + + """Creates a single `ApiSetting`.""" + createApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiSettingInput! + ): CreateApiSettingPayload + + """Creates a single `DatabaseTransfer`.""" + createDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseTransferInput! + ): CreateDatabaseTransferPayload + + """Creates a single `App`.""" + createApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppInput! + ): CreateAppPayload + + """Creates a single `Site`.""" + createSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteInput! + ): CreateSitePayload + + """Creates a single `PrimaryKeyConstraint`.""" + createPrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePrimaryKeyConstraintInput! + ): CreatePrimaryKeyConstraintPayload + + """Creates a single `Trigger`.""" + createTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTriggerInput! + ): CreateTriggerPayload + + """Creates a single `CheckConstraint`.""" + createCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCheckConstraintInput! + ): CreateCheckConstraintPayload + + """Creates a single `UniqueConstraint`.""" + createUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUniqueConstraintInput! + ): CreateUniqueConstraintPayload + + """Creates a single `SpatialRelation`.""" + createSpatialRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSpatialRelationInput! + ): CreateSpatialRelationPayload + + """Creates a single `Policy`.""" + createPolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePolicyInput! + ): CreatePolicyPayload + + """Creates a single `Schema`.""" + createSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSchemaInput! + ): CreateSchemaPayload + + """Creates a single `Index`.""" + createIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateIndexInput! + ): CreateIndexPayload + + """Creates a single `EmbeddingChunk`.""" + createEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmbeddingChunkInput! + ): CreateEmbeddingChunkPayload + + """Creates a single `ForeignKeyConstraint`.""" + createForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateForeignKeyConstraintInput! + ): CreateForeignKeyConstraintPayload + + """Creates a single `WebauthnSetting`.""" + createWebauthnSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateWebauthnSettingInput! + ): CreateWebauthnSettingPayload + + """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 `Field`.""" + createField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFieldInput! + ): CreateFieldPayload + + """Creates a single `Table`.""" + createTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableInput! + ): CreateTablePayload + + """Updates a single `Function` using a unique key and a patch.""" + updateFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionInput! + ): UpdateFunctionPayload + + """Updates a single `ViewTable` using a unique key and a patch.""" + updateViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewTableInput! + ): UpdateViewTablePayload + + """Updates a single `ApiSchema` using a unique key and a patch.""" + updateApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiSchemaInput! + ): UpdateApiSchemaPayload + + """Updates a single `SiteTheme` using a unique key and a patch.""" + updateSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteThemeInput! + ): UpdateSiteThemePayload + + """Updates a single `ViewRule` using a unique key and a patch.""" + updateViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewRuleInput! + ): UpdateViewRulePayload + + """Updates a single `DefaultPrivilege` using a unique key and a patch.""" + updateDefaultPrivilege( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDefaultPrivilegeInput! + ): UpdateDefaultPrivilegePayload + + """Updates a single `ViewGrant` using a unique key and a patch.""" + updateViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewGrantInput! + ): UpdateViewGrantPayload + + """Updates a single `Api` using a unique key and a patch.""" + updateApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiInput! + ): UpdateApiPayload + + """Updates a single `CorsSetting` using a unique key and a patch.""" + updateCorsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCorsSettingInput! + ): UpdateCorsSettingPayload + + """Updates a single `NodeTypeRegistry` using a unique key and a patch.""" + updateNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNodeTypeRegistryInput! + ): UpdateNodeTypeRegistryPayload + + """Updates a single `ApiModule` using a unique key and a patch.""" + updateApiModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiModuleInput! + ): UpdateApiModulePayload + + """Updates a single `SiteModule` using a unique key and a patch.""" + updateSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteModuleInput! + ): UpdateSiteModulePayload + + """Updates a single `SiteMetadatum` using a unique key and a patch.""" + updateSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteMetadatumInput! + ): UpdateSiteMetadatumPayload + + """Updates a single `PubkeySetting` using a unique key and a patch.""" + updatePubkeySetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePubkeySettingInput! + ): UpdatePubkeySettingPayload + + """Updates a single `SchemaGrant` using a unique key and a patch.""" + updateSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSchemaGrantInput! + ): UpdateSchemaGrantPayload + + """Updates a single `TriggerFunction` using a unique key and a patch.""" + updateTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTriggerFunctionInput! + ): UpdateTriggerFunctionPayload + + """Updates a single `Database` using a unique key and a patch.""" + updateDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseInput! + ): UpdateDatabasePayload + + """Updates a single `TableGrant` using a unique key and a patch.""" + updateTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableGrantInput! + ): UpdateTableGrantPayload + + """Updates a single `Domain` using a unique key and a patch.""" + updateDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDomainInput! + ): UpdateDomainPayload + + """Updates a single `RlsSetting` using a unique key and a patch.""" + updateRlsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRlsSettingInput! + ): UpdateRlsSettingPayload + + """Updates a single `FullTextSearch` using a unique key and a patch.""" + updateFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFullTextSearchInput! + ): UpdateFullTextSearchPayload + + """Updates a single `Partition` using a unique key and a patch.""" + updatePartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePartitionInput! + ): UpdatePartitionPayload + + """Updates a single `DatabaseSetting` using a unique key and a patch.""" + updateDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseSettingInput! + ): UpdateDatabaseSettingPayload + + """Updates a single `Enum` using a unique key and a patch.""" + updateEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEnumInput! + ): UpdateEnumPayload + + """Updates a single `View` using a unique key and a patch.""" + updateView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewInput! + ): UpdateViewPayload + + """Updates a single `ApiSetting` using a unique key and a patch.""" + updateApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiSettingInput! + ): UpdateApiSettingPayload + + """Updates a single `DatabaseTransfer` using a unique key and a patch.""" + updateDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseTransferInput! + ): UpdateDatabaseTransferPayload + + """Updates a single `App` using a unique key and a patch.""" + updateApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppInput! + ): UpdateAppPayload + + """Updates a single `Site` using a unique key and a patch.""" + updateSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteInput! + ): UpdateSitePayload + + """ + Updates a single `PrimaryKeyConstraint` using a unique key and a patch. + """ + updatePrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePrimaryKeyConstraintInput! + ): UpdatePrimaryKeyConstraintPayload + + """Updates a single `Trigger` using a unique key and a patch.""" + updateTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTriggerInput! + ): UpdateTriggerPayload + + """Updates a single `CheckConstraint` using a unique key and a patch.""" + updateCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCheckConstraintInput! + ): UpdateCheckConstraintPayload + + """Updates a single `UniqueConstraint` using a unique key and a patch.""" + updateUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUniqueConstraintInput! + ): UpdateUniqueConstraintPayload + + """Updates a single `SpatialRelation` using a unique key and a patch.""" + updateSpatialRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSpatialRelationInput! + ): UpdateSpatialRelationPayload + + """Updates a single `Policy` using a unique key and a patch.""" + updatePolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePolicyInput! + ): UpdatePolicyPayload + + """Updates a single `Schema` using a unique key and a patch.""" + updateSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSchemaInput! + ): UpdateSchemaPayload + + """Updates a single `Index` using a unique key and a patch.""" + updateIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateIndexInput! + ): UpdateIndexPayload + + """Updates a single `EmbeddingChunk` using a unique key and a patch.""" + updateEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmbeddingChunkInput! + ): UpdateEmbeddingChunkPayload + + """ + Updates a single `ForeignKeyConstraint` using a unique key and a patch. + """ + updateForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateForeignKeyConstraintInput! + ): UpdateForeignKeyConstraintPayload + + """Updates a single `WebauthnSetting` using a unique key and a patch.""" + updateWebauthnSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateWebauthnSettingInput! + ): UpdateWebauthnSettingPayload + + """Updates a single `Field` using a unique key and a patch.""" + updateField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFieldInput! + ): UpdateFieldPayload + + """Updates a single `Table` using a unique key and a patch.""" + updateTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableInput! + ): UpdateTablePayload + + """Deletes a single `Function` using a unique key.""" + deleteFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionInput! + ): DeleteFunctionPayload + + """Deletes a single `ViewTable` using a unique key.""" + deleteViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewTableInput! + ): DeleteViewTablePayload + + """Deletes a single `ApiSchema` using a unique key.""" + deleteApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiSchemaInput! + ): DeleteApiSchemaPayload + + """Deletes a single `SiteTheme` using a unique key.""" + deleteSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteThemeInput! + ): DeleteSiteThemePayload + + """Deletes a single `ViewRule` using a unique key.""" + deleteViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewRuleInput! + ): DeleteViewRulePayload + + """Deletes a single `DefaultPrivilege` using a unique key.""" + deleteDefaultPrivilege( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDefaultPrivilegeInput! + ): DeleteDefaultPrivilegePayload + + """Deletes a single `ViewGrant` using a unique key.""" + deleteViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewGrantInput! + ): DeleteViewGrantPayload + + """Deletes a single `Api` using a unique key.""" + deleteApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiInput! + ): DeleteApiPayload + + """Deletes a single `CorsSetting` using a unique key.""" + deleteCorsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCorsSettingInput! + ): DeleteCorsSettingPayload + + """Deletes a single `NodeTypeRegistry` using a unique key.""" + deleteNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNodeTypeRegistryInput! + ): DeleteNodeTypeRegistryPayload + + """Deletes a single `ApiModule` using a unique key.""" + deleteApiModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiModuleInput! + ): DeleteApiModulePayload + + """Deletes a single `SiteModule` using a unique key.""" + deleteSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteModuleInput! + ): DeleteSiteModulePayload + + """Deletes a single `SiteMetadatum` using a unique key.""" + deleteSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteMetadatumInput! + ): DeleteSiteMetadatumPayload + + """Deletes a single `PubkeySetting` using a unique key.""" + deletePubkeySetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePubkeySettingInput! + ): DeletePubkeySettingPayload + + """Deletes a single `SchemaGrant` using a unique key.""" + deleteSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSchemaGrantInput! + ): DeleteSchemaGrantPayload + + """Deletes a single `TriggerFunction` using a unique key.""" + deleteTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTriggerFunctionInput! + ): DeleteTriggerFunctionPayload + + """Deletes a single `Database` using a unique key.""" + deleteDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseInput! + ): DeleteDatabasePayload + + """Deletes a single `TableGrant` using a unique key.""" + deleteTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableGrantInput! + ): DeleteTableGrantPayload + + """Deletes a single `Domain` using a unique key.""" + deleteDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDomainInput! + ): DeleteDomainPayload + + """Deletes a single `RlsSetting` using a unique key.""" + deleteRlsSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRlsSettingInput! + ): DeleteRlsSettingPayload + + """Deletes a single `FullTextSearch` using a unique key.""" + deleteFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFullTextSearchInput! + ): DeleteFullTextSearchPayload + + """Deletes a single `Partition` using a unique key.""" + deletePartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePartitionInput! + ): DeletePartitionPayload + + """Deletes a single `DatabaseSetting` using a unique key.""" + deleteDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseSettingInput! + ): DeleteDatabaseSettingPayload + + """Deletes a single `Enum` using a unique key.""" + deleteEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEnumInput! + ): DeleteEnumPayload + + """Deletes a single `View` using a unique key.""" + deleteView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewInput! + ): DeleteViewPayload + + """Deletes a single `ApiSetting` using a unique key.""" + deleteApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiSettingInput! + ): DeleteApiSettingPayload + + """Deletes a single `DatabaseTransfer` using a unique key.""" + deleteDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseTransferInput! + ): DeleteDatabaseTransferPayload + + """Deletes a single `App` using a unique key.""" + deleteApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppInput! + ): DeleteAppPayload + + """Deletes a single `Site` using a unique key.""" + deleteSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteInput! + ): DeleteSitePayload + + """Deletes a single `PrimaryKeyConstraint` using a unique key.""" + deletePrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePrimaryKeyConstraintInput! + ): DeletePrimaryKeyConstraintPayload + + """Deletes a single `Trigger` using a unique key.""" + deleteTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTriggerInput! + ): DeleteTriggerPayload + + """Deletes a single `CheckConstraint` using a unique key.""" + deleteCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCheckConstraintInput! + ): DeleteCheckConstraintPayload + + """Deletes a single `UniqueConstraint` using a unique key.""" + deleteUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUniqueConstraintInput! + ): DeleteUniqueConstraintPayload + + """Deletes a single `SpatialRelation` using a unique key.""" + deleteSpatialRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSpatialRelationInput! + ): DeleteSpatialRelationPayload + + """Deletes a single `Policy` using a unique key.""" + deletePolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePolicyInput! + ): DeletePolicyPayload + + """Deletes a single `Schema` using a unique key.""" + deleteSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSchemaInput! + ): DeleteSchemaPayload + + """Deletes a single `Index` using a unique key.""" + deleteIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteIndexInput! + ): DeleteIndexPayload + + """Deletes a single `EmbeddingChunk` using a unique key.""" + deleteEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmbeddingChunkInput! + ): DeleteEmbeddingChunkPayload + + """Deletes a single `ForeignKeyConstraint` using a unique key.""" + deleteForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteForeignKeyConstraintInput! + ): DeleteForeignKeyConstraintPayload + + """Deletes a single `WebauthnSetting` using a unique key.""" + deleteWebauthnSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteWebauthnSettingInput! + ): DeleteWebauthnSettingPayload + + """Deletes a single `Field` using a unique key.""" + deleteField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFieldInput! + ): DeleteFieldPayload + + """Deletes a single `Table` using a unique key.""" + deleteTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableInput! + ): DeleteTablePayload + + """ + 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 `acceptDatabaseTransfer` mutation.""" +type AcceptDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `acceptDatabaseTransfer` mutation.""" +input AcceptDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + transferId: UUID +} + +"""The output of our `cancelDatabaseTransfer` mutation.""" +type CancelDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `cancelDatabaseTransfer` mutation.""" +input CancelDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + transferId: UUID +} + +"""The output of our `rejectDatabaseTransfer` mutation.""" +type RejectDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `rejectDatabaseTransfer` mutation.""" +input RejectDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + transferId: UUID +} + +"""The output of our `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 { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by 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 `setFieldOrder` mutation.""" +input SetFieldOrderInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + fieldIds: [UUID] +} + +"""The output of our `applyRls` mutation.""" +type ApplyRlsPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `applyRls` mutation.""" +input ApplyRlsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + tableId: UUID + grants: JSON + policyType: String + vars: JSON + fieldIds: [UUID] + permissive: Boolean + name: String +} + +"""The output of our `createUserDatabase` mutation.""" +type CreateUserDatabasePayload { + """ + The 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 `createUserDatabase` mutation.""" +input CreateUserDatabaseInput { + """ + An arbitrary 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 + ownerId: UUID + includeInvites: Boolean + includeGroups: Boolean + includeLevels: Boolean + bitlen: Int + tokensExpiration: IntervalInput +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""The output of our create `Function` mutation.""" +type CreateFunctionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Function` that was created by this mutation.""" + function: Function + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Function`. May be used by Relay 1.""" + functionEdge( + """The method to use when ordering `Function`.""" + orderBy: [FunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionEdge +} + +"""All input for the create `Function` mutation.""" +input CreateFunctionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Function` to be created by this mutation.""" + function: FunctionInput! +} + +"""An input for mutations affecting `Function`""" +input FunctionInput { + id: UUID + databaseId: UUID! + schemaId: UUID! + name: String! +} + +"""The output of our create `ViewTable` mutation.""" +type CreateViewTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewTable` that was created by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the create `ViewTable` mutation.""" +input CreateViewTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ViewTable` to be created by this mutation.""" + viewTable: ViewTableInput! +} + +"""An input for mutations affecting `ViewTable`""" +input ViewTableInput { + id: UUID + viewId: UUID! + tableId: UUID! + joinOrder: Int +} + +"""The output of our create `ApiSchema` mutation.""" +type CreateApiSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSchema` that was created by this mutation.""" + apiSchema: ApiSchema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge +} + +"""All input for the create `ApiSchema` mutation.""" +input CreateApiSchemaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ApiSchema` to be created by this mutation.""" + apiSchema: ApiSchemaInput! +} + +"""An input for mutations affecting `ApiSchema`""" +input ApiSchemaInput { + """Unique identifier for this API-schema mapping""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Metaschema schema being exposed through the API""" + schemaId: UUID! + + """API that exposes this schema""" + apiId: UUID! +} + +"""The output of our create `SiteTheme` mutation.""" +type CreateSiteThemePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteTheme` that was created by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the create `SiteTheme` mutation.""" +input CreateSiteThemeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SiteTheme` to be created by this mutation.""" + siteTheme: SiteThemeInput! +} + +"""An input for mutations affecting `SiteTheme`""" +input SiteThemeInput { + """Unique identifier for this theme record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this theme belongs to""" + siteId: UUID! + + """ + JSONB object containing theme tokens (colors, typography, spacing, etc.) + """ + theme: JSON! +} + +"""The output of our create `ViewRule` mutation.""" +type CreateViewRulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewRule` that was created by this mutation.""" + viewRule: ViewRule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewRule`. May be used by Relay 1.""" + viewRuleEdge( + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewRuleEdge +} + +"""All input for the create `ViewRule` mutation.""" +input CreateViewRuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ViewRule` to be created by this mutation.""" + viewRule: ViewRuleInput! +} + +"""An input for mutations affecting `ViewRule`""" +input ViewRuleInput { + id: UUID + databaseId: UUID + viewId: UUID! + name: String! + + """INSERT, UPDATE, or DELETE""" + event: String! + + """NOTHING (for read-only) or custom action""" + action: String +} + +"""The output of our create `MigrateFile` mutation.""" +type CreateMigrateFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MigrateFile` that was created by this mutation.""" + migrateFile: MigrateFile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `MigrateFile` mutation.""" +input CreateMigrateFileInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `MigrateFile` to be created by this mutation.""" + migrateFile: MigrateFileInput! +} + +"""An input for mutations affecting `MigrateFile`""" +input MigrateFileInput { + id: UUID + databaseId: UUID + upload: ConstructiveInternalTypeUpload +} + +"""The output of our create `DefaultPrivilege` mutation.""" +type CreateDefaultPrivilegePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DefaultPrivilege` that was created by this mutation.""" + defaultPrivilege: DefaultPrivilege + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DefaultPrivilege`. May be used by Relay 1.""" + defaultPrivilegeEdge( + """The method to use when ordering `DefaultPrivilege`.""" + orderBy: [DefaultPrivilegeOrderBy!]! = [PRIMARY_KEY_ASC] + ): DefaultPrivilegeEdge +} + +"""All input for the create `DefaultPrivilege` mutation.""" +input CreateDefaultPrivilegeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `DefaultPrivilege` to be created by this mutation.""" + defaultPrivilege: DefaultPrivilegeInput! +} + +"""An input for mutations affecting `DefaultPrivilege`""" +input DefaultPrivilegeInput { + id: UUID + databaseId: UUID + schemaId: UUID! + objectType: String! + privilege: String! + granteeName: String! + isGrant: Boolean +} + +"""The output of our create `ViewGrant` mutation.""" +type CreateViewGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewGrant` that was created by this mutation.""" + viewGrant: ViewGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewGrant`. May be used by Relay 1.""" + viewGrantEdge( + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewGrantEdge +} + +"""All input for the create `ViewGrant` mutation.""" +input CreateViewGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ViewGrant` to be created by this mutation.""" + viewGrant: ViewGrantInput! +} + +"""An input for mutations affecting `ViewGrant`""" +input ViewGrantInput { + id: UUID + databaseId: UUID + viewId: UUID! + granteeName: String! + privilege: String! + withGrantOption: Boolean + isGrant: Boolean +} + +"""The output of our create `Api` mutation.""" +type CreateApiPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Api` that was created by this mutation.""" + api: Api + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge +} + +"""All input for the create `Api` mutation.""" +input CreateApiInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Api` to be created by this mutation.""" + api: ApiInput! +} + +"""An input for mutations affecting `Api`""" +input ApiInput { + """Unique identifier for this API""" + id: UUID + + """Reference to the metaschema database this API serves""" + databaseId: UUID! + + """Unique name for this API within its database""" + name: String! + + """PostgreSQL database name to connect to""" + dbname: String + + """PostgreSQL role used for authenticated requests""" + roleName: String + + """PostgreSQL role used for anonymous/unauthenticated requests""" + anonRole: String + + """Whether this API is publicly accessible without authentication""" + isPublic: Boolean +} + +"""The output of our create `CorsSetting` mutation.""" +type CreateCorsSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `CorsSetting` that was created by this mutation.""" + corsSetting: CorsSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CorsSetting`. May be used by Relay 1.""" + corsSettingEdge( + """The method to use when ordering `CorsSetting`.""" + orderBy: [CorsSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): CorsSettingEdge +} + +"""All input for the create `CorsSetting` mutation.""" +input CreateCorsSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `CorsSetting` to be created by this mutation.""" + corsSetting: CorsSettingInput! +} + +"""An input for mutations affecting `CorsSetting`""" +input CorsSettingInput { + """Unique identifier for this CORS settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Optional API for per-API override; NULL means database-wide default""" + apiId: UUID + + """Array of allowed CORS origins (e.g. https://example.com)""" + allowedOrigins: [String] +} + +"""The output of our create `NodeTypeRegistry` mutation.""" +type CreateNodeTypeRegistryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NodeTypeRegistry` that was created by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge +} + +"""All input for the create `NodeTypeRegistry` mutation.""" +input CreateNodeTypeRegistryInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `NodeTypeRegistry` to be created by this mutation.""" + nodeTypeRegistry: NodeTypeRegistryInput! +} + +"""An input for mutations affecting `NodeTypeRegistry`""" +input NodeTypeRegistryInput { + name: String! + slug: String! + category: String! + displayName: String + description: String + parameterSchema: JSON + tags: [String] +} + +"""The output of our create `ApiModule` mutation.""" +type CreateApiModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiModule` that was created by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the create `ApiModule` mutation.""" +input CreateApiModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ApiModule` to be created by this mutation.""" + apiModule: ApiModuleInput! +} + +"""An input for mutations affecting `ApiModule`""" +input ApiModuleInput { + """Unique identifier for this API module record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """API this module configuration belongs to""" + apiId: UUID! + + """Module name (e.g. auth, uploads, webhooks)""" + name: String! + + """JSON configuration data for this module""" + data: JSON! +} + +"""The output of our create `SiteModule` mutation.""" +type CreateSiteModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteModule` that was created by this mutation.""" + siteModule: SiteModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge +} + +"""All input for the create `SiteModule` mutation.""" +input CreateSiteModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SiteModule` to be created by this mutation.""" + siteModule: SiteModuleInput! +} + +"""An input for mutations affecting `SiteModule`""" +input SiteModuleInput { + """Unique identifier for this site module record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this module configuration belongs to""" + siteId: UUID! + + """Module name (e.g. user_auth_module, analytics)""" + name: String! + + """JSON configuration data for this module""" + data: JSON! +} + +"""The output of our create `SiteMetadatum` mutation.""" +type CreateSiteMetadatumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteMetadatum` that was created by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the create `SiteMetadatum` mutation.""" +input CreateSiteMetadatumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SiteMetadatum` to be created by this mutation.""" + siteMetadatum: SiteMetadatumInput! +} + +"""An input for mutations affecting `SiteMetadatum`""" +input SiteMetadatumInput { + """Unique identifier for this metadata record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this metadata belongs to""" + siteId: UUID! + + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String + + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage +} + +"""The output of our create `PubkeySetting` mutation.""" +type CreatePubkeySettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PubkeySetting` that was created by this mutation.""" + pubkeySetting: PubkeySetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PubkeySetting`. May be used by Relay 1.""" + pubkeySettingEdge( + """The method to use when ordering `PubkeySetting`.""" + orderBy: [PubkeySettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PubkeySettingEdge +} + +"""All input for the create `PubkeySetting` mutation.""" +input CreatePubkeySettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PubkeySetting` to be created by this mutation.""" + pubkeySetting: PubkeySettingInput! +} + +"""An input for mutations affecting `PubkeySetting`""" +input PubkeySettingInput { + """Unique identifier for this pubkey settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """ + Schema containing the crypto auth functions (FK to metaschema_public.schema) + """ + schemaId: UUID + + """Crypto network for key derivation (e.g. cosmos, ethereum)""" + cryptoNetwork: String + + """Field name used to identify the user in crypto auth functions""" + userField: String + + """ + Reference to the sign-up-with-key function (FK to metaschema_public.function) + """ + signUpWithKeyFunctionId: UUID + + """ + Reference to the sign-in challenge request function (FK to metaschema_public.function) + """ + signInRequestChallengeFunctionId: UUID + + """ + Reference to the sign-in failure recording function (FK to metaschema_public.function) + """ + signInRecordFailureFunctionId: UUID + + """ + Reference to the sign-in-with-challenge function (FK to metaschema_public.function) + """ + signInWithChallengeFunctionId: UUID +} + +"""The output of our create `SchemaGrant` mutation.""" +type CreateSchemaGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SchemaGrant` that was created by this mutation.""" + schemaGrant: SchemaGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SchemaGrant`. May be used by Relay 1.""" + schemaGrantEdge( + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaGrantEdge +} + +"""All input for the create `SchemaGrant` mutation.""" +input CreateSchemaGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SchemaGrant` to be created by this mutation.""" + schemaGrant: SchemaGrantInput! +} + +"""An input for mutations affecting `SchemaGrant`""" +input SchemaGrantInput { + id: UUID + databaseId: UUID + schemaId: UUID! + granteeName: String! + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `TriggerFunction` mutation.""" +type CreateTriggerFunctionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TriggerFunction` that was created by this mutation.""" + triggerFunction: TriggerFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TriggerFunction`. May be used by Relay 1.""" + triggerFunctionEdge( + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerFunctionEdge +} + +"""All input for the create `TriggerFunction` mutation.""" +input CreateTriggerFunctionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `TriggerFunction` to be created by this mutation.""" + triggerFunction: TriggerFunctionInput! +} + +"""An input for mutations affecting `TriggerFunction`""" +input TriggerFunctionInput { + id: UUID + databaseId: UUID! + name: String! + code: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Database` mutation.""" +type CreateDatabasePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Database` that was created by this mutation.""" + database: Database + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Database`. May be used by Relay 1.""" + databaseEdge( + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseEdge +} + +"""All input for the create `Database` mutation.""" +input CreateDatabaseInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Database` to be created by this mutation.""" + database: DatabaseInput! +} + +"""An input for mutations affecting `Database`""" +input DatabaseInput { + id: UUID + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `TableGrant` mutation.""" +type CreateTableGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TableGrant` that was created by this mutation.""" + tableGrant: TableGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableGrant`. May be used by Relay 1.""" + tableGrantEdge( + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableGrantEdge +} + +"""All input for the create `TableGrant` mutation.""" +input CreateTableGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `TableGrant` to be created by this mutation.""" + tableGrant: TableGrantInput! +} + +"""An input for mutations affecting `TableGrant`""" +input TableGrantInput { + id: UUID + databaseId: UUID + tableId: UUID! + privilege: String! + granteeName: String! + fieldIds: [UUID] + isGrant: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Domain` mutation.""" +type CreateDomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Domain` that was created by this mutation.""" + domain: Domain + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Domain`. May be used by Relay 1.""" + domainEdge( + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): DomainEdge +} + +"""All input for the create `Domain` mutation.""" +input CreateDomainInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Domain` to be created by this mutation.""" + domain: DomainInput! +} + +"""An input for mutations affecting `Domain`""" +input DomainInput { + """Unique identifier for this domain record""" + id: UUID + + """Reference to the metaschema database this domain belongs to""" + databaseId: UUID! + + """API endpoint this domain routes to (mutually exclusive with site_id)""" + apiId: UUID + + """Site this domain routes to (mutually exclusive with api_id)""" + siteId: UUID + + """Subdomain portion of the hostname""" + subdomain: ConstructiveInternalTypeHostname + + """Root domain of the hostname""" + domain: ConstructiveInternalTypeHostname +} + +"""The output of our create `RlsSetting` mutation.""" +type CreateRlsSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `RlsSetting` that was created by this mutation.""" + rlsSetting: RlsSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RlsSetting`. May be used by Relay 1.""" + rlsSettingEdge( + """The method to use when ordering `RlsSetting`.""" + orderBy: [RlsSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsSettingEdge +} + +"""All input for the create `RlsSetting` mutation.""" +input CreateRlsSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `RlsSetting` to be created by this mutation.""" + rlsSetting: RlsSettingInput! +} + +"""An input for mutations affecting `RlsSetting`""" +input RlsSettingInput { + """Unique identifier for this RLS settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """ + Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) + """ + authenticateSchemaId: UUID + + """ + Schema containing current_role and related functions (FK to metaschema_public.schema) + """ + roleSchemaId: UUID + + """ + Reference to the authenticate function (FK to metaschema_public.function) + """ + authenticateFunctionId: UUID + + """ + Reference to the strict authenticate function (FK to metaschema_public.function) + """ + authenticateStrictFunctionId: UUID + + """ + Reference to the current_role function (FK to metaschema_public.function) + """ + currentRoleFunctionId: UUID + + """ + Reference to the current_role_id function (FK to metaschema_public.function) + """ + currentRoleIdFunctionId: UUID + + """ + Reference to the current_user_agent function (FK to metaschema_public.function) + """ + currentUserAgentFunctionId: UUID + + """ + Reference to the current_ip_address function (FK to metaschema_public.function) + """ + currentIpAddressFunctionId: UUID +} + +"""The output of our create `FullTextSearch` mutation.""" +type CreateFullTextSearchPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FullTextSearch` that was created by this mutation.""" + fullTextSearch: FullTextSearch + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FullTextSearch`. May be used by Relay 1.""" + fullTextSearchEdge( + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] + ): FullTextSearchEdge +} + +"""All input for the create `FullTextSearch` mutation.""" +input CreateFullTextSearchInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FullTextSearch` to be created by this mutation.""" + fullTextSearch: FullTextSearchInput! +} + +"""An input for mutations affecting `FullTextSearch`""" +input FullTextSearchInput { + id: UUID + databaseId: UUID + tableId: UUID! + fieldId: UUID! + fieldIds: [UUID]! + weights: [String]! + langs: [String]! + langColumn: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Partition` mutation.""" +type CreatePartitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Partition` that was created by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the create `Partition` mutation.""" +input CreatePartitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Partition` to be created by this mutation.""" + partition: PartitionInput! +} + +"""An input for mutations affecting `Partition`""" +input PartitionInput { + id: UUID + databaseId: UUID! + tableId: UUID! + strategy: String! + partitionKeyId: UUID! + interval: String + retention: String + retentionKeepTable: Boolean + premake: Int + namingPattern: String + isParented: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `SqlAction` mutation.""" +type CreateSqlActionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SqlAction` that was created by this mutation.""" + sqlAction: SqlAction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `SqlAction` mutation.""" +input CreateSqlActionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SqlAction` to be created by this mutation.""" + sqlAction: SqlActionInput! +} + +"""An input for mutations affecting `SqlAction`""" +input SqlActionInput { + id: Int + name: String + databaseId: UUID + deploy: String + deps: [String] + payload: JSON + content: String + revert: String + verify: String + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + +"""The output of our create `DatabaseSetting` mutation.""" +type CreateDatabaseSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseSetting` that was created by this mutation.""" + databaseSetting: DatabaseSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge +} + +"""All input for the create `DatabaseSetting` mutation.""" +input CreateDatabaseSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `DatabaseSetting` to be created by this mutation.""" + databaseSetting: DatabaseSettingInput! +} + +"""An input for mutations affecting `DatabaseSetting`""" +input DatabaseSettingInput { + """Unique identifier for this settings record""" + id: UUID + + """Reference to the metaschema database these settings apply to""" + databaseId: UUID! + + """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" + enableAggregates: Boolean + + """Enable PostGIS spatial types and operators in the GraphQL API""" + enablePostgis: Boolean + + """ + Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API + """ + enableSearch: Boolean + + """Enable direct (multipart) file upload mutations in the GraphQL API""" + enableDirectUploads: Boolean + + """Enable presigned URL upload flow for S3/MinIO storage""" + enablePresignedUploads: Boolean + + """Enable many-to-many relationship queries in the GraphQL API""" + enableManyToMany: Boolean + + """Enable connection filter (where argument) in the GraphQL API""" + enableConnectionFilter: Boolean + + """Enable ltree hierarchical data type support in the GraphQL API""" + enableLtree: Boolean + + """Enable LLM/AI integration features in the GraphQL API""" + enableLlm: Boolean + + """ + Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API + """ + enableRealtime: Boolean + + """ + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + """ + enableBulk: Boolean + + """ + Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API + """ + enableI18N: Boolean + + """ + Extensible JSON for additional settings that do not have dedicated columns + """ + options: JSON +} + +"""The output of our create `Enum` mutation.""" +type CreateEnumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Enum` that was created by this mutation.""" + enum: Enum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Enum`. May be used by Relay 1.""" + enumEdge( + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] + ): EnumEdge +} + +"""All input for the create `Enum` mutation.""" +input CreateEnumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Enum` to be created by this mutation.""" + enum: EnumInput! +} + +"""An input for mutations affecting `Enum`""" +input EnumInput { + id: UUID + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + values: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + +"""The output of our create `View` mutation.""" +type CreateViewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `View` that was created by this mutation.""" + view: View + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `View`. May be used by Relay 1.""" + viewEdge( + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewEdge +} + +"""All input for the create `View` mutation.""" +input CreateViewInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `View` to be created by this mutation.""" + view: ViewInput! +} + +"""An input for mutations affecting `View`""" +input ViewInput { + id: UUID + databaseId: UUID + schemaId: UUID! + name: String! + tableId: UUID + viewType: String! + data: JSON + filterType: String + filterData: JSON + securityInvoker: Boolean + isReadOnly: Boolean + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + +"""The output of our create `ApiSetting` mutation.""" +type CreateApiSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSetting` that was created by this mutation.""" + apiSetting: ApiSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge +} + +"""All input for the create `ApiSetting` mutation.""" +input CreateApiSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ApiSetting` to be created by this mutation.""" + apiSetting: ApiSettingInput! +} + +"""An input for mutations affecting `ApiSetting`""" +input ApiSettingInput { + """Unique identifier for this API settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """API these settings override for""" + apiId: UUID! + + """ + Override: enable aggregate queries (NULL = inherit from database_settings) + """ + enableAggregates: Boolean + + """ + Override: enable PostGIS spatial types (NULL = inherit from database_settings) + """ + enablePostgis: Boolean + + """ + Override: enable unified search (NULL = inherit from database_settings) + """ + enableSearch: Boolean + + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean + + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean + + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean + + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean + + """ + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) + """ + enableLtree: Boolean + + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean + + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean + + """ + Override: enable bulk mutations (NULL = inherit from database_settings) + """ + enableBulk: Boolean + + """ + Override: enable internationalization plugin (NULL = inherit from database_settings) + """ + enableI18N: Boolean + + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON +} + +"""The output of our create `DatabaseTransfer` mutation.""" +type CreateDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseTransfer` that was created by this mutation.""" + databaseTransfer: DatabaseTransfer + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge +} + +"""All input for the create `DatabaseTransfer` mutation.""" +input CreateDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `DatabaseTransfer` to be created by this mutation.""" + databaseTransfer: DatabaseTransferInput! +} + +"""An input for mutations affecting `DatabaseTransfer`""" +input DatabaseTransferInput { + id: UUID + databaseId: UUID! + targetOwnerId: UUID! + sourceApproved: Boolean + targetApproved: Boolean + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String + initiatedBy: UUID! + notes: String + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + +"""The output of our create `App` mutation.""" +type CreateAppPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `App` that was created by this mutation.""" + app: App + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge +} + +"""All input for the create `App` mutation.""" +input CreateAppInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `App` to be created by this mutation.""" + app: AppInput! +} + +"""An input for mutations affecting `App`""" +input AppInput { + """Unique identifier for this app""" + id: UUID + + """Reference to the metaschema database this app belongs to""" + databaseId: UUID! + + """Site this app is associated with (one app per site)""" + siteId: UUID! + + """Display name of the app""" + name: String + + """App icon or promotional image""" + appImage: ConstructiveInternalTypeImage + + """URL to the Apple App Store listing""" + appStoreLink: ConstructiveInternalTypeUrl + + """Apple App Store application identifier""" + appStoreId: String + + """ + Apple App ID prefix (Team ID) for universal links and associated domains + """ + appIdPrefix: String + + """URL to the Google Play Store listing""" + playStoreLink: ConstructiveInternalTypeUrl +} + +"""The output of our create `Site` mutation.""" +type CreateSitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Site` that was created by this mutation.""" + site: Site + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + +"""All input for the create `Site` mutation.""" +input CreateSiteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Site` to be created by this mutation.""" + site: SiteInput! +} + +"""An input for mutations affecting `Site`""" +input SiteInput { + """Unique identifier for this site""" + id: UUID + + """Reference to the metaschema database this site belongs to""" + databaseId: UUID! + + """Display title for the site (max 120 characters)""" + title: String + + """Short description of the site (max 120 characters)""" + description: String + + """Open Graph image used for social media link previews""" + ogImage: ConstructiveInternalTypeImage + + """Browser favicon attachment""" + favicon: ConstructiveInternalTypeAttachment + + """Apple touch icon for iOS home screen bookmarks""" + appleTouchIcon: ConstructiveInternalTypeImage + + """Primary logo image for the site""" + logo: ConstructiveInternalTypeImage + + """PostgreSQL database name this site connects to""" + dbname: String +} + +"""The output of our create `PrimaryKeyConstraint` mutation.""" +type CreatePrimaryKeyConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PrimaryKeyConstraint` that was created by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge +} + +"""All input for the create `PrimaryKeyConstraint` mutation.""" +input CreatePrimaryKeyConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PrimaryKeyConstraint` to be created by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraintInput! +} + +"""An input for mutations affecting `PrimaryKeyConstraint`""" +input PrimaryKeyConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Trigger` mutation.""" +type CreateTriggerPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Trigger` that was created by this mutation.""" + trigger: Trigger + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge +} + +"""All input for the create `Trigger` mutation.""" +input CreateTriggerInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Trigger` to be created by this mutation.""" + trigger: TriggerInput! +} + +"""An input for mutations affecting `Trigger`""" +input TriggerInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String! + event: String + functionName: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `CheckConstraint` mutation.""" +type CreateCheckConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `CheckConstraint` that was created by this mutation.""" + checkConstraint: CheckConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge +} + +"""All input for the create `CheckConstraint` mutation.""" +input CreateCheckConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `CheckConstraint` to be created by this mutation.""" + checkConstraint: CheckConstraintInput! +} + +"""An input for mutations affecting `CheckConstraint`""" +input CheckConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + expr: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `UniqueConstraint` mutation.""" +type CreateUniqueConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `UniqueConstraint` that was created by this mutation.""" + uniqueConstraint: UniqueConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge +} + +"""All input for the create `UniqueConstraint` mutation.""" +input CreateUniqueConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `UniqueConstraint` to be created by this mutation.""" + uniqueConstraint: UniqueConstraintInput! +} + +"""An input for mutations affecting `UniqueConstraint`""" +input UniqueConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `SpatialRelation` mutation.""" +type CreateSpatialRelationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SpatialRelation` that was created by this mutation.""" + spatialRelation: SpatialRelation + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SpatialRelation`. May be used by Relay 1.""" + spatialRelationEdge( + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] + ): SpatialRelationEdge +} + +"""All input for the create `SpatialRelation` mutation.""" +input CreateSpatialRelationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SpatialRelation` to be created by this mutation.""" + spatialRelation: SpatialRelationInput! +} + +"""An input for mutations affecting `SpatialRelation`""" +input SpatialRelationInput { + id: UUID + databaseId: UUID + tableId: UUID! + fieldId: UUID! + refTableId: UUID! + refFieldId: UUID! + name: String! + operator: String! + paramName: String + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Policy` mutation.""" +type CreatePolicyPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Policy` that was created by this mutation.""" + policy: Policy + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge +} + +"""All input for the create `Policy` mutation.""" +input CreatePolicyInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Policy` to be created by this mutation.""" + policy: PolicyInput! +} + +"""An input for mutations affecting `Policy`""" +input PolicyInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + granteeName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Schema` mutation.""" +type CreateSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Schema` that was created by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the create `Schema` mutation.""" +input CreateSchemaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Schema` to be created by this mutation.""" + schema: SchemaInput! +} + +"""An input for mutations affecting `Schema`""" +input SchemaInput { + id: UUID + databaseId: UUID! + name: String! + schemaName: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + isPublic: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Index` mutation.""" +type CreateIndexPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Index` that was created by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the create `Index` mutation.""" +input CreateIndexInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Index` to be created by this mutation.""" + index: IndexInput! +} + +"""An input for mutations affecting `Index`""" +input IndexInput { + id: UUID + databaseId: UUID! + tableId: UUID! + name: String + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String + indexParams: JSON + whereClause: JSON + isUnique: Boolean + options: JSON + opClasses: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `EmbeddingChunk` mutation.""" +type CreateEmbeddingChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmbeddingChunk` that was created by this mutation.""" + embeddingChunk: EmbeddingChunk + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge +} + +"""All input for the create `EmbeddingChunk` mutation.""" +input CreateEmbeddingChunkInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `EmbeddingChunk` to be created by this mutation.""" + embeddingChunk: EmbeddingChunkInput! +} + +"""An input for mutations affecting `EmbeddingChunk`""" +input EmbeddingChunkInput { + id: UUID + databaseId: UUID + tableId: UUID! + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String + dimensions: Int + metric: String + chunkSize: Int + chunkOverlap: Int + chunkStrategy: String + metadataFields: JSON + searchIndexes: JSON + enqueueChunkingJob: Boolean + chunkingTaskName: String + embeddingModel: String + embeddingProvider: String + parentFkFieldId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `ForeignKeyConstraint` mutation.""" +type CreateForeignKeyConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ForeignKeyConstraint` that was created by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge +} + +"""All input for the create `ForeignKeyConstraint` mutation.""" +input CreateForeignKeyConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ForeignKeyConstraint` to be created by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraintInput! +} + +"""An input for mutations affecting `ForeignKeyConstraint`""" +input ForeignKeyConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + refTableId: UUID! + refFieldIds: [UUID]! + deleteAction: String + updateAction: String + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `WebauthnSetting` mutation.""" +type CreateWebauthnSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `WebauthnSetting` that was created by this mutation.""" + webauthnSetting: WebauthnSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `WebauthnSetting`. May be used by Relay 1.""" + webauthnSettingEdge( + """The method to use when ordering `WebauthnSetting`.""" + orderBy: [WebauthnSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnSettingEdge +} + +"""All input for the create `WebauthnSetting` mutation.""" +input CreateWebauthnSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `WebauthnSetting` to be created by this mutation.""" + webauthnSetting: WebauthnSettingInput! +} + +"""An input for mutations affecting `WebauthnSetting`""" +input WebauthnSettingInput { + """Unique identifier for this WebAuthn settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """ + Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) + """ + schemaId: UUID + + """ + Schema of the webauthn_credentials table (FK to metaschema_public.schema) + """ + credentialsSchemaId: UUID + + """Schema of the sessions table (FK to metaschema_public.schema)""" + sessionsSchemaId: UUID + + """Schema of the session_secrets table (FK to metaschema_public.schema)""" + sessionSecretsSchemaId: UUID + + """ + Reference to the webauthn_credentials table (FK to metaschema_public.table) + """ + credentialsTableId: UUID + + """Reference to the sessions table (FK to metaschema_public.table)""" + sessionsTableId: UUID + + """ + Reference to the session_credentials table (FK to metaschema_public.table) + """ + sessionCredentialsTableId: UUID + + """Reference to the session_secrets table (FK to metaschema_public.table)""" + sessionSecretsTableId: UUID + + """ + Reference to the user field on webauthn_credentials (FK to metaschema_public.field) + """ + userFieldId: UUID + + """WebAuthn Relying Party ID (typically the domain name)""" + rpId: String + + """WebAuthn Relying Party display name""" + rpName: String + + """Allowed origins for WebAuthn registration and authentication""" + originAllowlist: [String] + + """Attestation conveyance preference (none, indirect, direct, enterprise)""" + attestationType: String + + """Whether to require user verification (biometric/PIN) during auth""" + requireUserVerification: Boolean + + """Resident key requirement (discouraged, preferred, required)""" + residentKey: String + + """Challenge TTL in seconds (default 300 = 5 minutes)""" + 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 `Field` mutation.""" +type CreateFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Field` that was created by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the create `Field` mutation.""" +input CreateFieldInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Field` to be created by this mutation.""" + field: FieldInput! +} + +"""An input for mutations affecting `Field`""" +input FieldInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String! + label: String + description: String + smartTags: JSON + isRequired: Boolean + apiRequired: Boolean + defaultValue: JSON + type: JSON! + fieldOrder: Int + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String] + category: ObjectCategory + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Table` mutation.""" +type CreateTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Table` that was created by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the create `Table` mutation.""" +input CreateTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Table` to be created by this mutation.""" + table: TableInput! +} + +"""An input for mutations affecting `Table`""" +input TableInput { + id: UUID + databaseId: UUID + schemaId: UUID! + name: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + useRls: Boolean + timestamps: Boolean + peoplestamps: Boolean + pluralName: String + singularName: String + tags: [String] + partitioned: Boolean + partitionStrategy: String + partitionKeyNames: [String] + partitionKeyTypes: [String] + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Function` mutation.""" +type UpdateFunctionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Function` that was updated by this mutation.""" + function: Function + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Function`. May be used by Relay 1.""" + functionEdge( + """The method to use when ordering `Function`.""" + orderBy: [FunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionEdge +} + +"""All input for the `updateFunction` mutation.""" +input UpdateFunctionInput { + """ + An arbitrary string value 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 `Function` being updated. + """ + functionPatch: FunctionPatch! +} + +""" +Represents an update to a `Function`. Fields that are set will be updated. +""" +input FunctionPatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String +} + +"""The output of our update `ViewTable` mutation.""" +type UpdateViewTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewTable` that was updated by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the `updateViewTable` mutation.""" +input UpdateViewTableInput { + """ + An arbitrary string value 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 `ViewTable` being updated. + """ + viewTablePatch: ViewTablePatch! +} + +""" +Represents an update to a `ViewTable`. Fields that are set will be updated. +""" +input ViewTablePatch { + id: UUID + viewId: UUID + tableId: UUID + joinOrder: Int +} + +"""The output of our update `ApiSchema` mutation.""" +type UpdateApiSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSchema` that was updated by this mutation.""" + apiSchema: ApiSchema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge +} + +"""All input for the `updateApiSchema` mutation.""" +input UpdateApiSchemaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API-schema mapping""" + id: UUID! + + """ + An object where the defined keys will be set on the `ApiSchema` being updated. + """ + apiSchemaPatch: ApiSchemaPatch! +} + +""" +Represents an update to a `ApiSchema`. Fields that are set will be updated. +""" +input ApiSchemaPatch { + """Unique identifier for this API-schema mapping""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Metaschema schema being exposed through the API""" + schemaId: UUID + + """API that exposes this schema""" + apiId: UUID +} + +"""The output of our update `SiteTheme` mutation.""" +type UpdateSiteThemePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteTheme` that was updated by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the `updateSiteTheme` mutation.""" +input UpdateSiteThemeInput { + """ + An arbitrary 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 theme record""" + id: UUID! + + """ + An object where the defined keys will be set on the `SiteTheme` being updated. + """ + siteThemePatch: SiteThemePatch! +} + +""" +Represents an update to a `SiteTheme`. Fields that are set will be updated. +""" +input SiteThemePatch { + """Unique identifier for this theme record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Site this theme belongs to""" + siteId: UUID + + """ + JSONB object containing theme tokens (colors, typography, spacing, etc.) + """ + theme: JSON +} + +"""The output of our update `ViewRule` mutation.""" +type UpdateViewRulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewRule` that was updated by this mutation.""" + viewRule: ViewRule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewRule`. May be used by Relay 1.""" + viewRuleEdge( + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewRuleEdge +} + +"""All input for the `updateViewRule` mutation.""" +input UpdateViewRuleInput { + """ + An arbitrary string value 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 `ViewRule` being updated. + """ + viewRulePatch: ViewRulePatch! +} + +""" +Represents an update to a `ViewRule`. Fields that are set will be updated. +""" +input ViewRulePatch { + id: UUID + databaseId: UUID + viewId: UUID + name: String + + """INSERT, UPDATE, or DELETE""" + event: String + + """NOTHING (for read-only) or custom action""" + action: String +} + +"""The output of our update `DefaultPrivilege` mutation.""" +type UpdateDefaultPrivilegePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DefaultPrivilege` that was updated by this mutation.""" + defaultPrivilege: DefaultPrivilege + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DefaultPrivilege`. May be used by Relay 1.""" + defaultPrivilegeEdge( + """The method to use when ordering `DefaultPrivilege`.""" + orderBy: [DefaultPrivilegeOrderBy!]! = [PRIMARY_KEY_ASC] + ): DefaultPrivilegeEdge +} + +"""All input for the `updateDefaultPrivilege` mutation.""" +input UpdateDefaultPrivilegeInput { + """ + An arbitrary string value 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 `DefaultPrivilege` being updated. + """ + defaultPrivilegePatch: DefaultPrivilegePatch! +} + +""" +Represents an update to a `DefaultPrivilege`. Fields that are set will be updated. +""" +input DefaultPrivilegePatch { + id: UUID + databaseId: UUID + schemaId: UUID + objectType: String + privilege: String + granteeName: String + isGrant: Boolean +} + +"""The output of our update `ViewGrant` mutation.""" +type UpdateViewGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewGrant` that was updated by this mutation.""" + viewGrant: ViewGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewGrant`. May be used by Relay 1.""" + viewGrantEdge( + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewGrantEdge +} + +"""All input for the `updateViewGrant` mutation.""" +input UpdateViewGrantInput { + """ + An arbitrary string value 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 `ViewGrant` being updated. + """ + viewGrantPatch: ViewGrantPatch! +} + +""" +Represents an update to a `ViewGrant`. Fields that are set will be updated. +""" +input ViewGrantPatch { + id: UUID + databaseId: UUID + viewId: UUID + granteeName: String + privilege: String + withGrantOption: Boolean + isGrant: Boolean +} + +"""The output of our update `Api` mutation.""" +type UpdateApiPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Api` that was updated by this mutation.""" + api: Api + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge +} + +"""All input for the `updateApi` mutation.""" +input UpdateApiInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API""" + id: UUID! + + """ + An object where the defined keys will be set on the `Api` being updated. + """ + apiPatch: ApiPatch! +} + +"""Represents an update to a `Api`. Fields that are set will be updated.""" +input ApiPatch { + """Unique identifier for this API""" + id: UUID + + """Reference to the metaschema database this API serves""" + databaseId: UUID + + """Unique name for this API within its database""" + name: String + + """PostgreSQL database name to connect to""" + dbname: String + + """PostgreSQL role used for authenticated requests""" + roleName: String + + """PostgreSQL role used for anonymous/unauthenticated requests""" + anonRole: String + + """Whether this API is publicly accessible without authentication""" + isPublic: Boolean +} + +"""The output of our update `CorsSetting` mutation.""" +type UpdateCorsSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `CorsSetting` that was updated by this mutation.""" + corsSetting: CorsSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CorsSetting`. May be used by Relay 1.""" + corsSettingEdge( + """The method to use when ordering `CorsSetting`.""" + orderBy: [CorsSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): CorsSettingEdge +} + +"""All input for the `updateCorsSetting` mutation.""" +input UpdateCorsSettingInput { + """ + An arbitrary 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 CORS settings record""" + id: UUID! + + """ + An object where the defined keys will be set on the `CorsSetting` being updated. + """ + corsSettingPatch: CorsSettingPatch! +} + +""" +Represents an update to a `CorsSetting`. Fields that are set will be updated. +""" +input CorsSettingPatch { + """Unique identifier for this CORS settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Optional API for per-API override; NULL means database-wide default""" + apiId: UUID + + """Array of allowed CORS origins (e.g. https://example.com)""" + allowedOrigins: [String] +} + +"""The output of our update `NodeTypeRegistry` mutation.""" +type UpdateNodeTypeRegistryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NodeTypeRegistry` that was updated by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge +} + +"""All input for the `updateNodeTypeRegistry` mutation.""" +input UpdateNodeTypeRegistryInput { + """ + An arbitrary 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! + + """ + An object where the defined keys will be set on the `NodeTypeRegistry` being updated. + """ + nodeTypeRegistryPatch: NodeTypeRegistryPatch! +} + +""" +Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. +""" +input NodeTypeRegistryPatch { + name: String + slug: String + category: String + displayName: String + description: String + parameterSchema: JSON + tags: [String] +} + +"""The output of our update `ApiModule` mutation.""" +type UpdateApiModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiModule` that was updated by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the `updateApiModule` mutation.""" +input UpdateApiModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API module record""" + id: UUID! + + """ + An object where the defined keys will be set on the `ApiModule` being updated. + """ + apiModulePatch: ApiModulePatch! +} + +""" +Represents an update to a `ApiModule`. Fields that are set will be updated. +""" +input ApiModulePatch { + """Unique identifier for this API module record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """API this module configuration belongs to""" + apiId: UUID + + """Module name (e.g. auth, uploads, webhooks)""" + name: String + + """JSON configuration data for this module""" + data: JSON +} + +"""The output of our update `SiteModule` mutation.""" +type UpdateSiteModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteModule` that was updated by this mutation.""" + siteModule: SiteModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge +} + +"""All input for the `updateSiteModule` mutation.""" +input UpdateSiteModuleInput { + """ + An arbitrary 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 site module record""" + id: UUID! + + """ + An object where the defined keys will be set on the `SiteModule` being updated. + """ + siteModulePatch: SiteModulePatch! +} + +""" +Represents an update to a `SiteModule`. Fields that are set will be updated. +""" +input SiteModulePatch { + """Unique identifier for this site module record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Site this module configuration belongs to""" + siteId: UUID + + """Module name (e.g. user_auth_module, analytics)""" + name: String + + """JSON configuration data for this module""" + data: JSON +} + +"""The output of our update `SiteMetadatum` mutation.""" +type UpdateSiteMetadatumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteMetadatum` that was updated by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `updateSiteMetadatum` mutation.""" +input UpdateSiteMetadatumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this metadata record""" + id: UUID! + + """ + An object where the defined keys will be set on the `SiteMetadatum` being updated. + """ + siteMetadatumPatch: SiteMetadatumPatch! +} + +""" +Represents an update to a `SiteMetadatum`. Fields that are set will be updated. +""" +input SiteMetadatumPatch { + """Unique identifier for this metadata record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Site this metadata belongs to""" + siteId: UUID + + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String + + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage + + """Upload for Open Graph image for social media previews""" + ogImageUpload: Upload +} + +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + +"""The output of our update `PubkeySetting` mutation.""" +type UpdatePubkeySettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PubkeySetting` that was updated by this mutation.""" + pubkeySetting: PubkeySetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PubkeySetting`. May be used by Relay 1.""" + pubkeySettingEdge( + """The method to use when ordering `PubkeySetting`.""" + orderBy: [PubkeySettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PubkeySettingEdge +} + +"""All input for the `updatePubkeySetting` mutation.""" +input UpdatePubkeySettingInput { + """ + An arbitrary 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 pubkey settings record""" + id: UUID! + + """ + An object where the defined keys will be set on the `PubkeySetting` being updated. + """ + pubkeySettingPatch: PubkeySettingPatch! +} + +""" +Represents an update to a `PubkeySetting`. Fields that are set will be updated. +""" +input PubkeySettingPatch { + """Unique identifier for this pubkey settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """ + Schema containing the crypto auth functions (FK to metaschema_public.schema) + """ + schemaId: UUID + + """Crypto network for key derivation (e.g. cosmos, ethereum)""" + cryptoNetwork: String + + """Field name used to identify the user in crypto auth functions""" + userField: String + + """ + Reference to the sign-up-with-key function (FK to metaschema_public.function) + """ + signUpWithKeyFunctionId: UUID + + """ + Reference to the sign-in challenge request function (FK to metaschema_public.function) + """ + signInRequestChallengeFunctionId: UUID + + """ + Reference to the sign-in failure recording function (FK to metaschema_public.function) + """ + signInRecordFailureFunctionId: UUID + + """ + Reference to the sign-in-with-challenge function (FK to metaschema_public.function) + """ + signInWithChallengeFunctionId: UUID +} + +"""The output of our update `SchemaGrant` mutation.""" +type UpdateSchemaGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SchemaGrant` that was updated by this mutation.""" + schemaGrant: SchemaGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SchemaGrant`. May be used by Relay 1.""" + schemaGrantEdge( + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaGrantEdge +} + +"""All input for the `updateSchemaGrant` mutation.""" +input UpdateSchemaGrantInput { + """ + An arbitrary string value 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 `SchemaGrant` being updated. + """ + schemaGrantPatch: SchemaGrantPatch! +} + +""" +Represents an update to a `SchemaGrant`. Fields that are set will be updated. +""" +input SchemaGrantPatch { + id: UUID + databaseId: UUID + schemaId: UUID + granteeName: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `TriggerFunction` mutation.""" +type UpdateTriggerFunctionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TriggerFunction` that was updated by this mutation.""" + triggerFunction: TriggerFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TriggerFunction`. May be used by Relay 1.""" + triggerFunctionEdge( + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerFunctionEdge +} + +"""All input for the `updateTriggerFunction` mutation.""" +input UpdateTriggerFunctionInput { + """ + An arbitrary string value 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 `TriggerFunction` being updated. + """ + triggerFunctionPatch: TriggerFunctionPatch! +} + +""" +Represents an update to a `TriggerFunction`. Fields that are set will be updated. +""" +input TriggerFunctionPatch { + id: UUID + databaseId: UUID + name: String + code: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Database` mutation.""" +type UpdateDatabasePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Database` that was updated by this mutation.""" + database: Database + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Database`. May be used by Relay 1.""" + databaseEdge( + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseEdge +} + +"""All input for the `updateDatabase` mutation.""" +input UpdateDatabaseInput { + """ + An arbitrary string value 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 `Database` being updated. + """ + databasePatch: DatabasePatch! +} + +""" +Represents an update to a `Database`. Fields that are set will be updated. +""" +input DatabasePatch { + id: UUID + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `TableGrant` mutation.""" +type UpdateTableGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TableGrant` that was updated by this mutation.""" + tableGrant: TableGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableGrant`. May be used by Relay 1.""" + tableGrantEdge( + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableGrantEdge +} + +"""All input for the `updateTableGrant` mutation.""" +input UpdateTableGrantInput { + """ + An arbitrary string value 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 `TableGrant` being updated. + """ + tableGrantPatch: TableGrantPatch! +} + +""" +Represents an update to a `TableGrant`. Fields that are set will be updated. +""" +input TableGrantPatch { + id: UUID + databaseId: UUID + tableId: UUID + privilege: String + granteeName: String + fieldIds: [UUID] + isGrant: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Domain` mutation.""" +type UpdateDomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Domain` that was updated by this mutation.""" + domain: Domain + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Domain`. May be used by Relay 1.""" + domainEdge( + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): DomainEdge +} + +"""All input for the `updateDomain` mutation.""" +input UpdateDomainInput { + """ + An arbitrary 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 domain record""" + id: UUID! + + """ + An object where the defined keys will be set on the `Domain` being updated. + """ + domainPatch: DomainPatch! +} + +""" +Represents an update to a `Domain`. Fields that are set will be updated. +""" +input DomainPatch { + """Unique identifier for this domain record""" + id: UUID + + """Reference to the metaschema database this domain belongs to""" + databaseId: UUID + + """API endpoint this domain routes to (mutually exclusive with site_id)""" + apiId: UUID + + """Site this domain routes to (mutually exclusive with api_id)""" + siteId: UUID + + """Subdomain portion of the hostname""" + subdomain: ConstructiveInternalTypeHostname + + """Root domain of the hostname""" + domain: ConstructiveInternalTypeHostname +} + +"""The output of our update `RlsSetting` mutation.""" +type UpdateRlsSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `RlsSetting` that was updated by this mutation.""" + rlsSetting: RlsSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RlsSetting`. May be used by Relay 1.""" + rlsSettingEdge( + """The method to use when ordering `RlsSetting`.""" + orderBy: [RlsSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsSettingEdge +} + +"""All input for the `updateRlsSetting` mutation.""" +input UpdateRlsSettingInput { + """ + An arbitrary 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 RLS settings record""" + id: UUID! + + """ + An object where the defined keys will be set on the `RlsSetting` being updated. + """ + rlsSettingPatch: RlsSettingPatch! +} + +""" +Represents an update to a `RlsSetting`. Fields that are set will be updated. +""" +input RlsSettingPatch { + """Unique identifier for this RLS settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """ + Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) + """ + authenticateSchemaId: UUID + + """ + Schema containing current_role and related functions (FK to metaschema_public.schema) + """ + roleSchemaId: UUID + + """ + Reference to the authenticate function (FK to metaschema_public.function) + """ + authenticateFunctionId: UUID + + """ + Reference to the strict authenticate function (FK to metaschema_public.function) + """ + authenticateStrictFunctionId: UUID + + """ + Reference to the current_role function (FK to metaschema_public.function) + """ + currentRoleFunctionId: UUID + + """ + Reference to the current_role_id function (FK to metaschema_public.function) + """ + currentRoleIdFunctionId: UUID + + """ + Reference to the current_user_agent function (FK to metaschema_public.function) + """ + currentUserAgentFunctionId: UUID + + """ + Reference to the current_ip_address function (FK to metaschema_public.function) + """ + currentIpAddressFunctionId: UUID +} + +"""The output of our update `FullTextSearch` mutation.""" +type UpdateFullTextSearchPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FullTextSearch` that was updated by this mutation.""" + fullTextSearch: FullTextSearch + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FullTextSearch`. May be used by Relay 1.""" + fullTextSearchEdge( + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] + ): FullTextSearchEdge +} + +"""All input for the `updateFullTextSearch` mutation.""" +input UpdateFullTextSearchInput { + """ + An arbitrary string value 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 `FullTextSearch` being updated. + """ + fullTextSearchPatch: FullTextSearchPatch! +} + +""" +Represents an update to a `FullTextSearch`. Fields that are set will be updated. +""" +input FullTextSearchPatch { + id: UUID + databaseId: UUID + tableId: UUID + fieldId: UUID + fieldIds: [UUID] + weights: [String] + langs: [String] + langColumn: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Partition` mutation.""" +type UpdatePartitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Partition` that was updated by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the `updatePartition` mutation.""" +input UpdatePartitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `Partition` being updated. + """ + partitionPatch: PartitionPatch! +} + +""" +Represents an update to a `Partition`. Fields that are set will be updated. +""" +input PartitionPatch { + id: UUID + databaseId: UUID + tableId: UUID + strategy: String + partitionKeyId: UUID + interval: String + retention: String + retentionKeepTable: Boolean + premake: Int + namingPattern: String + isParented: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `DatabaseSetting` mutation.""" +type UpdateDatabaseSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseSetting` that was updated by this mutation.""" + databaseSetting: DatabaseSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge +} + +"""All input for the `updateDatabaseSetting` mutation.""" +input UpdateDatabaseSettingInput { + """ + An arbitrary 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 settings record""" + id: UUID! + + """ + An object where the defined keys will be set on the `DatabaseSetting` being updated. + """ + databaseSettingPatch: DatabaseSettingPatch! +} + +""" +Represents an update to a `DatabaseSetting`. Fields that are set will be updated. +""" +input DatabaseSettingPatch { + """Unique identifier for this settings record""" + id: UUID + + """Reference to the metaschema database these settings apply to""" + databaseId: UUID + + """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" + enableAggregates: Boolean + + """Enable PostGIS spatial types and operators in the GraphQL API""" + enablePostgis: Boolean + + """ + Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API + """ + enableSearch: Boolean + + """Enable direct (multipart) file upload mutations in the GraphQL API""" + enableDirectUploads: Boolean + + """Enable presigned URL upload flow for S3/MinIO storage""" + enablePresignedUploads: Boolean + + """Enable many-to-many relationship queries in the GraphQL API""" + enableManyToMany: Boolean + + """Enable connection filter (where argument) in the GraphQL API""" + enableConnectionFilter: Boolean + + """Enable ltree hierarchical data type support in the GraphQL API""" + enableLtree: Boolean + + """Enable LLM/AI integration features in the GraphQL API""" + enableLlm: Boolean + + """ + Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API + """ + enableRealtime: Boolean + + """ + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + """ + enableBulk: Boolean + + """ + Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API + """ + enableI18N: Boolean + + """ + Extensible JSON for additional settings that do not have dedicated columns + """ + options: JSON +} + +"""The output of our update `Enum` mutation.""" +type UpdateEnumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Enum` that was updated by this mutation.""" + enum: Enum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Enum`. May be used by Relay 1.""" + enumEdge( + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] + ): EnumEdge +} + +"""All input for the `updateEnum` mutation.""" +input UpdateEnumInput { + """ + An arbitrary string value 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 `Enum` being updated. + """ + enumPatch: EnumPatch! +} + +"""Represents an update to a `Enum`. Fields that are set will be updated.""" +input EnumPatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String + label: String + description: String + values: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + +"""The output of our update `View` mutation.""" +type UpdateViewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `View` that was updated by this mutation.""" + view: View + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `View`. May be used by Relay 1.""" + viewEdge( + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewEdge +} + +"""All input for the `updateView` mutation.""" +input UpdateViewInput { + """ + An arbitrary string value 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 `View` being updated. + """ + viewPatch: ViewPatch! +} + +"""Represents an update to a `View`. Fields that are set will be updated.""" +input ViewPatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String + tableId: UUID + viewType: String + data: JSON + filterType: String + filterData: JSON + securityInvoker: Boolean + isReadOnly: Boolean + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + +"""The output of our update `ApiSetting` mutation.""" +type UpdateApiSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSetting` that was updated by this mutation.""" + apiSetting: ApiSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge +} + +"""All input for the `updateApiSetting` mutation.""" +input UpdateApiSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API settings record""" + id: UUID! + + """ + An object where the defined keys will be set on the `ApiSetting` being updated. + """ + apiSettingPatch: ApiSettingPatch! +} + +""" +Represents an update to a `ApiSetting`. Fields that are set will be updated. +""" +input ApiSettingPatch { + """Unique identifier for this API settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """API these settings override for""" + apiId: UUID + + """ + Override: enable aggregate queries (NULL = inherit from database_settings) + """ + enableAggregates: Boolean + + """ + Override: enable PostGIS spatial types (NULL = inherit from database_settings) + """ + enablePostgis: Boolean + + """ + Override: enable unified search (NULL = inherit from database_settings) + """ + enableSearch: Boolean + + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean + + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean + + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean + + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean + + """ + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) + """ + enableLtree: Boolean + + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean + + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean + + """ + Override: enable bulk mutations (NULL = inherit from database_settings) + """ + enableBulk: Boolean + + """ + Override: enable internationalization plugin (NULL = inherit from database_settings) + """ + enableI18N: Boolean + + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON +} + +"""The output of our update `DatabaseTransfer` mutation.""" +type UpdateDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseTransfer` that was updated by this mutation.""" + databaseTransfer: DatabaseTransfer + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge +} + +"""All input for the `updateDatabaseTransfer` mutation.""" +input UpdateDatabaseTransferInput { + """ + An arbitrary string value 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 `DatabaseTransfer` being updated. + """ + databaseTransferPatch: DatabaseTransferPatch! +} + +""" +Represents an update to a `DatabaseTransfer`. Fields that are set will be updated. +""" +input DatabaseTransferPatch { + id: UUID + databaseId: UUID + targetOwnerId: UUID + sourceApproved: Boolean + targetApproved: Boolean + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String + initiatedBy: UUID + notes: String + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + +"""The output of our update `App` mutation.""" +type UpdateAppPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `App` that was updated by this mutation.""" + app: App + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge +} + +"""All input for the `updateApp` mutation.""" +input UpdateAppInput { + """ + An arbitrary 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 app""" + id: UUID! + + """ + An object where the defined keys will be set on the `App` being updated. + """ + appPatch: AppPatch! +} + +"""Represents an update to a `App`. Fields that are set will be updated.""" +input AppPatch { + """Unique identifier for this app""" + id: UUID + + """Reference to the metaschema database this app belongs to""" + databaseId: UUID + + """Site this app is associated with (one app per site)""" + siteId: UUID + + """Display name of the app""" + name: String + + """App icon or promotional image""" + appImage: ConstructiveInternalTypeImage + + """URL to the Apple App Store listing""" + appStoreLink: ConstructiveInternalTypeUrl + + """Apple App Store application identifier""" + appStoreId: String + + """ + Apple App ID prefix (Team ID) for universal links and associated domains + """ + appIdPrefix: String + + """URL to the Google Play Store listing""" + playStoreLink: ConstructiveInternalTypeUrl + + """Upload for App icon or promotional image""" + appImageUpload: Upload +} + +"""The output of our update `Site` mutation.""" +type UpdateSitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Site` that was updated by this mutation.""" + site: Site + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + +"""All input for the `updateSite` mutation.""" +input UpdateSiteInput { + """ + An arbitrary 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 site""" + id: UUID! + + """ + An object where the defined keys will be set on the `Site` being updated. + """ + sitePatch: SitePatch! +} + +"""Represents an update to a `Site`. Fields that are set will be updated.""" +input SitePatch { + """Unique identifier for this site""" + id: UUID + + """Reference to the metaschema database this site belongs to""" + databaseId: UUID + + """Display title for the site (max 120 characters)""" + title: String + + """Short description of the site (max 120 characters)""" + description: String + + """Open Graph image used for social media link previews""" + ogImage: ConstructiveInternalTypeImage + + """Browser favicon attachment""" + favicon: ConstructiveInternalTypeAttachment + + """Apple touch icon for iOS home screen bookmarks""" + appleTouchIcon: ConstructiveInternalTypeImage + + """Primary logo image for the site""" + logo: ConstructiveInternalTypeImage + + """PostgreSQL database name this site connects to""" + dbname: String + + """Upload for Open Graph image used for social media link previews""" + ogImageUpload: Upload + + """Upload for Browser favicon attachment""" + faviconUpload: Upload + + """Upload for Apple touch icon for iOS home screen bookmarks""" + appleTouchIconUpload: Upload + + """Upload for Primary logo image for the site""" + logoUpload: Upload +} + +"""The output of our update `PrimaryKeyConstraint` mutation.""" +type UpdatePrimaryKeyConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PrimaryKeyConstraint` that was updated by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge +} + +"""All input for the `updatePrimaryKeyConstraint` mutation.""" +input UpdatePrimaryKeyConstraintInput { + """ + An arbitrary string value 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 `PrimaryKeyConstraint` being updated. + """ + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch! +} + +""" +Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. +""" +input PrimaryKeyConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + type: String + fieldIds: [UUID] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Trigger` mutation.""" +type UpdateTriggerPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Trigger` that was updated by this mutation.""" + trigger: Trigger + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge +} + +"""All input for the `updateTrigger` mutation.""" +input UpdateTriggerInput { + """ + An arbitrary string value 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 `Trigger` being updated. + """ + triggerPatch: TriggerPatch! +} + +""" +Represents an update to a `Trigger`. Fields that are set will be updated. +""" +input TriggerPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + event: String + functionName: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `CheckConstraint` mutation.""" +type UpdateCheckConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `CheckConstraint` that was updated by this mutation.""" + checkConstraint: CheckConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge +} + +"""All input for the `updateCheckConstraint` mutation.""" +input UpdateCheckConstraintInput { + """ + An arbitrary string value 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 `CheckConstraint` being updated. + """ + checkConstraintPatch: CheckConstraintPatch! +} + +""" +Represents an update to a `CheckConstraint`. Fields that are set will be updated. +""" +input CheckConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + type: String + fieldIds: [UUID] + expr: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `UniqueConstraint` mutation.""" +type UpdateUniqueConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `UniqueConstraint` that was updated by this mutation.""" + uniqueConstraint: UniqueConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge +} + +"""All input for the `updateUniqueConstraint` mutation.""" +input UpdateUniqueConstraintInput { + """ + An arbitrary string value 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 `UniqueConstraint` being updated. + """ + uniqueConstraintPatch: UniqueConstraintPatch! +} + +""" +Represents an update to a `UniqueConstraint`. Fields that are set will be updated. +""" +input UniqueConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID] + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `SpatialRelation` mutation.""" +type UpdateSpatialRelationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SpatialRelation` that was updated by this mutation.""" + spatialRelation: SpatialRelation + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SpatialRelation`. May be used by Relay 1.""" + spatialRelationEdge( + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] + ): SpatialRelationEdge +} + +"""All input for the `updateSpatialRelation` mutation.""" +input UpdateSpatialRelationInput { + """ + An arbitrary string value 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 `SpatialRelation` being updated. + """ + spatialRelationPatch: SpatialRelationPatch! +} + +""" +Represents an update to a `SpatialRelation`. Fields that are set will be updated. +""" +input SpatialRelationPatch { + id: UUID + databaseId: UUID + tableId: UUID + fieldId: UUID + refTableId: UUID + refFieldId: UUID + name: String + operator: String + paramName: String + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Policy` mutation.""" +type UpdatePolicyPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Policy` that was updated by this mutation.""" + policy: Policy + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge +} + +"""All input for the `updatePolicy` mutation.""" +input UpdatePolicyInput { + """ + An arbitrary string value 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 `Policy` being updated. + """ + policyPatch: PolicyPatch! +} + +""" +Represents an update to a `Policy`. Fields that are set will be updated. +""" +input PolicyPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + granteeName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Schema` mutation.""" +type UpdateSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Schema` that was updated by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the `updateSchema` mutation.""" +input UpdateSchemaInput { + """ + An arbitrary string value 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 `Schema` being updated. + """ + schemaPatch: SchemaPatch! +} + +""" +Represents an update to a `Schema`. Fields that are set will be updated. +""" +input SchemaPatch { + id: UUID + databaseId: UUID + name: String + schemaName: String + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + isPublic: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Index` mutation.""" +type UpdateIndexPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Index` that was updated by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the `updateIndex` mutation.""" +input UpdateIndexInput { + """ + An arbitrary string value 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 `Index` being updated. + """ + indexPatch: IndexPatch! +} + +""" +Represents an update to a `Index`. Fields that are set will be updated. +""" +input IndexPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String + indexParams: JSON + whereClause: JSON + isUnique: Boolean + options: JSON + opClasses: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `EmbeddingChunk` mutation.""" +type UpdateEmbeddingChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmbeddingChunk` that was updated by this mutation.""" + embeddingChunk: EmbeddingChunk + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge +} + +"""All input for the `updateEmbeddingChunk` mutation.""" +input UpdateEmbeddingChunkInput { + """ + An arbitrary string value 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 `EmbeddingChunk` being updated. + """ + embeddingChunkPatch: EmbeddingChunkPatch! +} + +""" +Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. +""" +input EmbeddingChunkPatch { + id: UUID + databaseId: UUID + tableId: UUID + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String + dimensions: Int + metric: String + chunkSize: Int + chunkOverlap: Int + chunkStrategy: String + metadataFields: JSON + searchIndexes: JSON + enqueueChunkingJob: Boolean + chunkingTaskName: String + embeddingModel: String + embeddingProvider: String + parentFkFieldId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `ForeignKeyConstraint` mutation.""" +type UpdateForeignKeyConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ForeignKeyConstraint` that was updated by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge +} + +"""All input for the `updateForeignKeyConstraint` mutation.""" +input UpdateForeignKeyConstraintInput { + """ + An arbitrary string value 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 `ForeignKeyConstraint` being updated. + """ + foreignKeyConstraintPatch: ForeignKeyConstraintPatch! +} + +""" +Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. +""" +input ForeignKeyConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID] + refTableId: UUID + refFieldIds: [UUID] + deleteAction: String + updateAction: String + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `WebauthnSetting` mutation.""" +type UpdateWebauthnSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `WebauthnSetting` that was updated by this mutation.""" + webauthnSetting: WebauthnSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `WebauthnSetting`. May be used by Relay 1.""" + webauthnSettingEdge( + """The method to use when ordering `WebauthnSetting`.""" + orderBy: [WebauthnSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnSettingEdge +} + +"""All input for the `updateWebauthnSetting` mutation.""" +input UpdateWebauthnSettingInput { + """ + An arbitrary 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 WebAuthn settings record""" + id: UUID! + + """ + An object where the defined keys will be set on the `WebauthnSetting` being updated. + """ + webauthnSettingPatch: WebauthnSettingPatch! +} + +""" +Represents an update to a `WebauthnSetting`. Fields that are set will be updated. +""" +input WebauthnSettingPatch { + """Unique identifier for this WebAuthn settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """ + Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) + """ + schemaId: UUID + + """ + Schema of the webauthn_credentials table (FK to metaschema_public.schema) + """ + credentialsSchemaId: UUID + + """Schema of the sessions table (FK to metaschema_public.schema)""" + sessionsSchemaId: UUID + + """Schema of the session_secrets table (FK to metaschema_public.schema)""" + sessionSecretsSchemaId: UUID + + """ + Reference to the webauthn_credentials table (FK to metaschema_public.table) + """ + credentialsTableId: UUID + + """Reference to the sessions table (FK to metaschema_public.table)""" + sessionsTableId: UUID + + """ + Reference to the session_credentials table (FK to metaschema_public.table) + """ + sessionCredentialsTableId: UUID + + """Reference to the session_secrets table (FK to metaschema_public.table)""" + sessionSecretsTableId: UUID + + """ + Reference to the user field on webauthn_credentials (FK to metaschema_public.field) + """ + userFieldId: UUID + + """WebAuthn Relying Party ID (typically the domain name)""" + rpId: String + + """WebAuthn Relying Party display name""" + rpName: String + + """Allowed origins for WebAuthn registration and authentication""" + originAllowlist: [String] + + """Attestation conveyance preference (none, indirect, direct, enterprise)""" + attestationType: String + + """Whether to require user verification (biometric/PIN) during auth""" + requireUserVerification: Boolean + + """Resident key requirement (discouraged, preferred, required)""" + residentKey: String + + """Challenge TTL in seconds (default 300 = 5 minutes)""" + challengeExpirySeconds: BigInt +} + +"""The output of our update `Field` mutation.""" +type UpdateFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Field` that was updated by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the `updateField` mutation.""" +input UpdateFieldInput { + """ + An arbitrary string value 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 `Field` being updated. + """ + fieldPatch: FieldPatch! +} + +""" +Represents an update to a `Field`. Fields that are set will be updated. +""" +input FieldPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + label: String + description: String + smartTags: JSON + isRequired: Boolean + apiRequired: Boolean + defaultValue: JSON + type: JSON + fieldOrder: Int + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String] + category: ObjectCategory + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Table` mutation.""" +type UpdateTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Table` that was updated by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the `updateTable` mutation.""" +input UpdateTableInput { + """ + An arbitrary string value 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 `Table` being updated. + """ + tablePatch: TablePatch! +} + +""" +Represents an update to a `Table`. Fields that are set will be updated. +""" +input TablePatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + useRls: Boolean + timestamps: Boolean + peoplestamps: Boolean + pluralName: String + singularName: String + tags: [String] + partitioned: Boolean + partitionStrategy: String + partitionKeyNames: [String] + partitionKeyTypes: [String] + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our delete `Function` mutation.""" +type DeleteFunctionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Function` that was deleted by this mutation.""" + function: Function + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Function`. May be used by Relay 1.""" + functionEdge( + """The method to use when ordering `Function`.""" + orderBy: [FunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionEdge +} + +"""All input for the `deleteFunction` mutation.""" +input DeleteFunctionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ViewTable` mutation.""" +type DeleteViewTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewTable` that was deleted by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the `deleteViewTable` mutation.""" +input DeleteViewTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ApiSchema` mutation.""" +type DeleteApiSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSchema` that was deleted by this mutation.""" + apiSchema: ApiSchema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge +} + +"""All input for the `deleteApiSchema` mutation.""" +input DeleteApiSchemaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API-schema mapping""" + id: UUID! +} + +"""The output of our delete `SiteTheme` mutation.""" +type DeleteSiteThemePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteTheme` that was deleted by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the `deleteSiteTheme` mutation.""" +input DeleteSiteThemeInput { + """ + An arbitrary 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 theme record""" + id: UUID! +} + +"""The output of our delete `ViewRule` mutation.""" +type DeleteViewRulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewRule` that was deleted by this mutation.""" + viewRule: ViewRule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewRule`. May be used by Relay 1.""" + viewRuleEdge( + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewRuleEdge +} + +"""All input for the `deleteViewRule` mutation.""" +input DeleteViewRuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `DefaultPrivilege` mutation.""" +type DeleteDefaultPrivilegePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DefaultPrivilege` that was deleted by this mutation.""" + defaultPrivilege: DefaultPrivilege + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DefaultPrivilege`. May be used by Relay 1.""" + defaultPrivilegeEdge( + """The method to use when ordering `DefaultPrivilege`.""" + orderBy: [DefaultPrivilegeOrderBy!]! = [PRIMARY_KEY_ASC] + ): DefaultPrivilegeEdge +} + +"""All input for the `deleteDefaultPrivilege` mutation.""" +input DeleteDefaultPrivilegeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ViewGrant` mutation.""" +type DeleteViewGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ViewGrant` that was deleted by this mutation.""" + viewGrant: ViewGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewGrant`. May be used by Relay 1.""" + viewGrantEdge( + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewGrantEdge +} + +"""All input for the `deleteViewGrant` mutation.""" +input DeleteViewGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Api` mutation.""" +type DeleteApiPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Api` that was deleted by this mutation.""" + api: Api + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge +} + +"""All input for the `deleteApi` mutation.""" +input DeleteApiInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API""" + id: UUID! +} + +"""The output of our delete `CorsSetting` mutation.""" +type DeleteCorsSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `CorsSetting` that was deleted by this mutation.""" + corsSetting: CorsSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CorsSetting`. May be used by Relay 1.""" + corsSettingEdge( + """The method to use when ordering `CorsSetting`.""" + orderBy: [CorsSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): CorsSettingEdge +} + +"""All input for the `deleteCorsSetting` mutation.""" +input DeleteCorsSettingInput { + """ + An arbitrary 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 CORS settings record""" + id: UUID! +} + +"""The output of our delete `NodeTypeRegistry` mutation.""" +type DeleteNodeTypeRegistryPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NodeTypeRegistry` that was deleted by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge +} + +"""All input for the `deleteNodeTypeRegistry` mutation.""" +input DeleteNodeTypeRegistryInput { + """ + An arbitrary 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! +} + +"""The output of our delete `ApiModule` mutation.""" +type DeleteApiModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiModule` that was deleted by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the `deleteApiModule` mutation.""" +input DeleteApiModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API module record""" + id: UUID! +} + +"""The output of our delete `SiteModule` mutation.""" +type DeleteSiteModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteModule` that was deleted by this mutation.""" + siteModule: SiteModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge +} + +"""All input for the `deleteSiteModule` mutation.""" +input DeleteSiteModuleInput { + """ + An arbitrary 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 site module record""" + id: UUID! +} + +"""The output of our delete `SiteMetadatum` mutation.""" +type DeleteSiteMetadatumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteMetadatum` that was deleted by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `deleteSiteMetadatum` mutation.""" +input DeleteSiteMetadatumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this metadata record""" + id: UUID! +} + +"""The output of our delete `PubkeySetting` mutation.""" +type DeletePubkeySettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PubkeySetting` that was deleted by this mutation.""" + pubkeySetting: PubkeySetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PubkeySetting`. May be used by Relay 1.""" + pubkeySettingEdge( + """The method to use when ordering `PubkeySetting`.""" + orderBy: [PubkeySettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PubkeySettingEdge +} + +"""All input for the `deletePubkeySetting` mutation.""" +input DeletePubkeySettingInput { + """ + An arbitrary 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 pubkey settings record""" + id: UUID! +} + +"""The output of our delete `SchemaGrant` mutation.""" +type DeleteSchemaGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SchemaGrant` that was deleted by this mutation.""" + schemaGrant: SchemaGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SchemaGrant`. May be used by Relay 1.""" + schemaGrantEdge( + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaGrantEdge +} + +"""All input for the `deleteSchemaGrant` mutation.""" +input DeleteSchemaGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `TriggerFunction` mutation.""" +type DeleteTriggerFunctionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TriggerFunction` that was deleted by this mutation.""" + triggerFunction: TriggerFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TriggerFunction`. May be used by Relay 1.""" + triggerFunctionEdge( + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerFunctionEdge +} + +"""All input for the `deleteTriggerFunction` mutation.""" +input DeleteTriggerFunctionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Database` mutation.""" +type DeleteDatabasePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Database` that was deleted by this mutation.""" + database: Database + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Database`. May be used by Relay 1.""" + databaseEdge( + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseEdge +} + +"""All input for the `deleteDatabase` mutation.""" +input DeleteDatabaseInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `TableGrant` mutation.""" +type DeleteTableGrantPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TableGrant` that was deleted by this mutation.""" + tableGrant: TableGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableGrant`. May be used by Relay 1.""" + tableGrantEdge( + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableGrantEdge +} + +"""All input for the `deleteTableGrant` mutation.""" +input DeleteTableGrantInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Domain` mutation.""" +type DeleteDomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Domain` that was deleted by this mutation.""" + domain: Domain + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Domain`. May be used by Relay 1.""" + domainEdge( + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): DomainEdge +} + +"""All input for the `deleteDomain` mutation.""" +input DeleteDomainInput { + """ + An arbitrary 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 domain record""" + id: UUID! +} + +"""The output of our delete `RlsSetting` mutation.""" +type DeleteRlsSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `RlsSetting` that was deleted by this mutation.""" + rlsSetting: RlsSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RlsSetting`. May be used by Relay 1.""" + rlsSettingEdge( + """The method to use when ordering `RlsSetting`.""" + orderBy: [RlsSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsSettingEdge +} + +"""All input for the `deleteRlsSetting` mutation.""" +input DeleteRlsSettingInput { + """ + An arbitrary 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 RLS settings record""" + id: UUID! +} + +"""The output of our delete `FullTextSearch` mutation.""" +type DeleteFullTextSearchPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FullTextSearch` that was deleted by this mutation.""" + fullTextSearch: FullTextSearch + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FullTextSearch`. May be used by Relay 1.""" + fullTextSearchEdge( + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] + ): FullTextSearchEdge +} + +"""All input for the `deleteFullTextSearch` mutation.""" +input DeleteFullTextSearchInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Partition` mutation.""" +type DeletePartitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Partition` that was deleted by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the `deletePartition` mutation.""" +input DeletePartitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `DatabaseSetting` mutation.""" +type DeleteDatabaseSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseSetting` that was deleted by this mutation.""" + databaseSetting: DatabaseSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge +} + +"""All input for the `deleteDatabaseSetting` mutation.""" +input DeleteDatabaseSettingInput { + """ + An arbitrary 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 settings record""" + id: UUID! +} + +"""The output of our delete `Enum` mutation.""" +type DeleteEnumPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Enum` that was deleted by this mutation.""" + enum: Enum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Enum`. May be used by Relay 1.""" + enumEdge( + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] + ): EnumEdge +} + +"""All input for the `deleteEnum` mutation.""" +input DeleteEnumInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `View` mutation.""" +type DeleteViewPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `View` that was deleted by this mutation.""" + view: View + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `View`. May be used by Relay 1.""" + viewEdge( + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewEdge +} + +"""All input for the `deleteView` mutation.""" +input DeleteViewInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ApiSetting` mutation.""" +type DeleteApiSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSetting` that was deleted by this mutation.""" + apiSetting: ApiSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge +} + +"""All input for the `deleteApiSetting` mutation.""" +input DeleteApiSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API settings record""" + id: UUID! +} + +"""The output of our delete `DatabaseTransfer` mutation.""" +type DeleteDatabaseTransferPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DatabaseTransfer` that was deleted by this mutation.""" + databaseTransfer: DatabaseTransfer + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge +} + +"""All input for the `deleteDatabaseTransfer` mutation.""" +input DeleteDatabaseTransferInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `App` mutation.""" +type DeleteAppPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `App` that was deleted by this mutation.""" + app: App + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge +} + +"""All input for the `deleteApp` mutation.""" +input DeleteAppInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this app""" + id: UUID! +} + +"""The output of our delete `Site` mutation.""" +type DeleteSitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Site` that was deleted by this mutation.""" + site: Site + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + +"""All input for the `deleteSite` mutation.""" +input DeleteSiteInput { + """ + An arbitrary 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 site""" + id: UUID! +} + +"""The output of our delete `PrimaryKeyConstraint` mutation.""" +type DeletePrimaryKeyConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PrimaryKeyConstraint` that was deleted by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge +} + +"""All input for the `deletePrimaryKeyConstraint` mutation.""" +input DeletePrimaryKeyConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Trigger` mutation.""" +type DeleteTriggerPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Trigger` that was deleted by this mutation.""" + trigger: Trigger + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge +} + +"""All input for the `deleteTrigger` mutation.""" +input DeleteTriggerInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `CheckConstraint` mutation.""" +type DeleteCheckConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `CheckConstraint` that was deleted by this mutation.""" + checkConstraint: CheckConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge +} + +"""All input for the `deleteCheckConstraint` mutation.""" +input DeleteCheckConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `UniqueConstraint` mutation.""" +type DeleteUniqueConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `UniqueConstraint` that was deleted by this mutation.""" + uniqueConstraint: UniqueConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge +} + +"""All input for the `deleteUniqueConstraint` mutation.""" +input DeleteUniqueConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `SpatialRelation` mutation.""" +type DeleteSpatialRelationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SpatialRelation` that was deleted by this mutation.""" + spatialRelation: SpatialRelation + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SpatialRelation`. May be used by Relay 1.""" + spatialRelationEdge( + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] + ): SpatialRelationEdge +} + +"""All input for the `deleteSpatialRelation` mutation.""" +input DeleteSpatialRelationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Policy` mutation.""" +type DeletePolicyPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Policy` that was deleted by this mutation.""" + policy: Policy + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge +} + +"""All input for the `deletePolicy` mutation.""" +input DeletePolicyInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Schema` mutation.""" +type DeleteSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Schema` that was deleted by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the `deleteSchema` mutation.""" +input DeleteSchemaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Index` mutation.""" +type DeleteIndexPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Index` that was deleted by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the `deleteIndex` mutation.""" +input DeleteIndexInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `EmbeddingChunk` mutation.""" +type DeleteEmbeddingChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EmbeddingChunk` that was deleted by this mutation.""" + embeddingChunk: EmbeddingChunk + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge +} + +"""All input for the `deleteEmbeddingChunk` mutation.""" +input DeleteEmbeddingChunkInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ForeignKeyConstraint` mutation.""" +type DeleteForeignKeyConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ForeignKeyConstraint` that was deleted by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge +} + +"""All input for the `deleteForeignKeyConstraint` mutation.""" +input DeleteForeignKeyConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `WebauthnSetting` mutation.""" +type DeleteWebauthnSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `WebauthnSetting` that was deleted by this mutation.""" + webauthnSetting: WebauthnSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `WebauthnSetting`. May be used by Relay 1.""" + webauthnSettingEdge( + """The method to use when ordering `WebauthnSetting`.""" + orderBy: [WebauthnSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnSettingEdge +} + +"""All input for the `deleteWebauthnSetting` mutation.""" +input DeleteWebauthnSettingInput { + """ + An arbitrary 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 WebAuthn settings record""" + id: UUID! +} + +"""The output of our delete `Field` mutation.""" +type DeleteFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Field` that was deleted by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the `deleteField` mutation.""" +input DeleteFieldInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Table` mutation.""" +type DeleteTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Table` that was deleted by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the `deleteTable` mutation.""" +input DeleteTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +input ProvisionBucketInput { + """The logical bucket key (e.g., "public", "private")""" + bucketKey: String! + + """ + 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/app.graphql b/sdk/constructive-sdk/schemas/app.graphql deleted file mode 100644 index 9f12aa71b7..0000000000 --- a/sdk/constructive-sdk/schemas/app.graphql +++ /dev/null @@ -1,211 +0,0 @@ -"""The root query type which gives access points into the data universe.""" -type Query { - """ - Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. - """ - _meta: MetaSchema -} - -"""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! -} - -"""Information about a table field/column""" -type MetaField { - name: String! - type: MetaType! - isNotNull: Boolean! - hasDefault: Boolean! - isPrimaryKey: Boolean! - isForeignKey: Boolean! - description: String -} - -"""Information about a PostgreSQL type""" -type MetaType { - pgType: String! - gqlType: String! - isArray: Boolean! - isNotNull: Boolean - hasDefault: Boolean - subtype: 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 -} - -""" -The root mutation type which contains root level fields which mutate data. -""" -type Mutation { - """ - Provision an S3 bucket for a logical bucket in the database. - Reads the bucket config via RLS, then creates and configures - the S3 bucket with the appropriate privacy policies, CORS rules, - and lifecycle settings. - """ - provisionBucket( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionBucketInput! - ): ProvisionBucketPayload -} - -input ProvisionBucketInput { - """The logical bucket key (e.g., "public", "private")""" - bucketKey: String! - - """ - Owner entity ID for entity-scoped bucket provisioning. - Omit for app-level (database-wide) storage. - """ - ownerId: UUID -} - -""" -A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). -""" -scalar 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 new file mode 100644 index 0000000000..e1b5620dfa --- /dev/null +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -0,0 +1,23109 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + """ + resolveBlueprintField(databaseId: UUID, tableId: UUID, fieldName: String): UUID + + """ + Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + """ + resolveBlueprintTable(databaseId: UUID, tableName: String, schemaName: String, tableMap: JSON, defaultSchemaId: UUID): UUID + + """Reads and enables pagination through a set of `DefaultIdsModule`.""" + defaultIdsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DefaultIdsModuleFilter + + """The method to use when ordering `DefaultIdsModule`.""" + orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DefaultIdsModuleConnection + + """Reads and enables pagination through a set of `MembershipTypesModule`.""" + membershipTypesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: MembershipTypesModuleFilter + + """The method to use when ordering `MembershipTypesModule`.""" + 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.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SessionSecretsModuleFilter + + """The method to use when ordering `SessionSecretsModule`.""" + 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.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DevicesModuleFilter + + """The method to use when ordering `DevicesModule`.""" + orderBy: [DevicesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DevicesModuleConnection + + """Reads and enables pagination through a set of `I18NModule`.""" + i18nModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: I18NModuleFilter + + """The method to use when ordering `I18NModule`.""" + orderBy: [I18NModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): I18NModuleConnection + + """Reads and enables pagination through a set of `UserCredentialsModule`.""" + userCredentialsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: UserCredentialsModuleFilter + + """The method to use when ordering `UserCredentialsModule`.""" + orderBy: [UserCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserCredentialsModuleConnection + + """Reads and enables pagination through a set of `UserSettingsModule`.""" + userSettingsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: UserSettingsModuleFilter + + """The method to use when ordering `UserSettingsModule`.""" + orderBy: [UserSettingsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserSettingsModuleConnection + + """ + Reads and enables pagination through a set of `ConfigSecretsUserModule`. + """ + configSecretsUserModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ConfigSecretsUserModuleFilter + + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleConnection + + """ + Reads and enables pagination through a set of `IdentityProvidersModule`. + """ + identityProvidersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: IdentityProvidersModuleFilter + + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleConnection + + """ + Reads and enables pagination through a set of `ConnectedAccountsModule`. + """ + connectedAccountsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ConnectedAccountsModuleFilter + + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleConnection + + """Reads and enables pagination through a set of `EmailsModule`.""" + emailsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: EmailsModuleFilter + + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailsModuleConnection + + """Reads and enables pagination through a set of `PhoneNumbersModule`.""" + phoneNumbersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PhoneNumbersModuleFilter + + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleConnection + + """Reads and enables pagination through a set of `RateLimitsModule`.""" + rateLimitsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: RateLimitsModuleFilter + + """The method to use when ordering `RateLimitsModule`.""" + orderBy: [RateLimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RateLimitsModuleConnection + + """Reads and enables pagination through a set of `UsersModule`.""" + usersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: UsersModuleFilter + + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UsersModuleConnection + + """ + Reads and enables pagination through a set of `WebauthnCredentialsModule`. + """ + webauthnCredentialsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: WebauthnCredentialsModuleFilter + + """The method to use when ordering `WebauthnCredentialsModule`.""" + orderBy: [WebauthnCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnCredentialsModuleConnection + + """Reads and enables pagination through a set of `CryptoAddressesModule`.""" + cryptoAddressesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CryptoAddressesModuleFilter + + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleConnection + + """ + Reads and enables pagination through a set of `DenormalizedTableField`. + """ + denormalizedTableFields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: DenormalizedTableFieldFilter + + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldConnection + + """Reads and enables pagination through a set of `RlsModule`.""" + rlsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: RlsModuleFilter + + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RlsModuleConnection + + """Reads and enables pagination through a set of `Blueprint`.""" + blueprints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BlueprintFilter + + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConnection + + """Reads and enables pagination through a set of `CryptoAuthModule`.""" + cryptoAuthModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: CryptoAuthModuleFilter + + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleConnection + + """Reads and enables pagination through a set of `RateLimitMetersModule`.""" + rateLimitMetersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: RateLimitMetersModuleFilter + + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleConnection + + """Reads and enables pagination through a set of `BlueprintConstruction`.""" + blueprintConstructions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BlueprintConstructionFilter + + """The method to use when ordering `BlueprintConstruction`.""" + orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConstructionConnection + + """Reads and enables pagination through a set of `SessionsModule`.""" + sessionsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SessionsModuleFilter + + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SessionsModuleConnection + + """Reads and enables pagination through a set of `MerkleStoreModule`.""" + merkleStoreModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: MerkleStoreModuleFilter + + """The method to use when ordering `MerkleStoreModule`.""" + orderBy: [MerkleStoreModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MerkleStoreModuleConnection + + """Reads and enables pagination through a set of `SecureTableProvision`.""" + secureTableProvisions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: SecureTableProvisionFilter + + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): SecureTableProvisionConnection + + """Reads and enables pagination through a set of `ConfigSecretsModule`.""" + configSecretsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ConfigSecretsModuleFilter + + """The method to use when ordering `ConfigSecretsModule`.""" + orderBy: [ConfigSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsModuleConnection + + """Reads and enables pagination through a set of `InvitesModule`.""" + invitesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: InvitesModuleFilter + + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InvitesModuleConnection + + """ + Reads and enables pagination through a set of `DatabaseProvisionModule`. + """ + databaseProvisionModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DatabaseProvisionModuleFilter + + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleConnection + + """Reads and enables pagination through a set of `RealtimeModule`.""" + realtimeModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: RealtimeModuleFilter + + """The method to use when ordering `RealtimeModule`.""" + orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RealtimeModuleConnection + + """Reads and enables pagination through a set of `WebauthnAuthModule`.""" + webauthnAuthModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: WebauthnAuthModuleFilter + + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleConnection + + """Reads and enables pagination through a set of `NamespaceModule`.""" + namespaceModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: NamespaceModuleFilter + + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NamespaceModuleConnection + + """Reads and enables pagination through a set of `ComputeLogModule`.""" + computeLogModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ComputeLogModuleFilter + + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ComputeLogModuleConnection + + """Reads and enables pagination through a set of `InferenceLogModule`.""" + inferenceLogModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: InferenceLogModuleFilter + + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InferenceLogModuleConnection + + """Reads and enables pagination through a set of `StorageLogModule`.""" + storageLogModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: StorageLogModuleFilter + + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageLogModuleConnection + + """Reads and enables pagination through a set of `TransferLogModule`.""" + transferLogModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: TransferLogModuleFilter + + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TransferLogModuleConnection + + """Reads and enables pagination through a set of `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 `GraphModule`.""" + graphModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: GraphModuleFilter + + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): GraphModuleConnection + + """Reads and enables pagination through a set of `NotificationsModule`.""" + notificationsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: NotificationsModuleFilter + + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NotificationsModuleConnection + + """Reads and enables pagination through a set of `PlansModule`.""" + plansModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: PlansModuleFilter + + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PlansModuleConnection + + """Reads and enables pagination through a set of `HierarchyModule`.""" + hierarchyModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: HierarchyModuleFilter + + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): HierarchyModuleConnection + + """Reads and enables pagination through a set of `BillingModule`.""" + billingModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BillingModuleFilter + + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingModuleConnection + + """Reads and enables pagination through a set of `BillingProviderModule`.""" + billingProviderModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BillingProviderModuleFilter + + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingProviderModuleConnection + + """Reads and enables pagination through a set of `ProfilesModule`.""" + profilesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: ProfilesModuleFilter + + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ProfilesModuleConnection + + """Reads and enables pagination through a set of `PermissionsModule`.""" + permissionsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: PermissionsModuleFilter + + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PermissionsModuleConnection + + """Reads and enables pagination through a set of `RelationProvision`.""" + relationProvisions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: RelationProvisionFilter + + """The method to use when ordering `RelationProvision`.""" + orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): RelationProvisionConnection + + """Reads and enables pagination through a set of `BlueprintTemplate`.""" + blueprintTemplates( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BlueprintTemplateFilter + + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintTemplateConnection + + """Reads and enables pagination through a set of `FunctionModule`.""" + functionModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: FunctionModuleFilter + + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionModuleConnection + + """Reads and enables pagination through a set of `UserAuthModule`.""" + userAuthModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: UserAuthModuleFilter + + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserAuthModuleConnection + + """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 `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 `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 `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 + + """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 + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A connection to a list of `DefaultIdsModule` values.""" +type DefaultIdsModuleConnection { + """A list of `DefaultIdsModule` objects.""" + nodes: [DefaultIdsModule]! + + """ + A list of edges which contains the `DefaultIdsModule` and cursor to aid in pagination. + """ + edges: [DefaultIdsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DefaultIdsModule` you could get from the connection. + """ + totalCount: Int! +} + +type DefaultIdsModule { + id: UUID! + databaseId: UUID! +} + +"""A `DefaultIdsModule` edge in the connection.""" +type DefaultIdsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DefaultIdsModule` at the end of the edge.""" + node: DefaultIdsModule +} + +"""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 filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ +""" +input DefaultIdsModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [DefaultIdsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [DefaultIdsModuleFilter!] + + """Negates the expression.""" + not: DefaultIdsModuleFilter +} + +""" +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 +} + +"""Methods to use when ordering `DefaultIdsModule`.""" +enum DefaultIdsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `MembershipTypesModule` values.""" +type MembershipTypesModuleConnection { + """A list of `MembershipTypesModule` objects.""" + nodes: [MembershipTypesModule]! + + """ + A list of edges which contains the `MembershipTypesModule` and cursor to aid in pagination. + """ + edges: [MembershipTypesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `MembershipTypesModule` you could get from the connection. + """ + totalCount: Int! +} + +type MembershipTypesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! +} + +"""A `MembershipTypesModule` edge in the connection.""" +type MembershipTypesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MembershipTypesModule` at the end of the edge.""" + node: MembershipTypesModule +} + +""" +A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ +""" +input MembershipTypesModuleFilter { + """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: [MembershipTypesModuleFilter!] + + """Checks for any expressions in this list.""" + or: [MembershipTypesModuleFilter!] + + """Negates the expression.""" + not: MembershipTypesModuleFilter +} + +""" +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 `MembershipTypesModule`.""" +enum MembershipTypesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC +} + +"""A connection to a list of `UserStateModule` values.""" +type UserStateModuleConnection { + """A list of `UserStateModule` objects.""" + nodes: [UserStateModule]! + + """ + A list of edges which contains the `UserStateModule` and cursor to aid in pagination. + """ + edges: [UserStateModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `UserStateModule` you could get from the connection. + """ + totalCount: Int! +} + +type UserStateModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! +} + +"""A `UserStateModule` edge in the connection.""" +type UserStateModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserStateModule` at the end of the edge.""" + node: UserStateModule +} + +""" +A filter to be used against `UserStateModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `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 +} + +"""Methods to use when ordering `UserStateModule`.""" +enum 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 +} + +"""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 +} + +"""A connection to a list of `DevicesModule` values.""" +type DevicesModuleConnection { + """A list of `DevicesModule` objects.""" + nodes: [DevicesModule]! + + """ + A list of edges which contains the `DevicesModule` and cursor to aid in pagination. + """ + edges: [DevicesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `DevicesModule` you could get from the connection.""" + totalCount: Int! +} + +type DevicesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + userDevicesTableId: UUID! + deviceSettingsTableId: UUID! + userDevicesTable: String! + deviceSettingsTable: String! +} + +"""A `DevicesModule` edge in the connection.""" +type DevicesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DevicesModule` at the end of the edge.""" + node: DevicesModule +} + +""" +A filter to be used against `DevicesModule` object types. All fields are combined with a logical ‘and.’ +""" +input DevicesModuleFilter { + """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 `userDevicesTableId` field.""" + userDevicesTableId: UUIDFilter + + """Filter by the object’s `deviceSettingsTableId` field.""" + deviceSettingsTableId: UUIDFilter + + """Filter by the object’s `userDevicesTable` field.""" + userDevicesTable: StringFilter + + """Filter by the object’s `deviceSettingsTable` field.""" + deviceSettingsTable: StringFilter + + """Checks for all expressions in this list.""" + and: [DevicesModuleFilter!] + + """Checks for any expressions in this list.""" + or: [DevicesModuleFilter!] + + """Negates the expression.""" + not: DevicesModuleFilter +} + +"""Methods to use when ordering `DevicesModule`.""" +enum DevicesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + USER_DEVICES_TABLE_ID_ASC + USER_DEVICES_TABLE_ID_DESC + DEVICE_SETTINGS_TABLE_ID_ASC + DEVICE_SETTINGS_TABLE_ID_DESC + USER_DEVICES_TABLE_ASC + USER_DEVICES_TABLE_DESC + DEVICE_SETTINGS_TABLE_ASC + DEVICE_SETTINGS_TABLE_DESC +} + +"""A connection to a list of `I18NModule` values.""" +type I18NModuleConnection { + """A list of `I18NModule` objects.""" + nodes: [I18NModule]! + + """ + A list of edges which contains the `I18NModule` and cursor to aid in pagination. + """ + edges: [I18NModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `I18NModule` you could get from the connection.""" + totalCount: Int! +} + +type I18NModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + settingsTableId: UUID! + apiName: String + privateApiName: String +} + +"""A `I18NModule` edge in the connection.""" +type I18NModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `I18NModule` at the end of the edge.""" + node: I18NModule +} + +""" +A filter to be used against `I18NModule` object types. All fields are combined with a logical ‘and.’ +""" +input I18NModuleFilter { + """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 `settingsTableId` field.""" + settingsTableId: 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: [I18NModuleFilter!] + + """Checks for any expressions in this list.""" + or: [I18NModuleFilter!] + + """Negates the expression.""" + not: I18NModuleFilter +} + +"""Methods to use when ordering `I18NModule`.""" +enum I18NModuleOrderBy { + 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 + SETTINGS_TABLE_ID_ASC + SETTINGS_TABLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `UserCredentialsModule` values.""" +type UserCredentialsModuleConnection { + """A list of `UserCredentialsModule` objects.""" + nodes: [UserCredentialsModule]! + + """ + A list of edges which contains the `UserCredentialsModule` and cursor to aid in pagination. + """ + edges: [UserCredentialsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `UserCredentialsModule` 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 { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + apiName: String + privateApiName: String +} + +"""A `UserCredentialsModule` edge in the connection.""" +type UserCredentialsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserCredentialsModule` at the end of the edge.""" + node: UserCredentialsModule +} + +""" +A filter to be used against `UserCredentialsModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `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: [UserCredentialsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [UserCredentialsModuleFilter!] + + """Negates the expression.""" + not: UserCredentialsModuleFilter +} + +"""Methods to use when ordering `UserCredentialsModule`.""" +enum UserCredentialsModuleOrderBy { + 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 +} + +"""A connection to a list of `UserSettingsModule` values.""" +type UserSettingsModuleConnection { + """A list of `UserSettingsModule` objects.""" + nodes: [UserSettingsModule]! + + """ + A list of edges which contains the `UserSettingsModule` and cursor to aid in pagination. + """ + edges: [UserSettingsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `UserSettingsModule` you could get from the connection. + """ + totalCount: Int! +} + +type UserSettingsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + apiName: String +} + +"""A `UserSettingsModule` edge in the connection.""" +type UserSettingsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserSettingsModule` at the end of the edge.""" + node: UserSettingsModule +} + +""" +A filter to be used against `UserSettingsModule` object types. All fields are combined with a logical ‘and.’ +""" +input UserSettingsModuleFilter { + """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 `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!] + + """Checks for any expressions in this list.""" + or: [UserSettingsModuleFilter!] + + """Negates the expression.""" + not: UserSettingsModuleFilter +} + +"""Methods to use when ordering `UserSettingsModule`.""" +enum UserSettingsModuleOrderBy { + 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 + 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 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! + schemaId: UUID! + tableId: UUID! + tableName: String! + configDefinitionsTableId: UUID! + 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 `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!] + + """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 + 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 +} + +"""A connection to a list of `IdentityProvidersModule` values.""" +type IdentityProvidersModuleConnection { + """A list of `IdentityProvidersModule` objects.""" + nodes: [IdentityProvidersModule]! + + """ + A list of edges which contains the `IdentityProvidersModule` and cursor to aid in pagination. + """ + edges: [IdentityProvidersModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `IdentityProvidersModule` you could get from the connection. + """ + totalCount: Int! +} + +""" +Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. +""" +type IdentityProvidersModule { + 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! + tableId: UUID! + tableName: String! + apiName: String + privateApiName: String +} + +"""A `IdentityProvidersModule` edge in the connection.""" +type IdentityProvidersModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `IdentityProvidersModule` at the end of the edge.""" + node: IdentityProvidersModule +} + +""" +A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 `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: [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 + 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 `ConnectedAccountsModule` values.""" +type ConnectedAccountsModuleConnection { + """A list of `ConnectedAccountsModule` objects.""" + nodes: [ConnectedAccountsModule]! + + """ + A list of edges which contains the `ConnectedAccountsModule` and cursor to aid in pagination. + """ + edges: [ConnectedAccountsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConnectedAccountsModule` you could get from the connection. + """ + totalCount: Int! +} + +type ConnectedAccountsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + apiName: String + privateApiName: String +} + +"""A `ConnectedAccountsModule` edge in the connection.""" +type ConnectedAccountsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConnectedAccountsModule` at the end of the edge.""" + node: ConnectedAccountsModule +} + +""" +A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ +""" +input ConnectedAccountsModuleFilter { + """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 `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [ConnectedAccountsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ConnectedAccountsModuleFilter!] + + """Negates the expression.""" + not: ConnectedAccountsModuleFilter +} + +"""Methods to use when ordering `ConnectedAccountsModule`.""" +enum ConnectedAccountsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_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 `EmailsModule` values.""" +type EmailsModuleConnection { + """A list of `EmailsModule` objects.""" + nodes: [EmailsModule]! + + """ + A list of edges which contains the `EmailsModule` and cursor to aid in pagination. + """ + edges: [EmailsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `EmailsModule` you could get from the connection.""" + totalCount: Int! +} + +type EmailsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + apiName: String + privateApiName: String +} + +"""A `EmailsModule` edge in the connection.""" +type EmailsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EmailsModule` at the end of the edge.""" + node: EmailsModule +} + +""" +A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ +""" +input EmailsModuleFilter { + """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 `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [EmailsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [EmailsModuleFilter!] + + """Negates the expression.""" + not: EmailsModuleFilter +} + +"""Methods to use when ordering `EmailsModule`.""" +enum EmailsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_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 `PhoneNumbersModule` values.""" +type PhoneNumbersModuleConnection { + """A list of `PhoneNumbersModule` objects.""" + nodes: [PhoneNumbersModule]! + + """ + A list of edges which contains the `PhoneNumbersModule` and cursor to aid in pagination. + """ + edges: [PhoneNumbersModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PhoneNumbersModule` you could get from the connection. + """ + totalCount: Int! +} + +type PhoneNumbersModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + apiName: String + privateApiName: String +} + +"""A `PhoneNumbersModule` edge in the connection.""" +type PhoneNumbersModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PhoneNumbersModule` at the end of the edge.""" + node: PhoneNumbersModule +} + +""" +A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ +""" +input PhoneNumbersModuleFilter { + """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 `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [PhoneNumbersModuleFilter!] + + """Checks for any expressions in this list.""" + or: [PhoneNumbersModuleFilter!] + + """Negates the expression.""" + not: PhoneNumbersModuleFilter +} + +"""Methods to use when ordering `PhoneNumbersModule`.""" +enum PhoneNumbersModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_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 `RateLimitsModule` values.""" +type RateLimitsModuleConnection { + """A list of `RateLimitsModule` objects.""" + nodes: [RateLimitsModule]! + + """ + A list of edges which contains the `RateLimitsModule` and cursor to aid in pagination. + """ + edges: [RateLimitsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RateLimitsModule` you could get from the connection. + """ + totalCount: Int! +} + +type RateLimitsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + rateLimitSettingsTableId: UUID! + ipRateLimitsTableId: UUID! + rateLimitsTableId: UUID! + rateLimitSettingsTable: String! + ipRateLimitsTable: String! + rateLimitsTable: String! +} + +"""A `RateLimitsModule` edge in the connection.""" +type RateLimitsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RateLimitsModule` at the end of the edge.""" + node: RateLimitsModule +} + +""" +A filter to be used against `RateLimitsModule` object types. All fields are combined with a logical ‘and.’ +""" +input RateLimitsModuleFilter { + """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 `rateLimitSettingsTableId` field.""" + rateLimitSettingsTableId: UUIDFilter + + """Filter by the object’s `ipRateLimitsTableId` field.""" + ipRateLimitsTableId: UUIDFilter + + """Filter by the object’s `rateLimitsTableId` field.""" + rateLimitsTableId: UUIDFilter + + """Filter by the object’s `rateLimitSettingsTable` field.""" + rateLimitSettingsTable: StringFilter + + """Filter by the object’s `ipRateLimitsTable` field.""" + ipRateLimitsTable: StringFilter + + """Filter by the object’s `rateLimitsTable` field.""" + rateLimitsTable: StringFilter + + """Checks for all expressions in this list.""" + and: [RateLimitsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [RateLimitsModuleFilter!] + + """Negates the expression.""" + not: RateLimitsModuleFilter +} + +"""Methods to use when ordering `RateLimitsModule`.""" +enum RateLimitsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + RATE_LIMIT_SETTINGS_TABLE_ID_ASC + RATE_LIMIT_SETTINGS_TABLE_ID_DESC + IP_RATE_LIMITS_TABLE_ID_ASC + IP_RATE_LIMITS_TABLE_ID_DESC + RATE_LIMITS_TABLE_ID_ASC + RATE_LIMITS_TABLE_ID_DESC + RATE_LIMIT_SETTINGS_TABLE_ASC + RATE_LIMIT_SETTINGS_TABLE_DESC + IP_RATE_LIMITS_TABLE_ASC + IP_RATE_LIMITS_TABLE_DESC + RATE_LIMITS_TABLE_ASC + RATE_LIMITS_TABLE_DESC +} + +"""A connection to a list of `UsersModule` values.""" +type UsersModuleConnection { + """A list of `UsersModule` objects.""" + nodes: [UsersModule]! + + """ + A list of edges which contains the `UsersModule` and cursor to aid in pagination. + """ + edges: [UsersModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `UsersModule` you could get from the connection.""" + totalCount: Int! +} + +type UsersModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + typeTableId: UUID! + typeTableName: String! + apiName: String + privateApiName: String +} + +"""A `UsersModule` edge in the connection.""" +type UsersModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UsersModule` at the end of the edge.""" + node: UsersModule +} + +""" +A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ +""" +input UsersModuleFilter { + """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 `typeTableId` field.""" + typeTableId: UUIDFilter + + """Filter by the object’s `typeTableName` field.""" + typeTableName: 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: [UsersModuleFilter!] + + """Checks for any expressions in this list.""" + or: [UsersModuleFilter!] + + """Negates the expression.""" + not: UsersModuleFilter +} + +"""Methods to use when ordering `UsersModule`.""" +enum UsersModuleOrderBy { + 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 + TYPE_TABLE_ID_ASC + TYPE_TABLE_ID_DESC + TYPE_TABLE_NAME_ASC + TYPE_TABLE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `WebauthnCredentialsModule` values.""" +type WebauthnCredentialsModuleConnection { + """A list of `WebauthnCredentialsModule` objects.""" + nodes: [WebauthnCredentialsModule]! + + """ + A list of edges which contains the `WebauthnCredentialsModule` and cursor to aid in pagination. + """ + edges: [WebauthnCredentialsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `WebauthnCredentialsModule` you could get from the connection. + """ + totalCount: Int! +} + +""" +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. +""" +type WebauthnCredentialsModule { + 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 +} + +"""A `WebauthnCredentialsModule` edge in the connection.""" +type WebauthnCredentialsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `WebauthnCredentialsModule` at the end of the edge.""" + node: WebauthnCredentialsModule +} + +""" +A filter to be used against `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ +""" +input WebauthnCredentialsModuleFilter { + """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 `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [WebauthnCredentialsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [WebauthnCredentialsModuleFilter!] + + """Negates the expression.""" + not: WebauthnCredentialsModuleFilter +} + +"""Methods to use when ordering `WebauthnCredentialsModule`.""" +enum WebauthnCredentialsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_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 `CryptoAddressesModule` values.""" +type CryptoAddressesModuleConnection { + """A list of `CryptoAddressesModule` objects.""" + nodes: [CryptoAddressesModule]! + + """ + A list of edges which contains the `CryptoAddressesModule` and cursor to aid in pagination. + """ + edges: [CryptoAddressesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `CryptoAddressesModule` you could get from the connection. + """ + totalCount: Int! +} + +type CryptoAddressesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + cryptoNetwork: String! + apiName: String + privateApiName: String +} + +"""A `CryptoAddressesModule` edge in the connection.""" +type CryptoAddressesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAddressesModule` at the end of the edge.""" + node: CryptoAddressesModule +} + +""" +A filter to be used against `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [CryptoAddressesModuleFilter!] + + """Checks for any expressions in this list.""" + or: [CryptoAddressesModuleFilter!] + + """Negates the expression.""" + not: CryptoAddressesModuleFilter +} + +"""Methods to use when ordering `CryptoAddressesModule`.""" +enum CryptoAddressesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + OWNER_TABLE_ID_ASC + OWNER_TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + CRYPTO_NETWORK_ASC + CRYPTO_NETWORK_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `DenormalizedTableField` values.""" +type DenormalizedTableFieldConnection { + """A list of `DenormalizedTableField` objects.""" + nodes: [DenormalizedTableField]! + + """ + A list of edges which contains the `DenormalizedTableField` and cursor to aid in pagination. + """ + edges: [DenormalizedTableFieldEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DenormalizedTableField` you could get from the connection. + """ + totalCount: Int! +} + +type DenormalizedTableField { + id: UUID! + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + setIds: [UUID] + refTableId: UUID! + refFieldId: UUID! + refIds: [UUID] + useUpdates: Boolean! + updateDefaults: Boolean! + funcName: String + funcOrder: Int! +} + +"""A `DenormalizedTableField` edge in the connection.""" +type DenormalizedTableFieldEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DenormalizedTableField` at the end of the edge.""" + node: DenormalizedTableField +} + +""" +A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ +""" +input DenormalizedTableFieldFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter + + """Filter by the object’s `setIds` field.""" + setIds: UUIDListFilter + + """Filter by the object’s `refTableId` field.""" + refTableId: UUIDFilter + + """Filter by the object’s `refFieldId` field.""" + refFieldId: UUIDFilter + + """Filter by the object’s `refIds` field.""" + refIds: UUIDListFilter + + """Filter by the object’s `useUpdates` field.""" + useUpdates: BooleanFilter + + """Filter by the object’s `updateDefaults` field.""" + updateDefaults: BooleanFilter + + """Filter by the object’s `funcName` field.""" + funcName: StringFilter + + """Filter by the object’s `funcOrder` field.""" + funcOrder: IntFilter + + """Checks for all expressions in this list.""" + and: [DenormalizedTableFieldFilter!] + + """Checks for any expressions in this list.""" + or: [DenormalizedTableFieldFilter!] + + """Negates the expression.""" + not: DenormalizedTableFieldFilter +} + +""" +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 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 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 +} + +"""Methods to use when ordering `DenormalizedTableField`.""" +enum DenormalizedTableFieldOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + FIELD_ID_ASC + FIELD_ID_DESC + SET_IDS_ASC + SET_IDS_DESC + REF_TABLE_ID_ASC + REF_TABLE_ID_DESC + REF_FIELD_ID_ASC + REF_FIELD_ID_DESC + REF_IDS_ASC + REF_IDS_DESC + USE_UPDATES_ASC + USE_UPDATES_DESC + UPDATE_DEFAULTS_ASC + UPDATE_DEFAULTS_DESC + FUNC_NAME_ASC + FUNC_NAME_DESC + FUNC_ORDER_ASC + FUNC_ORDER_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!] + + """Negates the expression.""" + not: RlsModuleFilter +} + +"""Methods to use when ordering `RlsModule`.""" +enum RlsModuleOrderBy { + 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 + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + AUTHENTICATE_ASC + AUTHENTICATE_DESC + AUTHENTICATE_STRICT_ASC + AUTHENTICATE_STRICT_DESC + CURRENT_ROLE_ASC + CURRENT_ROLE_DESC + CURRENT_ROLE_ID_ASC + CURRENT_ROLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `Blueprint` values.""" +type BlueprintConnection { + """A list of `Blueprint` objects.""" + nodes: [Blueprint]! + + """ + A list of edges which contains the `Blueprint` and cursor to aid in pagination. + """ + edges: [BlueprintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Blueprint` you could get from the connection.""" + totalCount: Int! +} + +""" +An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. +""" +type Blueprint { + """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! + + """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! + + """ + Reads a single `BlueprintTemplate` that is related to this `Blueprint`. + """ + template: BlueprintTemplate + + """Reads and enables pagination through a set of `BlueprintConstruction`.""" + blueprintConstructions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BlueprintConstructionFilter + + """The method to use when ordering `BlueprintConstruction`.""" + orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConstructionConnection! +} + +""" +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 shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). +""" +type BlueprintTemplate { + """Unique identifier for this template.""" + id: UUID! + + """ + Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. + """ + name: String! + + """Semantic version string. Defaults to 1.0.0.""" + version: String! + + """Human-readable display name for the template (e.g. E-Commerce Basic).""" + displayName: String! + + """Optional description of what the template provisions.""" + description: String + + """The user who created or published this template.""" + ownerId: UUID! + + """ + Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. + """ + visibility: String! + + """ + Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. + """ + categories: [String]! + + """ + Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. + """ + tags: [String]! + + """ + The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. + """ + definition: JSON! + + """ + Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. + """ + definitionSchemaVersion: String! + + """ + Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. + """ + source: String! + + """ + Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. + """ + complexity: String + + """ + Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. + """ + copyCount: Int! + + """ + Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. + """ + forkCount: Int! + + """ + If this template was forked from another template, the ID of the parent. NULL for original templates. + """ + 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. + """ + 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! + + """ + Reads a single `BlueprintTemplate` that is related to this `BlueprintTemplate`. + """ + forkedFrom: BlueprintTemplate + + """Reads and enables pagination through a set of `BlueprintTemplate`.""" + blueprintTemplatesByForkedFromId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BlueprintTemplateFilter + + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintTemplateConnection! + + """Reads and enables pagination through a set of `Blueprint`.""" + blueprintsByTemplateId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: BlueprintFilter + + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConnection! +} + +"""A connection to a list of `BlueprintTemplate` values.""" +type BlueprintTemplateConnection { + """A list of `BlueprintTemplate` objects.""" + nodes: [BlueprintTemplate]! + + """ + A list of edges which contains the `BlueprintTemplate` and cursor to aid in pagination. + """ + edges: [BlueprintTemplateEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `BlueprintTemplate` you could get from the connection. + """ + totalCount: Int! +} + +"""A `BlueprintTemplate` edge in the connection.""" +type BlueprintTemplateEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `BlueprintTemplate` at the end of the edge.""" + node: BlueprintTemplate +} + +""" +A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintTemplateFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `version` field.""" + version: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter + + """Filter by the object’s `categories` field.""" + categories: StringListFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `definitionSchemaVersion` field.""" + definitionSchemaVersion: StringFilter + + """Filter by the object’s `source` field.""" + source: StringFilter + + """Filter by the object’s `complexity` field.""" + complexity: StringFilter + + """Filter by the object’s `copyCount` field.""" + copyCount: IntFilter + + """Filter by the object’s `forkCount` field.""" + forkCount: IntFilter + + """Filter by the object’s `forkedFromId` field.""" + forkedFromId: UUIDFilter + + """Filter by the object’s `definitionHash` field.""" + definitionHash: UUIDFilter + + """Filter by the object’s `tableHashes` field.""" + tableHashes: JSONFilter + + """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: [BlueprintTemplateFilter!] + + """Checks for any expressions in this list.""" + or: [BlueprintTemplateFilter!] + + """Negates the expression.""" + not: BlueprintTemplateFilter + + """Filter by the object’s `forkedFrom` relation.""" + forkedFrom: BlueprintTemplateFilter + + """A related `forkedFrom` exists.""" + forkedFromExists: Boolean + + """Filter by the object’s `blueprintTemplatesByForkedFromId` relation.""" + blueprintTemplatesByForkedFromId: BlueprintTemplateToManyBlueprintTemplateFilter + + """`blueprintTemplatesByForkedFromId` exist.""" + blueprintTemplatesByForkedFromIdExist: Boolean + + """Filter by the object’s `blueprintsByTemplateId` relation.""" + blueprintsByTemplateId: BlueprintTemplateToManyBlueprintFilter + + """`blueprintsByTemplateId` exist.""" + blueprintsByTemplateIdExist: Boolean +} + +""" +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 +} + +""" +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 many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintTemplateToManyBlueprintTemplateFilter { + """Filters to entities where at least one related entity matches.""" + some: BlueprintTemplateFilter + + """Filters to entities where every related entity matches.""" + every: BlueprintTemplateFilter + + """Filters to entities where no related entity matches.""" + none: BlueprintTemplateFilter +} + +""" +A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintTemplateToManyBlueprintFilter { + """Filters to entities where at least one related entity matches.""" + some: BlueprintFilter + + """Filters to entities where every related entity matches.""" + every: BlueprintFilter + + """Filters to entities where no related entity matches.""" + none: BlueprintFilter +} + +""" +A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `templateId` field.""" + templateId: UUIDFilter + + """Filter by the object’s `definitionHash` field.""" + definitionHash: UUIDFilter + + """Filter by the object’s `tableHashes` field.""" + tableHashes: JSONFilter + + """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: [BlueprintFilter!] + + """Checks for any expressions in this list.""" + or: [BlueprintFilter!] + + """Negates the expression.""" + not: BlueprintFilter + + """Filter by the object’s `template` relation.""" + template: BlueprintTemplateFilter + + """A related `template` exists.""" + templateExists: Boolean + + """Filter by the object’s `blueprintConstructions` relation.""" + blueprintConstructions: BlueprintToManyBlueprintConstructionFilter + + """`blueprintConstructions` exist.""" + blueprintConstructionsExist: Boolean +} + +""" +A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintToManyBlueprintConstructionFilter { + """Filters to entities where at least one related entity matches.""" + some: BlueprintConstructionFilter + + """Filters to entities where every related entity matches.""" + every: BlueprintConstructionFilter + + """Filters to entities where no related entity matches.""" + none: BlueprintConstructionFilter +} + +""" +A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintConstructionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `blueprintId` field.""" + blueprintId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `errorDetails` field.""" + errorDetails: StringFilter + + """Filter by the object’s `tableMap` field.""" + tableMap: JSONFilter + + """Filter by the object’s `constructedDefinition` field.""" + constructedDefinition: JSONFilter + + """Filter by the object’s `constructedAt` field.""" + constructedAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [BlueprintConstructionFilter!] + + """Checks for any expressions in this list.""" + or: [BlueprintConstructionFilter!] + + """Negates the expression.""" + not: BlueprintConstructionFilter + + """Filter by the object’s `blueprint` relation.""" + blueprint: BlueprintFilter +} + +"""Methods to use when ordering `BlueprintTemplate`.""" +enum BlueprintTemplateOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + VERSION_ASC + VERSION_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + OWNER_ID_ASC + OWNER_ID_DESC + VISIBILITY_ASC + VISIBILITY_DESC + CATEGORIES_ASC + CATEGORIES_DESC + TAGS_ASC + TAGS_DESC + DEFINITION_ASC + DEFINITION_DESC + DEFINITION_SCHEMA_VERSION_ASC + DEFINITION_SCHEMA_VERSION_DESC + SOURCE_ASC + SOURCE_DESC + COMPLEXITY_ASC + COMPLEXITY_DESC + COPY_COUNT_ASC + COPY_COUNT_DESC + FORK_COUNT_ASC + FORK_COUNT_DESC + FORKED_FROM_ID_ASC + FORKED_FROM_ID_DESC + DEFINITION_HASH_ASC + DEFINITION_HASH_DESC + TABLE_HASHES_ASC + TABLE_HASHES_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""Methods to use when ordering `Blueprint`.""" +enum BlueprintOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DEFINITION_ASC + DEFINITION_DESC + TEMPLATE_ID_ASC + TEMPLATE_ID_DESC + DEFINITION_HASH_ASC + DEFINITION_HASH_DESC + TABLE_HASHES_ASC + TABLE_HASHES_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `BlueprintConstruction` values.""" +type BlueprintConstructionConnection { + """A list of `BlueprintConstruction` objects.""" + nodes: [BlueprintConstruction]! + + """ + A list of edges which contains the `BlueprintConstruction` and cursor to aid in pagination. + """ + edges: [BlueprintConstructionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `BlueprintConstruction` you could get from the connection. + """ + totalCount: Int! +} + +""" +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. +""" +type BlueprintConstruction { + """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 + + """ + 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! + + """ + Reads a single `Blueprint` that is related to this `BlueprintConstruction`. + """ + blueprint: Blueprint +} + +"""A `BlueprintConstruction` edge in the connection.""" +type BlueprintConstructionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `BlueprintConstruction` at the end of the edge.""" + node: BlueprintConstruction +} + +"""Methods to use when ordering `BlueprintConstruction`.""" +enum BlueprintConstructionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + BLUEPRINT_ID_ASC + BLUEPRINT_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + STATUS_ASC + STATUS_DESC + ERROR_DETAILS_ASC + ERROR_DETAILS_DESC + TABLE_MAP_ASC + TABLE_MAP_DESC + CONSTRUCTED_DEFINITION_ASC + CONSTRUCTED_DEFINITION_DESC + CONSTRUCTED_AT_ASC + CONSTRUCTED_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A `Blueprint` edge in the connection.""" +type BlueprintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Blueprint` at the end of the edge.""" + node: Blueprint +} + +"""A connection to a list of `CryptoAuthModule` values.""" +type CryptoAuthModuleConnection { + """A list of `CryptoAuthModule` objects.""" + nodes: [CryptoAuthModule]! + + """ + A list of edges which contains the `CryptoAuthModule` and cursor to aid in pagination. + """ + edges: [CryptoAuthModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `CryptoAuthModule` you could get from the connection. + """ + totalCount: Int! +} + +type CryptoAuthModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + usersTableId: UUID! + secretsTableId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + addressesTableId: UUID! + userField: String! + cryptoNetwork: String! + signInRequestChallenge: String! + signInRecordFailure: String! + signUpWithKey: String! + signInWithChallenge: String! +} + +"""A `CryptoAuthModule` edge in the connection.""" +type CryptoAuthModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAuthModule` at the end of the edge.""" + node: CryptoAuthModule +} + +""" +A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ +""" +input CryptoAuthModuleFilter { + """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 `secretsTableId` field.""" + secretsTableId: UUIDFilter + + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter + + """Filter by the object’s `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter + + """Filter by the object’s `addressesTableId` field.""" + addressesTableId: UUIDFilter + + """Filter by the object’s `userField` field.""" + userField: StringFilter + + """Filter by the object’s `cryptoNetwork` field.""" + cryptoNetwork: StringFilter + + """Filter by the object’s `signInRequestChallenge` field.""" + signInRequestChallenge: StringFilter + + """Filter by the object’s `signInRecordFailure` field.""" + signInRecordFailure: StringFilter + + """Filter by the object’s `signUpWithKey` field.""" + signUpWithKey: StringFilter + + """Filter by the object’s `signInWithChallenge` field.""" + signInWithChallenge: StringFilter + + """Checks for all expressions in this list.""" + and: [CryptoAuthModuleFilter!] + + """Checks for any expressions in this list.""" + or: [CryptoAuthModuleFilter!] + + """Negates the expression.""" + not: CryptoAuthModuleFilter +} + +"""Methods to use when ordering `CryptoAuthModule`.""" +enum CryptoAuthModuleOrderBy { + 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 + SECRETS_TABLE_ID_ASC + SECRETS_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + ADDRESSES_TABLE_ID_ASC + ADDRESSES_TABLE_ID_DESC + USER_FIELD_ASC + USER_FIELD_DESC + CRYPTO_NETWORK_ASC + CRYPTO_NETWORK_DESC + SIGN_IN_REQUEST_CHALLENGE_ASC + SIGN_IN_REQUEST_CHALLENGE_DESC + SIGN_IN_RECORD_FAILURE_ASC + SIGN_IN_RECORD_FAILURE_DESC + SIGN_UP_WITH_KEY_ASC + SIGN_UP_WITH_KEY_DESC + SIGN_IN_WITH_CHALLENGE_ASC + SIGN_IN_WITH_CHALLENGE_DESC +} + +"""A connection to a list of `RateLimitMetersModule` values.""" +type RateLimitMetersModuleConnection { + """A list of `RateLimitMetersModule` objects.""" + nodes: [RateLimitMetersModule]! + + """ + A list of edges which contains the `RateLimitMetersModule` and cursor to aid in pagination. + """ + edges: [RateLimitMetersModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RateLimitMetersModule` you could get from the connection. + """ + totalCount: Int! +} + +type RateLimitMetersModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + rateLimitStateTableId: UUID! + rateLimitStateTableName: String! + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String! + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String! + checkRateLimitFunction: String! + prefix: String + apiName: String + privateApiName: String +} + +"""A `RateLimitMetersModule` edge in the connection.""" +type RateLimitMetersModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RateLimitMetersModule` at the end of the edge.""" + node: RateLimitMetersModule +} + +""" +A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ +""" +input RateLimitMetersModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `rateLimitStateTableId` field.""" + rateLimitStateTableId: UUIDFilter + + """Filter by the object’s `rateLimitStateTableName` field.""" + rateLimitStateTableName: StringFilter + + """Filter by the object’s `rateLimitOverridesTableId` field.""" + rateLimitOverridesTableId: UUIDFilter + + """Filter by the object’s `rateLimitOverridesTableName` field.""" + rateLimitOverridesTableName: StringFilter + + """Filter by the object’s `rateWindowLimitsTableId` field.""" + rateWindowLimitsTableId: UUIDFilter + + """Filter by the object’s `rateWindowLimitsTableName` field.""" + rateWindowLimitsTableName: StringFilter + + """Filter by the object’s `checkRateLimitFunction` field.""" + checkRateLimitFunction: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """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: [RateLimitMetersModuleFilter!] + + """Checks for any expressions in this list.""" + or: [RateLimitMetersModuleFilter!] + + """Negates the expression.""" + not: RateLimitMetersModuleFilter +} + +"""Methods to use when ordering `RateLimitMetersModule`.""" +enum RateLimitMetersModuleOrderBy { + 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 + 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 + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `SessionsModule` values.""" +type SessionsModuleConnection { + """A list of `SessionsModule` objects.""" + nodes: [SessionsModule]! + + """ + A list of edges which contains the `SessionsModule` and cursor to aid in pagination. + """ + edges: [SessionsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SessionsModule` you could get from the connection.""" + totalCount: Int! +} + +type SessionsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + authSettingsTableId: UUID! + usersTableId: UUID! + sessionsDefaultExpiration: Interval! + sessionsTable: String! + sessionCredentialsTable: String! + authSettingsTable: String! +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""A `SessionsModule` edge in the connection.""" +type SessionsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SessionsModule` at the end of the edge.""" + node: SessionsModule +} + +""" +A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ +""" +input SessionsModuleFilter { + """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 `sessionsTableId` field.""" + sessionsTableId: UUIDFilter + + """Filter by the object’s `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter + + """Filter by the object’s `authSettingsTableId` field.""" + authSettingsTableId: UUIDFilter + + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter + + """Filter by the object’s `sessionsDefaultExpiration` field.""" + sessionsDefaultExpiration: IntervalFilter + + """Filter by the object’s `sessionsTable` field.""" + sessionsTable: StringFilter + + """Filter by the object’s `sessionCredentialsTable` field.""" + sessionCredentialsTable: StringFilter + + """Filter by the object’s `authSettingsTable` field.""" + authSettingsTable: StringFilter + + """Checks for all expressions in this list.""" + and: [SessionsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [SessionsModuleFilter!] + + """Negates the expression.""" + not: SessionsModuleFilter +} + +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: IntervalInput + + """Not equal to the specified value.""" + notEqualTo: IntervalInput + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput + + """Included in the specified list.""" + in: [IntervalInput!] + + """Not included in the specified list.""" + notIn: [IntervalInput!] + + """Less than the specified value.""" + lessThan: IntervalInput + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput + + """Greater than the specified value.""" + greaterThan: IntervalInput + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""Methods to use when ordering `SessionsModule`.""" +enum SessionsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + AUTH_SETTINGS_TABLE_ID_ASC + AUTH_SETTINGS_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + SESSIONS_DEFAULT_EXPIRATION_ASC + SESSIONS_DEFAULT_EXPIRATION_DESC + SESSIONS_TABLE_ASC + SESSIONS_TABLE_DESC + SESSION_CREDENTIALS_TABLE_ASC + SESSION_CREDENTIALS_TABLE_DESC + AUTH_SETTINGS_TABLE_ASC + AUTH_SETTINGS_TABLE_DESC +} + +"""A connection to a list of `MerkleStoreModule` values.""" +type MerkleStoreModuleConnection { + """A list of `MerkleStoreModule` objects.""" + nodes: [MerkleStoreModule]! + + """ + A list of edges which contains the `MerkleStoreModule` and cursor to aid in pagination. + """ + edges: [MerkleStoreModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `MerkleStoreModule` you could get from the connection. + """ + totalCount: Int! +} + +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 + databaseOwned: Boolean! + createdAt: Datetime! + + """Reads and enables pagination through a set of `GraphModule`.""" + graphModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: GraphModuleFilter + + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): GraphModuleConnection! +} + +"""A connection to a list of `GraphModule` values.""" +type GraphModuleConnection { + """A list of `GraphModule` objects.""" + nodes: [GraphModule]! + + """ + A list of edges which contains the `GraphModule` and cursor to aid in pagination. + """ + edges: [GraphModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `GraphModule` you could get from the connection.""" + totalCount: Int! +} + +type GraphModule { + id: UUID! + databaseId: UUID! + publicSchemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + scope: String! + prefix: String! + merkleStoreModuleId: UUID! + graphsTableId: UUID! + executionsTableId: UUID! + outputsTableId: UUID! + apiName: String + privateApiName: String + databaseOwned: Boolean! + entityTableId: UUID + policies: JSON + provisions: JSON + createdAt: Datetime! + + """ + Reads a single `MerkleStoreModule` that is related to this `GraphModule`. + """ + merkleStoreModule: MerkleStoreModule +} + +"""A `GraphModule` edge in the connection.""" +type GraphModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `GraphModule` at the end of the edge.""" + node: GraphModule +} + +""" +A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `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 `graphsTableId` field.""" + graphsTableId: UUIDFilter + + """Filter by the object’s `executionsTableId` field.""" + executionsTableId: UUIDFilter + + """Filter by the object’s `outputsTableId` field.""" + outputsTableId: UUIDFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Filter by the object’s `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """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: [GraphModuleFilter!] + + """Checks for any expressions in this list.""" + or: [GraphModuleFilter!] + + """Negates the expression.""" + not: GraphModuleFilter + + """Filter by the object’s `merkleStoreModule` relation.""" + merkleStoreModule: MerkleStoreModuleFilter +} + +""" +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 + + """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 `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """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 +} + +""" +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 +} + +"""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 + EXECUTIONS_TABLE_ID_ASC + EXECUTIONS_TABLE_ID_DESC + OUTPUTS_TABLE_ID_ASC + OUTPUTS_TABLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + DATABASE_OWNED_ASC + DATABASE_OWNED_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A `MerkleStoreModule` edge in the connection.""" +type MerkleStoreModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MerkleStoreModule` at the end of the edge.""" + node: MerkleStoreModule +} + +"""Methods to use when ordering `MerkleStoreModule`.""" +enum MerkleStoreModuleOrderBy { + 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 + 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 + DATABASE_OWNED_ASC + DATABASE_OWNED_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A connection to a list of `SecureTableProvision` values.""" +type SecureTableProvisionConnection { + """A list of `SecureTableProvision` objects.""" + nodes: [SecureTableProvision]! + + """ + A list of edges which contains the `SecureTableProvision` and cursor to aid in pagination. + """ + edges: [SecureTableProvisionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `SecureTableProvision` you could get from the connection. + """ + totalCount: Int! +} + +""" +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. +""" +type SecureTableProvision { + """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! + + """ + 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. + """ + 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: JSON! + + """ + 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: [JSON]! + + """ + 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: JSON! + + """ + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + """ + policies: JSON! + + """ + 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] +} + +"""A `SecureTableProvision` edge in the connection.""" +type SecureTableProvisionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SecureTableProvision` at the end of the edge.""" + node: SecureTableProvision +} + +""" +A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ +""" +input SecureTableProvisionFilter { + """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 `nodes` field.""" + nodes: JSONFilter + + """Filter by the object’s `useRls` field.""" + useRls: BooleanFilter + + """Filter by the object’s `fields` field.""" + fields: JSONListFilter + + """Filter by the object’s `grants` field.""" + grants: JSONFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `outFields` field.""" + outFields: UUIDListFilter + + """Checks for all expressions in this list.""" + and: [SecureTableProvisionFilter!] + + """Checks for any expressions in this list.""" + or: [SecureTableProvisionFilter!] + + """Negates the expression.""" + not: SecureTableProvisionFilter +} + +""" +A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ +""" +input JSONListFilter { + """ + 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] + + """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 list of values.""" + contains: [JSON] + + """Contained by the specified list of values.""" + containedBy: [JSON] + + """Overlaps the specified list of values.""" + overlaps: [JSON] + + """Any array item is equal to the specified value.""" + anyEqualTo: JSON + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: JSON + + """Any array item is less than the specified value.""" + anyLessThan: JSON + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: JSON + + """Any array item is greater than the specified value.""" + anyGreaterThan: JSON + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: JSON +} + +"""Methods to use when ordering `SecureTableProvision`.""" +enum SecureTableProvisionOrderBy { + 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 + NODES_ASC + NODES_DESC + USE_RLS_ASC + USE_RLS_DESC + FIELDS_ASC + FIELDS_DESC + GRANTS_ASC + GRANTS_DESC + POLICIES_ASC + POLICIES_DESC + OUT_FIELDS_ASC + OUT_FIELDS_DESC +} + +"""A connection to a list of `ConfigSecretsModule` values.""" +type ConfigSecretsModuleConnection { + """A list of `ConfigSecretsModule` objects.""" + nodes: [ConfigSecretsModule]! + + """ + A list of edges which contains the `ConfigSecretsModule` and cursor to aid in pagination. + """ + edges: [ConfigSecretsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConfigSecretsModule` 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. +""" +type ConfigSecretsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + configDefinitionsTableId: UUID + tableName: String! + apiName: String + privateApiName: String + scope: String! + databaseOwned: Boolean! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON + hasConfig: Boolean! +} + +"""A `ConfigSecretsModule` edge in the connection.""" +type ConfigSecretsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConfigSecretsModule` at the end of the edge.""" + node: ConfigSecretsModule +} + +""" +A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ +""" +input ConfigSecretsModuleFilter { + """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 `configDefinitionsTableId` field.""" + configDefinitionsTableId: 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 `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """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 `hasConfig` field.""" + hasConfig: BooleanFilter + + """Checks for all expressions in this list.""" + and: [ConfigSecretsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ConfigSecretsModuleFilter!] + + """Negates the expression.""" + not: ConfigSecretsModuleFilter +} + +"""Methods to use when ordering `ConfigSecretsModule`.""" +enum ConfigSecretsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + CONFIG_DEFINITIONS_TABLE_ID_ASC + CONFIG_DEFINITIONS_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 + DATABASE_OWNED_ASC + DATABASE_OWNED_DESC + 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 +} + +"""A connection to a list of `InvitesModule` values.""" +type InvitesModuleConnection { + """A list of `InvitesModule` objects.""" + nodes: [InvitesModule]! + + """ + A list of edges which contains the `InvitesModule` and cursor to aid in pagination. + """ + edges: [InvitesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InvitesModule` you could get from the connection.""" + totalCount: Int! +} + +type InvitesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + emailsTableId: UUID! + usersTableId: UUID! + invitesTableId: UUID! + claimedInvitesTableId: UUID! + invitesTableName: String! + claimedInvitesTableName: String! + submitInviteCodeFunction: String! + scope: String! + prefix: String! + entityTableId: UUID + apiName: String + privateApiName: String +} + +"""A `InvitesModule` edge in the connection.""" +type InvitesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InvitesModule` at the end of the edge.""" + node: InvitesModule +} + +""" +A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """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 `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: [InvitesModuleFilter!] + + """Checks for any expressions in this list.""" + or: [InvitesModuleFilter!] + + """Negates the expression.""" + not: InvitesModuleFilter +} + +"""Methods to use when ordering `InvitesModule`.""" +enum InvitesModuleOrderBy { + 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 + 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 +} + +"""A connection to a list of `DatabaseProvisionModule` values.""" +type DatabaseProvisionModuleConnection { + """A list of `DatabaseProvisionModule` objects.""" + nodes: [DatabaseProvisionModule]! + + """ + A list of edges which contains the `DatabaseProvisionModule` and cursor to aid in pagination. + """ + edges: [DatabaseProvisionModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DatabaseProvisionModule` 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. +""" +type DatabaseProvisionModule { + 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 ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime! + updatedAt: Datetime! + completedAt: Datetime +} + +"""A `DatabaseProvisionModule` edge in the connection.""" +type DatabaseProvisionModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DatabaseProvisionModule` at the end of the edge.""" + node: DatabaseProvisionModule +} + +""" +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 `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 +} + +"""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 + DATABASE_ID_ASC + DATABASE_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC +} + +"""A connection to a list of `RealtimeModule` values.""" +type RealtimeModuleConnection { + """A list of `RealtimeModule` objects.""" + nodes: [RealtimeModule]! + + """ + A list of edges which contains the `RealtimeModule` and cursor to aid in pagination. + """ + edges: [RealtimeModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RealtimeModule` you could get from the connection.""" + totalCount: Int! +} + +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 +} + +"""A `RealtimeModule` edge in the connection.""" +type RealtimeModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RealtimeModule` at the end of the edge.""" + node: RealtimeModule +} + +""" +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 + + """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 +} + +"""Methods to use when ordering `RealtimeModule`.""" +enum 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 +} + +"""A connection to a list of `WebauthnAuthModule` values.""" +type WebauthnAuthModuleConnection { + """A list of `WebauthnAuthModule` objects.""" + nodes: [WebauthnAuthModule]! + + """ + A list of edges which contains the `WebauthnAuthModule` and cursor to aid in pagination. + """ + edges: [WebauthnAuthModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `WebauthnAuthModule` you could get from the connection. + """ + totalCount: Int! +} + +type WebauthnAuthModule { + 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 + + """The `WebauthnAuthModule` at the end of the edge.""" + node: WebauthnAuthModule +} + +""" +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 + + """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!] + + """Checks for any expressions in this list.""" + or: [WebauthnAuthModuleFilter!] + + """Negates the expression.""" + not: WebauthnAuthModuleFilter +} + +"""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 +} + +"""A connection to a list of `NamespaceModule` values.""" +type NamespaceModuleConnection { + """A list of `NamespaceModule` objects.""" + nodes: [NamespaceModule]! + + """ + A list of edges which contains the `NamespaceModule` and cursor to aid in pagination. + """ + edges: [NamespaceModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `NamespaceModule` you could get from the connection. + """ + totalCount: Int! +} + +type NamespaceModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + namespacesTableId: UUID! + namespaceEventsTableId: UUID! + namespacesTableName: String! + namespaceEventsTableName: String! + apiName: String + privateApiName: String + scope: String! + databaseOwned: Boolean! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON +} + +"""A `NamespaceModule` edge in the connection.""" +type NamespaceModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `NamespaceModule` at the end of the edge.""" + node: NamespaceModule +} + +""" +A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `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 `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """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: [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 + 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 + DATABASE_OWNED_ASC + DATABASE_OWNED_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 list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. + """ + edges: [ComputeLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ComputeLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type ComputeLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + computeLogTableId: UUID! + computeLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String! + 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 +} + +""" +A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input ComputeLogModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `computeLogTableId` field.""" + computeLogTableId: UUIDFilter + + """Filter by the object’s `computeLogTableName` field.""" + computeLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """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: [ComputeLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ComputeLogModuleFilter!] + + """Negates the expression.""" + not: ComputeLogModuleFilter +} + +"""Methods to use when ordering `ComputeLogModule`.""" +enum ComputeLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + COMPUTE_LOG_TABLE_ID_ASC + COMPUTE_LOG_TABLE_ID_DESC + COMPUTE_LOG_TABLE_NAME_ASC + COMPUTE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `InferenceLogModule` values.""" +type InferenceLogModuleConnection { + """A list of `InferenceLogModule` objects.""" + nodes: [InferenceLogModule]! + + """ + A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. + """ + edges: [InferenceLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `InferenceLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type InferenceLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + inferenceLogTableId: UUID! + inferenceLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String! + apiName: String + privateApiName: String +} + +"""A `InferenceLogModule` edge in the connection.""" +type InferenceLogModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InferenceLogModule` at the end of the edge.""" + node: InferenceLogModule +} + +""" +A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input InferenceLogModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `inferenceLogTableId` field.""" + inferenceLogTableId: UUIDFilter + + """Filter by the object’s `inferenceLogTableName` field.""" + inferenceLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """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!] + + """Checks for any expressions in this list.""" + or: [InferenceLogModuleFilter!] + + """Negates the expression.""" + not: InferenceLogModuleFilter +} + +"""Methods to use when ordering `InferenceLogModule`.""" +enum InferenceLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + INFERENCE_LOG_TABLE_ID_ASC + INFERENCE_LOG_TABLE_ID_DESC + INFERENCE_LOG_TABLE_NAME_ASC + INFERENCE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `StorageLogModule` values.""" +type StorageLogModuleConnection { + """A list of `StorageLogModule` objects.""" + nodes: [StorageLogModule]! + + """ + A list of edges which contains the `StorageLogModule` and cursor to aid in pagination. + """ + edges: [StorageLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `StorageLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type StorageLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + storageLogTableId: UUID! + storageLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String! + 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.’ +""" +input StorageLogModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `storageLogTableId` field.""" + storageLogTableId: UUIDFilter + + """Filter by the object’s `storageLogTableName` field.""" + storageLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """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: [StorageLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [StorageLogModuleFilter!] + + """Negates the expression.""" + not: StorageLogModuleFilter +} + +"""Methods to use when ordering `StorageLogModule`.""" +enum StorageLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + STORAGE_LOG_TABLE_ID_ASC + STORAGE_LOG_TABLE_ID_DESC + STORAGE_LOG_TABLE_NAME_ASC + STORAGE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `TransferLogModule` values.""" +type TransferLogModuleConnection { + """A list of `TransferLogModule` objects.""" + nodes: [TransferLogModule]! + + """ + A list of edges which contains the `TransferLogModule` and cursor to aid in pagination. + """ + edges: [TransferLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `TransferLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type TransferLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + transferLogTableId: UUID! + transferLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String! + apiName: String + privateApiName: String +} + +"""A `TransferLogModule` edge in the connection.""" +type TransferLogModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TransferLogModule` at the end of the edge.""" + node: TransferLogModule +} + +""" +A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input TransferLogModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `transferLogTableId` field.""" + transferLogTableId: UUIDFilter + + """Filter by the object’s `transferLogTableName` field.""" + transferLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """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: [TransferLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [TransferLogModuleFilter!] + + """Negates the expression.""" + not: TransferLogModuleFilter +} + +"""Methods to use when ordering `TransferLogModule`.""" +enum TransferLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TRANSFER_LOG_TABLE_ID_ASC + TRANSFER_LOG_TABLE_ID_DESC + TRANSFER_LOG_TABLE_NAME_ASC + TRANSFER_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `DbUsageModule` values.""" +type DbUsageModuleConnection { + """A list of `DbUsageModule` objects.""" + nodes: [DbUsageModule]! + + """ + A list of edges which contains the `DbUsageModule` and cursor to aid in pagination. + """ + edges: [DbUsageModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `DbUsageModule` you could get from the connection.""" + totalCount: Int! +} + +type DbUsageModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableStatsLogTableId: UUID! + tableStatsLogTableName: String! + tableStatsDailyTableId: UUID! + tableStatsDailyTableName: String! + queryStatsLogTableId: UUID! + queryStatsLogTableName: String! + queryStatsDailyTableId: UUID! + queryStatsDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + prefix: String! + apiName: String + privateApiName: String +} + +"""A `DbUsageModule` edge in the connection.""" +type DbUsageModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DbUsageModule` at the end of the edge.""" + node: DbUsageModule +} + +""" +A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ +""" +input DbUsageModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `tableStatsLogTableId` field.""" + tableStatsLogTableId: UUIDFilter + + """Filter by the object’s `tableStatsLogTableName` field.""" + tableStatsLogTableName: StringFilter + + """Filter by the object’s `tableStatsDailyTableId` field.""" + tableStatsDailyTableId: UUIDFilter + + """Filter by the object’s `tableStatsDailyTableName` field.""" + tableStatsDailyTableName: StringFilter + + """Filter by the object’s `queryStatsLogTableId` field.""" + queryStatsLogTableId: UUIDFilter + + """Filter by the object’s `queryStatsLogTableName` field.""" + queryStatsLogTableName: StringFilter + + """Filter by the object’s `queryStatsDailyTableId` field.""" + queryStatsDailyTableId: UUIDFilter + + """Filter by the object’s `queryStatsDailyTableName` field.""" + queryStatsDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """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 +} + +"""Methods to use when ordering `DbUsageModule`.""" +enum DbUsageModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_STATS_LOG_TABLE_ID_ASC + TABLE_STATS_LOG_TABLE_ID_DESC + TABLE_STATS_LOG_TABLE_NAME_ASC + TABLE_STATS_LOG_TABLE_NAME_DESC + TABLE_STATS_DAILY_TABLE_ID_ASC + TABLE_STATS_DAILY_TABLE_ID_DESC + TABLE_STATS_DAILY_TABLE_NAME_ASC + TABLE_STATS_DAILY_TABLE_NAME_DESC + QUERY_STATS_LOG_TABLE_ID_ASC + QUERY_STATS_LOG_TABLE_ID_DESC + QUERY_STATS_LOG_TABLE_NAME_ASC + QUERY_STATS_LOG_TABLE_NAME_DESC + QUERY_STATS_DAILY_TABLE_ID_ASC + QUERY_STATS_DAILY_TABLE_ID_DESC + QUERY_STATS_DAILY_TABLE_NAME_ASC + QUERY_STATS_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + 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 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! + schemaId: UUID! + privateSchemaId: UUID! + notificationsTableId: UUID! + readStateTableId: UUID! + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + ownerTableId: UUID! + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean! + hasPreferences: Boolean! + hasSettingsExtension: Boolean! + hasDigestMetadata: Boolean! + hasSubscriptions: Boolean! + 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 `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """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 `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 `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 + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_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 + 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 + 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 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! + 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 + + """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 `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 +} + +"""Methods to use when ordering `PlansModule`.""" +enum PlansModuleOrderBy { + 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 + 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 +} + +"""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! + 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! + 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 `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 `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 + 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 + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A connection to a list of `BillingModule` values.""" +type BillingModuleConnection { + """A list of `BillingModule` objects.""" + nodes: [BillingModule]! + + """ + A list of edges which contains the `BillingModule` and cursor to aid in pagination. + """ + edges: [BillingModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `BillingModule` you could get from the connection.""" + totalCount: Int! +} + +type BillingModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + metersTableId: UUID! + metersTableName: String! + planSubscriptionsTableId: UUID! + planSubscriptionsTableName: String! + ledgerTableId: UUID! + ledgerTableName: String! + balancesTableId: UUID! + balancesTableName: String! + meterCreditsTableId: UUID! + meterCreditsTableName: String! + meterSourcesTableId: UUID! + meterSourcesTableName: String! + meterDefaultsTableId: UUID! + meterDefaultsTableName: String! + recordUsageFunction: String! + prefix: String + apiName: String + privateApiName: String +} + +"""A `BillingModule` edge in the connection.""" +type BillingModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `BillingModule` at the end of the edge.""" + node: BillingModule +} + +""" +A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ +""" +input BillingModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `metersTableId` field.""" + metersTableId: UUIDFilter + + """Filter by the object’s `metersTableName` field.""" + metersTableName: StringFilter + + """Filter by the object’s `planSubscriptionsTableId` field.""" + planSubscriptionsTableId: UUIDFilter + + """Filter by the object’s `planSubscriptionsTableName` field.""" + planSubscriptionsTableName: StringFilter + + """Filter by the object’s `ledgerTableId` field.""" + ledgerTableId: UUIDFilter + + """Filter by the object’s `ledgerTableName` field.""" + ledgerTableName: StringFilter + + """Filter by the object’s `balancesTableId` field.""" + balancesTableId: UUIDFilter + + """Filter by the object’s `balancesTableName` field.""" + balancesTableName: StringFilter + + """Filter by the object’s `meterCreditsTableId` field.""" + meterCreditsTableId: UUIDFilter + + """Filter by the object’s `meterCreditsTableName` field.""" + meterCreditsTableName: StringFilter + + """Filter by the object’s `meterSourcesTableId` field.""" + meterSourcesTableId: UUIDFilter + + """Filter by the object’s `meterSourcesTableName` field.""" + meterSourcesTableName: StringFilter + + """Filter by the object’s `meterDefaultsTableId` field.""" + meterDefaultsTableId: UUIDFilter + + """Filter by the object’s `meterDefaultsTableName` field.""" + meterDefaultsTableName: StringFilter + + """Filter by the object’s `recordUsageFunction` field.""" + recordUsageFunction: 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: [BillingModuleFilter!] + + """Checks for any expressions in this list.""" + or: [BillingModuleFilter!] + + """Negates the expression.""" + not: BillingModuleFilter +} + +"""Methods to use when ordering `BillingModule`.""" +enum BillingModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + METERS_TABLE_ID_ASC + METERS_TABLE_ID_DESC + METERS_TABLE_NAME_ASC + METERS_TABLE_NAME_DESC + PLAN_SUBSCRIPTIONS_TABLE_ID_ASC + PLAN_SUBSCRIPTIONS_TABLE_ID_DESC + PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC + PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC + LEDGER_TABLE_ID_ASC + LEDGER_TABLE_ID_DESC + LEDGER_TABLE_NAME_ASC + LEDGER_TABLE_NAME_DESC + BALANCES_TABLE_ID_ASC + BALANCES_TABLE_ID_DESC + BALANCES_TABLE_NAME_ASC + BALANCES_TABLE_NAME_DESC + 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 + PREFIX_ASC + PREFIX_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `BillingProviderModule` values.""" +type BillingProviderModuleConnection { + """A list of `BillingProviderModule` objects.""" + nodes: [BillingProviderModule]! + + """ + A list of edges which contains the `BillingProviderModule` and cursor to aid in pagination. + """ + edges: [BillingProviderModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `BillingProviderModule` you could get from the connection. + """ + totalCount: Int! +} + +type BillingProviderModule { + 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 + apiName: String + privateApiName: String +} + +"""A `BillingProviderModule` edge in the connection.""" +type BillingProviderModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `BillingProviderModule` at the end of the edge.""" + node: BillingProviderModule +} + +""" +A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `BillingProviderModule`.""" +enum 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 +} + +"""A connection to a list of `ProfilesModule` values.""" +type ProfilesModuleConnection { + """A list of `ProfilesModule` objects.""" + nodes: [ProfilesModule]! + + """ + A list of edges which contains the `ProfilesModule` and cursor to aid in pagination. + """ + edges: [ProfilesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ProfilesModule` you could get from the connection.""" + totalCount: Int! +} + +type ProfilesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + 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 +} + +"""A `ProfilesModule` edge in the connection.""" +type ProfilesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ProfilesModule` at the end of the edge.""" + node: ProfilesModule +} + +""" +A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ +""" +input ProfilesModuleFilter { + """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 `tableName` field.""" + tableName: StringFilter + + """Filter by the object’s `profilePermissionsTableId` field.""" + profilePermissionsTableId: UUIDFilter + + """Filter by the object’s `profilePermissionsTableName` field.""" + profilePermissionsTableName: StringFilter + + """Filter by the object’s `profileGrantsTableId` field.""" + profileGrantsTableId: UUIDFilter + + """Filter by the object’s `profileGrantsTableName` field.""" + profileGrantsTableName: StringFilter + + """Filter by the object’s `profileDefinitionGrantsTableId` field.""" + profileDefinitionGrantsTableId: UUIDFilter + + """Filter by the object’s `profileDefinitionGrantsTableName` field.""" + profileDefinitionGrantsTableName: StringFilter + + """Filter by the object’s `profileTemplatesTableId` field.""" + profileTemplatesTableId: UUIDFilter + + """Filter by the object’s `profileTemplatesTableName` field.""" + profileTemplatesTableName: 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 `actorTableId` field.""" + actorTableId: UUIDFilter + + """Filter by the object’s `permissionsTableId` field.""" + permissionsTableId: UUIDFilter + + """Filter by the object’s `membershipsTableId` field.""" + membershipsTableId: 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: [ProfilesModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ProfilesModuleFilter!] + + """Negates the expression.""" + not: ProfilesModuleFilter +} + +"""Methods to use when ordering `ProfilesModule`.""" +enum ProfilesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_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 +} + +"""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! + schemaId: UUID! + privateSchemaId: UUID! + 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 `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 `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 + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_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 `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 `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 FunctionModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + definitionsTableId: UUID! + invocationsTableId: UUID! + executionLogsTableId: UUID! + secretDefinitionsTableId: UUID! + requirementsTableId: UUID! + configDefinitionsTableId: UUID! + configRequirementsTableId: UUID! + definitionsTableName: String! + invocationsTableName: String! + executionLogsTableName: String! + secretDefinitionsTableName: String! + requirementsTableName: String! + configRequirementsTableName: String! + apiName: String + privateApiName: String + scope: String! + databaseOwned: Boolean! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON +} + +"""A `FunctionModule` edge in the connection.""" +type FunctionModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionModule` at the end of the edge.""" + node: FunctionModule +} + +""" +A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `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 `invocationsTableId` field.""" + invocationsTableId: UUIDFilter + + """Filter by the object’s `executionLogsTableId` field.""" + executionLogsTableId: UUIDFilter + + """Filter by the object’s `secretDefinitionsTableId` field.""" + secretDefinitionsTableId: UUIDFilter + + """Filter by the object’s `requirementsTableId` field.""" + requirementsTableId: UUIDFilter + + """Filter by the object’s `configDefinitionsTableId` field.""" + configDefinitionsTableId: UUIDFilter + + """Filter by the object’s `configRequirementsTableId` field.""" + configRequirementsTableId: UUIDFilter + + """Filter by the object’s `definitionsTableName` field.""" + definitionsTableName: StringFilter + + """Filter by the object’s `invocationsTableName` field.""" + invocationsTableName: StringFilter + + """Filter by the object’s `executionLogsTableName` field.""" + executionLogsTableName: StringFilter + + """Filter by the object’s `secretDefinitionsTableName` field.""" + secretDefinitionsTableName: StringFilter + + """Filter by the object’s `requirementsTableName` field.""" + requirementsTableName: StringFilter + + """Filter by the object’s `configRequirementsTableName` field.""" + configRequirementsTableName: 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 `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """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: [FunctionModuleFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionModuleFilter!] + + """Negates the expression.""" + not: FunctionModuleFilter +} + +"""Methods to use when ordering `FunctionModule`.""" +enum FunctionModuleOrderBy { + 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 + DEFINITIONS_TABLE_ID_ASC + DEFINITIONS_TABLE_ID_DESC + INVOCATIONS_TABLE_ID_ASC + INVOCATIONS_TABLE_ID_DESC + EXECUTION_LOGS_TABLE_ID_ASC + EXECUTION_LOGS_TABLE_ID_DESC + SECRET_DEFINITIONS_TABLE_ID_ASC + SECRET_DEFINITIONS_TABLE_ID_DESC + REQUIREMENTS_TABLE_ID_ASC + REQUIREMENTS_TABLE_ID_DESC + CONFIG_DEFINITIONS_TABLE_ID_ASC + CONFIG_DEFINITIONS_TABLE_ID_DESC + CONFIG_REQUIREMENTS_TABLE_ID_ASC + CONFIG_REQUIREMENTS_TABLE_ID_DESC + DEFINITIONS_TABLE_NAME_ASC + DEFINITIONS_TABLE_NAME_DESC + INVOCATIONS_TABLE_NAME_ASC + INVOCATIONS_TABLE_NAME_DESC + EXECUTION_LOGS_TABLE_NAME_ASC + EXECUTION_LOGS_TABLE_NAME_DESC + SECRET_DEFINITIONS_TABLE_NAME_ASC + SECRET_DEFINITIONS_TABLE_NAME_DESC + REQUIREMENTS_TABLE_NAME_ASC + REQUIREMENTS_TABLE_NAME_DESC + CONFIG_REQUIREMENTS_TABLE_NAME_ASC + CONFIG_REQUIREMENTS_TABLE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + DATABASE_OWNED_ASC + DATABASE_OWNED_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 `UserAuthModule` values.""" +type UserAuthModuleConnection { + """A list of `UserAuthModule` objects.""" + nodes: [UserAuthModule]! + + """ + A list of edges which contains the `UserAuthModule` and cursor to aid in pagination. + """ + edges: [UserAuthModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `UserAuthModule` you could get from the connection.""" + totalCount: Int! +} + +type UserAuthModule { + 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 +} + +"""A `UserAuthModule` edge in the connection.""" +type UserAuthModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserAuthModule` at the end of the edge.""" + node: UserAuthModule +} + +""" +A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ +""" +input UserAuthModuleFilter { + """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 `emailsTableId` field.""" + emailsTableId: UUIDFilter + + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter + + """Filter by the object’s `secretsTableId` field.""" + secretsTableId: UUIDFilter + + """Filter by the object’s `encryptedTableId` field.""" + encryptedTableId: 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 `auditsTableName` field.""" + auditsTableName: StringFilter + + """Filter by the object’s `signInFunction` field.""" + signInFunction: StringFilter + + """Filter by the object’s `signUpFunction` field.""" + signUpFunction: StringFilter + + """Filter by the object’s `signOutFunction` field.""" + signOutFunction: StringFilter + + """Filter by the object’s `setPasswordFunction` field.""" + setPasswordFunction: StringFilter + + """Filter by the object’s `resetPasswordFunction` field.""" + resetPasswordFunction: StringFilter + + """Filter by the object’s `forgotPasswordFunction` field.""" + forgotPasswordFunction: StringFilter + + """Filter by the object’s `sendVerificationEmailFunction` field.""" + sendVerificationEmailFunction: StringFilter + + """Filter by the object’s `verifyEmailFunction` field.""" + verifyEmailFunction: StringFilter + + """Filter by the object’s `verifyPasswordFunction` field.""" + verifyPasswordFunction: StringFilter + + """Filter by the object’s `checkPasswordFunction` field.""" + checkPasswordFunction: StringFilter + + """Filter by the object’s `sendAccountDeletionEmailFunction` field.""" + sendAccountDeletionEmailFunction: StringFilter + + """Filter by the object’s `deleteAccountFunction` field.""" + deleteAccountFunction: StringFilter + + """Filter by the object’s `signInCrossOriginFunction` field.""" + signInCrossOriginFunction: StringFilter + + """Filter by the object’s `requestCrossOriginTokenFunction` field.""" + requestCrossOriginTokenFunction: StringFilter + + """Filter by the object’s `extendTokenExpires` field.""" + extendTokenExpires: 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: [UserAuthModuleFilter!] + + """Checks for any expressions in this list.""" + or: [UserAuthModuleFilter!] + + """Negates the expression.""" + not: UserAuthModuleFilter +} + +"""Methods to use when ordering `UserAuthModule`.""" +enum 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 +} + +"""A connection to a list of `AgentModule` values.""" +type AgentModuleConnection { + """A list of `AgentModule` objects.""" + nodes: [AgentModule]! + + """ + A list of edges which contains the `AgentModule` and cursor to aid in pagination. + """ + edges: [AgentModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentModule` you could get from the connection.""" + totalCount: Int! +} + +type AgentModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + threadTableId: UUID! + messageTableId: UUID! + taskTableId: UUID! + promptsTableId: UUID! + knowledgeTableId: UUID + planTableId: UUID + skillTableId: UUID + threadTableName: String! + messageTableName: String! + taskTableName: String! + promptsTableName: String! + knowledgeTableName: String! + planTableName: String! + skillTableName: String! + hasKnowledge: Boolean! + hasPlans: Boolean! + hasSkills: Boolean! + apiName: String + privateApiName: String + scope: String! + databaseOwned: Boolean! + prefix: String! + entityTableId: UUID + policies: JSON + knowledgeConfig: JSON + skillsConfig: JSON + knowledgePolicies: JSON + provisions: JSON +} + +"""A `AgentModule` edge in the connection.""" +type AgentModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentModule` at the end of the edge.""" + node: AgentModule +} + +""" +A filter to be used against `AgentModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """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 `knowledgeTableId` field.""" + knowledgeTableId: UUIDFilter + + """Filter by the object’s `planTableId` field.""" + planTableId: UUIDFilter + + """Filter by the object’s `skillTableId` field.""" + skillTableId: UUIDFilter + + """Filter by the object’s `threadTableName` field.""" + threadTableName: StringFilter + + """Filter by the object’s `messageTableName` field.""" + messageTableName: StringFilter + + """Filter by the object’s `taskTableName` field.""" + taskTableName: StringFilter + + """Filter by the object’s `promptsTableName` field.""" + promptsTableName: StringFilter + + """Filter by the object’s `knowledgeTableName` field.""" + knowledgeTableName: StringFilter + + """Filter by the object’s `planTableName` field.""" + planTableName: StringFilter + + """Filter by the object’s `skillTableName` field.""" + skillTableName: StringFilter + + """Filter by the object’s `hasKnowledge` field.""" + hasKnowledge: BooleanFilter + + """Filter by the object’s `hasPlans` field.""" + hasPlans: BooleanFilter + + """Filter by the object’s `hasSkills` field.""" + hasSkills: BooleanFilter + + """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 `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """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 `knowledgeConfig` field.""" + knowledgeConfig: JSONFilter + + """Filter by the object’s `skillsConfig` field.""" + skillsConfig: JSONFilter + + """Filter by the object’s `knowledgePolicies` field.""" + knowledgePolicies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Checks for all expressions in this list.""" + and: [AgentModuleFilter!] + + """Checks for any expressions in this list.""" + or: [AgentModuleFilter!] + + """Negates the expression.""" + not: AgentModuleFilter +} + +"""Methods to use when ordering `AgentModule`.""" +enum AgentModuleOrderBy { + 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 + 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 + KNOWLEDGE_TABLE_ID_ASC + KNOWLEDGE_TABLE_ID_DESC + PLAN_TABLE_ID_ASC + PLAN_TABLE_ID_DESC + SKILL_TABLE_ID_ASC + SKILL_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 + KNOWLEDGE_TABLE_NAME_ASC + KNOWLEDGE_TABLE_NAME_DESC + PLAN_TABLE_NAME_ASC + PLAN_TABLE_NAME_DESC + SKILL_TABLE_NAME_ASC + SKILL_TABLE_NAME_DESC + HAS_KNOWLEDGE_ASC + HAS_KNOWLEDGE_DESC + HAS_PLANS_ASC + HAS_PLANS_DESC + HAS_SKILLS_ASC + HAS_SKILLS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + DATABASE_OWNED_ASC + DATABASE_OWNED_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + KNOWLEDGE_CONFIG_ASC + KNOWLEDGE_CONFIG_DESC + SKILLS_CONFIG_ASC + SKILLS_CONFIG_DESC + KNOWLEDGE_POLICIES_ASC + KNOWLEDGE_POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC +} + +"""A connection to a list of `LimitsModule` values.""" +type LimitsModuleConnection { + """A list of `LimitsModule` objects.""" + nodes: [LimitsModule]! + + """ + A list of edges which contains the `LimitsModule` and cursor to aid in pagination. + """ + edges: [LimitsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `LimitsModule` you could get from the connection.""" + totalCount: Int! +} + +type LimitsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + 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 + actorTableId: UUID! + apiName: String + privateApiName: String +} + +"""A `LimitsModule` edge in the connection.""" +type LimitsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `LimitsModule` at the end of the edge.""" + node: LimitsModule +} + +""" +A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ +""" +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 `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 `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 `limitIncrementFunction` field.""" + limitIncrementFunction: StringFilter + + """Filter by the object’s `limitDecrementFunction` field.""" + limitDecrementFunction: StringFilter + + """Filter by the object’s `limitIncrementTrigger` field.""" + limitIncrementTrigger: StringFilter + + """Filter by the object’s `limitDecrementTrigger` field.""" + limitDecrementTrigger: StringFilter + + """Filter by the object’s `limitUpdateTrigger` field.""" + limitUpdateTrigger: StringFilter + + """Filter by the object’s `limitCheckFunction` field.""" + limitCheckFunction: StringFilter + + """Filter by the object’s `limitCreditsTableId` field.""" + limitCreditsTableId: UUIDFilter + + """Filter by the object’s `eventsTableId` field.""" + eventsTableId: UUIDFilter + + """Filter by the object’s `creditCodesTableId` field.""" + creditCodesTableId: UUIDFilter + + """Filter by the object’s `creditCodeItemsTableId` field.""" + creditCodeItemsTableId: UUIDFilter + + """Filter by the object’s `creditRedemptionsTableId` field.""" + creditRedemptionsTableId: UUIDFilter + + """Filter by the object’s `aggregateTableId` field.""" + aggregateTableId: UUIDFilter + + """Filter by the object’s `limitCapsTableId` field.""" + limitCapsTableId: UUIDFilter + + """Filter by the object’s `limitCapsDefaultsTableId` field.""" + limitCapsDefaultsTableId: UUIDFilter + + """Filter by the object’s `capCheckTrigger` field.""" + capCheckTrigger: 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 + + """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 `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [LimitsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [LimitsModuleFilter!] + + """Negates the expression.""" + not: LimitsModuleFilter +} + +"""Methods to use when ordering `LimitsModule`.""" +enum LimitsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_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 + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + 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! + schemaId: UUID! + privateSchemaId: UUID! + 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 + 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 `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """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 `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 + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_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 + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `StorageModule` values.""" +type StorageModuleConnection { + """A list of `StorageModule` objects.""" + nodes: [StorageModule]! + + """ + A list of edges which contains the `StorageModule` and cursor to aid in pagination. + """ + edges: [StorageModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `StorageModule` you could get from the connection.""" + totalCount: Int! +} + +type StorageModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + bucketsTableId: UUID! + filesTableId: UUID! + bucketsTableName: String! + filesTableName: String! + scope: String! + databaseOwned: Boolean! + prefix: String! + policies: JSON + provisions: JSON + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean! + hasPathShares: Boolean! + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean! + hasContentHash: Boolean! + hasCustomKeys: Boolean! + hasAuditLog: Boolean! + hasConfirmUpload: Boolean! + confirmUploadDelay: Interval! + fileEventsTableId: UUID + apiName: String + privateApiName: String +} + +""" +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 `StorageModule` edge in the connection.""" +type StorageModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `StorageModule` at the end of the edge.""" + node: StorageModule +} + +""" +A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ +""" +input StorageModuleFilter { + """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 `bucketsTableId` field.""" + bucketsTableId: UUIDFilter + + """Filter by the object’s `filesTableId` field.""" + filesTableId: UUIDFilter + + """Filter by the object’s `bucketsTableName` field.""" + bucketsTableName: StringFilter + + """Filter by the object’s `filesTableName` field.""" + filesTableName: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `endpoint` field.""" + endpoint: StringFilter + + """Filter by the object’s `publicUrlPrefix` field.""" + publicUrlPrefix: StringFilter + + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `allowedOrigins` field.""" + allowedOrigins: StringListFilter + + """Filter by the object’s `restrictReads` field.""" + restrictReads: BooleanFilter + + """Filter by the object’s `hasPathShares` field.""" + hasPathShares: BooleanFilter + + """Filter by the object’s `pathSharesTableId` field.""" + pathSharesTableId: UUIDFilter + + """Filter by the object’s `uploadUrlExpirySeconds` field.""" + uploadUrlExpirySeconds: IntFilter + + """Filter by the object’s `downloadUrlExpirySeconds` field.""" + downloadUrlExpirySeconds: IntFilter + + """Filter by the object’s `defaultMaxFileSize` field.""" + defaultMaxFileSize: BigIntFilter + + """Filter by the object’s `maxFilenameLength` field.""" + maxFilenameLength: IntFilter + + """Filter by the object’s `cacheTtlSeconds` field.""" + cacheTtlSeconds: IntFilter + + """Filter by the object’s `maxBulkFiles` field.""" + maxBulkFiles: IntFilter + + """Filter by the object’s `maxBulkTotalSize` field.""" + maxBulkTotalSize: BigIntFilter + + """Filter by the object’s `hasVersioning` field.""" + hasVersioning: BooleanFilter + + """Filter by the object’s `hasContentHash` field.""" + hasContentHash: BooleanFilter + + """Filter by the object’s `hasCustomKeys` field.""" + hasCustomKeys: BooleanFilter + + """Filter by the object’s `hasAuditLog` field.""" + hasAuditLog: BooleanFilter + + """Filter by the object’s `hasConfirmUpload` field.""" + hasConfirmUpload: BooleanFilter + + """Filter by the object’s `confirmUploadDelay` field.""" + confirmUploadDelay: IntervalFilter + + """Filter by the object’s `fileEventsTableId` field.""" + fileEventsTableId: 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: [StorageModuleFilter!] + + """Checks for any expressions in this list.""" + or: [StorageModuleFilter!] + + """Negates the expression.""" + not: StorageModuleFilter +} + +""" +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 `StorageModule`.""" +enum StorageModuleOrderBy { + 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 + BUCKETS_TABLE_ID_ASC + BUCKETS_TABLE_ID_DESC + FILES_TABLE_ID_ASC + FILES_TABLE_ID_DESC + BUCKETS_TABLE_NAME_ASC + BUCKETS_TABLE_NAME_DESC + FILES_TABLE_NAME_ASC + FILES_TABLE_NAME_DESC + SCOPE_ASC + SCOPE_DESC + DATABASE_OWNED_ASC + DATABASE_OWNED_DESC + PREFIX_ASC + PREFIX_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ENDPOINT_ASC + ENDPOINT_DESC + PUBLIC_URL_PREFIX_ASC + PUBLIC_URL_PREFIX_DESC + PROVIDER_ASC + PROVIDER_DESC + ALLOWED_ORIGINS_ASC + ALLOWED_ORIGINS_DESC + RESTRICT_READS_ASC + RESTRICT_READS_DESC + HAS_PATH_SHARES_ASC + HAS_PATH_SHARES_DESC + PATH_SHARES_TABLE_ID_ASC + PATH_SHARES_TABLE_ID_DESC + UPLOAD_URL_EXPIRY_SECONDS_ASC + UPLOAD_URL_EXPIRY_SECONDS_DESC + DOWNLOAD_URL_EXPIRY_SECONDS_ASC + DOWNLOAD_URL_EXPIRY_SECONDS_DESC + DEFAULT_MAX_FILE_SIZE_ASC + DEFAULT_MAX_FILE_SIZE_DESC + MAX_FILENAME_LENGTH_ASC + MAX_FILENAME_LENGTH_DESC + CACHE_TTL_SECONDS_ASC + CACHE_TTL_SECONDS_DESC + MAX_BULK_FILES_ASC + MAX_BULK_FILES_DESC + MAX_BULK_TOTAL_SIZE_ASC + MAX_BULK_TOTAL_SIZE_DESC + HAS_VERSIONING_ASC + HAS_VERSIONING_DESC + HAS_CONTENT_HASH_ASC + HAS_CONTENT_HASH_DESC + HAS_CUSTOM_KEYS_ASC + HAS_CUSTOM_KEYS_DESC + HAS_AUDIT_LOG_ASC + HAS_AUDIT_LOG_DESC + HAS_CONFIRM_UPLOAD_ASC + HAS_CONFIRM_UPLOAD_DESC + CONFIRM_UPLOAD_DELAY_ASC + CONFIRM_UPLOAD_DELAY_DESC + FILE_EVENTS_TABLE_ID_ASC + FILE_EVENTS_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.""" + nodes: [EventsModule]! + + """ + A list of edges which contains the `EventsModule` and cursor to aid in pagination. + """ + edges: [EventsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `EventsModule` you could get from the connection.""" + totalCount: Int! +} + +type EventsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + eventsTableId: UUID! + eventsTableName: String! + eventAggregatesTableId: UUID! + eventAggregatesTableName: String! + eventTypesTableId: UUID! + eventTypesTableName: String! + levelsTableId: UUID! + levelsTableName: String! + levelRequirementsTableId: UUID! + levelRequirementsTableName: String! + levelGrantsTableId: UUID! + levelGrantsTableName: String! + achievementRewardsTableId: UUID! + 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: Int! + scope: String! + databaseOwned: Boolean! + prefix: String! + entityTableId: UUID + actorTableId: UUID! + apiName: String + privateApiName: String +} + +"""A `EventsModule` edge in the connection.""" +type EventsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EventsModule` at the end of the edge.""" + node: EventsModule +} + +""" +A filter to be used against `EventsModule` object types. All fields are combined with a logical ‘and.’ +""" +input EventsModuleFilter { + """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 `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 + + """Filter by the object’s `removeEvent` field.""" + removeEvent: StringFilter + + """Filter by the object’s `tgEvent` field.""" + tgEvent: StringFilter + + """Filter by the object’s `tgEventToggle` field.""" + tgEventToggle: StringFilter + + """Filter by the object’s `tgEventToggleBool` field.""" + tgEventToggleBool: StringFilter + + """Filter by the object’s `tgEventBool` field.""" + tgEventBool: StringFilter + + """Filter by the object’s `upsertAggregate` field.""" + 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.""" + levelAchieved: StringFilter + + """Filter by the object’s `tgCheckAchievements` field.""" + tgCheckAchievements: StringFilter + + """Filter by the object’s `grantAchievement` field.""" + grantAchievement: StringFilter + + """Filter by the object’s `tgAchievementReward` field.""" + tgAchievementReward: 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 `databaseOwned` field.""" + databaseOwned: BooleanFilter + + """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 `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [EventsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [EventsModuleFilter!] + + """Negates the expression.""" + not: EventsModuleFilter +} + +"""Methods to use when ordering `EventsModule`.""" +enum EventsModuleOrderBy { + 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 + EVENTS_TABLE_ID_ASC + EVENTS_TABLE_ID_DESC + EVENTS_TABLE_NAME_ASC + EVENTS_TABLE_NAME_DESC + EVENT_AGGREGATES_TABLE_ID_ASC + EVENT_AGGREGATES_TABLE_ID_DESC + EVENT_AGGREGATES_TABLE_NAME_ASC + EVENT_AGGREGATES_TABLE_NAME_DESC + EVENT_TYPES_TABLE_ID_ASC + EVENT_TYPES_TABLE_ID_DESC + EVENT_TYPES_TABLE_NAME_ASC + EVENT_TYPES_TABLE_NAME_DESC + LEVELS_TABLE_ID_ASC + LEVELS_TABLE_ID_DESC + LEVELS_TABLE_NAME_ASC + LEVELS_TABLE_NAME_DESC + LEVEL_REQUIREMENTS_TABLE_ID_ASC + LEVEL_REQUIREMENTS_TABLE_ID_DESC + LEVEL_REQUIREMENTS_TABLE_NAME_ASC + LEVEL_REQUIREMENTS_TABLE_NAME_DESC + LEVEL_GRANTS_TABLE_ID_ASC + LEVEL_GRANTS_TABLE_ID_DESC + LEVEL_GRANTS_TABLE_NAME_ASC + LEVEL_GRANTS_TABLE_NAME_DESC + ACHIEVEMENT_REWARDS_TABLE_ID_ASC + ACHIEVEMENT_REWARDS_TABLE_ID_DESC + ACHIEVEMENT_REWARDS_TABLE_NAME_ASC + ACHIEVEMENT_REWARDS_TABLE_NAME_DESC + RECORD_EVENT_ASC + RECORD_EVENT_DESC + REMOVE_EVENT_ASC + REMOVE_EVENT_DESC + TG_EVENT_ASC + TG_EVENT_DESC + TG_EVENT_TOGGLE_ASC + TG_EVENT_TOGGLE_DESC + TG_EVENT_TOGGLE_BOOL_ASC + TG_EVENT_TOGGLE_BOOL_DESC + TG_EVENT_BOOL_ASC + TG_EVENT_BOOL_DESC + UPSERT_AGGREGATE_ASC + 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 + LEVEL_ACHIEVED_DESC + TG_CHECK_ACHIEVEMENTS_ASC + TG_CHECK_ACHIEVEMENTS_DESC + GRANT_ACHIEVEMENT_ASC + GRANT_ACHIEVEMENT_DESC + TG_ACHIEVEMENT_REWARD_ASC + TG_ACHIEVEMENT_REWARD_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + DATABASE_OWNED_ASC + DATABASE_OWNED_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 +} + +"""A connection to a list of `EntityTypeProvision` values.""" +type EntityTypeProvisionConnection { + """A list of `EntityTypeProvision` objects.""" + nodes: [EntityTypeProvision]! + + """ + A list of edges which contains the `EntityTypeProvision` and cursor to aid in pagination. + """ + edges: [EntityTypeProvisionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `EntityTypeProvision` you could get from the connection. + """ + totalCount: Int! +} + +""" +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 + via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + Set table_provision to a single jsonb object (using the same shape as provision_table() / + blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + as an escape hatch to apply zero policies. +""" +type EntityTypeProvision { + """Unique identifier for this provision row.""" + id: UUID! + + """The database to provision this entity type in. Required.""" + databaseId: UUID! + + """ + Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + Stored in the entity_types registry table. + """ + name: String! + + """ + SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + and membership table names (prefix_memberships, prefix_members, etc.). + Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + """ + prefix: String! + + """ + Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. + """ + description: String! + + """ + Prefix of the parent entity type. The trigger resolves this to a membership_type integer + by looking up memberships_module WHERE prefix = parent_entity. + Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + (e.g. 'data_room' for a team_channel nested under data_room). + The parent type must already be provisioned before this INSERT. + """ + parentEntity: String! + + """ + Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + (e.g. prefix 'data_room' produces table 'data_rooms'). + Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + """ + tableName: String + + """ + Whether members of the parent entity can see child entities. Defaults to true. + When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + When false: only direct members of the entity itself can see it (private entity mode). + Controls whether the parent_member SELECT policy is created on the entity table. + Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + skip_entity_policies=true, since no default policies are being applied in those cases. + """ + isVisible: Boolean! + + """ + Whether to apply limits_module security for this type. Defaults to false. + The limits_module table structure is always created (memberships_module requires it), + but when false, no RLS policies are applied to the limits tables. + Set to true if this entity type needs configurable resource limits per membership. + """ + hasLimits: Boolean! + + """ + Whether to provision profiles_module for this type. Defaults to false. + Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + When true, creates profile tables and applies profiles security. + """ + hasProfiles: Boolean! + + """ + Whether to provision events_module for this type. Defaults to false. + Levels provide gamification/achievement tracking for members. + When true, creates level steps, achievements, and level tables with security. + """ + hasLevels: Boolean! + + """ + Whether to provision invites_module for this type. Defaults to false. + When true, the trigger inserts a row into invites_module which in turn + (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + repeated INSERTs safe. + """ + hasInvites: Boolean! + + """ + Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + When true, the trigger calls event_tracker() on the claimed_invites table with + event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + crediting the SENDER (inviter) when someone claims their invite code. + Developers can then define achievements in the blueprint achievements[] section + that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + """ + hasInviteAchievements: Boolean! + + """ + Optional JSON array of storage module definitions. Presence triggers provisioning + (same inference model as namespaces, functions, agents). + Each element provisions a separate storage module with its own tables + ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + NULL = do not provision storage. '[{}]' = provision one default storage module. + Each array element recognizes (all optional): + - key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + (storage_key accepted for backward compat) + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + """ + storage: JSON + + """ + Optional JSON array of namespace module definitions. Presence triggers provisioning. + NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + Registers manage_namespaces permission bit on first provision. + Example: namespaces := '[{}]'::jsonb + """ + namespaces: JSON + + """ + Optional JSON array of function module definitions. Presence triggers provisioning. + NULL = do not provision functions. '[{}]' = provision one default function module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + with entity-scoped RLS and a job trigger dispatching function:provision tasks. + Registers manage_functions + invoke_functions permission bits on first provision. + Example: functions := '[{}]'::jsonb + """ + functions: JSON + + """ + Optional JSON array of graph module definitions. Presence triggers provisioning. + NULL = do not provision graphs. '[{}]' = provision one default graph module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + Registers manage_graphs + execute_graphs permission bits on first provision. + Graph module requires a merkle_store_module_id dependency, so entity_type_provision + only registers permissions here. The graph module itself must be provisioned + separately with the merkle store dependency resolved. + Example: graphs := '[{}]'::jsonb + """ + graphs: JSON + agents: JSON + + """ + Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + Use this only when you want the entity table provisioned with zero policies (e.g. because you + plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + false and either accepting the five defaults (table_provision=NULL) or overriding them via + table_provision. + Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + - SELECT (self_member): direct members of the entity can see it + - INSERT: create_entity permission on the parent entity + - UPDATE: admin_entity permission on the entity itself + - DELETE: owner of the entity can delete it + """ + skipEntityPolicies: Boolean! + + """ + Single jsonb object describing the full security setup to apply to the entity table. + Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + entries, so an entity table is configured the same way an ordinary blueprint table is. + Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + table_provision.policies[] (is_visible becomes a no-op on this path). + Recognized keys (all optional): + - use_rls (boolean, default true) + - nodes (jsonb array of {"$type","data"} Data* module entries) + - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + - grants (jsonb array of grant objects; each with roles[] and privileges[]) + - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + against the newly created entity table. + Example — override with two SELECT policies: + table_provision := jsonb_build_object( + 'policies', jsonb_build_array( + jsonb_build_object( + '$type', 'AuthzEntityMembership', + 'privileges', jsonb_build_array('select'), + 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + 'name', 'self_member' + ), + jsonb_build_object( + '$type', 'AuthzDirectOwner', + 'privileges', jsonb_build_array('select', 'update'), + 'data', jsonb_build_object('owner_field', 'owner_id') + ) + ) + ) + """ + tableProvision: JSON + + """ + Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + This is the ID used in entity_types, memberships_module, and all module tables. + """ + outMembershipType: Int + + """ + Output: the UUID of the created entity table. Populated by the trigger. + Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + """ + outEntityTableId: UUID + + """ + Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. + """ + outEntityTableName: String + + """ + Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + Populated by the trigger. Useful for verifying which modules were provisioned. + """ + outInstalledModules: [String] + + """ + Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. + """ + outStorageModuleId: UUID + + """ + Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. + """ + outBucketsTableId: UUID + + """ + Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. + """ + outFilesTableId: UUID + outPathSharesTableId: UUID + + """ + Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + (i.e. the invites_module row was created in a previous run). + """ + outInvitesModuleId: UUID + + """ + Output: the UUID of the namespace_module row created (or found) for this entity type. + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceModuleId: UUID + + """ + Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespacesTableId: UUID + + """ + Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceEventsTableId: UUID + outFunctionModuleId: UUID + outDefinitionsTableId: UUID + outInvocationsTableId: UUID + outExecutionLogsTableId: UUID + outSecretDefinitionsTableId: UUID + outRequirementsTableId: UUID + outConfigRequirementsTableId: UUID + outGraphModuleId: UUID + outGraphsTableId: UUID + outAgentModuleId: UUID +} + +"""A `EntityTypeProvision` edge in the connection.""" +type EntityTypeProvisionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EntityTypeProvision` at the end of the edge.""" + node: EntityTypeProvision +} + +""" +A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ +""" +input EntityTypeProvisionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `parentEntity` field.""" + parentEntity: StringFilter + + """Filter by the object’s `tableName` field.""" + tableName: StringFilter + + """Filter by the object’s `isVisible` field.""" + isVisible: BooleanFilter + + """Filter by the object’s `hasLimits` field.""" + hasLimits: BooleanFilter + + """Filter by the object’s `hasProfiles` field.""" + hasProfiles: BooleanFilter + + """Filter by the object’s `hasLevels` field.""" + hasLevels: BooleanFilter + + """Filter by the object’s `hasInvites` field.""" + hasInvites: BooleanFilter + + """Filter by the object’s `hasInviteAchievements` field.""" + hasInviteAchievements: BooleanFilter + + """Filter by the object’s `storage` field.""" + storage: JSONFilter + + """Filter by the object’s `namespaces` field.""" + namespaces: JSONFilter + + """Filter by the object’s `functions` field.""" + functions: JSONFilter + + """Filter by the object’s `graphs` field.""" + graphs: JSONFilter + + """Filter by the object’s `agents` field.""" + agents: JSONFilter + + """Filter by the object’s `skipEntityPolicies` field.""" + skipEntityPolicies: BooleanFilter + + """Filter by the object’s `tableProvision` field.""" + tableProvision: JSONFilter + + """Filter by the object’s `outMembershipType` field.""" + outMembershipType: IntFilter + + """Filter by the object’s `outEntityTableId` field.""" + outEntityTableId: UUIDFilter + + """Filter by the object’s `outEntityTableName` field.""" + outEntityTableName: StringFilter + + """Filter by the object’s `outInstalledModules` field.""" + outInstalledModules: StringListFilter + + """Filter by the object’s `outStorageModuleId` field.""" + outStorageModuleId: UUIDFilter + + """Filter by the object’s `outBucketsTableId` field.""" + outBucketsTableId: UUIDFilter + + """Filter by the object’s `outFilesTableId` field.""" + outFilesTableId: UUIDFilter + + """Filter by the object’s `outPathSharesTableId` field.""" + outPathSharesTableId: UUIDFilter + + """Filter by the object’s `outInvitesModuleId` field.""" + outInvitesModuleId: UUIDFilter + + """Filter by the object’s `outNamespaceModuleId` field.""" + outNamespaceModuleId: UUIDFilter + + """Filter by the object’s `outNamespacesTableId` field.""" + outNamespacesTableId: UUIDFilter + + """Filter by the object’s `outNamespaceEventsTableId` field.""" + outNamespaceEventsTableId: UUIDFilter + + """Filter by the object’s `outFunctionModuleId` field.""" + outFunctionModuleId: UUIDFilter + + """Filter by the object’s `outDefinitionsTableId` field.""" + outDefinitionsTableId: UUIDFilter + + """Filter by the object’s `outInvocationsTableId` field.""" + 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 `outRequirementsTableId` field.""" + outRequirementsTableId: UUIDFilter + + """Filter by the object’s `outConfigRequirementsTableId` field.""" + outConfigRequirementsTableId: UUIDFilter + + """Filter by the object’s `outGraphModuleId` field.""" + outGraphModuleId: UUIDFilter + + """Filter by the object’s `outGraphsTableId` field.""" + outGraphsTableId: UUIDFilter + + """Filter by the object’s `outAgentModuleId` field.""" + outAgentModuleId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [EntityTypeProvisionFilter!] + + """Checks for any expressions in this list.""" + or: [EntityTypeProvisionFilter!] + + """Negates the expression.""" + not: EntityTypeProvisionFilter +} + +"""Methods to use when ordering `EntityTypeProvision`.""" +enum EntityTypeProvisionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + PREFIX_ASC + PREFIX_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PARENT_ENTITY_ASC + PARENT_ENTITY_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + IS_VISIBLE_ASC + IS_VISIBLE_DESC + HAS_LIMITS_ASC + HAS_LIMITS_DESC + HAS_PROFILES_ASC + HAS_PROFILES_DESC + HAS_LEVELS_ASC + HAS_LEVELS_DESC + HAS_INVITES_ASC + HAS_INVITES_DESC + HAS_INVITE_ACHIEVEMENTS_ASC + HAS_INVITE_ACHIEVEMENTS_DESC + STORAGE_ASC + STORAGE_DESC + NAMESPACES_ASC + NAMESPACES_DESC + FUNCTIONS_ASC + FUNCTIONS_DESC + GRAPHS_ASC + GRAPHS_DESC + AGENTS_ASC + AGENTS_DESC + SKIP_ENTITY_POLICIES_ASC + SKIP_ENTITY_POLICIES_DESC + TABLE_PROVISION_ASC + TABLE_PROVISION_DESC + OUT_MEMBERSHIP_TYPE_ASC + OUT_MEMBERSHIP_TYPE_DESC + OUT_ENTITY_TABLE_ID_ASC + OUT_ENTITY_TABLE_ID_DESC + OUT_ENTITY_TABLE_NAME_ASC + OUT_ENTITY_TABLE_NAME_DESC + OUT_INSTALLED_MODULES_ASC + OUT_INSTALLED_MODULES_DESC + OUT_STORAGE_MODULE_ID_ASC + OUT_STORAGE_MODULE_ID_DESC + OUT_BUCKETS_TABLE_ID_ASC + OUT_BUCKETS_TABLE_ID_DESC + OUT_FILES_TABLE_ID_ASC + OUT_FILES_TABLE_ID_DESC + OUT_PATH_SHARES_TABLE_ID_ASC + OUT_PATH_SHARES_TABLE_ID_DESC + OUT_INVITES_MODULE_ID_ASC + OUT_INVITES_MODULE_ID_DESC + OUT_NAMESPACE_MODULE_ID_ASC + OUT_NAMESPACE_MODULE_ID_DESC + OUT_NAMESPACES_TABLE_ID_ASC + OUT_NAMESPACES_TABLE_ID_DESC + OUT_NAMESPACE_EVENTS_TABLE_ID_ASC + OUT_NAMESPACE_EVENTS_TABLE_ID_DESC + OUT_FUNCTION_MODULE_ID_ASC + OUT_FUNCTION_MODULE_ID_DESC + OUT_DEFINITIONS_TABLE_ID_ASC + OUT_DEFINITIONS_TABLE_ID_DESC + OUT_INVOCATIONS_TABLE_ID_ASC + 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_REQUIREMENTS_TABLE_ID_ASC + OUT_REQUIREMENTS_TABLE_ID_DESC + OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC + OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC + OUT_GRAPH_MODULE_ID_ASC + OUT_GRAPH_MODULE_ID_DESC + OUT_GRAPHS_TABLE_ID_ASC + OUT_GRAPHS_TABLE_ID_DESC + OUT_AGENT_MODULE_ID_ASC + OUT_AGENT_MODULE_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! +} + +"""Information about a table field/column""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! + isPrimaryKey: Boolean! + isForeignKey: Boolean! + description: String +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean + subtype: 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 +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + """ + Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + """ + constructBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ConstructBlueprintInput! + ): ConstructBlueprintPayload + + """ + Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + """ + provisionFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionFullTextSearchInput! + ): ProvisionFullTextSearchPayload + + """ + Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + """ + provisionIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionIndexInput! + ): ProvisionIndexPayload + + """ + Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + """ + provisionCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionCheckConstraintInput! + ): ProvisionCheckConstraintPayload + + """ + Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + """ + provisionUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionUniqueConstraintInput! + ): ProvisionUniqueConstraintPayload + + """ + 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. + """ + copyTemplateToBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CopyTemplateToBlueprintInput! + ): CopyTemplateToBlueprintPayload + + """ + Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + """ + provisionSpatialRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionSpatialRelationInput! + ): ProvisionSpatialRelationPayload + + """ + Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + """ + provisionTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionTableInput! + ): ProvisionTablePayload + + """ + Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + """ + provisionRelation( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionRelationInput! + ): ProvisionRelationPayload + + """Creates a single `DefaultIdsModule`.""" + createDefaultIdsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDefaultIdsModuleInput! + ): CreateDefaultIdsModulePayload + + """Creates a single `MembershipTypesModule`.""" + createMembershipTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDevicesModuleInput! + ): CreateDevicesModulePayload + + """Creates a single `I18NModule`.""" + createI18NModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserSettingsModuleInput! + ): CreateUserSettingsModulePayload + + """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 `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 `ConnectedAccountsModule`.""" + createConnectedAccountsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConnectedAccountsModuleInput! + ): CreateConnectedAccountsModulePayload + + """Creates a single `EmailsModule`.""" + createEmailsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmailsModuleInput! + ): CreateEmailsModulePayload + + """Creates a single `PhoneNumbersModule`.""" + createPhoneNumbersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePhoneNumbersModuleInput! + ): CreatePhoneNumbersModulePayload + + """Creates a single `RateLimitsModule`.""" + createRateLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRateLimitsModuleInput! + ): CreateRateLimitsModulePayload + + """Creates a single `UsersModule`.""" + createUsersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUsersModuleInput! + ): CreateUsersModulePayload + + """Creates a single `WebauthnCredentialsModule`.""" + createWebauthnCredentialsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateWebauthnCredentialsModuleInput! + ): CreateWebauthnCredentialsModulePayload + + """Creates a single `CryptoAddressesModule`.""" + createCryptoAddressesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCryptoAddressesModuleInput! + ): CreateCryptoAddressesModulePayload + + """Creates a single `DenormalizedTableField`.""" + createDenormalizedTableField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDenormalizedTableFieldInput! + ): CreateDenormalizedTableFieldPayload + + """Creates a single `RlsModule`.""" + createRlsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRlsModuleInput! + ): CreateRlsModulePayload + + """Creates a single `Blueprint`.""" + createBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBlueprintInput! + ): CreateBlueprintPayload + + """Creates a single `CryptoAuthModule`.""" + createCryptoAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCryptoAuthModuleInput! + ): CreateCryptoAuthModulePayload + + """Creates a single `RateLimitMetersModule`.""" + createRateLimitMetersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRateLimitMetersModuleInput! + ): CreateRateLimitMetersModulePayload + + """Creates a single `BlueprintConstruction`.""" + createBlueprintConstruction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBlueprintConstructionInput! + ): CreateBlueprintConstructionPayload + + """Creates a single `SessionsModule`.""" + createSessionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSessionsModuleInput! + ): CreateSessionsModulePayload + + """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: CreateMerkleStoreModuleInput! + ): CreateMerkleStoreModulePayload + + """Creates a single `SecureTableProvision`.""" + createSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSecureTableProvisionInput! + ): CreateSecureTableProvisionPayload + + """Creates a single `ConfigSecretsModule`.""" + createConfigSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConfigSecretsModuleInput! + ): CreateConfigSecretsModulePayload + + """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 `DatabaseProvisionModule`.""" + createDatabaseProvisionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseProvisionModuleInput! + ): CreateDatabaseProvisionModulePayload + + """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: CreateRealtimeModuleInput! + ): CreateRealtimeModulePayload + + """Creates a single `WebauthnAuthModule`.""" + createWebauthnAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateWebauthnAuthModuleInput! + ): CreateWebauthnAuthModulePayload + + """Creates a single `NamespaceModule`.""" + createNamespaceModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNamespaceModuleInput! + ): CreateNamespaceModulePayload + + """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: CreateComputeLogModuleInput! + ): CreateComputeLogModulePayload + + """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: CreateInferenceLogModuleInput! + ): CreateInferenceLogModulePayload + + """Creates a single `StorageLogModule`.""" + createStorageLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateStorageLogModuleInput! + ): CreateStorageLogModulePayload + + """Creates a single `TransferLogModule`.""" + createTransferLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTransferLogModuleInput! + ): CreateTransferLogModulePayload + + """Creates a single `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 `GraphModule`.""" + createGraphModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateGraphModuleInput! + ): CreateGraphModulePayload + + """Creates a single `NotificationsModule`.""" + createNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNotificationsModuleInput! + ): CreateNotificationsModulePayload + + """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: CreatePlansModuleInput! + ): CreatePlansModulePayload + + """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 `BillingModule`.""" + createBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBillingModuleInput! + ): CreateBillingModulePayload + + """Creates a single `BillingProviderModule`.""" + createBillingProviderModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBillingProviderModuleInput! + ): CreateBillingProviderModulePayload + + """Creates a single `ProfilesModule`.""" + createProfilesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProfilesModuleInput! + ): CreateProfilesModulePayload + + """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 `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 `FunctionModule`.""" + createFunctionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionModuleInput! + ): CreateFunctionModulePayload + + """Creates a single `UserAuthModule`.""" + createUserAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserAuthModuleInput! + ): CreateUserAuthModulePayload + + """Creates a single `AgentModule`.""" + createAgentModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentModuleInput! + ): CreateAgentModulePayload + + """Creates a single `LimitsModule`.""" + createLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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 `StorageModule`.""" + createStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateStorageModuleInput! + ): CreateStorageModulePayload + + """Creates a single `EventsModule`.""" + createEventsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEventsModuleInput! + ): CreateEventsModulePayload + + """Creates a single `EntityTypeProvision`.""" + createEntityTypeProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEntityTypeProvisionInput! + ): CreateEntityTypeProvisionPayload + + """Updates a single `DefaultIdsModule` using a unique key and a patch.""" + updateDefaultIdsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDefaultIdsModuleInput! + ): UpdateDefaultIdsModulePayload + + """ + Updates a single `MembershipTypesModule` using a unique key and a patch. + """ + updateMembershipTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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. + """ + updateSessionSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDevicesModuleInput! + ): UpdateDevicesModulePayload + + """Updates a single `I18NModule` using a unique key and a patch.""" + updateI18NModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserSettingsModuleInput! + ): UpdateUserSettingsModulePayload + + """ + 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 `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 `ConnectedAccountsModule` using a unique key and a patch. + """ + updateConnectedAccountsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConnectedAccountsModuleInput! + ): UpdateConnectedAccountsModulePayload + + """Updates a single `EmailsModule` using a unique key and a patch.""" + updateEmailsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailsModuleInput! + ): UpdateEmailsModulePayload + + """Updates a single `PhoneNumbersModule` using a unique key and a patch.""" + updatePhoneNumbersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePhoneNumbersModuleInput! + ): UpdatePhoneNumbersModulePayload + + """Updates a single `RateLimitsModule` using a unique key and a patch.""" + updateRateLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRateLimitsModuleInput! + ): UpdateRateLimitsModulePayload + + """Updates a single `UsersModule` using a unique key and a patch.""" + updateUsersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUsersModuleInput! + ): UpdateUsersModulePayload + + """ + Updates a single `WebauthnCredentialsModule` using a unique key and a patch. + """ + updateWebauthnCredentialsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateWebauthnCredentialsModuleInput! + ): UpdateWebauthnCredentialsModulePayload + + """ + Updates a single `CryptoAddressesModule` using a unique key and a patch. + """ + updateCryptoAddressesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCryptoAddressesModuleInput! + ): UpdateCryptoAddressesModulePayload + + """ + Updates a single `DenormalizedTableField` using a unique key and a patch. + """ + updateDenormalizedTableField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDenormalizedTableFieldInput! + ): UpdateDenormalizedTableFieldPayload + + """Updates a single `RlsModule` using a unique key and a patch.""" + updateRlsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRlsModuleInput! + ): UpdateRlsModulePayload + + """Updates a single `Blueprint` using a unique key and a patch.""" + updateBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBlueprintInput! + ): UpdateBlueprintPayload + + """Updates a single `CryptoAuthModule` using a unique key and a patch.""" + updateCryptoAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCryptoAuthModuleInput! + ): UpdateCryptoAuthModulePayload + + """ + Updates a single `RateLimitMetersModule` using a unique key and a patch. + """ + updateRateLimitMetersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRateLimitMetersModuleInput! + ): UpdateRateLimitMetersModulePayload + + """ + Updates a single `BlueprintConstruction` using a unique key and a patch. + """ + updateBlueprintConstruction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBlueprintConstructionInput! + ): UpdateBlueprintConstructionPayload + + """Updates a single `SessionsModule` using a unique key and a patch.""" + updateSessionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSessionsModuleInput! + ): UpdateSessionsModulePayload + + """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: UpdateMerkleStoreModuleInput! + ): UpdateMerkleStoreModulePayload + + """ + Updates a single `SecureTableProvision` using a unique key and a patch. + """ + updateSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSecureTableProvisionInput! + ): UpdateSecureTableProvisionPayload + + """Updates a single `ConfigSecretsModule` using a unique key and a patch.""" + updateConfigSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConfigSecretsModuleInput! + ): UpdateConfigSecretsModulePayload + + """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 `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: UpdateDatabaseProvisionModuleInput! + ): UpdateDatabaseProvisionModulePayload + + """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: UpdateRealtimeModuleInput! + ): UpdateRealtimeModulePayload + + """Updates a single `WebauthnAuthModule` using a unique key and a patch.""" + updateWebauthnAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateWebauthnAuthModuleInput! + ): UpdateWebauthnAuthModulePayload + + """Updates a single `NamespaceModule` using a unique key and a patch.""" + updateNamespaceModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNamespaceModuleInput! + ): UpdateNamespaceModulePayload + + """Updates a single `ComputeLogModule` using a unique key and a patch.""" + updateComputeLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateComputeLogModuleInput! + ): UpdateComputeLogModulePayload + + """Updates a single `InferenceLogModule` using a unique key and a patch.""" + updateInferenceLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInferenceLogModuleInput! + ): UpdateInferenceLogModulePayload + + """Updates a single `StorageLogModule` using a unique key and a patch.""" + updateStorageLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateStorageLogModuleInput! + ): UpdateStorageLogModulePayload + + """Updates a single `TransferLogModule` using a unique key and a patch.""" + updateTransferLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTransferLogModuleInput! + ): UpdateTransferLogModulePayload + + """Updates a single `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 `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: UpdateGraphModuleInput! + ): UpdateGraphModulePayload + + """Updates a single `NotificationsModule` using a unique key and a patch.""" + updateNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNotificationsModuleInput! + ): UpdateNotificationsModulePayload + + """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: UpdatePlansModuleInput! + ): UpdatePlansModulePayload + + """Updates a single `HierarchyModule` using a unique key and a patch.""" + updateHierarchyModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateHierarchyModuleInput! + ): UpdateHierarchyModulePayload + + """Updates a single `BillingModule` using a unique key and a patch.""" + updateBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBillingModuleInput! + ): UpdateBillingModulePayload + + """ + Updates a single `BillingProviderModule` using a unique key and a patch. + """ + updateBillingProviderModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBillingProviderModuleInput! + ): UpdateBillingProviderModulePayload + + """Updates a single `ProfilesModule` using a unique key and a patch.""" + updateProfilesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProfilesModuleInput! + ): UpdateProfilesModulePayload + + """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 `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 `FunctionModule` using a unique key and a patch.""" + updateFunctionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionModuleInput! + ): UpdateFunctionModulePayload + + """Updates a single `UserAuthModule` using a unique key and a patch.""" + updateUserAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserAuthModuleInput! + ): UpdateUserAuthModulePayload + + """Updates a single `AgentModule` using a unique key and a patch.""" + updateAgentModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentModuleInput! + ): UpdateAgentModulePayload + + """Updates a single `LimitsModule` using a unique key and a patch.""" + updateLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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 `StorageModule` using a unique key and a patch.""" + updateStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateStorageModuleInput! + ): UpdateStorageModulePayload + + """Updates a single `EventsModule` using a unique key and a patch.""" + updateEventsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEventsModuleInput! + ): UpdateEventsModulePayload + + """Updates a single `EntityTypeProvision` using a unique key and a patch.""" + updateEntityTypeProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEntityTypeProvisionInput! + ): UpdateEntityTypeProvisionPayload + + """Deletes a single `DefaultIdsModule` using a unique key.""" + deleteDefaultIdsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDefaultIdsModuleInput! + ): DeleteDefaultIdsModulePayload + + """Deletes a single `MembershipTypesModule` using a unique key.""" + deleteMembershipTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDevicesModuleInput! + ): DeleteDevicesModulePayload + + """Deletes a single `I18NModule` using a unique key.""" + deleteI18NModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserSettingsModuleInput! + ): DeleteUserSettingsModulePayload + + """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 `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 `ConnectedAccountsModule` using a unique key.""" + deleteConnectedAccountsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConnectedAccountsModuleInput! + ): DeleteConnectedAccountsModulePayload + + """Deletes a single `EmailsModule` using a unique key.""" + deleteEmailsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailsModuleInput! + ): DeleteEmailsModulePayload + + """Deletes a single `PhoneNumbersModule` using a unique key.""" + deletePhoneNumbersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePhoneNumbersModuleInput! + ): DeletePhoneNumbersModulePayload + + """Deletes a single `RateLimitsModule` using a unique key.""" + deleteRateLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRateLimitsModuleInput! + ): DeleteRateLimitsModulePayload + + """Deletes a single `UsersModule` using a unique key.""" + deleteUsersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUsersModuleInput! + ): DeleteUsersModulePayload + + """Deletes a single `WebauthnCredentialsModule` using a unique key.""" + deleteWebauthnCredentialsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteWebauthnCredentialsModuleInput! + ): DeleteWebauthnCredentialsModulePayload + + """Deletes a single `CryptoAddressesModule` using a unique key.""" + deleteCryptoAddressesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCryptoAddressesModuleInput! + ): DeleteCryptoAddressesModulePayload + + """Deletes a single `DenormalizedTableField` using a unique key.""" + deleteDenormalizedTableField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDenormalizedTableFieldInput! + ): DeleteDenormalizedTableFieldPayload + + """Deletes a single `RlsModule` using a unique key.""" + deleteRlsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRlsModuleInput! + ): DeleteRlsModulePayload + + """Deletes a single `Blueprint` using a unique key.""" + deleteBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBlueprintInput! + ): DeleteBlueprintPayload + + """Deletes a single `CryptoAuthModule` using a unique key.""" + deleteCryptoAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCryptoAuthModuleInput! + ): DeleteCryptoAuthModulePayload + + """Deletes a single `RateLimitMetersModule` using a unique key.""" + deleteRateLimitMetersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRateLimitMetersModuleInput! + ): DeleteRateLimitMetersModulePayload + + """Deletes a single `BlueprintConstruction` using a unique key.""" + deleteBlueprintConstruction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBlueprintConstructionInput! + ): DeleteBlueprintConstructionPayload + + """Deletes a single `SessionsModule` using a unique key.""" + deleteSessionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSessionsModuleInput! + ): DeleteSessionsModulePayload + + """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: DeleteMerkleStoreModuleInput! + ): DeleteMerkleStoreModulePayload + + """Deletes a single `SecureTableProvision` using a unique key.""" + deleteSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSecureTableProvisionInput! + ): DeleteSecureTableProvisionPayload + + """Deletes a single `ConfigSecretsModule` using a unique key.""" + deleteConfigSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConfigSecretsModuleInput! + ): DeleteConfigSecretsModulePayload + + """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 `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: DeleteDatabaseProvisionModuleInput! + ): DeleteDatabaseProvisionModulePayload + + """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: DeleteRealtimeModuleInput! + ): DeleteRealtimeModulePayload + + """Deletes a single `WebauthnAuthModule` using a unique key.""" + deleteWebauthnAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteWebauthnAuthModuleInput! + ): DeleteWebauthnAuthModulePayload + + """Deletes a single `NamespaceModule` using a unique key.""" + deleteNamespaceModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNamespaceModuleInput! + ): DeleteNamespaceModulePayload + + """Deletes a single `ComputeLogModule` using a unique key.""" + deleteComputeLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteComputeLogModuleInput! + ): DeleteComputeLogModulePayload + + """Deletes a single `InferenceLogModule` using a unique key.""" + deleteInferenceLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInferenceLogModuleInput! + ): DeleteInferenceLogModulePayload + + """Deletes a single `StorageLogModule` using a unique key.""" + deleteStorageLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteStorageLogModuleInput! + ): DeleteStorageLogModulePayload + + """Deletes a single `TransferLogModule` using a unique key.""" + deleteTransferLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTransferLogModuleInput! + ): DeleteTransferLogModulePayload + + """Deletes a single `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 `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: DeleteGraphModuleInput! + ): DeleteGraphModulePayload + + """Deletes a single `NotificationsModule` using a unique key.""" + deleteNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNotificationsModuleInput! + ): DeleteNotificationsModulePayload + + """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: DeletePlansModuleInput! + ): DeletePlansModulePayload + + """Deletes a single `HierarchyModule` using a unique key.""" + deleteHierarchyModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteHierarchyModuleInput! + ): DeleteHierarchyModulePayload + + """Deletes a single `BillingModule` using a unique key.""" + deleteBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBillingModuleInput! + ): DeleteBillingModulePayload + + """Deletes a single `BillingProviderModule` using a unique key.""" + deleteBillingProviderModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBillingProviderModuleInput! + ): DeleteBillingProviderModulePayload + + """Deletes a single `ProfilesModule` using a unique key.""" + deleteProfilesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProfilesModuleInput! + ): DeleteProfilesModulePayload + + """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 `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 `FunctionModule` using a unique key.""" + deleteFunctionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionModuleInput! + ): DeleteFunctionModulePayload + + """Deletes a single `UserAuthModule` using a unique key.""" + deleteUserAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserAuthModuleInput! + ): DeleteUserAuthModulePayload + + """Deletes a single `AgentModule` using a unique key.""" + deleteAgentModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentModuleInput! + ): DeleteAgentModulePayload + + """Deletes a single `LimitsModule` using a unique key.""" + deleteLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + 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 `StorageModule` using a unique key.""" + deleteStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteStorageModuleInput! + ): DeleteStorageModulePayload + + """Deletes a single `EventsModule` using a unique key.""" + deleteEventsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEventsModuleInput! + ): DeleteEventsModulePayload + + """Deletes a single `EntityTypeProvision` using a unique key.""" + deleteEntityTypeProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEntityTypeProvisionInput! + ): DeleteEntityTypeProvisionPayload + + """ + 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 `constructBlueprint` mutation.""" +type ConstructBlueprintPayload { + """ + The 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 `constructBlueprint` mutation.""" +input ConstructBlueprintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + blueprintId: UUID + schemaId: UUID +} + +"""The output of our `provisionFullTextSearch` mutation.""" +type ProvisionFullTextSearchPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `provisionFullTextSearch` mutation.""" +input ProvisionFullTextSearchInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + databaseId: UUID + tableId: UUID + definition: JSON +} + +"""The output of our `provisionIndex` mutation.""" +type ProvisionIndexPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `provisionIndex` mutation.""" +input ProvisionIndexInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + databaseId: UUID + tableId: UUID + definition: JSON +} + +"""The output of our `provisionCheckConstraint` mutation.""" +type ProvisionCheckConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `provisionCheckConstraint` mutation.""" +input ProvisionCheckConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + databaseId: UUID + tableId: UUID + definition: JSON +} + +"""The output of our `provisionUniqueConstraint` mutation.""" +type ProvisionUniqueConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `provisionUniqueConstraint` mutation.""" +input ProvisionUniqueConstraintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + databaseId: UUID + tableId: UUID + definition: JSON +} + +"""The output of our `copyTemplateToBlueprint` mutation.""" +type CopyTemplateToBlueprintPayload { + """ + The 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 `copyTemplateToBlueprint` mutation.""" +input CopyTemplateToBlueprintInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + templateId: UUID + databaseId: UUID + ownerId: UUID + nameOverride: String + displayNameOverride: String +} + +"""The output of our `provisionSpatialRelation` mutation.""" +type ProvisionSpatialRelationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `provisionSpatialRelation` mutation.""" +input ProvisionSpatialRelationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + pDatabaseId: UUID + pSourceTableId: UUID + pSourceFieldId: UUID + pTargetTableId: UUID + pTargetFieldId: UUID + pName: String + pOperator: String + pParamName: String +} + +"""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 `UserStateModule` mutation.""" +type CreateUserStateModulePayload { + """ + The exact 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 created 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 create `UserStateModule` mutation.""" +input CreateUserStateModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `UserStateModule` to be created by this mutation.""" + userStateModule: UserStateModuleInput! +} + +"""An input for mutations affecting `UserStateModule`""" +input UserStateModuleInput { + 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 + + """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 + + """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 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 + + """The `SessionSecretsModule` to be created by this mutation.""" + sessionSecretsModule: SessionSecretsModuleInput! +} + +"""An input for mutations affecting `SessionSecretsModule`""" +input SessionSecretsModuleInput { + 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 +} + +"""The output of our create `ConfigSecretsOrgModule` mutation.""" +type CreateConfigSecretsOrgModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConfigSecretsOrgModule` that was created by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge +} + +"""All input for the create `ConfigSecretsOrgModule` mutation.""" +input CreateConfigSecretsOrgModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ConfigSecretsOrgModule` to be created by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModuleInput! +} + +"""An input for mutations affecting `ConfigSecretsOrgModule`""" +input ConfigSecretsOrgModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String + apiName: String + privateApiName: String +} + +"""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 + + """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 + + """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 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 + + """The `DevicesModule` to be created by this mutation.""" + devicesModule: DevicesModuleInput! +} + +"""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 `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 `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 `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 `I18NModule` to be created by this mutation.""" + i18NModule: I18NModuleInput! +} + +"""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 `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 `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 `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 `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 `UserCredentialsModule` to be created by this mutation.""" + userCredentialsModule: UserCredentialsModuleInput! +} + +"""An input for mutations affecting `UserCredentialsModule`""" +input UserCredentialsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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 `UserSettingsModule` to be created by this mutation.""" + userSettingsModule: UserSettingsModuleInput! +} + +"""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 `ConfigSecretsUserModule` mutation.""" +type CreateConfigSecretsUserModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConfigSecretsUserModule` that was created by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge +} + +"""All input for the create `ConfigSecretsUserModule` mutation.""" +input CreateConfigSecretsUserModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ConfigSecretsUserModule` to be created by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModuleInput! +} + +"""An input for mutations affecting `ConfigSecretsUserModule`""" +input ConfigSecretsUserModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String + configDefinitionsTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our create `IdentityProvidersModule` mutation.""" +type CreateIdentityProvidersModulePayload { + """ + The exact 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 created 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 `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 create `IdentityProvidersModule` mutation.""" +input CreateIdentityProvidersModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `IdentityProvidersModule` to be created by this mutation.""" + identityProvidersModule: IdentityProvidersModuleInput! +} + +"""An input for mutations affecting `IdentityProvidersModule`""" +input IdentityProvidersModuleInput { + 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 + tableId: UUID + tableName: String + apiName: 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 `ConnectedAccountsModule`""" +input ConnectedAccountsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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 `EmailsModule` to be created by this mutation.""" + emailsModule: EmailsModuleInput! +} + +"""An input for mutations affecting `EmailsModule`""" +input EmailsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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 `PhoneNumbersModule` to be created by this mutation.""" + phoneNumbersModule: PhoneNumbersModuleInput! +} + +"""An input for mutations affecting `PhoneNumbersModule`""" +input PhoneNumbersModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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 `RateLimitsModule` to be created by this mutation.""" + rateLimitsModule: RateLimitsModuleInput! +} + +"""An input for mutations affecting `RateLimitsModule`""" +input RateLimitsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + rateLimitSettingsTableId: UUID + ipRateLimitsTableId: UUID + rateLimitsTableId: UUID + rateLimitSettingsTable: String + ipRateLimitsTable: String + rateLimitsTable: String +} + +"""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 `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 `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 `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 `UsersModule` to be created by this mutation.""" + usersModule: UsersModuleInput! +} + +"""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 `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 `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 `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 `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 `WebauthnCredentialsModule` to be created by this mutation.""" + webauthnCredentialsModule: WebauthnCredentialsModuleInput! +} + +"""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 `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 `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 `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 `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 `CryptoAddressesModule` to be created by this mutation.""" + cryptoAddressesModule: CryptoAddressesModuleInput! +} + +"""An input for mutations affecting `CryptoAddressesModule`""" +input CryptoAddressesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + cryptoNetwork: String + 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. + """ + 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 `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 `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 `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 `RlsModule` to be created by this mutation.""" + rlsModule: RlsModuleInput! +} + +"""An input for mutations affecting `RlsModule`""" +input RlsModuleInput { + 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 +} + +"""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 `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 `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 `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 `Blueprint` to be created by this mutation.""" + blueprint: BlueprintInput! +} + +"""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! + + """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 `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 `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 `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 `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 `CryptoAuthModule` to be created by this mutation.""" + cryptoAuthModule: CryptoAuthModuleInput! +} + +"""An input for mutations affecting `CryptoAuthModule`""" +input CryptoAuthModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + 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 `RateLimitMetersModule` mutation.""" +type CreateRateLimitMetersModulePayload { + """ + The exact 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 + + """ + 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 +} + +"""All input for the create `RateLimitMetersModule` mutation.""" +input CreateRateLimitMetersModuleInput { + """ + An arbitrary string 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! +} + +"""An input for mutations affecting `RateLimitMetersModule`""" +input RateLimitMetersModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + rateLimitStateTableId: UUID + rateLimitStateTableName: String + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String + checkRateLimitFunction: String + prefix: String + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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 `BlueprintConstruction` to be created by this mutation.""" + blueprintConstruction: BlueprintConstructionInput! +} + +"""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 + + """ + 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 `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 `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 `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 `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 `SessionsModule` to be created by this mutation.""" + sessionsModule: SessionsModuleInput! +} + +"""An input for mutations affecting `SessionsModule`""" +input SessionsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + authSettingsTableId: UUID + usersTableId: UUID + sessionsDefaultExpiration: IntervalInput + sessionsTable: String + sessionCredentialsTable: String + authSettingsTable: String +} + +"""The output of our create `MerkleStoreModule` mutation.""" +type CreateMerkleStoreModulePayload { + """ + The exact 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 created 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 `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 create `MerkleStoreModule` mutation.""" +input CreateMerkleStoreModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `MerkleStoreModule` to be created by this mutation.""" + merkleStoreModule: MerkleStoreModuleInput! +} + +"""An input for mutations affecting `MerkleStoreModule`""" +input MerkleStoreModuleInput { + 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 + databaseOwned: Boolean + createdAt: Datetime +} + +"""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 `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 `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 `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 `SecureTableProvision` to be created by this mutation.""" + secureTableProvision: SecureTableProvisionInput! +} + +"""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 + + """ + 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. + """ + 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: JSON + + """ + 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: [JSON] + + """ + 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: JSON + + """ + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + """ + policies: JSON + + """ + 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 `ConfigSecretsModule` mutation.""" +type CreateConfigSecretsModulePayload { + """ + The exact 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 + + """ + 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 +} + +"""All input for the create `ConfigSecretsModule` mutation.""" +input CreateConfigSecretsModuleInput { + """ + An arbitrary string 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! +} + +"""An input for mutations affecting `ConfigSecretsModule`""" +input ConfigSecretsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + configDefinitionsTableId: UUID + tableName: String + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + hasConfig: Boolean +} + +"""The output of our create `InvitesModule` mutation.""" +type CreateInvitesModulePayload { + """ + The exact 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 created 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 `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 create `InvitesModule` mutation.""" +input CreateInvitesModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InvitesModule` to be created by this mutation.""" + invitesModule: InvitesModuleInput! +} + +"""An input for mutations affecting `InvitesModule`""" +input InvitesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String + scope: String + prefix: String + entityTableId: UUID + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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 `DatabaseProvisionModule` to be created by this mutation.""" + databaseProvisionModule: DatabaseProvisionModuleInput! +} + +"""An input for mutations affecting `DatabaseProvisionModule`""" +input DatabaseProvisionModuleInput { + 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 ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + +"""The output of our create `RealtimeModule` mutation.""" +type CreateRealtimeModulePayload { + """ + The exact 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 created 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 `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 { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `RealtimeModule` to be created by this mutation.""" + realtimeModule: RealtimeModuleInput! +} + +"""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 `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 `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 `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 `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 `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 +} + +"""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 `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 `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 `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 `NamespaceModule` to be created by this mutation.""" + namespaceModule: NamespaceModuleInput! +} + +"""An input for mutations affecting `NamespaceModule`""" +input NamespaceModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + namespacesTableId: UUID + namespaceEventsTableId: UUID + namespacesTableName: String + namespaceEventsTableName: String + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON +} + +"""The output of our create `ComputeLogModule` mutation.""" +type CreateComputeLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ComputeLogModule` that was created by this mutation.""" + computeLogModule: ComputeLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge +} + +"""All input for the create `ComputeLogModule` mutation.""" +input CreateComputeLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ComputeLogModule` to be created by this mutation.""" + computeLogModule: ComputeLogModuleInput! +} + +"""An input for mutations affecting `ComputeLogModule`""" +input ComputeLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + computeLogTableId: UUID + computeLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our create `InferenceLogModule` mutation.""" +type CreateInferenceLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InferenceLogModule` that was created by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the create `InferenceLogModule` mutation.""" +input CreateInferenceLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InferenceLogModule` to be created by this mutation.""" + inferenceLogModule: InferenceLogModuleInput! +} + +"""An input for mutations affecting `InferenceLogModule`""" +input InferenceLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our create `StorageLogModule` mutation.""" +type CreateStorageLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageLogModule` that was created by this mutation.""" + storageLogModule: StorageLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageLogModule`. May be used by Relay 1.""" + storageLogModuleEdge( + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageLogModuleEdge +} + +"""All input for the create `StorageLogModule` mutation.""" +input CreateStorageLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `StorageLogModule` to be created by this mutation.""" + storageLogModule: StorageLogModuleInput! +} + +"""An input for mutations affecting `StorageLogModule`""" +input StorageLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + storageLogTableId: UUID + storageLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our create `TransferLogModule` mutation.""" +type CreateTransferLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TransferLogModule` that was created by this mutation.""" + transferLogModule: TransferLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TransferLogModule`. May be used by Relay 1.""" + transferLogModuleEdge( + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TransferLogModuleEdge +} + +"""All input for the create `TransferLogModule` mutation.""" +input CreateTransferLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `TransferLogModule` to be created by this mutation.""" + transferLogModule: TransferLogModuleInput! +} + +"""An input for mutations affecting `TransferLogModule`""" +input TransferLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + transferLogTableId: UUID + transferLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + 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! + schemaId: UUID + privateSchemaId: UUID + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our create `GraphModule` mutation.""" +type CreateGraphModulePayload { + """ + The exact 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 created 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 `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 create `GraphModule` mutation.""" +input CreateGraphModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `GraphModule` to be created by this mutation.""" + graphModule: GraphModuleInput! +} + +"""An input for mutations affecting `GraphModule`""" +input GraphModuleInput { + id: UUID + databaseId: UUID! + publicSchemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + scope: String + prefix: String + merkleStoreModuleId: UUID! + graphsTableId: UUID + executionsTableId: UUID + outputsTableId: UUID + apiName: String + privateApiName: String + databaseOwned: Boolean + entityTableId: UUID + policies: JSON + provisions: JSON + createdAt: Datetime +} + +"""The output of our create `NotificationsModule` mutation.""" +type CreateNotificationsModulePayload { + """ + The exact 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 created 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 `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 create `NotificationsModule` mutation.""" +input CreateNotificationsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `NotificationsModule` to be created by this mutation.""" + notificationsModule: NotificationsModuleInput! +} + +"""An input for mutations affecting `NotificationsModule`""" +input NotificationsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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 `PlansModule` to be created by this mutation.""" + plansModule: PlansModuleInput! +} + +"""An input for mutations affecting `PlansModule`""" +input PlansModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: 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 `HierarchyModule` mutation.""" +type CreateHierarchyModulePayload { + """ + The exact 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 created 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 `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 create `HierarchyModule` mutation.""" +input CreateHierarchyModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `HierarchyModule` to be created by this mutation.""" + hierarchyModule: HierarchyModuleInput! +} + +"""An input for mutations affecting `HierarchyModule`""" +input HierarchyModuleInput { + id: UUID + databaseId: UUID! + 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 + createdAt: Datetime +} + +"""The output of our create `BillingModule` mutation.""" +type CreateBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was created by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the create `BillingModule` mutation.""" +input CreateBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `BillingModule` to be created by this mutation.""" + billingModule: BillingModuleInput! +} + +"""An input for mutations affecting `BillingModule`""" +input BillingModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + meterDefaultsTableId: UUID + meterDefaultsTableName: String + recordUsageFunction: 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 + 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 + 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 `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 + 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 `RelationProvision` mutation.""" +type CreateRelationProvisionPayload { + """ + The exact 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 created 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 `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 create `RelationProvision` mutation.""" +input CreateRelationProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `RelationProvision` to be created by this mutation.""" + relationProvision: RelationProvisionInput! +} + +"""An input for mutations affecting `RelationProvision`""" +input RelationProvisionInput { + """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 +} + +"""The output of our create `BlueprintTemplate` mutation.""" +type CreateBlueprintTemplatePayload { + """ + The exact 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 created 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 create `BlueprintTemplate` mutation.""" +input CreateBlueprintTemplateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `BlueprintTemplate` to be created by this mutation.""" + blueprintTemplate: BlueprintTemplateInput! +} + +"""An input for mutations affecting `BlueprintTemplate`""" +input BlueprintTemplateInput { + """Unique identifier for this template.""" + id: UUID + + """ + Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. + """ + name: String! + + """Semantic version string. Defaults to 1.0.0.""" + version: String + + """Human-readable display name for the template (e.g. E-Commerce Basic).""" + displayName: String! + + """Optional description of what the template provisions.""" + description: String + + """The user who created or published this template.""" + ownerId: UUID! + + """ + Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. + """ + visibility: String + + """ + Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. + """ + categories: [String] + + """ + Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. + """ + tags: [String] + + """ + The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. + """ + definition: JSON! + + """ + Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. + """ + definitionSchemaVersion: String + + """ + Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. + """ + source: String + + """ + Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. + """ + complexity: String + + """ + Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. + """ + copyCount: Int + + """ + Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. + """ + forkCount: Int + + """ + If this template was forked from another template, the ID of the parent. NULL for original templates. + """ + 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. + """ + 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 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 + invocationsTableId: UUID + executionLogsTableId: UUID + secretDefinitionsTableId: UUID + requirementsTableId: UUID + configDefinitionsTableId: UUID + configRequirementsTableId: UUID + definitionsTableName: String + invocationsTableName: String + executionLogsTableName: String + secretDefinitionsTableName: String + requirementsTableName: String + configRequirementsTableName: String + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON +} + +"""The output of our create `UserAuthModule` mutation.""" +type CreateUserAuthModulePayload { + """ + The exact 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 created 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 `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 create `UserAuthModule` mutation.""" +input CreateUserAuthModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `UserAuthModule` to be created by this mutation.""" + userAuthModule: 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 `AgentModule` mutation.""" +type CreateAgentModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentModule` that was created by this mutation.""" + agentModule: AgentModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentModule`. May be used by Relay 1.""" + agentModuleEdge( + """The method to use when ordering `AgentModule`.""" + orderBy: [AgentModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentModuleEdge +} + +"""All input for the create `AgentModule` mutation.""" +input CreateAgentModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentModule` to be created by this mutation.""" + agentModule: AgentModuleInput! +} + +"""An input for mutations affecting `AgentModule`""" +input AgentModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + threadTableId: UUID + messageTableId: UUID + taskTableId: UUID + promptsTableId: UUID + knowledgeTableId: UUID + planTableId: UUID + skillTableId: UUID + threadTableName: String + messageTableName: String + taskTableName: String + promptsTableName: String + knowledgeTableName: String + planTableName: String + skillTableName: String + hasKnowledge: Boolean + hasPlans: Boolean + hasSkills: Boolean + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + knowledgeConfig: JSON + skillsConfig: JSON + knowledgePolicies: JSON + provisions: JSON +} + +"""The output of our create `LimitsModule` mutation.""" +type CreateLimitsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `LimitsModule` that was created by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the create `LimitsModule` mutation.""" +input CreateLimitsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `LimitsModule` to be created by this mutation.""" + limitsModule: LimitsModuleInput! +} + +"""An input for mutations affecting `LimitsModule`""" +input LimitsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + 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 + actorTableId: UUID + apiName: String + 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 + 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 + apiName: String + privateApiName: String +} + +"""The output of our create `StorageModule` mutation.""" +type CreateStorageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageModule` that was created by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the create `StorageModule` mutation.""" +input CreateStorageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `StorageModule` to be created by this mutation.""" + storageModule: StorageModuleInput! +} + +"""An input for mutations affecting `StorageModule`""" +input StorageModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + scope: String + databaseOwned: Boolean + prefix: String + policies: JSON + provisions: JSON + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our create `EventsModule` mutation.""" +type CreateEventsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EventsModule` that was created by this mutation.""" + eventsModule: EventsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EventsModule`. May be used by Relay 1.""" + eventsModuleEdge( + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EventsModuleEdge +} + +"""All input for the create `EventsModule` mutation.""" +input CreateEventsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `EventsModule` to be created by this mutation.""" + eventsModule: EventsModuleInput! +} + +"""An input for mutations affecting `EventsModule`""" +input EventsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + eventsTableId: UUID + eventsTableName: String + eventAggregatesTableId: UUID + eventAggregatesTableName: String + eventTypesTableId: UUID + eventTypesTableName: String + levelsTableId: UUID + levelsTableName: String + levelRequirementsTableId: UUID + levelRequirementsTableName: String + levelGrantsTableId: UUID + levelGrantsTableName: String + achievementRewardsTableId: UUID + 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: Int + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + actorTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our create `EntityTypeProvision` mutation.""" +type CreateEntityTypeProvisionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EntityTypeProvision` that was created by this mutation.""" + entityTypeProvision: EntityTypeProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" + entityTypeProvisionEdge( + """The method to use when ordering `EntityTypeProvision`.""" + orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): EntityTypeProvisionEdge +} + +"""All input for the create `EntityTypeProvision` mutation.""" +input CreateEntityTypeProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `EntityTypeProvision` to be created by this mutation.""" + entityTypeProvision: EntityTypeProvisionInput! +} + +"""An input for mutations affecting `EntityTypeProvision`""" +input EntityTypeProvisionInput { + """Unique identifier for this provision row.""" + id: UUID + + """The database to provision this entity type in. Required.""" + databaseId: UUID! + + """ + Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + Stored in the entity_types registry table. + """ + name: String! + + """ + SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + and membership table names (prefix_memberships, prefix_members, etc.). + Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + """ + prefix: String! + + """ + Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. + """ + description: String + + """ + Prefix of the parent entity type. The trigger resolves this to a membership_type integer + by looking up memberships_module WHERE prefix = parent_entity. + Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + (e.g. 'data_room' for a team_channel nested under data_room). + The parent type must already be provisioned before this INSERT. + """ + parentEntity: String + + """ + Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + (e.g. prefix 'data_room' produces table 'data_rooms'). + Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + """ + tableName: String + + """ + Whether members of the parent entity can see child entities. Defaults to true. + When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + When false: only direct members of the entity itself can see it (private entity mode). + Controls whether the parent_member SELECT policy is created on the entity table. + Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + skip_entity_policies=true, since no default policies are being applied in those cases. + """ + isVisible: Boolean + + """ + Whether to apply limits_module security for this type. Defaults to false. + The limits_module table structure is always created (memberships_module requires it), + but when false, no RLS policies are applied to the limits tables. + Set to true if this entity type needs configurable resource limits per membership. + """ + hasLimits: Boolean + + """ + Whether to provision profiles_module for this type. Defaults to false. + Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + When true, creates profile tables and applies profiles security. + """ + hasProfiles: Boolean + + """ + Whether to provision events_module for this type. Defaults to false. + Levels provide gamification/achievement tracking for members. + When true, creates level steps, achievements, and level tables with security. + """ + hasLevels: Boolean + + """ + Whether to provision invites_module for this type. Defaults to false. + When true, the trigger inserts a row into invites_module which in turn + (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + repeated INSERTs safe. + """ + hasInvites: Boolean + + """ + Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + When true, the trigger calls event_tracker() on the claimed_invites table with + event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + crediting the SENDER (inviter) when someone claims their invite code. + Developers can then define achievements in the blueprint achievements[] section + that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + """ + hasInviteAchievements: Boolean + + """ + Optional JSON array of storage module definitions. Presence triggers provisioning + (same inference model as namespaces, functions, agents). + Each element provisions a separate storage module with its own tables + ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + NULL = do not provision storage. '[{}]' = provision one default storage module. + Each array element recognizes (all optional): + - key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + (storage_key accepted for backward compat) + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + """ + storage: JSON + + """ + Optional JSON array of namespace module definitions. Presence triggers provisioning. + NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + Registers manage_namespaces permission bit on first provision. + Example: namespaces := '[{}]'::jsonb + """ + namespaces: JSON + + """ + Optional JSON array of function module definitions. Presence triggers provisioning. + NULL = do not provision functions. '[{}]' = provision one default function module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + with entity-scoped RLS and a job trigger dispatching function:provision tasks. + Registers manage_functions + invoke_functions permission bits on first provision. + Example: functions := '[{}]'::jsonb + """ + functions: JSON + + """ + Optional JSON array of graph module definitions. Presence triggers provisioning. + NULL = do not provision graphs. '[{}]' = provision one default graph module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + Registers manage_graphs + execute_graphs permission bits on first provision. + Graph module requires a merkle_store_module_id dependency, so entity_type_provision + only registers permissions here. The graph module itself must be provisioned + separately with the merkle store dependency resolved. + Example: graphs := '[{}]'::jsonb + """ + graphs: JSON + agents: JSON + + """ + Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + Use this only when you want the entity table provisioned with zero policies (e.g. because you + plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + false and either accepting the five defaults (table_provision=NULL) or overriding them via + table_provision. + Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + - SELECT (self_member): direct members of the entity can see it + - INSERT: create_entity permission on the parent entity + - UPDATE: admin_entity permission on the entity itself + - DELETE: owner of the entity can delete it + """ + skipEntityPolicies: Boolean + + """ + Single jsonb object describing the full security setup to apply to the entity table. + Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + entries, so an entity table is configured the same way an ordinary blueprint table is. + Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + table_provision.policies[] (is_visible becomes a no-op on this path). + Recognized keys (all optional): + - use_rls (boolean, default true) + - nodes (jsonb array of {"$type","data"} Data* module entries) + - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + - grants (jsonb array of grant objects; each with roles[] and privileges[]) + - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + against the newly created entity table. + Example — override with two SELECT policies: + table_provision := jsonb_build_object( + 'policies', jsonb_build_array( + jsonb_build_object( + '$type', 'AuthzEntityMembership', + 'privileges', jsonb_build_array('select'), + 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + 'name', 'self_member' + ), + jsonb_build_object( + '$type', 'AuthzDirectOwner', + 'privileges', jsonb_build_array('select', 'update'), + 'data', jsonb_build_object('owner_field', 'owner_id') + ) + ) + ) + """ + tableProvision: JSON + + """ + Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + This is the ID used in entity_types, memberships_module, and all module tables. + """ + outMembershipType: Int + + """ + Output: the UUID of the created entity table. Populated by the trigger. + Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + """ + outEntityTableId: UUID + + """ + Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. + """ + outEntityTableName: String + + """ + Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + Populated by the trigger. Useful for verifying which modules were provisioned. + """ + outInstalledModules: [String] + + """ + Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. + """ + outStorageModuleId: UUID + + """ + Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. + """ + outBucketsTableId: UUID + + """ + Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. + """ + outFilesTableId: UUID + outPathSharesTableId: UUID + + """ + Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + (i.e. the invites_module row was created in a previous run). + """ + outInvitesModuleId: UUID + + """ + Output: the UUID of the namespace_module row created (or found) for this entity type. + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceModuleId: UUID + + """ + Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespacesTableId: UUID + + """ + Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceEventsTableId: UUID + outFunctionModuleId: UUID + outDefinitionsTableId: UUID + outInvocationsTableId: UUID + outExecutionLogsTableId: UUID + outSecretDefinitionsTableId: UUID + outRequirementsTableId: UUID + outConfigRequirementsTableId: UUID + outGraphModuleId: UUID + outGraphsTableId: UUID + outAgentModuleId: UUID +} + +"""The output of our update `DefaultIdsModule` mutation.""" +type UpdateDefaultIdsModulePayload { + """ + The exact 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 updated 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 `updateDefaultIdsModule` mutation.""" +input UpdateDefaultIdsModuleInput { + """ + An arbitrary string value 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 `DefaultIdsModule` being updated. + """ + defaultIdsModulePatch: DefaultIdsModulePatch! +} + +""" +Represents an update to a `DefaultIdsModule`. Fields that are set will be updated. +""" +input DefaultIdsModulePatch { + id: UUID + databaseId: UUID +} + +"""The output of our update `MembershipTypesModule` mutation.""" +type UpdateMembershipTypesModulePayload { + """ + The exact 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 updated 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 `updateMembershipTypesModule` mutation.""" +input UpdateMembershipTypesModuleInput { + """ + An arbitrary string value 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 `MembershipTypesModule` being updated. + """ + membershipTypesModulePatch: MembershipTypesModulePatch! +} + +""" +Represents an update to a `MembershipTypesModule`. Fields that are set will be updated. +""" +input MembershipTypesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + 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 { + """ + The exact 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 updated 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 `updateSessionSecretsModule` mutation.""" +input UpdateSessionSecretsModuleInput { + """ + An arbitrary string value 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 `SessionSecretsModule` being updated. + """ + sessionSecretsModulePatch: SessionSecretsModulePatch! +} + +""" +Represents an update to a `SessionSecretsModule`. Fields that are set will be updated. +""" +input SessionSecretsModulePatch { + 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 +} + +"""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 { + """ + The exact 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 updated 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 `updateDevicesModule` mutation.""" +input UpdateDevicesModuleInput { + """ + An arbitrary string value 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 `DevicesModule` being updated. + """ + devicesModulePatch: DevicesModulePatch! +} + +""" +Represents an update to a `DevicesModule`. Fields that are set will be updated. +""" +input DevicesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + userDevicesTableId: UUID + deviceSettingsTableId: UUID + userDevicesTable: String + deviceSettingsTable: String +} + +"""The output of our update `I18NModule` mutation.""" +type UpdateI18NModulePayload { + """ + The exact 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 updated 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 `updateI18NModule` mutation.""" +input UpdateI18NModuleInput { + """ + An arbitrary string value 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 `I18NModule` being updated. + """ + i18NModulePatch: I18NModulePatch! +} + +""" +Represents an update to a `I18NModule`. Fields that are set will be updated. +""" +input I18NModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + settingsTableId: UUID + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + 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. +""" +input UserCredentialsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + 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. +""" +input UserSettingsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String + apiName: String +} + +"""The output of our update `ConfigSecretsUserModule` mutation.""" +type UpdateConfigSecretsUserModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConfigSecretsUserModule` that was updated by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge +} + +"""All input for the `updateConfigSecretsUserModule` mutation.""" +input UpdateConfigSecretsUserModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. + """ + configSecretsUserModulePatch: ConfigSecretsUserModulePatch! +} + +""" +Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. +""" +input ConfigSecretsUserModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String + configDefinitionsTableId: UUID + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `IdentityProvidersModule` being updated. + """ + identityProvidersModulePatch: IdentityProvidersModulePatch! +} + +""" +Represents an update to a `IdentityProvidersModule`. 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 + tableId: UUID + tableName: String + apiName: String + privateApiName: String +} + +"""The output of our update `ConnectedAccountsModule` mutation.""" +type UpdateConnectedAccountsModulePayload { + """ + The exact 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 updated 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 `updateConnectedAccountsModule` mutation.""" +input UpdateConnectedAccountsModuleInput { + """ + An arbitrary string value 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 `ConnectedAccountsModule` being updated. + """ + connectedAccountsModulePatch: ConnectedAccountsModulePatch! +} + +""" +Represents an update to a `ConnectedAccountsModule`. Fields that are set will be updated. +""" +input ConnectedAccountsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String + apiName: String + privateApiName: String +} + +"""The output of our update `EmailsModule` mutation.""" +type UpdateEmailsModulePayload { + """ + The exact 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 updated 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 `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 `updateEmailsModule` mutation.""" +input UpdateEmailsModuleInput { + """ + An arbitrary string value 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 `EmailsModule` being updated. + """ + emailsModulePatch: EmailsModulePatch! +} + +""" +Represents an update to a `EmailsModule`. Fields that are set will be updated. +""" +input EmailsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String + apiName: String + privateApiName: String +} + +"""The output of our update `PhoneNumbersModule` mutation.""" +type UpdatePhoneNumbersModulePayload { + """ + The exact 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 updated 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 `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 `updatePhoneNumbersModule` mutation.""" +input UpdatePhoneNumbersModuleInput { + """ + An arbitrary string value 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 `PhoneNumbersModule` being updated. + """ + phoneNumbersModulePatch: PhoneNumbersModulePatch! +} + +""" +Represents an update to a `PhoneNumbersModule`. Fields that are set will be updated. +""" +input PhoneNumbersModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String + apiName: String + privateApiName: String +} + +"""The output of our update `RateLimitsModule` mutation.""" +type UpdateRateLimitsModulePayload { + """ + The exact 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 updated 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 `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 `updateRateLimitsModule` mutation.""" +input UpdateRateLimitsModuleInput { + """ + An arbitrary string value 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 `RateLimitsModule` being updated. + """ + rateLimitsModulePatch: RateLimitsModulePatch! +} + +""" +Represents an update to a `RateLimitsModule`. Fields that are set will be updated. +""" +input RateLimitsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + rateLimitSettingsTableId: UUID + ipRateLimitsTableId: UUID + rateLimitsTableId: UUID + rateLimitSettingsTable: String + ipRateLimitsTable: String + rateLimitsTable: String +} + +"""The output of our update `UsersModule` mutation.""" +type UpdateUsersModulePayload { + """ + The exact 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 updated 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 `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 `updateUsersModule` mutation.""" +input UpdateUsersModuleInput { + """ + An arbitrary string value 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 `UsersModule` being updated. + """ + usersModulePatch: UsersModulePatch! +} + +""" +Represents an update to a `UsersModule`. Fields that are set will be updated. +""" +input UsersModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String + typeTableId: UUID + typeTableName: String + apiName: String + privateApiName: String +} + +"""The output of our update `WebauthnCredentialsModule` mutation.""" +type UpdateWebauthnCredentialsModulePayload { + """ + The exact 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 updated 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 `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 `updateWebauthnCredentialsModule` mutation.""" +input UpdateWebauthnCredentialsModuleInput { + """ + An arbitrary string value 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 `WebauthnCredentialsModule` being updated. + """ + webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch! +} + +""" +Represents an update to a `WebauthnCredentialsModule`. Fields that are set will be updated. +""" +input WebauthnCredentialsModulePatch { + 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 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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `CryptoAddressesModule` being updated. + """ + cryptoAddressesModulePatch: CryptoAddressesModulePatch! +} + +""" +Represents an update to a `CryptoAddressesModule`. Fields that are set will be updated. +""" +input CryptoAddressesModulePatch { + id: UUID + databaseId: UUID + 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 exact 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 + + """ + 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 `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. + """ + clientMutationId: String + id: UUID! + + """ + 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. +""" +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.""" +type UpdateRlsModulePayload { + """ + The exact 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 updated 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 `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 `updateRlsModule` mutation.""" +input UpdateRlsModuleInput { + """ + An arbitrary string value 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 `RlsModule` being updated. + """ + rlsModulePatch: RlsModulePatch! +} + +""" +Represents an update to a `RlsModule`. Fields that are set will be updated. +""" +input RlsModulePatch { + 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 +} + +"""The output of our update `Blueprint` mutation.""" +type UpdateBlueprintPayload { + """ + The exact 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 updated 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 `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 `updateBlueprint` mutation.""" +input UpdateBlueprintInput { + """ + An arbitrary 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! + + """ + An object where the defined keys will be set on the `Blueprint` being updated. + """ + blueprintPatch: BlueprintPatch! +} + +""" +Represents an update to a `Blueprint`. Fields that are set will be updated. +""" +input BlueprintPatch { + """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 + + """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 update `CryptoAuthModule` mutation.""" +type UpdateCryptoAuthModulePayload { + """ + The exact 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 updated 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 `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 `updateCryptoAuthModule` mutation.""" +input UpdateCryptoAuthModuleInput { + """ + An arbitrary string value 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 `CryptoAuthModule` being updated. + """ + cryptoAuthModulePatch: CryptoAuthModulePatch! +} + +""" +Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. +""" +input CryptoAuthModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + 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 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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + 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. +""" +input RateLimitMetersModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + rateLimitStateTableId: UUID + rateLimitStateTableName: String + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String + checkRateLimitFunction: String + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our update `BlueprintConstruction` mutation.""" +type UpdateBlueprintConstructionPayload { + """ + The exact 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 updated 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 `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 `updateBlueprintConstruction` mutation.""" +input UpdateBlueprintConstructionInput { + """ + An arbitrary 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! + + """ + An object where the defined keys will be set on the `BlueprintConstruction` being updated. + """ + blueprintConstructionPatch: BlueprintConstructionPatch! +} + +""" +Represents an update to a `BlueprintConstruction`. Fields that are set will be updated. +""" +input BlueprintConstructionPatch { + """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 + + """ + 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 update `SessionsModule` mutation.""" +type UpdateSessionsModulePayload { + """ + The exact 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 updated 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 `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 `updateSessionsModule` mutation.""" +input UpdateSessionsModuleInput { + """ + An arbitrary string value 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 `SessionsModule` being updated. + """ + sessionsModulePatch: SessionsModulePatch! +} + +""" +Represents an update to a `SessionsModule`. Fields that are set will be updated. +""" +input SessionsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + authSettingsTableId: UUID + usersTableId: UUID + sessionsDefaultExpiration: IntervalInput + sessionsTable: String + sessionCredentialsTable: String + authSettingsTable: String +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `MerkleStoreModule` being updated. + """ + merkleStoreModulePatch: MerkleStoreModulePatch! +} + +""" +Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. +""" +input MerkleStoreModulePatch { + 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 + databaseOwned: Boolean + createdAt: Datetime +} + +"""The output of our update `SecureTableProvision` mutation.""" +type UpdateSecureTableProvisionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SecureTableProvision` that was updated by this mutation.""" + secureTableProvision: SecureTableProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `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 `updateSecureTableProvision` mutation.""" +input UpdateSecureTableProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this provision row.""" + id: UUID! + + """ + An object where the defined keys will be set on the `SecureTableProvision` being updated. + """ + secureTableProvisionPatch: SecureTableProvisionPatch! +} + +""" +Represents an update to a `SecureTableProvision`. Fields that are set will be updated. +""" +input SecureTableProvisionPatch { + """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 + + """ + 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. + """ + 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: JSON + + """ + 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: [JSON] + + """ + 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: JSON + + """ + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + """ + policies: JSON + + """ + 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 update `ConfigSecretsModule` mutation.""" +type UpdateConfigSecretsModulePayload { + """ + The exact 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 + + """ + 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 +} + +"""All input for the `updateConfigSecretsModule` mutation.""" +input UpdateConfigSecretsModuleInput { + """ + An arbitrary string value 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 `ConfigSecretsModule` being updated. + """ + configSecretsModulePatch: ConfigSecretsModulePatch! +} + +""" +Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. +""" +input ConfigSecretsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + configDefinitionsTableId: UUID + tableName: String + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + hasConfig: Boolean +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `InvitesModule` being updated. + """ + invitesModulePatch: InvitesModulePatch! +} + +""" +Represents an update to a `InvitesModule`. Fields that are set will be updated. +""" +input InvitesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String + scope: String + prefix: String + entityTableId: UUID + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. + """ + databaseProvisionModulePatch: DatabaseProvisionModulePatch! +} + +""" +Represents an update to a `DatabaseProvisionModule`. Fields that are set will be updated. +""" +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 ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + 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. +""" +input RealtimeModulePatch { + 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 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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `WebauthnAuthModule` being updated. + """ + webauthnAuthModulePatch: WebauthnAuthModulePatch! +} + +""" +Represents an update to a `WebauthnAuthModule`. Fields that are set will be updated. +""" +input WebauthnAuthModulePatch { + 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 +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + 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. +""" +input NamespaceModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + namespacesTableId: UUID + namespaceEventsTableId: UUID + namespacesTableName: String + namespaceEventsTableName: String + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON +} + +"""The output of our update `ComputeLogModule` mutation.""" +type UpdateComputeLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ComputeLogModule` that was updated by this mutation.""" + computeLogModule: ComputeLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge +} + +"""All input for the `updateComputeLogModule` mutation.""" +input UpdateComputeLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `ComputeLogModule` being updated. + """ + computeLogModulePatch: ComputeLogModulePatch! +} + +""" +Represents an update to a `ComputeLogModule`. Fields that are set will be updated. +""" +input ComputeLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + computeLogTableId: UUID + computeLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our update `InferenceLogModule` mutation.""" +type UpdateInferenceLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InferenceLogModule` that was updated by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the `updateInferenceLogModule` mutation.""" +input UpdateInferenceLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `InferenceLogModule` being updated. + """ + inferenceLogModulePatch: InferenceLogModulePatch! +} + +""" +Represents an update to a `InferenceLogModule`. Fields that are set will be updated. +""" +input InferenceLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + 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 + schemaId: UUID + privateSchemaId: UUID + storageLogTableId: UUID + storageLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + 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 `updateTransferLogModule` mutation.""" +input UpdateTransferLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `TransferLogModule` being updated. + """ + transferLogModulePatch: TransferLogModulePatch! +} + +""" +Represents an update to a `TransferLogModule`. Fields that are set will be updated. +""" +input TransferLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + transferLogTableId: UUID + transferLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + apiName: String + 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 + schemaId: UUID + privateSchemaId: UUID + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + prefix: String + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `GraphModule` being updated. + """ + graphModulePatch: GraphModulePatch! +} + +""" +Represents an update to a `GraphModule`. Fields that are set will be updated. +""" +input GraphModulePatch { + id: UUID + databaseId: UUID + publicSchemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + scope: String + prefix: String + merkleStoreModuleId: UUID + graphsTableId: UUID + executionsTableId: UUID + outputsTableId: UUID + apiName: String + privateApiName: String + databaseOwned: Boolean + entityTableId: UUID + policies: JSON + provisions: JSON + createdAt: Datetime +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `NotificationsModule` being updated. + """ + notificationsModulePatch: NotificationsModulePatch! +} + +""" +Represents an update to a `NotificationsModule`. Fields that are set will be updated. +""" +input NotificationsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean + apiName: String + privateApiName: String +} + +"""The output of our update `PlansModule` mutation.""" +type UpdatePlansModulePayload { + """ + The exact 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 updated 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 `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 `updatePlansModule` mutation.""" +input UpdatePlansModuleInput { + """ + An arbitrary string value 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 `PlansModule` being updated. + """ + plansModulePatch: PlansModulePatch! +} + +""" +Represents an update to a `PlansModule`. Fields that are set will be updated. +""" +input PlansModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: 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 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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `HierarchyModule` being updated. + """ + hierarchyModulePatch: HierarchyModulePatch! +} + +""" +Represents an update to a `HierarchyModule`. Fields that are set will be updated. +""" +input HierarchyModulePatch { + id: UUID + databaseId: UUID + 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 + createdAt: Datetime +} + +"""The output of our update `BillingModule` mutation.""" +type UpdateBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was updated by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the `updateBillingModule` mutation.""" +input UpdateBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `BillingModule` being updated. + """ + billingModulePatch: BillingModulePatch! +} + +""" +Represents an update to a `BillingModule`. Fields that are set will be updated. +""" +input BillingModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + meterDefaultsTableId: UUID + meterDefaultsTableName: String + recordUsageFunction: String + prefix: String + apiName: String + privateApiName: String +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `BillingProviderModule` being updated. + """ + billingProviderModulePatch: BillingProviderModulePatch! +} + +""" +Represents an update to a `BillingProviderModule`. Fields that are set will be updated. +""" +input BillingProviderModulePatch { + 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 + apiName: String + privateApiName: String +} + +"""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 + schemaId: UUID + privateSchemaId: UUID + 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 `PermissionsModule` mutation.""" +type UpdatePermissionsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PermissionsModule` that was updated by this mutation.""" + permissionsModule: PermissionsModule + + """ + 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 `updatePermissionsModule` mutation.""" +input UpdatePermissionsModuleInput { + """ + An arbitrary string value 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 `PermissionsModule` being updated. + """ + permissionsModulePatch: PermissionsModulePatch! +} + +""" +Represents an update to a `PermissionsModule`. Fields that are set will be updated. +""" +input PermissionsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + 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 update `RelationProvision` mutation.""" +type UpdateRelationProvisionPayload { + """ + The exact 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 updated 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 `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 `updateRelationProvision` mutation.""" +input UpdateRelationProvisionInput { + """ + An arbitrary 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! + + """ + An object where the defined keys will be set on the `RelationProvision` being updated. + """ + relationProvisionPatch: RelationProvisionPatch! +} + +""" +Represents an update to a `RelationProvision`. Fields that are set will be updated. +""" +input RelationProvisionPatch { + """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 +} + +"""The output of our update `BlueprintTemplate` mutation.""" +type UpdateBlueprintTemplatePayload { + """ + The exact 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 updated 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 `updateBlueprintTemplate` mutation.""" +input UpdateBlueprintTemplateInput { + """ + An arbitrary 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! + + """ + An object where the defined keys will be set on the `BlueprintTemplate` being updated. + """ + blueprintTemplatePatch: BlueprintTemplatePatch! +} + +""" +Represents an update to a `BlueprintTemplate`. Fields that are set will be updated. +""" +input BlueprintTemplatePatch { + """Unique identifier for this template.""" + id: UUID + + """ + Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. + """ + name: String + + """Semantic version string. Defaults to 1.0.0.""" + version: String + + """Human-readable display name for the template (e.g. E-Commerce Basic).""" + displayName: String + + """Optional description of what the template provisions.""" + description: String + + """The user who created or published this template.""" + ownerId: UUID + + """ + Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. + """ + visibility: String + + """ + Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. + """ + categories: [String] + + """ + Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. + """ + tags: [String] + + """ + The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. + """ + definition: JSON + + """ + Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. + """ + definitionSchemaVersion: String + + """ + Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. + """ + source: String + + """ + Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. + """ + complexity: String + + """ + Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. + """ + copyCount: Int + + """ + Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. + """ + forkCount: Int + + """ + If this template was forked from another template, the ID of the parent. NULL for original templates. + """ + 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. + """ + 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 `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 + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + definitionsTableId: UUID + invocationsTableId: UUID + executionLogsTableId: UUID + secretDefinitionsTableId: UUID + requirementsTableId: UUID + configDefinitionsTableId: UUID + configRequirementsTableId: UUID + definitionsTableName: String + invocationsTableName: String + executionLogsTableName: String + secretDefinitionsTableName: String + requirementsTableName: String + configRequirementsTableName: String + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON +} + +"""The output of our update `UserAuthModule` mutation.""" +type UpdateUserAuthModulePayload { + """ + The exact 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 updated 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 `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 `updateUserAuthModule` mutation.""" +input UpdateUserAuthModuleInput { + """ + An arbitrary string value 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 `UserAuthModule` being updated. + """ + userAuthModulePatch: UserAuthModulePatch! +} + +""" +Represents an update to a `UserAuthModule`. Fields that are set will be updated. +""" +input UserAuthModulePatch { + 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 update `AgentModule` mutation.""" +type UpdateAgentModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentModule` that was updated by this mutation.""" + agentModule: AgentModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentModule`. May be used by Relay 1.""" + agentModuleEdge( + """The method to use when ordering `AgentModule`.""" + orderBy: [AgentModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentModuleEdge +} + +"""All input for the `updateAgentModule` mutation.""" +input UpdateAgentModuleInput { + """ + An arbitrary string value 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 `AgentModule` being updated. + """ + agentModulePatch: AgentModulePatch! +} + +""" +Represents an update to a `AgentModule`. Fields that are set will be updated. +""" +input AgentModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + threadTableId: UUID + messageTableId: UUID + taskTableId: UUID + promptsTableId: UUID + knowledgeTableId: UUID + planTableId: UUID + skillTableId: UUID + threadTableName: String + messageTableName: String + taskTableName: String + promptsTableName: String + knowledgeTableName: String + planTableName: String + skillTableName: String + hasKnowledge: Boolean + hasPlans: Boolean + hasSkills: Boolean + apiName: String + privateApiName: String + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + policies: JSON + knowledgeConfig: JSON + skillsConfig: JSON + knowledgePolicies: JSON + provisions: JSON +} + +"""The output of our update `LimitsModule` mutation.""" +type UpdateLimitsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `LimitsModule` that was updated by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the `updateLimitsModule` mutation.""" +input UpdateLimitsModuleInput { + """ + An arbitrary string value 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 `LimitsModule` being updated. + """ + limitsModulePatch: LimitsModulePatch! +} + +""" +Represents an update to a `LimitsModule`. Fields that are set will be updated. +""" +input LimitsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + 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 + actorTableId: UUID + apiName: String + 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 + 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 + apiName: String + privateApiName: String +} + +"""The output of our update `StorageModule` mutation.""" +type UpdateStorageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageModule` that was updated by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the `updateStorageModule` mutation.""" +input UpdateStorageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `StorageModule` being updated. + """ + storageModulePatch: StorageModulePatch! +} + +""" +Represents an update to a `StorageModule`. Fields that are set will be updated. +""" +input StorageModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + scope: String + databaseOwned: Boolean + prefix: String + policies: JSON + provisions: JSON + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our update `EventsModule` mutation.""" +type UpdateEventsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EventsModule` that was updated by this mutation.""" + eventsModule: EventsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EventsModule`. May be used by Relay 1.""" + eventsModuleEdge( + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EventsModuleEdge +} + +"""All input for the `updateEventsModule` mutation.""" +input UpdateEventsModuleInput { + """ + An arbitrary string value 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 `EventsModule` being updated. + """ + eventsModulePatch: EventsModulePatch! +} + +""" +Represents an update to a `EventsModule`. Fields that are set will be updated. +""" +input EventsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + eventsTableId: UUID + eventsTableName: String + eventAggregatesTableId: UUID + eventAggregatesTableName: String + eventTypesTableId: UUID + eventTypesTableName: String + levelsTableId: UUID + levelsTableName: String + levelRequirementsTableId: UUID + levelRequirementsTableName: String + levelGrantsTableId: UUID + levelGrantsTableName: String + achievementRewardsTableId: UUID + 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: Int + scope: String + databaseOwned: Boolean + prefix: String + entityTableId: UUID + actorTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our update `EntityTypeProvision` mutation.""" +type UpdateEntityTypeProvisionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EntityTypeProvision` that was updated by this mutation.""" + entityTypeProvision: EntityTypeProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" + entityTypeProvisionEdge( + """The method to use when ordering `EntityTypeProvision`.""" + orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): EntityTypeProvisionEdge +} + +"""All input for the `updateEntityTypeProvision` mutation.""" +input UpdateEntityTypeProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this provision row.""" + id: UUID! + + """ + An object where the defined keys will be set on the `EntityTypeProvision` being updated. + """ + entityTypeProvisionPatch: EntityTypeProvisionPatch! +} + +""" +Represents an update to a `EntityTypeProvision`. Fields that are set will be updated. +""" +input EntityTypeProvisionPatch { + """Unique identifier for this provision row.""" + id: UUID + + """The database to provision this entity type in. Required.""" + databaseId: UUID + + """ + Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + Stored in the entity_types registry table. + """ + name: String + + """ + SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + and membership table names (prefix_memberships, prefix_members, etc.). + Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + """ + prefix: String + + """ + Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. + """ + description: String + + """ + Prefix of the parent entity type. The trigger resolves this to a membership_type integer + by looking up memberships_module WHERE prefix = parent_entity. + Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + (e.g. 'data_room' for a team_channel nested under data_room). + The parent type must already be provisioned before this INSERT. + """ + parentEntity: String + + """ + Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + (e.g. prefix 'data_room' produces table 'data_rooms'). + Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + """ + tableName: String + + """ + Whether members of the parent entity can see child entities. Defaults to true. + When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + When false: only direct members of the entity itself can see it (private entity mode). + Controls whether the parent_member SELECT policy is created on the entity table. + Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + skip_entity_policies=true, since no default policies are being applied in those cases. + """ + isVisible: Boolean + + """ + Whether to apply limits_module security for this type. Defaults to false. + The limits_module table structure is always created (memberships_module requires it), + but when false, no RLS policies are applied to the limits tables. + Set to true if this entity type needs configurable resource limits per membership. + """ + hasLimits: Boolean + + """ + Whether to provision profiles_module for this type. Defaults to false. + Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + When true, creates profile tables and applies profiles security. + """ + hasProfiles: Boolean + + """ + Whether to provision events_module for this type. Defaults to false. + Levels provide gamification/achievement tracking for members. + When true, creates level steps, achievements, and level tables with security. + """ + hasLevels: Boolean + + """ + Whether to provision invites_module for this type. Defaults to false. + When true, the trigger inserts a row into invites_module which in turn + (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + repeated INSERTs safe. + """ + hasInvites: Boolean + + """ + Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + When true, the trigger calls event_tracker() on the claimed_invites table with + event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + crediting the SENDER (inviter) when someone claims their invite code. + Developers can then define achievements in the blueprint achievements[] section + that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + """ + hasInviteAchievements: Boolean + + """ + Optional JSON array of storage module definitions. Presence triggers provisioning + (same inference model as namespaces, functions, agents). + Each element provisions a separate storage module with its own tables + ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + NULL = do not provision storage. '[{}]' = provision one default storage module. + Each array element recognizes (all optional): + - key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + (storage_key accepted for backward compat) + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + """ + storage: JSON + + """ + Optional JSON array of namespace module definitions. Presence triggers provisioning. + NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + Registers manage_namespaces permission bit on first provision. + Example: namespaces := '[{}]'::jsonb + """ + namespaces: JSON + + """ + Optional JSON array of function module definitions. Presence triggers provisioning. + NULL = do not provision functions. '[{}]' = provision one default function module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + with entity-scoped RLS and a job trigger dispatching function:provision tasks. + Registers manage_functions + invoke_functions permission bits on first provision. + Example: functions := '[{}]'::jsonb + """ + functions: JSON + + """ + Optional JSON array of graph module definitions. Presence triggers provisioning. + NULL = do not provision graphs. '[{}]' = provision one default graph module. + Each element recognizes (all optional): + - key (text) module discriminator. Defaults to 'default'. + - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + Registers manage_graphs + execute_graphs permission bits on first provision. + Graph module requires a merkle_store_module_id dependency, so entity_type_provision + only registers permissions here. The graph module itself must be provisioned + separately with the merkle store dependency resolved. + Example: graphs := '[{}]'::jsonb + """ + graphs: JSON + agents: JSON + + """ + Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + Use this only when you want the entity table provisioned with zero policies (e.g. because you + plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + false and either accepting the five defaults (table_provision=NULL) or overriding them via + table_provision. + Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + - SELECT (self_member): direct members of the entity can see it + - INSERT: create_entity permission on the parent entity + - UPDATE: admin_entity permission on the entity itself + - DELETE: owner of the entity can delete it + """ + skipEntityPolicies: Boolean + + """ + Single jsonb object describing the full security setup to apply to the entity table. + Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + entries, so an entity table is configured the same way an ordinary blueprint table is. + Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + table_provision.policies[] (is_visible becomes a no-op on this path). + Recognized keys (all optional): + - use_rls (boolean, default true) + - nodes (jsonb array of {"$type","data"} Data* module entries) + - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + - grants (jsonb array of grant objects; each with roles[] and privileges[]) + - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + against the newly created entity table. + Example — override with two SELECT policies: + table_provision := jsonb_build_object( + 'policies', jsonb_build_array( + jsonb_build_object( + '$type', 'AuthzEntityMembership', + 'privileges', jsonb_build_array('select'), + 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + 'name', 'self_member' + ), + jsonb_build_object( + '$type', 'AuthzDirectOwner', + 'privileges', jsonb_build_array('select', 'update'), + 'data', jsonb_build_object('owner_field', 'owner_id') + ) + ) + ) + """ + tableProvision: JSON + + """ + Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + This is the ID used in entity_types, memberships_module, and all module tables. + """ + outMembershipType: Int + + """ + Output: the UUID of the created entity table. Populated by the trigger. + Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + """ + outEntityTableId: UUID + + """ + Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. + """ + outEntityTableName: String + + """ + Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + Populated by the trigger. Useful for verifying which modules were provisioned. + """ + outInstalledModules: [String] + + """ + Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. + """ + outStorageModuleId: UUID + + """ + Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. + """ + outBucketsTableId: UUID + + """ + Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. + """ + outFilesTableId: UUID + outPathSharesTableId: UUID + + """ + Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + (i.e. the invites_module row was created in a previous run). + """ + outInvitesModuleId: UUID + + """ + Output: the UUID of the namespace_module row created (or found) for this entity type. + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceModuleId: UUID + + """ + Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespacesTableId: UUID + + """ + Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceEventsTableId: UUID + outFunctionModuleId: UUID + outDefinitionsTableId: UUID + outInvocationsTableId: UUID + outExecutionLogsTableId: UUID + outSecretDefinitionsTableId: UUID + outRequirementsTableId: UUID + outConfigRequirementsTableId: UUID + outGraphModuleId: UUID + outGraphsTableId: UUID + outAgentModuleId: UUID +} + +"""The output of our delete `DefaultIdsModule` mutation.""" +type DeleteDefaultIdsModulePayload { + """ + The exact 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 deleted 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 `deleteDefaultIdsModule` mutation.""" +input DeleteDefaultIdsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `MembershipTypesModule` mutation.""" +type DeleteMembershipTypesModulePayload { + """ + The exact 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 deleted 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 `deleteMembershipTypesModule` mutation.""" +input DeleteMembershipTypesModuleInput { + """ + An arbitrary string value with no semantic meaning. Will 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 `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 `ConfigSecretsOrgModule` mutation.""" +type DeleteConfigSecretsOrgModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConfigSecretsOrgModule` that was deleted by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge +} + +"""All input for the `deleteConfigSecretsOrgModule` mutation.""" +input DeleteConfigSecretsOrgModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `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 `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 `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 `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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + 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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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 `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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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 `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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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 `ConfigSecretsModule` mutation.""" +type DeleteConfigSecretsModulePayload { + """ + The exact 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 + + """ + 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 +} + +"""All input for the `deleteConfigSecretsModule` mutation.""" +input DeleteConfigSecretsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + 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 `ComputeLogModule` mutation.""" +type DeleteComputeLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ComputeLogModule` that was deleted by this mutation.""" + computeLogModule: ComputeLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `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 `deleteComputeLogModule` mutation.""" +input DeleteComputeLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `InferenceLogModule` mutation.""" +type DeleteInferenceLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InferenceLogModule` that was deleted by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the `deleteInferenceLogModule` mutation.""" +input DeleteInferenceLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `StorageLogModule` mutation.""" +type DeleteStorageLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageLogModule` that was deleted by this mutation.""" + storageLogModule: StorageLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageLogModule`. May be used by Relay 1.""" + storageLogModuleEdge( + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageLogModuleEdge +} + +"""All input for the `deleteStorageLogModule` mutation.""" +input DeleteStorageLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `TransferLogModule` mutation.""" +type DeleteTransferLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TransferLogModule` that was deleted by this mutation.""" + transferLogModule: TransferLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TransferLogModule`. May be used by Relay 1.""" + transferLogModuleEdge( + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TransferLogModuleEdge +} + +"""All input for the `deleteTransferLogModule` mutation.""" +input DeleteTransferLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `DbUsageModule` mutation.""" +type DeleteDbUsageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DbUsageModule` that was deleted by this mutation.""" + dbUsageModule: DbUsageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge +} + +"""All input for the `deleteDbUsageModule` mutation.""" +input DeleteDbUsageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `HierarchyModule` mutation.""" +type DeleteHierarchyModulePayload { + """ + The exact 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 deleted 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 `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 `deleteHierarchyModule` mutation.""" +input DeleteHierarchyModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `BillingModule` mutation.""" +type DeleteBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was deleted by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the `deleteBillingModule` mutation.""" +input DeleteBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ProfilesModule` mutation.""" +type DeleteProfilesModulePayload { + """ + The exact 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 deleted 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 `deleteProfilesModule` mutation.""" +input DeleteProfilesModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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! +} + +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + +"""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 `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 `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 `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 + id: UUID! +} + +"""The output of our delete `AgentModule` mutation.""" +type DeleteAgentModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentModule` that was deleted by this mutation.""" + agentModule: AgentModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentModule`. May be used by Relay 1.""" + agentModuleEdge( + """The method to use when ordering `AgentModule`.""" + orderBy: [AgentModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentModuleEdge +} + +"""All input for the `deleteAgentModule` mutation.""" +input DeleteAgentModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `LimitsModule` mutation.""" +type DeleteLimitsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `LimitsModule` that was deleted by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the `deleteLimitsModule` mutation.""" +input DeleteLimitsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + 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 `StorageModule` mutation.""" +type DeleteStorageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageModule` that was deleted by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the `deleteStorageModule` mutation.""" +input DeleteStorageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `EventsModule` mutation.""" +type DeleteEventsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EventsModule` that was deleted by this mutation.""" + eventsModule: EventsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EventsModule`. May be used by Relay 1.""" + eventsModuleEdge( + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EventsModuleEdge +} + +"""All input for the `deleteEventsModule` mutation.""" +input DeleteEventsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will 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 { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `EntityTypeProvision` that was deleted by this mutation.""" + entityTypeProvision: EntityTypeProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" + entityTypeProvisionEdge( + """The method to use when ordering `EntityTypeProvision`.""" + orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): EntityTypeProvisionEdge +} + +"""All input for the `deleteEntityTypeProvision` mutation.""" +input DeleteEntityTypeProvisionInput { + """ + An arbitrary 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! +} + +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/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 5678d585ed..ed4376c1d6 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -1,10 +1,8 @@ """The root query type which gives access points into the data universe.""" type Query { - revParse(dbId: UUID, storeId: UUID, refname: String): UUID - """Reads and enables pagination through a set of `GetAllRecord`.""" getAll( - databaseId: UUID + sId: UUID id: UUID """Only read the first `n` values of the set.""" @@ -19,45 +17,7 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor ): GetAllConnection - - """Reads and enables pagination through a set of `Object`.""" - getAllObjectsFromRoot( - databaseId: 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 - ): ObjectConnection - getNodeAtPath(databaseId: UUID, id: UUID, path: [String]): Object - - """Reads and enables pagination through a set of `Object`.""" - getPathObjectsFromRoot( - databaseId: UUID - id: UUID - path: [String] - - """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 - ): ObjectConnection - getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object + getNodeAtPath(sId: UUID, id: UUID, path: [String]): Object """Reads and enables pagination through a set of `Ref`.""" refs( @@ -117,8 +77,8 @@ type Query { orderBy: [StoreOrderBy!] = [PRIMARY_KEY_ASC] ): StoreConnection - """Reads and enables pagination through a set of `Commit`.""" - commits( + """Reads and enables pagination through a set of `Object`.""" + objects( """Only read the first `n` values of the set.""" first: Int @@ -140,14 +100,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CommitFilter + where: ObjectFilter - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] - ): CommitConnection + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): ObjectConnection - """Reads and enables pagination through a set of `Object`.""" - objects( + """Reads and enables pagination through a set of `Commit`.""" + commits( """Only read the first `n` values of the set.""" first: Int @@ -169,11 +129,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ObjectFilter + where: CommitFilter - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] - ): ObjectConnection + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] + ): CommitConnection """ Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. @@ -181,11 +141,6 @@ type Query { _meta: MetaSchema } -""" -A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). -""" -scalar UUID - """A connection to a list of `GetAllRecord` values.""" type GetAllConnection { """A list of `GetAllRecord` objects.""" @@ -240,31 +195,31 @@ type PageInfo { endCursor: Cursor } -"""A connection to a list of `Object` values.""" -type ObjectConnection { - """A list of `Object` objects.""" - nodes: [Object]! - - """ - A list of edges which contains the `Object` and cursor to aid in pagination. - """ - edges: [ObjectEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Object` you could get from the connection.""" - totalCount: Int! -} +""" +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 Object { - hashUuid: UUID + """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 - frzn: Boolean + + """Timestamp of object creation""" createdAt: Datetime } @@ -277,15 +232,6 @@ to unexpected results. """ scalar Datetime -"""A `Object` edge in the connection.""" -type ObjectEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Object` at the end of the edge.""" - node: Object -} - """A connection to a list of `Ref` values.""" type RefConnection { """A list of `Ref` objects.""" @@ -303,15 +249,21 @@ type RefConnection { totalCount: Int! } -"""A ref is a data structure for pointing to a commit.""" +"""Branch heads — mutable pointers into the commit chain""" type Ref { - """The primary unique identifier for the ref.""" + """Unique ref identifier""" id: UUID! - """The name of the ref or branch""" + """Ref name (e.g. HEAD, main)""" name: String! + + """Database scope for multi-tenant isolation""" databaseId: UUID! + + """Store this ref belongs to""" storeId: UUID! + + """Commit this ref points to""" commitId: UUID } @@ -561,19 +513,23 @@ type StoreConnection { totalCount: Int! } -"""A store represents an isolated object repository within a database.""" +""" +Named stores — one per version-controlled tree (e.g. one graph, one definition set) +""" type Store { - """The primary unique identifier for the store.""" + """Unique store identifier""" id: UUID! - """The name of the store (e.g., metaschema, migrations).""" + """Human-readable store name""" name: String! - """The database this store belongs to.""" + """Database scope for multi-tenant isolation""" databaseId: UUID! - """The current head tree_id for this store.""" + """Current root object hash of this store""" hash: UUID + + """Timestamp of store creation""" createdAt: Datetime } @@ -674,97 +630,62 @@ enum StoreOrderBy { CREATED_AT_DESC } -"""A connection to a list of `Commit` values.""" -type CommitConnection { - """A list of `Commit` objects.""" - nodes: [Commit]! +"""A connection to a list of `Object` values.""" +type ObjectConnection { + """A list of `Object` objects.""" + nodes: [Object]! """ - A list of edges which contains the `Commit` and cursor to aid in pagination. + A list of edges which contains the `Object` and cursor to aid in pagination. """ - edges: [CommitEdge]! + edges: [ObjectEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Commit` you could get from the connection.""" + """The count of *all* `Object` you could get from the connection.""" totalCount: Int! } -"""A commit records changes to the repository.""" -type Commit { - """The primary unique identifier for the commit.""" - id: UUID! - - """The commit message""" - message: String - - """The repository identifier""" - databaseId: UUID! - storeId: UUID! - - """Parent commits""" - parentIds: [UUID] - - """The author of the commit""" - authorId: UUID - - """The committer of the commit""" - committerId: UUID - - """The root of the tree""" - treeId: UUID - date: Datetime! -} - -"""A `Commit` edge in the connection.""" -type CommitEdge { +"""A `Object` edge in the connection.""" +type ObjectEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Commit` at the end of the edge.""" - node: Commit + """The `Object` at the end of the edge.""" + node: Object } """ -A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ """ -input CommitFilter { +input ObjectFilter { """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 `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 `kids` field.""" + kids: UUIDListFilter - """Filter by the object’s `committerId` field.""" - committerId: UUIDFilter + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter + """Filter by the object’s `data` field.""" + data: JSONFilter - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [CommitFilter!] + and: [ObjectFilter!] """Checks for any expressions in this list.""" - or: [CommitFilter!] + or: [ObjectFilter!] """Negates the expression.""" - not: CommitFilter + not: ObjectFilter } """ @@ -830,66 +751,6 @@ input UUIDListFilter { anyGreaterThanOrEqualTo: UUID } -"""Methods to use when ordering `Commit`.""" -enum CommitOrderBy { - 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 -} - -""" -A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ -""" -input ObjectFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter - - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter - - """Filter by the object’s `data` field.""" - data: JSONFilter - - """Filter by the object’s `frzn` field.""" - frzn: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [ObjectFilter!] - - """Checks for any expressions in this list.""" - or: [ObjectFilter!] - - """Negates the expression.""" - not: ObjectFilter -} - """ A filter to be used against String List fields. All fields are combined with a logical ‘and.’ """ @@ -1010,48 +871,6 @@ input JSONFilter { containedBy: JSON } -""" -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 `Object`.""" enum ObjectOrderBy { NATURAL @@ -1067,12 +886,132 @@ enum ObjectOrderBy { KTREE_DESC DATA_ASC DATA_DESC - FRZN_ASC - FRZN_DESC CREATED_AT_ASC CREATED_AT_DESC } +"""A connection to a list of `Commit` values.""" +type CommitConnection { + """A list of `Commit` objects.""" + nodes: [Commit]! + + """ + A list of edges which contains the `Commit` and cursor to aid in pagination. + """ + edges: [CommitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Commit` you could get from the connection.""" + totalCount: Int! +} + +"""Commit history — each commit snapshots a tree root for a store""" +type Commit { + """Unique commit identifier""" + id: UUID! + + """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] + + """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 `Commit` edge in the connection.""" +type CommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Commit` at the end of the edge.""" + node: Commit +} + +""" +A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ +""" +input CommitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `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: [CommitFilter!] + + """Checks for any expressions in this list.""" + or: [CommitFilter!] + + """Negates the expression.""" + not: CommitFilter +} + +"""Methods to use when ordering `Commit`.""" +enum CommitOrderBy { + 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 +} + """Root meta schema type""" type MetaSchema { tables: [MetaTable!]! @@ -1227,54 +1166,24 @@ type MetaQuery { The root mutation type which contains root level fields which mutate data. """ type Mutation { - freezeObjects( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: FreezeObjectsInput! - ): FreezeObjectsPayload initEmptyRepo( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: InitEmptyRepoInput! ): InitEmptyRepoPayload - removeNodeAtPath( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RemoveNodeAtPathInput! - ): RemoveNodeAtPathPayload setDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: SetDataAtPathInput! ): SetDataAtPathPayload - setPropsAndCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SetPropsAndCommitInput! - ): SetPropsAndCommitPayload insertNodeAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: InsertNodeAtPathInput! ): InsertNodeAtPathPayload - updateNodeAtPath( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateNodeAtPathInput! - ): UpdateNodeAtPathPayload - setAndCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SetAndCommitInput! - ): SetAndCommitPayload """Creates a single `Ref`.""" createRef( @@ -1292,14 +1201,6 @@ type Mutation { input: CreateStoreInput! ): CreateStorePayload - """Creates a single `Commit`.""" - createCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCommitInput! - ): CreateCommitPayload - """Creates a single `Object`.""" createObject( """ @@ -1308,6 +1209,14 @@ type Mutation { input: CreateObjectInput! ): CreateObjectPayload + """Creates a single `Commit`.""" + createCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCommitInput! + ): CreateCommitPayload + """Updates a single `Ref` using a unique key and a patch.""" updateRef( """ @@ -1324,14 +1233,6 @@ type Mutation { input: UpdateStoreInput! ): UpdateStorePayload - """Updates a single `Commit` using a unique key and a patch.""" - updateCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateCommitInput! - ): UpdateCommitPayload - """Updates a single `Object` using a unique key and a patch.""" updateObject( """ @@ -1340,6 +1241,14 @@ type Mutation { input: UpdateObjectInput! ): UpdateObjectPayload + """Updates a single `Commit` using a unique key and a patch.""" + updateCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCommitInput! + ): UpdateCommitPayload + """Deletes a single `Ref` using a unique key.""" deleteRef( """ @@ -1356,14 +1265,6 @@ type Mutation { input: DeleteStoreInput! ): DeleteStorePayload - """Deletes a single `Commit` using a unique key.""" - deleteCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCommitInput! - ): DeleteCommitPayload - """Deletes a single `Object` using a unique key.""" deleteObject( """ @@ -1372,6 +1273,14 @@ type Mutation { input: DeleteObjectInput! ): DeleteObjectPayload + """Deletes a single `Commit` using a unique key.""" + deleteCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCommitInput! + ): DeleteCommitPayload + """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures @@ -1386,31 +1295,6 @@ type Mutation { ): ProvisionBucketPayload } -"""The output of our `freezeObjects` mutation.""" -type FreezeObjectsPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by 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 `freezeObjects` mutation.""" -input FreezeObjectsInput { - """ - An arbitrary 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 - id: UUID -} - """The output of our `initEmptyRepo` mutation.""" type InitEmptyRepoPayload { """ @@ -1432,126 +1316,12 @@ input InitEmptyRepoInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID - storeId: UUID -} - -"""The output of our `removeNodeAtPath` mutation.""" -type RemoveNodeAtPathPayload { - """ - The 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 `removeNodeAtPath` mutation.""" -input RemoveNodeAtPathInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - dbId: UUID - root: UUID - path: [String] -} - -"""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 - dbId: UUID - root: UUID - path: [String] - data: JSON -} - -"""The output of our `setPropsAndCommit` mutation.""" -type SetPropsAndCommitPayload { - """ - The 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 `setPropsAndCommit` mutation.""" -input SetPropsAndCommitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID - refname: String - path: [String] - data: 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 - - """ - 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 - dbId: UUID - root: UUID - path: [String] - data: JSON - kids: [UUID] - ktree: [String] } -"""The output of our `updateNodeAtPath` mutation.""" -type UpdateNodeAtPathPayload { +"""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. @@ -1565,23 +1335,21 @@ type UpdateNodeAtPathPayload { query: Query } -"""All input for the `updateNodeAtPath` mutation.""" -input UpdateNodeAtPathInput { +"""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 - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON - kids: [UUID] - ktree: [String] } -"""The output of our `setAndCommit` mutation.""" -type SetAndCommitPayload { +"""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. @@ -1595,16 +1363,15 @@ type SetAndCommitPayload { query: Query } -"""All input for the `setAndCommit` mutation.""" -input SetAndCommitInput { +"""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 - dbId: UUID - storeId: UUID - refname: String + sId: UUID + root: UUID path: [String] data: JSON kids: [UUID] @@ -1648,13 +1415,19 @@ input CreateRefInput { """An input for mutations affecting `Ref`""" input RefInput { - """The primary unique identifier for the ref.""" + """Unique ref identifier""" id: UUID - """The name of the ref or branch""" + """Ref name (e.g. HEAD, main)""" name: String! + + """Database scope for multi-tenant isolation""" databaseId: UUID! + + """Store this ref belongs to""" storeId: UUID! + + """Commit this ref points to""" commitId: UUID } @@ -1695,125 +1468,141 @@ input CreateStoreInput { """An input for mutations affecting `Store`""" input StoreInput { - """The primary unique identifier for the store.""" + """Unique store identifier""" id: UUID - """The name of the store (e.g., metaschema, migrations).""" + """Human-readable store name""" name: String! - """The database this store belongs to.""" + """Database scope for multi-tenant isolation""" databaseId: UUID! - """The current head tree_id for this store.""" + """Current root object hash of this store""" hash: UUID + + """Timestamp of store creation""" createdAt: Datetime } -"""The output of our create `Commit` mutation.""" -type CreateCommitPayload { +"""The output of our create `Object` mutation.""" +type CreateObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Commit` that was created by this mutation.""" - commit: Commit + """The `Object` that was created by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Commit`. May be used by Relay 1.""" - commitEdge( - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] - ): CommitEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the create `Commit` mutation.""" -input CreateCommitInput { +"""All input for the create `Object` mutation.""" +input CreateObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Commit` to be created by this mutation.""" - commit: CommitInput! + """The `Object` to be created by this mutation.""" + object: ObjectInput! } -"""An input for mutations affecting `Commit`""" -input CommitInput { - """The primary unique identifier for the commit.""" - id: UUID - - """The commit message""" - message: String +"""An input for mutations affecting `Object`""" +input ObjectInput { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! - """The repository identifier""" + """Database scope for multi-tenant isolation""" databaseId: UUID! - storeId: UUID! - """Parent commits""" - parentIds: [UUID] + """Ordered array of child object IDs""" + kids: [UUID] - """The author of the commit""" - authorId: UUID + """Ordered array of child path names (parallel to kids)""" + ktree: [String] - """The committer of the commit""" - committerId: UUID + """Payload data for this object node""" + data: JSON - """The root of the tree""" - treeId: UUID - date: Datetime + """Timestamp of object creation""" + createdAt: Datetime } -"""The output of our create `Object` mutation.""" -type CreateObjectPayload { +"""The output of our create `Commit` mutation.""" +type CreateCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Object` that was created by this mutation.""" - object: Object + """The `Commit` that was created by this mutation.""" + commit: Commit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge } -"""All input for the create `Object` mutation.""" -input CreateObjectInput { +"""All input for the create `Commit` mutation.""" +input CreateCommitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Object` to be created by this mutation.""" - object: ObjectInput! + """The `Commit` to be created by this mutation.""" + commit: CommitInput! } -"""An input for mutations affecting `Object`""" -input ObjectInput { - id: UUID! +"""An input for mutations affecting `Commit`""" +input CommitInput { + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Database scope for multi-tenant isolation""" databaseId: UUID! - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime + + """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 `Ref` mutation.""" @@ -1847,8 +1636,10 @@ input UpdateRefInput { """ clientMutationId: String - """The primary unique identifier for the ref.""" + """Unique ref identifier""" id: UUID! + + """Database scope for multi-tenant isolation""" databaseId: UUID! """ @@ -1859,13 +1650,19 @@ input UpdateRefInput { """Represents an update to a `Ref`. Fields that are set will be updated.""" input RefPatch { - """The primary unique identifier for the ref.""" + """Unique ref identifier""" id: UUID - """The name of the ref or branch""" + """Ref name (e.g. HEAD, main)""" name: String + + """Database scope for multi-tenant isolation""" databaseId: UUID + + """Store this ref belongs to""" storeId: UUID + + """Commit this ref points to""" commitId: UUID } @@ -1900,7 +1697,7 @@ input UpdateStoreInput { """ clientMutationId: String - """The primary unique identifier for the store.""" + """Unique store identifier""" id: UUID! """ @@ -1913,141 +1710,161 @@ input UpdateStoreInput { Represents an update to a `Store`. Fields that are set will be updated. """ input StorePatch { - """The primary unique identifier for the store.""" + """Unique store identifier""" id: UUID - """The name of the store (e.g., metaschema, migrations).""" + """Human-readable store name""" name: String - """The database this store belongs to.""" + """Database scope for multi-tenant isolation""" databaseId: UUID - """The current head tree_id for this store.""" + """Current root object hash of this store""" hash: UUID + + """Timestamp of store creation""" createdAt: Datetime } -"""The output of our update `Commit` mutation.""" -type UpdateCommitPayload { +"""The output of our update `Object` mutation.""" +type UpdateObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Commit` that was updated by this mutation.""" - commit: Commit + """The `Object` that was updated by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Commit`. May be used by Relay 1.""" - commitEdge( - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] - ): CommitEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the `updateCommit` mutation.""" -input UpdateCommitInput { +"""All input for the `updateObject` mutation.""" +input UpdateObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The primary unique identifier for the commit.""" + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID! - """The repository identifier""" + """Database scope for multi-tenant isolation""" databaseId: UUID! """ - An object where the defined keys will be set on the `Commit` being updated. + An object where the defined keys will be set on the `Object` being updated. """ - commitPatch: CommitPatch! + objectPatch: ObjectPatch! } """ -Represents an update to a `Commit`. Fields that are set will be updated. +Represents an update to a `Object`. Fields that are set will be updated. """ -input CommitPatch { - """The primary unique identifier for the commit.""" +input ObjectPatch { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID - """The commit message""" - message: String - - """The repository identifier""" + """Database scope for multi-tenant isolation""" databaseId: UUID - storeId: UUID - """Parent commits""" - parentIds: [UUID] + """Ordered array of child object IDs""" + kids: [UUID] - """The author of the commit""" - authorId: UUID + """Ordered array of child path names (parallel to kids)""" + ktree: [String] - """The committer of the commit""" - committerId: UUID + """Payload data for this object node""" + data: JSON - """The root of the tree""" - treeId: UUID - date: Datetime + """Timestamp of object creation""" + createdAt: Datetime } -"""The output of our update `Object` mutation.""" -type UpdateObjectPayload { +"""The output of our update `Commit` mutation.""" +type UpdateCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Object` that was updated by this mutation.""" - object: Object + """The `Commit` that was updated by this mutation.""" + commit: Commit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge } -"""All input for the `updateObject` mutation.""" -input UpdateObjectInput { +"""All input for the `updateCommit` mutation.""" +input UpdateCommitInput { """ An arbitrary 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 `Object` being updated. + An object where the defined keys will be set on the `Commit` being updated. """ - objectPatch: ObjectPatch! + commitPatch: CommitPatch! } """ -Represents an update to a `Object`. Fields that are set will be updated. +Represents an update to a `Commit`. Fields that are set will be updated. """ -input ObjectPatch { +input CommitPatch { + """Unique commit identifier""" id: UUID + + """Optional commit message""" + message: String + + """Database scope for multi-tenant isolation""" databaseId: UUID - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime + + """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 delete `Ref` mutation.""" @@ -2081,8 +1898,10 @@ input DeleteRefInput { """ clientMutationId: String - """The primary unique identifier for the ref.""" + """Unique ref identifier""" id: UUID! + + """Database scope for multi-tenant isolation""" databaseId: UUID! } @@ -2117,79 +1936,83 @@ input DeleteStoreInput { """ clientMutationId: String - """The primary unique identifier for the store.""" + """Unique store identifier""" id: UUID! } -"""The output of our delete `Commit` mutation.""" -type DeleteCommitPayload { +"""The output of our delete `Object` mutation.""" +type DeleteObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Commit` that was deleted by this mutation.""" - commit: Commit + """The `Object` that was deleted by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Commit`. May be used by Relay 1.""" - commitEdge( - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] - ): CommitEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the `deleteCommit` mutation.""" -input DeleteCommitInput { +"""All input for the `deleteObject` mutation.""" +input DeleteObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The primary unique identifier for the commit.""" + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID! - """The repository identifier""" + """Database scope for multi-tenant isolation""" databaseId: UUID! } -"""The output of our delete `Object` mutation.""" -type DeleteObjectPayload { +"""The output of our delete `Commit` mutation.""" +type DeleteCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Object` that was deleted by this mutation.""" - object: Object + """The `Commit` that was deleted by this mutation.""" + commit: Commit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge } -"""All input for the `deleteObject` mutation.""" -input DeleteObjectInput { +"""All input for the `deleteCommit` mutation.""" +input DeleteCommitInput { """ An arbitrary 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! } diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql deleted file mode 100644 index 8f54e6e93c..0000000000 --- a/sdk/constructive-sdk/schemas/public.graphql +++ /dev/null @@ -1,66880 +0,0 @@ -"""The root query type which gives access points into the data universe.""" -type Query { - currentUserId: UUID - currentUserAgent: String - currentIpAddress: InternetAddress - requireStepUp(stepUpType: String): Boolean - appPermissionsGetPaddedMask(mask: BitString): BitString - orgPermissionsGetPaddedMask(mask: BitString): BitString - applyRegistryDefaults(nodeType: String, data: JSON): JSON - - """ - Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - """ - resolveBlueprintField(databaseId: UUID, tableId: UUID, fieldName: String): UUID - - """ - Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - """ - resolveBlueprintTable(databaseId: UUID, tableName: String, schemaName: String, tableMap: JSON, defaultSchemaId: UUID): UUID - orgIsManagerOf(pEntityId: UUID, pManagerId: UUID, pUserId: UUID, pMaxDepth: Int): Boolean - - """Reads and enables pagination through a set of `OrgGetManagersRecord`.""" - orgGetManagers( - pEntityId: UUID - pUserId: UUID - pMaxDepth: Int - - """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 - ): OrgGetManagersConnection - - """ - Reads and enables pagination through a set of `OrgGetSubordinatesRecord`. - """ - orgGetSubordinates( - pEntityId: UUID - pUserId: UUID - pMaxDepth: Int - - """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 - ): OrgGetSubordinatesConnection - appPermissionsGetMask(ids: [UUID]): BitString - orgPermissionsGetMask(ids: [UUID]): BitString - appPermissionsGetMaskByNames(names: [String]): BitString - orgPermissionsGetMaskByNames(names: [String]): BitString - - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissionsGetByMask( - mask: BitString - - """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 - ): AppPermissionConnection - - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissionsGetByMask( - mask: BitString - - """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 - ): OrgPermissionConnection - currentUser: User - - """Reads and enables pagination through a set of `DefaultIdsModule`.""" - defaultIdsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DefaultIdsModuleFilter - - """The method to use when ordering `DefaultIdsModule`.""" - orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DefaultIdsModuleConnection - - """ - Reads and enables pagination through a set of `AppLimitCreditRedemption`. - """ - appLimitCreditRedemptions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditRedemptionFilter - - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionConnection - - """Reads and enables pagination through a set of `Function`.""" - functions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FunctionFilter - - """The method to use when ordering `Function`.""" - orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionConnection - - """Reads and enables pagination through a set of `ViewTable`.""" - viewTables( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewTableFilter - - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewTableConnection - - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemas( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiSchemaFilter - - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSchemaConnection - - """Reads and enables pagination through a set of `SiteTheme`.""" - siteThemes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteThemeFilter - - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteThemeConnection - - """Reads and enables pagination through a set of `OrgMember`.""" - orgMembers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgMemberFilter - - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberConnection - - """Reads and enables pagination through a set of `CorsSetting`.""" - corsSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CorsSettingFilter - - """The method to use when ordering `CorsSetting`.""" - orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): CorsSettingConnection - - """Reads and enables pagination through a set of `IdentityProvider`.""" - identityProviders( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: IdentityProviderFilter - - """The method to use when ordering `IdentityProvider`.""" - orderBy: [IdentityProviderOrderBy!] = [NATURAL] - ): IdentityProviderConnection - - """ - 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 `MembershipTypesModule`.""" - membershipTypesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: MembershipTypesModuleFilter - - """The method to use when ordering `MembershipTypesModule`.""" - 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 `AppPermissionDefault`.""" - appPermissionDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppPermissionDefaultFilter - - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultConnection - - """Reads and enables pagination through a set of `ApiModule`.""" - apiModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiModuleFilter - - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiModuleConnection - - """Reads and enables pagination through a set of `SiteModule`.""" - siteModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteModuleFilter - - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteModuleConnection - - """Reads and enables pagination through a set of `RoleType`.""" - roleTypes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: RoleTypeFilter - - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): RoleTypeConnection - - """Reads and enables pagination through a set of `SchemaGrant`.""" - schemaGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: SchemaGrantFilter - - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaGrantConnection - - """Reads and enables pagination through a set of `TriggerFunction`.""" - triggerFunctions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TriggerFunctionFilter - - """The method to use when ordering `TriggerFunction`.""" - orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] - ): TriggerFunctionConnection - - """Reads and enables pagination through a set of `ViewRule`.""" - viewRules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewRuleFilter - - """The method to use when ordering `ViewRule`.""" - orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewRuleConnection - - """ - Reads and enables pagination through a set of `ConfigSecretsUserModule`. - """ - configSecretsUserModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ConfigSecretsUserModuleFilter - - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleConnection - - """ - Reads and enables pagination through a set of `IdentityProvidersModule`. - """ - identityProvidersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: IdentityProvidersModuleFilter - - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection - - """Reads and enables pagination through a set of `SessionSecretsModule`.""" - sessionSecretsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SessionSecretsModuleFilter - - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleConnection - - """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppAdminGrantFilter - - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAdminGrantConnection - - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppOwnerGrantFilter - - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection - - """Reads and enables pagination through a set of `OrgPermissionDefault`.""" - orgPermissionDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgPermissionDefaultFilter - - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultConnection - - """Reads and enables pagination through a set of `MigrateFile`.""" - migrateFiles( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: MigrateFileFilter - - """The method to use when ordering `MigrateFile`.""" - orderBy: [MigrateFileOrderBy!] = [NATURAL] - ): MigrateFileConnection - - """Reads and enables pagination through a set of `DefaultPrivilege`.""" - defaultPrivileges( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DefaultPrivilegeFilter - - """The method to use when ordering `DefaultPrivilege`.""" - orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] - ): DefaultPrivilegeConnection - - """Reads and enables pagination through a set of `ViewGrant`.""" - viewGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewGrantFilter - - """The method to use when ordering `ViewGrant`.""" - orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewGrantConnection - - """Reads and enables pagination through a set of `Api`.""" - apis( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiFilter - - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiConnection - - """ - Reads and enables pagination through a set of `ConnectedAccountsModule`. - """ - connectedAccountsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ConnectedAccountsModuleFilter - - """The method to use when ordering `ConnectedAccountsModule`.""" - orderBy: [ConnectedAccountsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConnectedAccountsModuleConnection - - """Reads and enables pagination through a set of `DevicesModule`.""" - devicesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DevicesModuleFilter - - """The method to use when ordering `DevicesModule`.""" - orderBy: [DevicesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DevicesModuleConnection - - """Reads and enables pagination through a set of `EmailsModule`.""" - emailsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EmailsModuleFilter - - """The method to use when ordering `EmailsModule`.""" - orderBy: [EmailsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EmailsModuleConnection - - """Reads and enables pagination through a set of `PhoneNumbersModule`.""" - phoneNumbersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PhoneNumbersModuleFilter - - """The method to use when ordering `PhoneNumbersModule`.""" - orderBy: [PhoneNumbersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumbersModuleConnection - - """Reads and enables pagination through a set of `UsersModule`.""" - usersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UsersModuleFilter - - """The method to use when ordering `UsersModule`.""" - orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UsersModuleConnection - - """ - Reads and enables pagination through a set of `WebauthnCredentialsModule`. - """ - webauthnCredentialsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: WebauthnCredentialsModuleFilter - - """The method to use when ordering `WebauthnCredentialsModule`.""" - orderBy: [WebauthnCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnCredentialsModuleConnection - - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppMembershipDefaultFilter - - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection - - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgAdminGrantFilter - - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection - - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgMembershipDefaultFilter - - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection - - """Reads and enables pagination through a set of `OrgOwnerGrant`.""" - orgOwnerGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgOwnerGrantFilter - - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantConnection - - """Reads and enables pagination through a set of `NodeTypeRegistry`.""" - nodeTypeRegistries( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: NodeTypeRegistryFilter - - """The method to use when ordering `NodeTypeRegistry`.""" - orderBy: [NodeTypeRegistryOrderBy!] = [PRIMARY_KEY_ASC] - ): NodeTypeRegistryConnection - - """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" - appLimitCapsDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCapsDefaultFilter - - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultConnection - - """Reads and enables pagination through a set of `OrgLimitCapsDefault`.""" - orgLimitCapsDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitCapsDefaultFilter - - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultConnection - - """Reads and enables pagination through a set of `AppLimitCap`.""" - appLimitCaps( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCapFilter - - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCapConnection - - """Reads and enables pagination through a set of `OrgLimitCap`.""" - orgLimitCaps( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitCapFilter - - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCapConnection - - """Reads and enables pagination through a set of `UserConnectedAccount`.""" - userConnectedAccounts( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UserConnectedAccountFilter - - """The method to use when ordering `UserConnectedAccount`.""" - orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] - ): UserConnectedAccountConnection - - """Reads and enables pagination through a set of `Database`.""" - databases( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DatabaseFilter - - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseConnection - - """Reads and enables pagination through a set of `CryptoAddressesModule`.""" - cryptoAddressesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CryptoAddressesModuleFilter - - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleConnection - - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgChartEdgeFilter - - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection - - """Reads and enables pagination through a set of `CryptoAddress`.""" - cryptoAddresses( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CryptoAddressFilter - - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressConnection - - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItems( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditCodeItemFilter - - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection - - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitDefaultFilter - - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection - - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitDefaultFilter - - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection - - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppPermissionFilter - - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection - - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgPermissionFilter - - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection - - """Reads and enables pagination through a set of `AppLimitCreditCode`.""" - appLimitCreditCodes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditCodeFilter - - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeConnection - - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitWarningFilter - - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitWarningConnection - - """Reads and enables pagination through a set of `FullTextSearch`.""" - fullTextSearches( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FullTextSearchFilter - - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] - ): FullTextSearchConnection - - """Reads and enables pagination through a set of `TableGrant`.""" - tableGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TableGrantFilter - - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): TableGrantConnection - - """Reads and enables pagination through a set of `SiteMetadatum`.""" - siteMetadata( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteMetadatumFilter - - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteMetadatumConnection - - """Reads and enables pagination through a set of `PubkeySetting`.""" - pubkeySettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: PubkeySettingFilter - - """The method to use when ordering `PubkeySetting`.""" - orderBy: [PubkeySettingOrderBy!] = [PRIMARY_KEY_ASC] - ): PubkeySettingConnection - - """Reads and enables pagination through a set of `RateLimitsModule`.""" - rateLimitsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RateLimitsModuleFilter - - """The method to use when ordering `RateLimitsModule`.""" - orderBy: [RateLimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RateLimitsModuleConnection - - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgChartEdgeGrantFilter - - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection - - """Reads and enables pagination through a set of `PhoneNumber`.""" - phoneNumbers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: PhoneNumberFilter - - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumberConnection - - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditFilter - - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection - - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCredits( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitCreditFilter - - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection - - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvites( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppClaimedInviteFilter - - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppClaimedInviteConnection - - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarnings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitWarningFilter - - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitWarningConnection - - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: MembershipTypeFilter - - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection - - """Reads and enables pagination through a set of `Domain`.""" - domains( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DomainFilter - - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] - ): DomainConnection - - """Reads and enables pagination through a set of `RlsSetting`.""" - rlsSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RlsSettingFilter - - """The method to use when ordering `RlsSetting`.""" - orderBy: [RlsSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): RlsSettingConnection - - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppGrantFilter - - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection - - """Reads and enables pagination through a set of `OrgClaimedInvite`.""" - orgClaimedInvites( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgClaimedInviteFilter - - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteConnection - - """Reads and enables pagination through a set of `AuditLogAuth`.""" - auditLogAuths( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AuditLogAuthFilter - - """The method to use when ordering `AuditLogAuth`.""" - orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogAuthConnection - - """Reads and enables pagination through a set of `BlueprintConstruction`.""" - blueprintConstructions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintConstructionFilter - - """The method to use when ordering `BlueprintConstruction`.""" - orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConstructionConnection - - """Reads and enables pagination through a set of `RlsModule`.""" - rlsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RlsModuleFilter - - """The method to use when ordering `RlsModule`.""" - orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RlsModuleConnection - - """Reads and enables pagination through a set of `SessionsModule`.""" - sessionsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SessionsModuleFilter - - """The method to use when ordering `SessionsModule`.""" - orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionsModuleConnection - - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfiles( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMemberProfileFilter - - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection - - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgGrantFilter - - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection - - """Reads and enables pagination through a set of `Blueprint`.""" - blueprints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintFilter - - """The method to use when ordering `Blueprint`.""" - orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConnection - - """ - Reads and enables pagination through a set of `DenormalizedTableField`. - """ - denormalizedTableFields( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DenormalizedTableFieldFilter - - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldConnection - - """Reads and enables pagination through a set of `RateLimitMetersModule`.""" - rateLimitMetersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RateLimitMetersModuleFilter - - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleConnection - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection - - """Reads and enables pagination through a set of `Partition`.""" - partitions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PartitionFilter - - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] - ): PartitionConnection - - """Reads and enables pagination through a set of `PlansModule`.""" - plansModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: PlansModuleFilter - - """The method to use when ordering `PlansModule`.""" - orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PlansModuleConnection - - """Reads and enables pagination through a set of `Email`.""" - emails( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: EmailFilter - - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] - ): EmailConnection - - """Reads and enables pagination through a set of `SqlAction`.""" - sqlActions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SqlActionFilter - - """The method to use when ordering `SqlAction`.""" - orderBy: [SqlActionOrderBy!] = [NATURAL] - ): SqlActionConnection - - """Reads and enables pagination through a set of `DatabaseTransfer`.""" - databaseTransfers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DatabaseTransferFilter - - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseTransferConnection - - """Reads and enables pagination through a set of `DatabaseSetting`.""" - databaseSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DatabaseSettingFilter - - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseSettingConnection - - """Reads and enables pagination through a set of `CryptoAuthModule`.""" - cryptoAuthModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CryptoAuthModuleFilter - - """The method to use when ordering `CryptoAuthModule`.""" - orderBy: [CryptoAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAuthModuleConnection - - """ - Reads and enables pagination through a set of `DatabaseProvisionModule`. - """ - databaseProvisionModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DatabaseProvisionModuleFilter - - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleConnection - - """Reads and enables pagination through a set of `InvitesModule`.""" - invitesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: InvitesModuleFilter - - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InvitesModuleConnection - - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipSettingFilter - - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection - - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SecureTableProvisionFilter - - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection - - """Reads and enables pagination through a set of `ApiSetting`.""" - apiSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiSettingFilter - - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSettingConnection - - """Reads and enables pagination through a set of `ComputeLogModule`.""" - computeLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ComputeLogModuleFilter - - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ComputeLogModuleConnection - - """Reads and enables pagination through a set of `InferenceLogModule`.""" - inferenceLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: InferenceLogModuleFilter - - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InferenceLogModuleConnection - - """Reads and enables pagination through a set of `MerkleStoreModule`.""" - merkleStoreModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: MerkleStoreModuleFilter - - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleConnection - - """Reads and enables pagination through a set of `StorageLogModule`.""" - storageLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: StorageLogModuleFilter - - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageLogModuleConnection - - """Reads and enables pagination through a set of `TransferLogModule`.""" - transferLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: TransferLogModuleFilter - - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): TransferLogModuleConnection - - """Reads and enables pagination through a set of `Enum`.""" - enums( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EnumFilter - - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] - ): EnumConnection - - """Reads and enables pagination through a set of `AppLimitEvent`.""" - appLimitEvents( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitEventFilter - - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitEventConnection - - """Reads and enables pagination through a set of `OrgLimitEvent`.""" - orgLimitEvents( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitEventFilter - - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitEventConnection - - """Reads and enables pagination through a set of `View`.""" - views( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewFilter - - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewConnection - - """Reads and enables pagination through a set of `WebauthnAuthModule`.""" - webauthnAuthModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: WebauthnAuthModuleFilter - - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleConnection - - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppMembershipFilter - - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipConnection - - """Reads and enables pagination through a set of `User`.""" - users( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UserFilter - - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] - ): UserConnection - - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitFilter - - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection - - """Reads and enables pagination through a set of `App`.""" - apps( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppFilter - - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] - ): AppConnection - - """Reads and enables pagination through a set of `Site`.""" - sites( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteFilter - - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteConnection - - """Reads and enables pagination through a set of `DbUsageModule`.""" - dbUsageModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DbUsageModuleFilter - - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DbUsageModuleConnection - - """Reads and enables pagination through a set of `NamespaceModule`.""" - namespaceModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: NamespaceModuleFilter - - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NamespaceModuleConnection - - """Reads and enables pagination through a set of `NotificationsModule`.""" - notificationsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: NotificationsModuleFilter - - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NotificationsModuleConnection - - """Reads and enables pagination through a set of `PermissionsModule`.""" - permissionsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: PermissionsModuleFilter - - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PermissionsModuleConnection - - """Reads and enables pagination through a set of `AstMigration`.""" - astMigrations( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AstMigrationFilter - - """The method to use when ordering `AstMigration`.""" - orderBy: [AstMigrationOrderBy!] = [NATURAL] - ): AstMigrationConnection - - """Reads and enables pagination through a set of `WebauthnCredential`.""" - webauthnCredentials( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: WebauthnCredentialFilter - - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnCredentialConnection - - """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" - primaryKeyConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PrimaryKeyConstraintFilter - - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintConnection - - """Reads and enables pagination through a set of `Trigger`.""" - triggers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TriggerFilter - - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] - ): TriggerConnection - - """Reads and enables pagination through a set of `CheckConstraint`.""" - checkConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CheckConstraintFilter - - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): CheckConstraintConnection - - """Reads and enables pagination through a set of `UniqueConstraint`.""" - uniqueConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UniqueConstraintFilter - - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): UniqueConstraintConnection - - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelations( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SpatialRelationFilter - - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] - ): SpatialRelationConnection - - """Reads and enables pagination through a set of `Policy`.""" - policies( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PolicyFilter - - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] - ): PolicyConnection - - """Reads and enables pagination through a set of `OrgLimitAggregate`.""" - orgLimitAggregates( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitAggregateFilter - - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateConnection - - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitFilter - - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection - - """Reads and enables pagination through a set of `WebauthnSetting`.""" - webauthnSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: WebauthnSettingFilter - - """The method to use when ordering `WebauthnSetting`.""" - orderBy: [WebauthnSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnSettingConnection - - """Reads and enables pagination through a set of `BillingModule`.""" - billingModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BillingModuleFilter - - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): BillingModuleConnection - - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipFilter - - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection - - """Reads and enables pagination through a set of `Schema`.""" - schemas( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SchemaFilter - - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaConnection - - """Reads and enables pagination through a set of `Index`.""" - indices( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: IndexFilter - - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] - ): IndexConnection - - """Reads and enables pagination through a set of `GraphModule`.""" - graphModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: GraphModuleFilter - - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): GraphModuleConnection - - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppInviteFilter - - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection - - """Reads and enables pagination through a set of `BillingProviderModule`.""" - billingProviderModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BillingProviderModuleFilter - - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): BillingProviderModuleConnection - - """Reads and enables pagination through a set of `BlueprintTemplate`.""" - blueprintTemplates( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintTemplateFilter - - """The method to use when ordering `BlueprintTemplate`.""" - orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintTemplateConnection - - """Reads and enables pagination through a set of `HierarchyModule`.""" - hierarchyModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: HierarchyModuleFilter - - """The method to use when ordering `HierarchyModule`.""" - orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): HierarchyModuleConnection - - """Reads and enables pagination through a set of `ProfilesModule`.""" - profilesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ProfilesModuleFilter - - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ProfilesModuleConnection - - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EmbeddingChunkFilter - - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection - - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ForeignKeyConstraintFilter - - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection - - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvites( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgInviteFilter - - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection - - """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 `RelationProvision`.""" - relationProvisions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RelationProvisionFilter - - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection - - """Reads and enables pagination through a set of `UserAuthModule`.""" - userAuthModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UserAuthModuleFilter - - """The method to use when ordering `UserAuthModule`.""" - orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UserAuthModuleConnection - - """Reads and enables pagination through a set of `Field`.""" - fields( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FieldFilter - - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] - ): FieldConnection - - """Reads and enables pagination through a set of `FunctionModule`.""" - functionModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FunctionModuleFilter - - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionModuleConnection - - """Reads and enables pagination through a set of `Table`.""" - tables( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: TableFilter - - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] - ): TableConnection - - """Reads and enables pagination through a set of `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 `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 - - """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 - - """ - Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. - """ - _meta: MetaSchema -} - -""" -A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). -""" -scalar UUID - -"""An IPv4 or IPv6 host address, and optionally its subnet.""" -scalar InternetAddress - -"""A string representing a series of binary bits""" -scalar BitString - -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON - -"""A connection to a list of `OrgGetManagersRecord` values.""" -type OrgGetManagersConnection { - """A list of `OrgGetManagersRecord` objects.""" - nodes: [OrgGetManagersRecord]! - - """ - A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. - """ - edges: [OrgGetManagersEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgGetManagersRecord` you could get from the connection. - """ - totalCount: Int! -} - -type OrgGetManagersRecord { - userId: UUID - depth: Int -} - -"""A `OrgGetManagersRecord` edge in the connection.""" -type OrgGetManagersEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgGetManagersRecord` at the end of the edge.""" - node: OrgGetManagersRecord -} - -"""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 `OrgGetSubordinatesRecord` values.""" -type OrgGetSubordinatesConnection { - """A list of `OrgGetSubordinatesRecord` objects.""" - nodes: [OrgGetSubordinatesRecord]! - - """ - A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. - """ - edges: [OrgGetSubordinatesEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. - """ - totalCount: Int! -} - -type OrgGetSubordinatesRecord { - userId: UUID - depth: Int -} - -"""A `OrgGetSubordinatesRecord` edge in the connection.""" -type OrgGetSubordinatesEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgGetSubordinatesRecord` at the end of the edge.""" - node: OrgGetSubordinatesRecord -} - -"""A connection to a list of `AppPermission` values.""" -type AppPermissionConnection { - """A list of `AppPermission` objects.""" - nodes: [AppPermission]! - - """ - A list of edges which contains the `AppPermission` and cursor to aid in pagination. - """ - edges: [AppPermissionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppPermission` you could get from the connection.""" - totalCount: Int! -} - -""" -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control -""" -type AppPermission { - id: UUID! - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString! - - """Human-readable description of what this permission allows""" - description: String -} - -"""A `AppPermission` edge in the connection.""" -type AppPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermission` at the end of the edge.""" - node: AppPermission -} - -"""A connection to a list of `OrgPermission` values.""" -type OrgPermissionConnection { - """A list of `OrgPermission` objects.""" - nodes: [OrgPermission]! - - """ - A list of edges which contains the `OrgPermission` and cursor to aid in pagination. - """ - edges: [OrgPermissionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgPermission` you could get from the connection.""" - totalCount: Int! -} - -""" -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control -""" -type OrgPermission { - id: UUID! - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString! - - """Human-readable description of what this permission allows""" - description: String -} - -"""A `OrgPermission` edge in the connection.""" -type OrgPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgPermission` at the end of the edge.""" - node: OrgPermission -} - -type User { - id: UUID! - username: String - displayName: String - profilePicture: ConstructiveInternalTypeImage - searchTsv: FullText - type: Int! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `RoleType` that is related to this `User`.""" - roleType: RoleType - - """Reads and enables pagination through a set of `Database`.""" - ownedDatabases( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DatabaseFilter - - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseConnection! - - """Reads a single `AppMembership` that is related to this `User`.""" - appMembershipByActorId: AppMembership - - """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrantsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppAdminGrantFilter - - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAdminGrantConnection! - - """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrantsByGrantorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppAdminGrantFilter - - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAdminGrantConnection! - - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrantsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppOwnerGrantFilter - - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection! - - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrantsByGrantorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: AppOwnerGrantFilter - - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection! - - """Reads and enables pagination through a set of `AppGrant`.""" - appGrantsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppGrantFilter - - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection! - - """Reads and enables pagination through a set of `AppGrant`.""" - appGrantsByGrantorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppGrantFilter - - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection! - - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMembershipsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipFilter - - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection! - - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMembershipsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMembershipFilter - - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection! - - """Reads a single `OrgMembershipDefault` that is related to this `User`.""" - orgMembershipDefaultByEntityId: OrgMembershipDefault - - """Reads a single `OrgMembershipSetting` that is related to this `User`.""" - orgMembershipSettingByEntityId: OrgMembershipSetting - - """Reads and enables pagination through a set of `OrgMember`.""" - orgMembersByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgMemberFilter - - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberConnection! - - """Reads and enables pagination through a set of `OrgMember`.""" - orgMembersByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgMemberFilter - - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberConnection! - - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrantsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgAdminGrantFilter - - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection! - - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrantsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgAdminGrantFilter - - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection! - - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrantsByGrantorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgAdminGrantFilter - - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection! - - """Reads and enables pagination through a set of `OrgOwnerGrant`.""" - orgOwnerGrantsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgOwnerGrantFilter - - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantConnection! - - """Reads and enables pagination through a set of `OrgOwnerGrant`.""" - orgOwnerGrantsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgOwnerGrantFilter - - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantConnection! - - """Reads and enables pagination through a set of `OrgOwnerGrant`.""" - orgOwnerGrantsByGrantorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgOwnerGrantFilter - - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantConnection! - - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfilesByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMemberProfileFilter - - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection! - - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfilesByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgMemberProfileFilter - - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection! - - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrantsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgGrantFilter - - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection! - - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrantsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgGrantFilter - - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection! - - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrantsByGrantorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgGrantFilter - - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection! - - """Reads and enables pagination through a set of `OrgChartEdge`.""" - parentOrgChartEdges( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgChartEdgeFilter - - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection! - - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdgesByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgChartEdgeFilter - - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection! - - """Reads and enables pagination through a set of `OrgChartEdge`.""" - childOrgChartEdges( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgChartEdgeFilter - - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection! - - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - parentOrgChartEdgeGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgChartEdgeGrantFilter - - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection! - - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrantsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgChartEdgeGrantFilter - - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection! - - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrantsByGrantorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgChartEdgeGrantFilter - - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection! - - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - childOrgChartEdgeGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgChartEdgeGrantFilter - - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection! - - """Reads and enables pagination through a set of `OrgPermissionDefault`.""" - orgPermissionDefaultsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgPermissionDefaultFilter - - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultConnection! - - """Reads and enables pagination through a set of `AppLimit`.""" - appLimitsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitFilter - - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection! - - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCreditsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditFilter - - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection! - - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimitsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitFilter - - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection! - - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimitsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitFilter - - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection! - - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCreditsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitCreditFilter - - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection! - - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCreditsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitCreditFilter - - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection! - - """Reads and enables pagination through a set of `OrgLimitAggregate`.""" - orgLimitAggregatesByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitAggregateFilter - - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateConnection! - - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarningsByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitWarningFilter - - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitWarningConnection! - - """Reads and enables pagination through a set of `Email`.""" - ownedEmails( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: EmailFilter - - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] - ): EmailConnection! - - """Reads and enables pagination through a set of `PhoneNumber`.""" - ownedPhoneNumbers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: PhoneNumberFilter - - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumberConnection! - - """Reads and enables pagination through a set of `CryptoAddress`.""" - ownedCryptoAddresses( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CryptoAddressFilter - - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressConnection! - - """Reads and enables pagination through a set of `WebauthnCredential`.""" - ownedWebauthnCredentials( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: WebauthnCredentialFilter - - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnCredentialConnection! - - """Reads and enables pagination through a set of `AppInvite`.""" - appInvitesBySenderId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppInviteFilter - - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection! - - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvitesByReceiverId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppClaimedInviteFilter - - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppClaimedInviteConnection! - - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvitesBySenderId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppClaimedInviteFilter - - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppClaimedInviteConnection! - - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvitesByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgInviteFilter - - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection! - - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvitesByReceiverId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgInviteFilter - - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection! - - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvitesBySenderId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgInviteFilter - - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection! - - """Reads and enables pagination through a set of `OrgClaimedInvite`.""" - orgClaimedInvitesByEntityId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgClaimedInviteFilter - - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteConnection! - - """Reads and enables pagination through a set of `OrgClaimedInvite`.""" - orgClaimedInvitesByReceiverId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgClaimedInviteFilter - - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteConnection! - - """Reads and enables pagination through a set of `OrgClaimedInvite`.""" - orgClaimedInvitesBySenderId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgClaimedInviteFilter - - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteConnection! - - """Reads and enables pagination through a set of `AuditLogAuth`.""" - auditLogAuthsByActorId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AuditLogAuthFilter - - """The method to use when ordering `AuditLogAuth`.""" - orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogAuthConnection! - - """ - TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. - """ - searchTsvRank: Float - - """ - TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. - """ - displayNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. - """ - searchScore: Float -} - -scalar ConstructiveInternalTypeImage - -"""A full-text search tsvector value represented as a string.""" -scalar FullText - -""" -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 - -type RoleType { - id: Int! - name: String! -} - -"""A connection to a list of `Database` values.""" -type DatabaseConnection { - """A list of `Database` objects.""" - nodes: [Database]! - - """ - A list of edges which contains the `Database` and cursor to aid in pagination. - """ - edges: [DatabaseEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Database` you could get from the connection.""" - totalCount: Int! -} - -type Database { - id: UUID! - ownerId: UUID - schemaHash: String - name: String - label: String - hash: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `Database`.""" - owner: User - - """Reads and enables pagination through a set of `Schema`.""" - schemas( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SchemaFilter - - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaConnection! - - """Reads and enables pagination through a set of `Table`.""" - tables( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: TableFilter - - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] - ): TableConnection! - - """Reads and enables pagination through a set of `CheckConstraint`.""" - checkConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CheckConstraintFilter - - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): CheckConstraintConnection! - - """Reads and enables pagination through a set of `Field`.""" - fields( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FieldFilter - - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] - ): FieldConnection! - - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ForeignKeyConstraintFilter - - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection! - - """Reads and enables pagination through a set of `FullTextSearch`.""" - fullTextSearches( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FullTextSearchFilter - - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] - ): FullTextSearchConnection! - - """Reads and enables pagination through a set of `Index`.""" - indices( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: IndexFilter - - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] - ): IndexConnection! - - """Reads and enables pagination through a set of `Policy`.""" - policies( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PolicyFilter - - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] - ): PolicyConnection! - - """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" - primaryKeyConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PrimaryKeyConstraintFilter - - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintConnection! - - """Reads and enables pagination through a set of `SchemaGrant`.""" - schemaGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: SchemaGrantFilter - - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaGrantConnection! - - """Reads and enables pagination through a set of `TableGrant`.""" - tableGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TableGrantFilter - - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): TableGrantConnection! - - """Reads and enables pagination through a set of `TriggerFunction`.""" - triggerFunctions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TriggerFunctionFilter - - """The method to use when ordering `TriggerFunction`.""" - orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] - ): TriggerFunctionConnection! - - """Reads and enables pagination through a set of `Trigger`.""" - triggers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TriggerFilter - - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] - ): TriggerConnection! - - """Reads and enables pagination through a set of `UniqueConstraint`.""" - uniqueConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UniqueConstraintFilter - - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): UniqueConstraintConnection! - - """Reads and enables pagination through a set of `View`.""" - views( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewFilter - - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewConnection! - - """Reads and enables pagination through a set of `ViewGrant`.""" - viewGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewGrantFilter - - """The method to use when ordering `ViewGrant`.""" - orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewGrantConnection! - - """Reads and enables pagination through a set of `ViewRule`.""" - viewRules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewRuleFilter - - """The method to use when ordering `ViewRule`.""" - orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewRuleConnection! - - """Reads and enables pagination through a set of `DefaultPrivilege`.""" - defaultPrivileges( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DefaultPrivilegeFilter - - """The method to use when ordering `DefaultPrivilege`.""" - orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] - ): DefaultPrivilegeConnection! - - """Reads and enables pagination through a set of `Enum`.""" - enums( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EnumFilter - - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] - ): EnumConnection! - - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EmbeddingChunkFilter - - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection! - - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelations( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SpatialRelationFilter - - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] - ): SpatialRelationConnection! - - """Reads and enables pagination through a set of `Function`.""" - functions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FunctionFilter - - """The method to use when ordering `Function`.""" - orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionConnection! - - """Reads and enables pagination through a set of `Partition`.""" - partitions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PartitionFilter - - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] - ): PartitionConnection! - - """Reads and enables pagination through a set of `DatabaseTransfer`.""" - databaseTransfers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DatabaseTransferFilter - - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseTransferConnection! - - """Reads and enables pagination through a set of `Api`.""" - apis( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiFilter - - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiConnection! - - """Reads and enables pagination through a set of `ApiModule`.""" - apiModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiModuleFilter - - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiModuleConnection! - - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemas( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiSchemaFilter - - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSchemaConnection! - - """Reads and enables pagination through a set of `Site`.""" - sites( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteFilter - - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteConnection! - - """Reads and enables pagination through a set of `App`.""" - apps( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppFilter - - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] - ): AppConnection! - - """Reads and enables pagination through a set of `Domain`.""" - domains( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DomainFilter - - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] - ): DomainConnection! - - """Reads and enables pagination through a set of `SiteMetadatum`.""" - siteMetadata( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteMetadatumFilter - - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteMetadatumConnection! - - """Reads and enables pagination through a set of `SiteModule`.""" - siteModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteModuleFilter - - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteModuleConnection! - - """Reads and enables pagination through a set of `SiteTheme`.""" - siteThemes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteThemeFilter - - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteThemeConnection! - - """Reads a single `DatabaseSetting` that is related to this `Database`.""" - databaseSetting: DatabaseSetting - - """Reads and enables pagination through a set of `ApiSetting`.""" - apiSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiSettingFilter - - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSettingConnection! - - """Reads a single `RlsSetting` that is related to this `Database`.""" - rlsSetting: RlsSetting - - """Reads and enables pagination through a set of `CorsSetting`.""" - corsSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CorsSettingFilter - - """The method to use when ordering `CorsSetting`.""" - orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): CorsSettingConnection! - - """Reads a single `PubkeySetting` that is related to this `Database`.""" - pubkeySetting: PubkeySetting - - """Reads a single `WebauthnSetting` that is related to this `Database`.""" - webauthnSetting: WebauthnSetting - - """ - Reads and enables pagination through a set of `ConnectedAccountsModule`. - """ - connectedAccountsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ConnectedAccountsModuleFilter - - """The method to use when ordering `ConnectedAccountsModule`.""" - orderBy: [ConnectedAccountsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConnectedAccountsModuleConnection! - - """Reads and enables pagination through a set of `CryptoAddressesModule`.""" - cryptoAddressesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CryptoAddressesModuleFilter - - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleConnection! - - """Reads and enables pagination through a set of `CryptoAuthModule`.""" - cryptoAuthModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CryptoAuthModuleFilter - - """The method to use when ordering `CryptoAuthModule`.""" - orderBy: [CryptoAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAuthModuleConnection! - - """Reads and enables pagination through a set of `DefaultIdsModule`.""" - defaultIdsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DefaultIdsModuleFilter - - """The method to use when ordering `DefaultIdsModule`.""" - orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DefaultIdsModuleConnection! - - """ - Reads and enables pagination through a set of `DenormalizedTableField`. - """ - denormalizedTableFields( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DenormalizedTableFieldFilter - - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldConnection! - - """Reads and enables pagination through a set of `EmailsModule`.""" - emailsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EmailsModuleFilter - - """The method to use when ordering `EmailsModule`.""" - orderBy: [EmailsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EmailsModuleConnection! - - """ - Reads and enables pagination through a set of `ConfigSecretsUserModule`. - """ - configSecretsUserModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ConfigSecretsUserModuleFilter - - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleConnection! - - """Reads and enables pagination through a set of `InvitesModule`.""" - invitesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: InvitesModuleFilter - - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InvitesModuleConnection! - - """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! - - """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 `MembershipTypesModule`.""" - membershipTypesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: MembershipTypesModuleFilter - - """The method to use when ordering `MembershipTypesModule`.""" - orderBy: [MembershipTypesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypesModuleConnection! - - """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 `PermissionsModule`.""" - permissionsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: PermissionsModuleFilter - - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PermissionsModuleConnection! - - """Reads and enables pagination through a set of `PhoneNumbersModule`.""" - phoneNumbersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PhoneNumbersModuleFilter - - """The method to use when ordering `PhoneNumbersModule`.""" - orderBy: [PhoneNumbersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumbersModuleConnection! - - """Reads and enables pagination through a set of `ProfilesModule`.""" - profilesModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ProfilesModuleFilter - - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ProfilesModuleConnection! - - """Reads a single `RlsModule` that is related to this `Database`.""" - rlsModule: RlsModule - - """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 `SessionsModule`.""" - sessionsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SessionsModuleFilter - - """The method to use when ordering `SessionsModule`.""" - orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionsModuleConnection! - - """Reads and enables pagination through a set of `UserAuthModule`.""" - userAuthModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UserAuthModuleFilter - - """The method to use when ordering `UserAuthModule`.""" - orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UserAuthModuleConnection! - - """Reads and enables pagination through a set of `UsersModule`.""" - usersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UsersModuleFilter - - """The method to use when ordering `UsersModule`.""" - orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UsersModuleConnection! - - """Reads a single `HierarchyModule` that is related to this `Database`.""" - hierarchyModule: HierarchyModule - - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SecureTableProvisionFilter - - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection! - - """Reads and enables pagination through a set of `RelationProvision`.""" - relationProvisions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RelationProvisionFilter - - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection! - - """Reads and enables pagination through a set of `Blueprint`.""" - blueprints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintFilter - - """The method to use when ordering `Blueprint`.""" - orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConnection! - - """Reads and enables pagination through a set of `BlueprintConstruction`.""" - blueprintConstructions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintConstructionFilter - - """The method to use when ordering `BlueprintConstruction`.""" - orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConstructionConnection! - - """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 `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 a single `RateLimitsModule` that is related to this `Database`.""" - rateLimitsModule: RateLimitsModule - - """Reads a single `DevicesModule` that is related to this `Database`.""" - devicesModule: DevicesModule - - """Reads and enables pagination through a set of `SessionSecretsModule`.""" - sessionSecretsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SessionSecretsModuleFilter - - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleConnection! - - """ - Reads and enables pagination through a set of `WebauthnCredentialsModule`. - """ - webauthnCredentialsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: WebauthnCredentialsModuleFilter - - """The method to use when ordering `WebauthnCredentialsModule`.""" - orderBy: [WebauthnCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnCredentialsModuleConnection! - - """Reads and enables pagination through a set of `WebauthnAuthModule`.""" - webauthnAuthModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: WebauthnAuthModuleFilter - - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleConnection! - - """ - Reads and enables pagination through a set of `IdentityProvidersModule`. - """ - identityProvidersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: IdentityProvidersModuleFilter - - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection! - - """Reads and enables pagination through a set of `NotificationsModule`.""" - notificationsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: NotificationsModuleFilter - - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NotificationsModuleConnection! - - """Reads a single `PlansModule` that is related to this `Database`.""" - plansModule: PlansModule - - """Reads a single `BillingModule` that is related to this `Database`.""" - billingModule: BillingModule - - """ - Reads a single `BillingProviderModule` that is related to this `Database`. - """ - billingProviderModule: BillingProviderModule - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection! - - """ - Reads a single `RateLimitMetersModule` that is related to this `Database`. - """ - rateLimitMetersModule: RateLimitMetersModule - - """ - 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 `InferenceLogModule`.""" - inferenceLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: InferenceLogModuleFilter - - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InferenceLogModuleConnection! - - """Reads and enables pagination through a set of `ComputeLogModule`.""" - computeLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ComputeLogModuleFilter - - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ComputeLogModuleConnection! - - """Reads and enables pagination through a set of `TransferLogModule`.""" - transferLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: TransferLogModuleFilter - - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): TransferLogModuleConnection! - - """Reads and enables pagination through a set of `StorageLogModule`.""" - storageLogModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: StorageLogModuleFilter - - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageLogModuleConnection! - - """Reads and enables pagination through a set of `DbUsageModule`.""" - dbUsageModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DbUsageModuleFilter - - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DbUsageModuleConnection! - - """Reads 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 `MerkleStoreModule`.""" - merkleStoreModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: MerkleStoreModuleFilter - - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleConnection! - - """Reads and enables pagination through a set of `GraphModule`.""" - graphModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: GraphModuleFilter - - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): GraphModuleConnection! - - """Reads and enables pagination through a set of `NamespaceModule`.""" - namespaceModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: NamespaceModuleFilter - - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NamespaceModuleConnection! - - """Reads and enables pagination through a set of `FunctionModule`.""" - functionModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FunctionModuleFilter - - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionModuleConnection! - - """ - Reads and enables pagination through a set of `DatabaseProvisionModule`. - """ - databaseProvisionModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DatabaseProvisionModuleFilter - - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleConnection! -} - -"""A connection to a list of `Schema` values.""" -type SchemaConnection { - """A list of `Schema` objects.""" - nodes: [Schema]! - - """ - A list of edges which contains the `Schema` and cursor to aid in pagination. - """ - edges: [SchemaEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Schema` you could get from the connection.""" - totalCount: Int! -} - -type Schema { - id: UUID! - databaseId: UUID! - name: String! - schemaName: String! - label: String - description: String - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - isPublic: Boolean! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `Schema`.""" - database: Database - - """Reads and enables pagination through a set of `Table`.""" - tables( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: TableFilter - - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] - ): TableConnection! - - """Reads and enables pagination through a set of `SchemaGrant`.""" - schemaGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: SchemaGrantFilter - - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaGrantConnection! - - """Reads and enables pagination through a set of `View`.""" - views( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewFilter - - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewConnection! - - """Reads and enables pagination through a set of `DefaultPrivilege`.""" - defaultPrivileges( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DefaultPrivilegeFilter - - """The method to use when ordering `DefaultPrivilege`.""" - orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] - ): DefaultPrivilegeConnection! - - """Reads and enables pagination through a set of `Enum`.""" - enums( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EnumFilter - - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] - ): EnumConnection! - - """Reads and enables pagination through a set of `Function`.""" - functions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FunctionFilter - - """The method to use when ordering `Function`.""" - orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionConnection! - - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemas( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiSchemaFilter - - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSchemaConnection! - - """Reads and enables pagination through a set of `SessionSecretsModule`.""" - sessionSecretsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SessionSecretsModuleFilter - - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleConnection! - - """ - Reads and enables pagination through a set of `IdentityProvidersModule`. - """ - identityProvidersModulesByPrivateSchemaId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: IdentityProvidersModuleFilter - - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection! - - """ - Reads and enables pagination through a set of `IdentityProvidersModule`. - """ - identityProvidersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: IdentityProvidersModuleFilter - - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection! - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModulesByPrivateSchemaId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection! - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection! - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModulesBySubscriptionsSchemaId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection! - - """ - Reads and enables pagination through a set of `ConfigSecretsOrgModule`. - """ - configSecretsOrgModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ConfigSecretsOrgModuleFilter - - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleConnection! - - """Reads and enables pagination through a set of `MerkleStoreModule`.""" - merkleStoreModulesByPrivateSchemaId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: MerkleStoreModuleFilter - - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleConnection! -} - -enum ObjectCategory { - CORE - MODULE - APP -} - -"""A connection to a list of `Table` values.""" -type TableConnection { - """A list of `Table` objects.""" - nodes: [Table]! - - """ - A list of edges which contains the `Table` and cursor to aid in pagination. - """ - edges: [TableEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Table` you could get from the connection.""" - totalCount: Int! -} - -type Table { - id: UUID! - databaseId: UUID! - schemaId: UUID! - name: String! - label: String - description: String - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - useRls: Boolean! - timestamps: Boolean! - peoplestamps: Boolean! - pluralName: String - singularName: String - tags: [String]! - partitioned: Boolean! - partitionStrategy: String - partitionKeyNames: [String] - partitionKeyTypes: [String] - inheritsId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `Table`.""" - database: Database - - """Reads a single `Schema` that is related to this `Table`.""" - schema: Schema - - """Reads a single `Table` that is related to this `Table`.""" - inherits: Table - - """Reads and enables pagination through a set of `CheckConstraint`.""" - checkConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CheckConstraintFilter - - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): CheckConstraintConnection! - - """Reads and enables pagination through a set of `Field`.""" - fields( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: FieldFilter - - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] - ): FieldConnection! - - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ForeignKeyConstraintFilter - - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection! - - """Reads and enables pagination through a set of `FullTextSearch`.""" - fullTextSearches( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FullTextSearchFilter - - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] - ): FullTextSearchConnection! - - """Reads and enables pagination through a set of `Index`.""" - indices( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: IndexFilter - - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] - ): IndexConnection! - - """Reads and enables pagination through a set of `Policy`.""" - policies( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PolicyFilter - - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] - ): PolicyConnection! - - """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" - primaryKeyConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PrimaryKeyConstraintFilter - - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintConnection! - - """Reads and enables pagination through a set of `TableGrant`.""" - tableGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TableGrantFilter - - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): TableGrantConnection! - - """Reads and enables pagination through a set of `Trigger`.""" - triggers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: TriggerFilter - - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] - ): TriggerConnection! - - """Reads and enables pagination through a set of `UniqueConstraint`.""" - uniqueConstraints( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: UniqueConstraintFilter - - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): UniqueConstraintConnection! - - """Reads and enables pagination through a set of `View`.""" - views( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewFilter - - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewConnection! - - """Reads and enables pagination through a set of `ViewTable`.""" - viewTables( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewTableFilter - - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewTableConnection! - - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunksByChunksTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EmbeddingChunkFilter - - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection! - - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: EmbeddingChunkFilter - - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection! - - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelationsByRefTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SpatialRelationFilter - - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] - ): SpatialRelationConnection! - - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelations( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SpatialRelationFilter - - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] - ): SpatialRelationConnection! - - """Reads a single `Partition` that is related to this `Table`.""" - partition: Partition - - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SecureTableProvisionFilter - - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection! - - """Reads and enables pagination through a set of `RelationProvision`.""" - relationProvisionsBySourceTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RelationProvisionFilter - - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection! - - """Reads and enables pagination through a set of `RelationProvision`.""" - relationProvisionsByTargetTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RelationProvisionFilter - - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection! - - """Reads and enables pagination through a set of `SessionSecretsModule`.""" - sessionSecretsModulesBySessionsTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SessionSecretsModuleFilter - - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleConnection! - - """Reads and enables pagination through a set of `SessionSecretsModule`.""" - sessionSecretsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SessionSecretsModuleFilter - - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleConnection! - - """ - Reads and enables pagination through a set of `IdentityProvidersModule`. - """ - identityProvidersModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: IdentityProvidersModuleFilter - - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection! - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModulesByChangeLogTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection! - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModulesByListenerNodeTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection! - - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModulesBySourceRegistryTableId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: RealtimeModuleFilter - - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection! - - """ - Reads and enables pagination through a set of `ConfigSecretsOrgModule`. - """ - configSecretsOrgModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ConfigSecretsOrgModuleFilter - - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleConnection! -} - -"""A connection to a list of `CheckConstraint` values.""" -type CheckConstraintConnection { - """A list of `CheckConstraint` objects.""" - nodes: [CheckConstraint]! - - """ - A list of edges which contains the `CheckConstraint` and cursor to aid in pagination. - """ - edges: [CheckConstraintEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `CheckConstraint` you could get from the connection. - """ - totalCount: Int! -} - -type CheckConstraint { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String - type: String - fieldIds: [UUID]! - expr: JSON - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `CheckConstraint`.""" - database: Database - - """Reads a single `Table` that is related to this `CheckConstraint`.""" - table: Table -} - -"""A `CheckConstraint` edge in the connection.""" -type CheckConstraintEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `CheckConstraint` at the end of the edge.""" - node: CheckConstraint -} - -""" -A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input CheckConstraintFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `type` field.""" - type: StringFilter - - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter - - """Filter by the object’s `expr` field.""" - expr: JSONFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [CheckConstraintFilter!] - - """Checks for any expressions in this list.""" - or: [CheckConstraintFilter!] - - """Negates the expression.""" - not: CheckConstraintFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -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 -} - -""" -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 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 ObjectCategory fields. All fields are combined with a logical ‘and.’ -""" -input ObjectCategoryFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ObjectCategory - - """Not equal to the specified value.""" - notEqualTo: ObjectCategory - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ObjectCategory - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ObjectCategory - - """Included in the specified list.""" - in: [ObjectCategory!] - - """Not included in the specified list.""" - notIn: [ObjectCategory!] - - """Less than the specified value.""" - lessThan: ObjectCategory - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ObjectCategory - - """Greater than the specified value.""" - greaterThan: ObjectCategory - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ObjectCategory -} - -""" -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 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 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 `Database` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `schemaHash` field.""" - schemaHash: StringFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `label` field.""" - label: StringFilter - - """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: [DatabaseFilter!] - - """Checks for any expressions in this list.""" - or: [DatabaseFilter!] - - """Negates the expression.""" - not: DatabaseFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """A related `owner` exists.""" - ownerExists: Boolean - - """Filter by the object’s `schemas` relation.""" - schemas: DatabaseToManySchemaFilter - - """`schemas` exist.""" - schemasExist: Boolean - - """Filter by the object’s `tables` relation.""" - tables: DatabaseToManyTableFilter - - """`tables` exist.""" - tablesExist: Boolean - - """Filter by the object’s `checkConstraints` relation.""" - checkConstraints: DatabaseToManyCheckConstraintFilter - - """`checkConstraints` exist.""" - checkConstraintsExist: Boolean - - """Filter by the object’s `fields` relation.""" - fields: DatabaseToManyFieldFilter - - """`fields` exist.""" - fieldsExist: Boolean - - """Filter by the object’s `foreignKeyConstraints` relation.""" - foreignKeyConstraints: DatabaseToManyForeignKeyConstraintFilter - - """`foreignKeyConstraints` exist.""" - foreignKeyConstraintsExist: Boolean - - """Filter by the object’s `fullTextSearches` relation.""" - fullTextSearches: DatabaseToManyFullTextSearchFilter - - """`fullTextSearches` exist.""" - fullTextSearchesExist: Boolean - - """Filter by the object’s `indices` relation.""" - indices: DatabaseToManyIndexFilter - - """`indices` exist.""" - indicesExist: Boolean - - """Filter by the object’s `policies` relation.""" - policies: DatabaseToManyPolicyFilter - - """`policies` exist.""" - policiesExist: Boolean - - """Filter by the object’s `primaryKeyConstraints` relation.""" - primaryKeyConstraints: DatabaseToManyPrimaryKeyConstraintFilter - - """`primaryKeyConstraints` exist.""" - primaryKeyConstraintsExist: Boolean - - """Filter by the object’s `schemaGrants` relation.""" - schemaGrants: DatabaseToManySchemaGrantFilter - - """`schemaGrants` exist.""" - schemaGrantsExist: Boolean - - """Filter by the object’s `tableGrants` relation.""" - tableGrants: DatabaseToManyTableGrantFilter - - """`tableGrants` exist.""" - tableGrantsExist: Boolean - - """Filter by the object’s `triggerFunctions` relation.""" - triggerFunctions: DatabaseToManyTriggerFunctionFilter - - """`triggerFunctions` exist.""" - triggerFunctionsExist: Boolean - - """Filter by the object’s `triggers` relation.""" - triggers: DatabaseToManyTriggerFilter - - """`triggers` exist.""" - triggersExist: Boolean - - """Filter by the object’s `uniqueConstraints` relation.""" - uniqueConstraints: DatabaseToManyUniqueConstraintFilter - - """`uniqueConstraints` exist.""" - uniqueConstraintsExist: Boolean - - """Filter by the object’s `views` relation.""" - views: DatabaseToManyViewFilter - - """`views` exist.""" - viewsExist: Boolean - - """Filter by the object’s `viewGrants` relation.""" - viewGrants: DatabaseToManyViewGrantFilter - - """`viewGrants` exist.""" - viewGrantsExist: Boolean - - """Filter by the object’s `viewRules` relation.""" - viewRules: DatabaseToManyViewRuleFilter - - """`viewRules` exist.""" - viewRulesExist: Boolean - - """Filter by the object’s `defaultPrivileges` relation.""" - defaultPrivileges: DatabaseToManyDefaultPrivilegeFilter - - """`defaultPrivileges` exist.""" - defaultPrivilegesExist: Boolean - - """Filter by the object’s `enums` relation.""" - enums: DatabaseToManyEnumFilter - - """`enums` exist.""" - enumsExist: Boolean - - """Filter by the object’s `embeddingChunks` relation.""" - embeddingChunks: DatabaseToManyEmbeddingChunkFilter - - """`embeddingChunks` exist.""" - embeddingChunksExist: Boolean - - """Filter by the object’s `spatialRelations` relation.""" - spatialRelations: DatabaseToManySpatialRelationFilter - - """`spatialRelations` exist.""" - spatialRelationsExist: Boolean - - """Filter by the object’s `functions` relation.""" - functions: DatabaseToManyFunctionFilter - - """`functions` exist.""" - functionsExist: Boolean - - """Filter by the object’s `partitions` relation.""" - partitions: DatabaseToManyPartitionFilter - - """`partitions` exist.""" - partitionsExist: Boolean - - """Filter by the object’s `databaseTransfers` relation.""" - databaseTransfers: DatabaseToManyDatabaseTransferFilter - - """`databaseTransfers` exist.""" - databaseTransfersExist: Boolean - - """Filter by the object’s `apis` relation.""" - apis: DatabaseToManyApiFilter - - """`apis` exist.""" - apisExist: Boolean - - """Filter by the object’s `apiModules` relation.""" - apiModules: DatabaseToManyApiModuleFilter - - """`apiModules` exist.""" - apiModulesExist: Boolean - - """Filter by the object’s `apiSchemas` relation.""" - apiSchemas: DatabaseToManyApiSchemaFilter - - """`apiSchemas` exist.""" - apiSchemasExist: Boolean - - """Filter by the object’s `sites` relation.""" - sites: DatabaseToManySiteFilter - - """`sites` exist.""" - sitesExist: Boolean - - """Filter by the object’s `apps` relation.""" - apps: DatabaseToManyAppFilter - - """`apps` exist.""" - appsExist: Boolean - - """Filter by the object’s `domains` relation.""" - domains: DatabaseToManyDomainFilter - - """`domains` exist.""" - domainsExist: Boolean - - """Filter by the object’s `siteMetadata` relation.""" - siteMetadata: DatabaseToManySiteMetadatumFilter - - """`siteMetadata` exist.""" - siteMetadataExist: Boolean - - """Filter by the object’s `siteModules` relation.""" - siteModules: DatabaseToManySiteModuleFilter - - """`siteModules` exist.""" - siteModulesExist: Boolean - - """Filter by the object’s `siteThemes` relation.""" - siteThemes: DatabaseToManySiteThemeFilter - - """`siteThemes` exist.""" - siteThemesExist: Boolean - - """Filter by the object’s `databaseSetting` relation.""" - databaseSetting: DatabaseSettingFilter - - """A related `databaseSetting` exists.""" - databaseSettingExists: Boolean - - """Filter by the object’s `apiSettings` relation.""" - apiSettings: DatabaseToManyApiSettingFilter - - """`apiSettings` exist.""" - apiSettingsExist: Boolean - - """Filter by the object’s `rlsSetting` relation.""" - rlsSetting: RlsSettingFilter - - """A related `rlsSetting` exists.""" - rlsSettingExists: Boolean - - """Filter by the object’s `corsSettings` relation.""" - corsSettings: DatabaseToManyCorsSettingFilter - - """`corsSettings` exist.""" - corsSettingsExist: Boolean - - """Filter by the object’s `pubkeySetting` relation.""" - pubkeySetting: PubkeySettingFilter - - """A related `pubkeySetting` exists.""" - pubkeySettingExists: Boolean - - """Filter by the object’s `webauthnSetting` relation.""" - webauthnSetting: WebauthnSettingFilter - - """A related `webauthnSetting` exists.""" - webauthnSettingExists: Boolean - - """Filter by the object’s `connectedAccountsModules` relation.""" - connectedAccountsModules: DatabaseToManyConnectedAccountsModuleFilter - - """`connectedAccountsModules` exist.""" - connectedAccountsModulesExist: Boolean - - """Filter by the object’s `cryptoAddressesModules` relation.""" - cryptoAddressesModules: DatabaseToManyCryptoAddressesModuleFilter - - """`cryptoAddressesModules` exist.""" - cryptoAddressesModulesExist: Boolean - - """Filter by the object’s `cryptoAuthModules` relation.""" - cryptoAuthModules: DatabaseToManyCryptoAuthModuleFilter - - """`cryptoAuthModules` exist.""" - cryptoAuthModulesExist: Boolean - - """Filter by the object’s `defaultIdsModules` relation.""" - defaultIdsModules: DatabaseToManyDefaultIdsModuleFilter - - """`defaultIdsModules` exist.""" - defaultIdsModulesExist: Boolean - - """Filter by the object’s `denormalizedTableFields` relation.""" - denormalizedTableFields: DatabaseToManyDenormalizedTableFieldFilter - - """`denormalizedTableFields` exist.""" - denormalizedTableFieldsExist: Boolean - - """Filter by the object’s `emailsModules` relation.""" - emailsModules: DatabaseToManyEmailsModuleFilter - - """`emailsModules` exist.""" - emailsModulesExist: Boolean - - """Filter by the object’s `configSecretsUserModules` relation.""" - configSecretsUserModules: DatabaseToManyConfigSecretsUserModuleFilter - - """`configSecretsUserModules` exist.""" - configSecretsUserModulesExist: Boolean - - """Filter by the object’s `invitesModules` relation.""" - invitesModules: DatabaseToManyInvitesModuleFilter - - """`invitesModules` exist.""" - invitesModulesExist: Boolean - - """Filter by the object’s `eventsModules` relation.""" - eventsModules: DatabaseToManyEventsModuleFilter - - """`eventsModules` exist.""" - eventsModulesExist: Boolean - - """Filter by the object’s `limitsModules` relation.""" - limitsModules: DatabaseToManyLimitsModuleFilter - - """`limitsModules` exist.""" - limitsModulesExist: Boolean - - """Filter by the object’s `membershipTypesModules` relation.""" - membershipTypesModules: DatabaseToManyMembershipTypesModuleFilter - - """`membershipTypesModules` exist.""" - membershipTypesModulesExist: Boolean - - """Filter by the object’s `membershipsModules` relation.""" - membershipsModules: DatabaseToManyMembershipsModuleFilter - - """`membershipsModules` exist.""" - membershipsModulesExist: Boolean - - """Filter by the object’s `permissionsModules` relation.""" - permissionsModules: DatabaseToManyPermissionsModuleFilter - - """`permissionsModules` exist.""" - permissionsModulesExist: Boolean - - """Filter by the object’s `phoneNumbersModules` relation.""" - phoneNumbersModules: DatabaseToManyPhoneNumbersModuleFilter - - """`phoneNumbersModules` exist.""" - phoneNumbersModulesExist: Boolean - - """Filter by the object’s `profilesModules` relation.""" - profilesModules: DatabaseToManyProfilesModuleFilter - - """`profilesModules` exist.""" - profilesModulesExist: Boolean - - """Filter by the object’s `rlsModule` relation.""" - rlsModule: RlsModuleFilter - - """A related `rlsModule` exists.""" - rlsModuleExists: Boolean - - """Filter by the object’s `userStateModules` relation.""" - userStateModules: DatabaseToManyUserStateModuleFilter - - """`userStateModules` exist.""" - userStateModulesExist: Boolean - - """Filter by the object’s `sessionsModules` relation.""" - sessionsModules: DatabaseToManySessionsModuleFilter - - """`sessionsModules` exist.""" - sessionsModulesExist: Boolean - - """Filter by the object’s `userAuthModules` relation.""" - userAuthModules: DatabaseToManyUserAuthModuleFilter - - """`userAuthModules` exist.""" - userAuthModulesExist: Boolean - - """Filter by the object’s `usersModules` relation.""" - usersModules: DatabaseToManyUsersModuleFilter - - """`usersModules` exist.""" - usersModulesExist: Boolean - - """Filter by the object’s `hierarchyModule` relation.""" - hierarchyModule: HierarchyModuleFilter - - """A related `hierarchyModule` exists.""" - hierarchyModuleExists: Boolean - - """Filter by the object’s `secureTableProvisions` relation.""" - secureTableProvisions: DatabaseToManySecureTableProvisionFilter - - """`secureTableProvisions` exist.""" - secureTableProvisionsExist: Boolean - - """Filter by the object’s `relationProvisions` relation.""" - relationProvisions: DatabaseToManyRelationProvisionFilter - - """`relationProvisions` exist.""" - relationProvisionsExist: Boolean - - """Filter by the object’s `blueprints` relation.""" - blueprints: DatabaseToManyBlueprintFilter - - """`blueprints` exist.""" - blueprintsExist: Boolean - - """Filter by the object’s `blueprintConstructions` relation.""" - blueprintConstructions: DatabaseToManyBlueprintConstructionFilter - - """`blueprintConstructions` exist.""" - blueprintConstructionsExist: Boolean - - """Filter by the object’s `storageModules` relation.""" - storageModules: DatabaseToManyStorageModuleFilter - - """`storageModules` exist.""" - storageModulesExist: Boolean - - """Filter by the object’s `entityTypeProvisions` relation.""" - entityTypeProvisions: DatabaseToManyEntityTypeProvisionFilter - - """`entityTypeProvisions` exist.""" - entityTypeProvisionsExist: Boolean - - """Filter by the object’s `rateLimitsModule` relation.""" - rateLimitsModule: RateLimitsModuleFilter - - """A related `rateLimitsModule` exists.""" - rateLimitsModuleExists: Boolean - - """Filter by the object’s `devicesModule` relation.""" - devicesModule: DevicesModuleFilter - - """A related `devicesModule` exists.""" - devicesModuleExists: Boolean - - """Filter by the object’s `sessionSecretsModules` relation.""" - sessionSecretsModules: DatabaseToManySessionSecretsModuleFilter - - """`sessionSecretsModules` exist.""" - sessionSecretsModulesExist: Boolean - - """Filter by the object’s `webauthnCredentialsModules` relation.""" - webauthnCredentialsModules: DatabaseToManyWebauthnCredentialsModuleFilter - - """`webauthnCredentialsModules` exist.""" - webauthnCredentialsModulesExist: Boolean - - """Filter by the object’s `webauthnAuthModules` relation.""" - webauthnAuthModules: DatabaseToManyWebauthnAuthModuleFilter - - """`webauthnAuthModules` exist.""" - webauthnAuthModulesExist: Boolean - - """Filter by the object’s `identityProvidersModules` relation.""" - identityProvidersModules: DatabaseToManyIdentityProvidersModuleFilter - - """`identityProvidersModules` exist.""" - identityProvidersModulesExist: Boolean - - """Filter by the object’s `notificationsModules` relation.""" - notificationsModules: DatabaseToManyNotificationsModuleFilter - - """`notificationsModules` exist.""" - notificationsModulesExist: Boolean - - """Filter by the object’s `plansModule` relation.""" - plansModule: PlansModuleFilter - - """A related `plansModule` exists.""" - plansModuleExists: Boolean - - """Filter by the object’s `billingModule` relation.""" - billingModule: BillingModuleFilter - - """A related `billingModule` exists.""" - billingModuleExists: Boolean - - """Filter by the object’s `billingProviderModule` relation.""" - billingProviderModule: BillingProviderModuleFilter - - """A related `billingProviderModule` exists.""" - billingProviderModuleExists: Boolean - - """Filter by the object’s `realtimeModules` relation.""" - realtimeModules: DatabaseToManyRealtimeModuleFilter - - """`realtimeModules` exist.""" - realtimeModulesExist: Boolean - - """Filter by the object’s `rateLimitMetersModule` relation.""" - rateLimitMetersModule: RateLimitMetersModuleFilter - - """A related `rateLimitMetersModule` exists.""" - rateLimitMetersModuleExists: Boolean - - """Filter by the object’s `configSecretsOrgModules` relation.""" - configSecretsOrgModules: DatabaseToManyConfigSecretsOrgModuleFilter - - """`configSecretsOrgModules` exist.""" - configSecretsOrgModulesExist: Boolean - - """Filter by the object’s `inferenceLogModules` relation.""" - inferenceLogModules: DatabaseToManyInferenceLogModuleFilter - - """`inferenceLogModules` exist.""" - inferenceLogModulesExist: Boolean - - """Filter by the object’s `computeLogModules` relation.""" - computeLogModules: DatabaseToManyComputeLogModuleFilter - - """`computeLogModules` exist.""" - computeLogModulesExist: Boolean - - """Filter by the object’s `transferLogModules` relation.""" - transferLogModules: DatabaseToManyTransferLogModuleFilter - - """`transferLogModules` exist.""" - transferLogModulesExist: Boolean - - """Filter by the object’s `storageLogModules` relation.""" - storageLogModules: DatabaseToManyStorageLogModuleFilter - - """`storageLogModules` exist.""" - storageLogModulesExist: Boolean - - """Filter by the object’s `dbUsageModules` relation.""" - dbUsageModules: DatabaseToManyDbUsageModuleFilter - - """`dbUsageModules` exist.""" - dbUsageModulesExist: Boolean - - """Filter by the object’s `agentModules` relation.""" - agentModules: DatabaseToManyAgentModuleFilter - - """`agentModules` exist.""" - agentModulesExist: Boolean - - """Filter by the object’s `merkleStoreModules` relation.""" - merkleStoreModules: DatabaseToManyMerkleStoreModuleFilter - - """`merkleStoreModules` exist.""" - merkleStoreModulesExist: Boolean - - """Filter by the object’s `graphModules` relation.""" - graphModules: DatabaseToManyGraphModuleFilter - - """`graphModules` exist.""" - graphModulesExist: Boolean - - """Filter by the object’s `namespaceModules` relation.""" - namespaceModules: DatabaseToManyNamespaceModuleFilter - - """`namespaceModules` exist.""" - namespaceModulesExist: Boolean - - """Filter by the object’s `functionModules` relation.""" - functionModules: DatabaseToManyFunctionModuleFilter - - """`functionModules` exist.""" - functionModulesExist: Boolean - - """Filter by the object’s `databaseProvisionModules` relation.""" - databaseProvisionModules: DatabaseToManyDatabaseProvisionModuleFilter - - """`databaseProvisionModules` exist.""" - databaseProvisionModulesExist: Boolean -} - -""" -A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ -""" -input UserFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `username` field.""" - username: StringTrgmFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringTrgmFilter - - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter - - """Filter by the object’s `searchTsv` field.""" - searchTsv: FullTextFilter - - """Filter by the object’s `type` field.""" - type: IntFilter - - """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: [UserFilter!] - - """Checks for any expressions in this list.""" - or: [UserFilter!] - - """Negates the expression.""" - not: UserFilter - - """Filter by the object’s `roleType` relation.""" - roleType: RoleTypeFilter - - """Filter by the object’s `ownedDatabases` relation.""" - ownedDatabases: UserToManyDatabaseFilter - - """`ownedDatabases` exist.""" - ownedDatabasesExist: Boolean - - """Filter by the object’s `appMembershipByActorId` relation.""" - appMembershipByActorId: AppMembershipFilter - - """A related `appMembershipByActorId` exists.""" - appMembershipByActorIdExists: Boolean - - """Filter by the object’s `appAdminGrantsByActorId` relation.""" - appAdminGrantsByActorId: UserToManyAppAdminGrantFilter - - """`appAdminGrantsByActorId` exist.""" - appAdminGrantsByActorIdExist: Boolean - - """Filter by the object’s `appAdminGrantsByGrantorId` relation.""" - appAdminGrantsByGrantorId: UserToManyAppAdminGrantFilter - - """`appAdminGrantsByGrantorId` exist.""" - appAdminGrantsByGrantorIdExist: Boolean - - """Filter by the object’s `appOwnerGrantsByActorId` relation.""" - appOwnerGrantsByActorId: UserToManyAppOwnerGrantFilter - - """`appOwnerGrantsByActorId` exist.""" - appOwnerGrantsByActorIdExist: Boolean - - """Filter by the object’s `appOwnerGrantsByGrantorId` relation.""" - appOwnerGrantsByGrantorId: UserToManyAppOwnerGrantFilter - - """`appOwnerGrantsByGrantorId` exist.""" - appOwnerGrantsByGrantorIdExist: Boolean - - """Filter by the object’s `appGrantsByActorId` relation.""" - appGrantsByActorId: UserToManyAppGrantFilter - - """`appGrantsByActorId` exist.""" - appGrantsByActorIdExist: Boolean - - """Filter by the object’s `appGrantsByGrantorId` relation.""" - appGrantsByGrantorId: UserToManyAppGrantFilter - - """`appGrantsByGrantorId` exist.""" - appGrantsByGrantorIdExist: Boolean - - """Filter by the object’s `orgMembershipsByActorId` relation.""" - orgMembershipsByActorId: UserToManyOrgMembershipFilter - - """`orgMembershipsByActorId` exist.""" - orgMembershipsByActorIdExist: Boolean - - """Filter by the object’s `orgMembershipsByEntityId` relation.""" - orgMembershipsByEntityId: UserToManyOrgMembershipFilter - - """`orgMembershipsByEntityId` exist.""" - orgMembershipsByEntityIdExist: Boolean - - """Filter by the object’s `orgMembershipDefaultByEntityId` relation.""" - orgMembershipDefaultByEntityId: OrgMembershipDefaultFilter - - """A related `orgMembershipDefaultByEntityId` exists.""" - orgMembershipDefaultByEntityIdExists: Boolean - - """Filter by the object’s `orgMembershipSettingByEntityId` relation.""" - orgMembershipSettingByEntityId: OrgMembershipSettingFilter - - """A related `orgMembershipSettingByEntityId` exists.""" - orgMembershipSettingByEntityIdExists: Boolean - - """Filter by the object’s `orgMembersByActorId` relation.""" - orgMembersByActorId: UserToManyOrgMemberFilter - - """`orgMembersByActorId` exist.""" - orgMembersByActorIdExist: Boolean - - """Filter by the object’s `orgMembersByEntityId` relation.""" - orgMembersByEntityId: UserToManyOrgMemberFilter - - """`orgMembersByEntityId` exist.""" - orgMembersByEntityIdExist: Boolean - - """Filter by the object’s `orgAdminGrantsByActorId` relation.""" - orgAdminGrantsByActorId: UserToManyOrgAdminGrantFilter - - """`orgAdminGrantsByActorId` exist.""" - orgAdminGrantsByActorIdExist: Boolean - - """Filter by the object’s `orgAdminGrantsByEntityId` relation.""" - orgAdminGrantsByEntityId: UserToManyOrgAdminGrantFilter - - """`orgAdminGrantsByEntityId` exist.""" - orgAdminGrantsByEntityIdExist: Boolean - - """Filter by the object’s `orgAdminGrantsByGrantorId` relation.""" - orgAdminGrantsByGrantorId: UserToManyOrgAdminGrantFilter - - """`orgAdminGrantsByGrantorId` exist.""" - orgAdminGrantsByGrantorIdExist: Boolean - - """Filter by the object’s `orgOwnerGrantsByActorId` relation.""" - orgOwnerGrantsByActorId: UserToManyOrgOwnerGrantFilter - - """`orgOwnerGrantsByActorId` exist.""" - orgOwnerGrantsByActorIdExist: Boolean - - """Filter by the object’s `orgOwnerGrantsByEntityId` relation.""" - orgOwnerGrantsByEntityId: UserToManyOrgOwnerGrantFilter - - """`orgOwnerGrantsByEntityId` exist.""" - orgOwnerGrantsByEntityIdExist: Boolean - - """Filter by the object’s `orgOwnerGrantsByGrantorId` relation.""" - orgOwnerGrantsByGrantorId: UserToManyOrgOwnerGrantFilter - - """`orgOwnerGrantsByGrantorId` exist.""" - orgOwnerGrantsByGrantorIdExist: Boolean - - """Filter by the object’s `orgMemberProfilesByActorId` relation.""" - orgMemberProfilesByActorId: UserToManyOrgMemberProfileFilter - - """`orgMemberProfilesByActorId` exist.""" - orgMemberProfilesByActorIdExist: Boolean - - """Filter by the object’s `orgMemberProfilesByEntityId` relation.""" - orgMemberProfilesByEntityId: UserToManyOrgMemberProfileFilter - - """`orgMemberProfilesByEntityId` exist.""" - orgMemberProfilesByEntityIdExist: Boolean - - """Filter by the object’s `orgGrantsByActorId` relation.""" - orgGrantsByActorId: UserToManyOrgGrantFilter - - """`orgGrantsByActorId` exist.""" - orgGrantsByActorIdExist: Boolean - - """Filter by the object’s `orgGrantsByEntityId` relation.""" - orgGrantsByEntityId: UserToManyOrgGrantFilter - - """`orgGrantsByEntityId` exist.""" - orgGrantsByEntityIdExist: Boolean - - """Filter by the object’s `orgGrantsByGrantorId` relation.""" - orgGrantsByGrantorId: UserToManyOrgGrantFilter - - """`orgGrantsByGrantorId` exist.""" - orgGrantsByGrantorIdExist: Boolean - - """Filter by the object’s `parentOrgChartEdges` relation.""" - parentOrgChartEdges: UserToManyOrgChartEdgeFilter - - """`parentOrgChartEdges` exist.""" - parentOrgChartEdgesExist: Boolean - - """Filter by the object’s `orgChartEdgesByEntityId` relation.""" - orgChartEdgesByEntityId: UserToManyOrgChartEdgeFilter - - """`orgChartEdgesByEntityId` exist.""" - orgChartEdgesByEntityIdExist: Boolean - - """Filter by the object’s `childOrgChartEdges` relation.""" - childOrgChartEdges: UserToManyOrgChartEdgeFilter - - """`childOrgChartEdges` exist.""" - childOrgChartEdgesExist: Boolean - - """Filter by the object’s `parentOrgChartEdgeGrants` relation.""" - parentOrgChartEdgeGrants: UserToManyOrgChartEdgeGrantFilter - - """`parentOrgChartEdgeGrants` exist.""" - parentOrgChartEdgeGrantsExist: Boolean - - """Filter by the object’s `orgChartEdgeGrantsByEntityId` relation.""" - orgChartEdgeGrantsByEntityId: UserToManyOrgChartEdgeGrantFilter - - """`orgChartEdgeGrantsByEntityId` exist.""" - orgChartEdgeGrantsByEntityIdExist: Boolean - - """Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation.""" - orgChartEdgeGrantsByGrantorId: UserToManyOrgChartEdgeGrantFilter - - """`orgChartEdgeGrantsByGrantorId` exist.""" - orgChartEdgeGrantsByGrantorIdExist: Boolean - - """Filter by the object’s `childOrgChartEdgeGrants` relation.""" - childOrgChartEdgeGrants: UserToManyOrgChartEdgeGrantFilter - - """`childOrgChartEdgeGrants` exist.""" - childOrgChartEdgeGrantsExist: Boolean - - """Filter by the object’s `orgPermissionDefaultsByEntityId` relation.""" - orgPermissionDefaultsByEntityId: UserToManyOrgPermissionDefaultFilter - - """`orgPermissionDefaultsByEntityId` exist.""" - orgPermissionDefaultsByEntityIdExist: Boolean - - """Filter by the object’s `appLimitsByActorId` relation.""" - appLimitsByActorId: UserToManyAppLimitFilter - - """`appLimitsByActorId` exist.""" - appLimitsByActorIdExist: Boolean - - """Filter by the object’s `appLimitCreditsByActorId` relation.""" - appLimitCreditsByActorId: UserToManyAppLimitCreditFilter - - """`appLimitCreditsByActorId` exist.""" - appLimitCreditsByActorIdExist: Boolean - - """Filter by the object’s `orgLimitsByActorId` relation.""" - orgLimitsByActorId: UserToManyOrgLimitFilter - - """`orgLimitsByActorId` exist.""" - orgLimitsByActorIdExist: Boolean - - """Filter by the object’s `orgLimitsByEntityId` relation.""" - orgLimitsByEntityId: UserToManyOrgLimitFilter - - """`orgLimitsByEntityId` exist.""" - orgLimitsByEntityIdExist: Boolean - - """Filter by the object’s `orgLimitCreditsByActorId` relation.""" - orgLimitCreditsByActorId: UserToManyOrgLimitCreditFilter - - """`orgLimitCreditsByActorId` exist.""" - orgLimitCreditsByActorIdExist: Boolean - - """Filter by the object’s `orgLimitCreditsByEntityId` relation.""" - orgLimitCreditsByEntityId: UserToManyOrgLimitCreditFilter - - """`orgLimitCreditsByEntityId` exist.""" - orgLimitCreditsByEntityIdExist: Boolean - - """Filter by the object’s `orgLimitAggregatesByEntityId` relation.""" - orgLimitAggregatesByEntityId: UserToManyOrgLimitAggregateFilter - - """`orgLimitAggregatesByEntityId` exist.""" - orgLimitAggregatesByEntityIdExist: Boolean - - """Filter by the object’s `orgLimitWarningsByEntityId` relation.""" - orgLimitWarningsByEntityId: UserToManyOrgLimitWarningFilter - - """`orgLimitWarningsByEntityId` exist.""" - orgLimitWarningsByEntityIdExist: Boolean - - """Filter by the object’s `ownedEmails` relation.""" - ownedEmails: UserToManyEmailFilter - - """`ownedEmails` exist.""" - ownedEmailsExist: Boolean - - """Filter by the object’s `ownedPhoneNumbers` relation.""" - ownedPhoneNumbers: UserToManyPhoneNumberFilter - - """`ownedPhoneNumbers` exist.""" - ownedPhoneNumbersExist: Boolean - - """Filter by the object’s `ownedCryptoAddresses` relation.""" - ownedCryptoAddresses: UserToManyCryptoAddressFilter - - """`ownedCryptoAddresses` exist.""" - ownedCryptoAddressesExist: Boolean - - """Filter by the object’s `ownedWebauthnCredentials` relation.""" - ownedWebauthnCredentials: UserToManyWebauthnCredentialFilter - - """`ownedWebauthnCredentials` exist.""" - ownedWebauthnCredentialsExist: Boolean - - """Filter by the object’s `appInvitesBySenderId` relation.""" - appInvitesBySenderId: UserToManyAppInviteFilter - - """`appInvitesBySenderId` exist.""" - appInvitesBySenderIdExist: Boolean - - """Filter by the object’s `appClaimedInvitesByReceiverId` relation.""" - appClaimedInvitesByReceiverId: UserToManyAppClaimedInviteFilter - - """`appClaimedInvitesByReceiverId` exist.""" - appClaimedInvitesByReceiverIdExist: Boolean - - """Filter by the object’s `appClaimedInvitesBySenderId` relation.""" - appClaimedInvitesBySenderId: UserToManyAppClaimedInviteFilter - - """`appClaimedInvitesBySenderId` exist.""" - appClaimedInvitesBySenderIdExist: Boolean - - """Filter by the object’s `orgInvitesByEntityId` relation.""" - orgInvitesByEntityId: UserToManyOrgInviteFilter - - """`orgInvitesByEntityId` exist.""" - orgInvitesByEntityIdExist: Boolean - - """Filter by the object’s `orgInvitesByReceiverId` relation.""" - orgInvitesByReceiverId: UserToManyOrgInviteFilter - - """`orgInvitesByReceiverId` exist.""" - orgInvitesByReceiverIdExist: Boolean - - """Filter by the object’s `orgInvitesBySenderId` relation.""" - orgInvitesBySenderId: UserToManyOrgInviteFilter - - """`orgInvitesBySenderId` exist.""" - orgInvitesBySenderIdExist: Boolean - - """Filter by the object’s `orgClaimedInvitesByEntityId` relation.""" - orgClaimedInvitesByEntityId: UserToManyOrgClaimedInviteFilter - - """`orgClaimedInvitesByEntityId` exist.""" - orgClaimedInvitesByEntityIdExist: Boolean - - """Filter by the object’s `orgClaimedInvitesByReceiverId` relation.""" - orgClaimedInvitesByReceiverId: UserToManyOrgClaimedInviteFilter - - """`orgClaimedInvitesByReceiverId` exist.""" - orgClaimedInvitesByReceiverIdExist: Boolean - - """Filter by the object’s `orgClaimedInvitesBySenderId` relation.""" - orgClaimedInvitesBySenderId: UserToManyOrgClaimedInviteFilter - - """`orgClaimedInvitesBySenderId` exist.""" - orgClaimedInvitesBySenderIdExist: Boolean - - """Filter by the object’s `auditLogAuthsByActorId` relation.""" - auditLogAuthsByActorId: UserToManyAuditLogAuthFilter - - """`auditLogAuthsByActorId` exist.""" - auditLogAuthsByActorIdExist: Boolean - - """TSV search on the `search_tsv` column.""" - tsvSearchTsv: String - - """TRGM search on the `display_name` column.""" - trgmDisplayName: TrgmSearchInput - - """ - Composite unified search. Provide a search string and it will be dispatched to - all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - unifiedSearch: String -} - -""" -A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ -""" -input StringTrgmFilter { - """ - 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 - - """ - Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. - """ - similarTo: TrgmSearchInput - - """ - Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. - """ - wordSimilarTo: TrgmSearchInput -} - -""" -Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. -""" -input TrgmSearchInput { - """The text to fuzzy-match against. Typos and misspellings are tolerated.""" - value: String! - - """ - Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. - """ - threshold: Float -} - -""" -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 -} - -""" -A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ -""" -input FullTextFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: FullText - - """Not equal to the specified value.""" - notEqualTo: FullText - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: FullText - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: FullText - - """Included in the specified list.""" - in: [FullText!] - - """Not included in the specified list.""" - notIn: [FullText!] - - """Performs a full text search on the field.""" - matches: String -} - -""" -A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ -""" -input RoleTypeFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Checks for all expressions in this list.""" - and: [RoleTypeFilter!] - - """Checks for any expressions in this list.""" - or: [RoleTypeFilter!] - - """Negates the expression.""" - not: RoleTypeFilter -} - -""" -A filter to be used against many `Database` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyDatabaseFilter { - """Filters to entities where at least one related entity matches.""" - some: DatabaseFilter - - """Filters to entities where every related entity matches.""" - every: DatabaseFilter - - """Filters to entities where no related entity matches.""" - none: DatabaseFilter -} - -""" -A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ -""" -input AppMembershipFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter - - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `granted` field.""" - granted: BitStringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [AppMembershipFilter!] - - """Checks for any expressions in this list.""" - or: [AppMembershipFilter!] - - """Negates the expression.""" - not: AppMembershipFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter -} - -""" -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 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 many `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAppAdminGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: AppAdminGrantFilter - - """Filters to entities where every related entity matches.""" - every: AppAdminGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppAdminGrantFilter -} - -""" -A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppAdminGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppAdminGrantFilter!] - - """Checks for any expressions in this list.""" - or: [AppAdminGrantFilter!] - - """Negates the expression.""" - not: AppAdminGrantFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `grantor` relation.""" - grantor: UserFilter - - """A related `grantor` exists.""" - grantorExists: Boolean -} - -""" -A filter to be used against many `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAppOwnerGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: AppOwnerGrantFilter - - """Filters to entities where every related entity matches.""" - every: AppOwnerGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppOwnerGrantFilter -} - -""" -A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppOwnerGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppOwnerGrantFilter!] - - """Checks for any expressions in this list.""" - or: [AppOwnerGrantFilter!] - - """Negates the expression.""" - not: AppOwnerGrantFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `grantor` relation.""" - grantor: UserFilter - - """A related `grantor` exists.""" - grantorExists: Boolean -} - -""" -A filter to be used against many `AppGrant` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAppGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: AppGrantFilter - - """Filters to entities where every related entity matches.""" - every: AppGrantFilter - - """Filters to entities where no related entity matches.""" - none: AppGrantFilter -} - -""" -A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppGrantFilter!] - - """Checks for any expressions in this list.""" - or: [AppGrantFilter!] - - """Negates the expression.""" - not: AppGrantFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `grantor` relation.""" - grantor: UserFilter - - """A related `grantor` exists.""" - grantorExists: Boolean -} - -""" -A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgMembershipFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgMembershipFilter - - """Filters to entities where every related entity matches.""" - every: OrgMembershipFilter - - """Filters to entities where no related entity matches.""" - none: OrgMembershipFilter -} - -""" -A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter - - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter - - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `granted` field.""" - granted: BitStringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgMembershipFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMembershipFilter!] - - """Negates the expression.""" - not: OrgMembershipFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" - orgMemberProfileByMembershipId: OrgMemberProfileFilter - - """A related `orgMemberProfileByMembershipId` exists.""" - orgMemberProfileByMembershipIdExists: Boolean -} - -""" -A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMemberProfileFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `email` field.""" - email: StringFilter - - """Filter by the object’s `title` field.""" - title: StringFilter - - """Filter by the object’s `bio` field.""" - bio: StringFilter - - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter - - """Checks for all expressions in this list.""" - and: [OrgMemberProfileFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMemberProfileFilter!] - - """Negates the expression.""" - not: OrgMemberProfileFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `membership` relation.""" - membership: OrgMembershipFilter -} - -""" -A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] - - """Negates the expression.""" - not: OrgMembershipDefaultFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter -} - -""" -A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipSettingFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `deleteMemberCascadeChildren` field.""" - deleteMemberCascadeChildren: BooleanFilter - - """Filter by the object’s `createChildCascadeOwners` field.""" - createChildCascadeOwners: BooleanFilter - - """Filter by the object’s `createChildCascadeAdmins` field.""" - createChildCascadeAdmins: BooleanFilter - - """Filter by the object’s `createChildCascadeMembers` field.""" - createChildCascadeMembers: BooleanFilter - - """Filter by the object’s `allowExternalMembers` field.""" - allowExternalMembers: BooleanFilter - - """Filter by the object’s `inviteProfileAssignmentMode` field.""" - inviteProfileAssignmentMode: StringFilter - - """Filter by the object’s `populateMemberEmail` field.""" - populateMemberEmail: BooleanFilter - - """Filter by the object’s `limitAllocationMode` field.""" - limitAllocationMode: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgMembershipSettingFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMembershipSettingFilter!] - - """Negates the expression.""" - not: OrgMembershipSettingFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter -} - -""" -A filter to be used against many `OrgMember` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgMemberFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgMemberFilter - - """Filters to entities where every related entity matches.""" - every: OrgMemberFilter - - """Filters to entities where no related entity matches.""" - none: OrgMemberFilter -} - -""" -A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMemberFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgMemberFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMemberFilter!] - - """Negates the expression.""" - not: OrgMemberFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter -} - -""" -A filter to be used against many `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgAdminGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgAdminGrantFilter - - """Filters to entities where every related entity matches.""" - every: OrgAdminGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgAdminGrantFilter -} - -""" -A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgAdminGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [OrgAdminGrantFilter!] - - """Checks for any expressions in this list.""" - or: [OrgAdminGrantFilter!] - - """Negates the expression.""" - not: OrgAdminGrantFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `grantor` relation.""" - grantor: UserFilter - - """A related `grantor` exists.""" - grantorExists: Boolean -} - -""" -A filter to be used against many `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgOwnerGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgOwnerGrantFilter - - """Filters to entities where every related entity matches.""" - every: OrgOwnerGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgOwnerGrantFilter -} - -""" -A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgOwnerGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [OrgOwnerGrantFilter!] - - """Checks for any expressions in this list.""" - or: [OrgOwnerGrantFilter!] - - """Negates the expression.""" - not: OrgOwnerGrantFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `grantor` relation.""" - grantor: UserFilter - - """A related `grantor` exists.""" - grantorExists: Boolean -} - -""" -A filter to be used against many `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgMemberProfileFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgMemberProfileFilter - - """Filters to entities where every related entity matches.""" - every: OrgMemberProfileFilter - - """Filters to entities where no related entity matches.""" - none: OrgMemberProfileFilter -} - -""" -A filter to be used against many `OrgGrant` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgGrantFilter - - """Filters to entities where every related entity matches.""" - every: OrgGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgGrantFilter -} - -""" -A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [OrgGrantFilter!] - - """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] - - """Negates the expression.""" - not: OrgGrantFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `grantor` relation.""" - grantor: UserFilter - - """A related `grantor` exists.""" - grantorExists: Boolean -} - -""" -A filter to be used against many `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgChartEdgeFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgChartEdgeFilter - - """Filters to entities where every related entity matches.""" - every: OrgChartEdgeFilter - - """Filters to entities where no related entity matches.""" - none: OrgChartEdgeFilter -} - -""" -A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `childId` field.""" - childId: UUIDFilter - - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter - - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter - - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter - - """Checks for all expressions in this list.""" - and: [OrgChartEdgeFilter!] - - """Checks for any expressions in this list.""" - or: [OrgChartEdgeFilter!] - - """Negates the expression.""" - not: OrgChartEdgeFilter - - """Filter by the object’s `child` relation.""" - child: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `parent` relation.""" - parent: UserFilter - - """A related `parent` exists.""" - parentExists: Boolean -} - -""" -A filter to be used against many `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgChartEdgeGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgChartEdgeGrantFilter - - """Filters to entities where every related entity matches.""" - every: OrgChartEdgeGrantFilter - - """Filters to entities where no related entity matches.""" - none: OrgChartEdgeGrantFilter -} - -""" -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `childId` field.""" - childId: UUIDFilter - - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter - - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [OrgChartEdgeGrantFilter!] - - """Checks for any expressions in this list.""" - or: [OrgChartEdgeGrantFilter!] - - """Negates the expression.""" - not: OrgChartEdgeGrantFilter - - """Filter by the object’s `child` relation.""" - child: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `grantor` relation.""" - grantor: UserFilter - - """A related `grantor` exists.""" - grantorExists: Boolean - - """Filter by the object’s `parent` relation.""" - parent: UserFilter - - """A related `parent` exists.""" - parentExists: Boolean -} - -""" -A filter to be used against many `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgPermissionDefaultFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgPermissionDefaultFilter - - """Filters to entities where every related entity matches.""" - every: OrgPermissionDefaultFilter - - """Filters to entities where no related entity matches.""" - none: OrgPermissionDefaultFilter -} - -""" -A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultFilter!] - - """Negates the expression.""" - not: OrgPermissionDefaultFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter -} - -""" -A filter to be used against many `AppLimit` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAppLimitFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitFilter -} - -""" -A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitFilter!] - - """Negates the expression.""" - not: AppLimitFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter -} - -""" -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 -} - -""" -A signed eight-byte integer. The upper big integer values are greater than the -max value for a JavaScript number. Therefore all big integers will be output as -strings and not numbers. -""" -scalar BigInt - -""" -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ -""" -input IntervalFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: IntervalInput - - """Not equal to the specified value.""" - notEqualTo: IntervalInput - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: IntervalInput - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput - - """Included in the specified list.""" - in: [IntervalInput!] - - """Not included in the specified list.""" - notIn: [IntervalInput!] - - """Less than the specified value.""" - lessThan: IntervalInput - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput - - """Greater than the specified value.""" - greaterThan: IntervalInput - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of days.""" - days: Int - - """A quantity of months.""" - months: Int - - """A quantity of years.""" - years: Int -} - -""" -A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAppLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditFilter -} - -""" -A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCreditFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCreditFilter!] - - """Negates the expression.""" - not: AppLimitCreditFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """A related `actor` exists.""" - actorExists: Boolean - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: AppLimitDefaultFilter -} - -""" -A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitDefaultFilter!] - - """Negates the expression.""" - not: AppLimitDefaultFilter - - """Filter by the object’s `appLimitCreditsByDefaultLimitId` relation.""" - appLimitCreditsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditFilter - - """`appLimitCreditsByDefaultLimitId` exist.""" - appLimitCreditsByDefaultLimitIdExist: Boolean - - """ - Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. - """ - appLimitCreditCodeItemsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditCodeItemFilter - - """`appLimitCreditCodeItemsByDefaultLimitId` exist.""" - appLimitCreditCodeItemsByDefaultLimitIdExist: Boolean -} - -""" -A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultToManyAppLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditFilter -} - -""" -A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditCodeItemFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditCodeItemFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditCodeItemFilter -} - -""" -A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeItemFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `creditCodeId` field.""" - creditCodeId: UUIDFilter - - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter - - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCreditCodeItemFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCreditCodeItemFilter!] - - """Negates the expression.""" - not: AppLimitCreditCodeItemFilter - - """Filter by the object’s `creditCode` relation.""" - creditCode: AppLimitCreditCodeFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: AppLimitDefaultFilter -} - -""" -A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `code` field.""" - code: StringFilter - - """Filter by the object’s `maxRedemptions` field.""" - maxRedemptions: IntFilter - - """Filter by the object’s `currentRedemptions` field.""" - currentRedemptions: IntFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCreditCodeFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCreditCodeFilter!] - - """Negates the expression.""" - not: AppLimitCreditCodeFilter - - """ - Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. - """ - appLimitCreditCodeItemsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter - - """`appLimitCreditCodeItemsByCreditCodeId` exist.""" - appLimitCreditCodeItemsByCreditCodeIdExist: Boolean - - """ - Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. - """ - appLimitCreditRedemptionsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter - - """`appLimitCreditRedemptionsByCreditCodeId` exist.""" - appLimitCreditRedemptionsByCreditCodeIdExist: Boolean -} - -""" -A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditCodeItemFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditCodeItemFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditCodeItemFilter -} - -""" -A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - """Filters to entities where at least one related entity matches.""" - some: AppLimitCreditRedemptionFilter - - """Filters to entities where every related entity matches.""" - every: AppLimitCreditRedemptionFilter - - """Filters to entities where no related entity matches.""" - none: AppLimitCreditRedemptionFilter -} - -""" -A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCreditRedemptionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `creditCodeId` field.""" - creditCodeId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCreditRedemptionFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCreditRedemptionFilter!] - - """Negates the expression.""" - not: AppLimitCreditRedemptionFilter - - """Filter by the object’s `creditCode` relation.""" - creditCode: AppLimitCreditCodeFilter -} - -""" -A filter to be used against many `OrgLimit` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgLimitFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitFilter -} - -""" -A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitFilter!] - - """Negates the expression.""" - not: OrgLimitFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter -} - -""" -A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitCreditFilter -} - -""" -A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCreditFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCreditFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCreditFilter!] - - """Negates the expression.""" - not: OrgLimitCreditFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """A related `actor` exists.""" - actorExists: Boolean - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: OrgLimitDefaultFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """A related `entity` exists.""" - entityExists: Boolean -} - -""" -A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitDefaultFilter!] - - """Negates the expression.""" - not: OrgLimitDefaultFilter - - """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" - orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter - - """`orgLimitCreditsByDefaultLimitId` exist.""" - orgLimitCreditsByDefaultLimitIdExist: Boolean -} - -""" -A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultToManyOrgLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitCreditFilter -} - -""" -A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgLimitAggregateFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitAggregateFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitAggregateFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitAggregateFilter -} - -""" -A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitAggregateFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter - - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter - - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter - - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Filter by the object’s `reserved` field.""" - reserved: BigIntFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitAggregateFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitAggregateFilter!] - - """Negates the expression.""" - not: OrgLimitAggregateFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter -} - -""" -A filter to be used against many `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgLimitWarningFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitWarningFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitWarningFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitWarningFilter -} - -""" -A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitWarningFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `warningType` field.""" - warningType: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitWarningFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitWarningFilter!] - - """Negates the expression.""" - not: OrgLimitWarningFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """A related `entity` exists.""" - entityExists: Boolean -} - -""" -A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyEmailFilter { - """Filters to entities where at least one related entity matches.""" - some: EmailFilter - - """Filters to entities where every related entity matches.""" - every: EmailFilter - - """Filters to entities where no related entity matches.""" - none: EmailFilter -} - -""" -A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ -""" -input EmailFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isPrimary` field.""" - isPrimary: BooleanFilter - - """Filter by the object’s `name` field.""" - name: 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: [EmailFilter!] - - """Checks for any expressions in this list.""" - or: [EmailFilter!] - - """Negates the expression.""" - not: EmailFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter -} - -""" -A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeEmailFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: String - - """Not equal to the specified value.""" - notEqualTo: String - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: String - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String - - """Included in the specified list.""" - in: [String!] - - """Not included in the specified list.""" - notIn: [String!] - - """Less than the specified value.""" - lessThan: String - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String - - """Greater than the specified value.""" - greaterThan: String - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String - - """Contains the specified string (case-sensitive).""" - includes: String - - """Does not contain the specified string (case-sensitive).""" - notIncludes: String - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeEmail - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeEmail - - """Starts with the specified string (case-sensitive).""" - startsWith: String - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeEmail - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeEmail - - """Ends with the specified string (case-sensitive).""" - endsWith: String - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeEmail - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeEmail - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: String - - """ - Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLike: String - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeEmail - - """ - Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLikeInsensitive: ConstructiveInternalTypeEmail - - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail - - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail - - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: ConstructiveInternalTypeEmail - - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail - - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] - - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] - - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail - - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail - - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail - - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail -} - -scalar ConstructiveInternalTypeEmail - -""" -A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyPhoneNumberFilter { - """Filters to entities where at least one related entity matches.""" - some: PhoneNumberFilter - - """Filters to entities where every related entity matches.""" - every: PhoneNumberFilter - - """Filters to entities where no related entity matches.""" - none: PhoneNumberFilter -} - -""" -A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ -""" -input PhoneNumberFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `cc` field.""" - cc: StringFilter - - """Filter by the object’s `number` field.""" - number: StringFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isPrimary` field.""" - isPrimary: BooleanFilter - - """Filter by the object’s `name` field.""" - name: 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: [PhoneNumberFilter!] - - """Checks for any expressions in this list.""" - or: [PhoneNumberFilter!] - - """Negates the expression.""" - not: PhoneNumberFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter -} - -""" -A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyCryptoAddressFilter { - """Filters to entities where at least one related entity matches.""" - some: CryptoAddressFilter - - """Filters to entities where every related entity matches.""" - every: CryptoAddressFilter - - """Filters to entities where no related entity matches.""" - none: CryptoAddressFilter -} - -""" -A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ -""" -input CryptoAddressFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `address` field.""" - address: StringFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isPrimary` field.""" - isPrimary: BooleanFilter - - """Filter by the object’s `name` field.""" - name: 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: [CryptoAddressFilter!] - - """Checks for any expressions in this list.""" - or: [CryptoAddressFilter!] - - """Negates the expression.""" - not: CryptoAddressFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter -} - -""" -A filter to be used against many `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyWebauthnCredentialFilter { - """Filters to entities where at least one related entity matches.""" - some: WebauthnCredentialFilter - - """Filters to entities where every related entity matches.""" - every: WebauthnCredentialFilter - - """Filters to entities where no related entity matches.""" - none: WebauthnCredentialFilter -} - -""" -A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ -""" -input WebauthnCredentialFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `credentialId` field.""" - credentialId: StringFilter - - """Filter by the object’s `publicKey` field.""" - publicKey: Base64EncodedBinaryFilter - - """Filter by the object’s `signCount` field.""" - signCount: BigIntFilter - - """Filter by the object’s `webauthnUserId` field.""" - webauthnUserId: StringFilter - - """Filter by the object’s `transports` field.""" - transports: StringListFilter - - """Filter by the object’s `credentialDeviceType` field.""" - credentialDeviceType: StringFilter - - """Filter by the object’s `backupEligible` field.""" - backupEligible: BooleanFilter - - """Filter by the object’s `backupState` field.""" - backupState: BooleanFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `lastUsedAt` field.""" - lastUsedAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [WebauthnCredentialFilter!] - - """Checks for any expressions in this list.""" - or: [WebauthnCredentialFilter!] - - """Negates the expression.""" - not: WebauthnCredentialFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter -} - -""" -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!] -} - -"""Binary data encoded using Base64""" -scalar Base64EncodedBinary - -""" -A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAppInviteFilter { - """Filters to entities where at least one related entity matches.""" - some: AppInviteFilter - - """Filters to entities where every related entity matches.""" - every: AppInviteFilter - - """Filters to entities where no related entity matches.""" - none: AppInviteFilter -} - -""" -A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ -""" -input AppInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter - - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter - - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter - - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter - - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppInviteFilter!] - - """Checks for any expressions in this list.""" - or: [AppInviteFilter!] - - """Negates the expression.""" - not: AppInviteFilter - - """Filter by the object’s `sender` relation.""" - sender: UserFilter -} - -""" -A filter to be used against many `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAppClaimedInviteFilter { - """Filters to entities where at least one related entity matches.""" - some: AppClaimedInviteFilter - - """Filters to entities where every related entity matches.""" - every: AppClaimedInviteFilter - - """Filters to entities where no related entity matches.""" - none: AppClaimedInviteFilter -} - -""" -A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input AppClaimedInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppClaimedInviteFilter!] - - """Checks for any expressions in this list.""" - or: [AppClaimedInviteFilter!] - - """Negates the expression.""" - not: AppClaimedInviteFilter - - """Filter by the object’s `receiver` relation.""" - receiver: UserFilter - - """A related `receiver` exists.""" - receiverExists: Boolean - - """Filter by the object’s `sender` relation.""" - sender: UserFilter - - """A related `sender` exists.""" - senderExists: Boolean -} - -""" -A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgInviteFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgInviteFilter - - """Filters to entities where every related entity matches.""" - every: OrgInviteFilter - - """Filters to entities where no related entity matches.""" - none: OrgInviteFilter -} - -""" -A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ -""" -input OrgInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter - - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter - - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter - - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter - - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter - - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgInviteFilter!] - - """Checks for any expressions in this list.""" - or: [OrgInviteFilter!] - - """Negates the expression.""" - not: OrgInviteFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `receiver` relation.""" - receiver: UserFilter - - """A related `receiver` exists.""" - receiverExists: Boolean - - """Filter by the object’s `sender` relation.""" - sender: UserFilter -} - -""" -A filter to be used against many `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyOrgClaimedInviteFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgClaimedInviteFilter - - """Filters to entities where every related entity matches.""" - every: OrgClaimedInviteFilter - - """Filters to entities where no related entity matches.""" - none: OrgClaimedInviteFilter -} - -""" -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input OrgClaimedInviteFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] - - """Checks for any expressions in this list.""" - or: [OrgClaimedInviteFilter!] - - """Negates the expression.""" - not: OrgClaimedInviteFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `receiver` relation.""" - receiver: UserFilter - - """A related `receiver` exists.""" - receiverExists: Boolean - - """Filter by the object’s `sender` relation.""" - sender: UserFilter - - """A related `sender` exists.""" - senderExists: Boolean -} - -""" -A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAuditLogAuthFilter { - """Filters to entities where at least one related entity matches.""" - some: AuditLogAuthFilter - - """Filters to entities where every related entity matches.""" - every: AuditLogAuthFilter - - """Filters to entities where no related entity matches.""" - none: AuditLogAuthFilter -} - -""" -A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ -""" -input AuditLogAuthFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `event` field.""" - event: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `origin` field.""" - origin: ConstructiveInternalTypeOriginFilter - - """Filter by the object’s `userAgent` field.""" - userAgent: StringFilter - - """Filter by the object’s `ipAddress` field.""" - ipAddress: InternetAddressFilter - - """Filter by the object’s `success` field.""" - success: BooleanFilter - - """Checks for all expressions in this list.""" - and: [AuditLogAuthFilter!] - - """Checks for any expressions in this list.""" - or: [AuditLogAuthFilter!] - - """Negates the expression.""" - not: AuditLogAuthFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """A related `actor` exists.""" - actorExists: Boolean -} - -""" -A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeOriginFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeOrigin - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeOrigin - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeOrigin - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeOrigin - - """Included in the specified list.""" - in: [ConstructiveInternalTypeOrigin!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeOrigin!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeOrigin - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeOrigin - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeOrigin - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeOrigin - - """Contains the specified string (case-sensitive).""" - includes: ConstructiveInternalTypeOrigin - - """Does not contain the specified string (case-sensitive).""" - notIncludes: ConstructiveInternalTypeOrigin - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeOrigin - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeOrigin - - """Starts with the specified string (case-sensitive).""" - startsWith: ConstructiveInternalTypeOrigin - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: ConstructiveInternalTypeOrigin - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeOrigin - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeOrigin - - """Ends with the specified string (case-sensitive).""" - endsWith: ConstructiveInternalTypeOrigin - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: ConstructiveInternalTypeOrigin - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeOrigin - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeOrigin - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: ConstructiveInternalTypeOrigin - - """ - 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: ConstructiveInternalTypeOrigin - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeOrigin - - """ - 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: ConstructiveInternalTypeOrigin - - """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 -} - -scalar ConstructiveInternalTypeOrigin - -""" -A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ -""" -input InternetAddressFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: InternetAddress - - """Not equal to the specified value.""" - notEqualTo: InternetAddress - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: InternetAddress - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: InternetAddress - - """Included in the specified list.""" - in: [InternetAddress!] - - """Not included in the specified list.""" - notIn: [InternetAddress!] - - """Less than the specified value.""" - lessThan: InternetAddress - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: InternetAddress - - """Greater than the specified value.""" - greaterThan: InternetAddress - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: InternetAddress - - """Contains the specified internet address.""" - contains: InternetAddress - - """Contains or equal to the specified internet address.""" - containsOrEqualTo: InternetAddress - - """Contained by the specified internet address.""" - containedBy: InternetAddress - - """Contained by or equal to the specified internet address.""" - containedByOrEqualTo: InternetAddress - - """Contains or contained by the specified internet address.""" - containsOrContainedBy: InternetAddress -} - -""" -A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySchemaFilter { - """Filters to entities where at least one related entity matches.""" - some: SchemaFilter - - """Filters to entities where every related entity matches.""" - every: SchemaFilter - - """Filters to entities where no related entity matches.""" - none: SchemaFilter -} - -""" -A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `schemaName` field.""" - schemaName: StringFilter - - """Filter by the object’s `label` field.""" - label: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Filter by the object’s `isPublic` field.""" - isPublic: 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: [SchemaFilter!] - - """Checks for any expressions in this list.""" - or: [SchemaFilter!] - - """Negates the expression.""" - not: SchemaFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `tables` relation.""" - tables: SchemaToManyTableFilter - - """`tables` exist.""" - tablesExist: Boolean - - """Filter by the object’s `schemaGrants` relation.""" - schemaGrants: SchemaToManySchemaGrantFilter - - """`schemaGrants` exist.""" - schemaGrantsExist: Boolean - - """Filter by the object’s `views` relation.""" - views: SchemaToManyViewFilter - - """`views` exist.""" - viewsExist: Boolean - - """Filter by the object’s `defaultPrivileges` relation.""" - defaultPrivileges: SchemaToManyDefaultPrivilegeFilter - - """`defaultPrivileges` exist.""" - defaultPrivilegesExist: Boolean - - """Filter by the object’s `enums` relation.""" - enums: SchemaToManyEnumFilter - - """`enums` exist.""" - enumsExist: Boolean - - """Filter by the object’s `functions` relation.""" - functions: SchemaToManyFunctionFilter - - """`functions` exist.""" - functionsExist: Boolean - - """Filter by the object’s `apiSchemas` relation.""" - apiSchemas: SchemaToManyApiSchemaFilter - - """`apiSchemas` exist.""" - apiSchemasExist: Boolean - - """Filter by the object’s `sessionSecretsModules` relation.""" - sessionSecretsModules: SchemaToManySessionSecretsModuleFilter - - """`sessionSecretsModules` exist.""" - sessionSecretsModulesExist: Boolean - - """ - Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. - """ - identityProvidersModulesByPrivateSchemaId: SchemaToManyIdentityProvidersModuleFilter - - """`identityProvidersModulesByPrivateSchemaId` exist.""" - identityProvidersModulesByPrivateSchemaIdExist: Boolean - - """Filter by the object’s `identityProvidersModules` relation.""" - identityProvidersModules: SchemaToManyIdentityProvidersModuleFilter - - """`identityProvidersModules` exist.""" - identityProvidersModulesExist: Boolean - - """Filter by the object’s `realtimeModulesByPrivateSchemaId` relation.""" - realtimeModulesByPrivateSchemaId: SchemaToManyRealtimeModuleFilter - - """`realtimeModulesByPrivateSchemaId` exist.""" - realtimeModulesByPrivateSchemaIdExist: Boolean - - """Filter by the object’s `realtimeModules` relation.""" - realtimeModules: SchemaToManyRealtimeModuleFilter - - """`realtimeModules` exist.""" - realtimeModulesExist: Boolean - - """ - Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. - """ - realtimeModulesBySubscriptionsSchemaId: SchemaToManyRealtimeModuleFilter - - """`realtimeModulesBySubscriptionsSchemaId` exist.""" - realtimeModulesBySubscriptionsSchemaIdExist: Boolean - - """Filter by the object’s `configSecretsOrgModules` relation.""" - configSecretsOrgModules: SchemaToManyConfigSecretsOrgModuleFilter - - """`configSecretsOrgModules` exist.""" - configSecretsOrgModulesExist: Boolean - - """Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation.""" - merkleStoreModulesByPrivateSchemaId: SchemaToManyMerkleStoreModuleFilter - - """`merkleStoreModulesByPrivateSchemaId` exist.""" - merkleStoreModulesByPrivateSchemaIdExist: Boolean -} - -""" -A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyTableFilter { - """Filters to entities where at least one related entity matches.""" - some: TableFilter - - """Filters to entities where every related entity matches.""" - every: TableFilter - - """Filters to entities where no related entity matches.""" - none: TableFilter -} - -""" -A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ -""" -input TableFilter { - """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 `name` field.""" - name: StringFilter - - """Filter by the object’s `label` field.""" - label: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `useRls` field.""" - useRls: BooleanFilter - - """Filter by the object’s `timestamps` field.""" - timestamps: BooleanFilter - - """Filter by the object’s `peoplestamps` field.""" - peoplestamps: BooleanFilter - - """Filter by the object’s `pluralName` field.""" - pluralName: StringFilter - - """Filter by the object’s `singularName` field.""" - singularName: StringFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Filter by the object’s `partitioned` field.""" - partitioned: BooleanFilter - - """Filter by the object’s `partitionStrategy` field.""" - partitionStrategy: StringFilter - - """Filter by the object’s `partitionKeyNames` field.""" - partitionKeyNames: StringListFilter - - """Filter by the object’s `partitionKeyTypes` field.""" - partitionKeyTypes: StringListFilter - - """Filter by the object’s `inheritsId` field.""" - inheritsId: 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: [TableFilter!] - - """Checks for any expressions in this list.""" - or: [TableFilter!] - - """Negates the expression.""" - not: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `inherits` relation.""" - inherits: TableFilter - - """A related `inherits` exists.""" - inheritsExists: Boolean - - """Filter by the object’s `checkConstraints` relation.""" - checkConstraints: TableToManyCheckConstraintFilter - - """`checkConstraints` exist.""" - checkConstraintsExist: Boolean - - """Filter by the object’s `fields` relation.""" - fields: TableToManyFieldFilter - - """`fields` exist.""" - fieldsExist: Boolean - - """Filter by the object’s `foreignKeyConstraints` relation.""" - foreignKeyConstraints: TableToManyForeignKeyConstraintFilter - - """`foreignKeyConstraints` exist.""" - foreignKeyConstraintsExist: Boolean - - """Filter by the object’s `fullTextSearches` relation.""" - fullTextSearches: TableToManyFullTextSearchFilter - - """`fullTextSearches` exist.""" - fullTextSearchesExist: Boolean - - """Filter by the object’s `indices` relation.""" - indices: TableToManyIndexFilter - - """`indices` exist.""" - indicesExist: Boolean - - """Filter by the object’s `policies` relation.""" - policies: TableToManyPolicyFilter - - """`policies` exist.""" - policiesExist: Boolean - - """Filter by the object’s `primaryKeyConstraints` relation.""" - primaryKeyConstraints: TableToManyPrimaryKeyConstraintFilter - - """`primaryKeyConstraints` exist.""" - primaryKeyConstraintsExist: Boolean - - """Filter by the object’s `tableGrants` relation.""" - tableGrants: TableToManyTableGrantFilter - - """`tableGrants` exist.""" - tableGrantsExist: Boolean - - """Filter by the object’s `triggers` relation.""" - triggers: TableToManyTriggerFilter - - """`triggers` exist.""" - triggersExist: Boolean - - """Filter by the object’s `uniqueConstraints` relation.""" - uniqueConstraints: TableToManyUniqueConstraintFilter - - """`uniqueConstraints` exist.""" - uniqueConstraintsExist: Boolean - - """Filter by the object’s `views` relation.""" - views: TableToManyViewFilter - - """`views` exist.""" - viewsExist: Boolean - - """Filter by the object’s `viewTables` relation.""" - viewTables: TableToManyViewTableFilter - - """`viewTables` exist.""" - viewTablesExist: Boolean - - """Filter by the object’s `embeddingChunksByChunksTableId` relation.""" - embeddingChunksByChunksTableId: TableToManyEmbeddingChunkFilter - - """`embeddingChunksByChunksTableId` exist.""" - embeddingChunksByChunksTableIdExist: Boolean - - """Filter by the object’s `embeddingChunks` relation.""" - embeddingChunks: TableToManyEmbeddingChunkFilter - - """`embeddingChunks` exist.""" - embeddingChunksExist: Boolean - - """Filter by the object’s `spatialRelationsByRefTableId` relation.""" - spatialRelationsByRefTableId: TableToManySpatialRelationFilter - - """`spatialRelationsByRefTableId` exist.""" - spatialRelationsByRefTableIdExist: Boolean - - """Filter by the object’s `spatialRelations` relation.""" - spatialRelations: TableToManySpatialRelationFilter - - """`spatialRelations` exist.""" - spatialRelationsExist: Boolean - - """Filter by the object’s `partition` relation.""" - partition: PartitionFilter - - """A related `partition` exists.""" - partitionExists: Boolean - - """Filter by the object’s `secureTableProvisions` relation.""" - secureTableProvisions: TableToManySecureTableProvisionFilter - - """`secureTableProvisions` exist.""" - secureTableProvisionsExist: Boolean - - """Filter by the object’s `relationProvisionsBySourceTableId` relation.""" - relationProvisionsBySourceTableId: TableToManyRelationProvisionFilter - - """`relationProvisionsBySourceTableId` exist.""" - relationProvisionsBySourceTableIdExist: Boolean - - """Filter by the object’s `relationProvisionsByTargetTableId` relation.""" - relationProvisionsByTargetTableId: TableToManyRelationProvisionFilter - - """`relationProvisionsByTargetTableId` exist.""" - relationProvisionsByTargetTableIdExist: Boolean - - """ - Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. - """ - sessionSecretsModulesBySessionsTableId: TableToManySessionSecretsModuleFilter - - """`sessionSecretsModulesBySessionsTableId` exist.""" - sessionSecretsModulesBySessionsTableIdExist: Boolean - - """Filter by the object’s `sessionSecretsModules` relation.""" - sessionSecretsModules: TableToManySessionSecretsModuleFilter - - """`sessionSecretsModules` exist.""" - sessionSecretsModulesExist: Boolean - - """Filter by the object’s `identityProvidersModules` relation.""" - identityProvidersModules: TableToManyIdentityProvidersModuleFilter - - """`identityProvidersModules` exist.""" - identityProvidersModulesExist: Boolean - - """Filter by the object’s `realtimeModulesByChangeLogTableId` relation.""" - realtimeModulesByChangeLogTableId: TableToManyRealtimeModuleFilter - - """`realtimeModulesByChangeLogTableId` exist.""" - realtimeModulesByChangeLogTableIdExist: Boolean - - """ - Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. - """ - realtimeModulesByListenerNodeTableId: TableToManyRealtimeModuleFilter - - """`realtimeModulesByListenerNodeTableId` exist.""" - realtimeModulesByListenerNodeTableIdExist: Boolean - - """ - Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. - """ - realtimeModulesBySourceRegistryTableId: TableToManyRealtimeModuleFilter - - """`realtimeModulesBySourceRegistryTableId` exist.""" - realtimeModulesBySourceRegistryTableIdExist: Boolean - - """Filter by the object’s `configSecretsOrgModules` relation.""" - configSecretsOrgModules: TableToManyConfigSecretsOrgModuleFilter - - """`configSecretsOrgModules` exist.""" - configSecretsOrgModulesExist: Boolean -} - -""" -A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyCheckConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: CheckConstraintFilter - - """Filters to entities where every related entity matches.""" - every: CheckConstraintFilter - - """Filters to entities where no related entity matches.""" - none: CheckConstraintFilter -} - -""" -A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyFieldFilter { - """Filters to entities where at least one related entity matches.""" - some: FieldFilter - - """Filters to entities where every related entity matches.""" - every: FieldFilter - - """Filters to entities where no related entity matches.""" - none: FieldFilter -} - -""" -A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ -""" -input FieldFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `label` field.""" - label: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `isRequired` field.""" - isRequired: BooleanFilter - - """Filter by the object’s `apiRequired` field.""" - apiRequired: BooleanFilter - - """Filter by the object’s `defaultValue` field.""" - defaultValue: JSONFilter - - """Filter by the object’s `type` field.""" - type: JSONFilter - - """Filter by the object’s `fieldOrder` field.""" - fieldOrder: IntFilter - - """Filter by the object’s `regexp` field.""" - regexp: StringFilter - - """Filter by the object’s `chk` field.""" - chk: JSONFilter - - """Filter by the object’s `chkExpr` field.""" - chkExpr: JSONFilter - - """Filter by the object’s `min` field.""" - min: FloatFilter - - """Filter by the object’s `max` field.""" - max: FloatFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """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: [FieldFilter!] - - """Checks for any expressions in this list.""" - or: [FieldFilter!] - - """Negates the expression.""" - not: FieldFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter - - """Filter by the object’s `spatialRelations` relation.""" - spatialRelations: FieldToManySpatialRelationFilter - - """`spatialRelations` exist.""" - spatialRelationsExist: Boolean - - """Filter by the object’s `spatialRelationsByRefFieldId` relation.""" - spatialRelationsByRefFieldId: FieldToManySpatialRelationFilter - - """`spatialRelationsByRefFieldId` exist.""" - spatialRelationsByRefFieldIdExist: Boolean -} - -""" -A filter to be used against Float fields. All fields are combined with a logical ‘and.’ -""" -input FloatFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: Float - - """Not equal to the specified value.""" - notEqualTo: Float - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Float - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Float - - """Included in the specified list.""" - in: [Float!] - - """Not included in the specified list.""" - notIn: [Float!] - - """Less than the specified value.""" - lessThan: Float - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Float - - """Greater than the specified value.""" - greaterThan: Float - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Float -} - -""" -A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ -""" -input FieldToManySpatialRelationFilter { - """Filters to entities where at least one related entity matches.""" - some: SpatialRelationFilter - - """Filters to entities where every related entity matches.""" - every: SpatialRelationFilter - - """Filters to entities where no related entity matches.""" - none: SpatialRelationFilter -} - -""" -A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ -""" -input SpatialRelationFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `fieldId` field.""" - fieldId: UUIDFilter - - """Filter by the object’s `refTableId` field.""" - refTableId: UUIDFilter - - """Filter by the object’s `refFieldId` field.""" - refFieldId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `operator` field.""" - operator: StringFilter - - """Filter by the object’s `paramName` field.""" - paramName: StringFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [SpatialRelationFilter!] - - """Checks for any expressions in this list.""" - or: [SpatialRelationFilter!] - - """Negates the expression.""" - not: SpatialRelationFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `field` relation.""" - field: FieldFilter - - """Filter by the object’s `refField` relation.""" - refField: FieldFilter - - """Filter by the object’s `refTable` relation.""" - refTable: TableFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyForeignKeyConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: ForeignKeyConstraintFilter - - """Filters to entities where every related entity matches.""" - every: ForeignKeyConstraintFilter - - """Filters to entities where no related entity matches.""" - none: ForeignKeyConstraintFilter -} - -""" -A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input ForeignKeyConstraintFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `type` field.""" - type: StringFilter - - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter - - """Filter by the object’s `refTableId` field.""" - refTableId: UUIDFilter - - """Filter by the object’s `refFieldIds` field.""" - refFieldIds: UUIDListFilter - - """Filter by the object’s `deleteAction` field.""" - deleteAction: StringFilter - - """Filter by the object’s `updateAction` field.""" - updateAction: StringFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [ForeignKeyConstraintFilter!] - - """Checks for any expressions in this list.""" - or: [ForeignKeyConstraintFilter!] - - """Negates the expression.""" - not: ForeignKeyConstraintFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `refTable` relation.""" - refTable: TableFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyFullTextSearchFilter { - """Filters to entities where at least one related entity matches.""" - some: FullTextSearchFilter - - """Filters to entities where every related entity matches.""" - every: FullTextSearchFilter - - """Filters to entities where no related entity matches.""" - none: FullTextSearchFilter -} - -""" -A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ -""" -input FullTextSearchFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `fieldId` field.""" - fieldId: UUIDFilter - - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter - - """Filter by the object’s `weights` field.""" - weights: StringListFilter - - """Filter by the object’s `langs` field.""" - langs: StringListFilter - - """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: [FullTextSearchFilter!] - - """Checks for any expressions in this list.""" - or: [FullTextSearchFilter!] - - """Negates the expression.""" - not: FullTextSearchFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyIndexFilter { - """Filters to entities where at least one related entity matches.""" - some: IndexFilter - - """Filters to entities where every related entity matches.""" - every: IndexFilter - - """Filters to entities where no related entity matches.""" - none: IndexFilter -} - -""" -A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ -""" -input IndexFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter - - """Filter by the object’s `includeFieldIds` field.""" - includeFieldIds: UUIDListFilter - - """Filter by the object’s `accessMethod` field.""" - accessMethod: StringFilter - - """Filter by the object’s `indexParams` field.""" - indexParams: JSONFilter - - """Filter by the object’s `whereClause` field.""" - whereClause: JSONFilter - - """Filter by the object’s `isUnique` field.""" - isUnique: BooleanFilter - - """Filter by the object’s `options` field.""" - options: JSONFilter - - """Filter by the object’s `opClasses` field.""" - opClasses: StringListFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [IndexFilter!] - - """Checks for any expressions in this list.""" - or: [IndexFilter!] - - """Negates the expression.""" - not: IndexFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyPolicyFilter { - """Filters to entities where at least one related entity matches.""" - some: PolicyFilter - - """Filters to entities where every related entity matches.""" - every: PolicyFilter - - """Filters to entities where no related entity matches.""" - none: PolicyFilter -} - -""" -A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ -""" -input PolicyFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `granteeName` field.""" - granteeName: StringFilter - - """Filter by the object’s `privilege` field.""" - privilege: StringFilter - - """Filter by the object’s `permissive` field.""" - permissive: BooleanFilter - - """Filter by the object’s `disabled` field.""" - disabled: BooleanFilter - - """Filter by the object’s `policyType` field.""" - policyType: StringFilter - - """Filter by the object’s `data` field.""" - data: JSONFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [PolicyFilter!] - - """Checks for any expressions in this list.""" - or: [PolicyFilter!] - - """Negates the expression.""" - not: PolicyFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyPrimaryKeyConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: PrimaryKeyConstraintFilter - - """Filters to entities where every related entity matches.""" - every: PrimaryKeyConstraintFilter - - """Filters to entities where no related entity matches.""" - none: PrimaryKeyConstraintFilter -} - -""" -A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input PrimaryKeyConstraintFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `type` field.""" - type: StringFilter - - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [PrimaryKeyConstraintFilter!] - - """Checks for any expressions in this list.""" - or: [PrimaryKeyConstraintFilter!] - - """Negates the expression.""" - not: PrimaryKeyConstraintFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyTableGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: TableGrantFilter - - """Filters to entities where every related entity matches.""" - every: TableGrantFilter - - """Filters to entities where no related entity matches.""" - none: TableGrantFilter -} - -""" -A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ -""" -input TableGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `privilege` field.""" - privilege: StringFilter - - """Filter by the object’s `granteeName` field.""" - granteeName: StringFilter - - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: 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: [TableGrantFilter!] - - """Checks for any expressions in this list.""" - or: [TableGrantFilter!] - - """Negates the expression.""" - not: TableGrantFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyTriggerFilter { - """Filters to entities where at least one related entity matches.""" - some: TriggerFilter - - """Filters to entities where every related entity matches.""" - every: TriggerFilter - - """Filters to entities where no related entity matches.""" - none: TriggerFilter -} - -""" -A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ -""" -input TriggerFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `event` field.""" - event: StringFilter - - """Filter by the object’s `functionName` field.""" - functionName: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [TriggerFilter!] - - """Checks for any expressions in this list.""" - or: [TriggerFilter!] - - """Negates the expression.""" - not: TriggerFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyUniqueConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: UniqueConstraintFilter - - """Filters to entities where every related entity matches.""" - every: UniqueConstraintFilter - - """Filters to entities where no related entity matches.""" - none: UniqueConstraintFilter -} - -""" -A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input UniqueConstraintFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `type` field.""" - type: StringFilter - - """Filter by the object’s `fieldIds` field.""" - fieldIds: UUIDListFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """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: [UniqueConstraintFilter!] - - """Checks for any expressions in this list.""" - or: [UniqueConstraintFilter!] - - """Negates the expression.""" - not: UniqueConstraintFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyViewFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewFilter - - """Filters to entities where every related entity matches.""" - every: ViewFilter - - """Filters to entities where no related entity matches.""" - none: ViewFilter -} - -""" -A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ -""" -input ViewFilter { - """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 `name` field.""" - name: StringFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `viewType` field.""" - viewType: StringFilter - - """Filter by the object’s `data` field.""" - data: JSONFilter - - """Filter by the object’s `filterType` field.""" - filterType: StringFilter - - """Filter by the object’s `filterData` field.""" - filterData: JSONFilter - - """Filter by the object’s `securityInvoker` field.""" - securityInvoker: BooleanFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Checks for all expressions in this list.""" - and: [ViewFilter!] - - """Checks for any expressions in this list.""" - or: [ViewFilter!] - - """Negates the expression.""" - not: ViewFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter - - """A related `table` exists.""" - tableExists: Boolean - - """Filter by the object’s `viewTables` relation.""" - viewTables: ViewToManyViewTableFilter - - """`viewTables` exist.""" - viewTablesExist: Boolean - - """Filter by the object’s `viewGrants` relation.""" - viewGrants: ViewToManyViewGrantFilter - - """`viewGrants` exist.""" - viewGrantsExist: Boolean - - """Filter by the object’s `viewRules` relation.""" - viewRules: ViewToManyViewRuleFilter - - """`viewRules` exist.""" - viewRulesExist: Boolean -} - -""" -A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ -""" -input ViewToManyViewTableFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewTableFilter - - """Filters to entities where every related entity matches.""" - every: ViewTableFilter - - """Filters to entities where no related entity matches.""" - none: ViewTableFilter -} - -""" -A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ -""" -input ViewTableFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `viewId` field.""" - viewId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `joinOrder` field.""" - joinOrder: IntFilter - - """Checks for all expressions in this list.""" - and: [ViewTableFilter!] - - """Checks for any expressions in this list.""" - or: [ViewTableFilter!] - - """Negates the expression.""" - not: ViewTableFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter - - """Filter by the object’s `view` relation.""" - view: ViewFilter -} - -""" -A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ -""" -input ViewToManyViewGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewGrantFilter - - """Filters to entities where every related entity matches.""" - every: ViewGrantFilter - - """Filters to entities where no related entity matches.""" - none: ViewGrantFilter -} - -""" -A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ -""" -input ViewGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `viewId` field.""" - viewId: UUIDFilter - - """Filter by the object’s `granteeName` field.""" - granteeName: StringFilter - - """Filter by the object’s `privilege` field.""" - privilege: StringFilter - - """Filter by the object’s `withGrantOption` field.""" - withGrantOption: BooleanFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Checks for all expressions in this list.""" - and: [ViewGrantFilter!] - - """Checks for any expressions in this list.""" - or: [ViewGrantFilter!] - - """Negates the expression.""" - not: ViewGrantFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `view` relation.""" - view: ViewFilter -} - -""" -A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ -""" -input ViewToManyViewRuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewRuleFilter - - """Filters to entities where every related entity matches.""" - every: ViewRuleFilter - - """Filters to entities where no related entity matches.""" - none: ViewRuleFilter -} - -""" -A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ -""" -input ViewRuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `viewId` field.""" - viewId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `event` field.""" - event: StringFilter - - """Filter by the object’s `action` field.""" - action: StringFilter - - """Checks for all expressions in this list.""" - and: [ViewRuleFilter!] - - """Checks for any expressions in this list.""" - or: [ViewRuleFilter!] - - """Negates the expression.""" - not: ViewRuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `view` relation.""" - view: ViewFilter -} - -""" -A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyViewTableFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewTableFilter - - """Filters to entities where every related entity matches.""" - every: ViewTableFilter - - """Filters to entities where no related entity matches.""" - none: ViewTableFilter -} - -""" -A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyEmbeddingChunkFilter { - """Filters to entities where at least one related entity matches.""" - some: EmbeddingChunkFilter - - """Filters to entities where every related entity matches.""" - every: EmbeddingChunkFilter - - """Filters to entities where no related entity matches.""" - none: EmbeddingChunkFilter -} - -""" -A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ -""" -input EmbeddingChunkFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `embeddingFieldId` field.""" - embeddingFieldId: UUIDFilter - - """Filter by the object’s `chunksTableId` field.""" - chunksTableId: UUIDFilter - - """Filter by the object’s `chunksTableName` field.""" - chunksTableName: StringFilter - - """Filter by the object’s `contentFieldName` field.""" - contentFieldName: StringFilter - - """Filter by the object’s `dimensions` field.""" - dimensions: IntFilter - - """Filter by the object’s `metric` field.""" - metric: StringFilter - - """Filter by the object’s `chunkSize` field.""" - chunkSize: IntFilter - - """Filter by the object’s `chunkOverlap` field.""" - chunkOverlap: IntFilter - - """Filter by the object’s `chunkStrategy` field.""" - chunkStrategy: StringFilter - - """Filter by the object’s `metadataFields` field.""" - metadataFields: JSONFilter - - """Filter by the object’s `searchIndexes` field.""" - searchIndexes: JSONFilter - - """Filter by the object’s `enqueueChunkingJob` field.""" - enqueueChunkingJob: BooleanFilter - - """Filter by the object’s `chunkingTaskName` field.""" - chunkingTaskName: StringFilter - - """Filter by the object’s `embeddingModel` field.""" - embeddingModel: StringFilter - - """Filter by the object’s `embeddingProvider` field.""" - embeddingProvider: StringFilter - - """Filter by the object’s `parentFkFieldId` field.""" - parentFkFieldId: 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: [EmbeddingChunkFilter!] - - """Checks for any expressions in this list.""" - or: [EmbeddingChunkFilter!] - - """Negates the expression.""" - not: EmbeddingChunkFilter - - """Filter by the object’s `chunksTable` relation.""" - chunksTable: TableFilter - - """A related `chunksTable` exists.""" - chunksTableExists: Boolean - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `embeddingField` relation.""" - embeddingField: FieldFilter - - """A related `embeddingField` exists.""" - embeddingFieldExists: Boolean - - """Filter by the object’s `parentFkField` relation.""" - parentFkField: FieldFilter - - """A related `parentFkField` exists.""" - parentFkFieldExists: Boolean - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManySpatialRelationFilter { - """Filters to entities where at least one related entity matches.""" - some: SpatialRelationFilter - - """Filters to entities where every related entity matches.""" - every: SpatialRelationFilter - - """Filters to entities where no related entity matches.""" - none: SpatialRelationFilter -} - -""" -A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ -""" -input PartitionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `strategy` field.""" - strategy: StringFilter - - """Filter by the object’s `partitionKeyId` field.""" - partitionKeyId: UUIDFilter - - """Filter by the object’s `interval` field.""" - interval: StringFilter - - """Filter by the object’s `retention` field.""" - retention: StringFilter - - """Filter by the object’s `retentionKeepTable` field.""" - retentionKeepTable: BooleanFilter - - """Filter by the object’s `premake` field.""" - premake: IntFilter - - """Filter by the object’s `namingPattern` field.""" - namingPattern: StringFilter - - """Filter by the object’s `isParented` field.""" - isParented: 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: [PartitionFilter!] - - """Checks for any expressions in this list.""" - or: [PartitionFilter!] - - """Negates the expression.""" - not: PartitionFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `partitionKey` relation.""" - partitionKey: FieldFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManySecureTableProvisionFilter { - """Filters to entities where at least one related entity matches.""" - some: SecureTableProvisionFilter - - """Filters to entities where every related entity matches.""" - every: SecureTableProvisionFilter - - """Filters to entities where no related entity matches.""" - none: SecureTableProvisionFilter -} - -""" -A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ -""" -input SecureTableProvisionFilter { - """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 `nodes` field.""" - nodes: JSONFilter - - """Filter by the object’s `useRls` field.""" - useRls: BooleanFilter - - """Filter by the object’s `fields` field.""" - fields: JSONListFilter - - """Filter by the object’s `grants` field.""" - grants: JSONFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `outFields` field.""" - outFields: UUIDListFilter - - """Checks for all expressions in this list.""" - and: [SecureTableProvisionFilter!] - - """Checks for any expressions in this list.""" - or: [SecureTableProvisionFilter!] - - """Negates the expression.""" - not: SecureTableProvisionFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ -""" -input JSONListFilter { - """ - 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] - - """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 list of values.""" - contains: [JSON] - - """Contained by the specified list of values.""" - containedBy: [JSON] - - """Overlaps the specified list of values.""" - overlaps: [JSON] - - """Any array item is equal to the specified value.""" - anyEqualTo: JSON - - """Any array item is not equal to the specified value.""" - anyNotEqualTo: JSON - - """Any array item is less than the specified value.""" - anyLessThan: JSON - - """Any array item is less than or equal to the specified value.""" - anyLessThanOrEqualTo: JSON - - """Any array item is greater than the specified value.""" - anyGreaterThan: JSON - - """Any array item is greater than or equal to the specified value.""" - anyGreaterThanOrEqualTo: JSON -} - -""" -A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyRelationProvisionFilter { - """Filters to entities where at least one related entity matches.""" - some: RelationProvisionFilter - - """Filters to entities where every related entity matches.""" - every: RelationProvisionFilter - - """Filters to entities where no related entity matches.""" - none: RelationProvisionFilter -} - -""" -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 - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `sourceTable` relation.""" - sourceTable: TableFilter - - """Filter by the object’s `targetTable` relation.""" - targetTable: TableFilter -} - -""" -A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManySessionSecretsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: SessionSecretsModuleFilter - - """Filters to entities where every related entity matches.""" - every: SessionSecretsModuleFilter - - """Filters to entities where no related entity matches.""" - none: SessionSecretsModuleFilter -} - -""" -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 - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `sessionsTable` relation.""" - sessionsTable: TableFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyIdentityProvidersModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: IdentityProvidersModuleFilter - - """Filters to entities where every related entity matches.""" - every: IdentityProvidersModuleFilter - - """Filters to entities where no related entity matches.""" - none: IdentityProvidersModuleFilter -} - -""" -A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ -""" -input 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 `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `tableName` field.""" - tableName: StringFilter - - """Checks for all expressions in this list.""" - and: [IdentityProvidersModuleFilter!] - - """Checks for any expressions in this list.""" - or: [IdentityProvidersModuleFilter!] - - """Negates the expression.""" - not: IdentityProvidersModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyRealtimeModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: RealtimeModuleFilter - - """Filters to entities where every related entity matches.""" - every: RealtimeModuleFilter - - """Filters to entities where no related entity matches.""" - none: RealtimeModuleFilter -} - -""" -A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ -""" -input 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 - - """Checks for all expressions in this list.""" - and: [RealtimeModuleFilter!] - - """Checks for any expressions in this list.""" - or: [RealtimeModuleFilter!] - - """Negates the expression.""" - not: RealtimeModuleFilter - - """Filter by the object’s `changeLogTable` relation.""" - changeLogTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `listenerNodeTable` relation.""" - listenerNodeTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `sourceRegistryTable` relation.""" - sourceRegistryTable: TableFilter - - """Filter by the object’s `subscriptionsSchema` relation.""" - subscriptionsSchema: SchemaFilter -} - -""" -A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ -""" -input TableToManyConfigSecretsOrgModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ConfigSecretsOrgModuleFilter - - """Filters to entities where every related entity matches.""" - every: ConfigSecretsOrgModuleFilter - - """Filters to entities where no related entity matches.""" - none: ConfigSecretsOrgModuleFilter -} - -""" -A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ -""" -input ConfigSecretsOrgModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `tableName` field.""" - tableName: StringFilter - - """Checks for all expressions in this list.""" - and: [ConfigSecretsOrgModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ConfigSecretsOrgModuleFilter!] - - """Negates the expression.""" - not: ConfigSecretsOrgModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManySchemaGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: SchemaGrantFilter - - """Filters to entities where every related entity matches.""" - every: SchemaGrantFilter - - """Filters to entities where no related entity matches.""" - none: SchemaGrantFilter -} - -""" -A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaGrantFilter { - """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 `granteeName` field.""" - granteeName: 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: [SchemaGrantFilter!] - - """Checks for any expressions in this list.""" - or: [SchemaGrantFilter!] - - """Negates the expression.""" - not: SchemaGrantFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyViewFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewFilter - - """Filters to entities where every related entity matches.""" - every: ViewFilter - - """Filters to entities where no related entity matches.""" - none: ViewFilter -} - -""" -A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyDefaultPrivilegeFilter { - """Filters to entities where at least one related entity matches.""" - some: DefaultPrivilegeFilter - - """Filters to entities where every related entity matches.""" - every: DefaultPrivilegeFilter - - """Filters to entities where no related entity matches.""" - none: DefaultPrivilegeFilter -} - -""" -A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ -""" -input DefaultPrivilegeFilter { - """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 `objectType` field.""" - objectType: StringFilter - - """Filter by the object’s `privilege` field.""" - privilege: StringFilter - - """Filter by the object’s `granteeName` field.""" - granteeName: StringFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Checks for all expressions in this list.""" - and: [DefaultPrivilegeFilter!] - - """Checks for any expressions in this list.""" - or: [DefaultPrivilegeFilter!] - - """Negates the expression.""" - not: DefaultPrivilegeFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyEnumFilter { - """Filters to entities where at least one related entity matches.""" - some: EnumFilter - - """Filters to entities where every related entity matches.""" - every: EnumFilter - - """Filters to entities where no related entity matches.""" - none: EnumFilter -} - -""" -A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ -""" -input EnumFilter { - """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 `name` field.""" - name: StringFilter - - """Filter by the object’s `label` field.""" - label: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `values` field.""" - values: StringListFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter - - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter - - """Filter by the object’s `module` field.""" - module: StringFilter - - """Filter by the object’s `scope` field.""" - scope: IntFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Checks for all expressions in this list.""" - and: [EnumFilter!] - - """Checks for any expressions in this list.""" - or: [EnumFilter!] - - """Negates the expression.""" - not: EnumFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyFunctionFilter { - """Filters to entities where at least one related entity matches.""" - some: FunctionFilter - - """Filters to entities where every related entity matches.""" - every: FunctionFilter - - """Filters to entities where no related entity matches.""" - none: FunctionFilter -} - -""" -A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionFilter { - """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 `name` field.""" - name: StringFilter - - """Checks for all expressions in this list.""" - and: [FunctionFilter!] - - """Checks for any expressions in this list.""" - or: [FunctionFilter!] - - """Negates the expression.""" - not: FunctionFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyApiSchemaFilter { - """Filters to entities where at least one related entity matches.""" - some: ApiSchemaFilter - - """Filters to entities where every related entity matches.""" - every: ApiSchemaFilter - - """Filters to entities where no related entity matches.""" - none: ApiSchemaFilter -} - -""" -A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ -""" -input ApiSchemaFilter { - """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 `apiId` field.""" - apiId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [ApiSchemaFilter!] - - """Checks for any expressions in this list.""" - or: [ApiSchemaFilter!] - - """Negates the expression.""" - not: ApiSchemaFilter - - """Filter by the object’s `api` relation.""" - api: ApiFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ -""" -input ApiFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `dbname` field.""" - dbname: StringFilter - - """Filter by the object’s `roleName` field.""" - roleName: StringFilter - - """Filter by the object’s `anonRole` field.""" - anonRole: StringFilter - - """Filter by the object’s `isPublic` field.""" - isPublic: BooleanFilter - - """Checks for all expressions in this list.""" - and: [ApiFilter!] - - """Checks for any expressions in this list.""" - or: [ApiFilter!] - - """Negates the expression.""" - not: ApiFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `apiModules` relation.""" - apiModules: ApiToManyApiModuleFilter - - """`apiModules` exist.""" - apiModulesExist: Boolean - - """Filter by the object’s `apiSchemas` relation.""" - apiSchemas: ApiToManyApiSchemaFilter - - """`apiSchemas` exist.""" - apiSchemasExist: Boolean - - """Filter by the object’s `domains` relation.""" - domains: ApiToManyDomainFilter - - """`domains` exist.""" - domainsExist: Boolean - - """Filter by the object’s `apiSetting` relation.""" - apiSetting: ApiSettingFilter - - """A related `apiSetting` exists.""" - apiSettingExists: Boolean - - """Filter by the object’s `corsSettings` relation.""" - corsSettings: ApiToManyCorsSettingFilter - - """`corsSettings` exist.""" - corsSettingsExist: Boolean -} - -""" -A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ -""" -input ApiToManyApiModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ApiModuleFilter - - """Filters to entities where every related entity matches.""" - every: ApiModuleFilter - - """Filters to entities where no related entity matches.""" - none: ApiModuleFilter -} - -""" -A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ -""" -input ApiModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Checks for all expressions in this list.""" - and: [ApiModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ApiModuleFilter!] - - """Negates the expression.""" - not: ApiModuleFilter - - """Filter by the object’s `api` relation.""" - api: ApiFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ -""" -input ApiToManyApiSchemaFilter { - """Filters to entities where at least one related entity matches.""" - some: ApiSchemaFilter - - """Filters to entities where every related entity matches.""" - every: ApiSchemaFilter - - """Filters to entities where no related entity matches.""" - none: ApiSchemaFilter -} - -""" -A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ -""" -input ApiToManyDomainFilter { - """Filters to entities where at least one related entity matches.""" - some: DomainFilter - - """Filters to entities where every related entity matches.""" - every: DomainFilter - - """Filters to entities where no related entity matches.""" - none: DomainFilter -} - -""" -A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ -""" -input DomainFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter - - """Filter by the object’s `siteId` field.""" - siteId: UUIDFilter - - """Filter by the object’s `subdomain` field.""" - subdomain: ConstructiveInternalTypeHostnameFilter - - """Filter by the object’s `domain` field.""" - domain: ConstructiveInternalTypeHostnameFilter - - """Checks for all expressions in this list.""" - and: [DomainFilter!] - - """Checks for any expressions in this list.""" - or: [DomainFilter!] - - """Negates the expression.""" - not: DomainFilter - - """Filter by the object’s `api` relation.""" - api: ApiFilter - - """A related `api` exists.""" - apiExists: Boolean - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `site` relation.""" - site: SiteFilter - - """A related `site` exists.""" - siteExists: Boolean -} - -""" -A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeHostnameFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeHostname - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeHostname - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeHostname - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeHostname - - """Included in the specified list.""" - in: [ConstructiveInternalTypeHostname!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeHostname!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeHostname - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeHostname - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeHostname - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeHostname - - """Contains the specified string (case-sensitive).""" - includes: ConstructiveInternalTypeHostname - - """Does not contain the specified string (case-sensitive).""" - notIncludes: ConstructiveInternalTypeHostname - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeHostname - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeHostname - - """Starts with the specified string (case-sensitive).""" - startsWith: ConstructiveInternalTypeHostname - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: ConstructiveInternalTypeHostname - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeHostname - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeHostname - - """Ends with the specified string (case-sensitive).""" - endsWith: ConstructiveInternalTypeHostname - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: ConstructiveInternalTypeHostname - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeHostname - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeHostname - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: ConstructiveInternalTypeHostname - - """ - 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: ConstructiveInternalTypeHostname - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeHostname - - """ - 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: ConstructiveInternalTypeHostname - - """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 -} - -scalar ConstructiveInternalTypeHostname - -""" -A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ -""" -input SiteFilter { - """Filter by the object’s `id` field.""" - id: 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.""" - description: StringFilter - - """Filter by the object’s `ogImage` field.""" - ogImage: ConstructiveInternalTypeImageFilter - - """Filter by the object’s `favicon` field.""" - favicon: ConstructiveInternalTypeAttachmentFilter - - """Filter by the object’s `appleTouchIcon` field.""" - appleTouchIcon: ConstructiveInternalTypeImageFilter - - """Filter by the object’s `logo` field.""" - logo: ConstructiveInternalTypeImageFilter - - """Filter by the object’s `dbname` field.""" - dbname: StringFilter - - """Checks for all expressions in this list.""" - and: [SiteFilter!] - - """Checks for any expressions in this list.""" - or: [SiteFilter!] - - """Negates the expression.""" - not: SiteFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `app` relation.""" - app: AppFilter - - """A related `app` exists.""" - appExists: Boolean - - """Filter by the object’s `domains` relation.""" - domains: SiteToManyDomainFilter - - """`domains` exist.""" - domainsExist: Boolean - - """Filter by the object’s `siteMetadata` relation.""" - siteMetadata: SiteToManySiteMetadatumFilter - - """`siteMetadata` exist.""" - siteMetadataExist: Boolean - - """Filter by the object’s `siteModules` relation.""" - siteModules: SiteToManySiteModuleFilter - - """`siteModules` exist.""" - siteModulesExist: Boolean - - """Filter by the object’s `siteThemes` relation.""" - siteThemes: SiteToManySiteThemeFilter - - """`siteThemes` exist.""" - siteThemesExist: Boolean -} - -""" -A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeAttachmentFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeAttachment - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeAttachment - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeAttachment - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeAttachment - - """Included in the specified list.""" - in: [ConstructiveInternalTypeAttachment!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeAttachment!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeAttachment - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeAttachment - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeAttachment - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeAttachment - - """Contains the specified string (case-sensitive).""" - includes: ConstructiveInternalTypeAttachment - - """Does not contain the specified string (case-sensitive).""" - notIncludes: ConstructiveInternalTypeAttachment - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeAttachment - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeAttachment - - """Starts with the specified string (case-sensitive).""" - startsWith: ConstructiveInternalTypeAttachment - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: ConstructiveInternalTypeAttachment - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeAttachment - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeAttachment - - """Ends with the specified string (case-sensitive).""" - endsWith: ConstructiveInternalTypeAttachment - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: ConstructiveInternalTypeAttachment - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeAttachment - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeAttachment - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: ConstructiveInternalTypeAttachment - - """ - 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: ConstructiveInternalTypeAttachment - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeAttachment - - """ - 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: ConstructiveInternalTypeAttachment - - """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 -} - -scalar ConstructiveInternalTypeAttachment - -""" -A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ -""" -input AppFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `siteId` field.""" - siteId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `appImage` field.""" - appImage: ConstructiveInternalTypeImageFilter - - """Filter by the object’s `appStoreLink` field.""" - appStoreLink: ConstructiveInternalTypeUrlFilter - - """Filter by the object’s `appStoreId` field.""" - appStoreId: StringFilter - - """Filter by the object’s `appIdPrefix` field.""" - appIdPrefix: StringFilter - - """Filter by the object’s `playStoreLink` field.""" - playStoreLink: ConstructiveInternalTypeUrlFilter - - """Checks for all expressions in this list.""" - and: [AppFilter!] - - """Checks for any expressions in this list.""" - or: [AppFilter!] - - """Negates the expression.""" - not: AppFilter - - """Filter by the object’s `site` relation.""" - site: SiteFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeUrlFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeUrl - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeUrl - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeUrl - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeUrl - - """Included in the specified list.""" - in: [ConstructiveInternalTypeUrl!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeUrl!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeUrl - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeUrl - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeUrl - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeUrl - - """Contains the specified string (case-sensitive).""" - includes: ConstructiveInternalTypeUrl - - """Does not contain the specified string (case-sensitive).""" - notIncludes: ConstructiveInternalTypeUrl - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeUrl - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeUrl - - """Starts with the specified string (case-sensitive).""" - startsWith: ConstructiveInternalTypeUrl - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: ConstructiveInternalTypeUrl - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeUrl - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeUrl - - """Ends with the specified string (case-sensitive).""" - endsWith: ConstructiveInternalTypeUrl - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: ConstructiveInternalTypeUrl - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeUrl - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeUrl - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: ConstructiveInternalTypeUrl - - """ - 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: ConstructiveInternalTypeUrl - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeUrl - - """ - 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: ConstructiveInternalTypeUrl - - """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 -} - -scalar ConstructiveInternalTypeUrl - -""" -A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ -""" -input SiteToManyDomainFilter { - """Filters to entities where at least one related entity matches.""" - some: DomainFilter - - """Filters to entities where every related entity matches.""" - every: DomainFilter - - """Filters to entities where no related entity matches.""" - none: DomainFilter -} - -""" -A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ -""" -input SiteToManySiteMetadatumFilter { - """Filters to entities where at least one related entity matches.""" - some: SiteMetadatumFilter - - """Filters to entities where every related entity matches.""" - every: SiteMetadatumFilter - - """Filters to entities where no related entity matches.""" - none: SiteMetadatumFilter -} - -""" -A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ -""" -input SiteMetadatumFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `siteId` field.""" - siteId: UUIDFilter - - """Filter by the object’s `title` field.""" - title: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `ogImage` field.""" - ogImage: ConstructiveInternalTypeImageFilter - - """Checks for all expressions in this list.""" - and: [SiteMetadatumFilter!] - - """Checks for any expressions in this list.""" - or: [SiteMetadatumFilter!] - - """Negates the expression.""" - not: SiteMetadatumFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `site` relation.""" - site: SiteFilter -} - -""" -A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ -""" -input SiteToManySiteModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: SiteModuleFilter - - """Filters to entities where every related entity matches.""" - every: SiteModuleFilter - - """Filters to entities where no related entity matches.""" - none: SiteModuleFilter -} - -""" -A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ -""" -input SiteModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `siteId` field.""" - siteId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Checks for all expressions in this list.""" - and: [SiteModuleFilter!] - - """Checks for any expressions in this list.""" - or: [SiteModuleFilter!] - - """Negates the expression.""" - not: SiteModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `site` relation.""" - site: SiteFilter -} - -""" -A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ -""" -input SiteToManySiteThemeFilter { - """Filters to entities where at least one related entity matches.""" - some: SiteThemeFilter - - """Filters to entities where every related entity matches.""" - every: SiteThemeFilter - - """Filters to entities where no related entity matches.""" - none: SiteThemeFilter -} - -""" -A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ -""" -input SiteThemeFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `siteId` field.""" - siteId: UUIDFilter - - """Filter by the object’s `theme` field.""" - theme: JSONFilter - - """Checks for all expressions in this list.""" - and: [SiteThemeFilter!] - - """Checks for any expressions in this list.""" - or: [SiteThemeFilter!] - - """Negates the expression.""" - not: SiteThemeFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `site` relation.""" - site: SiteFilter -} - -""" -A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ -""" -input ApiSettingFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter - - """Filter by the object’s `enableAggregates` field.""" - enableAggregates: BooleanFilter - - """Filter by the object’s `enablePostgis` field.""" - enablePostgis: BooleanFilter - - """Filter by the object’s `enableSearch` field.""" - enableSearch: BooleanFilter - - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - - """Filter by the object’s `enablePresignedUploads` field.""" - enablePresignedUploads: BooleanFilter - - """Filter by the object’s `enableManyToMany` field.""" - enableManyToMany: BooleanFilter - - """Filter by the object’s `enableConnectionFilter` field.""" - enableConnectionFilter: BooleanFilter - - """Filter by the object’s `enableLtree` field.""" - enableLtree: BooleanFilter - - """Filter by the object’s `enableLlm` field.""" - enableLlm: BooleanFilter - - """Filter by the object’s `enableRealtime` field.""" - enableRealtime: BooleanFilter - - """Filter by the object’s `enableBulk` field.""" - enableBulk: BooleanFilter - - """Filter by the object’s `options` field.""" - options: JSONFilter - - """Checks for all expressions in this list.""" - and: [ApiSettingFilter!] - - """Checks for any expressions in this list.""" - or: [ApiSettingFilter!] - - """Negates the expression.""" - not: ApiSettingFilter - - """Filter by the object’s `api` relation.""" - api: ApiFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ -""" -input ApiToManyCorsSettingFilter { - """Filters to entities where at least one related entity matches.""" - some: CorsSettingFilter - - """Filters to entities where every related entity matches.""" - every: CorsSettingFilter - - """Filters to entities where no related entity matches.""" - none: CorsSettingFilter -} - -""" -A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ -""" -input CorsSettingFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter - - """Filter by the object’s `allowedOrigins` field.""" - allowedOrigins: StringListFilter - - """Checks for all expressions in this list.""" - and: [CorsSettingFilter!] - - """Checks for any expressions in this list.""" - or: [CorsSettingFilter!] - - """Negates the expression.""" - not: CorsSettingFilter - - """Filter by the object’s `api` relation.""" - api: ApiFilter - - """A related `api` exists.""" - apiExists: Boolean - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManySessionSecretsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: SessionSecretsModuleFilter - - """Filters to entities where every related entity matches.""" - every: SessionSecretsModuleFilter - - """Filters to entities where no related entity matches.""" - none: SessionSecretsModuleFilter -} - -""" -A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyIdentityProvidersModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: IdentityProvidersModuleFilter - - """Filters to entities where every related entity matches.""" - every: IdentityProvidersModuleFilter - - """Filters to entities where no related entity matches.""" - none: IdentityProvidersModuleFilter -} - -""" -A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyRealtimeModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: RealtimeModuleFilter - - """Filters to entities where every related entity matches.""" - every: RealtimeModuleFilter - - """Filters to entities where no related entity matches.""" - none: RealtimeModuleFilter -} - -""" -A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyConfigSecretsOrgModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ConfigSecretsOrgModuleFilter - - """Filters to entities where every related entity matches.""" - every: ConfigSecretsOrgModuleFilter - - """Filters to entities where no related entity matches.""" - none: ConfigSecretsOrgModuleFilter -} - -""" -A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ -""" -input SchemaToManyMerkleStoreModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: MerkleStoreModuleFilter - - """Filters to entities where every related entity matches.""" - every: MerkleStoreModuleFilter - - """Filters to entities where no related entity matches.""" - none: MerkleStoreModuleFilter -} - -""" -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 - - """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 `scopeField` field.""" - scopeField: 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 `commitTable` relation.""" - commitTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `objectTable` relation.""" - objectTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `refTable` relation.""" - refTable: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `storeTable` relation.""" - storeTable: TableFilter - - """Filter by the object’s `graphModules` relation.""" - graphModules: MerkleStoreModuleToManyGraphModuleFilter - - """`graphModules` exist.""" - graphModulesExist: Boolean -} - -""" -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 filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ -""" -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 `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 `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 `executionsTableId` field.""" - executionsTableId: UUIDFilter - - """Filter by the object’s `outputsTableId` field.""" - outputsTableId: UUIDFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Filter by the object’s `scopeField` field.""" - scopeField: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """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: [GraphModuleFilter!] - - """Checks for any expressions in this list.""" - or: [GraphModuleFilter!] - - """Negates the expression.""" - not: GraphModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `executionsTable` relation.""" - executionsTable: TableFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `graphsTable` relation.""" - graphsTable: TableFilter - - """Filter by the object’s `merkleStoreModule` relation.""" - merkleStoreModule: MerkleStoreModuleFilter - - """Filter by the object’s `outputsTable` relation.""" - outputsTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `publicSchema` relation.""" - publicSchema: SchemaFilter -} - -""" -A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyTableFilter { - """Filters to entities where at least one related entity matches.""" - some: TableFilter - - """Filters to entities where every related entity matches.""" - every: TableFilter - - """Filters to entities where no related entity matches.""" - none: TableFilter -} - -""" -A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyCheckConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: CheckConstraintFilter - - """Filters to entities where every related entity matches.""" - every: CheckConstraintFilter - - """Filters to entities where no related entity matches.""" - none: CheckConstraintFilter -} - -""" -A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyFieldFilter { - """Filters to entities where at least one related entity matches.""" - some: FieldFilter - - """Filters to entities where every related entity matches.""" - every: FieldFilter - - """Filters to entities where no related entity matches.""" - none: FieldFilter -} - -""" -A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyForeignKeyConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: ForeignKeyConstraintFilter - - """Filters to entities where every related entity matches.""" - every: ForeignKeyConstraintFilter - - """Filters to entities where no related entity matches.""" - none: ForeignKeyConstraintFilter -} - -""" -A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyFullTextSearchFilter { - """Filters to entities where at least one related entity matches.""" - some: FullTextSearchFilter - - """Filters to entities where every related entity matches.""" - every: FullTextSearchFilter - - """Filters to entities where no related entity matches.""" - none: FullTextSearchFilter -} - -""" -A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyIndexFilter { - """Filters to entities where at least one related entity matches.""" - some: IndexFilter - - """Filters to entities where every related entity matches.""" - every: IndexFilter - - """Filters to entities where no related entity matches.""" - none: IndexFilter -} - -""" -A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyPolicyFilter { - """Filters to entities where at least one related entity matches.""" - some: PolicyFilter - - """Filters to entities where every related entity matches.""" - every: PolicyFilter - - """Filters to entities where no related entity matches.""" - none: PolicyFilter -} - -""" -A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyPrimaryKeyConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: PrimaryKeyConstraintFilter - - """Filters to entities where every related entity matches.""" - every: PrimaryKeyConstraintFilter - - """Filters to entities where no related entity matches.""" - none: PrimaryKeyConstraintFilter -} - -""" -A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySchemaGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: SchemaGrantFilter - - """Filters to entities where every related entity matches.""" - every: SchemaGrantFilter - - """Filters to entities where no related entity matches.""" - none: SchemaGrantFilter -} - -""" -A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyTableGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: TableGrantFilter - - """Filters to entities where every related entity matches.""" - every: TableGrantFilter - - """Filters to entities where no related entity matches.""" - none: TableGrantFilter -} - -""" -A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyTriggerFunctionFilter { - """Filters to entities where at least one related entity matches.""" - some: TriggerFunctionFilter - - """Filters to entities where every related entity matches.""" - every: TriggerFunctionFilter - - """Filters to entities where no related entity matches.""" - none: TriggerFunctionFilter -} - -""" -A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ -""" -input TriggerFunctionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `code` field.""" - code: 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: [TriggerFunctionFilter!] - - """Checks for any expressions in this list.""" - or: [TriggerFunctionFilter!] - - """Negates the expression.""" - not: TriggerFunctionFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyTriggerFilter { - """Filters to entities where at least one related entity matches.""" - some: TriggerFilter - - """Filters to entities where every related entity matches.""" - every: TriggerFilter - - """Filters to entities where no related entity matches.""" - none: TriggerFilter -} - -""" -A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyUniqueConstraintFilter { - """Filters to entities where at least one related entity matches.""" - some: UniqueConstraintFilter - - """Filters to entities where every related entity matches.""" - every: UniqueConstraintFilter - - """Filters to entities where no related entity matches.""" - none: UniqueConstraintFilter -} - -""" -A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyViewFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewFilter - - """Filters to entities where every related entity matches.""" - every: ViewFilter - - """Filters to entities where no related entity matches.""" - none: ViewFilter -} - -""" -A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyViewGrantFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewGrantFilter - - """Filters to entities where every related entity matches.""" - every: ViewGrantFilter - - """Filters to entities where no related entity matches.""" - none: ViewGrantFilter -} - -""" -A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyViewRuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ViewRuleFilter - - """Filters to entities where every related entity matches.""" - every: ViewRuleFilter - - """Filters to entities where no related entity matches.""" - none: ViewRuleFilter -} - -""" -A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyDefaultPrivilegeFilter { - """Filters to entities where at least one related entity matches.""" - some: DefaultPrivilegeFilter - - """Filters to entities where every related entity matches.""" - every: DefaultPrivilegeFilter - - """Filters to entities where no related entity matches.""" - none: DefaultPrivilegeFilter -} - -""" -A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyEnumFilter { - """Filters to entities where at least one related entity matches.""" - some: EnumFilter - - """Filters to entities where every related entity matches.""" - every: EnumFilter - - """Filters to entities where no related entity matches.""" - none: EnumFilter -} - -""" -A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyEmbeddingChunkFilter { - """Filters to entities where at least one related entity matches.""" - some: EmbeddingChunkFilter - - """Filters to entities where every related entity matches.""" - every: EmbeddingChunkFilter - - """Filters to entities where no related entity matches.""" - none: EmbeddingChunkFilter -} - -""" -A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySpatialRelationFilter { - """Filters to entities where at least one related entity matches.""" - some: SpatialRelationFilter - - """Filters to entities where every related entity matches.""" - every: SpatialRelationFilter - - """Filters to entities where no related entity matches.""" - none: SpatialRelationFilter -} - -""" -A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyFunctionFilter { - """Filters to entities where at least one related entity matches.""" - some: FunctionFilter - - """Filters to entities where every related entity matches.""" - every: FunctionFilter - - """Filters to entities where no related entity matches.""" - none: FunctionFilter -} - -""" -A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyPartitionFilter { - """Filters to entities where at least one related entity matches.""" - some: PartitionFilter - - """Filters to entities where every related entity matches.""" - every: PartitionFilter - - """Filters to entities where no related entity matches.""" - none: PartitionFilter -} - -""" -A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyDatabaseTransferFilter { - """Filters to entities where at least one related entity matches.""" - some: DatabaseTransferFilter - - """Filters to entities where every related entity matches.""" - every: DatabaseTransferFilter - - """Filters to entities where no related entity matches.""" - none: DatabaseTransferFilter -} - -""" -A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseTransferFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `targetOwnerId` field.""" - targetOwnerId: UUIDFilter - - """Filter by the object’s `sourceApproved` field.""" - sourceApproved: BooleanFilter - - """Filter by the object’s `targetApproved` field.""" - targetApproved: BooleanFilter - - """Filter by the object’s `sourceApprovedAt` field.""" - sourceApprovedAt: DatetimeFilter - - """Filter by the object’s `targetApprovedAt` field.""" - targetApprovedAt: DatetimeFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Filter by the object’s `initiatedBy` field.""" - initiatedBy: UUIDFilter - - """Filter by the object’s `notes` field.""" - notes: StringFilter - - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [DatabaseTransferFilter!] - - """Checks for any expressions in this list.""" - or: [DatabaseTransferFilter!] - - """Negates the expression.""" - not: DatabaseTransferFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyApiFilter { - """Filters to entities where at least one related entity matches.""" - some: ApiFilter - - """Filters to entities where every related entity matches.""" - every: ApiFilter - - """Filters to entities where no related entity matches.""" - none: ApiFilter -} - -""" -A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyApiModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ApiModuleFilter - - """Filters to entities where every related entity matches.""" - every: ApiModuleFilter - - """Filters to entities where no related entity matches.""" - none: ApiModuleFilter -} - -""" -A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyApiSchemaFilter { - """Filters to entities where at least one related entity matches.""" - some: ApiSchemaFilter - - """Filters to entities where every related entity matches.""" - every: ApiSchemaFilter - - """Filters to entities where no related entity matches.""" - none: ApiSchemaFilter -} - -""" -A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySiteFilter { - """Filters to entities where at least one related entity matches.""" - some: SiteFilter - - """Filters to entities where every related entity matches.""" - every: SiteFilter - - """Filters to entities where no related entity matches.""" - none: SiteFilter -} - -""" -A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyAppFilter { - """Filters to entities where at least one related entity matches.""" - some: AppFilter - - """Filters to entities where every related entity matches.""" - every: AppFilter - - """Filters to entities where no related entity matches.""" - none: AppFilter -} - -""" -A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyDomainFilter { - """Filters to entities where at least one related entity matches.""" - some: DomainFilter - - """Filters to entities where every related entity matches.""" - every: DomainFilter - - """Filters to entities where no related entity matches.""" - none: DomainFilter -} - -""" -A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySiteMetadatumFilter { - """Filters to entities where at least one related entity matches.""" - some: SiteMetadatumFilter - - """Filters to entities where every related entity matches.""" - every: SiteMetadatumFilter - - """Filters to entities where no related entity matches.""" - none: SiteMetadatumFilter -} - -""" -A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySiteModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: SiteModuleFilter - - """Filters to entities where every related entity matches.""" - every: SiteModuleFilter - - """Filters to entities where no related entity matches.""" - none: SiteModuleFilter -} - -""" -A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySiteThemeFilter { - """Filters to entities where at least one related entity matches.""" - some: SiteThemeFilter - - """Filters to entities where every related entity matches.""" - every: SiteThemeFilter - - """Filters to entities where no related entity matches.""" - none: SiteThemeFilter -} - -""" -A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseSettingFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `enableAggregates` field.""" - enableAggregates: BooleanFilter - - """Filter by the object’s `enablePostgis` field.""" - enablePostgis: BooleanFilter - - """Filter by the object’s `enableSearch` field.""" - enableSearch: BooleanFilter - - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - - """Filter by the object’s `enablePresignedUploads` field.""" - enablePresignedUploads: BooleanFilter - - """Filter by the object’s `enableManyToMany` field.""" - enableManyToMany: BooleanFilter - - """Filter by the object’s `enableConnectionFilter` field.""" - enableConnectionFilter: BooleanFilter - - """Filter by the object’s `enableLtree` field.""" - enableLtree: BooleanFilter - - """Filter by the object’s `enableLlm` field.""" - enableLlm: BooleanFilter - - """Filter by the object’s `enableRealtime` field.""" - enableRealtime: BooleanFilter - - """Filter by the object’s `enableBulk` field.""" - enableBulk: BooleanFilter - - """Filter by the object’s `options` field.""" - options: JSONFilter - - """Checks for all expressions in this list.""" - and: [DatabaseSettingFilter!] - - """Checks for any expressions in this list.""" - or: [DatabaseSettingFilter!] - - """Negates the expression.""" - not: DatabaseSettingFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyApiSettingFilter { - """Filters to entities where at least one related entity matches.""" - some: ApiSettingFilter - - """Filters to entities where every related entity matches.""" - every: ApiSettingFilter - - """Filters to entities where no related entity matches.""" - none: ApiSettingFilter -} - -""" -A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ -""" -input RlsSettingFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `authenticateSchemaId` field.""" - authenticateSchemaId: UUIDFilter - - """Filter by the object’s `roleSchemaId` field.""" - roleSchemaId: UUIDFilter - - """Filter by the object’s `authenticateFunctionId` field.""" - authenticateFunctionId: UUIDFilter - - """Filter by the object’s `authenticateStrictFunctionId` field.""" - authenticateStrictFunctionId: UUIDFilter - - """Filter by the object’s `currentRoleFunctionId` field.""" - currentRoleFunctionId: UUIDFilter - - """Filter by the object’s `currentRoleIdFunctionId` field.""" - currentRoleIdFunctionId: UUIDFilter - - """Filter by the object’s `currentUserAgentFunctionId` field.""" - currentUserAgentFunctionId: UUIDFilter - - """Filter by the object’s `currentIpAddressFunctionId` field.""" - currentIpAddressFunctionId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [RlsSettingFilter!] - - """Checks for any expressions in this list.""" - or: [RlsSettingFilter!] - - """Negates the expression.""" - not: RlsSettingFilter - - """Filter by the object’s `authenticateFunction` relation.""" - authenticateFunction: FunctionFilter - - """A related `authenticateFunction` exists.""" - authenticateFunctionExists: Boolean - - """Filter by the object’s `authenticateSchema` relation.""" - authenticateSchema: SchemaFilter - - """A related `authenticateSchema` exists.""" - authenticateSchemaExists: Boolean - - """Filter by the object’s `authenticateStrictFunction` relation.""" - authenticateStrictFunction: FunctionFilter - - """A related `authenticateStrictFunction` exists.""" - authenticateStrictFunctionExists: Boolean - - """Filter by the object’s `currentIpAddressFunction` relation.""" - currentIpAddressFunction: FunctionFilter - - """A related `currentIpAddressFunction` exists.""" - currentIpAddressFunctionExists: Boolean - - """Filter by the object’s `currentRoleFunction` relation.""" - currentRoleFunction: FunctionFilter - - """A related `currentRoleFunction` exists.""" - currentRoleFunctionExists: Boolean - - """Filter by the object’s `currentRoleIdFunction` relation.""" - currentRoleIdFunction: FunctionFilter - - """A related `currentRoleIdFunction` exists.""" - currentRoleIdFunctionExists: Boolean - - """Filter by the object’s `currentUserAgentFunction` relation.""" - currentUserAgentFunction: FunctionFilter - - """A related `currentUserAgentFunction` exists.""" - currentUserAgentFunctionExists: Boolean - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `roleSchema` relation.""" - roleSchema: SchemaFilter - - """A related `roleSchema` exists.""" - roleSchemaExists: Boolean -} - -""" -A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyCorsSettingFilter { - """Filters to entities where at least one related entity matches.""" - some: CorsSettingFilter - - """Filters to entities where every related entity matches.""" - every: CorsSettingFilter - - """Filters to entities where no related entity matches.""" - none: CorsSettingFilter -} - -""" -A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ -""" -input PubkeySettingFilter { - """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 `cryptoNetwork` field.""" - cryptoNetwork: StringFilter - - """Filter by the object’s `userField` field.""" - userField: StringFilter - - """Filter by the object’s `signUpWithKeyFunctionId` field.""" - signUpWithKeyFunctionId: UUIDFilter - - """Filter by the object’s `signInRequestChallengeFunctionId` field.""" - signInRequestChallengeFunctionId: UUIDFilter - - """Filter by the object’s `signInRecordFailureFunctionId` field.""" - signInRecordFailureFunctionId: UUIDFilter - - """Filter by the object’s `signInWithChallengeFunctionId` field.""" - signInWithChallengeFunctionId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [PubkeySettingFilter!] - - """Checks for any expressions in this list.""" - or: [PubkeySettingFilter!] - - """Negates the expression.""" - not: PubkeySettingFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """A related `schema` exists.""" - schemaExists: Boolean - - """Filter by the object’s `signInRecordFailureFunction` relation.""" - signInRecordFailureFunction: FunctionFilter - - """A related `signInRecordFailureFunction` exists.""" - signInRecordFailureFunctionExists: Boolean - - """Filter by the object’s `signInRequestChallengeFunction` relation.""" - signInRequestChallengeFunction: FunctionFilter - - """A related `signInRequestChallengeFunction` exists.""" - signInRequestChallengeFunctionExists: Boolean - - """Filter by the object’s `signInWithChallengeFunction` relation.""" - signInWithChallengeFunction: FunctionFilter - - """A related `signInWithChallengeFunction` exists.""" - signInWithChallengeFunctionExists: Boolean - - """Filter by the object’s `signUpWithKeyFunction` relation.""" - signUpWithKeyFunction: FunctionFilter - - """A related `signUpWithKeyFunction` exists.""" - signUpWithKeyFunctionExists: Boolean -} - -""" -A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ -""" -input WebauthnSettingFilter { - """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 `credentialsSchemaId` field.""" - credentialsSchemaId: UUIDFilter - - """Filter by the object’s `sessionsSchemaId` field.""" - sessionsSchemaId: UUIDFilter - - """Filter by the object’s `sessionSecretsSchemaId` field.""" - sessionSecretsSchemaId: 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 `userFieldId` field.""" - userFieldId: 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 `challengeExpirySeconds` field.""" - challengeExpirySeconds: BigIntFilter - - """Checks for all expressions in this list.""" - and: [WebauthnSettingFilter!] - - """Checks for any expressions in this list.""" - or: [WebauthnSettingFilter!] - - """Negates the expression.""" - not: WebauthnSettingFilter - - """Filter by the object’s `credentialsSchema` relation.""" - credentialsSchema: SchemaFilter - - """A related `credentialsSchema` exists.""" - credentialsSchemaExists: Boolean - - """Filter by the object’s `credentialsTable` relation.""" - credentialsTable: TableFilter - - """A related `credentialsTable` exists.""" - credentialsTableExists: Boolean - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """A related `schema` exists.""" - schemaExists: Boolean - - """Filter by the object’s `sessionCredentialsTable` relation.""" - sessionCredentialsTable: TableFilter - - """A related `sessionCredentialsTable` exists.""" - sessionCredentialsTableExists: Boolean - - """Filter by the object’s `sessionSecretsSchema` relation.""" - sessionSecretsSchema: SchemaFilter - - """A related `sessionSecretsSchema` exists.""" - sessionSecretsSchemaExists: Boolean - - """Filter by the object’s `sessionSecretsTable` relation.""" - sessionSecretsTable: TableFilter - - """A related `sessionSecretsTable` exists.""" - sessionSecretsTableExists: Boolean - - """Filter by the object’s `sessionsSchema` relation.""" - sessionsSchema: SchemaFilter - - """A related `sessionsSchema` exists.""" - sessionsSchemaExists: Boolean - - """Filter by the object’s `sessionsTable` relation.""" - sessionsTable: TableFilter - - """A related `sessionsTable` exists.""" - sessionsTableExists: Boolean - - """Filter by the object’s `userField` relation.""" - userField: FieldFilter - - """A related `userField` exists.""" - userFieldExists: Boolean -} - -""" -A filter to be used against many `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyConnectedAccountsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ConnectedAccountsModuleFilter - - """Filters to entities where every related entity matches.""" - every: ConnectedAccountsModuleFilter - - """Filters to entities where no related entity matches.""" - none: ConnectedAccountsModuleFilter -} - -""" -A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ -""" -input ConnectedAccountsModuleFilter { - """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 - - """Checks for all expressions in this list.""" - and: [ConnectedAccountsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ConnectedAccountsModuleFilter!] - - """Negates the expression.""" - not: ConnectedAccountsModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `ownerTable` relation.""" - ownerTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyCryptoAddressesModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: CryptoAddressesModuleFilter - - """Filters to entities where every related entity matches.""" - every: CryptoAddressesModuleFilter - - """Filters to entities where no related entity matches.""" - none: CryptoAddressesModuleFilter -} - -""" -A filter to be used against `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ -""" -input 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 - - """Checks for all expressions in this list.""" - and: [CryptoAddressesModuleFilter!] - - """Checks for any expressions in this list.""" - or: [CryptoAddressesModuleFilter!] - - """Negates the expression.""" - not: CryptoAddressesModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `ownerTable` relation.""" - ownerTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyCryptoAuthModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: CryptoAuthModuleFilter - - """Filters to entities where every related entity matches.""" - every: CryptoAuthModuleFilter - - """Filters to entities where no related entity matches.""" - none: CryptoAuthModuleFilter -} - -""" -A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ -""" -input CryptoAuthModuleFilter { - """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 `secretsTableId` field.""" - secretsTableId: UUIDFilter - - """Filter by the object’s `sessionsTableId` field.""" - sessionsTableId: UUIDFilter - - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter - - """Filter by the object’s `addressesTableId` field.""" - addressesTableId: UUIDFilter - - """Filter by the object’s `userField` field.""" - userField: StringFilter - - """Filter by the object’s `cryptoNetwork` field.""" - cryptoNetwork: StringFilter - - """Filter by the object’s `signInRequestChallenge` field.""" - signInRequestChallenge: StringFilter - - """Filter by the object’s `signInRecordFailure` field.""" - signInRecordFailure: StringFilter - - """Filter by the object’s `signUpWithKey` field.""" - signUpWithKey: StringFilter - - """Filter by the object’s `signInWithChallenge` field.""" - signInWithChallenge: StringFilter - - """Checks for all expressions in this list.""" - and: [CryptoAuthModuleFilter!] - - """Checks for any expressions in this list.""" - or: [CryptoAuthModuleFilter!] - - """Negates the expression.""" - not: CryptoAuthModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `secretsTable` relation.""" - secretsTable: TableFilter - - """Filter by the object’s `sessionCredentialsTable` relation.""" - sessionCredentialsTable: TableFilter - - """Filter by the object’s `sessionsTable` relation.""" - sessionsTable: TableFilter - - """Filter by the object’s `usersTable` relation.""" - usersTable: TableFilter -} - -""" -A filter to be used against many `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyDefaultIdsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: DefaultIdsModuleFilter - - """Filters to entities where every related entity matches.""" - every: DefaultIdsModuleFilter - - """Filters to entities where no related entity matches.""" - none: DefaultIdsModuleFilter -} - -""" -A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DefaultIdsModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [DefaultIdsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [DefaultIdsModuleFilter!] - - """Negates the expression.""" - not: DefaultIdsModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyDenormalizedTableFieldFilter { - """Filters to entities where at least one related entity matches.""" - some: DenormalizedTableFieldFilter - - """Filters to entities where every related entity matches.""" - every: DenormalizedTableFieldFilter - - """Filters to entities where no related entity matches.""" - none: DenormalizedTableFieldFilter -} - -""" -A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ -""" -input DenormalizedTableFieldFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `fieldId` field.""" - fieldId: UUIDFilter - - """Filter by the object’s `setIds` field.""" - setIds: UUIDListFilter - - """Filter by the object’s `refTableId` field.""" - refTableId: UUIDFilter - - """Filter by the object’s `refFieldId` field.""" - refFieldId: UUIDFilter - - """Filter by the object’s `refIds` field.""" - refIds: UUIDListFilter - - """Filter by the object’s `useUpdates` field.""" - useUpdates: BooleanFilter - - """Filter by the object’s `updateDefaults` field.""" - updateDefaults: BooleanFilter - - """Filter by the object’s `funcName` field.""" - funcName: StringFilter - - """Filter by the object’s `funcOrder` field.""" - funcOrder: IntFilter - - """Checks for all expressions in this list.""" - and: [DenormalizedTableFieldFilter!] - - """Checks for any expressions in this list.""" - or: [DenormalizedTableFieldFilter!] - - """Negates the expression.""" - not: DenormalizedTableFieldFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `field` relation.""" - field: FieldFilter - - """Filter by the object’s `refField` relation.""" - refField: FieldFilter - - """Filter by the object’s `refTable` relation.""" - refTable: TableFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `EmailsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyEmailsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: EmailsModuleFilter - - """Filters to entities where every related entity matches.""" - every: EmailsModuleFilter - - """Filters to entities where no related entity matches.""" - none: EmailsModuleFilter -} - -""" -A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ -""" -input EmailsModuleFilter { - """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 - - """Checks for all expressions in this list.""" - and: [EmailsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [EmailsModuleFilter!] - - """Negates the expression.""" - not: EmailsModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `ownerTable` relation.""" - ownerTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyConfigSecretsUserModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ConfigSecretsUserModuleFilter - - """Filters to entities where every related entity matches.""" - every: ConfigSecretsUserModuleFilter - - """Filters to entities where no related entity matches.""" - none: ConfigSecretsUserModuleFilter -} - -""" -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 `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 - - """Checks for all expressions in this list.""" - and: [ConfigSecretsUserModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ConfigSecretsUserModuleFilter!] - - """Negates the expression.""" - not: ConfigSecretsUserModuleFilter - - """Filter by the object’s `configDefinitionsTable` relation.""" - configDefinitionsTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyInvitesModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: InvitesModuleFilter - - """Filters to entities where every related entity matches.""" - every: InvitesModuleFilter - - """Filters to entities where no related entity matches.""" - none: InvitesModuleFilter -} - -""" -A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ -""" -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 `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """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 `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [InvitesModuleFilter!] - - """Checks for any expressions in this list.""" - or: [InvitesModuleFilter!] - - """Negates the expression.""" - not: InvitesModuleFilter - - """Filter by the object’s `claimedInvitesTable` relation.""" - claimedInvitesTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `emailsTable` relation.""" - emailsTable: TableFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `invitesTable` relation.""" - invitesTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `usersTable` relation.""" - usersTable: TableFilter -} - -""" -A filter to be used against many `EventsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyEventsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: EventsModuleFilter - - """Filters to entities where every related entity matches.""" - every: EventsModuleFilter - - """Filters to entities where no related entity matches.""" - none: EventsModuleFilter -} - -""" -A filter to be used against `EventsModule` object types. All fields are combined with a logical ‘and.’ -""" -input EventsModuleFilter { - """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 `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 - - """Filter by the object’s `removeEvent` field.""" - removeEvent: StringFilter - - """Filter by the object’s `tgEvent` field.""" - tgEvent: StringFilter - - """Filter by the object’s `tgEventToggle` field.""" - tgEventToggle: StringFilter - - """Filter by the object’s `tgEventToggleBool` field.""" - tgEventToggleBool: StringFilter - - """Filter by the object’s `tgEventBool` field.""" - tgEventBool: StringFilter - - """Filter by the object’s `upsertAggregate` field.""" - 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.""" - levelAchieved: StringFilter - - """Filter by the object’s `tgCheckAchievements` field.""" - tgCheckAchievements: StringFilter - - """Filter by the object’s `grantAchievement` field.""" - grantAchievement: StringFilter - - """Filter by the object’s `tgAchievementReward` field.""" - tgAchievementReward: 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 `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [EventsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [EventsModuleFilter!] - - """Negates the expression.""" - not: EventsModuleFilter - - """Filter by the object’s `achievementRewardsTable` relation.""" - achievementRewardsTable: TableFilter - - """Filter by the object’s `actorTable` relation.""" - actorTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `eventAggregatesTable` relation.""" - eventAggregatesTable: TableFilter - - """Filter by the object’s `eventTypesTable` relation.""" - eventTypesTable: TableFilter - - """Filter by the object’s `eventsTable` relation.""" - eventsTable: TableFilter - - """Filter by the object’s `levelGrantsTable` relation.""" - levelGrantsTable: TableFilter - - """Filter by the object’s `levelRequirementsTable` relation.""" - levelRequirementsTable: TableFilter - - """Filter by the object’s `levelsTable` relation.""" - levelsTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `LimitsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyLimitsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: LimitsModuleFilter - - """Filters to entities where every related entity matches.""" - every: LimitsModuleFilter - - """Filters to entities where no related entity matches.""" - none: LimitsModuleFilter -} - -""" -A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ -""" -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 `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 `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 `limitIncrementFunction` field.""" - limitIncrementFunction: StringFilter - - """Filter by the object’s `limitDecrementFunction` field.""" - limitDecrementFunction: StringFilter - - """Filter by the object’s `limitIncrementTrigger` field.""" - limitIncrementTrigger: StringFilter - - """Filter by the object’s `limitDecrementTrigger` field.""" - limitDecrementTrigger: StringFilter - - """Filter by the object’s `limitUpdateTrigger` field.""" - limitUpdateTrigger: StringFilter - - """Filter by the object’s `limitCheckFunction` field.""" - limitCheckFunction: StringFilter - - """Filter by the object’s `limitCreditsTableId` field.""" - limitCreditsTableId: UUIDFilter - - """Filter by the object’s `eventsTableId` field.""" - eventsTableId: UUIDFilter - - """Filter by the object’s `creditCodesTableId` field.""" - creditCodesTableId: UUIDFilter - - """Filter by the object’s `creditCodeItemsTableId` field.""" - creditCodeItemsTableId: UUIDFilter - - """Filter by the object’s `creditRedemptionsTableId` field.""" - creditRedemptionsTableId: UUIDFilter - - """Filter by the object’s `aggregateTableId` field.""" - aggregateTableId: UUIDFilter - - """Filter by the object’s `limitCapsTableId` field.""" - limitCapsTableId: UUIDFilter - - """Filter by the object’s `limitCapsDefaultsTableId` field.""" - limitCapsDefaultsTableId: UUIDFilter - - """Filter by the object’s `capCheckTrigger` field.""" - capCheckTrigger: 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 `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [LimitsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [LimitsModuleFilter!] - - """Negates the expression.""" - not: LimitsModuleFilter - - """Filter by the object’s `actorTable` relation.""" - actorTable: TableFilter - - """Filter by the object’s `aggregateTable` relation.""" - aggregateTable: TableFilter - - """A related `aggregateTable` exists.""" - aggregateTableExists: Boolean - - """Filter by the object’s `creditCodeItemsTable` relation.""" - creditCodeItemsTable: TableFilter - - """A related `creditCodeItemsTable` exists.""" - creditCodeItemsTableExists: Boolean - - """Filter by the object’s `creditCodesTable` relation.""" - creditCodesTable: TableFilter - - """A related `creditCodesTable` exists.""" - creditCodesTableExists: Boolean - - """Filter by the object’s `creditRedemptionsTable` relation.""" - creditRedemptionsTable: TableFilter - - """A related `creditRedemptionsTable` exists.""" - creditRedemptionsTableExists: Boolean - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `defaultTable` relation.""" - defaultTable: TableFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `eventsTable` relation.""" - eventsTable: TableFilter - - """A related `eventsTable` exists.""" - eventsTableExists: Boolean - - """Filter by the object’s `limitCapsDefaultsTable` relation.""" - limitCapsDefaultsTable: TableFilter - - """A related `limitCapsDefaultsTable` exists.""" - limitCapsDefaultsTableExists: Boolean - - """Filter by the object’s `limitCapsTable` relation.""" - limitCapsTable: TableFilter - - """A related `limitCapsTable` exists.""" - limitCapsTableExists: Boolean - - """Filter by the object’s `limitCreditsTable` relation.""" - limitCreditsTable: TableFilter - - """A related `limitCreditsTable` exists.""" - limitCreditsTableExists: Boolean - - """Filter by the object’s `limitWarningStateTable` relation.""" - limitWarningStateTable: TableFilter - - """A related `limitWarningStateTable` exists.""" - limitWarningStateTableExists: Boolean - - """Filter by the object’s `limitWarningsTable` relation.""" - limitWarningsTable: TableFilter - - """A related `limitWarningsTable` exists.""" - limitWarningsTableExists: Boolean - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyMembershipTypesModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: MembershipTypesModuleFilter - - """Filters to entities where every related entity matches.""" - every: MembershipTypesModuleFilter - - """Filters to entities where no related entity matches.""" - none: MembershipTypesModuleFilter -} - -""" -A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ -""" -input MembershipTypesModuleFilter { - """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: [MembershipTypesModuleFilter!] - - """Checks for any expressions in this list.""" - or: [MembershipTypesModuleFilter!] - - """Negates the expression.""" - not: MembershipTypesModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `MembershipsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyMembershipsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: MembershipsModuleFilter - - """Filters to entities where every related entity matches.""" - every: MembershipsModuleFilter - - """Filters to entities where no related entity matches.""" - none: MembershipsModuleFilter -} - -""" -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 `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """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 `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `entityTableOwnerId` field.""" - entityTableOwnerId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """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 - - """Checks for all expressions in this list.""" - and: [MembershipsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [MembershipsModuleFilter!] - - """Negates the expression.""" - not: MembershipsModuleFilter - - """Filter by the object’s `actorTable` relation.""" - actorTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `defaultLimitsTable` relation.""" - defaultLimitsTable: TableFilter - - """Filter by the object’s `defaultPermissionsTable` relation.""" - defaultPermissionsTable: TableFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `entityTableOwner` relation.""" - entityTableOwner: FieldFilter - - """A related `entityTableOwner` exists.""" - entityTableOwnerExists: Boolean - - """Filter by the object’s `grantsTable` relation.""" - grantsTable: TableFilter - - """Filter by the object’s `limitsTable` relation.""" - limitsTable: TableFilter - - """Filter by the object’s `membersTable` relation.""" - membersTable: TableFilter - - """Filter by the object’s `membershipDefaultsTable` relation.""" - membershipDefaultsTable: TableFilter - - """Filter by the object’s `membershipSettingsTable` relation.""" - membershipSettingsTable: TableFilter - - """A related `membershipSettingsTable` exists.""" - membershipSettingsTableExists: Boolean - - """Filter by the object’s `membershipsTable` relation.""" - membershipsTable: TableFilter - - """Filter by the object’s `permissionsTable` relation.""" - permissionsTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `sprtTable` relation.""" - sprtTable: TableFilter -} - -""" -A filter to be used against many `PermissionsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyPermissionsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: PermissionsModuleFilter - - """Filters to entities where every related entity matches.""" - every: PermissionsModuleFilter - - """Filters to entities where no related entity matches.""" - none: PermissionsModuleFilter -} - -""" -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 `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 `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 `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """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 - - """Checks for all expressions in this list.""" - and: [PermissionsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [PermissionsModuleFilter!] - - """Negates the expression.""" - not: PermissionsModuleFilter - - """Filter by the object’s `actorTable` relation.""" - actorTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `defaultTable` relation.""" - defaultTable: TableFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyPhoneNumbersModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: PhoneNumbersModuleFilter - - """Filters to entities where every related entity matches.""" - every: PhoneNumbersModuleFilter - - """Filters to entities where no related entity matches.""" - none: PhoneNumbersModuleFilter -} - -""" -A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ -""" -input PhoneNumbersModuleFilter { - """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 - - """Checks for all expressions in this list.""" - and: [PhoneNumbersModuleFilter!] - - """Checks for any expressions in this list.""" - or: [PhoneNumbersModuleFilter!] - - """Negates the expression.""" - not: PhoneNumbersModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `ownerTable` relation.""" - ownerTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `ProfilesModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyProfilesModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ProfilesModuleFilter - - """Filters to entities where every related entity matches.""" - every: ProfilesModuleFilter - - """Filters to entities where no related entity matches.""" - none: ProfilesModuleFilter -} - -""" -A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ -""" -input ProfilesModuleFilter { - """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 `tableName` field.""" - tableName: StringFilter - - """Filter by the object’s `profilePermissionsTableId` field.""" - profilePermissionsTableId: UUIDFilter - - """Filter by the object’s `profilePermissionsTableName` field.""" - profilePermissionsTableName: StringFilter - - """Filter by the object’s `profileGrantsTableId` field.""" - profileGrantsTableId: UUIDFilter - - """Filter by the object’s `profileGrantsTableName` field.""" - profileGrantsTableName: StringFilter - - """Filter by the object’s `profileDefinitionGrantsTableId` field.""" - profileDefinitionGrantsTableId: UUIDFilter - - """Filter by the object’s `profileDefinitionGrantsTableName` field.""" - profileDefinitionGrantsTableName: StringFilter - - """Filter by the object’s `profileTemplatesTableId` field.""" - profileTemplatesTableId: UUIDFilter - - """Filter by the object’s `profileTemplatesTableName` field.""" - profileTemplatesTableName: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter - - """Filter by the object’s `permissionsTableId` field.""" - permissionsTableId: UUIDFilter - - """Filter by the object’s `membershipsTableId` field.""" - membershipsTableId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [ProfilesModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ProfilesModuleFilter!] - - """Negates the expression.""" - not: ProfilesModuleFilter - - """Filter by the object’s `actorTable` relation.""" - actorTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `membershipsTable` relation.""" - membershipsTable: TableFilter - - """Filter by the object’s `permissionsTable` relation.""" - permissionsTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `profileDefinitionGrantsTable` relation.""" - profileDefinitionGrantsTable: TableFilter - - """Filter by the object’s `profileGrantsTable` relation.""" - profileGrantsTable: TableFilter - - """Filter by the object’s `profilePermissionsTable` relation.""" - profilePermissionsTable: TableFilter - - """Filter by the object’s `profileTemplatesTable` relation.""" - profileTemplatesTable: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -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 - - """Checks for all expressions in this list.""" - and: [RlsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [RlsModuleFilter!] - - """Negates the expression.""" - not: RlsModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `sessionCredentialsTable` relation.""" - sessionCredentialsTable: TableFilter - - """Filter by the object’s `sessionsTable` relation.""" - sessionsTable: TableFilter - - """Filter by the object’s `usersTable` relation.""" - usersTable: TableFilter -} - -""" -A filter to be used against many `UserStateModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyUserStateModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: UserStateModuleFilter - - """Filters to entities where every related entity matches.""" - every: UserStateModuleFilter - - """Filters to entities where no related entity matches.""" - none: UserStateModuleFilter -} - -""" -A filter to be used against `UserStateModule` object types. All fields are combined with a logical ‘and.’ -""" -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 `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 - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `SessionsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySessionsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: SessionsModuleFilter - - """Filters to entities where every related entity matches.""" - every: SessionsModuleFilter - - """Filters to entities where no related entity matches.""" - none: SessionsModuleFilter -} - -""" -A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ -""" -input SessionsModuleFilter { - """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 `sessionsTableId` field.""" - sessionsTableId: UUIDFilter - - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter - - """Filter by the object’s `authSettingsTableId` field.""" - authSettingsTableId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter - - """Filter by the object’s `sessionsDefaultExpiration` field.""" - sessionsDefaultExpiration: IntervalFilter - - """Filter by the object’s `sessionsTable` field.""" - sessionsTable: StringFilter - - """Filter by the object’s `sessionCredentialsTable` field.""" - sessionCredentialsTable: StringFilter - - """Filter by the object’s `authSettingsTable` field.""" - authSettingsTable: StringFilter - - """Checks for all expressions in this list.""" - and: [SessionsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [SessionsModuleFilter!] - - """Negates the expression.""" - not: SessionsModuleFilter - - """ - Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. - """ - authSettingsTableByAuthSettingsTableId: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """ - Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. - """ - sessionCredentialsTableBySessionCredentialsTableId: TableFilter - - """Filter by the object’s `sessionsTableBySessionsTableId` relation.""" - sessionsTableBySessionsTableId: TableFilter - - """Filter by the object’s `usersTable` relation.""" - usersTable: TableFilter -} - -""" -A filter to be used against many `UserAuthModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyUserAuthModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: UserAuthModuleFilter - - """Filters to entities where every related entity matches.""" - every: UserAuthModuleFilter - - """Filters to entities where no related entity matches.""" - none: UserAuthModuleFilter -} - -""" -A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ -""" -input UserAuthModuleFilter { - """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 `emailsTableId` field.""" - emailsTableId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter - - """Filter by the object’s `secretsTableId` field.""" - secretsTableId: UUIDFilter - - """Filter by the object’s `encryptedTableId` field.""" - encryptedTableId: 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 `auditsTableName` field.""" - auditsTableName: StringFilter - - """Filter by the object’s `signInFunction` field.""" - signInFunction: StringFilter - - """Filter by the object’s `signUpFunction` field.""" - signUpFunction: StringFilter - - """Filter by the object’s `signOutFunction` field.""" - signOutFunction: StringFilter - - """Filter by the object’s `setPasswordFunction` field.""" - setPasswordFunction: StringFilter - - """Filter by the object’s `resetPasswordFunction` field.""" - resetPasswordFunction: StringFilter - - """Filter by the object’s `forgotPasswordFunction` field.""" - forgotPasswordFunction: StringFilter - - """Filter by the object’s `sendVerificationEmailFunction` field.""" - sendVerificationEmailFunction: StringFilter - - """Filter by the object’s `verifyEmailFunction` field.""" - verifyEmailFunction: StringFilter - - """Filter by the object’s `verifyPasswordFunction` field.""" - verifyPasswordFunction: StringFilter - - """Filter by the object’s `checkPasswordFunction` field.""" - checkPasswordFunction: StringFilter - - """Filter by the object’s `sendAccountDeletionEmailFunction` field.""" - sendAccountDeletionEmailFunction: StringFilter - - """Filter by the object’s `deleteAccountFunction` field.""" - deleteAccountFunction: StringFilter - - """Filter by the object’s `signInCrossOriginFunction` field.""" - signInCrossOriginFunction: StringFilter - - """Filter by the object’s `requestCrossOriginTokenFunction` field.""" - requestCrossOriginTokenFunction: StringFilter - - """Filter by the object’s `extendTokenExpires` field.""" - extendTokenExpires: StringFilter - - """Checks for all expressions in this list.""" - and: [UserAuthModuleFilter!] - - """Checks for any expressions in this list.""" - or: [UserAuthModuleFilter!] - - """Negates the expression.""" - not: UserAuthModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `emailsTable` relation.""" - emailsTable: TableFilter - - """Filter by the object’s `encryptedTable` relation.""" - encryptedTable: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `secretsTable` relation.""" - secretsTable: TableFilter - - """Filter by the object’s `sessionCredentialsTable` relation.""" - sessionCredentialsTable: TableFilter - - """Filter by the object’s `sessionsTable` relation.""" - sessionsTable: TableFilter - - """Filter by the object’s `usersTable` relation.""" - usersTable: TableFilter -} - -""" -A filter to be used against many `UsersModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyUsersModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: UsersModuleFilter - - """Filters to entities where every related entity matches.""" - every: UsersModuleFilter - - """Filters to entities where no related entity matches.""" - none: UsersModuleFilter -} - -""" -A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ -""" -input UsersModuleFilter { - """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 `typeTableId` field.""" - typeTableId: UUIDFilter - - """Filter by the object’s `typeTableName` field.""" - typeTableName: StringFilter - - """Checks for all expressions in this list.""" - and: [UsersModuleFilter!] - - """Checks for any expressions in this list.""" - or: [UsersModuleFilter!] - - """Negates the expression.""" - not: UsersModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter - - """Filter by the object’s `typeTable` relation.""" - typeTable: TableFilter -} - -""" -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 `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 `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 `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 - - """Filter by the object’s `chartEdgeGrantsTable` relation.""" - chartEdgeGrantsTable: TableFilter - - """Filter by the object’s `chartEdgesTable` relation.""" - chartEdgesTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """Filter by the object’s `hierarchySprtTable` relation.""" - hierarchySprtTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `usersTable` relation.""" - usersTable: TableFilter -} - -""" -A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySecureTableProvisionFilter { - """Filters to entities where at least one related entity matches.""" - some: SecureTableProvisionFilter - - """Filters to entities where every related entity matches.""" - every: SecureTableProvisionFilter - - """Filters to entities where no related entity matches.""" - none: SecureTableProvisionFilter -} - -""" -A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyRelationProvisionFilter { - """Filters to entities where at least one related entity matches.""" - some: RelationProvisionFilter - - """Filters to entities where every related entity matches.""" - every: RelationProvisionFilter - - """Filters to entities where no related entity matches.""" - none: RelationProvisionFilter -} - -""" -A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyBlueprintFilter { - """Filters to entities where at least one related entity matches.""" - some: BlueprintFilter - - """Filters to entities where every related entity matches.""" - every: BlueprintFilter - - """Filters to entities where no related entity matches.""" - none: BlueprintFilter -} - -""" -A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ -""" -input BlueprintFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `definition` field.""" - definition: JSONFilter - - """Filter by the object’s `templateId` field.""" - templateId: UUIDFilter - - """Filter by the object’s `definitionHash` field.""" - definitionHash: UUIDFilter - - """Filter by the object’s `tableHashes` field.""" - tableHashes: JSONFilter - - """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: [BlueprintFilter!] - - """Checks for any expressions in this list.""" - or: [BlueprintFilter!] - - """Negates the expression.""" - not: BlueprintFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `template` relation.""" - template: BlueprintTemplateFilter - - """A related `template` exists.""" - templateExists: Boolean - - """Filter by the object’s `blueprintConstructions` relation.""" - blueprintConstructions: BlueprintToManyBlueprintConstructionFilter - - """`blueprintConstructions` exist.""" - blueprintConstructionsExist: Boolean -} - -""" -A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ -""" -input BlueprintTemplateFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `version` field.""" - version: StringFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `visibility` field.""" - visibility: StringFilter - - """Filter by the object’s `categories` field.""" - categories: StringListFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Filter by the object’s `definition` field.""" - definition: JSONFilter - - """Filter by the object’s `definitionSchemaVersion` field.""" - definitionSchemaVersion: StringFilter - - """Filter by the object’s `source` field.""" - source: StringFilter - - """Filter by the object’s `complexity` field.""" - complexity: StringFilter - - """Filter by the object’s `copyCount` field.""" - copyCount: IntFilter - - """Filter by the object’s `forkCount` field.""" - forkCount: IntFilter - - """Filter by the object’s `forkedFromId` field.""" - forkedFromId: UUIDFilter - - """Filter by the object’s `definitionHash` field.""" - definitionHash: UUIDFilter - - """Filter by the object’s `tableHashes` field.""" - tableHashes: JSONFilter - - """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: [BlueprintTemplateFilter!] - - """Checks for any expressions in this list.""" - or: [BlueprintTemplateFilter!] - - """Negates the expression.""" - not: BlueprintTemplateFilter - - """Filter by the object’s `forkedFrom` relation.""" - forkedFrom: BlueprintTemplateFilter - - """A related `forkedFrom` exists.""" - forkedFromExists: Boolean - - """Filter by the object’s `blueprintTemplatesByForkedFromId` relation.""" - blueprintTemplatesByForkedFromId: BlueprintTemplateToManyBlueprintTemplateFilter - - """`blueprintTemplatesByForkedFromId` exist.""" - blueprintTemplatesByForkedFromIdExist: Boolean - - """Filter by the object’s `blueprintsByTemplateId` relation.""" - blueprintsByTemplateId: BlueprintTemplateToManyBlueprintFilter - - """`blueprintsByTemplateId` exist.""" - blueprintsByTemplateIdExist: Boolean -} - -""" -A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ -""" -input BlueprintTemplateToManyBlueprintTemplateFilter { - """Filters to entities where at least one related entity matches.""" - some: BlueprintTemplateFilter - - """Filters to entities where every related entity matches.""" - every: BlueprintTemplateFilter - - """Filters to entities where no related entity matches.""" - none: BlueprintTemplateFilter -} - -""" -A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ -""" -input BlueprintTemplateToManyBlueprintFilter { - """Filters to entities where at least one related entity matches.""" - some: BlueprintFilter - - """Filters to entities where every related entity matches.""" - every: BlueprintFilter - - """Filters to entities where no related entity matches.""" - none: BlueprintFilter -} - -""" -A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ -""" -input BlueprintToManyBlueprintConstructionFilter { - """Filters to entities where at least one related entity matches.""" - some: BlueprintConstructionFilter - - """Filters to entities where every related entity matches.""" - every: BlueprintConstructionFilter - - """Filters to entities where no related entity matches.""" - none: BlueprintConstructionFilter -} - -""" -A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ -""" -input BlueprintConstructionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `blueprintId` field.""" - blueprintId: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Filter by the object’s `errorDetails` field.""" - errorDetails: StringFilter - - """Filter by the object’s `tableMap` field.""" - tableMap: JSONFilter - - """Filter by the object’s `constructedDefinition` field.""" - constructedDefinition: JSONFilter - - """Filter by the object’s `constructedAt` field.""" - constructedAt: DatetimeFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [BlueprintConstructionFilter!] - - """Checks for any expressions in this list.""" - or: [BlueprintConstructionFilter!] - - """Negates the expression.""" - not: BlueprintConstructionFilter - - """Filter by the object’s `blueprint` relation.""" - blueprint: BlueprintFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyBlueprintConstructionFilter { - """Filters to entities where at least one related entity matches.""" - some: BlueprintConstructionFilter - - """Filters to entities where every related entity matches.""" - every: BlueprintConstructionFilter - - """Filters to entities where no related entity matches.""" - none: BlueprintConstructionFilter -} - -""" -A filter to be used against many `StorageModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyStorageModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: StorageModuleFilter - - """Filters to entities where every related entity matches.""" - every: StorageModuleFilter - - """Filters to entities where no related entity matches.""" - none: StorageModuleFilter -} - -""" -A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ -""" -input StorageModuleFilter { - """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 `bucketsTableId` field.""" - bucketsTableId: UUIDFilter - - """Filter by the object’s `filesTableId` field.""" - filesTableId: UUIDFilter - - """Filter by the object’s `bucketsTableName` field.""" - bucketsTableName: StringFilter - - """Filter by the object’s `filesTableName` field.""" - filesTableName: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `key` field.""" - key: StringFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `endpoint` field.""" - endpoint: StringFilter - - """Filter by the object’s `publicUrlPrefix` field.""" - publicUrlPrefix: StringFilter - - """Filter by the object’s `provider` field.""" - provider: StringFilter - - """Filter by the object’s `allowedOrigins` field.""" - allowedOrigins: StringListFilter - - """Filter by the object’s `restrictReads` field.""" - restrictReads: BooleanFilter - - """Filter by the object’s `hasPathShares` field.""" - hasPathShares: BooleanFilter - - """Filter by the object’s `pathSharesTableId` field.""" - pathSharesTableId: UUIDFilter - - """Filter by the object’s `uploadUrlExpirySeconds` field.""" - uploadUrlExpirySeconds: IntFilter - - """Filter by the object’s `downloadUrlExpirySeconds` field.""" - downloadUrlExpirySeconds: IntFilter - - """Filter by the object’s `defaultMaxFileSize` field.""" - defaultMaxFileSize: BigIntFilter - - """Filter by the object’s `maxFilenameLength` field.""" - maxFilenameLength: IntFilter - - """Filter by the object’s `cacheTtlSeconds` field.""" - cacheTtlSeconds: IntFilter - - """Filter by the object’s `maxBulkFiles` field.""" - maxBulkFiles: IntFilter - - """Filter by the object’s `maxBulkTotalSize` field.""" - maxBulkTotalSize: BigIntFilter - - """Filter by the object’s `hasVersioning` field.""" - hasVersioning: BooleanFilter - - """Filter by the object’s `hasContentHash` field.""" - hasContentHash: BooleanFilter - - """Filter by the object’s `hasCustomKeys` field.""" - hasCustomKeys: BooleanFilter - - """Filter by the object’s `hasAuditLog` field.""" - hasAuditLog: BooleanFilter - - """Filter by the object’s `hasConfirmUpload` field.""" - hasConfirmUpload: BooleanFilter - - """Filter by the object’s `confirmUploadDelay` field.""" - confirmUploadDelay: IntervalFilter - - """Filter by the object’s `fileEventsTableId` field.""" - fileEventsTableId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [StorageModuleFilter!] - - """Checks for any expressions in this list.""" - or: [StorageModuleFilter!] - - """Negates the expression.""" - not: StorageModuleFilter - - """Filter by the object’s `bucketsTable` relation.""" - bucketsTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `fileEventsTable` relation.""" - fileEventsTable: TableFilter - - """A related `fileEventsTable` exists.""" - fileEventsTableExists: Boolean - - """Filter by the object’s `filesTable` relation.""" - filesTable: TableFilter - - """Filter by the object’s `pathSharesTable` relation.""" - pathSharesTable: TableFilter - - """A related `pathSharesTable` exists.""" - pathSharesTableExists: Boolean - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyEntityTypeProvisionFilter { - """Filters to entities where at least one related entity matches.""" - some: EntityTypeProvisionFilter - - """Filters to entities where every related entity matches.""" - every: EntityTypeProvisionFilter - - """Filters to entities where no related entity matches.""" - none: EntityTypeProvisionFilter -} - -""" -A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ -""" -input EntityTypeProvisionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `parentEntity` field.""" - parentEntity: StringFilter - - """Filter by the object’s `tableName` field.""" - tableName: StringFilter - - """Filter by the object’s `isVisible` field.""" - isVisible: BooleanFilter - - """Filter by the object’s `hasLimits` field.""" - hasLimits: BooleanFilter - - """Filter by the object’s `hasProfiles` field.""" - hasProfiles: BooleanFilter - - """Filter by the object’s `hasLevels` field.""" - hasLevels: BooleanFilter - - """Filter by the object’s `hasInvites` field.""" - hasInvites: BooleanFilter - - """Filter by the object’s `hasInviteAchievements` field.""" - hasInviteAchievements: BooleanFilter - - """Filter by the object’s `storage` field.""" - storage: JSONFilter - - """Filter by the object’s `namespaces` field.""" - namespaces: JSONFilter - - """Filter by the object’s `functions` field.""" - functions: JSONFilter - - """Filter by the object’s `graphs` field.""" - graphs: JSONFilter - - """Filter by the object’s `agents` field.""" - agents: JSONFilter - - """Filter by the object’s `skipEntityPolicies` field.""" - skipEntityPolicies: BooleanFilter - - """Filter by the object’s `tableProvision` field.""" - tableProvision: JSONFilter - - """Filter by the object’s `outMembershipType` field.""" - outMembershipType: IntFilter - - """Filter by the object’s `outEntityTableId` field.""" - outEntityTableId: UUIDFilter - - """Filter by the object’s `outEntityTableName` field.""" - outEntityTableName: StringFilter - - """Filter by the object’s `outInstalledModules` field.""" - outInstalledModules: StringListFilter - - """Filter by the object’s `outStorageModuleId` field.""" - outStorageModuleId: UUIDFilter - - """Filter by the object’s `outBucketsTableId` field.""" - outBucketsTableId: UUIDFilter - - """Filter by the object’s `outFilesTableId` field.""" - outFilesTableId: UUIDFilter - - """Filter by the object’s `outPathSharesTableId` field.""" - outPathSharesTableId: UUIDFilter - - """Filter by the object’s `outInvitesModuleId` field.""" - outInvitesModuleId: UUIDFilter - - """Filter by the object’s `outNamespaceModuleId` field.""" - outNamespaceModuleId: UUIDFilter - - """Filter by the object’s `outNamespacesTableId` field.""" - outNamespacesTableId: UUIDFilter - - """Filter by the object’s `outNamespaceEventsTableId` field.""" - outNamespaceEventsTableId: UUIDFilter - - """Filter by the object’s `outFunctionModuleId` field.""" - outFunctionModuleId: UUIDFilter - - """Filter by the object’s `outDefinitionsTableId` field.""" - outDefinitionsTableId: UUIDFilter - - """Filter by the object’s `outInvocationsTableId` field.""" - 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 `outRequirementsTableId` field.""" - outRequirementsTableId: UUIDFilter - - """Filter by the object’s `outConfigRequirementsTableId` field.""" - outConfigRequirementsTableId: UUIDFilter - - """Filter by the object’s `outGraphModuleId` field.""" - outGraphModuleId: UUIDFilter - - """Filter by the object’s `outGraphsTableId` field.""" - outGraphsTableId: UUIDFilter - - """Filter by the object’s `outAgentModuleId` field.""" - outAgentModuleId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [EntityTypeProvisionFilter!] - - """Checks for any expressions in this list.""" - or: [EntityTypeProvisionFilter!] - - """Negates the expression.""" - not: EntityTypeProvisionFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter -} - -""" -A filter to be used against `RateLimitsModule` object types. All fields are combined with a logical ‘and.’ -""" -input RateLimitsModuleFilter { - """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 `rateLimitSettingsTableId` field.""" - rateLimitSettingsTableId: UUIDFilter - - """Filter by the object’s `ipRateLimitsTableId` field.""" - ipRateLimitsTableId: UUIDFilter - - """Filter by the object’s `rateLimitsTableId` field.""" - rateLimitsTableId: UUIDFilter - - """Filter by the object’s `rateLimitSettingsTable` field.""" - rateLimitSettingsTable: StringFilter - - """Filter by the object’s `ipRateLimitsTable` field.""" - ipRateLimitsTable: StringFilter - - """Filter by the object’s `rateLimitsTable` field.""" - rateLimitsTable: StringFilter - - """Checks for all expressions in this list.""" - and: [RateLimitsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [RateLimitsModuleFilter!] - - """Negates the expression.""" - not: RateLimitsModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """ - Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. - """ - ipRateLimitsTableByIpRateLimitsTableId: TableFilter - - """ - Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. - """ - rateLimitSettingsTableByRateLimitSettingsTableId: TableFilter - - """Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation.""" - rateLimitsTableByRateLimitsTableId: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against `DevicesModule` object types. All fields are combined with a logical ‘and.’ -""" -input DevicesModuleFilter { - """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 `userDevicesTableId` field.""" - userDevicesTableId: UUIDFilter - - """Filter by the object’s `deviceSettingsTableId` field.""" - deviceSettingsTableId: UUIDFilter - - """Filter by the object’s `userDevicesTable` field.""" - userDevicesTable: StringFilter - - """Filter by the object’s `deviceSettingsTable` field.""" - deviceSettingsTable: StringFilter - - """Checks for all expressions in this list.""" - and: [DevicesModuleFilter!] - - """Checks for any expressions in this list.""" - or: [DevicesModuleFilter!] - - """Negates the expression.""" - not: DevicesModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """ - Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. - """ - deviceSettingsTableByDeviceSettingsTableId: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """ - Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. - """ - userDevicesTableByUserDevicesTableId: TableFilter -} - -""" -A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManySessionSecretsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: SessionSecretsModuleFilter - - """Filters to entities where every related entity matches.""" - every: SessionSecretsModuleFilter - - """Filters to entities where no related entity matches.""" - none: SessionSecretsModuleFilter -} - -""" -A filter to be used against many `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyWebauthnCredentialsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: WebauthnCredentialsModuleFilter - - """Filters to entities where every related entity matches.""" - every: WebauthnCredentialsModuleFilter - - """Filters to entities where no related entity matches.""" - none: WebauthnCredentialsModuleFilter -} - -""" -A filter to be used against `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ -""" -input WebauthnCredentialsModuleFilter { - """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 - - """Checks for all expressions in this list.""" - and: [WebauthnCredentialsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [WebauthnCredentialsModuleFilter!] - - """Negates the expression.""" - not: WebauthnCredentialsModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `ownerTable` relation.""" - ownerTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `table` relation.""" - table: TableFilter -} - -""" -A filter to be used against many `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyWebauthnAuthModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: WebauthnAuthModuleFilter - - """Filters to entities where every related entity matches.""" - every: WebauthnAuthModuleFilter - - """Filters to entities where no related entity matches.""" - none: WebauthnAuthModuleFilter -} - -""" -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 - - """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!] - - """Checks for any expressions in this list.""" - or: [WebauthnAuthModuleFilter!] - - """Negates the expression.""" - not: WebauthnAuthModuleFilter - - """Filter by the object’s `authSettingsTable` relation.""" - authSettingsTable: TableFilter - - """Filter by the object’s `credentialsTable` relation.""" - credentialsTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `sessionCredentialsTable` relation.""" - sessionCredentialsTable: TableFilter - - """Filter by the object’s `sessionSecretsTable` relation.""" - sessionSecretsTable: TableFilter - - """Filter by the object’s `sessionsTable` relation.""" - sessionsTable: TableFilter - - """Filter by the object’s `usersTable` relation.""" - usersTable: TableFilter -} - -""" -A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyIdentityProvidersModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: IdentityProvidersModuleFilter - - """Filters to entities where every related entity matches.""" - every: IdentityProvidersModuleFilter - - """Filters to entities where no related entity matches.""" - none: IdentityProvidersModuleFilter -} - -""" -A filter to be used against many `NotificationsModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyNotificationsModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: NotificationsModuleFilter - - """Filters to entities where every related entity matches.""" - every: NotificationsModuleFilter - - """Filters to entities where no related entity matches.""" - none: NotificationsModuleFilter -} - -""" -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 `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """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 `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 - - """Checks for all expressions in this list.""" - and: [NotificationsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [NotificationsModuleFilter!] - - """Negates the expression.""" - not: NotificationsModuleFilter - - """Filter by the object’s `channelsTableByChannelsTableId` relation.""" - channelsTableByChannelsTableId: TableFilter - - """A related `channelsTableByChannelsTableId` exists.""" - channelsTableByChannelsTableIdExists: Boolean - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """ - Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. - """ - deliveryLogTableByDeliveryLogTableId: TableFilter - - """A related `deliveryLogTableByDeliveryLogTableId` exists.""" - deliveryLogTableByDeliveryLogTableIdExists: Boolean - - """ - Filter by the object’s `notificationsTableByNotificationsTableId` relation. - """ - notificationsTableByNotificationsTableId: TableFilter - - """ - Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. - """ - organizationSettingsTableByOrganizationSettingsTableId: TableFilter - - """ - A related `organizationSettingsTableByOrganizationSettingsTableId` exists. - """ - organizationSettingsTableByOrganizationSettingsTableIdExists: Boolean - - """Filter by the object’s `ownerTable` relation.""" - ownerTable: TableFilter - - """ - Filter by the object’s `preferencesTableByPreferencesTableId` relation. - """ - preferencesTableByPreferencesTableId: TableFilter - - """A related `preferencesTableByPreferencesTableId` exists.""" - preferencesTableByPreferencesTableIdExists: Boolean - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `readStateTableByReadStateTableId` relation.""" - readStateTableByReadStateTableId: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """ - Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. - """ - userSettingsTableByUserSettingsTableId: TableFilter - - """A related `userSettingsTableByUserSettingsTableId` exists.""" - userSettingsTableByUserSettingsTableIdExists: Boolean -} - -""" -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 - - """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 `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 `applyPlanFunction` field.""" - applyPlanFunction: StringFilter - - """Filter by the object’s `applyPlanAggregateFunction` field.""" - applyPlanAggregateFunction: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [PlansModuleFilter!] - - """Checks for any expressions in this list.""" - or: [PlansModuleFilter!] - - """Negates the expression.""" - not: PlansModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `planLimitsTable` relation.""" - planLimitsTable: TableFilter - - """Filter by the object’s `planOverridesTable` relation.""" - planOverridesTable: TableFilter - - """A related `planOverridesTable` exists.""" - planOverridesTableExists: Boolean - - """Filter by the object’s `planPricingTable` relation.""" - planPricingTable: TableFilter - - """A related `planPricingTable` exists.""" - planPricingTableExists: Boolean - - """Filter by the object’s `plansTable` relation.""" - plansTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ -""" -input BillingModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `metersTableId` field.""" - metersTableId: UUIDFilter - - """Filter by the object’s `metersTableName` field.""" - metersTableName: StringFilter - - """Filter by the object’s `planSubscriptionsTableId` field.""" - planSubscriptionsTableId: UUIDFilter - - """Filter by the object’s `planSubscriptionsTableName` field.""" - planSubscriptionsTableName: StringFilter - - """Filter by the object’s `ledgerTableId` field.""" - ledgerTableId: UUIDFilter - - """Filter by the object’s `ledgerTableName` field.""" - ledgerTableName: StringFilter - - """Filter by the object’s `balancesTableId` field.""" - balancesTableId: UUIDFilter - - """Filter by the object’s `balancesTableName` field.""" - balancesTableName: StringFilter - - """Filter by the object’s `meterCreditsTableId` field.""" - meterCreditsTableId: UUIDFilter - - """Filter by the object’s `meterCreditsTableName` field.""" - meterCreditsTableName: StringFilter - - """Filter by the object’s `meterSourcesTableId` field.""" - meterSourcesTableId: UUIDFilter - - """Filter by the object’s `meterSourcesTableName` field.""" - meterSourcesTableName: StringFilter - - """Filter by the object’s `recordUsageFunction` field.""" - recordUsageFunction: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [BillingModuleFilter!] - - """Checks for any expressions in this list.""" - or: [BillingModuleFilter!] - - """Negates the expression.""" - not: BillingModuleFilter - - """Filter by the object’s `balancesTable` relation.""" - balancesTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `ledgerTable` relation.""" - ledgerTable: TableFilter - - """Filter by the object’s `meterCreditsTable` relation.""" - meterCreditsTable: TableFilter - - """Filter by the object’s `meterSourcesTable` relation.""" - meterSourcesTable: TableFilter - - """Filter by the object’s `metersTable` relation.""" - metersTable: TableFilter - - """Filter by the object’s `planSubscriptionsTable` relation.""" - planSubscriptionsTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ -""" -input 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 - - """Checks for all expressions in this list.""" - and: [BillingProviderModuleFilter!] - - """Checks for any expressions in this list.""" - or: [BillingProviderModuleFilter!] - - """Negates the expression.""" - not: BillingProviderModuleFilter - - """Filter by the object’s `billingCustomersTable` relation.""" - billingCustomersTable: TableFilter - - """Filter by the object’s `billingPricesTable` relation.""" - billingPricesTable: TableFilter - - """Filter by the object’s `billingProductsTable` relation.""" - billingProductsTable: TableFilter - - """Filter by the object’s `billingSubscriptionsTable` relation.""" - billingSubscriptionsTable: TableFilter - - """Filter by the object’s `billingWebhookEventsTable` relation.""" - billingWebhookEventsTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `pricesTable` relation.""" - pricesTable: TableFilter - - """A related `pricesTable` exists.""" - pricesTableExists: Boolean - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `productsTable` relation.""" - productsTable: TableFilter - - """A related `productsTable` exists.""" - productsTableExists: Boolean - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `subscriptionsTable` relation.""" - subscriptionsTable: TableFilter - - """A related `subscriptionsTable` exists.""" - subscriptionsTableExists: Boolean -} - -""" -A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyRealtimeModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: RealtimeModuleFilter - - """Filters to entities where every related entity matches.""" - every: RealtimeModuleFilter - - """Filters to entities where no related entity matches.""" - none: RealtimeModuleFilter -} - -""" -A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ -""" -input RateLimitMetersModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `rateLimitStateTableId` field.""" - rateLimitStateTableId: UUIDFilter - - """Filter by the object’s `rateLimitStateTableName` field.""" - rateLimitStateTableName: StringFilter - - """Filter by the object’s `rateLimitOverridesTableId` field.""" - rateLimitOverridesTableId: UUIDFilter - - """Filter by the object’s `rateLimitOverridesTableName` field.""" - rateLimitOverridesTableName: StringFilter - - """Filter by the object’s `rateWindowLimitsTableId` field.""" - rateWindowLimitsTableId: UUIDFilter - - """Filter by the object’s `rateWindowLimitsTableName` field.""" - rateWindowLimitsTableName: StringFilter - - """Filter by the object’s `checkRateLimitFunction` field.""" - checkRateLimitFunction: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [RateLimitMetersModuleFilter!] - - """Checks for any expressions in this list.""" - or: [RateLimitMetersModuleFilter!] - - """Negates the expression.""" - not: RateLimitMetersModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """ - Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. - """ - rateLimitOverridesTableByRateLimitOverridesTableId: TableFilter - - """A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists.""" - rateLimitOverridesTableByRateLimitOverridesTableIdExists: Boolean - - """ - Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. - """ - rateLimitStateTableByRateLimitStateTableId: TableFilter - - """ - Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. - """ - rateWindowLimitsTableByRateWindowLimitsTableId: TableFilter - - """A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists.""" - rateWindowLimitsTableByRateWindowLimitsTableIdExists: Boolean - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyConfigSecretsOrgModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ConfigSecretsOrgModuleFilter - - """Filters to entities where every related entity matches.""" - every: ConfigSecretsOrgModuleFilter - - """Filters to entities where no related entity matches.""" - none: ConfigSecretsOrgModuleFilter -} - -""" -A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyInferenceLogModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: InferenceLogModuleFilter - - """Filters to entities where every related entity matches.""" - every: InferenceLogModuleFilter - - """Filters to entities where no related entity matches.""" - none: InferenceLogModuleFilter -} - -""" -A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input InferenceLogModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `inferenceLogTableId` field.""" - inferenceLogTableId: UUIDFilter - - """Filter by the object’s `inferenceLogTableName` field.""" - inferenceLogTableName: StringFilter - - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter - - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter - - """Filter by the object’s `interval` field.""" - interval: StringFilter - - """Filter by the object’s `retention` field.""" - retention: StringFilter - - """Filter by the object’s `premake` field.""" - premake: IntFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [InferenceLogModuleFilter!] - - """Checks for any expressions in this list.""" - or: [InferenceLogModuleFilter!] - - """Negates the expression.""" - not: InferenceLogModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `inferenceLogTable` relation.""" - inferenceLogTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `usageDailyTable` relation.""" - usageDailyTable: TableFilter -} - -""" -A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyComputeLogModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: ComputeLogModuleFilter - - """Filters to entities where every related entity matches.""" - every: ComputeLogModuleFilter - - """Filters to entities where no related entity matches.""" - none: ComputeLogModuleFilter -} - -""" -A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input ComputeLogModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `computeLogTableId` field.""" - computeLogTableId: UUIDFilter - - """Filter by the object’s `computeLogTableName` field.""" - computeLogTableName: StringFilter - - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter - - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter - - """Filter by the object’s `interval` field.""" - interval: StringFilter - - """Filter by the object’s `retention` field.""" - retention: StringFilter - - """Filter by the object’s `premake` field.""" - premake: IntFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [ComputeLogModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ComputeLogModuleFilter!] - - """Negates the expression.""" - not: ComputeLogModuleFilter - - """Filter by the object’s `computeLogTable` relation.""" - computeLogTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `usageDailyTable` relation.""" - usageDailyTable: TableFilter -} - -""" -A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyTransferLogModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: TransferLogModuleFilter - - """Filters to entities where every related entity matches.""" - every: TransferLogModuleFilter - - """Filters to entities where no related entity matches.""" - none: TransferLogModuleFilter -} - -""" -A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input TransferLogModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `transferLogTableId` field.""" - transferLogTableId: UUIDFilter - - """Filter by the object’s `transferLogTableName` field.""" - transferLogTableName: StringFilter - - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter - - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter - - """Filter by the object’s `interval` field.""" - interval: StringFilter - - """Filter by the object’s `retention` field.""" - retention: StringFilter - - """Filter by the object’s `premake` field.""" - premake: IntFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [TransferLogModuleFilter!] - - """Checks for any expressions in this list.""" - or: [TransferLogModuleFilter!] - - """Negates the expression.""" - not: TransferLogModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `transferLogTable` relation.""" - transferLogTable: TableFilter - - """Filter by the object’s `usageDailyTable` relation.""" - usageDailyTable: TableFilter -} - -""" -A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyStorageLogModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: StorageLogModuleFilter - - """Filters to entities where every related entity matches.""" - every: StorageLogModuleFilter - - """Filters to entities where no related entity matches.""" - none: StorageLogModuleFilter -} - -""" -A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ -""" -input StorageLogModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `storageLogTableId` field.""" - storageLogTableId: UUIDFilter - - """Filter by the object’s `storageLogTableName` field.""" - storageLogTableName: StringFilter - - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter - - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter - - """Filter by the object’s `interval` field.""" - interval: StringFilter - - """Filter by the object’s `retention` field.""" - retention: StringFilter - - """Filter by the object’s `premake` field.""" - premake: IntFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [StorageLogModuleFilter!] - - """Checks for any expressions in this list.""" - or: [StorageLogModuleFilter!] - - """Negates the expression.""" - not: StorageLogModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `storageLogTable` relation.""" - storageLogTable: TableFilter - - """Filter by the object’s `usageDailyTable` relation.""" - usageDailyTable: TableFilter -} - -""" -A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyDbUsageModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: DbUsageModuleFilter - - """Filters to entities where every related entity matches.""" - every: DbUsageModuleFilter - - """Filters to entities where no related entity matches.""" - none: DbUsageModuleFilter -} - -""" -A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ -""" -input DbUsageModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `tableStatsLogTableId` field.""" - tableStatsLogTableId: UUIDFilter - - """Filter by the object’s `tableStatsLogTableName` field.""" - tableStatsLogTableName: StringFilter - - """Filter by the object’s `tableStatsDailyTableId` field.""" - tableStatsDailyTableId: UUIDFilter - - """Filter by the object’s `tableStatsDailyTableName` field.""" - tableStatsDailyTableName: StringFilter - - """Filter by the object’s `queryStatsLogTableId` field.""" - queryStatsLogTableId: UUIDFilter - - """Filter by the object’s `queryStatsLogTableName` field.""" - queryStatsLogTableName: StringFilter - - """Filter by the object’s `queryStatsDailyTableId` field.""" - queryStatsDailyTableId: UUIDFilter - - """Filter by the object’s `queryStatsDailyTableName` field.""" - queryStatsDailyTableName: StringFilter - - """Filter by the object’s `interval` field.""" - interval: StringFilter - - """Filter by the object’s `retention` field.""" - retention: StringFilter - - """Filter by the object’s `premake` field.""" - premake: IntFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Checks for all expressions in this list.""" - and: [DbUsageModuleFilter!] - - """Checks for any expressions in this list.""" - or: [DbUsageModuleFilter!] - - """Negates the expression.""" - not: DbUsageModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `queryStatsDailyTable` relation.""" - queryStatsDailyTable: TableFilter - - """Filter by the object’s `queryStatsLogTable` relation.""" - queryStatsLogTable: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `tableStatsDailyTable` relation.""" - tableStatsDailyTable: TableFilter - - """Filter by the object’s `tableStatsLogTable` relation.""" - tableStatsLogTable: TableFilter -} - -""" -A filter to be used against many `AgentModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyAgentModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: AgentModuleFilter - - """Filters to entities where every related entity matches.""" - every: AgentModuleFilter - - """Filters to entities where no related entity matches.""" - none: AgentModuleFilter -} - -""" -A filter to be used against `AgentModule` object types. All fields are combined with a logical ‘and.’ -""" -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 `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """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 `knowledgeTableId` field.""" - knowledgeTableId: UUIDFilter - - """Filter by the object’s `threadTableName` field.""" - threadTableName: StringFilter - - """Filter by the object’s `messageTableName` field.""" - messageTableName: StringFilter - - """Filter by the object’s `taskTableName` field.""" - taskTableName: StringFilter - - """Filter by the object’s `promptsTableName` field.""" - promptsTableName: StringFilter - - """Filter by the object’s `knowledgeTableName` field.""" - knowledgeTableName: StringFilter - - """Filter by the object’s `hasKnowledge` field.""" - hasKnowledge: BooleanFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `key` field.""" - key: StringFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `knowledgeConfig` field.""" - knowledgeConfig: JSONFilter - - """Filter by the object’s `knowledgePolicies` field.""" - knowledgePolicies: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Checks for all expressions in this list.""" - and: [AgentModuleFilter!] - - """Checks for any expressions in this list.""" - or: [AgentModuleFilter!] - - """Negates the expression.""" - not: AgentModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `knowledgeTable` relation.""" - knowledgeTable: TableFilter - - """A related `knowledgeTable` exists.""" - knowledgeTableExists: Boolean - - """Filter by the object’s `messageTable` relation.""" - messageTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `promptsTable` relation.""" - promptsTable: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `taskTable` relation.""" - taskTable: TableFilter - - """Filter by the object’s `threadTable` relation.""" - threadTable: TableFilter -} - -""" -A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyMerkleStoreModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: MerkleStoreModuleFilter - - """Filters to entities where every related entity matches.""" - every: MerkleStoreModuleFilter - - """Filters to entities where no related entity matches.""" - none: MerkleStoreModuleFilter -} - -""" -A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyGraphModuleFilter { - """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 filter to be used against many `NamespaceModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyNamespaceModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: NamespaceModuleFilter - - """Filters to entities where every related entity matches.""" - every: NamespaceModuleFilter - - """Filters to entities where no related entity matches.""" - none: NamespaceModuleFilter -} - -""" -A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ -""" -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 `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 `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `key` field.""" - key: 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: [NamespaceModuleFilter!] - - """Checks for any expressions in this list.""" - or: [NamespaceModuleFilter!] - - """Negates the expression.""" - not: NamespaceModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `namespaceEventsTable` relation.""" - namespaceEventsTable: TableFilter - - """Filter by the object’s `namespacesTable` relation.""" - namespacesTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter -} - -""" -A filter to be used against many `FunctionModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyFunctionModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: FunctionModuleFilter - - """Filters to entities where every related entity matches.""" - every: FunctionModuleFilter - - """Filters to entities where no related entity matches.""" - none: FunctionModuleFilter -} - -""" -A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ -""" -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 `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 `invocationsTableId` field.""" - invocationsTableId: UUIDFilter - - """Filter by the object’s `executionLogsTableId` field.""" - executionLogsTableId: UUIDFilter - - """Filter by the object’s `secretDefinitionsTableId` field.""" - secretDefinitionsTableId: UUIDFilter - - """Filter by the object’s `requirementsTableId` field.""" - requirementsTableId: UUIDFilter - - """Filter by the object’s `configDefinitionsTableId` field.""" - configDefinitionsTableId: UUIDFilter - - """Filter by the object’s `configRequirementsTableId` field.""" - configRequirementsTableId: UUIDFilter - - """Filter by the object’s `definitionsTableName` field.""" - definitionsTableName: StringFilter - - """Filter by the object’s `invocationsTableName` field.""" - invocationsTableName: StringFilter - - """Filter by the object’s `executionLogsTableName` field.""" - executionLogsTableName: StringFilter - - """Filter by the object’s `secretDefinitionsTableName` field.""" - secretDefinitionsTableName: StringFilter - - """Filter by the object’s `requirementsTableName` field.""" - requirementsTableName: StringFilter - - """Filter by the object’s `configRequirementsTableName` field.""" - configRequirementsTableName: StringFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Filter by the object’s `membershipType` field.""" - membershipType: IntFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `key` field.""" - key: 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: [FunctionModuleFilter!] - - """Checks for any expressions in this list.""" - or: [FunctionModuleFilter!] - - """Negates the expression.""" - not: FunctionModuleFilter - - """Filter by the object’s `configDefinitionsTable` relation.""" - configDefinitionsTable: TableFilter - - """Filter by the object’s `configRequirementsTable` relation.""" - configRequirementsTable: TableFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `definitionsTable` relation.""" - definitionsTable: TableFilter - - """Filter by the object’s `entityTable` relation.""" - entityTable: TableFilter - - """A related `entityTable` exists.""" - entityTableExists: Boolean - - """Filter by the object’s `executionLogsTable` relation.""" - executionLogsTable: TableFilter - - """Filter by the object’s `invocationsTable` relation.""" - invocationsTable: TableFilter - - """Filter by the object’s `privateSchema` relation.""" - privateSchema: SchemaFilter - - """Filter by the object’s `requirementsTable` relation.""" - requirementsTable: TableFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """Filter by the object’s `secretDefinitionsTable` relation.""" - secretDefinitionsTable: TableFilter -} - -""" -A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyDatabaseProvisionModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: DatabaseProvisionModuleFilter - - """Filters to entities where every related entity matches.""" - every: DatabaseProvisionModuleFilter - - """Filters to entities where no related entity matches.""" - none: DatabaseProvisionModuleFilter -} - -""" -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 `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: StringListFilter - - """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 - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """A related `database` exists.""" - databaseExists: Boolean -} - -"""Methods to use when ordering `CheckConstraint`.""" -enum CheckConstraintOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - TYPE_ASC - TYPE_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - EXPR_ASC - EXPR_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `Field` values.""" -type FieldConnection { - """A list of `Field` objects.""" - nodes: [Field]! - - """ - A list of edges which contains the `Field` and cursor to aid in pagination. - """ - edges: [FieldEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Field` you could get from the connection.""" - totalCount: Int! -} - -type Field { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String! - label: String - description: String - smartTags: JSON - isRequired: Boolean! - apiRequired: Boolean! - defaultValue: JSON - type: JSON! - fieldOrder: Int! - regexp: String - chk: JSON - chkExpr: JSON - min: Float - max: Float - tags: [String]! - category: ObjectCategory! - module: String - scope: Int - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `Field`.""" - database: Database - - """Reads a single `Table` that is related to this `Field`.""" - table: Table - - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelations( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SpatialRelationFilter - - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] - ): SpatialRelationConnection! - - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelationsByRefFieldId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SpatialRelationFilter - - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] - ): SpatialRelationConnection! -} - -"""A connection to a list of `SpatialRelation` values.""" -type SpatialRelationConnection { - """A list of `SpatialRelation` objects.""" - nodes: [SpatialRelation]! - - """ - A list of edges which contains the `SpatialRelation` and cursor to aid in pagination. - """ - edges: [SpatialRelationEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `SpatialRelation` you could get from the connection. - """ - totalCount: Int! -} - -type SpatialRelation { - id: UUID! - databaseId: UUID! - tableId: UUID! - fieldId: UUID! - refTableId: UUID! - refFieldId: UUID! - name: String! - operator: String! - paramName: String - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `SpatialRelation`.""" - database: Database - - """Reads a single `Field` that is related to this `SpatialRelation`.""" - field: Field - - """Reads a single `Field` that is related to this `SpatialRelation`.""" - refField: Field - - """Reads a single `Table` that is related to this `SpatialRelation`.""" - refTable: Table - - """Reads a single `Table` that is related to this `SpatialRelation`.""" - table: Table -} - -"""A `SpatialRelation` edge in the connection.""" -type SpatialRelationEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SpatialRelation` at the end of the edge.""" - node: SpatialRelation -} - -"""Methods to use when ordering `SpatialRelation`.""" -enum SpatialRelationOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - FIELD_ID_ASC - FIELD_ID_DESC - REF_TABLE_ID_ASC - REF_TABLE_ID_DESC - REF_FIELD_ID_ASC - REF_FIELD_ID_DESC - NAME_ASC - NAME_DESC - OPERATOR_ASC - OPERATOR_DESC - PARAM_NAME_ASC - PARAM_NAME_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A `Field` edge in the connection.""" -type FieldEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Field` at the end of the edge.""" - node: Field -} - -"""Methods to use when ordering `Field`.""" -enum FieldOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - LABEL_ASC - LABEL_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - IS_REQUIRED_ASC - IS_REQUIRED_DESC - API_REQUIRED_ASC - API_REQUIRED_DESC - DEFAULT_VALUE_ASC - DEFAULT_VALUE_DESC - TYPE_ASC - TYPE_DESC - FIELD_ORDER_ASC - FIELD_ORDER_DESC - REGEXP_ASC - REGEXP_DESC - CHK_ASC - CHK_DESC - CHK_EXPR_ASC - CHK_EXPR_DESC - MIN_ASC - MIN_DESC - MAX_ASC - MAX_DESC - TAGS_ASC - TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `ForeignKeyConstraint` values.""" -type ForeignKeyConstraintConnection { - """A list of `ForeignKeyConstraint` objects.""" - nodes: [ForeignKeyConstraint]! - - """ - A list of edges which contains the `ForeignKeyConstraint` and cursor to aid in pagination. - """ - edges: [ForeignKeyConstraintEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `ForeignKeyConstraint` you could get from the connection. - """ - totalCount: Int! -} - -type ForeignKeyConstraint { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID]! - refTableId: UUID! - refFieldIds: [UUID]! - deleteAction: String - updateAction: String - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """ - Reads a single `Database` that is related to this `ForeignKeyConstraint`. - """ - database: Database - - """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" - refTable: Table - - """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" - table: Table -} - -"""A `ForeignKeyConstraint` edge in the connection.""" -type ForeignKeyConstraintEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ForeignKeyConstraint` at the end of the edge.""" - node: ForeignKeyConstraint -} - -"""Methods to use when ordering `ForeignKeyConstraint`.""" -enum ForeignKeyConstraintOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - TYPE_ASC - TYPE_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - REF_TABLE_ID_ASC - REF_TABLE_ID_DESC - REF_FIELD_IDS_ASC - REF_FIELD_IDS_DESC - DELETE_ACTION_ASC - DELETE_ACTION_DESC - UPDATE_ACTION_ASC - UPDATE_ACTION_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `FullTextSearch` values.""" -type FullTextSearchConnection { - """A list of `FullTextSearch` objects.""" - nodes: [FullTextSearch]! - - """ - A list of edges which contains the `FullTextSearch` and cursor to aid in pagination. - """ - edges: [FullTextSearchEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `FullTextSearch` you could get from the connection.""" - totalCount: Int! -} - -type FullTextSearch { - id: UUID! - databaseId: UUID! - tableId: UUID! - fieldId: UUID! - fieldIds: [UUID]! - weights: [String]! - langs: [String]! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `FullTextSearch`.""" - database: Database - - """Reads a single `Table` that is related to this `FullTextSearch`.""" - table: Table -} - -"""A `FullTextSearch` edge in the connection.""" -type FullTextSearchEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `FullTextSearch` at the end of the edge.""" - node: FullTextSearch -} - -"""Methods to use when ordering `FullTextSearch`.""" -enum FullTextSearchOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - FIELD_ID_ASC - FIELD_ID_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - WEIGHTS_ASC - WEIGHTS_DESC - LANGS_ASC - LANGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `Index` values.""" -type IndexConnection { - """A list of `Index` objects.""" - nodes: [Index]! - - """ - A list of edges which contains the `Index` and cursor to aid in pagination. - """ - edges: [IndexEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Index` you could get from the connection.""" - totalCount: Int! -} - -type Index { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String! - fieldIds: [UUID] - includeFieldIds: [UUID] - accessMethod: String! - indexParams: JSON - whereClause: JSON - isUnique: Boolean! - options: JSON - opClasses: [String] - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `Index`.""" - database: Database - - """Reads a single `Table` that is related to this `Index`.""" - table: Table -} - -"""A `Index` edge in the connection.""" -type IndexEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Index` at the end of the edge.""" - node: Index -} - -"""Methods to use when ordering `Index`.""" -enum IndexOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - INCLUDE_FIELD_IDS_ASC - INCLUDE_FIELD_IDS_DESC - ACCESS_METHOD_ASC - ACCESS_METHOD_DESC - INDEX_PARAMS_ASC - INDEX_PARAMS_DESC - WHERE_CLAUSE_ASC - WHERE_CLAUSE_DESC - IS_UNIQUE_ASC - IS_UNIQUE_DESC - OPTIONS_ASC - OPTIONS_DESC - OP_CLASSES_ASC - OP_CLASSES_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `Policy` values.""" -type PolicyConnection { - """A list of `Policy` objects.""" - nodes: [Policy]! - - """ - A list of edges which contains the `Policy` and cursor to aid in pagination. - """ - edges: [PolicyEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Policy` you could get from the connection.""" - totalCount: Int! -} - -type Policy { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String - granteeName: String - privilege: String - permissive: Boolean - disabled: Boolean - policyType: String - data: JSON - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `Policy`.""" - database: Database - - """Reads a single `Table` that is related to this `Policy`.""" - table: Table -} - -"""A `Policy` edge in the connection.""" -type PolicyEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Policy` at the end of the edge.""" - node: Policy -} - -"""Methods to use when ordering `Policy`.""" -enum PolicyOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - GRANTEE_NAME_ASC - GRANTEE_NAME_DESC - PRIVILEGE_ASC - PRIVILEGE_DESC - PERMISSIVE_ASC - PERMISSIVE_DESC - DISABLED_ASC - DISABLED_DESC - POLICY_TYPE_ASC - POLICY_TYPE_DESC - DATA_ASC - DATA_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `PrimaryKeyConstraint` values.""" -type PrimaryKeyConstraintConnection { - """A list of `PrimaryKeyConstraint` objects.""" - nodes: [PrimaryKeyConstraint]! - - """ - A list of edges which contains the `PrimaryKeyConstraint` and cursor to aid in pagination. - """ - edges: [PrimaryKeyConstraintEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `PrimaryKeyConstraint` you could get from the connection. - """ - totalCount: Int! -} - -type PrimaryKeyConstraint { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String - type: String - fieldIds: [UUID]! - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """ - Reads a single `Database` that is related to this `PrimaryKeyConstraint`. - """ - database: Database - - """Reads a single `Table` that is related to this `PrimaryKeyConstraint`.""" - table: Table -} - -"""A `PrimaryKeyConstraint` edge in the connection.""" -type PrimaryKeyConstraintEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PrimaryKeyConstraint` at the end of the edge.""" - node: PrimaryKeyConstraint -} - -"""Methods to use when ordering `PrimaryKeyConstraint`.""" -enum PrimaryKeyConstraintOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - TYPE_ASC - TYPE_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `TableGrant` values.""" -type TableGrantConnection { - """A list of `TableGrant` objects.""" - nodes: [TableGrant]! - - """ - A list of edges which contains the `TableGrant` and cursor to aid in pagination. - """ - edges: [TableGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `TableGrant` you could get from the connection.""" - totalCount: Int! -} - -type TableGrant { - id: UUID! - databaseId: UUID! - tableId: UUID! - privilege: String! - granteeName: String! - fieldIds: [UUID] - isGrant: Boolean! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `TableGrant`.""" - database: Database - - """Reads a single `Table` that is related to this `TableGrant`.""" - table: Table -} - -"""A `TableGrant` edge in the connection.""" -type TableGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `TableGrant` at the end of the edge.""" - node: TableGrant -} - -"""Methods to use when ordering `TableGrant`.""" -enum TableGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - PRIVILEGE_ASC - PRIVILEGE_DESC - GRANTEE_NAME_ASC - GRANTEE_NAME_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `Trigger` values.""" -type TriggerConnection { - """A list of `Trigger` objects.""" - nodes: [Trigger]! - - """ - A list of edges which contains the `Trigger` and cursor to aid in pagination. - """ - edges: [TriggerEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Trigger` you could get from the connection.""" - totalCount: Int! -} - -type Trigger { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String! - event: String - functionName: String - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `Trigger`.""" - database: Database - - """Reads a single `Table` that is related to this `Trigger`.""" - table: Table -} - -"""A `Trigger` edge in the connection.""" -type TriggerEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Trigger` at the end of the edge.""" - node: Trigger -} - -"""Methods to use when ordering `Trigger`.""" -enum TriggerOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - EVENT_ASC - EVENT_DESC - FUNCTION_NAME_ASC - FUNCTION_NAME_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `UniqueConstraint` values.""" -type UniqueConstraintConnection { - """A list of `UniqueConstraint` objects.""" - nodes: [UniqueConstraint]! - - """ - A list of edges which contains the `UniqueConstraint` and cursor to aid in pagination. - """ - edges: [UniqueConstraintEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `UniqueConstraint` you could get from the connection. - """ - totalCount: Int! -} - -type UniqueConstraint { - id: UUID! - databaseId: UUID! - tableId: UUID! - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID]! - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `UniqueConstraint`.""" - database: Database - - """Reads a single `Table` that is related to this `UniqueConstraint`.""" - table: Table -} - -"""A `UniqueConstraint` edge in the connection.""" -type UniqueConstraintEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `UniqueConstraint` at the end of the edge.""" - node: UniqueConstraint -} - -"""Methods to use when ordering `UniqueConstraint`.""" -enum UniqueConstraintOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - TYPE_ASC - TYPE_DESC - FIELD_IDS_ASC - FIELD_IDS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `View` values.""" -type ViewConnection { - """A list of `View` objects.""" - nodes: [View]! - - """ - A list of edges which contains the `View` and cursor to aid in pagination. - """ - edges: [ViewEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `View` you could get from the connection.""" - totalCount: Int! -} - -type View { - id: UUID! - databaseId: UUID! - schemaId: UUID! - name: String! - tableId: UUID - viewType: String! - data: JSON - filterType: String - filterData: JSON - securityInvoker: Boolean - isReadOnly: Boolean - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - - """Reads a single `Database` that is related to this `View`.""" - database: Database - - """Reads a single `Schema` that is related to this `View`.""" - schema: Schema - - """Reads a single `Table` that is related to this `View`.""" - table: Table - - """Reads and enables pagination through a set of `ViewTable`.""" - viewTables( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewTableFilter - - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewTableConnection! - - """Reads and enables pagination through a set of `ViewGrant`.""" - viewGrants( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewGrantFilter - - """The method to use when ordering `ViewGrant`.""" - orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewGrantConnection! - - """Reads and enables pagination through a set of `ViewRule`.""" - viewRules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ViewRuleFilter - - """The method to use when ordering `ViewRule`.""" - orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewRuleConnection! -} - -"""A connection to a list of `ViewTable` values.""" -type ViewTableConnection { - """A list of `ViewTable` objects.""" - nodes: [ViewTable]! - - """ - A list of edges which contains the `ViewTable` and cursor to aid in pagination. - """ - edges: [ViewTableEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `ViewTable` you could get from the connection.""" - totalCount: Int! -} - -""" -Junction table linking views to their joined tables for referential integrity -""" -type ViewTable { - id: UUID! - viewId: UUID! - tableId: UUID! - joinOrder: Int! - - """Reads a single `Table` that is related to this `ViewTable`.""" - table: Table - - """Reads a single `View` that is related to this `ViewTable`.""" - view: View -} - -"""A `ViewTable` edge in the connection.""" -type ViewTableEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ViewTable` at the end of the edge.""" - node: ViewTable -} - -"""Methods to use when ordering `ViewTable`.""" -enum ViewTableOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - VIEW_ID_ASC - VIEW_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - JOIN_ORDER_ASC - JOIN_ORDER_DESC -} - -"""A connection to a list of `ViewGrant` values.""" -type ViewGrantConnection { - """A list of `ViewGrant` objects.""" - nodes: [ViewGrant]! - - """ - A list of edges which contains the `ViewGrant` and cursor to aid in pagination. - """ - edges: [ViewGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `ViewGrant` you could get from the connection.""" - totalCount: Int! -} - -type ViewGrant { - id: UUID! - databaseId: UUID! - viewId: UUID! - granteeName: String! - privilege: String! - withGrantOption: Boolean - isGrant: Boolean! - - """Reads a single `Database` that is related to this `ViewGrant`.""" - database: Database - - """Reads a single `View` that is related to this `ViewGrant`.""" - view: View -} - -"""A `ViewGrant` edge in the connection.""" -type ViewGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ViewGrant` at the end of the edge.""" - node: ViewGrant -} - -"""Methods to use when ordering `ViewGrant`.""" -enum ViewGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - VIEW_ID_ASC - VIEW_ID_DESC - GRANTEE_NAME_ASC - GRANTEE_NAME_DESC - PRIVILEGE_ASC - PRIVILEGE_DESC - WITH_GRANT_OPTION_ASC - WITH_GRANT_OPTION_DESC - IS_GRANT_ASC - IS_GRANT_DESC -} - -"""A connection to a list of `ViewRule` values.""" -type ViewRuleConnection { - """A list of `ViewRule` objects.""" - nodes: [ViewRule]! - - """ - A list of edges which contains the `ViewRule` and cursor to aid in pagination. - """ - edges: [ViewRuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `ViewRule` you could get from the connection.""" - totalCount: Int! -} - -"""DO INSTEAD rules for views (e.g., read-only enforcement)""" -type ViewRule { - id: UUID! - databaseId: UUID! - viewId: UUID! - name: String! - - """INSERT, UPDATE, or DELETE""" - event: String! - - """NOTHING (for read-only) or custom action""" - action: String! - - """Reads a single `Database` that is related to this `ViewRule`.""" - database: Database - - """Reads a single `View` that is related to this `ViewRule`.""" - view: View -} - -"""A `ViewRule` edge in the connection.""" -type ViewRuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ViewRule` at the end of the edge.""" - node: ViewRule -} - -"""Methods to use when ordering `ViewRule`.""" -enum ViewRuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - VIEW_ID_ASC - VIEW_ID_DESC - NAME_ASC - NAME_DESC - EVENT_ASC - EVENT_DESC - ACTION_ASC - ACTION_DESC -} - -"""A `View` edge in the connection.""" -type ViewEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `View` at the end of the edge.""" - node: View -} - -"""Methods to use when ordering `View`.""" -enum ViewOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - NAME_ASC - NAME_DESC - TABLE_ID_ASC - TABLE_ID_DESC - VIEW_TYPE_ASC - VIEW_TYPE_DESC - DATA_ASC - DATA_DESC - FILTER_TYPE_ASC - FILTER_TYPE_DESC - FILTER_DATA_ASC - FILTER_DATA_DESC - SECURITY_INVOKER_ASC - SECURITY_INVOKER_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC -} - -"""A connection to a list of `EmbeddingChunk` values.""" -type EmbeddingChunkConnection { - """A list of `EmbeddingChunk` objects.""" - nodes: [EmbeddingChunk]! - - """ - A list of edges which contains the `EmbeddingChunk` and cursor to aid in pagination. - """ - edges: [EmbeddingChunkEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `EmbeddingChunk` you could get from the connection.""" - totalCount: Int! -} - -type EmbeddingChunk { - id: UUID! - databaseId: UUID! - tableId: UUID! - embeddingFieldId: UUID - chunksTableId: UUID - chunksTableName: String - contentFieldName: String! - dimensions: Int! - metric: String! - chunkSize: Int! - chunkOverlap: Int! - chunkStrategy: String! - metadataFields: JSON - searchIndexes: JSON - enqueueChunkingJob: Boolean! - chunkingTaskName: String! - embeddingModel: String - embeddingProvider: String - parentFkFieldId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Table` that is related to this `EmbeddingChunk`.""" - chunksTable: Table - - """Reads a single `Database` that is related to this `EmbeddingChunk`.""" - database: Database - - """Reads a single `Field` that is related to this `EmbeddingChunk`.""" - embeddingField: Field - - """Reads a single `Field` that is related to this `EmbeddingChunk`.""" - parentFkField: Field - - """Reads a single `Table` that is related to this `EmbeddingChunk`.""" - table: Table -} - -"""A `EmbeddingChunk` edge in the connection.""" -type EmbeddingChunkEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `EmbeddingChunk` at the end of the edge.""" - node: EmbeddingChunk -} - -"""Methods to use when ordering `EmbeddingChunk`.""" -enum EmbeddingChunkOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - EMBEDDING_FIELD_ID_ASC - EMBEDDING_FIELD_ID_DESC - CHUNKS_TABLE_ID_ASC - CHUNKS_TABLE_ID_DESC - CHUNKS_TABLE_NAME_ASC - CHUNKS_TABLE_NAME_DESC - CONTENT_FIELD_NAME_ASC - CONTENT_FIELD_NAME_DESC - DIMENSIONS_ASC - DIMENSIONS_DESC - METRIC_ASC - METRIC_DESC - CHUNK_SIZE_ASC - CHUNK_SIZE_DESC - CHUNK_OVERLAP_ASC - CHUNK_OVERLAP_DESC - CHUNK_STRATEGY_ASC - CHUNK_STRATEGY_DESC - METADATA_FIELDS_ASC - METADATA_FIELDS_DESC - SEARCH_INDEXES_ASC - SEARCH_INDEXES_DESC - ENQUEUE_CHUNKING_JOB_ASC - ENQUEUE_CHUNKING_JOB_DESC - CHUNKING_TASK_NAME_ASC - CHUNKING_TASK_NAME_DESC - EMBEDDING_MODEL_ASC - EMBEDDING_MODEL_DESC - EMBEDDING_PROVIDER_ASC - EMBEDDING_PROVIDER_DESC - PARENT_FK_FIELD_ID_ASC - PARENT_FK_FIELD_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -type Partition { - id: UUID! - databaseId: UUID! - tableId: UUID! - strategy: String! - partitionKeyId: UUID! - interval: String - retention: String - retentionKeepTable: Boolean! - premake: Int! - namingPattern: String! - isParented: Boolean! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `Partition`.""" - database: Database - - """Reads a single `Field` that is related to this `Partition`.""" - partitionKey: Field - - """Reads a single `Table` that is related to this `Partition`.""" - table: Table -} - -"""A connection to a list of `SecureTableProvision` values.""" -type SecureTableProvisionConnection { - """A list of `SecureTableProvision` objects.""" - nodes: [SecureTableProvision]! - - """ - A list of edges which contains the `SecureTableProvision` and cursor to aid in pagination. - """ - edges: [SecureTableProvisionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `SecureTableProvision` you could get from the connection. - """ - totalCount: Int! -} - -""" -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. -""" -type SecureTableProvision { - """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! - - """ - 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. - """ - 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: JSON! - - """ - 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: [JSON]! - - """ - 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: JSON! - - """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. - """ - policies: JSON! - - """ - 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] - - """ - Reads a single `Database` that is related to this `SecureTableProvision`. - """ - database: Database - - """ - Reads a single `Schema` that is related to this `SecureTableProvision`. - """ - schema: Schema - - """Reads a single `Table` that is related to this `SecureTableProvision`.""" - table: Table -} - -"""A `SecureTableProvision` edge in the connection.""" -type SecureTableProvisionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SecureTableProvision` at the end of the edge.""" - node: SecureTableProvision -} - -"""Methods to use when ordering `SecureTableProvision`.""" -enum SecureTableProvisionOrderBy { - 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 - NODES_ASC - NODES_DESC - USE_RLS_ASC - USE_RLS_DESC - FIELDS_ASC - FIELDS_DESC - GRANTS_ASC - GRANTS_DESC - POLICIES_ASC - POLICIES_DESC - OUT_FIELDS_ASC - OUT_FIELDS_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 - - """Reads a single `Database` that is related to this `RelationProvision`.""" - database: Database - - """Reads a single `Table` that is related to this `RelationProvision`.""" - sourceTable: Table - - """Reads a single `Table` that is related to this `RelationProvision`.""" - targetTable: Table -} - -"""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 -} - -"""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 `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! - - """ - Reads a single `Database` that is related to this `SessionSecretsModule`. - """ - database: Database - - """ - Reads a single `Schema` that is related to this `SessionSecretsModule`. - """ - schema: Schema - - """Reads a single `Table` that is related to this `SessionSecretsModule`.""" - sessionsTable: Table - - """Reads a single `Table` that is related to this `SessionSecretsModule`.""" - table: Table -} - -"""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 -} - -"""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 `IdentityProvidersModule` values.""" -type IdentityProvidersModuleConnection { - """A list of `IdentityProvidersModule` objects.""" - nodes: [IdentityProvidersModule]! - - """ - A list of edges which contains the `IdentityProvidersModule` and cursor to aid in pagination. - """ - edges: [IdentityProvidersModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `IdentityProvidersModule` you could get from the connection. - """ - totalCount: Int! -} - -""" -Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. -""" -type IdentityProvidersModule { - 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! - tableId: UUID! - tableName: String! - - """ - Reads a single `Database` that is related to this `IdentityProvidersModule`. - """ - database: Database - - """ - Reads a single `Schema` that is related to this `IdentityProvidersModule`. - """ - privateSchema: Schema - - """ - Reads a single `Schema` that is related to this `IdentityProvidersModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `IdentityProvidersModule`. - """ - table: Table -} - -"""A `IdentityProvidersModule` edge in the connection.""" -type IdentityProvidersModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `IdentityProvidersModule` at the end of the edge.""" - node: IdentityProvidersModule -} - -"""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 - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC -} - -"""A connection to a list of `RealtimeModule` values.""" -type RealtimeModuleConnection { - """A list of `RealtimeModule` objects.""" - nodes: [RealtimeModule]! - - """ - A list of edges which contains the `RealtimeModule` and cursor to aid in pagination. - """ - edges: [RealtimeModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RealtimeModule` you could get from the connection.""" - totalCount: Int! -} - -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 - - """Reads a single `Table` that is related to this `RealtimeModule`.""" - changeLogTable: Table - - """Reads a single `Database` that is related to this `RealtimeModule`.""" - database: Database - - """Reads a single `Table` that is related to this `RealtimeModule`.""" - listenerNodeTable: Table - - """Reads a single `Schema` that is related to this `RealtimeModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `RealtimeModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `RealtimeModule`.""" - sourceRegistryTable: Table - - """Reads a single `Schema` that is related to this `RealtimeModule`.""" - subscriptionsSchema: Schema -} - -"""A `RealtimeModule` edge in the connection.""" -type RealtimeModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RealtimeModule` at the end of the edge.""" - node: RealtimeModule -} - -"""Methods to use when ordering `RealtimeModule`.""" -enum 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 -} - -"""A connection to a list of `ConfigSecretsOrgModule` values.""" -type ConfigSecretsOrgModuleConnection { - """A list of `ConfigSecretsOrgModule` objects.""" - nodes: [ConfigSecretsOrgModule]! - - """ - A list of edges which contains the `ConfigSecretsOrgModule` and cursor to aid in pagination. - """ - edges: [ConfigSecretsOrgModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `ConfigSecretsOrgModule` you could get from the connection. - """ - totalCount: Int! -} - -""" -Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. -""" -type ConfigSecretsOrgModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - tableId: UUID! - tableName: String! - - """ - Reads a single `Database` that is related to this `ConfigSecretsOrgModule`. - """ - database: Database - - """ - Reads a single `Schema` that is related to this `ConfigSecretsOrgModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `ConfigSecretsOrgModule`. - """ - table: Table -} - -"""A `ConfigSecretsOrgModule` edge in the connection.""" -type ConfigSecretsOrgModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ConfigSecretsOrgModule` at the end of the edge.""" - node: ConfigSecretsOrgModule -} - -"""Methods to use when ordering `ConfigSecretsOrgModule`.""" -enum ConfigSecretsOrgModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC -} - -"""A `Table` edge in the connection.""" -type TableEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Table` at the end of the edge.""" - node: Table -} - -"""Methods to use when ordering `Table`.""" -enum TableOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - NAME_ASC - NAME_DESC - LABEL_ASC - LABEL_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - USE_RLS_ASC - USE_RLS_DESC - TIMESTAMPS_ASC - TIMESTAMPS_DESC - PEOPLESTAMPS_ASC - PEOPLESTAMPS_DESC - PLURAL_NAME_ASC - PLURAL_NAME_DESC - SINGULAR_NAME_ASC - SINGULAR_NAME_DESC - TAGS_ASC - TAGS_DESC - PARTITIONED_ASC - PARTITIONED_DESC - PARTITION_STRATEGY_ASC - PARTITION_STRATEGY_DESC - PARTITION_KEY_NAMES_ASC - PARTITION_KEY_NAMES_DESC - PARTITION_KEY_TYPES_ASC - PARTITION_KEY_TYPES_DESC - INHERITS_ID_ASC - INHERITS_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `SchemaGrant` values.""" -type SchemaGrantConnection { - """A list of `SchemaGrant` objects.""" - nodes: [SchemaGrant]! - - """ - A list of edges which contains the `SchemaGrant` and cursor to aid in pagination. - """ - edges: [SchemaGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SchemaGrant` you could get from the connection.""" - totalCount: Int! -} - -type SchemaGrant { - id: UUID! - databaseId: UUID! - schemaId: UUID! - granteeName: String! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `SchemaGrant`.""" - database: Database - - """Reads a single `Schema` that is related to this `SchemaGrant`.""" - schema: Schema -} - -"""A `SchemaGrant` edge in the connection.""" -type SchemaGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SchemaGrant` at the end of the edge.""" - node: SchemaGrant -} - -"""Methods to use when ordering `SchemaGrant`.""" -enum SchemaGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - GRANTEE_NAME_ASC - GRANTEE_NAME_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `DefaultPrivilege` values.""" -type DefaultPrivilegeConnection { - """A list of `DefaultPrivilege` objects.""" - nodes: [DefaultPrivilege]! - - """ - A list of edges which contains the `DefaultPrivilege` and cursor to aid in pagination. - """ - edges: [DefaultPrivilegeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `DefaultPrivilege` you could get from the connection. - """ - totalCount: Int! -} - -type DefaultPrivilege { - id: UUID! - databaseId: UUID! - schemaId: UUID! - objectType: String! - privilege: String! - granteeName: String! - isGrant: Boolean! - - """Reads a single `Database` that is related to this `DefaultPrivilege`.""" - database: Database - - """Reads a single `Schema` that is related to this `DefaultPrivilege`.""" - schema: Schema -} - -"""A `DefaultPrivilege` edge in the connection.""" -type DefaultPrivilegeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DefaultPrivilege` at the end of the edge.""" - node: DefaultPrivilege -} - -"""Methods to use when ordering `DefaultPrivilege`.""" -enum DefaultPrivilegeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - OBJECT_TYPE_ASC - OBJECT_TYPE_DESC - PRIVILEGE_ASC - PRIVILEGE_DESC - GRANTEE_NAME_ASC - GRANTEE_NAME_DESC - IS_GRANT_ASC - IS_GRANT_DESC -} - -"""A connection to a list of `Enum` values.""" -type EnumConnection { - """A list of `Enum` objects.""" - nodes: [Enum]! - - """ - A list of edges which contains the `Enum` and cursor to aid in pagination. - """ - edges: [EnumEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Enum` you could get from the connection.""" - totalCount: Int! -} - -type Enum { - id: UUID! - databaseId: UUID! - schemaId: UUID! - name: String! - label: String - description: String - values: [String]! - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - - """Reads a single `Database` that is related to this `Enum`.""" - database: Database - - """Reads a single `Schema` that is related to this `Enum`.""" - schema: Schema -} - -"""A `Enum` edge in the connection.""" -type EnumEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Enum` at the end of the edge.""" - node: Enum -} - -"""Methods to use when ordering `Enum`.""" -enum EnumOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - NAME_ASC - NAME_DESC - LABEL_ASC - LABEL_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - VALUES_ASC - VALUES_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC -} - -"""A connection to a list of `Function` values.""" -type FunctionConnection { - """A list of `Function` objects.""" - nodes: [Function]! - - """ - A list of edges which contains the `Function` and cursor to aid in pagination. - """ - edges: [FunctionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Function` you could get from the connection.""" - totalCount: Int! -} - -type Function { - id: UUID! - databaseId: UUID! - schemaId: UUID! - name: String! - - """Reads a single `Database` that is related to this `Function`.""" - database: Database - - """Reads a single `Schema` that is related to this `Function`.""" - schema: Schema -} - -"""A `Function` edge in the connection.""" -type FunctionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Function` at the end of the edge.""" - node: Function -} - -"""Methods to use when ordering `Function`.""" -enum FunctionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - NAME_ASC - NAME_DESC -} - -"""A connection to a list of `ApiSchema` values.""" -type ApiSchemaConnection { - """A list of `ApiSchema` objects.""" - nodes: [ApiSchema]! - - """ - A list of edges which contains the `ApiSchema` and cursor to aid in pagination. - """ - edges: [ApiSchemaEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `ApiSchema` you could get from the connection.""" - totalCount: Int! -} - -""" -Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API -""" -type ApiSchema { - """Unique identifier for this API-schema mapping""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """Metaschema schema being exposed through the API""" - schemaId: UUID! - - """API that exposes this schema""" - apiId: UUID! - - """Reads a single `Api` that is related to this `ApiSchema`.""" - api: Api - - """Reads a single `Database` that is related to this `ApiSchema`.""" - database: Database - - """Reads a single `Schema` that is related to this `ApiSchema`.""" - schema: Schema -} - -""" -API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings -""" -type Api { - """Unique identifier for this API""" - id: UUID! - - """Reference to the metaschema database this API serves""" - databaseId: UUID! - - """Unique name for this API within its database""" - name: String! - - """PostgreSQL database name to connect to""" - dbname: String! - - """PostgreSQL role used for authenticated requests""" - roleName: String! - - """PostgreSQL role used for anonymous/unauthenticated requests""" - anonRole: String! - - """Whether this API is publicly accessible without authentication""" - isPublic: Boolean! - - """Reads a single `Database` that is related to this `Api`.""" - database: Database - - """Reads and enables pagination through a set of `ApiModule`.""" - apiModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiModuleFilter - - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiModuleConnection! - - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemas( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: ApiSchemaFilter - - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSchemaConnection! - - """Reads and enables pagination through a set of `Domain`.""" - domains( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DomainFilter - - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] - ): DomainConnection! - - """Reads a single `ApiSetting` that is related to this `Api`.""" - apiSetting: ApiSetting - - """Reads and enables pagination through a set of `CorsSetting`.""" - corsSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: CorsSettingFilter - - """The method to use when ordering `CorsSetting`.""" - orderBy: [CorsSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): CorsSettingConnection! -} - -"""A connection to a list of `ApiModule` values.""" -type ApiModuleConnection { - """A list of `ApiModule` objects.""" - nodes: [ApiModule]! - - """ - A list of edges which contains the `ApiModule` and cursor to aid in pagination. - """ - edges: [ApiModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `ApiModule` you could get from the connection.""" - totalCount: Int! -} - -""" -Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server -""" -type ApiModule { - """Unique identifier for this API module record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """API this module configuration belongs to""" - apiId: UUID! - - """Module name (e.g. auth, uploads, webhooks)""" - name: String! - - """JSON configuration data for this module""" - data: JSON! - - """Reads a single `Api` that is related to this `ApiModule`.""" - api: Api - - """Reads a single `Database` that is related to this `ApiModule`.""" - database: Database -} - -"""A `ApiModule` edge in the connection.""" -type ApiModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ApiModule` at the end of the edge.""" - node: ApiModule -} - -"""Methods to use when ordering `ApiModule`.""" -enum ApiModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - API_ID_ASC - API_ID_DESC - NAME_ASC - NAME_DESC - DATA_ASC - DATA_DESC -} - -"""Methods to use when ordering `ApiSchema`.""" -enum ApiSchemaOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - API_ID_ASC - API_ID_DESC -} - -"""A connection to a list of `Domain` values.""" -type DomainConnection { - """A list of `Domain` objects.""" - nodes: [Domain]! - - """ - A list of edges which contains the `Domain` and cursor to aid in pagination. - """ - edges: [DomainEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Domain` you could get from the connection.""" - totalCount: Int! -} - -""" -DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site -""" -type Domain { - """Unique identifier for this domain record""" - id: UUID! - - """Reference to the metaschema database this domain belongs to""" - databaseId: UUID! - - """API endpoint this domain routes to (mutually exclusive with site_id)""" - apiId: UUID - - """Site this domain routes to (mutually exclusive with api_id)""" - siteId: UUID - - """Subdomain portion of the hostname""" - subdomain: ConstructiveInternalTypeHostname - - """Root domain of the hostname""" - domain: ConstructiveInternalTypeHostname - - """Reads a single `Api` that is related to this `Domain`.""" - api: Api - - """Reads a single `Database` that is related to this `Domain`.""" - database: Database - - """Reads a single `Site` that is related to this `Domain`.""" - site: Site -} - -""" -Top-level site configuration: branding assets, title, and description for a deployed application -""" -type Site { - """Unique identifier for this site""" - id: UUID! - - """Reference to the metaschema database this site belongs to""" - databaseId: UUID! - - """Display title for the site (max 120 characters)""" - title: String - - """Short description of the site (max 120 characters)""" - description: String - - """Open Graph image used for social media link previews""" - ogImage: ConstructiveInternalTypeImage - - """Browser favicon attachment""" - favicon: ConstructiveInternalTypeAttachment - - """Apple touch icon for iOS home screen bookmarks""" - appleTouchIcon: ConstructiveInternalTypeImage - - """Primary logo image for the site""" - logo: ConstructiveInternalTypeImage - - """PostgreSQL database name this site connects to""" - dbname: String! - - """Reads a single `Database` that is related to this `Site`.""" - database: Database - - """Reads a single `App` that is related to this `Site`.""" - app: App - - """Reads and enables pagination through a set of `Domain`.""" - domains( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: DomainFilter - - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] - ): DomainConnection! - - """Reads and enables pagination through a set of `SiteMetadatum`.""" - siteMetadata( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteMetadatumFilter - - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteMetadatumConnection! - - """Reads and enables pagination through a set of `SiteModule`.""" - siteModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteModuleFilter - - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteModuleConnection! - - """Reads and enables pagination through a set of `SiteTheme`.""" - siteThemes( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: SiteThemeFilter - - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteThemeConnection! -} - -""" -Mobile and native app configuration linked to a site, including store links and identifiers -""" -type App { - """Unique identifier for this app""" - id: UUID! - - """Reference to the metaschema database this app belongs to""" - databaseId: UUID! - - """Site this app is associated with (one app per site)""" - siteId: UUID! - - """Display name of the app""" - name: String - - """App icon or promotional image""" - appImage: ConstructiveInternalTypeImage - - """URL to the Apple App Store listing""" - appStoreLink: ConstructiveInternalTypeUrl - - """Apple App Store application identifier""" - appStoreId: String - - """ - Apple App ID prefix (Team ID) for universal links and associated domains - """ - appIdPrefix: String - - """URL to the Google Play Store listing""" - playStoreLink: ConstructiveInternalTypeUrl - - """Reads a single `Site` that is related to this `App`.""" - site: Site - - """Reads a single `Database` that is related to this `App`.""" - database: Database -} - -"""Methods to use when ordering `Domain`.""" -enum DomainOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - API_ID_ASC - API_ID_DESC - SITE_ID_ASC - SITE_ID_DESC - SUBDOMAIN_ASC - SUBDOMAIN_DESC - DOMAIN_ASC - DOMAIN_DESC -} - -"""A connection to a list of `SiteMetadatum` values.""" -type SiteMetadatumConnection { - """A list of `SiteMetadatum` objects.""" - nodes: [SiteMetadatum]! - - """ - A list of edges which contains the `SiteMetadatum` and cursor to aid in pagination. - """ - edges: [SiteMetadatumEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SiteMetadatum` you could get from the connection.""" - totalCount: Int! -} - -""" -SEO and social sharing metadata for a site: page title, description, and Open Graph image -""" -type SiteMetadatum { - """Unique identifier for this metadata record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this metadata belongs to""" - siteId: UUID! - - """Page title for SEO (max 120 characters)""" - title: String - - """Meta description for SEO and social sharing (max 120 characters)""" - description: String - - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage - - """Reads a single `Database` that is related to this `SiteMetadatum`.""" - database: Database - - """Reads a single `Site` that is related to this `SiteMetadatum`.""" - site: Site -} - -"""A `SiteMetadatum` edge in the connection.""" -type SiteMetadatumEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SiteMetadatum` at the end of the edge.""" - node: SiteMetadatum -} - -"""Methods to use when ordering `SiteMetadatum`.""" -enum SiteMetadatumOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SITE_ID_ASC - SITE_ID_DESC - TITLE_ASC - TITLE_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - OG_IMAGE_ASC - OG_IMAGE_DESC -} - -"""A connection to a list of `SiteModule` values.""" -type SiteModuleConnection { - """A list of `SiteModule` objects.""" - nodes: [SiteModule]! - - """ - A list of edges which contains the `SiteModule` and cursor to aid in pagination. - """ - edges: [SiteModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SiteModule` you could get from the connection.""" - totalCount: Int! -} - -""" -Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site -""" -type SiteModule { - """Unique identifier for this site module record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this module configuration belongs to""" - siteId: UUID! - - """Module name (e.g. user_auth_module, analytics)""" - name: String! - - """JSON configuration data for this module""" - data: JSON! - - """Reads a single `Database` that is related to this `SiteModule`.""" - database: Database - - """Reads a single `Site` that is related to this `SiteModule`.""" - site: Site -} - -"""A `SiteModule` edge in the connection.""" -type SiteModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SiteModule` at the end of the edge.""" - node: SiteModule -} - -"""Methods to use when ordering `SiteModule`.""" -enum SiteModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SITE_ID_ASC - SITE_ID_DESC - NAME_ASC - NAME_DESC - DATA_ASC - DATA_DESC -} - -"""A connection to a list of `SiteTheme` values.""" -type SiteThemeConnection { - """A list of `SiteTheme` objects.""" - nodes: [SiteTheme]! - - """ - A list of edges which contains the `SiteTheme` and cursor to aid in pagination. - """ - edges: [SiteThemeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SiteTheme` you could get from the connection.""" - totalCount: Int! -} - -""" -Theme configuration for a site; stores design tokens, colors, and typography as JSONB -""" -type SiteTheme { - """Unique identifier for this theme record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this theme belongs to""" - siteId: UUID! - - """ - JSONB object containing theme tokens (colors, typography, spacing, etc.) - """ - theme: JSON! - - """Reads a single `Database` that is related to this `SiteTheme`.""" - database: Database - - """Reads a single `Site` that is related to this `SiteTheme`.""" - site: Site -} - -"""A `SiteTheme` edge in the connection.""" -type SiteThemeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SiteTheme` at the end of the edge.""" - node: SiteTheme -} - -"""Methods to use when ordering `SiteTheme`.""" -enum SiteThemeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SITE_ID_ASC - SITE_ID_DESC - THEME_ASC - THEME_DESC -} - -"""A `Domain` edge in the connection.""" -type DomainEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Domain` at the end of the edge.""" - node: Domain -} - -""" -Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default -""" -type ApiSetting { - """Unique identifier for this API settings record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """API these settings override for""" - apiId: UUID! - - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ - enableAggregates: Boolean - - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ - enablePostgis: Boolean - - """ - Override: enable unified search (NULL = inherit from database_settings) - """ - enableSearch: Boolean - - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ - enablePresignedUploads: Boolean - - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ - enableManyToMany: Boolean - - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ - enableConnectionFilter: Boolean - - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ - enableLtree: Boolean - - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ - enableLlm: Boolean - - """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) - """ - enableRealtime: Boolean - - """ - Override: enable bulk mutations (NULL = inherit from database_settings) - """ - enableBulk: Boolean - - """ - Extensible JSON for additional per-API settings that do not have dedicated columns - """ - options: JSON! - - """Reads a single `Api` that is related to this `ApiSetting`.""" - api: Api - - """Reads a single `Database` that is related to this `ApiSetting`.""" - database: Database -} - -"""A connection to a list of `CorsSetting` values.""" -type CorsSettingConnection { - """A list of `CorsSetting` objects.""" - nodes: [CorsSetting]! - - """ - A list of edges which contains the `CorsSetting` and cursor to aid in pagination. - """ - edges: [CorsSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `CorsSetting` you could get from the connection.""" - totalCount: Int! -} - -""" -Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries -""" -type CorsSetting { - """Unique identifier for this CORS settings record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """Optional API for per-API override; NULL means database-wide default""" - apiId: UUID - - """Array of allowed CORS origins (e.g. https://example.com)""" - allowedOrigins: [String]! - - """Reads a single `Api` that is related to this `CorsSetting`.""" - api: Api - - """Reads a single `Database` that is related to this `CorsSetting`.""" - database: Database -} - -"""A `CorsSetting` edge in the connection.""" -type CorsSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `CorsSetting` at the end of the edge.""" - node: CorsSetting -} - -"""Methods to use when ordering `CorsSetting`.""" -enum CorsSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - API_ID_ASC - API_ID_DESC - ALLOWED_ORIGINS_ASC - ALLOWED_ORIGINS_DESC -} - -"""A `ApiSchema` edge in the connection.""" -type ApiSchemaEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ApiSchema` at the end of the edge.""" - node: ApiSchema -} - -"""A connection to a list of `MerkleStoreModule` values.""" -type MerkleStoreModuleConnection { - """A list of `MerkleStoreModule` objects.""" - nodes: [MerkleStoreModule]! - - """ - A list of edges which contains the `MerkleStoreModule` and cursor to aid in pagination. - """ - edges: [MerkleStoreModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `MerkleStoreModule` you could get from the connection. - """ - totalCount: Int! -} - -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 - scopeField: String! - createdAt: Datetime! - - """Reads a single `Table` that is related to this `MerkleStoreModule`.""" - commitTable: Table - - """Reads a single `Database` that is related to this `MerkleStoreModule`.""" - database: Database - - """Reads a single `Table` that is related to this `MerkleStoreModule`.""" - objectTable: Table - - """Reads a single `Schema` that is related to this `MerkleStoreModule`.""" - privateSchema: Schema - - """Reads a single `Table` that is related to this `MerkleStoreModule`.""" - refTable: Table - - """Reads a single `Schema` that is related to this `MerkleStoreModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `MerkleStoreModule`.""" - storeTable: Table - - """Reads and enables pagination through a set of `GraphModule`.""" - graphModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: GraphModuleFilter - - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): GraphModuleConnection! -} - -"""A connection to a list of `GraphModule` values.""" -type GraphModuleConnection { - """A list of `GraphModule` objects.""" - nodes: [GraphModule]! - - """ - A list of edges which contains the `GraphModule` and cursor to aid in pagination. - """ - edges: [GraphModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `GraphModule` you could get from the connection.""" - totalCount: Int! -} - -type GraphModule { - id: UUID! - databaseId: UUID! - publicSchemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - prefix: String! - merkleStoreModuleId: UUID! - graphsTableId: UUID! - executionsTableId: UUID! - outputsTableId: UUID! - apiName: String - privateApiName: String - scopeField: String! - membershipType: Int - entityTableId: UUID - policies: JSON - provisions: JSON - createdAt: Datetime! - - """Reads a single `Database` that is related to this `GraphModule`.""" - database: Database - - """Reads a single `Table` that is related to this `GraphModule`.""" - executionsTable: Table - - """Reads a single `Table` that is related to this `GraphModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `GraphModule`.""" - graphsTable: Table - - """ - Reads a single `MerkleStoreModule` that is related to this `GraphModule`. - """ - merkleStoreModule: MerkleStoreModule - - """Reads a single `Table` that is related to this `GraphModule`.""" - outputsTable: Table - - """Reads a single `Schema` that is related to this `GraphModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `GraphModule`.""" - publicSchema: Schema -} - -"""A `GraphModule` edge in the connection.""" -type GraphModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `GraphModule` at the end of the edge.""" - node: GraphModule -} - -"""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 - PREFIX_ASC - PREFIX_DESC - MERKLE_STORE_MODULE_ID_ASC - MERKLE_STORE_MODULE_ID_DESC - GRAPHS_TABLE_ID_ASC - GRAPHS_TABLE_ID_DESC - EXECUTIONS_TABLE_ID_ASC - EXECUTIONS_TABLE_ID_DESC - OUTPUTS_TABLE_ID_ASC - OUTPUTS_TABLE_ID_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - SCOPE_FIELD_ASC - SCOPE_FIELD_DESC - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} - -"""A `MerkleStoreModule` edge in the connection.""" -type MerkleStoreModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MerkleStoreModule` at the end of the edge.""" - node: MerkleStoreModule -} - -"""Methods to use when ordering `MerkleStoreModule`.""" -enum MerkleStoreModuleOrderBy { - 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 - 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_FIELD_ASC - SCOPE_FIELD_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} - -"""A `Schema` edge in the connection.""" -type SchemaEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Schema` at the end of the edge.""" - node: Schema -} - -"""Methods to use when ordering `Schema`.""" -enum SchemaOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - NAME_ASC - NAME_DESC - SCHEMA_NAME_ASC - SCHEMA_NAME_DESC - LABEL_ASC - LABEL_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - SMART_TAGS_ASC - SMART_TAGS_DESC - CATEGORY_ASC - CATEGORY_DESC - MODULE_ASC - MODULE_DESC - SCOPE_ASC - SCOPE_DESC - TAGS_ASC - TAGS_DESC - IS_PUBLIC_ASC - IS_PUBLIC_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `TriggerFunction` values.""" -type TriggerFunctionConnection { - """A list of `TriggerFunction` objects.""" - nodes: [TriggerFunction]! - - """ - A list of edges which contains the `TriggerFunction` and cursor to aid in pagination. - """ - edges: [TriggerFunctionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `TriggerFunction` you could get from the connection. - """ - totalCount: Int! -} - -type TriggerFunction { - id: UUID! - databaseId: UUID! - name: String! - code: String - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `Database` that is related to this `TriggerFunction`.""" - database: Database -} - -"""A `TriggerFunction` edge in the connection.""" -type TriggerFunctionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `TriggerFunction` at the end of the edge.""" - node: TriggerFunction -} - -"""Methods to use when ordering `TriggerFunction`.""" -enum TriggerFunctionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - NAME_ASC - NAME_DESC - CODE_ASC - CODE_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `Partition` values.""" -type PartitionConnection { - """A list of `Partition` objects.""" - nodes: [Partition]! - - """ - A list of edges which contains the `Partition` and cursor to aid in pagination. - """ - edges: [PartitionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Partition` you could get from the connection.""" - totalCount: Int! -} - -"""A `Partition` edge in the connection.""" -type PartitionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Partition` at the end of the edge.""" - node: Partition -} - -"""Methods to use when ordering `Partition`.""" -enum PartitionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - STRATEGY_ASC - STRATEGY_DESC - PARTITION_KEY_ID_ASC - PARTITION_KEY_ID_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - RETENTION_KEEP_TABLE_ASC - RETENTION_KEEP_TABLE_DESC - PREMAKE_ASC - PREMAKE_DESC - NAMING_PATTERN_ASC - NAMING_PATTERN_DESC - IS_PARENTED_ASC - IS_PARENTED_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `DatabaseTransfer` values.""" -type DatabaseTransferConnection { - """A list of `DatabaseTransfer` objects.""" - nodes: [DatabaseTransfer]! - - """ - A list of edges which contains the `DatabaseTransfer` and cursor to aid in pagination. - """ - edges: [DatabaseTransferEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `DatabaseTransfer` you could get from the connection. - """ - totalCount: Int! -} - -type DatabaseTransfer { - id: UUID! - databaseId: UUID! - targetOwnerId: UUID! - sourceApproved: Boolean! - targetApproved: Boolean! - sourceApprovedAt: Datetime - targetApprovedAt: Datetime - status: String! - initiatedBy: UUID! - notes: String - expiresAt: Datetime! - createdAt: Datetime! - updatedAt: Datetime! - completedAt: Datetime - - """Reads a single `Database` that is related to this `DatabaseTransfer`.""" - database: Database -} - -"""A `DatabaseTransfer` edge in the connection.""" -type DatabaseTransferEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DatabaseTransfer` at the end of the edge.""" - node: DatabaseTransfer -} - -"""Methods to use when ordering `DatabaseTransfer`.""" -enum DatabaseTransferOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TARGET_OWNER_ID_ASC - TARGET_OWNER_ID_DESC - SOURCE_APPROVED_ASC - SOURCE_APPROVED_DESC - TARGET_APPROVED_ASC - TARGET_APPROVED_DESC - SOURCE_APPROVED_AT_ASC - SOURCE_APPROVED_AT_DESC - TARGET_APPROVED_AT_ASC - TARGET_APPROVED_AT_DESC - STATUS_ASC - STATUS_DESC - INITIATED_BY_ASC - INITIATED_BY_DESC - NOTES_ASC - NOTES_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC -} - -"""A connection to a list of `Api` values.""" -type ApiConnection { - """A list of `Api` objects.""" - nodes: [Api]! - - """ - A list of edges which contains the `Api` and cursor to aid in pagination. - """ - edges: [ApiEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Api` you could get from the connection.""" - totalCount: Int! -} - -"""A `Api` edge in the connection.""" -type ApiEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Api` at the end of the edge.""" - node: Api -} - -"""Methods to use when ordering `Api`.""" -enum ApiOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - NAME_ASC - NAME_DESC - DBNAME_ASC - DBNAME_DESC - ROLE_NAME_ASC - ROLE_NAME_DESC - ANON_ROLE_ASC - ANON_ROLE_DESC - IS_PUBLIC_ASC - IS_PUBLIC_DESC -} - -"""A connection to a list of `Site` values.""" -type SiteConnection { - """A list of `Site` objects.""" - nodes: [Site]! - - """ - A list of edges which contains the `Site` and cursor to aid in pagination. - """ - edges: [SiteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Site` you could get from the connection.""" - totalCount: Int! -} - -"""A `Site` edge in the connection.""" -type SiteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Site` at the end of the edge.""" - node: Site -} - -"""Methods to use when ordering `Site`.""" -enum SiteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TITLE_ASC - TITLE_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - OG_IMAGE_ASC - OG_IMAGE_DESC - FAVICON_ASC - FAVICON_DESC - APPLE_TOUCH_ICON_ASC - APPLE_TOUCH_ICON_DESC - LOGO_ASC - LOGO_DESC - DBNAME_ASC - DBNAME_DESC -} - -"""A connection to a list of `App` values.""" -type AppConnection { - """A list of `App` objects.""" - nodes: [App]! - - """ - A list of edges which contains the `App` and cursor to aid in pagination. - """ - edges: [AppEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `App` you could get from the connection.""" - totalCount: Int! -} - -"""A `App` edge in the connection.""" -type AppEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `App` at the end of the edge.""" - node: App -} - -"""Methods to use when ordering `App`.""" -enum AppOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SITE_ID_ASC - SITE_ID_DESC - NAME_ASC - NAME_DESC - APP_IMAGE_ASC - APP_IMAGE_DESC - APP_STORE_LINK_ASC - APP_STORE_LINK_DESC - APP_STORE_ID_ASC - APP_STORE_ID_DESC - APP_ID_PREFIX_ASC - APP_ID_PREFIX_DESC - PLAY_STORE_LINK_ASC - PLAY_STORE_LINK_DESC -} - -""" -Database-wide feature flags and settings; controls which platform features are available to all APIs in this database -""" -type DatabaseSetting { - """Unique identifier for this settings record""" - id: UUID! - - """Reference to the metaschema database these settings apply to""" - databaseId: UUID! - - """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" - enableAggregates: Boolean! - - """Enable PostGIS spatial types and operators in the GraphQL API""" - enablePostgis: Boolean! - - """ - Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API - """ - enableSearch: Boolean! - - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean! - - """Enable presigned URL upload flow for S3/MinIO storage""" - enablePresignedUploads: Boolean! - - """Enable many-to-many relationship queries in the GraphQL API""" - enableManyToMany: Boolean! - - """Enable connection filter (where argument) in the GraphQL API""" - enableConnectionFilter: Boolean! - - """Enable ltree hierarchical data type support in the GraphQL API""" - enableLtree: Boolean! - - """Enable LLM/AI integration features in the GraphQL API""" - enableLlm: Boolean! - - """ - Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API - """ - enableRealtime: Boolean! - - """ - Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API - """ - enableBulk: Boolean! - - """ - Extensible JSON for additional settings that do not have dedicated columns - """ - options: JSON! - - """Reads a single `Database` that is related to this `DatabaseSetting`.""" - database: Database -} - -"""A connection to a list of `ApiSetting` values.""" -type ApiSettingConnection { - """A list of `ApiSetting` objects.""" - nodes: [ApiSetting]! - - """ - A list of edges which contains the `ApiSetting` and cursor to aid in pagination. - """ - edges: [ApiSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `ApiSetting` you could get from the connection.""" - totalCount: Int! -} - -"""A `ApiSetting` edge in the connection.""" -type ApiSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ApiSetting` at the end of the edge.""" - node: ApiSetting -} - -"""Methods to use when ordering `ApiSetting`.""" -enum ApiSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - API_ID_ASC - API_ID_DESC - ENABLE_AGGREGATES_ASC - ENABLE_AGGREGATES_DESC - ENABLE_POSTGIS_ASC - ENABLE_POSTGIS_DESC - ENABLE_SEARCH_ASC - ENABLE_SEARCH_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC - ENABLE_PRESIGNED_UPLOADS_ASC - ENABLE_PRESIGNED_UPLOADS_DESC - ENABLE_MANY_TO_MANY_ASC - ENABLE_MANY_TO_MANY_DESC - ENABLE_CONNECTION_FILTER_ASC - ENABLE_CONNECTION_FILTER_DESC - ENABLE_LTREE_ASC - ENABLE_LTREE_DESC - ENABLE_LLM_ASC - ENABLE_LLM_DESC - ENABLE_REALTIME_ASC - ENABLE_REALTIME_DESC - ENABLE_BULK_ASC - ENABLE_BULK_DESC - OPTIONS_ASC - OPTIONS_DESC -} - -""" -Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries -""" -type RlsSetting { - """Unique identifier for this RLS settings record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """ - Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) - """ - authenticateSchemaId: UUID - - """ - Schema containing current_role and related functions (FK to metaschema_public.schema) - """ - roleSchemaId: UUID - - """ - Reference to the authenticate function (FK to metaschema_public.function) - """ - authenticateFunctionId: UUID - - """ - Reference to the strict authenticate function (FK to metaschema_public.function) - """ - authenticateStrictFunctionId: UUID - - """ - Reference to the current_role function (FK to metaschema_public.function) - """ - currentRoleFunctionId: UUID - - """ - Reference to the current_role_id function (FK to metaschema_public.function) - """ - currentRoleIdFunctionId: UUID - - """ - Reference to the current_user_agent function (FK to metaschema_public.function) - """ - currentUserAgentFunctionId: UUID - - """ - Reference to the current_ip_address function (FK to metaschema_public.function) - """ - currentIpAddressFunctionId: UUID - - """Reads a single `Function` that is related to this `RlsSetting`.""" - authenticateFunction: Function - - """Reads a single `Schema` that is related to this `RlsSetting`.""" - authenticateSchema: Schema - - """Reads a single `Function` that is related to this `RlsSetting`.""" - authenticateStrictFunction: Function - - """Reads a single `Function` that is related to this `RlsSetting`.""" - currentIpAddressFunction: Function - - """Reads a single `Function` that is related to this `RlsSetting`.""" - currentRoleFunction: Function - - """Reads a single `Function` that is related to this `RlsSetting`.""" - currentRoleIdFunction: Function - - """Reads a single `Function` that is related to this `RlsSetting`.""" - currentUserAgentFunction: Function - - """Reads a single `Database` that is related to this `RlsSetting`.""" - database: Database - - """Reads a single `Schema` that is related to this `RlsSetting`.""" - roleSchema: Schema -} - -""" -Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries -""" -type PubkeySetting { - """Unique identifier for this pubkey settings record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """ - Schema containing the crypto auth functions (FK to metaschema_public.schema) - """ - schemaId: UUID - - """Crypto network for key derivation (e.g. cosmos, ethereum)""" - cryptoNetwork: String! - - """Field name used to identify the user in crypto auth functions""" - userField: String! - - """ - Reference to the sign-up-with-key function (FK to metaschema_public.function) - """ - signUpWithKeyFunctionId: UUID - - """ - Reference to the sign-in challenge request function (FK to metaschema_public.function) - """ - signInRequestChallengeFunctionId: UUID - - """ - Reference to the sign-in failure recording function (FK to metaschema_public.function) - """ - signInRecordFailureFunctionId: UUID - - """ - Reference to the sign-in-with-challenge function (FK to metaschema_public.function) - """ - signInWithChallengeFunctionId: UUID - - """Reads a single `Database` that is related to this `PubkeySetting`.""" - database: Database - - """Reads a single `Schema` that is related to this `PubkeySetting`.""" - schema: Schema - - """Reads a single `Function` that is related to this `PubkeySetting`.""" - signInRecordFailureFunction: Function - - """Reads a single `Function` that is related to this `PubkeySetting`.""" - signInRequestChallengeFunction: Function - - """Reads a single `Function` that is related to this `PubkeySetting`.""" - signInWithChallengeFunction: Function - - """Reads a single `Function` that is related to this `PubkeySetting`.""" - signUpWithKeyFunction: Function -} - -""" -Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries -""" -type WebauthnSetting { - """Unique identifier for this WebAuthn settings record""" - id: UUID! - - """Reference to the metaschema database""" - databaseId: UUID! - - """ - Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) - """ - schemaId: UUID - - """ - Schema of the webauthn_credentials table (FK to metaschema_public.schema) - """ - credentialsSchemaId: UUID - - """Schema of the sessions table (FK to metaschema_public.schema)""" - sessionsSchemaId: UUID - - """Schema of the session_secrets table (FK to metaschema_public.schema)""" - sessionSecretsSchemaId: UUID - - """ - Reference to the webauthn_credentials table (FK to metaschema_public.table) - """ - credentialsTableId: UUID - - """Reference to the sessions table (FK to metaschema_public.table)""" - sessionsTableId: UUID - - """ - Reference to the session_credentials table (FK to metaschema_public.table) - """ - sessionCredentialsTableId: UUID - - """Reference to the session_secrets table (FK to metaschema_public.table)""" - sessionSecretsTableId: UUID - - """ - Reference to the user field on webauthn_credentials (FK to metaschema_public.field) - """ - userFieldId: UUID - - """WebAuthn Relying Party ID (typically the domain name)""" - rpId: String! - - """WebAuthn Relying Party display name""" - rpName: String! - - """Allowed origins for WebAuthn registration and authentication""" - originAllowlist: [String]! - - """Attestation conveyance preference (none, indirect, direct, enterprise)""" - attestationType: String! - - """Whether to require user verification (biometric/PIN) during auth""" - requireUserVerification: Boolean! - - """Resident key requirement (discouraged, preferred, required)""" - residentKey: String! - - """Challenge TTL in seconds (default 300 = 5 minutes)""" - challengeExpirySeconds: BigInt! - - """Reads a single `Schema` that is related to this `WebauthnSetting`.""" - credentialsSchema: Schema - - """Reads a single `Table` that is related to this `WebauthnSetting`.""" - credentialsTable: Table - - """Reads a single `Database` that is related to this `WebauthnSetting`.""" - database: Database - - """Reads a single `Schema` that is related to this `WebauthnSetting`.""" - schema: Schema - - """Reads a single `Table` that is related to this `WebauthnSetting`.""" - sessionCredentialsTable: Table - - """Reads a single `Schema` that is related to this `WebauthnSetting`.""" - sessionSecretsSchema: Schema - - """Reads a single `Table` that is related to this `WebauthnSetting`.""" - sessionSecretsTable: Table - - """Reads a single `Schema` that is related to this `WebauthnSetting`.""" - sessionsSchema: Schema - - """Reads a single `Table` that is related to this `WebauthnSetting`.""" - sessionsTable: Table - - """Reads a single `Field` that is related to this `WebauthnSetting`.""" - userField: Field -} - -"""A connection to a list of `ConnectedAccountsModule` values.""" -type ConnectedAccountsModuleConnection { - """A list of `ConnectedAccountsModule` objects.""" - nodes: [ConnectedAccountsModule]! - - """ - A list of edges which contains the `ConnectedAccountsModule` and cursor to aid in pagination. - """ - edges: [ConnectedAccountsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `ConnectedAccountsModule` you could get from the connection. - """ - totalCount: Int! -} - -type ConnectedAccountsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - tableId: UUID! - ownerTableId: UUID! - tableName: String! - - """ - Reads a single `Database` that is related to this `ConnectedAccountsModule`. - """ - database: Database - - """ - Reads a single `Table` that is related to this `ConnectedAccountsModule`. - """ - ownerTable: Table - - """ - Reads a single `Schema` that is related to this `ConnectedAccountsModule`. - """ - privateSchema: Schema - - """ - Reads a single `Schema` that is related to this `ConnectedAccountsModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `ConnectedAccountsModule`. - """ - table: Table -} - -"""A `ConnectedAccountsModule` edge in the connection.""" -type ConnectedAccountsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ConnectedAccountsModule` at the end of the edge.""" - node: ConnectedAccountsModule -} - -"""Methods to use when ordering `ConnectedAccountsModule`.""" -enum ConnectedAccountsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC -} - -"""A connection to a list of `CryptoAddressesModule` values.""" -type CryptoAddressesModuleConnection { - """A list of `CryptoAddressesModule` objects.""" - nodes: [CryptoAddressesModule]! - - """ - A list of edges which contains the `CryptoAddressesModule` and cursor to aid in pagination. - """ - edges: [CryptoAddressesModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `CryptoAddressesModule` you could get from the connection. - """ - totalCount: Int! -} - -type CryptoAddressesModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - tableId: UUID! - ownerTableId: UUID! - tableName: String! - cryptoNetwork: String! - - """ - Reads a single `Database` that is related to this `CryptoAddressesModule`. - """ - database: Database - - """ - Reads a single `Table` that is related to this `CryptoAddressesModule`. - """ - ownerTable: Table - - """ - Reads a single `Schema` that is related to this `CryptoAddressesModule`. - """ - privateSchema: Schema - - """ - Reads a single `Schema` that is related to this `CryptoAddressesModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `CryptoAddressesModule`. - """ - table: Table -} - -"""A `CryptoAddressesModule` edge in the connection.""" -type CryptoAddressesModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `CryptoAddressesModule` at the end of the edge.""" - node: CryptoAddressesModule -} - -"""Methods to use when ordering `CryptoAddressesModule`.""" -enum CryptoAddressesModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - CRYPTO_NETWORK_ASC - CRYPTO_NETWORK_DESC -} - -"""A connection to a list of `CryptoAuthModule` values.""" -type CryptoAuthModuleConnection { - """A list of `CryptoAuthModule` objects.""" - nodes: [CryptoAuthModule]! - - """ - A list of edges which contains the `CryptoAuthModule` and cursor to aid in pagination. - """ - edges: [CryptoAuthModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `CryptoAuthModule` you could get from the connection. - """ - totalCount: Int! -} - -type CryptoAuthModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - usersTableId: UUID! - secretsTableId: UUID! - sessionsTableId: UUID! - sessionCredentialsTableId: UUID! - addressesTableId: UUID! - userField: String! - cryptoNetwork: String! - signInRequestChallenge: String! - signInRecordFailure: String! - signUpWithKey: String! - signInWithChallenge: String! - - """Reads a single `Database` that is related to this `CryptoAuthModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `CryptoAuthModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `CryptoAuthModule`.""" - secretsTable: Table - - """Reads a single `Table` that is related to this `CryptoAuthModule`.""" - sessionCredentialsTable: Table - - """Reads a single `Table` that is related to this `CryptoAuthModule`.""" - sessionsTable: Table - - """Reads a single `Table` that is related to this `CryptoAuthModule`.""" - usersTable: Table -} - -"""A `CryptoAuthModule` edge in the connection.""" -type CryptoAuthModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `CryptoAuthModule` at the end of the edge.""" - node: CryptoAuthModule -} - -"""Methods to use when ordering `CryptoAuthModule`.""" -enum CryptoAuthModuleOrderBy { - 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 - SECRETS_TABLE_ID_ASC - SECRETS_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - ADDRESSES_TABLE_ID_ASC - ADDRESSES_TABLE_ID_DESC - USER_FIELD_ASC - USER_FIELD_DESC - CRYPTO_NETWORK_ASC - CRYPTO_NETWORK_DESC - SIGN_IN_REQUEST_CHALLENGE_ASC - SIGN_IN_REQUEST_CHALLENGE_DESC - SIGN_IN_RECORD_FAILURE_ASC - SIGN_IN_RECORD_FAILURE_DESC - SIGN_UP_WITH_KEY_ASC - SIGN_UP_WITH_KEY_DESC - SIGN_IN_WITH_CHALLENGE_ASC - SIGN_IN_WITH_CHALLENGE_DESC -} - -"""A connection to a list of `DefaultIdsModule` values.""" -type DefaultIdsModuleConnection { - """A list of `DefaultIdsModule` objects.""" - nodes: [DefaultIdsModule]! - - """ - A list of edges which contains the `DefaultIdsModule` and cursor to aid in pagination. - """ - edges: [DefaultIdsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `DefaultIdsModule` you could get from the connection. - """ - totalCount: Int! -} - -type DefaultIdsModule { - id: UUID! - databaseId: UUID! - - """Reads a single `Database` that is related to this `DefaultIdsModule`.""" - database: Database -} - -"""A `DefaultIdsModule` edge in the connection.""" -type DefaultIdsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DefaultIdsModule` at the end of the edge.""" - node: DefaultIdsModule -} - -"""Methods to use when ordering `DefaultIdsModule`.""" -enum DefaultIdsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC -} - -"""A connection to a list of `DenormalizedTableField` values.""" -type DenormalizedTableFieldConnection { - """A list of `DenormalizedTableField` objects.""" - nodes: [DenormalizedTableField]! - - """ - A list of edges which contains the `DenormalizedTableField` and cursor to aid in pagination. - """ - edges: [DenormalizedTableFieldEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `DenormalizedTableField` you could get from the connection. - """ - totalCount: Int! -} - -type DenormalizedTableField { - id: UUID! - databaseId: UUID! - tableId: UUID! - fieldId: UUID! - setIds: [UUID] - refTableId: UUID! - refFieldId: UUID! - refIds: [UUID] - useUpdates: Boolean! - updateDefaults: Boolean! - funcName: String - funcOrder: Int! - - """ - Reads a single `Database` that is related to this `DenormalizedTableField`. - """ - database: Database - - """ - Reads a single `Field` that is related to this `DenormalizedTableField`. - """ - field: Field - - """ - Reads a single `Field` that is related to this `DenormalizedTableField`. - """ - refField: Field - - """ - Reads a single `Table` that is related to this `DenormalizedTableField`. - """ - refTable: Table - - """ - Reads a single `Table` that is related to this `DenormalizedTableField`. - """ - table: Table -} - -"""A `DenormalizedTableField` edge in the connection.""" -type DenormalizedTableFieldEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DenormalizedTableField` at the end of the edge.""" - node: DenormalizedTableField -} - -"""Methods to use when ordering `DenormalizedTableField`.""" -enum DenormalizedTableFieldOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - FIELD_ID_ASC - FIELD_ID_DESC - SET_IDS_ASC - SET_IDS_DESC - REF_TABLE_ID_ASC - REF_TABLE_ID_DESC - REF_FIELD_ID_ASC - REF_FIELD_ID_DESC - REF_IDS_ASC - REF_IDS_DESC - USE_UPDATES_ASC - USE_UPDATES_DESC - UPDATE_DEFAULTS_ASC - UPDATE_DEFAULTS_DESC - FUNC_NAME_ASC - FUNC_NAME_DESC - FUNC_ORDER_ASC - FUNC_ORDER_DESC -} - -"""A connection to a list of `EmailsModule` values.""" -type EmailsModuleConnection { - """A list of `EmailsModule` objects.""" - nodes: [EmailsModule]! - - """ - A list of edges which contains the `EmailsModule` and cursor to aid in pagination. - """ - edges: [EmailsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `EmailsModule` you could get from the connection.""" - totalCount: Int! -} - -type EmailsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - tableId: UUID! - ownerTableId: UUID! - tableName: String! - - """Reads a single `Database` that is related to this `EmailsModule`.""" - database: Database - - """Reads a single `Table` that is related to this `EmailsModule`.""" - ownerTable: Table - - """Reads a single `Schema` that is related to this `EmailsModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `EmailsModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `EmailsModule`.""" - table: Table -} - -"""A `EmailsModule` edge in the connection.""" -type EmailsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `EmailsModule` at the end of the edge.""" - node: EmailsModule -} - -"""Methods to use when ordering `EmailsModule`.""" -enum EmailsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_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! - schemaId: UUID! - tableId: UUID! - tableName: String! - configDefinitionsTableId: UUID! - - """ - Reads a single `Table` that is related to this `ConfigSecretsUserModule`. - """ - configDefinitionsTable: Table - - """ - Reads a single `Database` that is related to this `ConfigSecretsUserModule`. - """ - database: Database - - """ - Reads a single `Schema` that is related to this `ConfigSecretsUserModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `ConfigSecretsUserModule`. - """ - table: Table -} - -"""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 -} - -"""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 - 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 -} - -"""A connection to a list of `InvitesModule` values.""" -type InvitesModuleConnection { - """A list of `InvitesModule` objects.""" - nodes: [InvitesModule]! - - """ - A list of edges which contains the `InvitesModule` and cursor to aid in pagination. - """ - edges: [InvitesModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `InvitesModule` you could get from the connection.""" - totalCount: Int! -} - -type InvitesModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - emailsTableId: UUID! - usersTableId: UUID! - invitesTableId: UUID! - claimedInvitesTableId: UUID! - invitesTableName: String! - claimedInvitesTableName: String! - submitInviteCodeFunction: String! - prefix: String - membershipType: Int! - entityTableId: UUID - - """Reads a single `Table` that is related to this `InvitesModule`.""" - claimedInvitesTable: Table - - """Reads a single `Database` that is related to this `InvitesModule`.""" - database: Database - - """Reads a single `Table` that is related to this `InvitesModule`.""" - emailsTable: Table - - """Reads a single `Table` that is related to this `InvitesModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `InvitesModule`.""" - invitesTable: Table - - """Reads a single `Schema` that is related to this `InvitesModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `InvitesModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `InvitesModule`.""" - usersTable: Table -} - -"""A `InvitesModule` edge in the connection.""" -type InvitesModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `InvitesModule` at the end of the edge.""" - node: InvitesModule -} - -"""Methods to use when ordering `InvitesModule`.""" -enum InvitesModuleOrderBy { - 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 - 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 - PREFIX_ASC - PREFIX_DESC - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC -} - -"""A connection to a list of `EventsModule` values.""" -type EventsModuleConnection { - """A list of `EventsModule` objects.""" - nodes: [EventsModule]! - - """ - A list of edges which contains the `EventsModule` and cursor to aid in pagination. - """ - edges: [EventsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `EventsModule` you could get from the connection.""" - totalCount: Int! -} - -type EventsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - eventsTableId: UUID! - eventsTableName: String! - eventAggregatesTableId: UUID! - eventAggregatesTableName: String! - eventTypesTableId: UUID! - eventTypesTableName: String! - levelsTableId: UUID! - levelsTableName: String! - levelRequirementsTableId: UUID! - levelRequirementsTableName: String! - levelGrantsTableId: UUID! - levelGrantsTableName: String! - achievementRewardsTableId: UUID! - 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: Int! - prefix: String - membershipType: Int! - entityTableId: UUID - actorTableId: UUID! - - """Reads a single `Table` that is related to this `EventsModule`.""" - achievementRewardsTable: Table - - """Reads a single `Table` that is related to this `EventsModule`.""" - actorTable: Table - - """Reads a single `Database` that is related to this `EventsModule`.""" - database: Database - - """Reads a single `Table` that is related to this `EventsModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `EventsModule`.""" - eventAggregatesTable: Table - - """Reads a single `Table` that is related to this `EventsModule`.""" - eventTypesTable: Table - - """Reads a single `Table` that is related to this `EventsModule`.""" - eventsTable: Table - - """Reads a single `Table` that is related to this `EventsModule`.""" - levelGrantsTable: Table - - """Reads a single `Table` that is related to this `EventsModule`.""" - levelRequirementsTable: Table - - """Reads a single `Table` that is related to this `EventsModule`.""" - levelsTable: Table - - """Reads a single `Schema` that is related to this `EventsModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `EventsModule`.""" - schema: Schema -} - -"""A `EventsModule` edge in the connection.""" -type EventsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `EventsModule` at the end of the edge.""" - node: EventsModule -} - -"""Methods to use when ordering `EventsModule`.""" -enum EventsModuleOrderBy { - 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 - EVENTS_TABLE_ID_ASC - EVENTS_TABLE_ID_DESC - EVENTS_TABLE_NAME_ASC - EVENTS_TABLE_NAME_DESC - EVENT_AGGREGATES_TABLE_ID_ASC - EVENT_AGGREGATES_TABLE_ID_DESC - EVENT_AGGREGATES_TABLE_NAME_ASC - EVENT_AGGREGATES_TABLE_NAME_DESC - EVENT_TYPES_TABLE_ID_ASC - EVENT_TYPES_TABLE_ID_DESC - EVENT_TYPES_TABLE_NAME_ASC - EVENT_TYPES_TABLE_NAME_DESC - LEVELS_TABLE_ID_ASC - LEVELS_TABLE_ID_DESC - LEVELS_TABLE_NAME_ASC - LEVELS_TABLE_NAME_DESC - LEVEL_REQUIREMENTS_TABLE_ID_ASC - LEVEL_REQUIREMENTS_TABLE_ID_DESC - LEVEL_REQUIREMENTS_TABLE_NAME_ASC - LEVEL_REQUIREMENTS_TABLE_NAME_DESC - LEVEL_GRANTS_TABLE_ID_ASC - LEVEL_GRANTS_TABLE_ID_DESC - LEVEL_GRANTS_TABLE_NAME_ASC - LEVEL_GRANTS_TABLE_NAME_DESC - ACHIEVEMENT_REWARDS_TABLE_ID_ASC - ACHIEVEMENT_REWARDS_TABLE_ID_DESC - ACHIEVEMENT_REWARDS_TABLE_NAME_ASC - ACHIEVEMENT_REWARDS_TABLE_NAME_DESC - RECORD_EVENT_ASC - RECORD_EVENT_DESC - REMOVE_EVENT_ASC - REMOVE_EVENT_DESC - TG_EVENT_ASC - TG_EVENT_DESC - TG_EVENT_TOGGLE_ASC - TG_EVENT_TOGGLE_DESC - TG_EVENT_TOGGLE_BOOL_ASC - TG_EVENT_TOGGLE_BOOL_DESC - TG_EVENT_BOOL_ASC - TG_EVENT_BOOL_DESC - UPSERT_AGGREGATE_ASC - 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 - LEVEL_ACHIEVED_DESC - TG_CHECK_ACHIEVEMENTS_ASC - TG_CHECK_ACHIEVEMENTS_DESC - GRANT_ACHIEVEMENT_ASC - GRANT_ACHIEVEMENT_DESC - TG_ACHIEVEMENT_REWARD_ASC - TG_ACHIEVEMENT_REWARD_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - PREFIX_ASC - PREFIX_DESC - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC -} - -"""A connection to a list of `LimitsModule` values.""" -type LimitsModuleConnection { - """A list of `LimitsModule` objects.""" - nodes: [LimitsModule]! - - """ - A list of edges which contains the `LimitsModule` and cursor to aid in pagination. - """ - edges: [LimitsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `LimitsModule` you could get from the connection.""" - totalCount: Int! -} - -type LimitsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - 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! - prefix: String - membershipType: Int! - entityTableId: UUID - actorTableId: UUID! - - """Reads a single `Table` that is related to this `LimitsModule`.""" - actorTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - aggregateTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - creditCodeItemsTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - creditCodesTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - creditRedemptionsTable: Table - - """Reads a single `Database` that is related to this `LimitsModule`.""" - database: Database - - """Reads a single `Table` that is related to this `LimitsModule`.""" - defaultTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - eventsTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - limitCapsDefaultsTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - limitCapsTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - limitCreditsTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - limitWarningStateTable: Table - - """Reads a single `Table` that is related to this `LimitsModule`.""" - limitWarningsTable: Table - - """Reads a single `Schema` that is related to this `LimitsModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `LimitsModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `LimitsModule`.""" - table: Table -} - -"""A `LimitsModule` edge in the connection.""" -type LimitsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `LimitsModule` at the end of the edge.""" - node: LimitsModule -} - -"""Methods to use when ordering `LimitsModule`.""" -enum LimitsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_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 - PREFIX_ASC - PREFIX_DESC - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC -} - -"""A connection to a list of `MembershipTypesModule` values.""" -type MembershipTypesModuleConnection { - """A list of `MembershipTypesModule` objects.""" - nodes: [MembershipTypesModule]! - - """ - A list of edges which contains the `MembershipTypesModule` and cursor to aid in pagination. - """ - edges: [MembershipTypesModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `MembershipTypesModule` you could get from the connection. - """ - totalCount: Int! -} - -type MembershipTypesModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - tableId: UUID! - tableName: String! - - """ - Reads a single `Database` that is related to this `MembershipTypesModule`. - """ - database: Database - - """ - Reads a single `Schema` that is related to this `MembershipTypesModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `MembershipTypesModule`. - """ - table: Table -} - -"""A `MembershipTypesModule` edge in the connection.""" -type MembershipTypesModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MembershipTypesModule` at the end of the edge.""" - node: MembershipTypesModule -} - -"""Methods to use when ordering `MembershipTypesModule`.""" -enum MembershipTypesModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC -} - -"""A 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! - schemaId: UUID! - privateSchemaId: UUID! - 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! - membershipType: Int! - entityTableId: UUID - entityTableOwnerId: UUID - prefix: String - getOrgFn: String - actorMaskCheck: String! - actorPermCheck: String! - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - actorTable: Table - - """Reads a single `Database` that is related to this `MembershipsModule`.""" - database: Database - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - defaultLimitsTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - defaultPermissionsTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - entityTable: Table - - """Reads a single `Field` that is related to this `MembershipsModule`.""" - entityTableOwner: Field - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - grantsTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - limitsTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - membersTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - membershipDefaultsTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - membershipSettingsTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - membershipsTable: Table - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - permissionsTable: Table - - """Reads a single `Schema` that is related to this `MembershipsModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `MembershipsModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `MembershipsModule`.""" - sprtTable: Table -} - -"""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 -} - -"""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 - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_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 - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ENTITY_TABLE_OWNER_ID_ASC - ENTITY_TABLE_OWNER_ID_DESC - PREFIX_ASC - PREFIX_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 -} - -"""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! - schemaId: UUID! - privateSchemaId: UUID! - tableId: UUID! - tableName: String! - defaultTableId: UUID! - defaultTableName: String! - bitlen: Int! - membershipType: Int! - entityTableId: UUID - actorTableId: UUID! - prefix: String - getPaddedMask: String! - getMask: String! - getByMask: String! - getMaskByName: String! - - """Reads a single `Table` that is related to this `PermissionsModule`.""" - actorTable: Table - - """Reads a single `Database` that is related to this `PermissionsModule`.""" - database: Database - - """Reads a single `Table` that is related to this `PermissionsModule`.""" - defaultTable: Table - - """Reads a single `Table` that is related to this `PermissionsModule`.""" - entityTable: Table - - """Reads a single `Schema` that is related to this `PermissionsModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `PermissionsModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `PermissionsModule`.""" - table: Table -} - -"""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 -} - -"""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 - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_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 - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC - PREFIX_ASC - PREFIX_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 -} - -"""A connection to a list of `PhoneNumbersModule` values.""" -type PhoneNumbersModuleConnection { - """A list of `PhoneNumbersModule` objects.""" - nodes: [PhoneNumbersModule]! - - """ - A list of edges which contains the `PhoneNumbersModule` and cursor to aid in pagination. - """ - edges: [PhoneNumbersModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `PhoneNumbersModule` you could get from the connection. - """ - totalCount: Int! -} - -type PhoneNumbersModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - tableId: UUID! - ownerTableId: UUID! - tableName: String! - - """ - Reads a single `Database` that is related to this `PhoneNumbersModule`. - """ - database: Database - - """Reads a single `Table` that is related to this `PhoneNumbersModule`.""" - ownerTable: Table - - """Reads a single `Schema` that is related to this `PhoneNumbersModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `PhoneNumbersModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `PhoneNumbersModule`.""" - table: Table -} - -"""A `PhoneNumbersModule` edge in the connection.""" -type PhoneNumbersModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PhoneNumbersModule` at the end of the edge.""" - node: PhoneNumbersModule -} - -"""Methods to use when ordering `PhoneNumbersModule`.""" -enum PhoneNumbersModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC -} - -"""A connection to a list of `ProfilesModule` values.""" -type ProfilesModuleConnection { - """A list of `ProfilesModule` objects.""" - nodes: [ProfilesModule]! - - """ - A list of edges which contains the `ProfilesModule` and cursor to aid in pagination. - """ - edges: [ProfilesModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `ProfilesModule` you could get from the connection.""" - totalCount: Int! -} - -type ProfilesModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - tableId: UUID! - tableName: String! - profilePermissionsTableId: UUID! - profilePermissionsTableName: String! - profileGrantsTableId: UUID! - profileGrantsTableName: String! - profileDefinitionGrantsTableId: UUID! - profileDefinitionGrantsTableName: String! - profileTemplatesTableId: UUID! - profileTemplatesTableName: String! - membershipType: Int! - entityTableId: UUID - actorTableId: UUID! - permissionsTableId: UUID! - membershipsTableId: UUID! - prefix: String - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - actorTable: Table - - """Reads a single `Database` that is related to this `ProfilesModule`.""" - database: Database - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - membershipsTable: Table - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - permissionsTable: Table - - """Reads a single `Schema` that is related to this `ProfilesModule`.""" - privateSchema: Schema - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - profileDefinitionGrantsTable: Table - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - profileGrantsTable: Table - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - profilePermissionsTable: Table - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - profileTemplatesTable: Table - - """Reads a single `Schema` that is related to this `ProfilesModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `ProfilesModule`.""" - table: Table -} - -"""A `ProfilesModule` edge in the connection.""" -type ProfilesModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ProfilesModule` at the end of the edge.""" - node: ProfilesModule -} - -"""Methods to use when ordering `ProfilesModule`.""" -enum ProfilesModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_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 - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_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 - PREFIX_ASC - PREFIX_DESC -} - -type RlsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - sessionCredentialsTableId: UUID! - sessionsTableId: UUID! - usersTableId: UUID! - authenticate: String! - authenticateStrict: String! - currentRole: String! - currentRoleId: String! - - """Reads a single `Database` that is related to this `RlsModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `RlsModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `RlsModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `RlsModule`.""" - sessionCredentialsTable: Table - - """Reads a single `Table` that is related to this `RlsModule`.""" - sessionsTable: Table - - """Reads a single `Table` that is related to this `RlsModule`.""" - usersTable: Table -} - -"""A connection to a list of `UserStateModule` values.""" -type UserStateModuleConnection { - """A list of `UserStateModule` objects.""" - nodes: [UserStateModule]! - - """ - A list of edges which contains the `UserStateModule` and cursor to aid in pagination. - """ - edges: [UserStateModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `UserStateModule` you could get from the connection. - """ - totalCount: Int! -} - -type UserStateModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - tableId: UUID! - tableName: String! - - """Reads a single `Database` that is related to this `UserStateModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `UserStateModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `UserStateModule`.""" - table: Table -} - -"""A `UserStateModule` edge in the connection.""" -type UserStateModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `UserStateModule` at the end of the edge.""" - node: UserStateModule -} - -"""Methods to use when ordering `UserStateModule`.""" -enum 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 -} - -"""A connection to a list of `SessionsModule` values.""" -type SessionsModuleConnection { - """A list of `SessionsModule` objects.""" - nodes: [SessionsModule]! - - """ - A list of edges which contains the `SessionsModule` and cursor to aid in pagination. - """ - edges: [SessionsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SessionsModule` you could get from the connection.""" - totalCount: Int! -} - -type SessionsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - sessionsTableId: UUID! - sessionCredentialsTableId: UUID! - authSettingsTableId: UUID! - usersTableId: UUID! - sessionsDefaultExpiration: Interval! - sessionsTable: String! - sessionCredentialsTable: String! - authSettingsTable: String! - - """Reads a single `Table` that is related to this `SessionsModule`.""" - authSettingsTableByAuthSettingsTableId: Table - - """Reads a single `Database` that is related to this `SessionsModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `SessionsModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `SessionsModule`.""" - sessionCredentialsTableBySessionCredentialsTableId: Table - - """Reads a single `Table` that is related to this `SessionsModule`.""" - sessionsTableBySessionsTableId: Table - - """Reads a single `Table` that is related to this `SessionsModule`.""" - usersTable: Table -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -type Interval { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of days.""" - days: Int - - """A quantity of months.""" - months: Int - - """A quantity of years.""" - years: Int -} - -"""A `SessionsModule` edge in the connection.""" -type SessionsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SessionsModule` at the end of the edge.""" - node: SessionsModule -} - -"""Methods to use when ordering `SessionsModule`.""" -enum SessionsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - AUTH_SETTINGS_TABLE_ID_ASC - AUTH_SETTINGS_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - SESSIONS_DEFAULT_EXPIRATION_ASC - SESSIONS_DEFAULT_EXPIRATION_DESC - SESSIONS_TABLE_ASC - SESSIONS_TABLE_DESC - SESSION_CREDENTIALS_TABLE_ASC - SESSION_CREDENTIALS_TABLE_DESC - AUTH_SETTINGS_TABLE_ASC - AUTH_SETTINGS_TABLE_DESC -} - -"""A connection to a list of `UserAuthModule` values.""" -type UserAuthModuleConnection { - """A list of `UserAuthModule` objects.""" - nodes: [UserAuthModule]! - - """ - A list of edges which contains the `UserAuthModule` and cursor to aid in pagination. - """ - edges: [UserAuthModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `UserAuthModule` you could get from the connection.""" - totalCount: Int! -} - -type UserAuthModule { - 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! - - """Reads a single `Database` that is related to this `UserAuthModule`.""" - database: Database - - """Reads a single `Table` that is related to this `UserAuthModule`.""" - emailsTable: Table - - """Reads a single `Table` that is related to this `UserAuthModule`.""" - encryptedTable: Table - - """Reads a single `Schema` that is related to this `UserAuthModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `UserAuthModule`.""" - secretsTable: Table - - """Reads a single `Table` that is related to this `UserAuthModule`.""" - sessionCredentialsTable: Table - - """Reads a single `Table` that is related to this `UserAuthModule`.""" - sessionsTable: Table - - """Reads a single `Table` that is related to this `UserAuthModule`.""" - usersTable: Table -} - -"""A `UserAuthModule` edge in the connection.""" -type UserAuthModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `UserAuthModule` at the end of the edge.""" - node: UserAuthModule -} - -"""Methods to use when ordering `UserAuthModule`.""" -enum 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 -} - -"""A connection to a list of `UsersModule` values.""" -type UsersModuleConnection { - """A list of `UsersModule` objects.""" - nodes: [UsersModule]! - - """ - A list of edges which contains the `UsersModule` and cursor to aid in pagination. - """ - edges: [UsersModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `UsersModule` you could get from the connection.""" - totalCount: Int! -} - -type UsersModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - tableId: UUID! - tableName: String! - typeTableId: UUID! - typeTableName: String! - - """Reads a single `Database` that is related to this `UsersModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `UsersModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `UsersModule`.""" - table: Table - - """Reads a single `Table` that is related to this `UsersModule`.""" - typeTable: Table -} - -"""A `UsersModule` edge in the connection.""" -type UsersModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `UsersModule` at the end of the edge.""" - node: UsersModule -} - -"""Methods to use when ordering `UsersModule`.""" -enum UsersModuleOrderBy { - 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 - TYPE_TABLE_ID_ASC - TYPE_TABLE_ID_DESC - TYPE_TABLE_NAME_ASC - TYPE_TABLE_NAME_DESC -} - -type HierarchyModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - chartEdgesTableId: UUID! - chartEdgesTableName: String! - hierarchySprtTableId: UUID! - hierarchySprtTableName: String! - chartEdgeGrantsTableId: UUID! - chartEdgeGrantsTableName: String! - entityTableId: UUID! - usersTableId: UUID! - prefix: String! - privateSchemaName: String! - sprtTableName: String! - rebuildHierarchyFunction: String! - getSubordinatesFunction: String! - getManagersFunction: String! - isManagerOfFunction: String! - createdAt: Datetime! - - """Reads a single `Table` that is related to this `HierarchyModule`.""" - chartEdgeGrantsTable: Table - - """Reads a single `Table` that is related to this `HierarchyModule`.""" - chartEdgesTable: Table - - """Reads a single `Database` that is related to this `HierarchyModule`.""" - database: Database - - """Reads a single `Table` that is related to this `HierarchyModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `HierarchyModule`.""" - hierarchySprtTable: Table - - """Reads a single `Schema` that is related to this `HierarchyModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `HierarchyModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `HierarchyModule`.""" - usersTable: Table -} - -"""A connection to a list of `Blueprint` values.""" -type BlueprintConnection { - """A list of `Blueprint` objects.""" - nodes: [Blueprint]! - - """ - A list of edges which contains the `Blueprint` and cursor to aid in pagination. - """ - edges: [BlueprintEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Blueprint` you could get from the connection.""" - totalCount: Int! -} - -""" -An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. -""" -type Blueprint { - """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! - - """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! - - """Reads a single `Database` that is related to this `Blueprint`.""" - database: Database - - """ - Reads a single `BlueprintTemplate` that is related to this `Blueprint`. - """ - template: BlueprintTemplate - - """Reads and enables pagination through a set of `BlueprintConstruction`.""" - blueprintConstructions( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintConstructionFilter - - """The method to use when ordering `BlueprintConstruction`.""" - orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConstructionConnection! -} - -""" -A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). -""" -type BlueprintTemplate { - """Unique identifier for this template.""" - id: UUID! - - """ - Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. - """ - name: String! - - """Semantic version string. Defaults to 1.0.0.""" - version: String! - - """Human-readable display name for the template (e.g. E-Commerce Basic).""" - displayName: String! - - """Optional description of what the template provisions.""" - description: String - - """The user who created or published this template.""" - ownerId: UUID! - - """ - Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. - """ - visibility: String! - - """ - Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. - """ - categories: [String]! - - """ - Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. - """ - tags: [String]! - - """ - The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. - """ - definition: JSON! - - """ - Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. - """ - definitionSchemaVersion: String! - - """ - Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. - """ - source: String! - - """ - Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. - """ - complexity: String - - """ - Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. - """ - copyCount: Int! - - """ - Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. - """ - forkCount: Int! - - """ - If this template was forked from another template, the ID of the parent. NULL for original templates. - """ - 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. - """ - 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! - - """ - Reads a single `BlueprintTemplate` that is related to this `BlueprintTemplate`. - """ - forkedFrom: BlueprintTemplate - - """Reads and enables pagination through a set of `BlueprintTemplate`.""" - blueprintTemplatesByForkedFromId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintTemplateFilter - - """The method to use when ordering `BlueprintTemplate`.""" - orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintTemplateConnection! - - """Reads and enables pagination through a set of `Blueprint`.""" - blueprintsByTemplateId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: BlueprintFilter - - """The method to use when ordering `Blueprint`.""" - orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConnection! -} - -"""A connection to a list of `BlueprintTemplate` values.""" -type BlueprintTemplateConnection { - """A list of `BlueprintTemplate` objects.""" - nodes: [BlueprintTemplate]! - - """ - A list of edges which contains the `BlueprintTemplate` and cursor to aid in pagination. - """ - edges: [BlueprintTemplateEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `BlueprintTemplate` you could get from the connection. - """ - totalCount: Int! -} - -"""A `BlueprintTemplate` edge in the connection.""" -type BlueprintTemplateEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `BlueprintTemplate` at the end of the edge.""" - node: BlueprintTemplate -} - -"""Methods to use when ordering `BlueprintTemplate`.""" -enum BlueprintTemplateOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - VERSION_ASC - VERSION_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - OWNER_ID_ASC - OWNER_ID_DESC - VISIBILITY_ASC - VISIBILITY_DESC - CATEGORIES_ASC - CATEGORIES_DESC - TAGS_ASC - TAGS_DESC - DEFINITION_ASC - DEFINITION_DESC - DEFINITION_SCHEMA_VERSION_ASC - DEFINITION_SCHEMA_VERSION_DESC - SOURCE_ASC - SOURCE_DESC - COMPLEXITY_ASC - COMPLEXITY_DESC - COPY_COUNT_ASC - COPY_COUNT_DESC - FORK_COUNT_ASC - FORK_COUNT_DESC - FORKED_FROM_ID_ASC - FORKED_FROM_ID_DESC - DEFINITION_HASH_ASC - DEFINITION_HASH_DESC - TABLE_HASHES_ASC - TABLE_HASHES_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""Methods to use when ordering `Blueprint`.""" -enum BlueprintOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - OWNER_ID_ASC - OWNER_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - NAME_ASC - NAME_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - DEFINITION_ASC - DEFINITION_DESC - TEMPLATE_ID_ASC - TEMPLATE_ID_DESC - DEFINITION_HASH_ASC - DEFINITION_HASH_DESC - TABLE_HASHES_ASC - TABLE_HASHES_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `BlueprintConstruction` values.""" -type BlueprintConstructionConnection { - """A list of `BlueprintConstruction` objects.""" - nodes: [BlueprintConstruction]! - - """ - A list of edges which contains the `BlueprintConstruction` and cursor to aid in pagination. - """ - edges: [BlueprintConstructionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `BlueprintConstruction` you could get from the connection. - """ - totalCount: Int! -} - -""" -Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. -""" -type BlueprintConstruction { - """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 - - """ - 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! - - """ - Reads a single `Blueprint` that is related to this `BlueprintConstruction`. - """ - blueprint: Blueprint - - """ - Reads a single `Database` that is related to this `BlueprintConstruction`. - """ - database: Database -} - -"""A `BlueprintConstruction` edge in the connection.""" -type BlueprintConstructionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `BlueprintConstruction` at the end of the edge.""" - node: BlueprintConstruction -} - -"""Methods to use when ordering `BlueprintConstruction`.""" -enum BlueprintConstructionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - BLUEPRINT_ID_ASC - BLUEPRINT_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - STATUS_ASC - STATUS_DESC - ERROR_DETAILS_ASC - ERROR_DETAILS_DESC - TABLE_MAP_ASC - TABLE_MAP_DESC - CONSTRUCTED_DEFINITION_ASC - CONSTRUCTED_DEFINITION_DESC - CONSTRUCTED_AT_ASC - CONSTRUCTED_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A `Blueprint` edge in the connection.""" -type BlueprintEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Blueprint` at the end of the edge.""" - node: Blueprint -} - -"""A connection to a list of `StorageModule` values.""" -type StorageModuleConnection { - """A list of `StorageModule` objects.""" - nodes: [StorageModule]! - - """ - A list of edges which contains the `StorageModule` and cursor to aid in pagination. - """ - edges: [StorageModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `StorageModule` you could get from the connection.""" - totalCount: Int! -} - -type StorageModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - bucketsTableId: UUID! - filesTableId: UUID! - bucketsTableName: String! - filesTableName: String! - membershipType: Int - key: String! - policies: JSON - provisions: JSON - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean! - hasPathShares: Boolean! - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean! - hasContentHash: Boolean! - hasCustomKeys: Boolean! - hasAuditLog: Boolean! - hasConfirmUpload: Boolean! - confirmUploadDelay: Interval! - fileEventsTableId: UUID - - """Reads a single `Table` that is related to this `StorageModule`.""" - bucketsTable: Table - - """Reads a single `Database` that is related to this `StorageModule`.""" - database: Database - - """Reads a single `Table` that is related to this `StorageModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `StorageModule`.""" - fileEventsTable: Table - - """Reads a single `Table` that is related to this `StorageModule`.""" - filesTable: Table - - """Reads a single `Table` that is related to this `StorageModule`.""" - pathSharesTable: Table - - """Reads a single `Schema` that is related to this `StorageModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `StorageModule`.""" - schema: Schema -} - -"""A `StorageModule` edge in the connection.""" -type StorageModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `StorageModule` at the end of the edge.""" - node: StorageModule -} - -"""Methods to use when ordering `StorageModule`.""" -enum StorageModuleOrderBy { - 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 - BUCKETS_TABLE_ID_ASC - BUCKETS_TABLE_ID_DESC - FILES_TABLE_ID_ASC - FILES_TABLE_ID_DESC - BUCKETS_TABLE_NAME_ASC - BUCKETS_TABLE_NAME_DESC - FILES_TABLE_NAME_ASC - FILES_TABLE_NAME_DESC - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - KEY_ASC - KEY_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ENDPOINT_ASC - ENDPOINT_DESC - PUBLIC_URL_PREFIX_ASC - PUBLIC_URL_PREFIX_DESC - PROVIDER_ASC - PROVIDER_DESC - ALLOWED_ORIGINS_ASC - ALLOWED_ORIGINS_DESC - RESTRICT_READS_ASC - RESTRICT_READS_DESC - HAS_PATH_SHARES_ASC - HAS_PATH_SHARES_DESC - PATH_SHARES_TABLE_ID_ASC - PATH_SHARES_TABLE_ID_DESC - UPLOAD_URL_EXPIRY_SECONDS_ASC - UPLOAD_URL_EXPIRY_SECONDS_DESC - DOWNLOAD_URL_EXPIRY_SECONDS_ASC - DOWNLOAD_URL_EXPIRY_SECONDS_DESC - DEFAULT_MAX_FILE_SIZE_ASC - DEFAULT_MAX_FILE_SIZE_DESC - MAX_FILENAME_LENGTH_ASC - MAX_FILENAME_LENGTH_DESC - CACHE_TTL_SECONDS_ASC - CACHE_TTL_SECONDS_DESC - MAX_BULK_FILES_ASC - MAX_BULK_FILES_DESC - MAX_BULK_TOTAL_SIZE_ASC - MAX_BULK_TOTAL_SIZE_DESC - HAS_VERSIONING_ASC - HAS_VERSIONING_DESC - HAS_CONTENT_HASH_ASC - HAS_CONTENT_HASH_DESC - HAS_CUSTOM_KEYS_ASC - HAS_CUSTOM_KEYS_DESC - HAS_AUDIT_LOG_ASC - HAS_AUDIT_LOG_DESC - HAS_CONFIRM_UPLOAD_ASC - HAS_CONFIRM_UPLOAD_DESC - CONFIRM_UPLOAD_DELAY_ASC - CONFIRM_UPLOAD_DELAY_DESC - FILE_EVENTS_TABLE_ID_ASC - FILE_EVENTS_TABLE_ID_DESC -} - -"""A connection to a list of `EntityTypeProvision` values.""" -type EntityTypeProvisionConnection { - """A list of `EntityTypeProvision` objects.""" - nodes: [EntityTypeProvision]! - - """ - A list of edges which contains the `EntityTypeProvision` and cursor to aid in pagination. - """ - edges: [EntityTypeProvisionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `EntityTypeProvision` you could get from the connection. - """ - totalCount: Int! -} - -""" -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 - via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - Set table_provision to a single jsonb object (using the same shape as provision_table() / - blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - as an escape hatch to apply zero policies. -""" -type EntityTypeProvision { - """Unique identifier for this provision row.""" - id: UUID! - - """The database to provision this entity type in. Required.""" - databaseId: UUID! - - """ - Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - Stored in the entity_types registry table. - """ - name: String! - - """ - SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - and membership table names (prefix_memberships, prefix_members, etc.). - Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - """ - prefix: String! - - """ - Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. - """ - description: String! - - """ - Prefix of the parent entity type. The trigger resolves this to a membership_type integer - by looking up memberships_module WHERE prefix = parent_entity. - Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - (e.g. 'data_room' for a team_channel nested under data_room). - The parent type must already be provisioned before this INSERT. - """ - parentEntity: String! - - """ - Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - (e.g. prefix 'data_room' produces table 'data_rooms'). - Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - """ - tableName: String - - """ - Whether members of the parent entity can see child entities. Defaults to true. - When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - When false: only direct members of the entity itself can see it (private entity mode). - Controls whether the parent_member SELECT policy is created on the entity table. - Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - skip_entity_policies=true, since no default policies are being applied in those cases. - """ - isVisible: Boolean! - - """ - Whether to apply limits_module security for this type. Defaults to false. - The limits_module table structure is always created (memberships_module requires it), - but when false, no RLS policies are applied to the limits tables. - Set to true if this entity type needs configurable resource limits per membership. - """ - hasLimits: Boolean! - - """ - Whether to provision profiles_module for this type. Defaults to false. - Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - When true, creates profile tables and applies profiles security. - """ - hasProfiles: Boolean! - - """ - Whether to provision events_module for this type. Defaults to false. - Levels provide gamification/achievement tracking for members. - When true, creates level steps, achievements, and level tables with security. - """ - hasLevels: Boolean! - - """ - Whether to provision invites_module for this type. Defaults to false. - When true, the trigger inserts a row into invites_module which in turn - (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - repeated INSERTs safe. - """ - hasInvites: Boolean! - - """ - Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - When true, the trigger calls event_tracker() on the claimed_invites table with - event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - crediting the SENDER (inviter) when someone claims their invite code. - Developers can then define achievements in the blueprint achievements[] section - that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - """ - hasInviteAchievements: Boolean! - - """ - Optional JSON array of storage module definitions. Presence triggers provisioning - (same inference model as namespaces, functions, agents). - Each element provisions a separate storage module with its own tables - ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - NULL = do not provision storage. '[{}]' = provision one default storage module. - Each array element recognizes (all optional): - - key (text) module discriminator, max 16 chars, lowercase snake_case. - Defaults to 'default' (omitted from table names). - Non-default keys become infixes: {prefix}_{key}_buckets. - (storage_key accepted for backward compat) - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this module - - allowed_origins (text[]) default CORS origins for all buckets in this module - - restrict_reads (boolean) require read_files permission for SELECT on files - - has_path_shares (boolean) enable virtual filesystem + path share policies - - has_versioning (boolean) enable file version chains - - has_content_hash (boolean) enable content hash for dedup - - has_custom_keys (boolean) allow client-provided S3 keys - - has_audit_log (boolean) enable file events audit table - - has_confirm_upload (boolean) enable HeadObject confirmation flow - - confirm_upload_delay (interval) delay before first confirmation attempt - - buckets (jsonb[]) array of initial bucket definitions to seed. - Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - Each value: { nodes, fields, grants, use_rls, policies }. - Example (single module, backward compat): - storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - Example (multi-module): - storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - """ - storage: JSON - - """ - Optional JSON array of namespace module definitions. Presence triggers provisioning. - NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - Registers manage_namespaces permission bit on first provision. - Example: namespaces := '[{}]'::jsonb - """ - namespaces: JSON - - """ - Optional JSON array of function module definitions. Presence triggers provisioning. - NULL = do not provision functions. '[{}]' = provision one default function module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - with entity-scoped RLS and a job trigger dispatching function:provision tasks. - Registers manage_functions + invoke_functions permission bits on first provision. - Example: functions := '[{}]'::jsonb - """ - functions: JSON - - """ - Optional JSON array of graph module definitions. Presence triggers provisioning. - NULL = do not provision graphs. '[{}]' = provision one default graph module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - Registers manage_graphs + execute_graphs permission bits on first provision. - Graph module requires a merkle_store_module_id dependency, so entity_type_provision - only registers permissions here. The graph module itself must be provisioned - separately with the merkle store dependency resolved. - Example: graphs := '[{}]'::jsonb - """ - graphs: JSON - agents: JSON - - """ - Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - Use this only when you want the entity table provisioned with zero policies (e.g. because you - plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - false and either accepting the five defaults (table_provision=NULL) or overriding them via - table_provision. - Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - - SELECT (self_member): direct members of the entity can see it - - INSERT: create_entity permission on the parent entity - - UPDATE: admin_entity permission on the entity itself - - DELETE: owner of the entity can delete it - """ - skipEntityPolicies: Boolean! - - """ - Single jsonb object describing the full security setup to apply to the entity table. - Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - entries, so an entity table is configured the same way an ordinary blueprint table is. - Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - table_provision.policies[] (is_visible becomes a no-op on this path). - Recognized keys (all optional): - - use_rls (boolean, default true) - - nodes (jsonb array of {"$type","data"} Data* module entries) - - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - - grants (jsonb array of grant objects; each with roles[] and privileges[]) - - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - against the newly created entity table. - Example — override with two SELECT policies: - table_provision := jsonb_build_object( - 'policies', jsonb_build_array( - jsonb_build_object( - '$type', 'AuthzEntityMembership', - 'privileges', jsonb_build_array('select'), - 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - 'name', 'self_member' - ), - jsonb_build_object( - '$type', 'AuthzDirectOwner', - 'privileges', jsonb_build_array('select', 'update'), - 'data', jsonb_build_object('owner_field', 'owner_id') - ) - ) - ) - """ - tableProvision: JSON - - """ - Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - This is the ID used in entity_types, memberships_module, and all module tables. - """ - outMembershipType: Int - - """ - Output: the UUID of the created entity table. Populated by the trigger. - Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - """ - outEntityTableId: UUID - - """ - Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. - """ - outEntityTableName: String - - """ - Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - Populated by the trigger. Useful for verifying which modules were provisioned. - """ - outInstalledModules: [String] - - """ - Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. - """ - outStorageModuleId: UUID - - """ - Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. - """ - outBucketsTableId: UUID - - """ - Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. - """ - outFilesTableId: UUID - outPathSharesTableId: UUID - - """ - Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - (i.e. the invites_module row was created in a previous run). - """ - outInvitesModuleId: UUID - - """ - Output: the UUID of the namespace_module row created (or found) for this entity type. - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespaceModuleId: UUID - - """ - Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespacesTableId: UUID - - """ - Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespaceEventsTableId: UUID - outFunctionModuleId: UUID - outDefinitionsTableId: UUID - outInvocationsTableId: UUID - outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID - outRequirementsTableId: UUID - outConfigRequirementsTableId: UUID - outGraphModuleId: UUID - outGraphsTableId: UUID - outAgentModuleId: UUID - - """ - Reads a single `Database` that is related to this `EntityTypeProvision`. - """ - database: Database -} - -"""A `EntityTypeProvision` edge in the connection.""" -type EntityTypeProvisionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `EntityTypeProvision` at the end of the edge.""" - node: EntityTypeProvision -} - -"""Methods to use when ordering `EntityTypeProvision`.""" -enum EntityTypeProvisionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - NAME_ASC - NAME_DESC - PREFIX_ASC - PREFIX_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PARENT_ENTITY_ASC - PARENT_ENTITY_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - IS_VISIBLE_ASC - IS_VISIBLE_DESC - HAS_LIMITS_ASC - HAS_LIMITS_DESC - HAS_PROFILES_ASC - HAS_PROFILES_DESC - HAS_LEVELS_ASC - HAS_LEVELS_DESC - HAS_INVITES_ASC - HAS_INVITES_DESC - HAS_INVITE_ACHIEVEMENTS_ASC - HAS_INVITE_ACHIEVEMENTS_DESC - STORAGE_ASC - STORAGE_DESC - NAMESPACES_ASC - NAMESPACES_DESC - FUNCTIONS_ASC - FUNCTIONS_DESC - GRAPHS_ASC - GRAPHS_DESC - AGENTS_ASC - AGENTS_DESC - SKIP_ENTITY_POLICIES_ASC - SKIP_ENTITY_POLICIES_DESC - TABLE_PROVISION_ASC - TABLE_PROVISION_DESC - OUT_MEMBERSHIP_TYPE_ASC - OUT_MEMBERSHIP_TYPE_DESC - OUT_ENTITY_TABLE_ID_ASC - OUT_ENTITY_TABLE_ID_DESC - OUT_ENTITY_TABLE_NAME_ASC - OUT_ENTITY_TABLE_NAME_DESC - OUT_INSTALLED_MODULES_ASC - OUT_INSTALLED_MODULES_DESC - OUT_STORAGE_MODULE_ID_ASC - OUT_STORAGE_MODULE_ID_DESC - OUT_BUCKETS_TABLE_ID_ASC - OUT_BUCKETS_TABLE_ID_DESC - OUT_FILES_TABLE_ID_ASC - OUT_FILES_TABLE_ID_DESC - OUT_PATH_SHARES_TABLE_ID_ASC - OUT_PATH_SHARES_TABLE_ID_DESC - OUT_INVITES_MODULE_ID_ASC - OUT_INVITES_MODULE_ID_DESC - OUT_NAMESPACE_MODULE_ID_ASC - OUT_NAMESPACE_MODULE_ID_DESC - OUT_NAMESPACES_TABLE_ID_ASC - OUT_NAMESPACES_TABLE_ID_DESC - OUT_NAMESPACE_EVENTS_TABLE_ID_ASC - OUT_NAMESPACE_EVENTS_TABLE_ID_DESC - OUT_FUNCTION_MODULE_ID_ASC - OUT_FUNCTION_MODULE_ID_DESC - OUT_DEFINITIONS_TABLE_ID_ASC - OUT_DEFINITIONS_TABLE_ID_DESC - OUT_INVOCATIONS_TABLE_ID_ASC - 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_REQUIREMENTS_TABLE_ID_ASC - OUT_REQUIREMENTS_TABLE_ID_DESC - OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC - OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC - OUT_GRAPH_MODULE_ID_ASC - OUT_GRAPH_MODULE_ID_DESC - OUT_GRAPHS_TABLE_ID_ASC - OUT_GRAPHS_TABLE_ID_DESC - OUT_AGENT_MODULE_ID_ASC - OUT_AGENT_MODULE_ID_DESC -} - -type RateLimitsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - rateLimitSettingsTableId: UUID! - ipRateLimitsTableId: UUID! - rateLimitsTableId: UUID! - rateLimitSettingsTable: String! - ipRateLimitsTable: String! - rateLimitsTable: String! - - """Reads a single `Database` that is related to this `RateLimitsModule`.""" - database: Database - - """Reads a single `Table` that is related to this `RateLimitsModule`.""" - ipRateLimitsTableByIpRateLimitsTableId: Table - - """Reads a single `Table` that is related to this `RateLimitsModule`.""" - rateLimitSettingsTableByRateLimitSettingsTableId: Table - - """Reads a single `Table` that is related to this `RateLimitsModule`.""" - rateLimitsTableByRateLimitsTableId: Table - - """Reads a single `Schema` that is related to this `RateLimitsModule`.""" - schema: Schema -} - -type DevicesModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - userDevicesTableId: UUID! - deviceSettingsTableId: UUID! - userDevicesTable: String! - deviceSettingsTable: String! - - """Reads a single `Database` that is related to this `DevicesModule`.""" - database: Database - - """Reads a single `Table` that is related to this `DevicesModule`.""" - deviceSettingsTableByDeviceSettingsTableId: Table - - """Reads a single `Schema` that is related to this `DevicesModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `DevicesModule`.""" - userDevicesTableByUserDevicesTableId: Table -} - -"""A connection to a list of `WebauthnCredentialsModule` values.""" -type WebauthnCredentialsModuleConnection { - """A list of `WebauthnCredentialsModule` objects.""" - nodes: [WebauthnCredentialsModule]! - - """ - A list of edges which contains the `WebauthnCredentialsModule` and cursor to aid in pagination. - """ - edges: [WebauthnCredentialsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `WebauthnCredentialsModule` you could get from the connection. - """ - totalCount: Int! -} - -""" -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. -""" -type WebauthnCredentialsModule { - 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! - - """ - Reads a single `Database` that is related to this `WebauthnCredentialsModule`. - """ - database: Database - - """ - Reads a single `Table` that is related to this `WebauthnCredentialsModule`. - """ - ownerTable: Table - - """ - Reads a single `Schema` that is related to this `WebauthnCredentialsModule`. - """ - privateSchema: Schema - - """ - Reads a single `Schema` that is related to this `WebauthnCredentialsModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `WebauthnCredentialsModule`. - """ - table: Table -} - -"""A `WebauthnCredentialsModule` edge in the connection.""" -type WebauthnCredentialsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `WebauthnCredentialsModule` at the end of the edge.""" - node: WebauthnCredentialsModule -} - -"""Methods to use when ordering `WebauthnCredentialsModule`.""" -enum WebauthnCredentialsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC -} - -"""A connection to a list of `WebauthnAuthModule` values.""" -type WebauthnAuthModuleConnection { - """A list of `WebauthnAuthModule` objects.""" - nodes: [WebauthnAuthModule]! - - """ - A list of edges which contains the `WebauthnAuthModule` and cursor to aid in pagination. - """ - edges: [WebauthnAuthModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `WebauthnAuthModule` you could get from the connection. - """ - totalCount: Int! -} - -type WebauthnAuthModule { - 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! - - """Reads a single `Table` that is related to this `WebauthnAuthModule`.""" - authSettingsTable: Table - - """Reads a single `Table` that is related to this `WebauthnAuthModule`.""" - credentialsTable: Table - - """ - Reads a single `Database` that is related to this `WebauthnAuthModule`. - """ - database: Database - - """Reads a single `Schema` that is related to this `WebauthnAuthModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `WebauthnAuthModule`.""" - sessionCredentialsTable: Table - - """Reads a single `Table` that is related to this `WebauthnAuthModule`.""" - sessionSecretsTable: Table - - """Reads a single `Table` that is related to this `WebauthnAuthModule`.""" - sessionsTable: Table - - """Reads a single `Table` that is related to this `WebauthnAuthModule`.""" - usersTable: Table -} - -"""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 -} - -"""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 -} - -"""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! - schemaId: UUID! - privateSchemaId: UUID! - notificationsTableId: UUID! - readStateTableId: UUID! - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - ownerTableId: UUID! - userSettingsTableId: UUID - organizationSettingsTableId: UUID - hasChannels: Boolean! - hasPreferences: Boolean! - hasSettingsExtension: Boolean! - hasDigestMetadata: Boolean! - hasSubscriptions: Boolean! - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - channelsTableByChannelsTableId: Table - - """ - Reads a single `Database` that is related to this `NotificationsModule`. - """ - database: Database - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - deliveryLogTableByDeliveryLogTableId: Table - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - notificationsTableByNotificationsTableId: Table - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - organizationSettingsTableByOrganizationSettingsTableId: Table - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - ownerTable: Table - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - preferencesTableByPreferencesTableId: Table - - """Reads a single `Schema` that is related to this `NotificationsModule`.""" - privateSchema: Schema - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - readStateTableByReadStateTableId: Table - - """Reads a single `Schema` that is related to this `NotificationsModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `NotificationsModule`.""" - userSettingsTableByUserSettingsTableId: Table -} - -"""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 -} - -"""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 - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_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 - 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 -} - -type PlansModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - plansTableId: UUID! - plansTableName: String! - planLimitsTableId: UUID! - planLimitsTableName: String! - planPricingTableId: UUID - planOverridesTableId: UUID - applyPlanFunction: String! - applyPlanAggregateFunction: String! - prefix: String - - """Reads a single `Database` that is related to this `PlansModule`.""" - database: Database - - """Reads a single `Table` that is related to this `PlansModule`.""" - planLimitsTable: Table - - """Reads a single `Table` that is related to this `PlansModule`.""" - planOverridesTable: Table - - """Reads a single `Table` that is related to this `PlansModule`.""" - planPricingTable: Table - - """Reads a single `Table` that is related to this `PlansModule`.""" - plansTable: Table - - """Reads a single `Schema` that is related to this `PlansModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `PlansModule`.""" - schema: Schema -} - -type BillingModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - metersTableId: UUID! - metersTableName: String! - planSubscriptionsTableId: UUID! - planSubscriptionsTableName: String! - ledgerTableId: UUID! - ledgerTableName: String! - balancesTableId: UUID! - balancesTableName: String! - meterCreditsTableId: UUID! - meterCreditsTableName: String! - meterSourcesTableId: UUID! - meterSourcesTableName: String! - recordUsageFunction: String! - prefix: String - - """Reads a single `Table` that is related to this `BillingModule`.""" - balancesTable: Table - - """Reads a single `Database` that is related to this `BillingModule`.""" - database: Database - - """Reads a single `Table` that is related to this `BillingModule`.""" - ledgerTable: Table - - """Reads a single `Table` that is related to this `BillingModule`.""" - meterCreditsTable: Table - - """Reads a single `Table` that is related to this `BillingModule`.""" - meterSourcesTable: Table - - """Reads a single `Table` that is related to this `BillingModule`.""" - metersTable: Table - - """Reads a single `Table` that is related to this `BillingModule`.""" - planSubscriptionsTable: Table - - """Reads a single `Schema` that is related to this `BillingModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `BillingModule`.""" - schema: Schema -} - -type BillingProviderModule { - 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 - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - billingCustomersTable: Table - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - billingPricesTable: Table - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - billingProductsTable: Table - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - billingSubscriptionsTable: Table - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - billingWebhookEventsTable: Table - - """ - Reads a single `Database` that is related to this `BillingProviderModule`. - """ - database: Database - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - pricesTable: Table - - """ - Reads a single `Schema` that is related to this `BillingProviderModule`. - """ - privateSchema: Schema - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - productsTable: Table - - """ - Reads a single `Schema` that is related to this `BillingProviderModule`. - """ - schema: Schema - - """ - Reads a single `Table` that is related to this `BillingProviderModule`. - """ - subscriptionsTable: Table -} - -type RateLimitMetersModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - rateLimitStateTableId: UUID! - rateLimitStateTableName: String! - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String! - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String! - checkRateLimitFunction: String! - prefix: String - - """ - Reads a single `Database` that is related to this `RateLimitMetersModule`. - """ - database: Database - - """ - Reads a single `Schema` that is related to this `RateLimitMetersModule`. - """ - privateSchema: Schema - - """ - Reads a single `Table` that is related to this `RateLimitMetersModule`. - """ - rateLimitOverridesTableByRateLimitOverridesTableId: Table - - """ - Reads a single `Table` that is related to this `RateLimitMetersModule`. - """ - rateLimitStateTableByRateLimitStateTableId: Table - - """ - Reads a single `Table` that is related to this `RateLimitMetersModule`. - """ - rateWindowLimitsTableByRateWindowLimitsTableId: Table - - """ - Reads a single `Schema` that is related to this `RateLimitMetersModule`. - """ - schema: Schema -} - -"""A connection to a list of `InferenceLogModule` values.""" -type InferenceLogModuleConnection { - """A list of `InferenceLogModule` objects.""" - nodes: [InferenceLogModule]! - - """ - A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. - """ - edges: [InferenceLogModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `InferenceLogModule` you could get from the connection. - """ - totalCount: Int! -} - -type InferenceLogModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - inferenceLogTableId: UUID! - inferenceLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String - - """ - Reads a single `Database` that is related to this `InferenceLogModule`. - """ - database: Database - - """Reads a single `Table` that is related to this `InferenceLogModule`.""" - inferenceLogTable: Table - - """Reads a single `Schema` that is related to this `InferenceLogModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `InferenceLogModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `InferenceLogModule`.""" - usageDailyTable: Table -} - -"""A `InferenceLogModule` edge in the connection.""" -type InferenceLogModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `InferenceLogModule` at the end of the edge.""" - node: InferenceLogModule -} - -"""Methods to use when ordering `InferenceLogModule`.""" -enum InferenceLogModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - INFERENCE_LOG_TABLE_ID_ASC - INFERENCE_LOG_TABLE_ID_DESC - INFERENCE_LOG_TABLE_NAME_ASC - INFERENCE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC -} - -"""A connection to a list of `ComputeLogModule` values.""" -type ComputeLogModuleConnection { - """A list of `ComputeLogModule` objects.""" - nodes: [ComputeLogModule]! - - """ - A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. - """ - edges: [ComputeLogModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `ComputeLogModule` you could get from the connection. - """ - totalCount: Int! -} - -type ComputeLogModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - computeLogTableId: UUID! - computeLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String - - """Reads a single `Table` that is related to this `ComputeLogModule`.""" - computeLogTable: Table - - """Reads a single `Database` that is related to this `ComputeLogModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `ComputeLogModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `ComputeLogModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `ComputeLogModule`.""" - usageDailyTable: Table -} - -"""A `ComputeLogModule` edge in the connection.""" -type ComputeLogModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ComputeLogModule` at the end of the edge.""" - node: ComputeLogModule -} - -"""Methods to use when ordering `ComputeLogModule`.""" -enum ComputeLogModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - COMPUTE_LOG_TABLE_ID_ASC - COMPUTE_LOG_TABLE_ID_DESC - COMPUTE_LOG_TABLE_NAME_ASC - COMPUTE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC -} - -"""A connection to a list of `TransferLogModule` values.""" -type TransferLogModuleConnection { - """A list of `TransferLogModule` objects.""" - nodes: [TransferLogModule]! - - """ - A list of edges which contains the `TransferLogModule` and cursor to aid in pagination. - """ - edges: [TransferLogModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `TransferLogModule` you could get from the connection. - """ - totalCount: Int! -} - -type TransferLogModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - transferLogTableId: UUID! - transferLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String - - """Reads a single `Database` that is related to this `TransferLogModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `TransferLogModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `TransferLogModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `TransferLogModule`.""" - transferLogTable: Table - - """Reads a single `Table` that is related to this `TransferLogModule`.""" - usageDailyTable: Table -} - -"""A `TransferLogModule` edge in the connection.""" -type TransferLogModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `TransferLogModule` at the end of the edge.""" - node: TransferLogModule -} - -"""Methods to use when ordering `TransferLogModule`.""" -enum TransferLogModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TRANSFER_LOG_TABLE_ID_ASC - TRANSFER_LOG_TABLE_ID_DESC - TRANSFER_LOG_TABLE_NAME_ASC - TRANSFER_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC -} - -"""A connection to a list of `StorageLogModule` values.""" -type StorageLogModuleConnection { - """A list of `StorageLogModule` objects.""" - nodes: [StorageLogModule]! - - """ - A list of edges which contains the `StorageLogModule` and cursor to aid in pagination. - """ - edges: [StorageLogModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `StorageLogModule` you could get from the connection. - """ - totalCount: Int! -} - -type StorageLogModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - storageLogTableId: UUID! - storageLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String - - """Reads a single `Database` that is related to this `StorageLogModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `StorageLogModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `StorageLogModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `StorageLogModule`.""" - storageLogTable: Table - - """Reads a single `Table` that is related to this `StorageLogModule`.""" - usageDailyTable: Table -} - -"""A `StorageLogModule` edge in the connection.""" -type StorageLogModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `StorageLogModule` at the end of the edge.""" - node: StorageLogModule -} - -"""Methods to use when ordering `StorageLogModule`.""" -enum StorageLogModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - STORAGE_LOG_TABLE_ID_ASC - STORAGE_LOG_TABLE_ID_DESC - STORAGE_LOG_TABLE_NAME_ASC - STORAGE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC -} - -"""A connection to a list of `DbUsageModule` values.""" -type DbUsageModuleConnection { - """A list of `DbUsageModule` objects.""" - nodes: [DbUsageModule]! - - """ - A list of edges which contains the `DbUsageModule` and cursor to aid in pagination. - """ - edges: [DbUsageModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `DbUsageModule` you could get from the connection.""" - totalCount: Int! -} - -type DbUsageModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - tableStatsLogTableId: UUID! - tableStatsLogTableName: String! - tableStatsDailyTableId: UUID! - tableStatsDailyTableName: String! - queryStatsLogTableId: UUID! - queryStatsLogTableName: String! - queryStatsDailyTableId: UUID! - queryStatsDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - prefix: String - - """Reads a single `Database` that is related to this `DbUsageModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `DbUsageModule`.""" - privateSchema: Schema - - """Reads a single `Table` that is related to this `DbUsageModule`.""" - queryStatsDailyTable: Table - - """Reads a single `Table` that is related to this `DbUsageModule`.""" - queryStatsLogTable: Table - - """Reads a single `Schema` that is related to this `DbUsageModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `DbUsageModule`.""" - tableStatsDailyTable: Table - - """Reads a single `Table` that is related to this `DbUsageModule`.""" - tableStatsLogTable: Table -} - -"""A `DbUsageModule` edge in the connection.""" -type DbUsageModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DbUsageModule` at the end of the edge.""" - node: DbUsageModule -} - -"""Methods to use when ordering `DbUsageModule`.""" -enum DbUsageModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_STATS_LOG_TABLE_ID_ASC - TABLE_STATS_LOG_TABLE_ID_DESC - TABLE_STATS_LOG_TABLE_NAME_ASC - TABLE_STATS_LOG_TABLE_NAME_DESC - TABLE_STATS_DAILY_TABLE_ID_ASC - TABLE_STATS_DAILY_TABLE_ID_DESC - TABLE_STATS_DAILY_TABLE_NAME_ASC - TABLE_STATS_DAILY_TABLE_NAME_DESC - QUERY_STATS_LOG_TABLE_ID_ASC - QUERY_STATS_LOG_TABLE_ID_DESC - QUERY_STATS_LOG_TABLE_NAME_ASC - QUERY_STATS_LOG_TABLE_NAME_DESC - QUERY_STATS_DAILY_TABLE_ID_ASC - QUERY_STATS_DAILY_TABLE_ID_DESC - QUERY_STATS_DAILY_TABLE_NAME_ASC - QUERY_STATS_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC -} - -"""A connection to a list of `AgentModule` values.""" -type AgentModuleConnection { - """A list of `AgentModule` objects.""" - nodes: [AgentModule]! - - """ - A list of edges which contains the `AgentModule` and cursor to aid in pagination. - """ - edges: [AgentModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AgentModule` you could get from the connection.""" - totalCount: Int! -} - -type AgentModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - threadTableId: UUID! - messageTableId: UUID! - taskTableId: UUID! - promptsTableId: UUID! - knowledgeTableId: UUID - threadTableName: String! - messageTableName: String! - taskTableName: String! - promptsTableName: String! - knowledgeTableName: String! - hasKnowledge: Boolean! - apiName: String - membershipType: Int - key: String! - entityTableId: UUID - policies: JSON - knowledgeConfig: JSON - knowledgePolicies: JSON - provisions: JSON - - """Reads a single `Database` that is related to this `AgentModule`.""" - database: Database - - """Reads a single `Table` that is related to this `AgentModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `AgentModule`.""" - knowledgeTable: Table - - """Reads a single `Table` that is related to this `AgentModule`.""" - messageTable: Table - - """Reads a single `Schema` that is related to this `AgentModule`.""" - privateSchema: Schema - - """Reads a single `Table` that is related to this `AgentModule`.""" - promptsTable: Table - - """Reads a single `Schema` that is related to this `AgentModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `AgentModule`.""" - taskTable: Table - - """Reads a single `Table` that is related to this `AgentModule`.""" - threadTable: Table -} - -"""A `AgentModule` edge in the connection.""" -type AgentModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AgentModule` at the end of the edge.""" - node: AgentModule -} - -"""Methods to use when ordering `AgentModule`.""" -enum AgentModuleOrderBy { - 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 - 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 - KNOWLEDGE_TABLE_ID_ASC - KNOWLEDGE_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 - KNOWLEDGE_TABLE_NAME_ASC - KNOWLEDGE_TABLE_NAME_DESC - HAS_KNOWLEDGE_ASC - HAS_KNOWLEDGE_DESC - API_NAME_ASC - API_NAME_DESC - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - KEY_ASC - KEY_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - KNOWLEDGE_CONFIG_ASC - KNOWLEDGE_CONFIG_DESC - KNOWLEDGE_POLICIES_ASC - KNOWLEDGE_POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC -} - -"""A connection to a list of `NamespaceModule` values.""" -type NamespaceModuleConnection { - """A list of `NamespaceModule` objects.""" - nodes: [NamespaceModule]! - - """ - A list of edges which contains the `NamespaceModule` and cursor to aid in pagination. - """ - edges: [NamespaceModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `NamespaceModule` you could get from the connection. - """ - totalCount: Int! -} - -type NamespaceModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - namespacesTableId: UUID! - namespaceEventsTableId: UUID! - namespacesTableName: String! - namespaceEventsTableName: String! - apiName: String - privateApiName: String - membershipType: Int - key: String! - entityTableId: UUID - policies: JSON - provisions: JSON - - """Reads a single `Database` that is related to this `NamespaceModule`.""" - database: Database - - """Reads a single `Table` that is related to this `NamespaceModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `NamespaceModule`.""" - namespaceEventsTable: Table - - """Reads a single `Table` that is related to this `NamespaceModule`.""" - namespacesTable: Table - - """Reads a single `Schema` that is related to this `NamespaceModule`.""" - privateSchema: Schema - - """Reads a single `Schema` that is related to this `NamespaceModule`.""" - schema: Schema -} - -"""A `NamespaceModule` edge in the connection.""" -type NamespaceModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `NamespaceModule` at the end of the edge.""" - node: NamespaceModule -} - -"""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 - 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 - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - KEY_ASC - KEY_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_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 FunctionModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - definitionsTableId: UUID! - invocationsTableId: UUID! - executionLogsTableId: UUID! - secretDefinitionsTableId: UUID! - requirementsTableId: UUID! - configDefinitionsTableId: UUID! - configRequirementsTableId: UUID! - definitionsTableName: String! - invocationsTableName: String! - executionLogsTableName: String! - secretDefinitionsTableName: String! - requirementsTableName: String! - configRequirementsTableName: String! - apiName: String - privateApiName: String - membershipType: Int - prefix: String - key: String! - entityTableId: UUID - policies: JSON - provisions: JSON - - """Reads a single `Table` that is related to this `FunctionModule`.""" - configDefinitionsTable: Table - - """Reads a single `Table` that is related to this `FunctionModule`.""" - configRequirementsTable: Table - - """Reads a single `Database` that is related to this `FunctionModule`.""" - database: Database - - """Reads a single `Table` that is related to this `FunctionModule`.""" - definitionsTable: Table - - """Reads a single `Table` that is related to this `FunctionModule`.""" - entityTable: Table - - """Reads a single `Table` that is related to this `FunctionModule`.""" - executionLogsTable: Table - - """Reads a single `Table` that is related to this `FunctionModule`.""" - invocationsTable: Table - - """Reads a single `Schema` that is related to this `FunctionModule`.""" - privateSchema: Schema - - """Reads a single `Table` that is related to this `FunctionModule`.""" - requirementsTable: Table - - """Reads a single `Schema` that is related to this `FunctionModule`.""" - schema: Schema - - """Reads a single `Table` that is related to this `FunctionModule`.""" - secretDefinitionsTable: Table -} - -"""A `FunctionModule` edge in the connection.""" -type FunctionModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `FunctionModule` at the end of the edge.""" - node: FunctionModule -} - -"""Methods to use when ordering `FunctionModule`.""" -enum FunctionModuleOrderBy { - 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 - DEFINITIONS_TABLE_ID_ASC - DEFINITIONS_TABLE_ID_DESC - INVOCATIONS_TABLE_ID_ASC - INVOCATIONS_TABLE_ID_DESC - EXECUTION_LOGS_TABLE_ID_ASC - EXECUTION_LOGS_TABLE_ID_DESC - SECRET_DEFINITIONS_TABLE_ID_ASC - SECRET_DEFINITIONS_TABLE_ID_DESC - REQUIREMENTS_TABLE_ID_ASC - REQUIREMENTS_TABLE_ID_DESC - CONFIG_DEFINITIONS_TABLE_ID_ASC - CONFIG_DEFINITIONS_TABLE_ID_DESC - CONFIG_REQUIREMENTS_TABLE_ID_ASC - CONFIG_REQUIREMENTS_TABLE_ID_DESC - DEFINITIONS_TABLE_NAME_ASC - DEFINITIONS_TABLE_NAME_DESC - INVOCATIONS_TABLE_NAME_ASC - INVOCATIONS_TABLE_NAME_DESC - EXECUTION_LOGS_TABLE_NAME_ASC - EXECUTION_LOGS_TABLE_NAME_DESC - SECRET_DEFINITIONS_TABLE_NAME_ASC - SECRET_DEFINITIONS_TABLE_NAME_DESC - REQUIREMENTS_TABLE_NAME_ASC - REQUIREMENTS_TABLE_NAME_DESC - CONFIG_REQUIREMENTS_TABLE_NAME_ASC - CONFIG_REQUIREMENTS_TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - MEMBERSHIP_TYPE_ASC - MEMBERSHIP_TYPE_DESC - PREFIX_ASC - PREFIX_DESC - KEY_ASC - KEY_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC -} - -"""A connection to a list of `DatabaseProvisionModule` values.""" -type DatabaseProvisionModuleConnection { - """A list of `DatabaseProvisionModule` objects.""" - nodes: [DatabaseProvisionModule]! - - """ - A list of edges which contains the `DatabaseProvisionModule` and cursor to aid in pagination. - """ - edges: [DatabaseProvisionModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `DatabaseProvisionModule` 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. -""" -type DatabaseProvisionModule { - 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! - - """ - Explicit array of module IDs to install (e.g. users_module, storage_module:full) - """ - modules: [String]! - - """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 ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID - createdAt: Datetime! - updatedAt: Datetime! - completedAt: Datetime - - """ - Reads a single `Database` that is related to this `DatabaseProvisionModule`. - """ - database: Database -} - -"""A `DatabaseProvisionModule` edge in the connection.""" -type DatabaseProvisionModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DatabaseProvisionModule` at the end of the edge.""" - node: DatabaseProvisionModule -} - -"""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 - DATABASE_ID_ASC - DATABASE_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC -} - -"""A `Database` edge in the connection.""" -type DatabaseEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Database` at the end of the edge.""" - node: Database -} - -"""Methods to use when ordering `Database`.""" -enum DatabaseOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - OWNER_ID_ASC - OWNER_ID_DESC - SCHEMA_HASH_ASC - SCHEMA_HASH_DESC - NAME_ASC - NAME_DESC - LABEL_ASC - LABEL_DESC - HASH_ASC - HASH_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -""" -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status -""" -type AppMembership { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean! - - """Whether this member has been banned from the entity""" - isBanned: Boolean! - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean! - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean! - - """Whether the actor is the owner of this entity""" - isOwner: Boolean! - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString! - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString! - - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID - - """Reads a single `User` that is related to this `AppMembership`.""" - actor: User -} - -"""A connection to a list of `AppAdminGrant` values.""" -type AppAdminGrantConnection { - """A list of `AppAdminGrant` objects.""" - nodes: [AppAdminGrant]! - - """ - A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. - """ - edges: [AppAdminGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppAdminGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of admin role grants and revocations between members""" -type AppAdminGrant { - id: UUID! - - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppAdminGrant`.""" - actor: User - - """Reads a single `User` that is related to this `AppAdminGrant`.""" - grantor: User -} - -"""A `AppAdminGrant` edge in the connection.""" -type AppAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppAdminGrant` at the end of the edge.""" - node: AppAdminGrant -} - -"""Methods to use when ordering `AppAdminGrant`.""" -enum AppAdminGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppOwnerGrant` values.""" -type AppOwnerGrantConnection { - """A list of `AppOwnerGrant` objects.""" - nodes: [AppOwnerGrant]! - - """ - A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. - """ - edges: [AppOwnerGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppOwnerGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of ownership transfers and grants between members""" -type AppOwnerGrant { - id: UUID! - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! - - """The member receiving or losing the ownership grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppOwnerGrant`.""" - actor: User - - """Reads a single `User` that is related to this `AppOwnerGrant`.""" - grantor: User -} - -"""A `AppOwnerGrant` edge in the connection.""" -type AppOwnerGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppOwnerGrant` at the end of the edge.""" - node: AppOwnerGrant -} - -"""Methods to use when ordering `AppOwnerGrant`.""" -enum AppOwnerGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppGrant` values.""" -type AppGrantConnection { - """A list of `AppGrant` objects.""" - nodes: [AppGrant]! - - """ - A list of edges which contains the `AppGrant` and cursor to aid in pagination. - """ - edges: [AppGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppGrant` you could get from the connection.""" - totalCount: Int! -} - -""" -Records of individual permission grants and revocations for members via bitmask -""" -type AppGrant { - id: UUID! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppGrant`.""" - actor: User - - """Reads a single `User` that is related to this `AppGrant`.""" - grantor: User -} - -"""A `AppGrant` edge in the connection.""" -type AppGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppGrant` at the end of the edge.""" - node: AppGrant -} - -"""Methods to use when ordering `AppGrant`.""" -enum AppGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgMembership` values.""" -type OrgMembershipConnection { - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! - - """ - A list of edges which contains the `OrgMembership` and cursor to aid in pagination. - """ - edges: [OrgMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgMembership` you could get from the connection.""" - totalCount: Int! -} - -""" -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status -""" -type OrgMembership { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean! - - """Whether this member has been banned from the entity""" - isBanned: Boolean! - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean! - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean! - - """Whether the actor is the owner of this entity""" - isOwner: Boolean! - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString! - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString! - - """References the user who holds this membership""" - actorId: UUID! - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean! - profileId: UUID - - """Reads a single `User` that is related to this `OrgMembership`.""" - actor: User - - """Reads a single `User` that is related to this `OrgMembership`.""" - entity: User - - """ - Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. - """ - orgMemberProfileByMembershipId: OrgMemberProfile -} - -""" -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) -""" -type OrgMemberProfile { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """Reads a single `User` that is related to this `OrgMemberProfile`.""" - actor: User - - """Reads a single `User` that is related to this `OrgMemberProfile`.""" - entity: User - - """ - Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. - """ - membership: OrgMembership -} - -"""A `OrgMembership` edge in the connection.""" -type OrgMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembership` at the end of the edge.""" - node: OrgMembership -} - -"""Methods to use when ordering `OrgMembership`.""" -enum OrgMembershipOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_EXTERNAL_ASC - IS_EXTERNAL_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} - -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type OrgMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """References the entity these membership defaults apply to""" - entityId: UUID! - - """Reads a single `User` that is related to this `OrgMembershipDefault`.""" - entity: User -} - -"""Per-entity settings for the memberships module""" -type OrgMembershipSetting { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean! - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean! - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean! - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean! - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean! - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String! - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean! - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String! - - """Reads a single `User` that is related to this `OrgMembershipSetting`.""" - entity: User -} - -"""A connection to a list of `OrgMember` values.""" -type OrgMemberConnection { - """A list of `OrgMember` objects.""" - nodes: [OrgMember]! - - """ - A list of edges which contains the `OrgMember` and cursor to aid in pagination. - """ - edges: [OrgMemberEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgMember` you could get from the connection.""" - totalCount: Int! -} - -""" -Simplified view of active members in an entity, used for listing who belongs to an org or group -""" -type OrgMember { - id: UUID! - - """Whether this member has admin privileges""" - isAdmin: Boolean! - - """References the user who is a member""" - actorId: UUID! - - """References the entity (org or group) this member belongs to""" - entityId: UUID! - - """Reads a single `User` that is related to this `OrgMember`.""" - actor: User - - """Reads a single `User` that is related to this `OrgMember`.""" - entity: User -} - -"""A `OrgMember` edge in the connection.""" -type OrgMemberEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMember` at the end of the edge.""" - node: OrgMember -} - -"""Methods to use when ordering `OrgMember`.""" -enum OrgMemberOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `OrgAdminGrant` values.""" -type OrgAdminGrantConnection { - """A list of `OrgAdminGrant` objects.""" - nodes: [OrgAdminGrant]! - - """ - A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. - """ - edges: [OrgAdminGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgAdminGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of admin role grants and revocations between members""" -type OrgAdminGrant { - id: UUID! - - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - - """The member receiving or losing the admin grant""" - actorId: UUID! - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `OrgAdminGrant`.""" - actor: User - - """Reads a single `User` that is related to this `OrgAdminGrant`.""" - entity: User - - """Reads a single `User` that is related to this `OrgAdminGrant`.""" - grantor: User -} - -"""A `OrgAdminGrant` edge in the connection.""" -type OrgAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgAdminGrant` at the end of the edge.""" - node: OrgAdminGrant -} - -"""Methods to use when ordering `OrgAdminGrant`.""" -enum OrgAdminGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgOwnerGrant` values.""" -type OrgOwnerGrantConnection { - """A list of `OrgOwnerGrant` objects.""" - nodes: [OrgOwnerGrant]! - - """ - A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. - """ - edges: [OrgOwnerGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgOwnerGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of ownership transfers and grants between members""" -type OrgOwnerGrant { - id: UUID! - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! - - """The member receiving or losing the ownership grant""" - actorId: UUID! - - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `OrgOwnerGrant`.""" - actor: User - - """Reads a single `User` that is related to this `OrgOwnerGrant`.""" - entity: User - - """Reads a single `User` that is related to this `OrgOwnerGrant`.""" - grantor: User -} - -"""A `OrgOwnerGrant` edge in the connection.""" -type OrgOwnerGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgOwnerGrant` at the end of the edge.""" - node: OrgOwnerGrant -} - -"""Methods to use when ordering `OrgOwnerGrant`.""" -enum OrgOwnerGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgMemberProfile` values.""" -type OrgMemberProfileConnection { - """A list of `OrgMemberProfile` objects.""" - nodes: [OrgMemberProfile]! - - """ - A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. - """ - edges: [OrgMemberProfileEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMemberProfile` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMemberProfile` edge in the connection.""" -type OrgMemberProfileEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMemberProfile` at the end of the edge.""" - node: OrgMemberProfile -} - -"""Methods to use when ordering `OrgMemberProfile`.""" -enum OrgMemberProfileOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - EMAIL_ASC - EMAIL_DESC - TITLE_ASC - TITLE_DESC - BIO_ASC - BIO_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC -} - -"""A connection to a list of `OrgGrant` values.""" -type OrgGrantConnection { - """A list of `OrgGrant` objects.""" - nodes: [OrgGrant]! - - """ - A list of edges which contains the `OrgGrant` and cursor to aid in pagination. - """ - edges: [OrgGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgGrant` you could get from the connection.""" - totalCount: Int! -} - -""" -Records of individual permission grants and revocations for members via bitmask -""" -type OrgGrant { - id: UUID! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! - - """The member receiving or losing the permission grant""" - actorId: UUID! - - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `OrgGrant`.""" - actor: User - - """Reads a single `User` that is related to this `OrgGrant`.""" - entity: User - - """Reads a single `User` that is related to this `OrgGrant`.""" - grantor: User -} - -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant -} - -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgChartEdge` values.""" -type OrgChartEdgeConnection { - """A list of `OrgChartEdge` objects.""" - nodes: [OrgChartEdge]! - - """ - A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. - """ - edges: [OrgChartEdgeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgChartEdge` you could get from the connection.""" - totalCount: Int! -} - -""" -Organizational chart edges defining parent-child reporting relationships between members within an entity -""" -type OrgChartEdge { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID! - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Job title or role name for this position in the org chart""" - positionTitle: String - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int - - """Reads a single `User` that is related to this `OrgChartEdge`.""" - child: User - - """Reads a single `User` that is related to this `OrgChartEdge`.""" - entity: User - - """Reads a single `User` that is related to this `OrgChartEdge`.""" - parent: User -} - -"""A `OrgChartEdge` edge in the connection.""" -type OrgChartEdgeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgChartEdge` at the end of the edge.""" - node: OrgChartEdge -} - -"""Methods to use when ordering `OrgChartEdge`.""" -enum OrgChartEdgeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC -} - -"""A connection to a list of `OrgChartEdgeGrant` values.""" -type OrgChartEdgeGrantConnection { - """A list of `OrgChartEdgeGrant` objects.""" - nodes: [OrgChartEdgeGrant]! - - """ - A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. - """ - edges: [OrgChartEdgeGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. - """ - totalCount: Int! -} - -""" -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table -""" -type OrgChartEdgeGrant { - id: UUID! - - """Organization this grant applies to""" - entityId: UUID! - - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean! - - """Job title or role name being assigned in this grant""" - positionTitle: String - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime! - - """Reads a single `User` that is related to this `OrgChartEdgeGrant`.""" - child: User - - """Reads a single `User` that is related to this `OrgChartEdgeGrant`.""" - entity: User - - """Reads a single `User` that is related to this `OrgChartEdgeGrant`.""" - grantor: User - - """Reads a single `User` that is related to this `OrgChartEdgeGrant`.""" - parent: User -} - -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant -} - -"""Methods to use when ordering `OrgChartEdgeGrant`.""" -enum OrgChartEdgeGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} - -"""A connection to a list of `OrgPermissionDefault` values.""" -type OrgPermissionDefaultConnection { - """A list of `OrgPermissionDefault` objects.""" - nodes: [OrgPermissionDefault]! - - """ - A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. - """ - edges: [OrgPermissionDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgPermissionDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type OrgPermissionDefault { - id: UUID! - - """Default permission bitmask applied to new members""" - permissions: BitString! - - """References the entity these default permissions apply to""" - entityId: UUID! - - """Reads a single `User` that is related to this `OrgPermissionDefault`.""" - entity: User -} - -"""A `OrgPermissionDefault` edge in the connection.""" -type OrgPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgPermissionDefault` at the end of the edge.""" - node: OrgPermissionDefault -} - -"""Methods to use when ordering `OrgPermissionDefault`.""" -enum OrgPermissionDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `AppLimit` values.""" -type AppLimitConnection { - """A list of `AppLimit` objects.""" - nodes: [AppLimit]! - - """ - A list of edges which contains the `AppLimit` and cursor to aid in pagination. - """ - edges: [AppLimitEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimit` you could get from the connection.""" - totalCount: Int! -} - -"""Tracks per-actor usage counts against configurable maximum limits""" -type AppLimit { - id: UUID! - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Reads a single `User` that is related to this `AppLimit`.""" - actor: User -} - -"""A `AppLimit` edge in the connection.""" -type AppLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimit` at the end of the edge.""" - node: AppLimit -} - -"""Methods to use when ordering `AppLimit`.""" -enum AppLimitOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC -} - -"""A connection to a list of `AppLimitCredit` values.""" -type AppLimitCreditConnection { - """A list of `AppLimitCredit` objects.""" - nodes: [AppLimitCredit]! - - """ - A list of edges which contains the `AppLimitCredit` and cursor to aid in pagination. - """ - edges: [AppLimitCreditEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimitCredit` you could get from the connection.""" - totalCount: Int! -} - -""" -Append-only ledger of credit grants that automatically update limit ceilings -""" -type AppLimitCredit { - id: UUID! - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String - - """Reads a single `User` that is related to this `AppLimitCredit`.""" - actor: User - - """ - Reads a single `AppLimitDefault` that is related to this `AppLimitCredit`. - """ - defaultLimit: AppLimitDefault -} - -""" -Default maximum values for each named limit, applied when no per-actor override exists -""" -type AppLimitDefault { - id: UUID! - - """Name identifier of the limit this default applies to""" - name: String! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCreditsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditFilter - - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection! - - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItemsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditCodeItemFilter - - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection! -} - -"""Methods to use when ordering `AppLimitCredit`.""" -enum AppLimitCreditOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - REASON_ASC - REASON_DESC -} - -"""A connection to a list of `AppLimitCreditCodeItem` values.""" -type AppLimitCreditCodeItemConnection { - """A list of `AppLimitCreditCodeItem` objects.""" - nodes: [AppLimitCreditCodeItem]! - - """ - A list of edges which contains the `AppLimitCreditCodeItem` and cursor to aid in pagination. - """ - edges: [AppLimitCreditCodeItemEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitCreditCodeItem` you could get from the connection. - """ - totalCount: Int! -} - -""" -Items within a credit code — each row grants credits for a specific limit definition -""" -type AppLimitCreditCodeItem { - id: UUID! - - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! - - """Number of credits this item grants per redemption""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! - - """ - Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditCodeItem`. - """ - creditCode: AppLimitCreditCode - - """ - Reads a single `AppLimitDefault` that is related to this `AppLimitCreditCodeItem`. - """ - defaultLimit: AppLimitDefault -} - -""" -Redeemable credit codes managed by admins with the add_credits permission -""" -type AppLimitCreditCode { - id: UUID! - - """Human-readable credit code (case-insensitive, unique)""" - code: String! - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int! - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime - - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItemsByCreditCodeId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditCodeItemFilter - - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection! - - """ - Reads and enables pagination through a set of `AppLimitCreditRedemption`. - """ - appLimitCreditRedemptionsByCreditCodeId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: AppLimitCreditRedemptionFilter - - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionConnection! -} - -"""Methods to use when ordering `AppLimitCreditCodeItem`.""" -enum AppLimitCreditCodeItemOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREDIT_CODE_ID_ASC - CREDIT_CODE_ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC -} - -"""A connection to a list of `AppLimitCreditRedemption` values.""" -type AppLimitCreditRedemptionConnection { - """A list of `AppLimitCreditRedemption` objects.""" - nodes: [AppLimitCreditRedemption]! - - """ - A list of edges which contains the `AppLimitCreditRedemption` and cursor to aid in pagination. - """ - edges: [AppLimitCreditRedemptionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitCreditRedemption` you could get from the connection. - """ - totalCount: Int! -} - -""" -Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits -""" -type AppLimitCreditRedemption { - id: UUID! - - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID! - - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID! - - """ - Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditRedemption`. - """ - creditCode: AppLimitCreditCode -} - -"""A `AppLimitCreditRedemption` edge in the connection.""" -type AppLimitCreditRedemptionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCreditRedemption` at the end of the edge.""" - node: AppLimitCreditRedemption -} - -"""Methods to use when ordering `AppLimitCreditRedemption`.""" -enum AppLimitCreditRedemptionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREDIT_CODE_ID_ASC - CREDIT_CODE_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A `AppLimitCreditCodeItem` edge in the connection.""" -type AppLimitCreditCodeItemEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCreditCodeItem` at the end of the edge.""" - node: AppLimitCreditCodeItem -} - -"""A `AppLimitCredit` edge in the connection.""" -type AppLimitCreditEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCredit` at the end of the edge.""" - node: AppLimitCredit -} - -"""A connection to a list of `OrgLimit` values.""" -type OrgLimitConnection { - """A list of `OrgLimit` objects.""" - nodes: [OrgLimit]! - - """ - A list of edges which contains the `OrgLimit` and cursor to aid in pagination. - """ - edges: [OrgLimitEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimit` you could get from the connection.""" - totalCount: Int! -} - -"""Tracks per-actor usage counts against configurable maximum limits""" -type OrgLimit { - id: UUID! - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Reads a single `User` that is related to this `OrgLimit`.""" - actor: User - - """Reads a single `User` that is related to this `OrgLimit`.""" - entity: User -} - -"""A `OrgLimit` edge in the connection.""" -type OrgLimitEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimit` at the end of the edge.""" - node: OrgLimit -} - -"""Methods to use when ordering `OrgLimit`.""" -enum OrgLimitOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC -} - -"""A connection to a list of `OrgLimitCredit` values.""" -type OrgLimitCreditConnection { - """A list of `OrgLimitCredit` objects.""" - nodes: [OrgLimitCredit]! - - """ - A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. - """ - edges: [OrgLimitCreditEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitCredit` you could get from the connection.""" - totalCount: Int! -} - -""" -Append-only ledger of credit grants that automatically update limit ceilings -""" -type OrgLimitCredit { - id: UUID! - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String - - """Reads a single `User` that is related to this `OrgLimitCredit`.""" - actor: User - - """ - Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. - """ - defaultLimit: OrgLimitDefault - - """Reads a single `User` that is related to this `OrgLimitCredit`.""" - entity: User -} - -""" -Default maximum values for each named limit, applied when no per-actor override exists -""" -type OrgLimitDefault { - id: UUID! - - """Name identifier of the limit this default applies to""" - name: String! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCreditsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: 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: OrgLimitCreditFilter - - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection! -} - -"""Methods to use when ordering `OrgLimitCredit`.""" -enum OrgLimitCreditOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - REASON_ASC - REASON_DESC -} - -"""A `OrgLimitCredit` edge in the connection.""" -type OrgLimitCreditEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCredit` at the end of the edge.""" - node: OrgLimitCredit -} - -"""A connection to a list of `OrgLimitAggregate` values.""" -type OrgLimitAggregateConnection { - """A list of `OrgLimitAggregate` objects.""" - nodes: [OrgLimitAggregate]! - - """ - A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. - """ - edges: [OrgLimitAggregateEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitAggregate` you could get from the connection. - """ - totalCount: Int! -} - -""" -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) -""" -type OrgLimitAggregate { - id: UUID! - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Reads a single `User` that is related to this `OrgLimitAggregate`.""" - entity: User -} - -"""A `OrgLimitAggregate` edge in the connection.""" -type OrgLimitAggregateEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitAggregate` at the end of the edge.""" - node: OrgLimitAggregate -} - -"""Methods to use when ordering `OrgLimitAggregate`.""" -enum OrgLimitAggregateOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - RESERVED_ASC - RESERVED_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC -} - -"""A connection to a list of `OrgLimitWarning` values.""" -type OrgLimitWarningConnection { - """A list of `OrgLimitWarning` objects.""" - nodes: [OrgLimitWarning]! - - """ - A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. - """ - edges: [OrgLimitWarningEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitWarning` you could get from the connection. - """ - totalCount: Int! -} - -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type OrgLimitWarning { - id: UUID! - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID - - """Reads a single `User` that is related to this `OrgLimitWarning`.""" - entity: User -} - -"""A `OrgLimitWarning` edge in the connection.""" -type OrgLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitWarning` at the end of the edge.""" - node: OrgLimitWarning -} - -"""Methods to use when ordering `OrgLimitWarning`.""" -enum OrgLimitWarningOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `Email` values.""" -type EmailConnection { - """A list of `Email` objects.""" - nodes: [Email]! - - """ - A list of edges which contains the `Email` and cursor to aid in pagination. - """ - edges: [EmailEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Email` you could get from the connection.""" - totalCount: Int! -} - -"""User email addresses with verification and primary-email management""" -type Email { - id: UUID! - ownerId: UUID! - - """The email address""" - email: ConstructiveInternalTypeEmail! - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean! - - """Whether this is the user's primary email address""" - isPrimary: Boolean! - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `Email`.""" - owner: User -} - -"""A `Email` edge in the connection.""" -type EmailEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Email` at the end of the edge.""" - node: Email -} - -"""Methods to use when ordering `Email`.""" -enum EmailOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - OWNER_ID_ASC - OWNER_ID_DESC - EMAIL_ASC - EMAIL_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_PRIMARY_ASC - IS_PRIMARY_DESC - NAME_ASC - NAME_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `PhoneNumber` values.""" -type PhoneNumberConnection { - """A list of `PhoneNumber` objects.""" - nodes: [PhoneNumber]! - - """ - A list of edges which contains the `PhoneNumber` and cursor to aid in pagination. - """ - edges: [PhoneNumberEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `PhoneNumber` you could get from the connection.""" - totalCount: Int! -} - -""" -User phone numbers with country code, verification, and primary-number management -""" -type PhoneNumber { - id: UUID! - ownerId: UUID! - - """Country calling code (e.g. +1, +44)""" - cc: String! - - """The phone number without country code""" - number: String! - - """Whether the phone number has been verified via SMS code""" - isVerified: Boolean! - - """Whether this is the user's primary phone number""" - isPrimary: Boolean! - - """ - Optional user-provided label for this phone number (e.g. "Mobile", "Work"). - """ - name: String - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `PhoneNumber`.""" - owner: User -} - -"""A `PhoneNumber` edge in the connection.""" -type PhoneNumberEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PhoneNumber` at the end of the edge.""" - node: PhoneNumber -} - -"""Methods to use when ordering `PhoneNumber`.""" -enum PhoneNumberOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - OWNER_ID_ASC - OWNER_ID_DESC - CC_ASC - CC_DESC - NUMBER_ASC - NUMBER_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_PRIMARY_ASC - IS_PRIMARY_DESC - NAME_ASC - NAME_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `CryptoAddress` values.""" -type CryptoAddressConnection { - """A list of `CryptoAddress` objects.""" - nodes: [CryptoAddress]! - - """ - A list of edges which contains the `CryptoAddress` and cursor to aid in pagination. - """ - edges: [CryptoAddressEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `CryptoAddress` you could get from the connection.""" - totalCount: Int! -} - -""" -Cryptocurrency wallet addresses owned by users, with network-specific validation and verification -""" -type CryptoAddress { - id: UUID! - ownerId: UUID! - - """ - The cryptocurrency wallet address, validated against network-specific patterns - """ - address: String! - - """Whether ownership of this address has been cryptographically verified""" - isVerified: Boolean! - - """Whether this is the user's primary cryptocurrency address""" - isPrimary: Boolean! - - """ - Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). - """ - name: String - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `CryptoAddress`.""" - owner: User -} - -"""A `CryptoAddress` edge in the connection.""" -type CryptoAddressEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `CryptoAddress` at the end of the edge.""" - node: CryptoAddress -} - -"""Methods to use when ordering `CryptoAddress`.""" -enum CryptoAddressOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - OWNER_ID_ASC - OWNER_ID_DESC - ADDRESS_ASC - ADDRESS_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_PRIMARY_ASC - IS_PRIMARY_DESC - NAME_ASC - NAME_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `WebauthnCredential` values.""" -type WebauthnCredentialConnection { - """A list of `WebauthnCredential` objects.""" - nodes: [WebauthnCredential]! - - """ - A list of edges which contains the `WebauthnCredential` and cursor to aid in pagination. - """ - edges: [WebauthnCredentialEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `WebauthnCredential` you could get from the connection. - """ - totalCount: Int! -} - -""" -WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. -""" -type WebauthnCredential { - id: UUID! - ownerId: UUID! - - """ - Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. - """ - credentialId: String! - - """COSE-encoded public key bytes from the authenticator attestation.""" - publicKey: Base64EncodedBinary! - - """ - Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. - """ - signCount: BigInt! - - """ - Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. - """ - webauthnUserId: String! - - """ - Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. - """ - transports: [String] - - """ - Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. - """ - credentialDeviceType: String! - - """ - Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. - """ - backupEligible: Boolean! - - """Current backup state; updated on each successful sign-in assertion.""" - backupState: Boolean! - - """ - User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. - """ - name: String - - """ - Timestamp of the most recent successful sign-in assertion using this credential. - """ - lastUsedAt: Datetime - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `WebauthnCredential`.""" - owner: User -} - -"""A `WebauthnCredential` edge in the connection.""" -type WebauthnCredentialEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `WebauthnCredential` at the end of the edge.""" - node: WebauthnCredential -} - -"""Methods to use when ordering `WebauthnCredential`.""" -enum WebauthnCredentialOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - OWNER_ID_ASC - OWNER_ID_DESC - CREDENTIAL_ID_ASC - CREDENTIAL_ID_DESC - PUBLIC_KEY_ASC - PUBLIC_KEY_DESC - SIGN_COUNT_ASC - SIGN_COUNT_DESC - WEBAUTHN_USER_ID_ASC - WEBAUTHN_USER_ID_DESC - TRANSPORTS_ASC - TRANSPORTS_DESC - CREDENTIAL_DEVICE_TYPE_ASC - CREDENTIAL_DEVICE_TYPE_DESC - BACKUP_ELIGIBLE_ASC - BACKUP_ELIGIBLE_DESC - BACKUP_STATE_ASC - BACKUP_STATE_DESC - NAME_ASC - NAME_DESC - LAST_USED_AT_ASC - LAST_USED_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppInvite` values.""" -type AppInviteConnection { - """A list of `AppInvite` objects.""" - nodes: [AppInvite]! - - """ - A list of edges which contains the `AppInvite` and cursor to aid in pagination. - """ - edges: [AppInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppInvite` you could get from the connection.""" - totalCount: Int! -} - -""" -Invitation records sent to prospective members via email, with token-based redemption and expiration -""" -type AppInvite { - id: UUID! - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID! - - """Unique random hex token used to redeem this invitation""" - inviteToken: String! - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int! - - """Running count of how many times this invite has been claimed""" - inviteCount: Int! - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppInvite`.""" - sender: User -} - -"""A `AppInvite` edge in the connection.""" -type AppInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppInvite` at the end of the edge.""" - node: AppInvite -} - -"""Methods to use when ordering `AppInvite`.""" -enum AppInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - EMAIL_ASC - EMAIL_DESC - SENDER_ID_ASC - SENDER_ID_DESC - INVITE_TOKEN_ASC - INVITE_TOKEN_DESC - INVITE_VALID_ASC - INVITE_VALID_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - MULTIPLE_ASC - MULTIPLE_DESC - DATA_ASC - DATA_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppClaimedInvite` values.""" -type AppClaimedInviteConnection { - """A list of `AppClaimedInvite` objects.""" - nodes: [AppClaimedInvite]! - - """ - A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. - """ - edges: [AppClaimedInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppClaimedInvite` you could get from the connection. - """ - totalCount: Int! -} - -""" -Records of successfully claimed invitations, linking senders to receivers -""" -type AppClaimedInvite { - id: UUID! - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppClaimedInvite`.""" - receiver: User - - """Reads a single `User` that is related to this `AppClaimedInvite`.""" - sender: User -} - -"""A `AppClaimedInvite` edge in the connection.""" -type AppClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppClaimedInvite` at the end of the edge.""" - node: AppClaimedInvite -} - -"""Methods to use when ordering `AppClaimedInvite`.""" -enum AppClaimedInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgInvite` values.""" -type OrgInviteConnection { - """A list of `OrgInvite` objects.""" - nodes: [OrgInvite]! - - """ - A list of edges which contains the `OrgInvite` and cursor to aid in pagination. - """ - edges: [OrgInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgInvite` you could get from the connection.""" - totalCount: Int! -} - -""" -Invitation records sent to prospective members via email, with token-based redemption and expiration -""" -type OrgInvite { - id: UUID! - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID! - - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String! - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int! - - """Running count of how many times this invite has been claimed""" - inviteCount: Int! - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean! - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! - - """Reads a single `User` that is related to this `OrgInvite`.""" - entity: User - - """Reads a single `User` that is related to this `OrgInvite`.""" - receiver: User - - """Reads a single `User` that is related to this `OrgInvite`.""" - sender: User -} - -"""A `OrgInvite` edge in the connection.""" -type OrgInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgInvite` at the end of the edge.""" - node: OrgInvite -} - -"""Methods to use when ordering `OrgInvite`.""" -enum OrgInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - EMAIL_ASC - EMAIL_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - INVITE_TOKEN_ASC - INVITE_TOKEN_DESC - INVITE_VALID_ASC - INVITE_VALID_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - MULTIPLE_ASC - MULTIPLE_DESC - DATA_ASC - DATA_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! - - """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. - """ - edges: [OrgClaimedInviteEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgClaimedInvite` you could get from the connection. - """ - totalCount: Int! -} - -""" -Records of successfully claimed invitations, linking senders to receivers -""" -type OrgClaimedInvite { - id: UUID! - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! - - """Reads a single `User` that is related to this `OrgClaimedInvite`.""" - entity: User - - """Reads a single `User` that is related to this `OrgClaimedInvite`.""" - receiver: User - - """Reads a single `User` that is related to this `OrgClaimedInvite`.""" - sender: User -} - -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite -} - -"""Methods to use when ordering `OrgClaimedInvite`.""" -enum OrgClaimedInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `AuditLogAuth` values.""" -type AuditLogAuthConnection { - """A list of `AuditLogAuth` objects.""" - nodes: [AuditLogAuth]! - - """ - A list of edges which contains the `AuditLogAuth` and cursor to aid in pagination. - """ - edges: [AuditLogAuthEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AuditLogAuth` you could get from the connection.""" - totalCount: Int! -} - -""" -Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) -""" -type AuditLogAuth { - createdAt: Datetime! - - """ - Unique identifier for each audit event (uuidv7 provides temporal ordering) - """ - id: UUID! - - """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) - """ - event: String! - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID - - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin - - """Browser or client user-agent string from the request""" - userAgent: String - - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress - - """Whether the authentication attempt succeeded""" - success: Boolean! - - """Reads a single `User` that is related to this `AuditLogAuth`.""" - actor: User -} - -"""A `AuditLogAuth` edge in the connection.""" -type AuditLogAuthEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AuditLogAuth` at the end of the edge.""" - node: AuditLogAuth -} - -"""Methods to use when ordering `AuditLogAuth`.""" -enum AuditLogAuthOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - EVENT_ASC - EVENT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ORIGIN_ASC - ORIGIN_DESC - USER_AGENT_ASC - USER_AGENT_DESC - IP_ADDRESS_ASC - IP_ADDRESS_DESC - SUCCESS_ASC - SUCCESS_DESC -} - -"""A connection to a list of `IdentityProvider` values.""" -type IdentityProviderConnection { - """A list of `IdentityProvider` objects.""" - nodes: [IdentityProvider]! - - """ - A list of edges which contains the `IdentityProvider` and cursor to aid in pagination. - """ - edges: [IdentityProviderEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `IdentityProvider` you could get from the connection. - """ - totalCount: Int! -} - -type IdentityProvider { - slug: String - kind: String - displayName: String - enabled: Boolean - isBuiltIn: Boolean -} - -"""A `IdentityProvider` edge in the connection.""" -type IdentityProviderEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `IdentityProvider` at the end of the edge.""" - node: IdentityProvider -} - -""" -A filter to be used against `IdentityProvider` object types. All fields are combined with a logical ‘and.’ -""" -input IdentityProviderFilter { - """Filter by the object’s `slug` field.""" - slug: StringFilter - - """Filter by the object’s `kind` field.""" - kind: StringFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `enabled` field.""" - enabled: BooleanFilter - - """Filter by the object’s `isBuiltIn` field.""" - isBuiltIn: BooleanFilter - - """Checks for all expressions in this list.""" - and: [IdentityProviderFilter!] - - """Checks for any expressions in this list.""" - or: [IdentityProviderFilter!] - - """Negates the expression.""" - not: IdentityProviderFilter -} - -"""Methods to use when ordering `IdentityProvider`.""" -enum IdentityProviderOrderBy { - NATURAL - SLUG_ASC - SLUG_DESC - KIND_ASC - KIND_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - ENABLED_ASC - ENABLED_DESC - IS_BUILT_IN_ASC - IS_BUILT_IN_DESC -} - -"""A connection to a list of `AppPermissionDefault` values.""" -type AppPermissionDefaultConnection { - """A list of `AppPermissionDefault` objects.""" - nodes: [AppPermissionDefault]! - - """ - A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. - """ - edges: [AppPermissionDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppPermissionDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type AppPermissionDefault { - id: UUID! - - """Default permission bitmask applied to new members""" - permissions: BitString! -} - -"""A `AppPermissionDefault` edge in the connection.""" -type AppPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermissionDefault` at the end of the edge.""" - node: AppPermissionDefault -} - -""" -A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Checks for all expressions in this list.""" - and: [AppPermissionDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [AppPermissionDefaultFilter!] - - """Negates the expression.""" - not: AppPermissionDefaultFilter -} - -"""Methods to use when ordering `AppPermissionDefault`.""" -enum AppPermissionDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC -} - -"""A connection to a list of `RoleType` values.""" -type RoleTypeConnection { - """A list of `RoleType` objects.""" - nodes: [RoleType]! - - """ - A list of edges which contains the `RoleType` and cursor to aid in pagination. - """ - edges: [RoleTypeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RoleType` you could get from the connection.""" - totalCount: Int! -} - -"""A `RoleType` edge in the connection.""" -type RoleTypeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RoleType` at the end of the edge.""" - node: RoleType -} - -"""Methods to use when ordering `RoleType`.""" -enum RoleTypeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC -} - -"""A connection to a list of `MigrateFile` values.""" -type MigrateFileConnection { - """A list of `MigrateFile` objects.""" - nodes: [MigrateFile]! - - """ - A list of edges which contains the `MigrateFile` and cursor to aid in pagination. - """ - edges: [MigrateFileEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `MigrateFile` you could get from the connection.""" - totalCount: Int! -} - -type MigrateFile { - id: UUID - databaseId: UUID - upload: ConstructiveInternalTypeUpload -} - -scalar ConstructiveInternalTypeUpload - -"""A `MigrateFile` edge in the connection.""" -type MigrateFileEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MigrateFile` at the end of the edge.""" - node: MigrateFile -} - -""" -A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ -""" -input MigrateFileFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `upload` field.""" - upload: ConstructiveInternalTypeUploadFilter - - """Checks for all expressions in this list.""" - and: [MigrateFileFilter!] - - """Checks for any expressions in this list.""" - or: [MigrateFileFilter!] - - """Negates the expression.""" - not: MigrateFileFilter -} - -""" -A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeUploadFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeUpload - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeUpload - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeUpload - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeUpload - - """Included in the specified list.""" - in: [ConstructiveInternalTypeUpload!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeUpload!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeUpload - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeUpload - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeUpload - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeUpload - - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeUpload - - """Contains the specified key.""" - containsKey: String - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] - - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeUpload -} - -"""Methods to use when ordering `MigrateFile`.""" -enum MigrateFileOrderBy { - NATURAL - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - UPLOAD_ASC - UPLOAD_DESC -} - -"""A connection to a list of `DevicesModule` values.""" -type DevicesModuleConnection { - """A list of `DevicesModule` objects.""" - nodes: [DevicesModule]! - - """ - A list of edges which contains the `DevicesModule` and cursor to aid in pagination. - """ - edges: [DevicesModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `DevicesModule` you could get from the connection.""" - totalCount: Int! -} - -"""A `DevicesModule` edge in the connection.""" -type DevicesModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DevicesModule` at the end of the edge.""" - node: DevicesModule -} - -"""Methods to use when ordering `DevicesModule`.""" -enum DevicesModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - USER_DEVICES_TABLE_ID_ASC - USER_DEVICES_TABLE_ID_DESC - DEVICE_SETTINGS_TABLE_ID_ASC - DEVICE_SETTINGS_TABLE_ID_DESC - USER_DEVICES_TABLE_ASC - USER_DEVICES_TABLE_DESC - DEVICE_SETTINGS_TABLE_ASC - DEVICE_SETTINGS_TABLE_DESC -} - -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! - - """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. - """ - edges: [AppMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type AppMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! -} - -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault -} - -""" -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppMembershipDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Checks for all expressions in this list.""" - and: [AppMembershipDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [AppMembershipDefaultFilter!] - - """Negates the expression.""" - not: AppMembershipDefaultFilter -} - -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC -} - -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! - - """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. - """ - edges: [OrgMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault -} - -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `NodeTypeRegistry` values.""" -type NodeTypeRegistryConnection { - """A list of `NodeTypeRegistry` objects.""" - nodes: [NodeTypeRegistry]! - - """ - A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. - """ - edges: [NodeTypeRegistryEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `NodeTypeRegistry` you could get from the connection. - """ - totalCount: Int! -} - -type NodeTypeRegistry { - name: String! - slug: String! - category: String! - displayName: String - description: String - parameterSchema: JSON! - tags: [String]! -} - -"""A `NodeTypeRegistry` edge in the connection.""" -type NodeTypeRegistryEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `NodeTypeRegistry` at the end of the edge.""" - node: NodeTypeRegistry -} - -""" -A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ -""" -input NodeTypeRegistryFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `slug` field.""" - slug: StringFilter - - """Filter by the object’s `category` field.""" - category: StringFilter - - """Filter by the object’s `displayName` field.""" - displayName: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `parameterSchema` field.""" - parameterSchema: JSONFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - - """Checks for all expressions in this list.""" - and: [NodeTypeRegistryFilter!] - - """Checks for any expressions in this list.""" - or: [NodeTypeRegistryFilter!] - - """Negates the expression.""" - not: NodeTypeRegistryFilter -} - -"""Methods to use when ordering `NodeTypeRegistry`.""" -enum NodeTypeRegistryOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - NAME_ASC - NAME_DESC - SLUG_ASC - SLUG_DESC - CATEGORY_ASC - CATEGORY_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PARAMETER_SCHEMA_ASC - PARAMETER_SCHEMA_DESC - TAGS_ASC - TAGS_DESC -} - -"""A connection to a list of `AppLimitCapsDefault` values.""" -type AppLimitCapsDefaultConnection { - """A list of `AppLimitCapsDefault` objects.""" - nodes: [AppLimitCapsDefault]! - - """ - A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. - """ - edges: [AppLimitCapsDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitCapsDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. -""" -type AppLimitCapsDefault { - id: UUID! - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! -} - -"""A `AppLimitCapsDefault` edge in the connection.""" -type AppLimitCapsDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCapsDefault` at the end of the edge.""" - node: AppLimitCapsDefault -} - -""" -A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCapsDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCapsDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCapsDefaultFilter!] - - """Negates the expression.""" - not: AppLimitCapsDefaultFilter -} - -"""Methods to use when ordering `AppLimitCapsDefault`.""" -enum AppLimitCapsDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `OrgLimitCapsDefault` values.""" -type OrgLimitCapsDefaultConnection { - """A list of `OrgLimitCapsDefault` objects.""" - nodes: [OrgLimitCapsDefault]! - - """ - A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. - """ - edges: [OrgLimitCapsDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitCapsDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. -""" -type OrgLimitCapsDefault { - id: UUID! - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! -} - -"""A `OrgLimitCapsDefault` edge in the connection.""" -type OrgLimitCapsDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCapsDefault` at the end of the edge.""" - node: OrgLimitCapsDefault -} - -""" -A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapsDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCapsDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCapsDefaultFilter!] - - """Negates the expression.""" - not: OrgLimitCapsDefaultFilter -} - -"""Methods to use when ordering `OrgLimitCapsDefault`.""" -enum OrgLimitCapsDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `AppLimitCap` values.""" -type AppLimitCapConnection { - """A list of `AppLimitCap` objects.""" - nodes: [AppLimitCap]! - - """ - A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. - """ - edges: [AppLimitCapEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimitCap` you could get from the connection.""" - totalCount: Int! -} - -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type AppLimitCap { - id: UUID! - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt! -} - -"""A `AppLimitCap` edge in the connection.""" -type AppLimitCapEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCap` at the end of the edge.""" - node: AppLimitCap -} - -""" -A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitCapFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCapFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCapFilter!] - - """Negates the expression.""" - not: AppLimitCapFilter -} - -"""Methods to use when ordering `AppLimitCap`.""" -enum AppLimitCapOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `OrgLimitCap` values.""" -type OrgLimitCapConnection { - """A list of `OrgLimitCap` objects.""" - nodes: [OrgLimitCap]! - - """ - A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. - """ - edges: [OrgLimitCapEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitCap` you could get from the connection.""" - totalCount: Int! -} - -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type OrgLimitCap { - id: UUID! - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt! -} - -"""A `OrgLimitCap` edge in the connection.""" -type OrgLimitCapEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCap` at the end of the edge.""" - node: OrgLimitCap -} - -""" -A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCapFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCapFilter!] - - """Negates the expression.""" - not: OrgLimitCapFilter -} - -"""Methods to use when ordering `OrgLimitCap`.""" -enum OrgLimitCapOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `UserConnectedAccount` values.""" -type UserConnectedAccountConnection { - """A list of `UserConnectedAccount` objects.""" - nodes: [UserConnectedAccount]! - - """ - A list of edges which contains the `UserConnectedAccount` and cursor to aid in pagination. - """ - edges: [UserConnectedAccountEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `UserConnectedAccount` you could get from the connection. - """ - totalCount: Int! -} - -type UserConnectedAccount { - id: UUID - ownerId: UUID - service: String - identifier: String - details: JSON - isVerified: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""A `UserConnectedAccount` edge in the connection.""" -type UserConnectedAccountEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `UserConnectedAccount` at the end of the edge.""" - node: UserConnectedAccount -} - -""" -A filter to be used against `UserConnectedAccount` object types. All fields are combined with a logical ‘and.’ -""" -input UserConnectedAccountFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `service` field.""" - service: StringFilter - - """Filter by the object’s `identifier` field.""" - identifier: StringFilter - - """Filter by the object’s `details` field.""" - details: JSONFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [UserConnectedAccountFilter!] - - """Checks for any expressions in this list.""" - or: [UserConnectedAccountFilter!] - - """Negates the expression.""" - not: UserConnectedAccountFilter -} - -"""Methods to use when ordering `UserConnectedAccount`.""" -enum UserConnectedAccountOrderBy { - NATURAL - ID_ASC - ID_DESC - OWNER_ID_ASC - OWNER_ID_DESC - SERVICE_ASC - SERVICE_DESC - IDENTIFIER_ASC - IDENTIFIER_DESC - DETAILS_ASC - DETAILS_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppLimitDefault` values.""" -type AppLimitDefaultConnection { - """A list of `AppLimitDefault` objects.""" - nodes: [AppLimitDefault]! - - """ - A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. - """ - edges: [AppLimitDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppLimitDefault` edge in the connection.""" -type AppLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitDefault` at the end of the edge.""" - node: AppLimitDefault -} - -"""Methods to use when ordering `AppLimitDefault`.""" -enum AppLimitDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC -} - -"""A connection to a list of `OrgLimitDefault` values.""" -type OrgLimitDefaultConnection { - """A list of `OrgLimitDefault` objects.""" - nodes: [OrgLimitDefault]! - - """ - A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. - """ - edges: [OrgLimitDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgLimitDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgLimitDefault` edge in the connection.""" -type OrgLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitDefault` at the end of the edge.""" - node: OrgLimitDefault -} - -"""Methods to use when ordering `OrgLimitDefault`.""" -enum OrgLimitDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC -} - -""" -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter - - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] - - """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] - - """Negates the expression.""" - not: AppPermissionFilter -} - -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC -} - -""" -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter - - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] - - """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] - - """Negates the expression.""" - not: OrgPermissionFilter -} - -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC -} - -"""A connection to a list of `AppLimitCreditCode` values.""" -type AppLimitCreditCodeConnection { - """A list of `AppLimitCreditCode` objects.""" - nodes: [AppLimitCreditCode]! - - """ - A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. - """ - edges: [AppLimitCreditCodeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitCreditCode` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppLimitCreditCode` edge in the connection.""" -type AppLimitCreditCodeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCreditCode` at the end of the edge.""" - node: AppLimitCreditCode -} - -"""Methods to use when ordering `AppLimitCreditCode`.""" -enum AppLimitCreditCodeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CODE_ASC - CODE_DESC - MAX_REDEMPTIONS_ASC - MAX_REDEMPTIONS_DESC - CURRENT_REDEMPTIONS_ASC - CURRENT_REDEMPTIONS_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC -} - -"""A connection to a list of `AppLimitWarning` values.""" -type AppLimitWarningConnection { - """A list of `AppLimitWarning` objects.""" - nodes: [AppLimitWarning]! - - """ - A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. - """ - edges: [AppLimitWarningEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitWarning` you could get from the connection. - """ - totalCount: Int! -} - -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type AppLimitWarning { - id: UUID! - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! -} - -"""A `AppLimitWarning` edge in the connection.""" -type AppLimitWarningEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitWarning` at the end of the edge.""" - node: AppLimitWarning -} - -""" -A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitWarningFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `warningType` field.""" - warningType: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitWarningFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitWarningFilter!] - - """Negates the expression.""" - not: AppLimitWarningFilter -} - -"""Methods to use when ordering `AppLimitWarning`.""" -enum AppLimitWarningOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC -} - -"""A connection to a list of `PubkeySetting` values.""" -type PubkeySettingConnection { - """A list of `PubkeySetting` objects.""" - nodes: [PubkeySetting]! - - """ - A list of edges which contains the `PubkeySetting` and cursor to aid in pagination. - """ - edges: [PubkeySettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `PubkeySetting` you could get from the connection.""" - totalCount: Int! -} - -"""A `PubkeySetting` edge in the connection.""" -type PubkeySettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PubkeySetting` at the end of the edge.""" - node: PubkeySetting -} - -"""Methods to use when ordering `PubkeySetting`.""" -enum PubkeySettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - CRYPTO_NETWORK_ASC - CRYPTO_NETWORK_DESC - USER_FIELD_ASC - USER_FIELD_DESC - SIGN_UP_WITH_KEY_FUNCTION_ID_ASC - SIGN_UP_WITH_KEY_FUNCTION_ID_DESC - SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC - SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC - SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC - SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC - SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC - SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC -} - -"""A connection to a list of `RateLimitsModule` values.""" -type RateLimitsModuleConnection { - """A list of `RateLimitsModule` objects.""" - nodes: [RateLimitsModule]! - - """ - A list of edges which contains the `RateLimitsModule` and cursor to aid in pagination. - """ - edges: [RateLimitsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `RateLimitsModule` you could get from the connection. - """ - totalCount: Int! -} - -"""A `RateLimitsModule` edge in the connection.""" -type RateLimitsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RateLimitsModule` at the end of the edge.""" - node: RateLimitsModule -} - -"""Methods to use when ordering `RateLimitsModule`.""" -enum RateLimitsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - RATE_LIMIT_SETTINGS_TABLE_ID_ASC - RATE_LIMIT_SETTINGS_TABLE_ID_DESC - IP_RATE_LIMITS_TABLE_ID_ASC - IP_RATE_LIMITS_TABLE_ID_DESC - RATE_LIMITS_TABLE_ID_ASC - RATE_LIMITS_TABLE_ID_DESC - RATE_LIMIT_SETTINGS_TABLE_ASC - RATE_LIMIT_SETTINGS_TABLE_DESC - IP_RATE_LIMITS_TABLE_ASC - IP_RATE_LIMITS_TABLE_DESC - RATE_LIMITS_TABLE_ASC - RATE_LIMITS_TABLE_DESC -} - -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! - - """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. - """ - edges: [MembershipTypeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `MembershipType` you could get from the connection.""" - totalCount: Int! -} - -""" -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) -""" -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean! -} - -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `MembershipType` at the end of the edge.""" - node: MembershipType -} - -""" -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ -""" -input MembershipTypeFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter - - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter - - """Checks for all expressions in this list.""" - and: [MembershipTypeFilter!] - - """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] - - """Negates the expression.""" - not: MembershipTypeFilter -} - -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PREFIX_ASC - PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC -} - -"""A connection to a list of `RlsSetting` values.""" -type RlsSettingConnection { - """A list of `RlsSetting` objects.""" - nodes: [RlsSetting]! - - """ - A list of edges which contains the `RlsSetting` and cursor to aid in pagination. - """ - edges: [RlsSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RlsSetting` you could get from the connection.""" - totalCount: Int! -} - -"""A `RlsSetting` edge in the connection.""" -type RlsSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RlsSetting` at the end of the edge.""" - node: RlsSetting -} - -"""Methods to use when ordering `RlsSetting`.""" -enum RlsSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - AUTHENTICATE_SCHEMA_ID_ASC - AUTHENTICATE_SCHEMA_ID_DESC - ROLE_SCHEMA_ID_ASC - ROLE_SCHEMA_ID_DESC - AUTHENTICATE_FUNCTION_ID_ASC - AUTHENTICATE_FUNCTION_ID_DESC - AUTHENTICATE_STRICT_FUNCTION_ID_ASC - AUTHENTICATE_STRICT_FUNCTION_ID_DESC - CURRENT_ROLE_FUNCTION_ID_ASC - CURRENT_ROLE_FUNCTION_ID_DESC - CURRENT_ROLE_ID_FUNCTION_ID_ASC - CURRENT_ROLE_ID_FUNCTION_ID_DESC - CURRENT_USER_AGENT_FUNCTION_ID_ASC - CURRENT_USER_AGENT_FUNCTION_ID_DESC - CURRENT_IP_ADDRESS_FUNCTION_ID_ASC - CURRENT_IP_ADDRESS_FUNCTION_ID_DESC -} - -"""A connection to a list of `RlsModule` values.""" -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! -} - -"""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 -} - -"""Methods to use when ordering `RlsModule`.""" -enum RlsModuleOrderBy { - 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 - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - AUTHENTICATE_ASC - AUTHENTICATE_DESC - AUTHENTICATE_STRICT_ASC - AUTHENTICATE_STRICT_DESC - CURRENT_ROLE_ASC - CURRENT_ROLE_DESC - CURRENT_ROLE_ID_ASC - CURRENT_ROLE_ID_DESC -} - -"""A connection to a list of `RateLimitMetersModule` values.""" -type RateLimitMetersModuleConnection { - """A list of `RateLimitMetersModule` objects.""" - nodes: [RateLimitMetersModule]! - - """ - A list of edges which contains the `RateLimitMetersModule` and cursor to aid in pagination. - """ - edges: [RateLimitMetersModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `RateLimitMetersModule` you could get from the connection. - """ - totalCount: Int! -} - -"""A `RateLimitMetersModule` edge in the connection.""" -type RateLimitMetersModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RateLimitMetersModule` at the end of the edge.""" - node: RateLimitMetersModule -} - -"""Methods to use when ordering `RateLimitMetersModule`.""" -enum RateLimitMetersModuleOrderBy { - 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 - 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 -} - -"""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! -} - -"""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 -} - -"""Methods to use when ordering `PlansModule`.""" -enum PlansModuleOrderBy { - 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 - 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 - APPLY_PLAN_FUNCTION_ASC - APPLY_PLAN_FUNCTION_DESC - APPLY_PLAN_AGGREGATE_FUNCTION_ASC - APPLY_PLAN_AGGREGATE_FUNCTION_DESC - PREFIX_ASC - PREFIX_DESC -} - -"""A connection to a list of `SqlAction` values.""" -type SqlActionConnection { - """A list of `SqlAction` objects.""" - nodes: [SqlAction]! - - """ - A list of edges which contains the `SqlAction` and cursor to aid in pagination. - """ - edges: [SqlActionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SqlAction` you could get from the connection.""" - totalCount: Int! -} - -type SqlAction { - id: Int - name: String - databaseId: UUID - deploy: String - deps: [String] - payload: JSON - content: String - revert: String - verify: String - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID -} - -"""A `SqlAction` edge in the connection.""" -type SqlActionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SqlAction` at the end of the edge.""" - node: SqlAction -} - -""" -A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ -""" -input SqlActionFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `deploy` field.""" - deploy: StringFilter - - """Filter by the object’s `deps` field.""" - deps: StringListFilter - - """Filter by the object’s `content` field.""" - content: StringFilter - - """Filter by the object’s `revert` field.""" - revert: StringFilter - - """Filter by the object’s `verify` field.""" - verify: StringFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `action` field.""" - action: StringFilter - - """Filter by the object’s `actionId` field.""" - actionId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [SqlActionFilter!] - - """Checks for any expressions in this list.""" - or: [SqlActionFilter!] - - """Negates the expression.""" - not: SqlActionFilter -} - -"""Methods to use when ordering `SqlAction`.""" -enum SqlActionOrderBy { - NATURAL - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DEPLOY_ASC - DEPLOY_DESC - DEPS_ASC - DEPS_DESC - PAYLOAD_ASC - PAYLOAD_DESC - CONTENT_ASC - CONTENT_DESC - REVERT_ASC - REVERT_DESC - VERIFY_ASC - VERIFY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ACTION_ASC - ACTION_DESC - ACTION_ID_ASC - ACTION_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC -} - -"""A connection to a list of `DatabaseSetting` values.""" -type DatabaseSettingConnection { - """A list of `DatabaseSetting` objects.""" - nodes: [DatabaseSetting]! - - """ - A list of edges which contains the `DatabaseSetting` and cursor to aid in pagination. - """ - edges: [DatabaseSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `DatabaseSetting` you could get from the connection. - """ - totalCount: Int! -} - -"""A `DatabaseSetting` edge in the connection.""" -type DatabaseSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DatabaseSetting` at the end of the edge.""" - node: DatabaseSetting -} - -"""Methods to use when ordering `DatabaseSetting`.""" -enum DatabaseSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - ENABLE_AGGREGATES_ASC - ENABLE_AGGREGATES_DESC - ENABLE_POSTGIS_ASC - ENABLE_POSTGIS_DESC - ENABLE_SEARCH_ASC - ENABLE_SEARCH_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC - ENABLE_PRESIGNED_UPLOADS_ASC - ENABLE_PRESIGNED_UPLOADS_DESC - ENABLE_MANY_TO_MANY_ASC - ENABLE_MANY_TO_MANY_DESC - ENABLE_CONNECTION_FILTER_ASC - ENABLE_CONNECTION_FILTER_DESC - ENABLE_LTREE_ASC - ENABLE_LTREE_DESC - ENABLE_LLM_ASC - ENABLE_LLM_DESC - ENABLE_REALTIME_ASC - ENABLE_REALTIME_DESC - ENABLE_BULK_ASC - ENABLE_BULK_DESC - OPTIONS_ASC - OPTIONS_DESC -} - -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! - - """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. - """ - edges: [OrgMembershipSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipSetting` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting -} - -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - DELETE_MEMBER_CASCADE_CHILDREN_ASC - DELETE_MEMBER_CASCADE_CHILDREN_DESC - CREATE_CHILD_CASCADE_OWNERS_ASC - CREATE_CHILD_CASCADE_OWNERS_DESC - CREATE_CHILD_CASCADE_ADMINS_ASC - CREATE_CHILD_CASCADE_ADMINS_DESC - CREATE_CHILD_CASCADE_MEMBERS_ASC - CREATE_CHILD_CASCADE_MEMBERS_DESC - ALLOW_EXTERNAL_MEMBERS_ASC - ALLOW_EXTERNAL_MEMBERS_DESC - INVITE_PROFILE_ASSIGNMENT_MODE_ASC - INVITE_PROFILE_ASSIGNMENT_MODE_DESC - POPULATE_MEMBER_EMAIL_ASC - POPULATE_MEMBER_EMAIL_DESC - LIMIT_ALLOCATION_MODE_ASC - LIMIT_ALLOCATION_MODE_DESC -} - -"""A connection to a list of `AppLimitEvent` values.""" -type AppLimitEventConnection { - """A list of `AppLimitEvent` objects.""" - nodes: [AppLimitEvent]! - - """ - A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. - """ - edges: [AppLimitEventEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimitEvent` you could get from the connection.""" - totalCount: Int! -} - -"""Append-only log of limit events for historical reporting and audit""" -type AppLimitEvent { - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""A `AppLimitEvent` edge in the connection.""" -type AppLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitEvent` at the end of the edge.""" - node: AppLimitEvent -} - -""" -A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitEventFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitEventFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitEventFilter!] - - """Negates the expression.""" - not: AppLimitEventFilter -} - -"""Methods to use when ordering `AppLimitEvent`.""" -enum AppLimitEventOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC -} - -"""A connection to a list of `OrgLimitEvent` values.""" -type OrgLimitEventConnection { - """A list of `OrgLimitEvent` objects.""" - nodes: [OrgLimitEvent]! - - """ - A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. - """ - edges: [OrgLimitEventEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitEvent` you could get from the connection.""" - totalCount: Int! -} - -"""Append-only log of limit events for historical reporting and audit""" -type OrgLimitEvent { - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""A `OrgLimitEvent` edge in the connection.""" -type OrgLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitEvent` at the end of the edge.""" - node: OrgLimitEvent -} - -""" -A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitEventFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `organizationId` field.""" - organizationId: UUIDFilter - - """Filter by the object’s `entityType` field.""" - entityType: StringFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitEventFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitEventFilter!] - - """Negates the expression.""" - not: OrgLimitEventFilter -} - -"""Methods to use when ordering `OrgLimitEvent`.""" -enum OrgLimitEventOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ORGANIZATION_ID_ASC - ORGANIZATION_ID_DESC - ENTITY_TYPE_ASC - ENTITY_TYPE_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC -} - -"""A connection to a list of `AppMembership` values.""" -type AppMembershipConnection { - """A list of `AppMembership` objects.""" - nodes: [AppMembership]! - - """ - A list of edges which contains the `AppMembership` and cursor to aid in pagination. - """ - edges: [AppMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppMembership` you could get from the connection.""" - totalCount: Int! -} - -"""A `AppMembership` edge in the connection.""" -type AppMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppMembership` at the end of the edge.""" - node: AppMembership -} - -"""Methods to use when ordering `AppMembership`.""" -enum AppMembershipOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} - -"""A connection to a list of `User` values.""" -type UserConnection { - """A list of `User` objects.""" - nodes: [User]! - - """ - A list of edges which contains the `User` and cursor to aid in pagination. - """ - edges: [UserEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `User` you could get from the connection.""" - totalCount: Int! -} - -"""A `User` edge in the connection.""" -type UserEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `User` at the end of the edge.""" - node: User -} - -"""Methods to use when ordering `User`.""" -enum UserOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - USERNAME_ASC - USERNAME_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC - SEARCH_TSV_ASC - SEARCH_TSV_DESC - TYPE_ASC - TYPE_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - SEARCH_TSV_RANK_ASC - SEARCH_TSV_RANK_DESC - DISPLAY_NAME_TRGM_SIMILARITY_ASC - DISPLAY_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `AstMigration` values.""" -type AstMigrationConnection { - """A list of `AstMigration` objects.""" - nodes: [AstMigration]! - - """ - A list of edges which contains the `AstMigration` and cursor to aid in pagination. - """ - edges: [AstMigrationEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AstMigration` you could get from the connection.""" - totalCount: Int! -} - -type AstMigration { - 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 -} - -"""A `AstMigration` edge in the connection.""" -type AstMigrationEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AstMigration` at the end of the edge.""" - node: AstMigration -} - -""" -A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ -""" -input 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 -} - -"""Methods to use when ordering `AstMigration`.""" -enum 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 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 `BillingModule` values.""" -type BillingModuleConnection { - """A list of `BillingModule` objects.""" - nodes: [BillingModule]! - - """ - A list of edges which contains the `BillingModule` and cursor to aid in pagination. - """ - edges: [BillingModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `BillingModule` you could get from the connection.""" - totalCount: Int! -} - -"""A `BillingModule` edge in the connection.""" -type BillingModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `BillingModule` at the end of the edge.""" - node: BillingModule -} - -"""Methods to use when ordering `BillingModule`.""" -enum BillingModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - METERS_TABLE_ID_ASC - METERS_TABLE_ID_DESC - METERS_TABLE_NAME_ASC - METERS_TABLE_NAME_DESC - PLAN_SUBSCRIPTIONS_TABLE_ID_ASC - PLAN_SUBSCRIPTIONS_TABLE_ID_DESC - PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC - PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC - LEDGER_TABLE_ID_ASC - LEDGER_TABLE_ID_DESC - LEDGER_TABLE_NAME_ASC - LEDGER_TABLE_NAME_DESC - BALANCES_TABLE_ID_ASC - BALANCES_TABLE_ID_DESC - BALANCES_TABLE_NAME_ASC - BALANCES_TABLE_NAME_DESC - METER_CREDITS_TABLE_ID_ASC - METER_CREDITS_TABLE_ID_DESC - METER_CREDITS_TABLE_NAME_ASC - METER_CREDITS_TABLE_NAME_DESC - METER_SOURCES_TABLE_ID_ASC - METER_SOURCES_TABLE_ID_DESC - METER_SOURCES_TABLE_NAME_ASC - METER_SOURCES_TABLE_NAME_DESC - RECORD_USAGE_FUNCTION_ASC - RECORD_USAGE_FUNCTION_DESC - PREFIX_ASC - PREFIX_DESC -} - -"""A connection to a list of `BillingProviderModule` values.""" -type BillingProviderModuleConnection { - """A list of `BillingProviderModule` objects.""" - nodes: [BillingProviderModule]! - - """ - A list of edges which contains the `BillingProviderModule` and cursor to aid in pagination. - """ - edges: [BillingProviderModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `BillingProviderModule` you could get from the connection. - """ - totalCount: Int! -} - -"""A `BillingProviderModule` edge in the connection.""" -type BillingProviderModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `BillingProviderModule` at the end of the edge.""" - node: BillingProviderModule -} - -"""Methods to use when ordering `BillingProviderModule`.""" -enum 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 -} - -"""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! -} - -"""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 -} - -"""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 - 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 - 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 - CREATED_AT_ASC - CREATED_AT_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! -} - -"""Information about a table field/column""" -type MetaField { - name: String! - type: MetaType! - isNotNull: Boolean! - hasDefault: Boolean! - isPrimaryKey: Boolean! - isForeignKey: Boolean! - description: String -} - -"""Information about a PostgreSQL type""" -type MetaType { - pgType: String! - gqlType: String! - isArray: Boolean! - isNotNull: Boolean - hasDefault: Boolean - subtype: 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 -} - -""" -The root mutation type which contains root level fields which mutate data. -""" -type Mutation { - sendAccountDeletionEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SendAccountDeletionEmailInput! - ): SendAccountDeletionEmailPayload - signOut( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignOutInput! - ): SignOutPayload - acceptDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AcceptDatabaseTransferInput! - ): AcceptDatabaseTransferPayload - cancelDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CancelDatabaseTransferInput! - ): CancelDatabaseTransferPayload - rejectDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RejectDatabaseTransferInput! - ): RejectDatabaseTransferPayload - disconnectAccount( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DisconnectAccountInput! - ): DisconnectAccountPayload - revokeApiKey( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RevokeApiKeyInput! - ): RevokeApiKeyPayload - revokeSession( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RevokeSessionInput! - ): RevokeSessionPayload - verifyPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: VerifyPasswordInput! - ): VerifyPasswordPayload - verifyTotp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: VerifyTotpInput! - ): VerifyTotpPayload - submitAppInviteCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SubmitAppInviteCodeInput! - ): SubmitAppInviteCodePayload - submitOrgInviteCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SubmitOrgInviteCodeInput! - ): SubmitOrgInviteCodePayload - checkPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CheckPasswordInput! - ): CheckPasswordPayload - confirmDeleteAccount( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConfirmDeleteAccountInput! - ): ConfirmDeleteAccountPayload - setPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SetPasswordInput! - ): SetPasswordPayload - verifyEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: VerifyEmailInput! - ): VerifyEmailPayload - - """ - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - """ - constructBlueprint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConstructBlueprintInput! - ): ConstructBlueprintPayload - provisionNewUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionNewUserInput! - ): ProvisionNewUserPayload - resetPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ResetPasswordInput! - ): ResetPasswordPayload - - """ - Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - """ - provisionCheckConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionCheckConstraintInput! - ): ProvisionCheckConstraintPayload - - """ - Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - """ - provisionUniqueConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionUniqueConstraintInput! - ): ProvisionUniqueConstraintPayload - - """ - Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - """ - provisionFullTextSearch( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionFullTextSearchInput! - ): ProvisionFullTextSearchPayload - - """ - Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - """ - provisionIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionIndexInput! - ): ProvisionIndexPayload - - """ - 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. - """ - copyTemplateToBlueprint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CopyTemplateToBlueprintInput! - ): CopyTemplateToBlueprintPayload - - """ - Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - """ - provisionSpatialRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionSpatialRelationInput! - ): ProvisionSpatialRelationPayload - signInCrossOrigin( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignInCrossOriginInput! - ): SignInCrossOriginPayload - bootstrapUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: BootstrapUserInput! - ): BootstrapUserPayload - signUp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignUpInput! - ): SignUpPayload - signIn( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignInInput! - ): SignInPayload - - """ - Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - """ - provisionRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionRelationInput! - ): ProvisionRelationPayload - setFieldOrder( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SetFieldOrderInput! - ): SetFieldOrderPayload - applyRls( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ApplyRlsInput! - ): ApplyRlsPayload - provisionDatabaseWithUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionDatabaseWithUserInput! - ): ProvisionDatabaseWithUserPayload - - "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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUserDatabaseInput! - ): CreateUserDatabasePayload - extendTokenExpires( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ExtendTokenExpiresInput! - ): ExtendTokenExpiresPayload - createApiKey( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiKeyInput! - ): CreateApiKeyPayload - requestCrossOriginToken( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RequestCrossOriginTokenInput! - ): RequestCrossOriginTokenPayload - - """ - Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - """ - provisionTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionTableInput! - ): ProvisionTablePayload - sendVerificationEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SendVerificationEmailInput! - ): SendVerificationEmailPayload - forgotPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ForgotPasswordInput! - ): ForgotPasswordPayload - - """Creates a single `DefaultIdsModule`.""" - createDefaultIdsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDefaultIdsModuleInput! - ): CreateDefaultIdsModulePayload - - """Creates a single `AppLimitCreditRedemption`.""" - createAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditRedemptionInput! - ): CreateAppLimitCreditRedemptionPayload - - """Creates a single `Function`.""" - createFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionInput! - ): CreateFunctionPayload - - """Creates a single `ViewTable`.""" - createViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewTableInput! - ): CreateViewTablePayload - - """Creates a single `ApiSchema`.""" - createApiSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiSchemaInput! - ): CreateApiSchemaPayload - - """Creates a single `SiteTheme`.""" - createSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteThemeInput! - ): CreateSiteThemePayload - - """Creates a single `OrgMember`.""" - createOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberInput! - ): CreateOrgMemberPayload - - """Creates a single `CorsSetting`.""" - createCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCorsSettingInput! - ): CreateCorsSettingPayload - - """Creates a single `IdentityProvider`.""" - createIdentityProvider( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateIdentityProviderInput! - ): CreateIdentityProviderPayload - - """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 `MembershipTypesModule`.""" - createMembershipTypesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - 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 `AppPermissionDefault`.""" - createAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionDefaultInput! - ): CreateAppPermissionDefaultPayload - - """Creates a single `ApiModule`.""" - createApiModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiModuleInput! - ): CreateApiModulePayload - - """Creates a single `SiteModule`.""" - createSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteModuleInput! - ): CreateSiteModulePayload - - """Creates a single `RoleType`.""" - createRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRoleTypeInput! - ): CreateRoleTypePayload - - """Creates a single `SchemaGrant`.""" - createSchemaGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSchemaGrantInput! - ): CreateSchemaGrantPayload - - """Creates a single `TriggerFunction`.""" - createTriggerFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTriggerFunctionInput! - ): CreateTriggerFunctionPayload - - """Creates a single `ViewRule`.""" - createViewRule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewRuleInput! - ): CreateViewRulePayload - - """Creates a single `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 `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 `SessionSecretsModule`.""" - createSessionSecretsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSessionSecretsModuleInput! - ): CreateSessionSecretsModulePayload - - """Creates a single `AppAdminGrant`.""" - createAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppAdminGrantInput! - ): CreateAppAdminGrantPayload - - """Creates a single `AppOwnerGrant`.""" - createAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppOwnerGrantInput! - ): CreateAppOwnerGrantPayload - - """Creates a single `OrgPermissionDefault`.""" - createOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionDefaultInput! - ): CreateOrgPermissionDefaultPayload - - """Creates a single `MigrateFile`.""" - createMigrateFile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMigrateFileInput! - ): CreateMigrateFilePayload - - """Creates a single `DefaultPrivilege`.""" - createDefaultPrivilege( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDefaultPrivilegeInput! - ): CreateDefaultPrivilegePayload - - """Creates a single `ViewGrant`.""" - createViewGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewGrantInput! - ): CreateViewGrantPayload - - """Creates a single `Api`.""" - createApi( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiInput! - ): CreateApiPayload - - """Creates a single `ConnectedAccountsModule`.""" - createConnectedAccountsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateConnectedAccountsModuleInput! - ): CreateConnectedAccountsModulePayload - - """Creates a single `DevicesModule`.""" - createDevicesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDevicesModuleInput! - ): CreateDevicesModulePayload - - """Creates a single `EmailsModule`.""" - createEmailsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmailsModuleInput! - ): CreateEmailsModulePayload - - """Creates a single `PhoneNumbersModule`.""" - createPhoneNumbersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePhoneNumbersModuleInput! - ): CreatePhoneNumbersModulePayload - - """Creates a single `UsersModule`.""" - createUsersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUsersModuleInput! - ): CreateUsersModulePayload - - """Creates a single `WebauthnCredentialsModule`.""" - createWebauthnCredentialsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateWebauthnCredentialsModuleInput! - ): CreateWebauthnCredentialsModulePayload - - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload - - """Creates a single `OrgAdminGrant`.""" - createOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgAdminGrantInput! - ): CreateOrgAdminGrantPayload - - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload - - """Creates a single `OrgOwnerGrant`.""" - createOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgOwnerGrantInput! - ): CreateOrgOwnerGrantPayload - - """Creates a single `NodeTypeRegistry`.""" - createNodeTypeRegistry( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNodeTypeRegistryInput! - ): CreateNodeTypeRegistryPayload - - """Creates a single `AppLimitCapsDefault`.""" - createAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapsDefaultInput! - ): CreateAppLimitCapsDefaultPayload - - """Creates a single `OrgLimitCapsDefault`.""" - createOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapsDefaultInput! - ): CreateOrgLimitCapsDefaultPayload - - """Creates a single `AppLimitCap`.""" - createAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapInput! - ): CreateAppLimitCapPayload - - """Creates a single `OrgLimitCap`.""" - createOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapInput! - ): CreateOrgLimitCapPayload - - """Creates a single `UserConnectedAccount`.""" - createUserConnectedAccount( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUserConnectedAccountInput! - ): CreateUserConnectedAccountPayload - - """Creates a single `Database`.""" - createDatabase( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDatabaseInput! - ): CreateDatabasePayload - - """Creates a single `CryptoAddressesModule`.""" - createCryptoAddressesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCryptoAddressesModuleInput! - ): CreateCryptoAddressesModulePayload - - """Creates a single `OrgChartEdge`.""" - createOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeInput! - ): CreateOrgChartEdgePayload - - """Creates a single `CryptoAddress`.""" - createCryptoAddress( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCryptoAddressInput! - ): CreateCryptoAddressPayload - - """Creates a single `AppLimitCreditCodeItem`.""" - createAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditCodeItemInput! - ): CreateAppLimitCreditCodeItemPayload - - """Creates a single `AppLimitDefault`.""" - createAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitDefaultInput! - ): CreateAppLimitDefaultPayload - - """Creates a single `OrgLimitDefault`.""" - createOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitDefaultInput! - ): CreateOrgLimitDefaultPayload - - """Creates a single `AppPermission`.""" - createAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload - - """Creates a single `OrgPermission`.""" - createOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload - - """Creates a single `AppLimitCreditCode`.""" - createAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditCodeInput! - ): CreateAppLimitCreditCodePayload - - """Creates a single `AppLimitWarning`.""" - createAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitWarningInput! - ): CreateAppLimitWarningPayload - - """Creates a single `FullTextSearch`.""" - createFullTextSearch( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFullTextSearchInput! - ): CreateFullTextSearchPayload - - """Creates a single `TableGrant`.""" - createTableGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTableGrantInput! - ): CreateTableGrantPayload - - """Creates a single `SiteMetadatum`.""" - createSiteMetadatum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteMetadatumInput! - ): CreateSiteMetadatumPayload - - """Creates a single `PubkeySetting`.""" - createPubkeySetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePubkeySettingInput! - ): CreatePubkeySettingPayload - - """Creates a single `RateLimitsModule`.""" - createRateLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRateLimitsModuleInput! - ): CreateRateLimitsModulePayload - - """Creates a single `OrgChartEdgeGrant`.""" - createOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeGrantInput! - ): CreateOrgChartEdgeGrantPayload - - """Creates a single `PhoneNumber`.""" - createPhoneNumber( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePhoneNumberInput! - ): CreatePhoneNumberPayload - - """Creates a single `AppLimitCredit`.""" - createAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCreditInput! - ): CreateAppLimitCreditPayload - - """Creates a single `OrgLimitCredit`.""" - createOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCreditInput! - ): CreateOrgLimitCreditPayload - - """Creates a single `AppClaimedInvite`.""" - createAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppClaimedInviteInput! - ): CreateAppClaimedInvitePayload - - """Creates a single `OrgLimitWarning`.""" - createOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitWarningInput! - ): CreateOrgLimitWarningPayload - - """Creates a single `MembershipType`.""" - createMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload - - """Creates a single `Domain`.""" - createDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDomainInput! - ): CreateDomainPayload - - """Creates a single `RlsSetting`.""" - createRlsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRlsSettingInput! - ): CreateRlsSettingPayload - - """Creates a single `AppGrant`.""" - createAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppGrantInput! - ): CreateAppGrantPayload - - """Creates a single `OrgClaimedInvite`.""" - createOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgClaimedInviteInput! - ): CreateOrgClaimedInvitePayload - - """Creates a single `AuditLogAuth`.""" - createAuditLogAuth( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAuditLogAuthInput! - ): CreateAuditLogAuthPayload - - """Creates a single `BlueprintConstruction`.""" - createBlueprintConstruction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBlueprintConstructionInput! - ): CreateBlueprintConstructionPayload - - """Creates a single `RlsModule`.""" - createRlsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRlsModuleInput! - ): CreateRlsModulePayload - - """Creates a single `SessionsModule`.""" - createSessionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSessionsModuleInput! - ): CreateSessionsModulePayload - - """Creates a single `OrgMemberProfile`.""" - createOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberProfileInput! - ): CreateOrgMemberProfilePayload - - """Creates a single `OrgGrant`.""" - createOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgGrantInput! - ): CreateOrgGrantPayload - - """Creates a single `Blueprint`.""" - createBlueprint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBlueprintInput! - ): CreateBlueprintPayload - - """Creates a single `DenormalizedTableField`.""" - createDenormalizedTableField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDenormalizedTableFieldInput! - ): CreateDenormalizedTableFieldPayload - - """Creates a single `RateLimitMetersModule`.""" - createRateLimitMetersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRateLimitMetersModuleInput! - ): CreateRateLimitMetersModulePayload - - """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: CreateRealtimeModuleInput! - ): CreateRealtimeModulePayload - - """Creates a single `Partition`.""" - createPartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePartitionInput! - ): CreatePartitionPayload - - """Creates a single `PlansModule`.""" - createPlansModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlansModuleInput! - ): CreatePlansModulePayload - - """Creates a single `Email`.""" - createEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmailInput! - ): CreateEmailPayload - - """Creates a single `SqlAction`.""" - createSqlAction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSqlActionInput! - ): CreateSqlActionPayload - - """Creates a single `DatabaseTransfer`.""" - createDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDatabaseTransferInput! - ): CreateDatabaseTransferPayload - - """Creates a single `DatabaseSetting`.""" - createDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDatabaseSettingInput! - ): CreateDatabaseSettingPayload - - """Creates a single `CryptoAuthModule`.""" - createCryptoAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCryptoAuthModuleInput! - ): CreateCryptoAuthModulePayload - - """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: CreateDatabaseProvisionModuleInput! - ): CreateDatabaseProvisionModulePayload - - """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 `OrgMembershipSetting`.""" - createOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload - - """Creates a single `SecureTableProvision`.""" - createSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSecureTableProvisionInput! - ): CreateSecureTableProvisionPayload - - """Creates a single `ApiSetting`.""" - createApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiSettingInput! - ): CreateApiSettingPayload - - """Creates a single `ComputeLogModule`.""" - createComputeLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateComputeLogModuleInput! - ): CreateComputeLogModulePayload - - """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: CreateInferenceLogModuleInput! - ): CreateInferenceLogModulePayload - - """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: CreateMerkleStoreModuleInput! - ): CreateMerkleStoreModulePayload - - """Creates a single `StorageLogModule`.""" - createStorageLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateStorageLogModuleInput! - ): CreateStorageLogModulePayload - - """Creates a single `TransferLogModule`.""" - createTransferLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTransferLogModuleInput! - ): CreateTransferLogModulePayload - - """Creates a single `Enum`.""" - createEnum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEnumInput! - ): CreateEnumPayload - - """Creates a single `AppLimitEvent`.""" - createAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitEventInput! - ): CreateAppLimitEventPayload - - """Creates a single `OrgLimitEvent`.""" - createOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitEventInput! - ): CreateOrgLimitEventPayload - - """Creates a single `View`.""" - createView( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewInput! - ): CreateViewPayload - - """Creates a single `WebauthnAuthModule`.""" - createWebauthnAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateWebauthnAuthModuleInput! - ): CreateWebauthnAuthModulePayload - - """Creates a single `AppMembership`.""" - createAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipInput! - ): CreateAppMembershipPayload - - """Creates a single `User`.""" - createUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUserInput! - ): CreateUserPayload - - """Creates a single `AppLimit`.""" - createAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitInput! - ): CreateAppLimitPayload - - """Creates a single `App`.""" - createApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInput! - ): CreateAppPayload - - """Creates a single `Site`.""" - createSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteInput! - ): CreateSitePayload - - """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 `NamespaceModule`.""" - createNamespaceModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNamespaceModuleInput! - ): CreateNamespaceModulePayload - - """Creates a single `NotificationsModule`.""" - createNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNotificationsModuleInput! - ): CreateNotificationsModulePayload - - """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 `AstMigration`.""" - createAstMigration( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAstMigrationInput! - ): CreateAstMigrationPayload - - """Creates a single `WebauthnCredential`.""" - createWebauthnCredential( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateWebauthnCredentialInput! - ): CreateWebauthnCredentialPayload - - """Creates a single `PrimaryKeyConstraint`.""" - createPrimaryKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePrimaryKeyConstraintInput! - ): CreatePrimaryKeyConstraintPayload - - """Creates a single `Trigger`.""" - createTrigger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTriggerInput! - ): CreateTriggerPayload - - """Creates a single `CheckConstraint`.""" - createCheckConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateCheckConstraintInput! - ): CreateCheckConstraintPayload - - """Creates a single `UniqueConstraint`.""" - createUniqueConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUniqueConstraintInput! - ): CreateUniqueConstraintPayload - - """Creates a single `SpatialRelation`.""" - createSpatialRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSpatialRelationInput! - ): CreateSpatialRelationPayload - - """Creates a single `Policy`.""" - createPolicy( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePolicyInput! - ): CreatePolicyPayload - - """Creates a single `OrgLimitAggregate`.""" - createOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitAggregateInput! - ): CreateOrgLimitAggregatePayload - - """Creates a single `OrgLimit`.""" - createOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitInput! - ): CreateOrgLimitPayload - - """Creates a single `WebauthnSetting`.""" - createWebauthnSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateWebauthnSettingInput! - ): CreateWebauthnSettingPayload - - """Creates a single `BillingModule`.""" - createBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBillingModuleInput! - ): CreateBillingModulePayload - - """Creates a single `OrgMembership`.""" - createOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload - - """Creates a single `Schema`.""" - createSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSchemaInput! - ): CreateSchemaPayload - - """Creates a single `Index`.""" - createIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateIndexInput! - ): CreateIndexPayload - - """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: CreateGraphModuleInput! - ): CreateGraphModulePayload - - """Creates a single `AppInvite`.""" - createAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload - - """Creates a single `BillingProviderModule`.""" - createBillingProviderModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBillingProviderModuleInput! - ): CreateBillingProviderModulePayload - - """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 `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 `ProfilesModule`.""" - createProfilesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateProfilesModuleInput! - ): CreateProfilesModulePayload - - """Creates a single `EmbeddingChunk`.""" - createEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmbeddingChunkInput! - ): CreateEmbeddingChunkPayload - - """Creates a single `ForeignKeyConstraint`.""" - createForeignKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateForeignKeyConstraintInput! - ): CreateForeignKeyConstraintPayload - - """Creates a single `OrgInvite`.""" - createOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgInviteInput! - ): CreateOrgInvitePayload - - """Creates a single `AgentModule`.""" - createAgentModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentModuleInput! - ): CreateAgentModulePayload - - """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 `UserAuthModule`.""" - createUserAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUserAuthModuleInput! - ): CreateUserAuthModulePayload - - """Creates a single `Field`.""" - createField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFieldInput! - ): CreateFieldPayload - - """Creates a single `FunctionModule`.""" - createFunctionModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionModuleInput! - ): CreateFunctionModulePayload - - """Creates a single `Table`.""" - createTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTableInput! - ): CreateTablePayload - - """Creates a single `LimitsModule`.""" - createLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateLimitsModuleInput! - ): CreateLimitsModulePayload - - """Creates a single `StorageModule`.""" - createStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateStorageModuleInput! - ): CreateStorageModulePayload - - """Creates a single `MembershipsModule`.""" - createMembershipsModule( - """ - 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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEventsModuleInput! - ): CreateEventsModulePayload - - """Creates a single `EntityTypeProvision`.""" - createEntityTypeProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEntityTypeProvisionInput! - ): CreateEntityTypeProvisionPayload - - """Updates a single `DefaultIdsModule` using a unique key and a patch.""" - updateDefaultIdsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDefaultIdsModuleInput! - ): UpdateDefaultIdsModulePayload - - """ - Updates a single `AppLimitCreditRedemption` using a unique key and a patch. - """ - updateAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditRedemptionInput! - ): UpdateAppLimitCreditRedemptionPayload - - """Updates a single `Function` using a unique key and a patch.""" - updateFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionInput! - ): UpdateFunctionPayload - - """Updates a single `ViewTable` using a unique key and a patch.""" - updateViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewTableInput! - ): UpdateViewTablePayload - - """Updates a single `ApiSchema` using a unique key and a patch.""" - updateApiSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateApiSchemaInput! - ): UpdateApiSchemaPayload - - """Updates a single `SiteTheme` using a unique key and a patch.""" - updateSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteThemeInput! - ): UpdateSiteThemePayload - - """Updates a single `OrgMember` using a unique key and a patch.""" - updateOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMemberInput! - ): UpdateOrgMemberPayload - - """Updates a single `CorsSetting` using a unique key and a patch.""" - updateCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateCorsSettingInput! - ): UpdateCorsSettingPayload - - """ - Updates a single `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 `MembershipTypesModule` using a unique key and a patch. - """ - updateMembershipTypesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - 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 `AppPermissionDefault` using a unique key and a patch. - """ - updateAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionDefaultInput! - ): UpdateAppPermissionDefaultPayload - - """Updates a single `ApiModule` using a unique key and a patch.""" - updateApiModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateApiModuleInput! - ): UpdateApiModulePayload - - """Updates a single `SiteModule` using a unique key and a patch.""" - updateSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteModuleInput! - ): UpdateSiteModulePayload - - """Updates a single `RoleType` using a unique key and a patch.""" - updateRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRoleTypeInput! - ): UpdateRoleTypePayload - - """Updates a single `SchemaGrant` using a unique key and a patch.""" - updateSchemaGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSchemaGrantInput! - ): UpdateSchemaGrantPayload - - """Updates a single `TriggerFunction` using a unique key and a patch.""" - updateTriggerFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTriggerFunctionInput! - ): UpdateTriggerFunctionPayload - - """Updates a single `ViewRule` using a unique key and a patch.""" - updateViewRule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewRuleInput! - ): UpdateViewRulePayload - - """ - Updates a single `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 `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 `SessionSecretsModule` using a unique key and a patch. - """ - updateSessionSecretsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSessionSecretsModuleInput! - ): UpdateSessionSecretsModulePayload - - """Updates a single `AppAdminGrant` using a unique key and a patch.""" - updateAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppAdminGrantInput! - ): UpdateAppAdminGrantPayload - - """Updates a single `AppOwnerGrant` using a unique key and a patch.""" - updateAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppOwnerGrantInput! - ): UpdateAppOwnerGrantPayload - - """ - Updates a single `OrgPermissionDefault` using a unique key and a patch. - """ - updateOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionDefaultInput! - ): UpdateOrgPermissionDefaultPayload - - """Updates a single `DefaultPrivilege` using a unique key and a patch.""" - updateDefaultPrivilege( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDefaultPrivilegeInput! - ): UpdateDefaultPrivilegePayload - - """Updates a single `ViewGrant` using a unique key and a patch.""" - updateViewGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewGrantInput! - ): UpdateViewGrantPayload - - """Updates a single `Api` using a unique key and a patch.""" - updateApi( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateApiInput! - ): UpdateApiPayload - - """ - Updates a single `ConnectedAccountsModule` using a unique key and a patch. - """ - updateConnectedAccountsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateConnectedAccountsModuleInput! - ): UpdateConnectedAccountsModulePayload - - """Updates a single `DevicesModule` using a unique key and a patch.""" - updateDevicesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDevicesModuleInput! - ): UpdateDevicesModulePayload - - """Updates a single `EmailsModule` using a unique key and a patch.""" - updateEmailsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEmailsModuleInput! - ): UpdateEmailsModulePayload - - """Updates a single `PhoneNumbersModule` using a unique key and a patch.""" - updatePhoneNumbersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePhoneNumbersModuleInput! - ): UpdatePhoneNumbersModulePayload - - """Updates a single `UsersModule` using a unique key and a patch.""" - updateUsersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUsersModuleInput! - ): UpdateUsersModulePayload - - """ - Updates a single `WebauthnCredentialsModule` using a unique key and a patch. - """ - updateWebauthnCredentialsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateWebauthnCredentialsModuleInput! - ): UpdateWebauthnCredentialsModulePayload - - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload - - """Updates a single `OrgAdminGrant` using a unique key and a patch.""" - updateOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgAdminGrantInput! - ): UpdateOrgAdminGrantPayload - - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload - - """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" - updateOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgOwnerGrantInput! - ): UpdateOrgOwnerGrantPayload - - """Updates a single `NodeTypeRegistry` using a unique key and a patch.""" - updateNodeTypeRegistry( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateNodeTypeRegistryInput! - ): UpdateNodeTypeRegistryPayload - - """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" - updateAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapsDefaultInput! - ): UpdateAppLimitCapsDefaultPayload - - """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" - updateOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapsDefaultInput! - ): UpdateOrgLimitCapsDefaultPayload - - """Updates a single `AppLimitCap` using a unique key and a patch.""" - updateAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapInput! - ): UpdateAppLimitCapPayload - - """Updates a single `OrgLimitCap` using a unique key and a patch.""" - updateOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapInput! - ): UpdateOrgLimitCapPayload - - """Updates a single `Database` using a unique key and a patch.""" - updateDatabase( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDatabaseInput! - ): UpdateDatabasePayload - - """ - Updates a single `CryptoAddressesModule` using a unique key and a patch. - """ - updateCryptoAddressesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateCryptoAddressesModuleInput! - ): UpdateCryptoAddressesModulePayload - - """Updates a single `OrgChartEdge` using a unique key and a patch.""" - updateOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeInput! - ): UpdateOrgChartEdgePayload - - """Updates a single `CryptoAddress` using a unique key and a patch.""" - updateCryptoAddress( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateCryptoAddressInput! - ): UpdateCryptoAddressPayload - - """ - Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. - """ - updateAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditCodeItemInput! - ): UpdateAppLimitCreditCodeItemPayload - - """Updates a single `AppLimitDefault` using a unique key and a patch.""" - updateAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitDefaultInput! - ): UpdateAppLimitDefaultPayload - - """Updates a single `OrgLimitDefault` using a unique key and a patch.""" - updateOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitDefaultInput! - ): UpdateOrgLimitDefaultPayload - - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload - - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload - - """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" - updateAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditCodeInput! - ): UpdateAppLimitCreditCodePayload - - """Updates a single `AppLimitWarning` using a unique key and a patch.""" - updateAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitWarningInput! - ): UpdateAppLimitWarningPayload - - """Updates a single `FullTextSearch` using a unique key and a patch.""" - updateFullTextSearch( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFullTextSearchInput! - ): UpdateFullTextSearchPayload - - """Updates a single `TableGrant` using a unique key and a patch.""" - updateTableGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTableGrantInput! - ): UpdateTableGrantPayload - - """Updates a single `SiteMetadatum` using a unique key and a patch.""" - updateSiteMetadatum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteMetadatumInput! - ): UpdateSiteMetadatumPayload - - """Updates a single `PubkeySetting` using a unique key and a patch.""" - updatePubkeySetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePubkeySettingInput! - ): UpdatePubkeySettingPayload - - """Updates a single `RateLimitsModule` using a unique key and a patch.""" - updateRateLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRateLimitsModuleInput! - ): UpdateRateLimitsModulePayload - - """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" - updateOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeGrantInput! - ): UpdateOrgChartEdgeGrantPayload - - """Updates a single `PhoneNumber` using a unique key and a patch.""" - updatePhoneNumber( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePhoneNumberInput! - ): UpdatePhoneNumberPayload - - """Updates a single `AppLimitCredit` using a unique key and a patch.""" - updateAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCreditInput! - ): UpdateAppLimitCreditPayload - - """Updates a single `OrgLimitCredit` using a unique key and a patch.""" - updateOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCreditInput! - ): UpdateOrgLimitCreditPayload - - """Updates a single `AppClaimedInvite` using a unique key and a patch.""" - updateAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppClaimedInviteInput! - ): UpdateAppClaimedInvitePayload - - """Updates a single `OrgLimitWarning` using a unique key and a patch.""" - updateOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitWarningInput! - ): UpdateOrgLimitWarningPayload - - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload - - """Updates a single `Domain` using a unique key and a patch.""" - updateDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDomainInput! - ): UpdateDomainPayload - - """Updates a single `RlsSetting` using a unique key and a patch.""" - updateRlsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRlsSettingInput! - ): UpdateRlsSettingPayload - - """Updates a single `AppGrant` using a unique key and a patch.""" - updateAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppGrantInput! - ): UpdateAppGrantPayload - - """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" - updateOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgClaimedInviteInput! - ): UpdateOrgClaimedInvitePayload - - """Updates a single `AuditLogAuth` using a unique key and a patch.""" - updateAuditLogAuth( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAuditLogAuthInput! - ): UpdateAuditLogAuthPayload - - """ - Updates a single `BlueprintConstruction` using a unique key and a patch. - """ - updateBlueprintConstruction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBlueprintConstructionInput! - ): UpdateBlueprintConstructionPayload - - """Updates a single `RlsModule` using a unique key and a patch.""" - updateRlsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRlsModuleInput! - ): UpdateRlsModulePayload - - """Updates a single `SessionsModule` using a unique key and a patch.""" - updateSessionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSessionsModuleInput! - ): UpdateSessionsModulePayload - - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" - updateOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMemberProfileInput! - ): UpdateOrgMemberProfilePayload - - """Updates a single `OrgGrant` using a unique key and a patch.""" - updateOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgGrantInput! - ): UpdateOrgGrantPayload - - """Updates a single `Blueprint` using a unique key and a patch.""" - updateBlueprint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBlueprintInput! - ): UpdateBlueprintPayload - - """ - Updates a single `DenormalizedTableField` using a unique key and a patch. - """ - updateDenormalizedTableField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDenormalizedTableFieldInput! - ): UpdateDenormalizedTableFieldPayload - - """ - Updates a single `RateLimitMetersModule` using a unique key and a patch. - """ - updateRateLimitMetersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRateLimitMetersModuleInput! - ): UpdateRateLimitMetersModulePayload - - """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: UpdateRealtimeModuleInput! - ): UpdateRealtimeModulePayload - - """Updates a single `Partition` using a unique key and a patch.""" - updatePartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePartitionInput! - ): UpdatePartitionPayload - - """Updates a single `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: UpdatePlansModuleInput! - ): UpdatePlansModulePayload - - """Updates a single `Email` using a unique key and a patch.""" - updateEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEmailInput! - ): UpdateEmailPayload - - """Updates a single `DatabaseTransfer` using a unique key and a patch.""" - updateDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDatabaseTransferInput! - ): UpdateDatabaseTransferPayload - - """Updates a single `DatabaseSetting` using a unique key and a patch.""" - updateDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDatabaseSettingInput! - ): UpdateDatabaseSettingPayload - - """Updates a single `CryptoAuthModule` using a unique key and a patch.""" - updateCryptoAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateCryptoAuthModuleInput! - ): UpdateCryptoAuthModulePayload - - """ - 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: UpdateDatabaseProvisionModuleInput! - ): UpdateDatabaseProvisionModulePayload - - """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 `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload - - """ - Updates a single `SecureTableProvision` using a unique key and a patch. - """ - updateSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSecureTableProvisionInput! - ): UpdateSecureTableProvisionPayload - - """Updates a single `ApiSetting` using a unique key and a patch.""" - updateApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateApiSettingInput! - ): UpdateApiSettingPayload - - """Updates a single `ComputeLogModule` using a unique key and a patch.""" - updateComputeLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateComputeLogModuleInput! - ): UpdateComputeLogModulePayload - - """Updates a single `InferenceLogModule` using a unique key and a patch.""" - updateInferenceLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateInferenceLogModuleInput! - ): UpdateInferenceLogModulePayload - - """Updates a single `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: UpdateMerkleStoreModuleInput! - ): UpdateMerkleStoreModulePayload - - """Updates a single `StorageLogModule` using a unique key and a patch.""" - updateStorageLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateStorageLogModuleInput! - ): UpdateStorageLogModulePayload - - """Updates a single `TransferLogModule` using a unique key and a patch.""" - updateTransferLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTransferLogModuleInput! - ): UpdateTransferLogModulePayload - - """Updates a single `Enum` using a unique key and a patch.""" - updateEnum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEnumInput! - ): UpdateEnumPayload - - """Updates a single `AppLimitEvent` using a unique key and a patch.""" - updateAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitEventInput! - ): UpdateAppLimitEventPayload - - """Updates a single `OrgLimitEvent` using a unique key and a patch.""" - updateOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitEventInput! - ): UpdateOrgLimitEventPayload - - """Updates a single `View` using a unique key and a patch.""" - updateView( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewInput! - ): UpdateViewPayload - - """Updates a single `WebauthnAuthModule` using a unique key and a patch.""" - updateWebauthnAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateWebauthnAuthModuleInput! - ): UpdateWebauthnAuthModulePayload - - """Updates a single `AppMembership` using a unique key and a patch.""" - updateAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipInput! - ): UpdateAppMembershipPayload - - """Updates a single `User` using a unique key and a patch.""" - updateUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUserInput! - ): UpdateUserPayload - - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload - - """Updates a single `App` using a unique key and a patch.""" - updateApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppInput! - ): UpdateAppPayload - - """Updates a single `Site` using a unique key and a patch.""" - updateSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteInput! - ): UpdateSitePayload - - """Updates a single `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 `NamespaceModule` using a unique key and a patch.""" - updateNamespaceModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateNamespaceModuleInput! - ): UpdateNamespaceModulePayload - - """Updates a single `NotificationsModule` using a unique key and a patch.""" - updateNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateNotificationsModuleInput! - ): UpdateNotificationsModulePayload - - """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 `WebauthnCredential` using a unique key and a patch.""" - updateWebauthnCredential( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateWebauthnCredentialInput! - ): UpdateWebauthnCredentialPayload - - """ - Updates a single `PrimaryKeyConstraint` using a unique key and a patch. - """ - updatePrimaryKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePrimaryKeyConstraintInput! - ): UpdatePrimaryKeyConstraintPayload - - """Updates a single `Trigger` using a unique key and a patch.""" - updateTrigger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTriggerInput! - ): UpdateTriggerPayload - - """Updates a single `CheckConstraint` using a unique key and a patch.""" - updateCheckConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateCheckConstraintInput! - ): UpdateCheckConstraintPayload - - """Updates a single `UniqueConstraint` using a unique key and a patch.""" - updateUniqueConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUniqueConstraintInput! - ): UpdateUniqueConstraintPayload - - """Updates a single `SpatialRelation` using a unique key and a patch.""" - updateSpatialRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSpatialRelationInput! - ): UpdateSpatialRelationPayload - - """Updates a single `Policy` using a unique key and a patch.""" - updatePolicy( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePolicyInput! - ): UpdatePolicyPayload - - """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" - updateOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitAggregateInput! - ): UpdateOrgLimitAggregatePayload - - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload - - """Updates a single `WebauthnSetting` using a unique key and a patch.""" - updateWebauthnSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateWebauthnSettingInput! - ): UpdateWebauthnSettingPayload - - """Updates a single `BillingModule` using a unique key and a patch.""" - updateBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBillingModuleInput! - ): UpdateBillingModulePayload - - """Updates a single `OrgMembership` using a unique key and a patch.""" - updateOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipInput! - ): UpdateOrgMembershipPayload - - """Updates a single `Schema` using a unique key and a patch.""" - updateSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSchemaInput! - ): UpdateSchemaPayload - - """Updates a single `Index` using a unique key and a patch.""" - updateIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateIndexInput! - ): UpdateIndexPayload - - """Updates a single `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: UpdateGraphModuleInput! - ): UpdateGraphModulePayload - - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload - - """ - Updates a single `BillingProviderModule` using a unique key and a patch. - """ - updateBillingProviderModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBillingProviderModuleInput! - ): UpdateBillingProviderModulePayload - - """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 `HierarchyModule` using a unique key and a patch.""" - updateHierarchyModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateHierarchyModuleInput! - ): UpdateHierarchyModulePayload - - """Updates a single `ProfilesModule` using a unique key and a patch.""" - updateProfilesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateProfilesModuleInput! - ): UpdateProfilesModulePayload - - """Updates a single `EmbeddingChunk` using a unique key and a patch.""" - updateEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEmbeddingChunkInput! - ): UpdateEmbeddingChunkPayload - - """ - Updates a single `ForeignKeyConstraint` using a unique key and a patch. - """ - updateForeignKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateForeignKeyConstraintInput! - ): UpdateForeignKeyConstraintPayload - - """Updates a single `OrgInvite` using a unique key and a patch.""" - updateOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgInviteInput! - ): UpdateOrgInvitePayload - - """Updates a single `AgentModule` using a unique key and a patch.""" - updateAgentModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAgentModuleInput! - ): UpdateAgentModulePayload - - """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 `UserAuthModule` using a unique key and a patch.""" - updateUserAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUserAuthModuleInput! - ): UpdateUserAuthModulePayload - - """Updates a single `Field` using a unique key and a patch.""" - updateField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFieldInput! - ): UpdateFieldPayload - - """Updates a single `FunctionModule` using a unique key and a patch.""" - updateFunctionModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionModuleInput! - ): UpdateFunctionModulePayload - - """Updates a single `Table` using a unique key and a patch.""" - updateTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTableInput! - ): UpdateTablePayload - - """Updates a single `LimitsModule` using a unique key and a patch.""" - updateLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateLimitsModuleInput! - ): UpdateLimitsModulePayload - - """Updates a single `StorageModule` using a unique key and a patch.""" - updateStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateStorageModuleInput! - ): UpdateStorageModulePayload - - """Updates a single `MembershipsModule` using a unique key and a patch.""" - updateMembershipsModule( - """ - 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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEventsModuleInput! - ): UpdateEventsModulePayload - - """Updates a single `EntityTypeProvision` using a unique key and a patch.""" - updateEntityTypeProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEntityTypeProvisionInput! - ): UpdateEntityTypeProvisionPayload - - """Deletes a single `DefaultIdsModule` using a unique key.""" - deleteDefaultIdsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDefaultIdsModuleInput! - ): DeleteDefaultIdsModulePayload - - """Deletes a single `AppLimitCreditRedemption` using a unique key.""" - deleteAppLimitCreditRedemption( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditRedemptionInput! - ): DeleteAppLimitCreditRedemptionPayload - - """Deletes a single `Function` using a unique key.""" - deleteFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionInput! - ): DeleteFunctionPayload - - """Deletes a single `ViewTable` using a unique key.""" - deleteViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteViewTableInput! - ): DeleteViewTablePayload - - """Deletes a single `ApiSchema` using a unique key.""" - deleteApiSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApiSchemaInput! - ): DeleteApiSchemaPayload - - """Deletes a single `SiteTheme` using a unique key.""" - deleteSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteThemeInput! - ): DeleteSiteThemePayload - - """Deletes a single `OrgMember` using a unique key.""" - deleteOrgMember( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMemberInput! - ): DeleteOrgMemberPayload - - """Deletes a single `CorsSetting` using a unique key.""" - deleteCorsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCorsSettingInput! - ): DeleteCorsSettingPayload - - """Deletes a single `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 `MembershipTypesModule` using a unique key.""" - deleteMembershipTypesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - 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 `AppPermissionDefault` using a unique key.""" - deleteAppPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionDefaultInput! - ): DeleteAppPermissionDefaultPayload - - """Deletes a single `ApiModule` using a unique key.""" - deleteApiModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApiModuleInput! - ): DeleteApiModulePayload - - """Deletes a single `SiteModule` using a unique key.""" - deleteSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteModuleInput! - ): DeleteSiteModulePayload - - """Deletes a single `RoleType` using a unique key.""" - deleteRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRoleTypeInput! - ): DeleteRoleTypePayload - - """Deletes a single `SchemaGrant` using a unique key.""" - deleteSchemaGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSchemaGrantInput! - ): DeleteSchemaGrantPayload - - """Deletes a single `TriggerFunction` using a unique key.""" - deleteTriggerFunction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteTriggerFunctionInput! - ): DeleteTriggerFunctionPayload - - """Deletes a single `ViewRule` using a unique key.""" - deleteViewRule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteViewRuleInput! - ): DeleteViewRulePayload - - """Deletes a single `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 `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 `SessionSecretsModule` using a unique key.""" - deleteSessionSecretsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSessionSecretsModuleInput! - ): DeleteSessionSecretsModulePayload - - """Deletes a single `AppAdminGrant` using a unique key.""" - deleteAppAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppAdminGrantInput! - ): DeleteAppAdminGrantPayload - - """Deletes a single `AppOwnerGrant` using a unique key.""" - deleteAppOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppOwnerGrantInput! - ): DeleteAppOwnerGrantPayload - - """Deletes a single `OrgPermissionDefault` using a unique key.""" - deleteOrgPermissionDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionDefaultInput! - ): DeleteOrgPermissionDefaultPayload - - """Deletes a single `DefaultPrivilege` using a unique key.""" - deleteDefaultPrivilege( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDefaultPrivilegeInput! - ): DeleteDefaultPrivilegePayload - - """Deletes a single `ViewGrant` using a unique key.""" - deleteViewGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteViewGrantInput! - ): DeleteViewGrantPayload - - """Deletes a single `Api` using a unique key.""" - deleteApi( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApiInput! - ): DeleteApiPayload - - """Deletes a single `ConnectedAccountsModule` using a unique key.""" - deleteConnectedAccountsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteConnectedAccountsModuleInput! - ): DeleteConnectedAccountsModulePayload - - """Deletes a single `DevicesModule` using a unique key.""" - deleteDevicesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDevicesModuleInput! - ): DeleteDevicesModulePayload - - """Deletes a single `EmailsModule` using a unique key.""" - deleteEmailsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmailsModuleInput! - ): DeleteEmailsModulePayload - - """Deletes a single `PhoneNumbersModule` using a unique key.""" - deletePhoneNumbersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePhoneNumbersModuleInput! - ): DeletePhoneNumbersModulePayload - - """Deletes a single `UsersModule` using a unique key.""" - deleteUsersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteUsersModuleInput! - ): DeleteUsersModulePayload - - """Deletes a single `WebauthnCredentialsModule` using a unique key.""" - deleteWebauthnCredentialsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteWebauthnCredentialsModuleInput! - ): DeleteWebauthnCredentialsModulePayload - - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload - - """Deletes a single `OrgAdminGrant` using a unique key.""" - deleteOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgAdminGrantInput! - ): DeleteOrgAdminGrantPayload - - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload - - """Deletes a single `OrgOwnerGrant` using a unique key.""" - deleteOrgOwnerGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgOwnerGrantInput! - ): DeleteOrgOwnerGrantPayload - - """Deletes a single `NodeTypeRegistry` using a unique key.""" - deleteNodeTypeRegistry( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNodeTypeRegistryInput! - ): DeleteNodeTypeRegistryPayload - - """Deletes a single `AppLimitCapsDefault` using a unique key.""" - deleteAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapsDefaultInput! - ): DeleteAppLimitCapsDefaultPayload - - """Deletes a single `OrgLimitCapsDefault` using a unique key.""" - deleteOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapsDefaultInput! - ): DeleteOrgLimitCapsDefaultPayload - - """Deletes a single `AppLimitCap` using a unique key.""" - deleteAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapInput! - ): DeleteAppLimitCapPayload - - """Deletes a single `OrgLimitCap` using a unique key.""" - deleteOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapInput! - ): DeleteOrgLimitCapPayload - - """Deletes a single `Database` using a unique key.""" - deleteDatabase( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDatabaseInput! - ): DeleteDatabasePayload - - """Deletes a single `CryptoAddressesModule` using a unique key.""" - deleteCryptoAddressesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCryptoAddressesModuleInput! - ): DeleteCryptoAddressesModulePayload - - """Deletes a single `OrgChartEdge` using a unique key.""" - deleteOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeInput! - ): DeleteOrgChartEdgePayload - - """Deletes a single `CryptoAddress` using a unique key.""" - deleteCryptoAddress( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCryptoAddressInput! - ): DeleteCryptoAddressPayload - - """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" - deleteAppLimitCreditCodeItem( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditCodeItemInput! - ): DeleteAppLimitCreditCodeItemPayload - - """Deletes a single `AppLimitDefault` using a unique key.""" - deleteAppLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitDefaultInput! - ): DeleteAppLimitDefaultPayload - - """Deletes a single `OrgLimitDefault` using a unique key.""" - deleteOrgLimitDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitDefaultInput! - ): DeleteOrgLimitDefaultPayload - - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload - - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload - - """Deletes a single `AppLimitCreditCode` using a unique key.""" - deleteAppLimitCreditCode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditCodeInput! - ): DeleteAppLimitCreditCodePayload - - """Deletes a single `AppLimitWarning` using a unique key.""" - deleteAppLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitWarningInput! - ): DeleteAppLimitWarningPayload - - """Deletes a single `FullTextSearch` using a unique key.""" - deleteFullTextSearch( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFullTextSearchInput! - ): DeleteFullTextSearchPayload - - """Deletes a single `TableGrant` using a unique key.""" - deleteTableGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteTableGrantInput! - ): DeleteTableGrantPayload - - """Deletes a single `SiteMetadatum` using a unique key.""" - deleteSiteMetadatum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteMetadatumInput! - ): DeleteSiteMetadatumPayload - - """Deletes a single `PubkeySetting` using a unique key.""" - deletePubkeySetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePubkeySettingInput! - ): DeletePubkeySettingPayload - - """Deletes a single `RateLimitsModule` using a unique key.""" - deleteRateLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRateLimitsModuleInput! - ): DeleteRateLimitsModulePayload - - """Deletes a single `OrgChartEdgeGrant` using a unique key.""" - deleteOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeGrantInput! - ): DeleteOrgChartEdgeGrantPayload - - """Deletes a single `PhoneNumber` using a unique key.""" - deletePhoneNumber( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePhoneNumberInput! - ): DeletePhoneNumberPayload - - """Deletes a single `AppLimitCredit` using a unique key.""" - deleteAppLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCreditInput! - ): DeleteAppLimitCreditPayload - - """Deletes a single `OrgLimitCredit` using a unique key.""" - deleteOrgLimitCredit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCreditInput! - ): DeleteOrgLimitCreditPayload - - """Deletes a single `AppClaimedInvite` using a unique key.""" - deleteAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppClaimedInviteInput! - ): DeleteAppClaimedInvitePayload - - """Deletes a single `OrgLimitWarning` using a unique key.""" - deleteOrgLimitWarning( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitWarningInput! - ): DeleteOrgLimitWarningPayload - - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload - - """Deletes a single `Domain` using a unique key.""" - deleteDomain( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDomainInput! - ): DeleteDomainPayload - - """Deletes a single `RlsSetting` using a unique key.""" - deleteRlsSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRlsSettingInput! - ): DeleteRlsSettingPayload - - """Deletes a single `AppGrant` using a unique key.""" - deleteAppGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppGrantInput! - ): DeleteAppGrantPayload - - """Deletes a single `OrgClaimedInvite` using a unique key.""" - deleteOrgClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgClaimedInviteInput! - ): DeleteOrgClaimedInvitePayload - - """Deletes a single `AuditLogAuth` using a unique key.""" - deleteAuditLogAuth( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAuditLogAuthInput! - ): DeleteAuditLogAuthPayload - - """Deletes a single `BlueprintConstruction` using a unique key.""" - deleteBlueprintConstruction( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBlueprintConstructionInput! - ): DeleteBlueprintConstructionPayload - - """Deletes a single `RlsModule` using a unique key.""" - deleteRlsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRlsModuleInput! - ): DeleteRlsModulePayload - - """Deletes a single `SessionsModule` using a unique key.""" - deleteSessionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSessionsModuleInput! - ): DeleteSessionsModulePayload - - """Deletes a single `OrgMemberProfile` using a unique key.""" - deleteOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMemberProfileInput! - ): DeleteOrgMemberProfilePayload - - """Deletes a single `OrgGrant` using a unique key.""" - deleteOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgGrantInput! - ): DeleteOrgGrantPayload - - """Deletes a single `Blueprint` using a unique key.""" - deleteBlueprint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBlueprintInput! - ): DeleteBlueprintPayload - - """Deletes a single `DenormalizedTableField` using a unique key.""" - deleteDenormalizedTableField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDenormalizedTableFieldInput! - ): DeleteDenormalizedTableFieldPayload - - """Deletes a single `RateLimitMetersModule` using a unique key.""" - deleteRateLimitMetersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRateLimitMetersModuleInput! - ): DeleteRateLimitMetersModulePayload - - """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: DeleteRealtimeModuleInput! - ): DeleteRealtimeModulePayload - - """Deletes a single `Partition` using a unique key.""" - deletePartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePartitionInput! - ): DeletePartitionPayload - - """Deletes a single `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: DeletePlansModuleInput! - ): DeletePlansModulePayload - - """Deletes a single `Email` using a unique key.""" - deleteEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmailInput! - ): DeleteEmailPayload - - """Deletes a single `DatabaseTransfer` using a unique key.""" - deleteDatabaseTransfer( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDatabaseTransferInput! - ): DeleteDatabaseTransferPayload - - """Deletes a single `DatabaseSetting` using a unique key.""" - deleteDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDatabaseSettingInput! - ): DeleteDatabaseSettingPayload - - """Deletes a single `CryptoAuthModule` using a unique key.""" - deleteCryptoAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCryptoAuthModuleInput! - ): DeleteCryptoAuthModulePayload - - """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: DeleteDatabaseProvisionModuleInput! - ): DeleteDatabaseProvisionModulePayload - - """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 `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload - - """Deletes a single `SecureTableProvision` using a unique key.""" - deleteSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSecureTableProvisionInput! - ): DeleteSecureTableProvisionPayload - - """Deletes a single `ApiSetting` using a unique key.""" - deleteApiSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApiSettingInput! - ): DeleteApiSettingPayload - - """Deletes a single `ComputeLogModule` using a unique key.""" - deleteComputeLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteComputeLogModuleInput! - ): DeleteComputeLogModulePayload - - """Deletes a single `InferenceLogModule` using a unique key.""" - deleteInferenceLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteInferenceLogModuleInput! - ): DeleteInferenceLogModulePayload - - """Deletes a single `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: DeleteMerkleStoreModuleInput! - ): DeleteMerkleStoreModulePayload - - """Deletes a single `StorageLogModule` using a unique key.""" - deleteStorageLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteStorageLogModuleInput! - ): DeleteStorageLogModulePayload - - """Deletes a single `TransferLogModule` using a unique key.""" - deleteTransferLogModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteTransferLogModuleInput! - ): DeleteTransferLogModulePayload - - """Deletes a single `Enum` using a unique key.""" - deleteEnum( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEnumInput! - ): DeleteEnumPayload - - """Deletes a single `AppLimitEvent` using a unique key.""" - deleteAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitEventInput! - ): DeleteAppLimitEventPayload - - """Deletes a single `OrgLimitEvent` using a unique key.""" - deleteOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitEventInput! - ): DeleteOrgLimitEventPayload - - """Deletes a single `View` using a unique key.""" - deleteView( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteViewInput! - ): DeleteViewPayload - - """Deletes a single `WebauthnAuthModule` using a unique key.""" - deleteWebauthnAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteWebauthnAuthModuleInput! - ): DeleteWebauthnAuthModulePayload - - """Deletes a single `AppMembership` using a unique key.""" - deleteAppMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipInput! - ): DeleteAppMembershipPayload - - """Deletes a single `User` using a unique key.""" - deleteUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteUserInput! - ): DeleteUserPayload - - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload - - """Deletes a single `App` using a unique key.""" - deleteApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppInput! - ): DeleteAppPayload - - """Deletes a single `Site` using a unique key.""" - deleteSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteInput! - ): DeleteSitePayload - - """Deletes a single `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 `NamespaceModule` using a unique key.""" - deleteNamespaceModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNamespaceModuleInput! - ): DeleteNamespaceModulePayload - - """Deletes a single `NotificationsModule` using a unique key.""" - deleteNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNotificationsModuleInput! - ): DeleteNotificationsModulePayload - - """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 `WebauthnCredential` using a unique key.""" - deleteWebauthnCredential( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteWebauthnCredentialInput! - ): DeleteWebauthnCredentialPayload - - """Deletes a single `PrimaryKeyConstraint` using a unique key.""" - deletePrimaryKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePrimaryKeyConstraintInput! - ): DeletePrimaryKeyConstraintPayload - - """Deletes a single `Trigger` using a unique key.""" - deleteTrigger( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteTriggerInput! - ): DeleteTriggerPayload - - """Deletes a single `CheckConstraint` using a unique key.""" - deleteCheckConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteCheckConstraintInput! - ): DeleteCheckConstraintPayload - - """Deletes a single `UniqueConstraint` using a unique key.""" - deleteUniqueConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteUniqueConstraintInput! - ): DeleteUniqueConstraintPayload - - """Deletes a single `SpatialRelation` using a unique key.""" - deleteSpatialRelation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSpatialRelationInput! - ): DeleteSpatialRelationPayload - - """Deletes a single `Policy` using a unique key.""" - deletePolicy( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePolicyInput! - ): DeletePolicyPayload - - """Deletes a single `OrgLimitAggregate` using a unique key.""" - deleteOrgLimitAggregate( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitAggregateInput! - ): DeleteOrgLimitAggregatePayload - - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload - - """Deletes a single `WebauthnSetting` using a unique key.""" - deleteWebauthnSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteWebauthnSettingInput! - ): DeleteWebauthnSettingPayload - - """Deletes a single `BillingModule` using a unique key.""" - deleteBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBillingModuleInput! - ): DeleteBillingModulePayload - - """Deletes a single `OrgMembership` using a unique key.""" - deleteOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipInput! - ): DeleteOrgMembershipPayload - - """Deletes a single `Schema` using a unique key.""" - deleteSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSchemaInput! - ): DeleteSchemaPayload - - """Deletes a single `Index` using a unique key.""" - deleteIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteIndexInput! - ): DeleteIndexPayload - - """Deletes a single `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: DeleteGraphModuleInput! - ): DeleteGraphModulePayload - - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload - - """Deletes a single `BillingProviderModule` using a unique key.""" - deleteBillingProviderModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBillingProviderModuleInput! - ): DeleteBillingProviderModulePayload - - """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 `HierarchyModule` using a unique key.""" - deleteHierarchyModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteHierarchyModuleInput! - ): DeleteHierarchyModulePayload - - """Deletes a single `ProfilesModule` using a unique key.""" - deleteProfilesModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteProfilesModuleInput! - ): DeleteProfilesModulePayload - - """Deletes a single `EmbeddingChunk` using a unique key.""" - deleteEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmbeddingChunkInput! - ): DeleteEmbeddingChunkPayload - - """Deletes a single `ForeignKeyConstraint` using a unique key.""" - deleteForeignKeyConstraint( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteForeignKeyConstraintInput! - ): DeleteForeignKeyConstraintPayload - - """Deletes a single `OrgInvite` using a unique key.""" - deleteOrgInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgInviteInput! - ): DeleteOrgInvitePayload - - """Deletes a single `AgentModule` using a unique key.""" - deleteAgentModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAgentModuleInput! - ): DeleteAgentModulePayload - - """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 `UserAuthModule` using a unique key.""" - deleteUserAuthModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteUserAuthModuleInput! - ): DeleteUserAuthModulePayload - - """Deletes a single `Field` using a unique key.""" - deleteField( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFieldInput! - ): DeleteFieldPayload - - """Deletes a single `FunctionModule` using a unique key.""" - deleteFunctionModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionModuleInput! - ): DeleteFunctionModulePayload - - """Deletes a single `Table` using a unique key.""" - deleteTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteTableInput! - ): DeleteTablePayload - - """Deletes a single `LimitsModule` using a unique key.""" - deleteLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteLimitsModuleInput! - ): DeleteLimitsModulePayload - - """Deletes a single `StorageModule` using a unique key.""" - deleteStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteStorageModuleInput! - ): DeleteStorageModulePayload - - """Deletes a single `MembershipsModule` using a unique key.""" - deleteMembershipsModule( - """ - 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( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEventsModuleInput! - ): DeleteEventsModulePayload - - """Deletes a single `EntityTypeProvision` using a unique key.""" - deleteEntityTypeProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEntityTypeProvisionInput! - ): DeleteEntityTypeProvisionPayload - - """ - 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 `sendAccountDeletionEmail` mutation.""" -type SendAccountDeletionEmailPayload { - """ - The 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 `sendAccountDeletionEmail` mutation.""" -input SendAccountDeletionEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our `signOut` mutation.""" -type SignOutPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by 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 `signOut` mutation.""" -input SignOutInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our `acceptDatabaseTransfer` mutation.""" -type AcceptDatabaseTransferPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `acceptDatabaseTransfer` mutation.""" -input AcceptDatabaseTransferInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - transferId: UUID -} - -"""The output of our `cancelDatabaseTransfer` mutation.""" -type CancelDatabaseTransferPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `cancelDatabaseTransfer` mutation.""" -input CancelDatabaseTransferInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - transferId: UUID -} - -"""The output of our `rejectDatabaseTransfer` mutation.""" -type RejectDatabaseTransferPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `rejectDatabaseTransfer` mutation.""" -input RejectDatabaseTransferInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - transferId: UUID -} - -"""The output of our `disconnectAccount` mutation.""" -type DisconnectAccountPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `disconnectAccount` mutation.""" -input DisconnectAccountInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - accountId: UUID! -} - -"""The output of our `revokeApiKey` mutation.""" -type RevokeApiKeyPayload { - """ - The 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 `revokeApiKey` mutation.""" -input RevokeApiKeyInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - keyId: UUID! -} - -"""The output of our `revokeSession` mutation.""" -type RevokeSessionPayload { - """ - The 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 `revokeSession` mutation.""" -input RevokeSessionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - sessionId: UUID! -} - -"""The output of our `verifyPassword` mutation.""" -type VerifyPasswordPayload { - """ - The 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 `verifyPassword` mutation.""" -input VerifyPasswordInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - password: String! -} - -"""The output of our `verifyTotp` mutation.""" -type VerifyTotpPayload { - """ - The 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 `verifyTotp` mutation.""" -input VerifyTotpInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - totpValue: String! -} - -"""The output of our `submitAppInviteCode` mutation.""" -type SubmitAppInviteCodePayload { - """ - The 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 `submitAppInviteCode` mutation.""" -input SubmitAppInviteCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - token: String -} - -"""The output of our `submitOrgInviteCode` mutation.""" -type SubmitOrgInviteCodePayload { - """ - The 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 `submitOrgInviteCode` mutation.""" -input SubmitOrgInviteCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - token: String -} - -"""The output of our `checkPassword` mutation.""" -type CheckPasswordPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by 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 `checkPassword` mutation.""" -input CheckPasswordInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - password: String -} - -"""The output of our `confirmDeleteAccount` mutation.""" -type ConfirmDeleteAccountPayload { - """ - The 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 `confirmDeleteAccount` mutation.""" -input ConfirmDeleteAccountInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - userId: UUID - token: String -} - -"""The output of our `setPassword` mutation.""" -type SetPasswordPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `setPassword` mutation.""" -input SetPasswordInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - currentPassword: String - newPassword: String -} - -"""The output of our `verifyEmail` mutation.""" -type VerifyEmailPayload { - """ - The 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 `verifyEmail` mutation.""" -input VerifyEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - emailId: UUID - token: String -} - -"""The output of our `constructBlueprint` mutation.""" -type ConstructBlueprintPayload { - """ - The 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 `constructBlueprint` mutation.""" -input ConstructBlueprintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - blueprintId: UUID - schemaId: UUID -} - -"""The output of our `provisionNewUser` mutation.""" -type ProvisionNewUserPayload { - """ - The 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 `provisionNewUser` mutation.""" -input ProvisionNewUserInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: String - password: String -} - -"""The output of our `resetPassword` mutation.""" -type ResetPasswordPayload { - """ - The 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 `resetPassword` mutation.""" -input ResetPasswordInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - roleId: UUID - resetToken: String - newPassword: String -} - -"""The output of our `provisionCheckConstraint` mutation.""" -type ProvisionCheckConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `provisionCheckConstraint` mutation.""" -input ProvisionCheckConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - databaseId: UUID - tableId: UUID - definition: JSON -} - -"""The output of our `provisionUniqueConstraint` mutation.""" -type ProvisionUniqueConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `provisionUniqueConstraint` mutation.""" -input ProvisionUniqueConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - databaseId: UUID - tableId: UUID - definition: JSON -} - -"""The output of our `provisionFullTextSearch` mutation.""" -type ProvisionFullTextSearchPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: UUID - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `provisionFullTextSearch` mutation.""" -input ProvisionFullTextSearchInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - databaseId: UUID - tableId: UUID - definition: JSON -} - -"""The output of our `provisionIndex` mutation.""" -type ProvisionIndexPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: UUID - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `provisionIndex` mutation.""" -input ProvisionIndexInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - databaseId: UUID - tableId: UUID - definition: JSON -} - -"""The output of our `copyTemplateToBlueprint` mutation.""" -type CopyTemplateToBlueprintPayload { - """ - The 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 `copyTemplateToBlueprint` mutation.""" -input CopyTemplateToBlueprintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - templateId: UUID - databaseId: UUID - ownerId: UUID - nameOverride: String - displayNameOverride: String -} - -"""The output of our `provisionSpatialRelation` mutation.""" -type ProvisionSpatialRelationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: UUID - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `provisionSpatialRelation` mutation.""" -input ProvisionSpatialRelationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - pDatabaseId: UUID - pSourceTableId: UUID - pSourceFieldId: UUID - pTargetTableId: UUID - pTargetFieldId: UUID - pName: String - pOperator: String - pParamName: String -} - -"""The output of our `signInCrossOrigin` mutation.""" -type SignInCrossOriginPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: SignInCrossOriginRecord - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type SignInCrossOriginRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean -} - -"""All input for the `signInCrossOrigin` mutation.""" -input SignInCrossOriginInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - token: String - credentialKind: String -} - -"""The output of our `bootstrapUser` mutation.""" -type BootstrapUserPayload { - """ - The 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 `signUp` mutation.""" -type SignUpPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: SignUpRecord - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type SignUpRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean -} - -"""All input for the `signUp` mutation.""" -input SignUpInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: String - password: String - rememberMe: Boolean - credentialKind: String - csrfToken: String - deviceToken: String -} - -"""The output of our `signIn` mutation.""" -type SignInPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: SignInRecord - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type SignInRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean - mfaRequired: Boolean - mfaChallengeToken: String -} - -"""All input for the `signIn` mutation.""" -input SignInInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: String - password: String - rememberMe: Boolean - credentialKind: String - csrfToken: String - deviceToken: String -} - -"""The output of our `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 `setFieldOrder` mutation.""" -type SetFieldOrderPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by 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 `setFieldOrder` mutation.""" -input SetFieldOrderInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - fieldIds: [UUID] -} - -"""The output of our `applyRls` mutation.""" -type ApplyRlsPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `applyRls` mutation.""" -input ApplyRlsInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - tableId: UUID - grants: JSON - policyType: String - vars: JSON - fieldIds: [UUID] - permissive: Boolean - name: String -} - -"""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: [String] - pOptions: JSON -} - -"""The output of our `createUserDatabase` mutation.""" -type CreateUserDatabasePayload { - """ - The 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 `createUserDatabase` mutation.""" -input CreateUserDatabaseInput { - """ - An arbitrary 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 - ownerId: UUID - includeInvites: Boolean - includeGroups: Boolean - includeLevels: Boolean - bitlen: Int - tokensExpiration: IntervalInput -} - -"""The output of our `extendTokenExpires` mutation.""" -type ExtendTokenExpiresPayload { - """ - The 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: [ExtendTokenExpiresRecord] - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type ExtendTokenExpiresRecord { - id: UUID - sessionId: UUID - expiresAt: Datetime -} - -"""All input for the `extendTokenExpires` mutation.""" -input ExtendTokenExpiresInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - amount: IntervalInput -} - -"""The output of our `createApiKey` mutation.""" -type CreateApiKeyPayload { - """ - The 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: CreateApiKeyRecord - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type CreateApiKeyRecord { - apiKey: String - keyId: UUID - expiresAt: Datetime -} - -"""All input for the `createApiKey` mutation.""" -input CreateApiKeyInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - keyName: String - accessLevel: String - mfaLevel: String - expiresIn: IntervalInput -} - -"""The output of our `requestCrossOriginToken` mutation.""" -type RequestCrossOriginTokenPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `requestCrossOriginToken` mutation.""" -input RequestCrossOriginTokenInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: String - password: String - origin: ConstructiveInternalTypeOrigin - rememberMe: Boolean -} - -"""The output of our `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 `sendVerificationEmail` mutation.""" -type SendVerificationEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `sendVerificationEmail` mutation.""" -input SendVerificationEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - -"""The output of our `forgotPassword` mutation.""" -type ForgotPasswordPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `forgotPassword` mutation.""" -input ForgotPasswordInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - -"""The output of our 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 `AppLimitCreditRedemption` mutation.""" -type CreateAppLimitCreditRedemptionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditRedemption` that was created by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge -} - -"""All input for the create `AppLimitCreditRedemption` mutation.""" -input CreateAppLimitCreditRedemptionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCreditRedemption` to be created by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemptionInput! -} - -"""An input for mutations affecting `AppLimitCreditRedemption`""" -input AppLimitCreditRedemptionInput { - id: UUID - - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID! - - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID! -} - -"""The output of our create `Function` mutation.""" -type CreateFunctionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Function` that was created by this mutation.""" - function: Function - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Function`. May be used by Relay 1.""" - functionEdge( - """The method to use when ordering `Function`.""" - orderBy: [FunctionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionEdge -} - -"""All input for the create `Function` mutation.""" -input CreateFunctionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Function` to be created by this mutation.""" - function: FunctionInput! -} - -"""An input for mutations affecting `Function`""" -input FunctionInput { - id: UUID - databaseId: UUID! - schemaId: UUID! - name: String! -} - -"""The output of our create `ViewTable` mutation.""" -type CreateViewTablePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewTable` that was created by this mutation.""" - viewTable: ViewTable - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewTable`. May be used by Relay 1.""" - viewTableEdge( - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewTableEdge -} - -"""All input for the create `ViewTable` mutation.""" -input CreateViewTableInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ViewTable` to be created by this mutation.""" - viewTable: ViewTableInput! -} - -"""An input for mutations affecting `ViewTable`""" -input ViewTableInput { - id: UUID - viewId: UUID! - tableId: UUID! - joinOrder: Int -} - -"""The output of our create `ApiSchema` mutation.""" -type CreateApiSchemaPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiSchema` that was created by this mutation.""" - apiSchema: ApiSchema - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSchema`. May be used by Relay 1.""" - apiSchemaEdge( - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSchemaEdge -} - -"""All input for the create `ApiSchema` mutation.""" -input CreateApiSchemaInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ApiSchema` to be created by this mutation.""" - apiSchema: ApiSchemaInput! -} - -"""An input for mutations affecting `ApiSchema`""" -input ApiSchemaInput { - """Unique identifier for this API-schema mapping""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Metaschema schema being exposed through the API""" - schemaId: UUID! - - """API that exposes this schema""" - apiId: UUID! -} - -"""The output of our create `SiteTheme` mutation.""" -type CreateSiteThemePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteTheme` that was created by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the create `SiteTheme` mutation.""" -input CreateSiteThemeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SiteTheme` to be created by this mutation.""" - siteTheme: SiteThemeInput! -} - -"""An input for mutations affecting `SiteTheme`""" -input SiteThemeInput { - """Unique identifier for this theme record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this theme belongs to""" - siteId: UUID! - - """ - JSONB object containing theme tokens (colors, typography, spacing, etc.) - """ - theme: JSON! -} - -"""The output of our create `OrgMember` mutation.""" -type CreateOrgMemberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMember` that was created by this mutation.""" - orgMember: OrgMember - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge -} - -"""All input for the create `OrgMember` mutation.""" -input CreateOrgMemberInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMember` to be created by this mutation.""" - orgMember: OrgMemberInput! -} - -"""An input for mutations affecting `OrgMember`""" -input OrgMemberInput { - id: UUID - - """Whether this member has admin privileges""" - isAdmin: Boolean - - """References the user who is a member""" - actorId: UUID! - - """References the entity (org or group) this member belongs to""" - entityId: UUID! -} - -"""The output of our create `CorsSetting` mutation.""" -type CreateCorsSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CorsSetting` that was created by this mutation.""" - corsSetting: CorsSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CorsSetting`. May be used by Relay 1.""" - corsSettingEdge( - """The method to use when ordering `CorsSetting`.""" - orderBy: [CorsSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): CorsSettingEdge -} - -"""All input for the create `CorsSetting` mutation.""" -input CreateCorsSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `CorsSetting` to be created by this mutation.""" - corsSetting: CorsSettingInput! -} - -"""An input for mutations affecting `CorsSetting`""" -input CorsSettingInput { - """Unique identifier for this CORS settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Optional API for per-API override; NULL means database-wide default""" - apiId: UUID - - """Array of allowed CORS origins (e.g. https://example.com)""" - allowedOrigins: [String] -} - -"""The output of our create `IdentityProvider` mutation.""" -type CreateIdentityProviderPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `IdentityProvider` that was created by this mutation.""" - identityProvider: IdentityProvider - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `IdentityProvider` mutation.""" -input CreateIdentityProviderInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `IdentityProvider` to be created by this mutation.""" - identityProvider: IdentityProviderInput! -} - -"""An input for mutations affecting `IdentityProvider`""" -input IdentityProviderInput { - slug: String - kind: String - displayName: String - enabled: Boolean - isBuiltIn: Boolean -} - -"""The output of our create `ConfigSecretsOrgModule` mutation.""" -type CreateConfigSecretsOrgModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ConfigSecretsOrgModule` that was created by this mutation.""" - configSecretsOrgModule: ConfigSecretsOrgModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" - configSecretsOrgModuleEdge( - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleEdge -} - -"""All input for the create `ConfigSecretsOrgModule` mutation.""" -input CreateConfigSecretsOrgModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ConfigSecretsOrgModule` to be created by this mutation.""" - configSecretsOrgModule: ConfigSecretsOrgModuleInput! -} - -"""An input for mutations affecting `ConfigSecretsOrgModule`""" -input ConfigSecretsOrgModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - tableId: UUID - tableName: String -} - -"""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 `UserStateModule` mutation.""" -type CreateUserStateModulePayload { - """ - The exact 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 created 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 create `UserStateModule` mutation.""" -input CreateUserStateModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `UserStateModule` to be created by this mutation.""" - userStateModule: UserStateModuleInput! -} - -"""An input for mutations affecting `UserStateModule`""" -input UserStateModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - tableId: UUID - tableName: String -} - -"""The output of our create `AppPermissionDefault` mutation.""" -type CreateAppPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermissionDefault` that was created by this mutation.""" - appPermissionDefault: AppPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge -} - -"""All input for the create `AppPermissionDefault` mutation.""" -input CreateAppPermissionDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppPermissionDefault` to be created by this mutation.""" - appPermissionDefault: AppPermissionDefaultInput! -} - -"""An input for mutations affecting `AppPermissionDefault`""" -input AppPermissionDefaultInput { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString -} - -"""The output of our create `ApiModule` mutation.""" -type CreateApiModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiModule` that was created by this mutation.""" - apiModule: ApiModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiModule`. May be used by Relay 1.""" - apiModuleEdge( - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiModuleEdge -} - -"""All input for the create `ApiModule` mutation.""" -input CreateApiModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ApiModule` to be created by this mutation.""" - apiModule: ApiModuleInput! -} - -"""An input for mutations affecting `ApiModule`""" -input ApiModuleInput { - """Unique identifier for this API module record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """API this module configuration belongs to""" - apiId: UUID! - - """Module name (e.g. auth, uploads, webhooks)""" - name: String! - - """JSON configuration data for this module""" - data: JSON! -} - -"""The output of our create `SiteModule` mutation.""" -type CreateSiteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteModule` that was created by this mutation.""" - siteModule: SiteModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteModule`. May be used by Relay 1.""" - siteModuleEdge( - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteModuleEdge -} - -"""All input for the create `SiteModule` mutation.""" -input CreateSiteModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SiteModule` to be created by this mutation.""" - siteModule: SiteModuleInput! -} - -"""An input for mutations affecting `SiteModule`""" -input SiteModuleInput { - """Unique identifier for this site module record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this module configuration belongs to""" - siteId: UUID! - - """Module name (e.g. user_auth_module, analytics)""" - name: String! - - """JSON configuration data for this module""" - data: JSON! -} - -"""The output of our create `RoleType` mutation.""" -type CreateRoleTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RoleType` that was created by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the create `RoleType` mutation.""" -input CreateRoleTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `RoleType` to be created by this mutation.""" - roleType: RoleTypeInput! -} - -"""An input for mutations affecting `RoleType`""" -input RoleTypeInput { - id: Int! - name: String! -} - -"""The output of our create `SchemaGrant` mutation.""" -type CreateSchemaGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SchemaGrant` that was created by this mutation.""" - schemaGrant: SchemaGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SchemaGrant`. May be used by Relay 1.""" - schemaGrantEdge( - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaGrantEdge -} - -"""All input for the create `SchemaGrant` mutation.""" -input CreateSchemaGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SchemaGrant` to be created by this mutation.""" - schemaGrant: SchemaGrantInput! -} - -"""An input for mutations affecting `SchemaGrant`""" -input SchemaGrantInput { - id: UUID - databaseId: UUID - schemaId: UUID! - granteeName: String! - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `TriggerFunction` mutation.""" -type CreateTriggerFunctionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TriggerFunction` that was created by this mutation.""" - triggerFunction: TriggerFunction - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TriggerFunction`. May be used by Relay 1.""" - triggerFunctionEdge( - """The method to use when ordering `TriggerFunction`.""" - orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerFunctionEdge -} - -"""All input for the create `TriggerFunction` mutation.""" -input CreateTriggerFunctionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `TriggerFunction` to be created by this mutation.""" - triggerFunction: TriggerFunctionInput! -} - -"""An input for mutations affecting `TriggerFunction`""" -input TriggerFunctionInput { - id: UUID - databaseId: UUID! - name: String! - code: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `ViewRule` mutation.""" -type CreateViewRulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewRule` that was created by this mutation.""" - viewRule: ViewRule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewRule`. May be used by Relay 1.""" - viewRuleEdge( - """The method to use when ordering `ViewRule`.""" - orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewRuleEdge -} - -"""All input for the create `ViewRule` mutation.""" -input CreateViewRuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ViewRule` to be created by this mutation.""" - viewRule: ViewRuleInput! -} - -"""An input for mutations affecting `ViewRule`""" -input ViewRuleInput { - id: UUID - databaseId: UUID - viewId: UUID! - name: String! - - """INSERT, UPDATE, or DELETE""" - event: String! - - """NOTHING (for read-only) or custom action""" - action: String -} - -"""The output of our create `ConfigSecretsUserModule` mutation.""" -type CreateConfigSecretsUserModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ConfigSecretsUserModule` that was created by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" - configSecretsUserModuleEdge( - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleEdge -} - -"""All input for the create `ConfigSecretsUserModule` mutation.""" -input CreateConfigSecretsUserModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ConfigSecretsUserModule` to be created by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModuleInput! -} - -"""An input for mutations affecting `ConfigSecretsUserModule`""" -input ConfigSecretsUserModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - tableId: UUID - tableName: String - configDefinitionsTableId: UUID -} - -"""The output of our create `IdentityProvidersModule` mutation.""" -type CreateIdentityProvidersModulePayload { - """ - The exact 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 created 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 `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 create `IdentityProvidersModule` mutation.""" -input CreateIdentityProvidersModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `IdentityProvidersModule` to be created by this mutation.""" - identityProvidersModule: IdentityProvidersModuleInput! -} - -"""An input for mutations affecting `IdentityProvidersModule`""" -input IdentityProvidersModuleInput { - 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 - 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 - - """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 - - """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 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 - - """The `SessionSecretsModule` to be created by this mutation.""" - sessionSecretsModule: SessionSecretsModuleInput! -} - -"""An input for mutations affecting `SessionSecretsModule`""" -input SessionSecretsModuleInput { - 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 -} - -"""The output of our create `AppAdminGrant` mutation.""" -type CreateAppAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppAdminGrant` that was created by this mutation.""" - appAdminGrant: AppAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge -} - -"""All input for the create `AppAdminGrant` mutation.""" -input CreateAppAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppAdminGrant` to be created by this mutation.""" - appAdminGrant: AppAdminGrantInput! -} - -"""An input for mutations affecting `AppAdminGrant`""" -input AppAdminGrantInput { - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `AppOwnerGrant` mutation.""" -type CreateAppOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppOwnerGrant` that was created by this mutation.""" - appOwnerGrant: AppOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge -} - -"""All input for the create `AppOwnerGrant` mutation.""" -input CreateAppOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppOwnerGrant` to be created by this mutation.""" - appOwnerGrant: AppOwnerGrantInput! -} - -"""An input for mutations affecting `AppOwnerGrant`""" -input AppOwnerGrantInput { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - - """The member receiving or losing the ownership grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgPermissionDefault` mutation.""" -type CreateOrgPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefault` that was created by this mutation.""" - orgPermissionDefault: OrgPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge -} - -"""All input for the create `OrgPermissionDefault` mutation.""" -input CreateOrgPermissionDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgPermissionDefault` to be created by this mutation.""" - orgPermissionDefault: OrgPermissionDefaultInput! -} - -"""An input for mutations affecting `OrgPermissionDefault`""" -input OrgPermissionDefaultInput { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString - - """References the entity these default permissions apply to""" - entityId: UUID! -} - -"""The output of our create `MigrateFile` mutation.""" -type CreateMigrateFilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MigrateFile` that was created by this mutation.""" - migrateFile: MigrateFile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `MigrateFile` mutation.""" -input CreateMigrateFileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `MigrateFile` to be created by this mutation.""" - migrateFile: MigrateFileInput! -} - -"""An input for mutations affecting `MigrateFile`""" -input MigrateFileInput { - id: UUID - databaseId: UUID - upload: ConstructiveInternalTypeUpload -} - -"""The output of our create `DefaultPrivilege` mutation.""" -type CreateDefaultPrivilegePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DefaultPrivilege` that was created by this mutation.""" - defaultPrivilege: DefaultPrivilege - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DefaultPrivilege`. May be used by Relay 1.""" - defaultPrivilegeEdge( - """The method to use when ordering `DefaultPrivilege`.""" - orderBy: [DefaultPrivilegeOrderBy!]! = [PRIMARY_KEY_ASC] - ): DefaultPrivilegeEdge -} - -"""All input for the create `DefaultPrivilege` mutation.""" -input CreateDefaultPrivilegeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `DefaultPrivilege` to be created by this mutation.""" - defaultPrivilege: DefaultPrivilegeInput! -} - -"""An input for mutations affecting `DefaultPrivilege`""" -input DefaultPrivilegeInput { - id: UUID - databaseId: UUID - schemaId: UUID! - objectType: String! - privilege: String! - granteeName: String! - isGrant: Boolean -} - -"""The output of our create `ViewGrant` mutation.""" -type CreateViewGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewGrant` that was created by this mutation.""" - viewGrant: ViewGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewGrant`. May be used by Relay 1.""" - viewGrantEdge( - """The method to use when ordering `ViewGrant`.""" - orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewGrantEdge -} - -"""All input for the create `ViewGrant` mutation.""" -input CreateViewGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ViewGrant` to be created by this mutation.""" - viewGrant: ViewGrantInput! -} - -"""An input for mutations affecting `ViewGrant`""" -input ViewGrantInput { - id: UUID - databaseId: UUID - viewId: UUID! - granteeName: String! - privilege: String! - withGrantOption: Boolean - isGrant: Boolean -} - -"""The output of our create `Api` mutation.""" -type CreateApiPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Api` that was created by this mutation.""" - api: Api - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Api`. May be used by Relay 1.""" - apiEdge( - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiEdge -} - -"""All input for the create `Api` mutation.""" -input CreateApiInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Api` to be created by this mutation.""" - api: ApiInput! -} - -"""An input for mutations affecting `Api`""" -input ApiInput { - """Unique identifier for this API""" - id: UUID - - """Reference to the metaschema database this API serves""" - databaseId: UUID! - - """Unique name for this API within its database""" - name: String! - - """PostgreSQL database name to connect to""" - dbname: String - - """PostgreSQL role used for authenticated requests""" - roleName: String - - """PostgreSQL role used for anonymous/unauthenticated requests""" - anonRole: String - - """Whether this API is publicly accessible without authentication""" - isPublic: Boolean -} - -"""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 `ConnectedAccountsModule`""" -input ConnectedAccountsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String! -} - -"""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 - - """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 - - """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 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 - - """The `DevicesModule` to be created by this mutation.""" - devicesModule: DevicesModuleInput! -} - -"""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 `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 `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 `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 `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 `EmailsModule` to be created by this mutation.""" - emailsModule: EmailsModuleInput! -} - -"""An input for mutations affecting `EmailsModule`""" -input EmailsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String! -} - -"""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 `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 `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 `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 `PhoneNumbersModule` to be created by this mutation.""" - phoneNumbersModule: PhoneNumbersModuleInput! -} - -"""An input for mutations affecting `PhoneNumbersModule`""" -input PhoneNumbersModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String! -} - -"""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 `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 `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 `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 `UsersModule` to be created by this mutation.""" - usersModule: UsersModuleInput! -} - -"""An input for mutations affecting `UsersModule`""" -input UsersModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - tableId: UUID - tableName: String - typeTableId: UUID - typeTableName: String -} - -"""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 `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 `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 `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 `WebauthnCredentialsModule` to be created by this mutation.""" - webauthnCredentialsModule: WebauthnCredentialsModuleInput! -} - -"""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 -} - -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge -} - -"""All input for the create `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! -} - -"""An input for mutations affecting `AppMembershipDefault`""" -input AppMembershipDefaultInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean -} - -"""The output of our create `OrgAdminGrant` mutation.""" -type CreateOrgAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgAdminGrant` that was created by this mutation.""" - orgAdminGrant: OrgAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge -} - -"""All input for the create `OrgAdminGrant` mutation.""" -input CreateOrgAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgAdminGrant` to be created by this mutation.""" - orgAdminGrant: OrgAdminGrantInput! -} - -"""An input for mutations affecting `OrgAdminGrant`""" -input OrgAdminGrantInput { - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} - -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! -} - -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """References the entity these membership defaults apply to""" - entityId: UUID! -} - -"""The output of our create `OrgOwnerGrant` mutation.""" -type CreateOrgOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgOwnerGrant` that was created by this mutation.""" - orgOwnerGrant: OrgOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge -} - -"""All input for the create `OrgOwnerGrant` mutation.""" -input CreateOrgOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgOwnerGrant` to be created by this mutation.""" - orgOwnerGrant: OrgOwnerGrantInput! -} - -"""An input for mutations affecting `OrgOwnerGrant`""" -input OrgOwnerGrantInput { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - - """The member receiving or losing the ownership grant""" - actorId: UUID! - - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `NodeTypeRegistry` mutation.""" -type CreateNodeTypeRegistryPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NodeTypeRegistry` that was created by this mutation.""" - nodeTypeRegistry: NodeTypeRegistry - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" - nodeTypeRegistryEdge( - """The method to use when ordering `NodeTypeRegistry`.""" - orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] - ): NodeTypeRegistryEdge -} - -"""All input for the create `NodeTypeRegistry` mutation.""" -input CreateNodeTypeRegistryInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `NodeTypeRegistry` to be created by this mutation.""" - nodeTypeRegistry: NodeTypeRegistryInput! -} - -"""An input for mutations affecting `NodeTypeRegistry`""" -input NodeTypeRegistryInput { - name: String! - slug: String! - category: String! - displayName: String - description: String - parameterSchema: JSON - tags: [String] -} - -"""The output of our create `AppLimitCapsDefault` mutation.""" -type CreateAppLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` that was created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the create `AppLimitCapsDefault` mutation.""" -input CreateAppLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` to be created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefaultInput! -} - -"""An input for mutations affecting `AppLimitCapsDefault`""" -input AppLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `OrgLimitCapsDefault` mutation.""" -type CreateOrgLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` that was created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the create `OrgLimitCapsDefault` mutation.""" -input CreateOrgLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` to be created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefaultInput! -} - -"""An input for mutations affecting `OrgLimitCapsDefault`""" -input OrgLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `AppLimitCap` mutation.""" -type CreateAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCap` that was created by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the create `AppLimitCap` mutation.""" -input CreateAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCap` to be created by this mutation.""" - appLimitCap: AppLimitCapInput! -} - -"""An input for mutations affecting `AppLimitCap`""" -input AppLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `OrgLimitCap` mutation.""" -type CreateOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was created by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the create `OrgLimitCap` mutation.""" -input CreateOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCap` to be created by this mutation.""" - orgLimitCap: OrgLimitCapInput! -} - -"""An input for mutations affecting `OrgLimitCap`""" -input OrgLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `UserConnectedAccount` mutation.""" -type CreateUserConnectedAccountPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `UserConnectedAccount` that was created by this mutation.""" - userConnectedAccount: UserConnectedAccount - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `UserConnectedAccount` mutation.""" -input CreateUserConnectedAccountInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `UserConnectedAccount` to be created by this mutation.""" - userConnectedAccount: UserConnectedAccountInput! -} - -"""An input for mutations affecting `UserConnectedAccount`""" -input UserConnectedAccountInput { - id: UUID - ownerId: UUID - service: String - identifier: String - details: JSON - isVerified: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `Database` mutation.""" -type CreateDatabasePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Database` that was created by this mutation.""" - database: Database - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Database`. May be used by Relay 1.""" - databaseEdge( - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseEdge -} - -"""All input for the create `Database` mutation.""" -input CreateDatabaseInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Database` to be created by this mutation.""" - database: DatabaseInput! -} - -"""An input for mutations affecting `Database`""" -input DatabaseInput { - id: UUID - ownerId: UUID - schemaHash: String - name: String - label: String - hash: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""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 `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 `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 `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 `CryptoAddressesModule` to be created by this mutation.""" - cryptoAddressesModule: CryptoAddressesModuleInput! -} - -"""An input for mutations affecting `CryptoAddressesModule`""" -input CryptoAddressesModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String! - cryptoNetwork: String -} - -"""The output of our create `OrgChartEdge` mutation.""" -type CreateOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was created by this mutation.""" - orgChartEdge: OrgChartEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} - -"""All input for the create `OrgChartEdge` mutation.""" -input CreateOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgChartEdge` to be created by this mutation.""" - orgChartEdge: OrgChartEdgeInput! -} - -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID! - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Job title or role name for this position in the org chart""" - positionTitle: String - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int -} - -"""The output of our create `CryptoAddress` mutation.""" -type CreateCryptoAddressPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CryptoAddress` that was created by this mutation.""" - cryptoAddress: CryptoAddress - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CryptoAddress`. May be used by Relay 1.""" - cryptoAddressEdge( - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressEdge -} - -"""All input for the create `CryptoAddress` mutation.""" -input CreateCryptoAddressInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `CryptoAddress` to be created by this mutation.""" - cryptoAddress: CryptoAddressInput! -} - -"""An input for mutations affecting `CryptoAddress`""" -input CryptoAddressInput { - id: UUID - ownerId: UUID - - """ - The cryptocurrency wallet address, validated against network-specific patterns - """ - address: String! - - """Whether ownership of this address has been cryptographically verified""" - isVerified: Boolean - - """Whether this is the user's primary cryptocurrency address""" - isPrimary: Boolean - - """ - Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). - """ - name: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `AppLimitCreditCodeItem` mutation.""" -type CreateAppLimitCreditCodeItemPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCodeItem` that was created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge -} - -"""All input for the create `AppLimitCreditCodeItem` mutation.""" -input CreateAppLimitCreditCodeItemInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCreditCodeItem` to be created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItemInput! -} - -"""An input for mutations affecting `AppLimitCreditCodeItem`""" -input AppLimitCreditCodeItemInput { - id: UUID - - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! - - """Number of credits this item grants per redemption""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String -} - -"""The output of our create `AppLimitDefault` mutation.""" -type CreateAppLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitDefault` that was created by this mutation.""" - appLimitDefault: AppLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge -} - -"""All input for the create `AppLimitDefault` mutation.""" -input CreateAppLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitDefault` to be created by this mutation.""" - appLimitDefault: AppLimitDefaultInput! -} - -"""An input for mutations affecting `AppLimitDefault`""" -input AppLimitDefaultInput { - id: UUID - - """Name identifier of the limit this default applies to""" - name: String! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""The output of our create `OrgLimitDefault` mutation.""" -type CreateOrgLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitDefault` that was created by this mutation.""" - orgLimitDefault: OrgLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge -} - -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! -} - -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { - id: UUID - - """Name identifier of the limit this default applies to""" - name: String! - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was created by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! -} - -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! -} - -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `AppLimitCreditCode` mutation.""" -type CreateAppLimitCreditCodePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCode` that was created by this mutation.""" - appLimitCreditCode: AppLimitCreditCode - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge -} - -"""All input for the create `AppLimitCreditCode` mutation.""" -input CreateAppLimitCreditCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCreditCode` to be created by this mutation.""" - appLimitCreditCode: AppLimitCreditCodeInput! -} - -"""An input for mutations affecting `AppLimitCreditCode`""" -input AppLimitCreditCodeInput { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String! - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime -} - -"""The output of our create `AppLimitWarning` mutation.""" -type CreateAppLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitWarning` that was created by this mutation.""" - appLimitWarning: AppLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge -} - -"""All input for the create `AppLimitWarning` mutation.""" -input CreateAppLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitWarning` to be created by this mutation.""" - appLimitWarning: AppLimitWarningInput! -} - -"""An input for mutations affecting `AppLimitWarning`""" -input AppLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! -} - -"""The output of our create `FullTextSearch` mutation.""" -type CreateFullTextSearchPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `FullTextSearch` that was created by this mutation.""" - fullTextSearch: FullTextSearch - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FullTextSearch`. May be used by Relay 1.""" - fullTextSearchEdge( - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] - ): FullTextSearchEdge -} - -"""All input for the create `FullTextSearch` mutation.""" -input CreateFullTextSearchInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `FullTextSearch` to be created by this mutation.""" - fullTextSearch: FullTextSearchInput! -} - -"""An input for mutations affecting `FullTextSearch`""" -input FullTextSearchInput { - id: UUID - databaseId: UUID - tableId: UUID! - fieldId: UUID! - fieldIds: [UUID]! - weights: [String]! - langs: [String]! - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `TableGrant` mutation.""" -type CreateTableGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TableGrant` that was created by this mutation.""" - tableGrant: TableGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TableGrant`. May be used by Relay 1.""" - tableGrantEdge( - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableGrantEdge -} - -"""All input for the create `TableGrant` mutation.""" -input CreateTableGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `TableGrant` to be created by this mutation.""" - tableGrant: TableGrantInput! -} - -"""An input for mutations affecting `TableGrant`""" -input TableGrantInput { - id: UUID - databaseId: UUID - tableId: UUID! - privilege: String! - granteeName: String! - fieldIds: [UUID] - isGrant: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `SiteMetadatum` mutation.""" -type CreateSiteMetadatumPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteMetadatum` that was created by this mutation.""" - siteMetadatum: SiteMetadatum - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge -} - -"""All input for the create `SiteMetadatum` mutation.""" -input CreateSiteMetadatumInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SiteMetadatum` to be created by this mutation.""" - siteMetadatum: SiteMetadatumInput! -} - -"""An input for mutations affecting `SiteMetadatum`""" -input SiteMetadatumInput { - """Unique identifier for this metadata record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this metadata belongs to""" - siteId: UUID! - - """Page title for SEO (max 120 characters)""" - title: String - - """Meta description for SEO and social sharing (max 120 characters)""" - description: String - - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage -} - -"""The output of our create `PubkeySetting` mutation.""" -type CreatePubkeySettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PubkeySetting` that was created by this mutation.""" - pubkeySetting: PubkeySetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PubkeySetting`. May be used by Relay 1.""" - pubkeySettingEdge( - """The method to use when ordering `PubkeySetting`.""" - orderBy: [PubkeySettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PubkeySettingEdge -} - -"""All input for the create `PubkeySetting` mutation.""" -input CreatePubkeySettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PubkeySetting` to be created by this mutation.""" - pubkeySetting: PubkeySettingInput! -} - -"""An input for mutations affecting `PubkeySetting`""" -input PubkeySettingInput { - """Unique identifier for this pubkey settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """ - Schema containing the crypto auth functions (FK to metaschema_public.schema) - """ - schemaId: UUID - - """Crypto network for key derivation (e.g. cosmos, ethereum)""" - cryptoNetwork: String - - """Field name used to identify the user in crypto auth functions""" - userField: String - - """ - Reference to the sign-up-with-key function (FK to metaschema_public.function) - """ - signUpWithKeyFunctionId: UUID - - """ - Reference to the sign-in challenge request function (FK to metaschema_public.function) - """ - signInRequestChallengeFunctionId: UUID - - """ - Reference to the sign-in failure recording function (FK to metaschema_public.function) - """ - signInRecordFailureFunctionId: UUID - - """ - Reference to the sign-in-with-challenge function (FK to metaschema_public.function) - """ - signInWithChallengeFunctionId: UUID -} - -"""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 `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 `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 `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 `RateLimitsModule` to be created by this mutation.""" - rateLimitsModule: RateLimitsModuleInput! -} - -"""An input for mutations affecting `RateLimitsModule`""" -input RateLimitsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - rateLimitSettingsTableId: UUID - ipRateLimitsTableId: UUID - rateLimitsTableId: UUID - rateLimitSettingsTable: String - ipRateLimitsTable: String - rateLimitsTable: String -} - -"""The output of our create `OrgChartEdgeGrant` mutation.""" -type CreateOrgChartEdgeGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdgeGrant` that was created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge -} - -"""All input for the create `OrgChartEdgeGrant` mutation.""" -input CreateOrgChartEdgeGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgChartEdgeGrant` to be created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrantInput! -} - -"""An input for mutations affecting `OrgChartEdgeGrant`""" -input OrgChartEdgeGrantInput { - id: UUID - - """Organization this grant applies to""" - entityId: UUID! - - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean - - """Job title or role name being assigned in this grant""" - positionTitle: String - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime -} - -"""The output of our create `PhoneNumber` mutation.""" -type CreatePhoneNumberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PhoneNumber` that was created by this mutation.""" - phoneNumber: PhoneNumber - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PhoneNumber`. May be used by Relay 1.""" - phoneNumberEdge( - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] - ): PhoneNumberEdge -} - -"""All input for the create `PhoneNumber` mutation.""" -input CreatePhoneNumberInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PhoneNumber` to be created by this mutation.""" - phoneNumber: PhoneNumberInput! -} - -"""An input for mutations affecting `PhoneNumber`""" -input PhoneNumberInput { - id: UUID - ownerId: UUID - - """Country calling code (e.g. +1, +44)""" - cc: String! - - """The phone number without country code""" - number: String! - - """Whether the phone number has been verified via SMS code""" - isVerified: Boolean - - """Whether this is the user's primary phone number""" - isPrimary: Boolean - - """ - Optional user-provided label for this phone number (e.g. "Mobile", "Work"). - """ - name: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `AppLimitCredit` mutation.""" -type CreateAppLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCredit` that was created by this mutation.""" - appLimitCredit: AppLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge -} - -"""All input for the create `AppLimitCredit` mutation.""" -input CreateAppLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitCredit` to be created by this mutation.""" - appLimitCredit: AppLimitCreditInput! -} - -"""An input for mutations affecting `AppLimitCredit`""" -input AppLimitCreditInput { - id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our create `OrgLimitCredit` mutation.""" -type CreateOrgLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCredit` that was created by this mutation.""" - orgLimitCredit: OrgLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge -} - -"""All input for the create `OrgLimitCredit` mutation.""" -input CreateOrgLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitCredit` to be created by this mutation.""" - orgLimitCredit: OrgLimitCreditInput! -} - -"""An input for mutations affecting `OrgLimitCredit`""" -input OrgLimitCreditInput { - id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our create `AppClaimedInvite` mutation.""" -type CreateAppClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppClaimedInvite` that was created by this mutation.""" - appClaimedInvite: AppClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge -} - -"""All input for the create `AppClaimedInvite` mutation.""" -input CreateAppClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppClaimedInvite` to be created by this mutation.""" - appClaimedInvite: AppClaimedInviteInput! -} - -"""An input for mutations affecting `AppClaimedInvite`""" -input AppClaimedInviteInput { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgLimitWarning` mutation.""" -type CreateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was created by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the create `OrgLimitWarning` mutation.""" -input CreateOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitWarning` to be created by this mutation.""" - orgLimitWarning: OrgLimitWarningInput! -} - -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID -} - -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was created by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! -} - -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean -} - -"""The output of our create `Domain` mutation.""" -type CreateDomainPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Domain` that was created by this mutation.""" - domain: Domain - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Domain`. May be used by Relay 1.""" - domainEdge( - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] - ): DomainEdge -} - -"""All input for the create `Domain` mutation.""" -input CreateDomainInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Domain` to be created by this mutation.""" - domain: DomainInput! -} - -"""An input for mutations affecting `Domain`""" -input DomainInput { - """Unique identifier for this domain record""" - id: UUID - - """Reference to the metaschema database this domain belongs to""" - databaseId: UUID! - - """API endpoint this domain routes to (mutually exclusive with site_id)""" - apiId: UUID - - """Site this domain routes to (mutually exclusive with api_id)""" - siteId: UUID - - """Subdomain portion of the hostname""" - subdomain: ConstructiveInternalTypeHostname - - """Root domain of the hostname""" - domain: ConstructiveInternalTypeHostname -} - -"""The output of our create `RlsSetting` mutation.""" -type CreateRlsSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RlsSetting` that was created by this mutation.""" - rlsSetting: RlsSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RlsSetting`. May be used by Relay 1.""" - rlsSettingEdge( - """The method to use when ordering `RlsSetting`.""" - orderBy: [RlsSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): RlsSettingEdge -} - -"""All input for the create `RlsSetting` mutation.""" -input CreateRlsSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `RlsSetting` to be created by this mutation.""" - rlsSetting: RlsSettingInput! -} - -"""An input for mutations affecting `RlsSetting`""" -input RlsSettingInput { - """Unique identifier for this RLS settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """ - Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) - """ - authenticateSchemaId: UUID - - """ - Schema containing current_role and related functions (FK to metaschema_public.schema) - """ - roleSchemaId: UUID - - """ - Reference to the authenticate function (FK to metaschema_public.function) - """ - authenticateFunctionId: UUID - - """ - Reference to the strict authenticate function (FK to metaschema_public.function) - """ - authenticateStrictFunctionId: UUID - - """ - Reference to the current_role function (FK to metaschema_public.function) - """ - currentRoleFunctionId: UUID - - """ - Reference to the current_role_id function (FK to metaschema_public.function) - """ - currentRoleIdFunctionId: UUID - - """ - Reference to the current_user_agent function (FK to metaschema_public.function) - """ - currentUserAgentFunctionId: UUID - - """ - Reference to the current_ip_address function (FK to metaschema_public.function) - """ - currentIpAddressFunctionId: UUID -} - -"""The output of our create `AppGrant` mutation.""" -type CreateAppGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppGrant` that was created by this mutation.""" - appGrant: AppGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge -} - -"""All input for the create `AppGrant` mutation.""" -input CreateAppGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppGrant` to be created by this mutation.""" - appGrant: AppGrantInput! -} - -"""An input for mutations affecting `AppGrant`""" -input AppGrantInput { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgClaimedInvite` mutation.""" -type CreateOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgClaimedInvite` that was created by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge -} - -"""All input for the create `OrgClaimedInvite` mutation.""" -input CreateOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgClaimedInvite` to be created by this mutation.""" - orgClaimedInvite: OrgClaimedInviteInput! -} - -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! -} - -"""The output of our create `AuditLogAuth` mutation.""" -type CreateAuditLogAuthPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AuditLogAuth` that was created by this mutation.""" - auditLogAuth: AuditLogAuth - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AuditLogAuth`. May be used by Relay 1.""" - auditLogAuthEdge( - """The method to use when ordering `AuditLogAuth`.""" - orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogAuthEdge -} - -"""All input for the create `AuditLogAuth` mutation.""" -input CreateAuditLogAuthInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AuditLogAuth` to be created by this mutation.""" - auditLogAuth: AuditLogAuthInput! -} - -"""An input for mutations affecting `AuditLogAuth`""" -input AuditLogAuthInput { - createdAt: Datetime - - """ - Unique identifier for each audit event (uuidv7 provides temporal ordering) - """ - id: UUID - - """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) - """ - event: String! - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID - - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin - - """Browser or client user-agent string from the request""" - userAgent: String - - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress - - """Whether the authentication attempt succeeded""" - success: Boolean! -} - -"""The output of our create `BlueprintConstruction` mutation.""" -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 `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 `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 `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 `BlueprintConstruction` to be created by this mutation.""" - blueprintConstruction: BlueprintConstructionInput! -} - -"""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 - - """ - 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 `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 `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 `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 `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 `RlsModule` to be created by this mutation.""" - rlsModule: RlsModuleInput! -} - -"""An input for mutations affecting `RlsModule`""" -input RlsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - sessionCredentialsTableId: UUID - sessionsTableId: UUID - usersTableId: UUID - authenticate: String - authenticateStrict: String - currentRole: String - currentRoleId: String -} - -"""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 `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 `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 `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 `SessionsModule` to be created by this mutation.""" - sessionsModule: SessionsModuleInput! -} - -"""An input for mutations affecting `SessionsModule`""" -input SessionsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - authSettingsTableId: UUID - usersTableId: UUID - sessionsDefaultExpiration: IntervalInput - sessionsTable: String - sessionCredentialsTable: String - authSettingsTable: String -} - -"""The output of our create `OrgMemberProfile` mutation.""" -type CreateOrgMemberProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMemberProfile` that was created by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the create `OrgMemberProfile` mutation.""" -input CreateOrgMemberProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMemberProfile` to be created by this mutation.""" - orgMemberProfile: OrgMemberProfileInput! -} - -"""An input for mutations affecting `OrgMemberProfile`""" -input OrgMemberProfileInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage -} - -"""The output of our create `OrgGrant` mutation.""" -type CreateOrgGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgGrant` that was created by this mutation.""" - orgGrant: OrgGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge -} - -"""All input for the create `OrgGrant` mutation.""" -input CreateOrgGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgGrant` to be created by this mutation.""" - orgGrant: OrgGrantInput! -} - -"""An input for mutations affecting `OrgGrant`""" -input OrgGrantInput { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID! - - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our 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 `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 `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 `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 `Blueprint` to be created by this mutation.""" - blueprint: BlueprintInput! -} - -"""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! - - """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 `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 `RateLimitMetersModule` mutation.""" -type CreateRateLimitMetersModulePayload { - """ - The exact 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 - - """ - 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 -} - -"""All input for the create `RateLimitMetersModule` mutation.""" -input CreateRateLimitMetersModuleInput { - """ - An arbitrary string 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! -} - -"""An input for mutations affecting `RateLimitMetersModule`""" -input RateLimitMetersModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - rateLimitStateTableId: UUID - rateLimitStateTableName: String - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String - checkRateLimitFunction: String - prefix: String -} - -"""The output of our create `RealtimeModule` mutation.""" -type CreateRealtimeModulePayload { - """ - The exact 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 created 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 `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 { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `RealtimeModule` to be created by this mutation.""" - realtimeModule: RealtimeModuleInput! -} - -"""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 -} - -"""The output of our create `Partition` mutation.""" -type CreatePartitionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Partition` that was created by this mutation.""" - partition: Partition - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge -} - -"""All input for the create `Partition` mutation.""" -input CreatePartitionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Partition` to be created by this mutation.""" - partition: PartitionInput! -} - -"""An input for mutations affecting `Partition`""" -input PartitionInput { - id: UUID - databaseId: UUID! - tableId: UUID! - strategy: String! - partitionKeyId: UUID! - interval: String - retention: String - retentionKeepTable: Boolean - premake: Int - namingPattern: String - isParented: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""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 `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 `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 `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 `PlansModule` to be created by this mutation.""" - plansModule: PlansModuleInput! -} - -"""An input for mutations affecting `PlansModule`""" -input PlansModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - plansTableId: UUID - plansTableName: String - planLimitsTableId: UUID - planLimitsTableName: String - planPricingTableId: UUID - planOverridesTableId: UUID - applyPlanFunction: String - applyPlanAggregateFunction: String - prefix: String -} - -"""The output of our create `Email` mutation.""" -type CreateEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was created by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the create `Email` mutation.""" -input CreateEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Email` to be created by this mutation.""" - email: EmailInput! -} - -"""An input for mutations affecting `Email`""" -input EmailInput { - id: UUID - ownerId: UUID - - """The email address""" - email: ConstructiveInternalTypeEmail! - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean - - """Whether this is the user's primary email address""" - isPrimary: Boolean - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `SqlAction` mutation.""" -type CreateSqlActionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SqlAction` that was created by this mutation.""" - sqlAction: SqlAction - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `SqlAction` mutation.""" -input CreateSqlActionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SqlAction` to be created by this mutation.""" - sqlAction: SqlActionInput! -} - -"""An input for mutations affecting `SqlAction`""" -input SqlActionInput { - id: Int - name: String - databaseId: UUID - deploy: String - deps: [String] - payload: JSON - content: String - revert: String - verify: String - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID -} - -"""The output of our create `DatabaseTransfer` mutation.""" -type CreateDatabaseTransferPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseTransfer` that was created by this mutation.""" - databaseTransfer: DatabaseTransfer - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" - databaseTransferEdge( - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseTransferEdge -} - -"""All input for the create `DatabaseTransfer` mutation.""" -input CreateDatabaseTransferInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `DatabaseTransfer` to be created by this mutation.""" - databaseTransfer: DatabaseTransferInput! -} - -"""An input for mutations affecting `DatabaseTransfer`""" -input DatabaseTransferInput { - id: UUID - databaseId: UUID! - targetOwnerId: UUID! - sourceApproved: Boolean - targetApproved: Boolean - sourceApprovedAt: Datetime - targetApprovedAt: Datetime - status: String - initiatedBy: UUID! - notes: String - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime - completedAt: Datetime -} - -"""The output of our create `DatabaseSetting` mutation.""" -type CreateDatabaseSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseSetting` that was created by this mutation.""" - databaseSetting: DatabaseSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge -} - -"""All input for the create `DatabaseSetting` mutation.""" -input CreateDatabaseSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `DatabaseSetting` to be created by this mutation.""" - databaseSetting: DatabaseSettingInput! -} - -"""An input for mutations affecting `DatabaseSetting`""" -input DatabaseSettingInput { - """Unique identifier for this settings record""" - id: UUID - - """Reference to the metaschema database these settings apply to""" - databaseId: UUID! - - """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" - enableAggregates: Boolean - - """Enable PostGIS spatial types and operators in the GraphQL API""" - enablePostgis: Boolean - - """ - Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API - """ - enableSearch: Boolean - - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - - """Enable presigned URL upload flow for S3/MinIO storage""" - enablePresignedUploads: Boolean - - """Enable many-to-many relationship queries in the GraphQL API""" - enableManyToMany: Boolean - - """Enable connection filter (where argument) in the GraphQL API""" - enableConnectionFilter: Boolean - - """Enable ltree hierarchical data type support in the GraphQL API""" - enableLtree: Boolean - - """Enable LLM/AI integration features in the GraphQL API""" - enableLlm: Boolean - - """ - Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API - """ - enableRealtime: Boolean - - """ - Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API - """ - enableBulk: Boolean - - """ - Extensible JSON for additional settings that do not have dedicated columns - """ - options: JSON -} - -"""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 `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 `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 `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 `CryptoAuthModule` to be created by this mutation.""" - cryptoAuthModule: CryptoAuthModuleInput! -} - -"""An input for mutations affecting `CryptoAuthModule`""" -input CryptoAuthModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - 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 `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 `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 `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 `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 `DatabaseProvisionModule` to be created by this mutation.""" - databaseProvisionModule: DatabaseProvisionModuleInput! -} - -"""An input for mutations affecting `DatabaseProvisionModule`""" -input DatabaseProvisionModuleInput { - 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! - - """ - Explicit array of module IDs to install (e.g. users_module, storage_module:full) - """ - modules: [String] - - """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 ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID - createdAt: Datetime - updatedAt: Datetime - completedAt: Datetime -} - -"""The output of our create `InvitesModule` mutation.""" -type CreateInvitesModulePayload { - """ - The exact 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 created 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 `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 create `InvitesModule` mutation.""" -input CreateInvitesModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `InvitesModule` to be created by this mutation.""" - invitesModule: InvitesModuleInput! -} - -"""An input for mutations affecting `InvitesModule`""" -input InvitesModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - emailsTableId: UUID - usersTableId: UUID - invitesTableId: UUID - claimedInvitesTableId: UUID - invitesTableName: String - claimedInvitesTableName: String - submitInviteCodeFunction: String - prefix: String - membershipType: Int! - entityTableId: UUID -} - -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge -} - -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! -} - -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String -} - -"""The output of our create `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 `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 `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 `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 `SecureTableProvision` to be created by this mutation.""" - secureTableProvision: SecureTableProvisionInput! -} - -"""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 - - """ - 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. - """ - 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: JSON - - """ - 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: [JSON] - - """ - 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: JSON - - """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. - """ - policies: JSON - - """ - 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 `ApiSetting` mutation.""" -type CreateApiSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiSetting` that was created by this mutation.""" - apiSetting: ApiSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge -} - -"""All input for the create `ApiSetting` mutation.""" -input CreateApiSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ApiSetting` to be created by this mutation.""" - apiSetting: ApiSettingInput! -} - -"""An input for mutations affecting `ApiSetting`""" -input ApiSettingInput { - """Unique identifier for this API settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """API these settings override for""" - apiId: UUID! - - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ - enableAggregates: Boolean - - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ - enablePostgis: Boolean - - """ - Override: enable unified search (NULL = inherit from database_settings) - """ - enableSearch: Boolean - - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ - enablePresignedUploads: Boolean - - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ - enableManyToMany: Boolean - - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ - enableConnectionFilter: Boolean - - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ - enableLtree: Boolean - - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ - enableLlm: Boolean - - """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) - """ - enableRealtime: Boolean - - """ - Override: enable bulk mutations (NULL = inherit from database_settings) - """ - enableBulk: Boolean - - """ - Extensible JSON for additional per-API settings that do not have dedicated columns - """ - options: JSON -} - -"""The output of our create `ComputeLogModule` mutation.""" -type CreateComputeLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ComputeLogModule` that was created by this mutation.""" - computeLogModule: ComputeLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge -} - -"""All input for the create `ComputeLogModule` mutation.""" -input CreateComputeLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ComputeLogModule` to be created by this mutation.""" - computeLogModule: ComputeLogModuleInput! -} - -"""An input for mutations affecting `ComputeLogModule`""" -input ComputeLogModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - computeLogTableId: UUID - computeLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our create `InferenceLogModule` mutation.""" -type CreateInferenceLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `InferenceLogModule` that was created by this mutation.""" - inferenceLogModule: InferenceLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `InferenceLogModule`. May be used by Relay 1.""" - inferenceLogModuleEdge( - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InferenceLogModuleEdge -} - -"""All input for the create `InferenceLogModule` mutation.""" -input CreateInferenceLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `InferenceLogModule` to be created by this mutation.""" - inferenceLogModule: InferenceLogModuleInput! -} - -"""An input for mutations affecting `InferenceLogModule`""" -input InferenceLogModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - inferenceLogTableId: UUID - inferenceLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our create `MerkleStoreModule` mutation.""" -type CreateMerkleStoreModulePayload { - """ - The exact 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 created 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 `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 create `MerkleStoreModule` mutation.""" -input CreateMerkleStoreModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `MerkleStoreModule` to be created by this mutation.""" - merkleStoreModule: MerkleStoreModuleInput! -} - -"""An input for mutations affecting `MerkleStoreModule`""" -input MerkleStoreModuleInput { - 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 - scopeField: String - createdAt: Datetime -} - -"""The output of our create `StorageLogModule` mutation.""" -type CreateStorageLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageLogModule` that was created by this mutation.""" - storageLogModule: StorageLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageLogModule`. May be used by Relay 1.""" - storageLogModuleEdge( - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageLogModuleEdge -} - -"""All input for the create `StorageLogModule` mutation.""" -input CreateStorageLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `StorageLogModule` to be created by this mutation.""" - storageLogModule: StorageLogModuleInput! -} - -"""An input for mutations affecting `StorageLogModule`""" -input StorageLogModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - storageLogTableId: UUID - storageLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our create `TransferLogModule` mutation.""" -type CreateTransferLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TransferLogModule` that was created by this mutation.""" - transferLogModule: TransferLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TransferLogModule`. May be used by Relay 1.""" - transferLogModuleEdge( - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): TransferLogModuleEdge -} - -"""All input for the create `TransferLogModule` mutation.""" -input CreateTransferLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `TransferLogModule` to be created by this mutation.""" - transferLogModule: TransferLogModuleInput! -} - -"""An input for mutations affecting `TransferLogModule`""" -input TransferLogModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - transferLogTableId: UUID - transferLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our create `Enum` mutation.""" -type CreateEnumPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Enum` that was created by this mutation.""" - enum: Enum - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Enum`. May be used by Relay 1.""" - enumEdge( - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] - ): EnumEdge -} - -"""All input for the create `Enum` mutation.""" -input CreateEnumInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Enum` to be created by this mutation.""" - enum: EnumInput! -} - -"""An input for mutations affecting `Enum`""" -input EnumInput { - id: UUID - databaseId: UUID! - schemaId: UUID! - name: String! - label: String - description: String - values: [String] - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] -} - -"""The output of our create `AppLimitEvent` mutation.""" -type CreateAppLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitEvent` that was created by this mutation.""" - appLimitEvent: AppLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge -} - -"""All input for the create `AppLimitEvent` mutation.""" -input CreateAppLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimitEvent` to be created by this mutation.""" - appLimitEvent: AppLimitEventInput! -} - -"""An input for mutations affecting `AppLimitEvent`""" -input AppLimitEventInput { - createdAt: Datetime - - """Unique identifier for each limit event""" - id: UUID - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our create `OrgLimitEvent` mutation.""" -type CreateOrgLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitEvent` that was created by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge -} - -"""All input for the create `OrgLimitEvent` mutation.""" -input CreateOrgLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitEvent` to be created by this mutation.""" - orgLimitEvent: OrgLimitEventInput! -} - -"""An input for mutations affecting `OrgLimitEvent`""" -input OrgLimitEventInput { - createdAt: Datetime - - """Unique identifier for each limit event""" - id: UUID - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our create `View` mutation.""" -type CreateViewPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `View` that was created by this mutation.""" - view: View - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `View`. May be used by Relay 1.""" - viewEdge( - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewEdge -} - -"""All input for the create `View` mutation.""" -input CreateViewInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `View` to be created by this mutation.""" - view: ViewInput! -} - -"""An input for mutations affecting `View`""" -input ViewInput { - id: UUID - databaseId: UUID - schemaId: UUID! - name: String! - tableId: UUID - viewType: String! - data: JSON - filterType: String - filterData: JSON - securityInvoker: Boolean - isReadOnly: Boolean - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [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. - """ - clientMutationId: String - - """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 `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 `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 `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 -} - -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembership` that was created by this mutation.""" - appMembership: AppMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge -} - -"""All input for the create `AppMembership` mutation.""" -input CreateAppMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! -} - -"""An input for mutations affecting `AppMembership`""" -input AppMembershipInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID -} - -"""The output of our create `User` mutation.""" -type CreateUserPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `User` that was created by this mutation.""" - user: User - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge -} - -"""All input for the create `User` mutation.""" -input CreateUserInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `User` to be created by this mutation.""" - user: UserInput! -} - -"""An input for mutations affecting `User`""" -input UserInput { - id: UUID - username: String - displayName: String - profilePicture: ConstructiveInternalTypeImage - type: Int - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `AppLimit` mutation.""" -type CreateAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was created by this mutation.""" - appLimit: AppLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} - -"""All input for the create `AppLimit` mutation.""" -input CreateAppLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLimit` to be created by this mutation.""" - appLimit: AppLimitInput! -} - -"""An input for mutations affecting `AppLimit`""" -input AppLimitInput { - id: UUID - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""The output of our create `App` mutation.""" -type CreateAppPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `App` that was created by this mutation.""" - app: App - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge -} - -"""All input for the create `App` mutation.""" -input CreateAppInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `App` to be created by this mutation.""" - app: AppInput! -} - -"""An input for mutations affecting `App`""" -input AppInput { - """Unique identifier for this app""" - id: UUID - - """Reference to the metaschema database this app belongs to""" - databaseId: UUID! - - """Site this app is associated with (one app per site)""" - siteId: UUID! - - """Display name of the app""" - name: String - - """App icon or promotional image""" - appImage: ConstructiveInternalTypeImage - - """URL to the Apple App Store listing""" - appStoreLink: ConstructiveInternalTypeUrl - - """Apple App Store application identifier""" - appStoreId: String - - """ - Apple App ID prefix (Team ID) for universal links and associated domains - """ - appIdPrefix: String - - """URL to the Google Play Store listing""" - playStoreLink: ConstructiveInternalTypeUrl -} - -"""The output of our create `Site` mutation.""" -type CreateSitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Site` that was created by this mutation.""" - site: Site - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Site`. May be used by Relay 1.""" - siteEdge( - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteEdge -} - -"""All input for the create `Site` mutation.""" -input CreateSiteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Site` to be created by this mutation.""" - site: SiteInput! -} - -"""An input for mutations affecting `Site`""" -input SiteInput { - """Unique identifier for this site""" - id: UUID - - """Reference to the metaschema database this site belongs to""" - databaseId: UUID! - - """Display title for the site (max 120 characters)""" - title: String - - """Short description of the site (max 120 characters)""" - description: String - - """Open Graph image used for social media link previews""" - ogImage: ConstructiveInternalTypeImage - - """Browser favicon attachment""" - favicon: ConstructiveInternalTypeAttachment - - """Apple touch icon for iOS home screen bookmarks""" - appleTouchIcon: ConstructiveInternalTypeImage - - """Primary logo image for the site""" - logo: ConstructiveInternalTypeImage - - """PostgreSQL database name this site connects to""" - dbname: String -} - -"""The output of our create `DbUsageModule` mutation.""" -type CreateDbUsageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DbUsageModule` that was created by this mutation.""" - dbUsageModule: DbUsageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge -} - -"""All input for the create `DbUsageModule` mutation.""" -input CreateDbUsageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `DbUsageModule` to be created by this mutation.""" - dbUsageModule: DbUsageModuleInput! -} - -"""An input for mutations affecting `DbUsageModule`""" -input DbUsageModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableStatsLogTableId: UUID - tableStatsLogTableName: String - tableStatsDailyTableId: UUID - tableStatsDailyTableName: String - queryStatsLogTableId: UUID - queryStatsLogTableName: String - queryStatsDailyTableId: UUID - queryStatsDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - prefix: String -} - -"""The output of our create `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 `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 `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 `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 `NamespaceModule` to be created by this mutation.""" - namespaceModule: NamespaceModuleInput! -} - -"""An input for mutations affecting `NamespaceModule`""" -input NamespaceModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - namespacesTableId: UUID - namespaceEventsTableId: UUID - namespacesTableName: String - namespaceEventsTableName: String - apiName: String - privateApiName: String - membershipType: Int - key: String - entityTableId: UUID - policies: JSON - provisions: JSON -} - -"""The output of our create `NotificationsModule` mutation.""" -type CreateNotificationsModulePayload { - """ - The exact 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 created 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 `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 create `NotificationsModule` mutation.""" -input CreateNotificationsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `NotificationsModule` to be created by this mutation.""" - notificationsModule: NotificationsModuleInput! -} - -"""An input for mutations affecting `NotificationsModule`""" -input NotificationsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - notificationsTableId: UUID - readStateTableId: UUID - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - ownerTableId: UUID - userSettingsTableId: UUID - organizationSettingsTableId: UUID - hasChannels: Boolean - hasPreferences: Boolean - hasSettingsExtension: Boolean - hasDigestMetadata: Boolean - hasSubscriptions: Boolean -} - -"""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 - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - bitlen: Int - membershipType: Int! - entityTableId: UUID - actorTableId: UUID - prefix: String - getPaddedMask: String - getMask: String - getByMask: String - getMaskByName: String -} - -"""The output of our create `AstMigration` mutation.""" -type CreateAstMigrationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AstMigration` that was created by this mutation.""" - astMigration: AstMigration - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `AstMigration` mutation.""" -input CreateAstMigrationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AstMigration` to be created by this mutation.""" - astMigration: AstMigrationInput! -} - -"""An input for mutations affecting `AstMigration`""" -input AstMigrationInput { - id: Int - databaseId: UUID - name: String - requires: [String] - payload: JSON - deploys: String - deploy: JSON - revert: JSON - verify: JSON - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID -} - -"""The output of our create `WebauthnCredential` mutation.""" -type CreateWebauthnCredentialPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `WebauthnCredential` that was created by this mutation.""" - webauthnCredential: WebauthnCredential - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnCredential`. May be used by Relay 1.""" - webauthnCredentialEdge( - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialEdge -} - -"""All input for the create `WebauthnCredential` mutation.""" -input CreateWebauthnCredentialInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `WebauthnCredential` to be created by this mutation.""" - webauthnCredential: WebauthnCredentialInput! -} - -"""An input for mutations affecting `WebauthnCredential`""" -input WebauthnCredentialInput { - id: UUID - ownerId: UUID - - """ - Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. - """ - credentialId: String! - - """COSE-encoded public key bytes from the authenticator attestation.""" - publicKey: Base64EncodedBinary! - - """ - Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. - """ - signCount: BigInt - - """ - Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. - """ - webauthnUserId: String! - - """ - Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. - """ - transports: [String] - - """ - Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. - """ - credentialDeviceType: String! - - """ - Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. - """ - backupEligible: Boolean - - """Current backup state; updated on each successful sign-in assertion.""" - backupState: Boolean - - """ - User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. - """ - name: String - - """ - Timestamp of the most recent successful sign-in assertion using this credential. - """ - lastUsedAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `PrimaryKeyConstraint` mutation.""" -type CreatePrimaryKeyConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PrimaryKeyConstraint` that was created by this mutation.""" - primaryKeyConstraint: PrimaryKeyConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" - primaryKeyConstraintEdge( - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintEdge -} - -"""All input for the create `PrimaryKeyConstraint` mutation.""" -input CreatePrimaryKeyConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PrimaryKeyConstraint` to be created by this mutation.""" - primaryKeyConstraint: PrimaryKeyConstraintInput! -} - -"""An input for mutations affecting `PrimaryKeyConstraint`""" -input PrimaryKeyConstraintInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - type: String - fieldIds: [UUID]! - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `Trigger` mutation.""" -type CreateTriggerPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Trigger` that was created by this mutation.""" - trigger: Trigger - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Trigger`. May be used by Relay 1.""" - triggerEdge( - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerEdge -} - -"""All input for the create `Trigger` mutation.""" -input CreateTriggerInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Trigger` to be created by this mutation.""" - trigger: TriggerInput! -} - -"""An input for mutations affecting `Trigger`""" -input TriggerInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String! - event: String - functionName: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `CheckConstraint` mutation.""" -type CreateCheckConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CheckConstraint` that was created by this mutation.""" - checkConstraint: CheckConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CheckConstraint`. May be used by Relay 1.""" - checkConstraintEdge( - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): CheckConstraintEdge -} - -"""All input for the create `CheckConstraint` mutation.""" -input CreateCheckConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `CheckConstraint` to be created by this mutation.""" - checkConstraint: CheckConstraintInput! -} - -"""An input for mutations affecting `CheckConstraint`""" -input CheckConstraintInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - type: String - fieldIds: [UUID]! - expr: JSON - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `UniqueConstraint` mutation.""" -type CreateUniqueConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `UniqueConstraint` that was created by this mutation.""" - uniqueConstraint: UniqueConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UniqueConstraint`. May be used by Relay 1.""" - uniqueConstraintEdge( - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): UniqueConstraintEdge -} - -"""All input for the create `UniqueConstraint` mutation.""" -input CreateUniqueConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `UniqueConstraint` to be created by this mutation.""" - uniqueConstraint: UniqueConstraintInput! -} - -"""An input for mutations affecting `UniqueConstraint`""" -input UniqueConstraintInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID]! - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `SpatialRelation` mutation.""" -type CreateSpatialRelationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SpatialRelation` that was created by this mutation.""" - spatialRelation: SpatialRelation - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SpatialRelation`. May be used by Relay 1.""" - spatialRelationEdge( - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] - ): SpatialRelationEdge -} - -"""All input for the create `SpatialRelation` mutation.""" -input CreateSpatialRelationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SpatialRelation` to be created by this mutation.""" - spatialRelation: SpatialRelationInput! -} - -"""An input for mutations affecting `SpatialRelation`""" -input SpatialRelationInput { - id: UUID - databaseId: UUID - tableId: UUID! - fieldId: UUID! - refTableId: UUID! - refFieldId: UUID! - name: String! - operator: String! - paramName: String - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `Policy` mutation.""" -type CreatePolicyPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Policy` that was created by this mutation.""" - policy: Policy - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Policy`. May be used by Relay 1.""" - policyEdge( - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] - ): PolicyEdge -} - -"""All input for the create `Policy` mutation.""" -input CreatePolicyInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Policy` to be created by this mutation.""" - policy: PolicyInput! -} - -"""An input for mutations affecting `Policy`""" -input PolicyInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - granteeName: String - privilege: String - permissive: Boolean - disabled: Boolean - policyType: String - data: JSON - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgLimitAggregate` mutation.""" -type CreateOrgLimitAggregatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitAggregate` that was created by this mutation.""" - orgLimitAggregate: OrgLimitAggregate - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge -} - -"""All input for the create `OrgLimitAggregate` mutation.""" -input CreateOrgLimitAggregateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimitAggregate` to be created by this mutation.""" - orgLimitAggregate: OrgLimitAggregateInput! -} - -"""An input for mutations affecting `OrgLimitAggregate`""" -input OrgLimitAggregateInput { - id: UUID - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""The output of our create `OrgLimit` mutation.""" -type CreateOrgLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimit` that was created by this mutation.""" - orgLimit: OrgLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge -} - -"""All input for the create `OrgLimit` mutation.""" -input CreateOrgLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgLimit` to be created by this mutation.""" - orgLimit: OrgLimitInput! -} - -"""An input for mutations affecting `OrgLimit`""" -input OrgLimitInput { - id: UUID - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID! - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""The output of our create `WebauthnSetting` mutation.""" -type CreateWebauthnSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `WebauthnSetting` that was created by this mutation.""" - webauthnSetting: WebauthnSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnSetting`. May be used by Relay 1.""" - webauthnSettingEdge( - """The method to use when ordering `WebauthnSetting`.""" - orderBy: [WebauthnSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnSettingEdge -} - -"""All input for the create `WebauthnSetting` mutation.""" -input CreateWebauthnSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `WebauthnSetting` to be created by this mutation.""" - webauthnSetting: WebauthnSettingInput! -} - -"""An input for mutations affecting `WebauthnSetting`""" -input WebauthnSettingInput { - """Unique identifier for this WebAuthn settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """ - Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) - """ - schemaId: UUID - - """ - Schema of the webauthn_credentials table (FK to metaschema_public.schema) - """ - credentialsSchemaId: UUID - - """Schema of the sessions table (FK to metaschema_public.schema)""" - sessionsSchemaId: UUID - - """Schema of the session_secrets table (FK to metaschema_public.schema)""" - sessionSecretsSchemaId: UUID - - """ - Reference to the webauthn_credentials table (FK to metaschema_public.table) - """ - credentialsTableId: UUID - - """Reference to the sessions table (FK to metaschema_public.table)""" - sessionsTableId: UUID - - """ - Reference to the session_credentials table (FK to metaschema_public.table) - """ - sessionCredentialsTableId: UUID - - """Reference to the session_secrets table (FK to metaschema_public.table)""" - sessionSecretsTableId: UUID - - """ - Reference to the user field on webauthn_credentials (FK to metaschema_public.field) - """ - userFieldId: UUID - - """WebAuthn Relying Party ID (typically the domain name)""" - rpId: String - - """WebAuthn Relying Party display name""" - rpName: String - - """Allowed origins for WebAuthn registration and authentication""" - originAllowlist: [String] - - """Attestation conveyance preference (none, indirect, direct, enterprise)""" - attestationType: String - - """Whether to require user verification (biometric/PIN) during auth""" - requireUserVerification: Boolean - - """Resident key requirement (discouraged, preferred, required)""" - residentKey: String - - """Challenge TTL in seconds (default 300 = 5 minutes)""" - challengeExpirySeconds: BigInt -} - -"""The output of our create `BillingModule` mutation.""" -type CreateBillingModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingModule` that was created by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the create `BillingModule` mutation.""" -input CreateBillingModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `BillingModule` to be created by this mutation.""" - billingModule: BillingModuleInput! -} - -"""An input for mutations affecting `BillingModule`""" -input BillingModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - meterCreditsTableId: UUID - meterCreditsTableName: String - meterSourcesTableId: UUID - meterSourcesTableName: String - recordUsageFunction: String - prefix: String -} - -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! -} - -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID -} - -"""The output of our create `Schema` mutation.""" -type CreateSchemaPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Schema` that was created by this mutation.""" - schema: Schema - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Schema`. May be used by Relay 1.""" - schemaEdge( - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaEdge -} - -"""All input for the create `Schema` mutation.""" -input CreateSchemaInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Schema` to be created by this mutation.""" - schema: SchemaInput! -} - -"""An input for mutations affecting `Schema`""" -input SchemaInput { - id: UUID - databaseId: UUID! - name: String! - schemaName: String! - label: String - description: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - isPublic: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `Index` mutation.""" -type CreateIndexPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Index` that was created by this mutation.""" - index: Index - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Index`. May be used by Relay 1.""" - indexEdge( - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] - ): IndexEdge -} - -"""All input for the create `Index` mutation.""" -input CreateIndexInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Index` to be created by this mutation.""" - index: IndexInput! -} - -"""An input for mutations affecting `Index`""" -input IndexInput { - id: UUID - databaseId: UUID! - tableId: UUID! - name: String - fieldIds: [UUID] - includeFieldIds: [UUID] - accessMethod: String - indexParams: JSON - whereClause: JSON - isUnique: Boolean - options: JSON - opClasses: [String] - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `GraphModule` mutation.""" -type CreateGraphModulePayload { - """ - The exact 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 created 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 `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 create `GraphModule` mutation.""" -input CreateGraphModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `GraphModule` to be created by this mutation.""" - graphModule: GraphModuleInput! -} - -"""An input for mutations affecting `GraphModule`""" -input GraphModuleInput { - id: UUID - databaseId: UUID! - publicSchemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - prefix: String - merkleStoreModuleId: UUID! - graphsTableId: UUID - executionsTableId: UUID - outputsTableId: UUID - apiName: String - privateApiName: String - scopeField: String - membershipType: Int - entityTableId: UUID - policies: JSON - provisions: JSON - createdAt: Datetime -} - -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppInvite` that was created by this mutation.""" - appInvite: AppInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge -} - -"""All input for the create `AppInvite` mutation.""" -input CreateAppInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! -} - -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""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 -} - -"""The output of our create `BlueprintTemplate` mutation.""" -type CreateBlueprintTemplatePayload { - """ - The exact 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 created 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 create `BlueprintTemplate` mutation.""" -input CreateBlueprintTemplateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `BlueprintTemplate` to be created by this mutation.""" - blueprintTemplate: BlueprintTemplateInput! -} - -"""An input for mutations affecting `BlueprintTemplate`""" -input BlueprintTemplateInput { - """Unique identifier for this template.""" - id: UUID - - """ - Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. - """ - name: String! - - """Semantic version string. Defaults to 1.0.0.""" - version: String - - """Human-readable display name for the template (e.g. E-Commerce Basic).""" - displayName: String! - - """Optional description of what the template provisions.""" - description: String - - """The user who created or published this template.""" - ownerId: UUID! - - """ - Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. - """ - visibility: String - - """ - Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. - """ - categories: [String] - - """ - Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. - """ - tags: [String] - - """ - The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. - """ - definition: JSON! - - """ - Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. - """ - definitionSchemaVersion: String - - """ - Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. - """ - source: String - - """ - Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. - """ - complexity: String - - """ - Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. - """ - copyCount: Int - - """ - Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. - """ - forkCount: Int - - """ - If this template was forked from another template, the ID of the parent. NULL for original templates. - """ - 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. - """ - 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 create `HierarchyModule` mutation.""" -type CreateHierarchyModulePayload { - """ - The exact 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 created 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 `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 create `HierarchyModule` mutation.""" -input CreateHierarchyModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `HierarchyModule` to be created by this mutation.""" - hierarchyModule: HierarchyModuleInput! -} - -"""An input for mutations affecting `HierarchyModule`""" -input HierarchyModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - chartEdgesTableId: UUID - chartEdgesTableName: String - hierarchySprtTableId: UUID - hierarchySprtTableName: String - chartEdgeGrantsTableId: UUID - chartEdgeGrantsTableName: String - entityTableId: UUID! - usersTableId: UUID! - prefix: String - privateSchemaName: String - sprtTableName: String - rebuildHierarchyFunction: String - getSubordinatesFunction: String - getManagersFunction: String - isManagerOfFunction: String - createdAt: 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! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String - profileGrantsTableId: UUID - profileGrantsTableName: String - profileDefinitionGrantsTableId: UUID - profileDefinitionGrantsTableName: String - profileTemplatesTableId: UUID - profileTemplatesTableName: String - membershipType: Int! - entityTableId: UUID - actorTableId: UUID - permissionsTableId: UUID - membershipsTableId: UUID - prefix: String -} - -"""The output of our create `EmbeddingChunk` mutation.""" -type CreateEmbeddingChunkPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EmbeddingChunk` that was created by this mutation.""" - embeddingChunk: EmbeddingChunk - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" - embeddingChunkEdge( - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmbeddingChunkEdge -} - -"""All input for the create `EmbeddingChunk` mutation.""" -input CreateEmbeddingChunkInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `EmbeddingChunk` to be created by this mutation.""" - embeddingChunk: EmbeddingChunkInput! -} - -"""An input for mutations affecting `EmbeddingChunk`""" -input EmbeddingChunkInput { - id: UUID - databaseId: UUID - tableId: UUID! - embeddingFieldId: UUID - chunksTableId: UUID - chunksTableName: String - contentFieldName: String - dimensions: Int - metric: String - chunkSize: Int - chunkOverlap: Int - chunkStrategy: String - metadataFields: JSON - searchIndexes: JSON - enqueueChunkingJob: Boolean - chunkingTaskName: String - embeddingModel: String - embeddingProvider: String - parentFkFieldId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `ForeignKeyConstraint` mutation.""" -type CreateForeignKeyConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ForeignKeyConstraint` that was created by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" - foreignKeyConstraintEdge( - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintEdge -} - -"""All input for the create `ForeignKeyConstraint` mutation.""" -input CreateForeignKeyConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ForeignKeyConstraint` to be created by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraintInput! -} - -"""An input for mutations affecting `ForeignKeyConstraint`""" -input ForeignKeyConstraintInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID]! - refTableId: UUID! - refFieldIds: [UUID]! - deleteAction: String - updateAction: String - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgInvite` mutation.""" -type CreateOrgInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgInvite` that was created by this mutation.""" - orgInvite: OrgInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge -} - -"""All input for the create `OrgInvite` mutation.""" -input CreateOrgInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgInvite` to be created by this mutation.""" - orgInvite: OrgInviteInput! -} - -"""An input for mutations affecting `OrgInvite`""" -input OrgInviteInput { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! -} - -"""The output of our create `AgentModule` mutation.""" -type CreateAgentModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AgentModule` that was created by this mutation.""" - agentModule: AgentModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentModule`. May be used by Relay 1.""" - agentModuleEdge( - """The method to use when ordering `AgentModule`.""" - orderBy: [AgentModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentModuleEdge -} - -"""All input for the create `AgentModule` mutation.""" -input CreateAgentModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AgentModule` to be created by this mutation.""" - agentModule: AgentModuleInput! -} - -"""An input for mutations affecting `AgentModule`""" -input AgentModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - threadTableId: UUID - messageTableId: UUID - taskTableId: UUID - promptsTableId: UUID - knowledgeTableId: UUID - threadTableName: String - messageTableName: String - taskTableName: String - promptsTableName: String - knowledgeTableName: String - hasKnowledge: Boolean - apiName: String - membershipType: Int - key: String - entityTableId: UUID - policies: JSON - knowledgeConfig: JSON - knowledgePolicies: JSON - provisions: JSON -} - -"""The output of our create `RelationProvision` mutation.""" -type CreateRelationProvisionPayload { - """ - The exact 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 created 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 `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 create `RelationProvision` mutation.""" -input CreateRelationProvisionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `RelationProvision` to be created by this mutation.""" - relationProvision: RelationProvisionInput! -} - -"""An input for mutations affecting `RelationProvision`""" -input RelationProvisionInput { - """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 -} - -"""The output of our create `UserAuthModule` mutation.""" -type CreateUserAuthModulePayload { - """ - The exact 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 created 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 `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 create `UserAuthModule` mutation.""" -input CreateUserAuthModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `UserAuthModule` to be created by this mutation.""" - userAuthModule: 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 -} - -"""The output of our create `Field` mutation.""" -type CreateFieldPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Field` that was created by this mutation.""" - field: Field - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Field`. May be used by Relay 1.""" - fieldEdge( - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): FieldEdge -} - -"""All input for the create `Field` mutation.""" -input CreateFieldInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Field` to be created by this mutation.""" - field: FieldInput! -} - -"""An input for mutations affecting `Field`""" -input FieldInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String! - label: String - description: String - smartTags: JSON - isRequired: Boolean - apiRequired: Boolean - defaultValue: JSON - type: JSON! - fieldOrder: Int - regexp: String - chk: JSON - chkExpr: JSON - min: Float - max: Float - tags: [String] - category: ObjectCategory - module: String - scope: Int - createdAt: Datetime - updatedAt: Datetime -} - -"""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 - invocationsTableId: UUID - executionLogsTableId: UUID - secretDefinitionsTableId: UUID - requirementsTableId: UUID - configDefinitionsTableId: UUID - configRequirementsTableId: UUID - definitionsTableName: String - invocationsTableName: String - executionLogsTableName: String - secretDefinitionsTableName: String - requirementsTableName: String - configRequirementsTableName: String - apiName: String - privateApiName: String - membershipType: Int - prefix: String - key: String - entityTableId: UUID - policies: JSON - provisions: JSON -} - -"""The output of our create `Table` mutation.""" -type CreateTablePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Table` that was created by this mutation.""" - table: Table - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Table`. May be used by Relay 1.""" - tableEdge( - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableEdge -} - -"""All input for the create `Table` mutation.""" -input CreateTableInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Table` to be created by this mutation.""" - table: TableInput! -} - -"""An input for mutations affecting `Table`""" -input TableInput { - id: UUID - databaseId: UUID - schemaId: UUID! - name: String! - label: String - description: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - useRls: Boolean - timestamps: Boolean - peoplestamps: Boolean - pluralName: String - singularName: String - tags: [String] - partitioned: Boolean - partitionStrategy: String - partitionKeyNames: [String] - partitionKeyTypes: [String] - inheritsId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `LimitsModule` mutation.""" -type CreateLimitsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `LimitsModule` that was created by this mutation.""" - limitsModule: LimitsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `LimitsModule`. May be used by Relay 1.""" - limitsModuleEdge( - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): LimitsModuleEdge -} - -"""All input for the create `LimitsModule` mutation.""" -input CreateLimitsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `LimitsModule` to be created by this mutation.""" - limitsModule: LimitsModuleInput! -} - -"""An input for mutations affecting `LimitsModule`""" -input LimitsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - 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 - prefix: String - membershipType: Int! - entityTableId: UUID - actorTableId: UUID -} - -"""The output of our create `StorageModule` mutation.""" -type CreateStorageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageModule` that was created by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the create `StorageModule` mutation.""" -input CreateStorageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `StorageModule` to be created by this mutation.""" - storageModule: StorageModuleInput! -} - -"""An input for mutations affecting `StorageModule`""" -input StorageModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String - membershipType: Int - key: String - policies: JSON - provisions: JSON - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID -} - -"""The output of our create `MembershipsModule` mutation.""" -type CreateMembershipsModulePayload { - """ - The exact 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 - 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 - membershipType: Int! - entityTableId: UUID - entityTableOwnerId: UUID - prefix: String - getOrgFn: String - actorMaskCheck: String - actorPermCheck: String - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID -} - -"""The output of our create `EventsModule` mutation.""" -type CreateEventsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EventsModule` that was created by this mutation.""" - eventsModule: EventsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EventsModule`. May be used by Relay 1.""" - eventsModuleEdge( - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EventsModuleEdge -} - -"""All input for the create `EventsModule` mutation.""" -input CreateEventsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `EventsModule` to be created by this mutation.""" - eventsModule: EventsModuleInput! -} - -"""An input for mutations affecting `EventsModule`""" -input EventsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - eventsTableId: UUID - eventsTableName: String - eventAggregatesTableId: UUID - eventAggregatesTableName: String - eventTypesTableId: UUID - eventTypesTableName: String - levelsTableId: UUID - levelsTableName: String - levelRequirementsTableId: UUID - levelRequirementsTableName: String - levelGrantsTableId: UUID - levelGrantsTableName: String - achievementRewardsTableId: UUID - 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: Int - prefix: String - membershipType: Int! - entityTableId: UUID - actorTableId: UUID -} - -"""The output of our create `EntityTypeProvision` mutation.""" -type CreateEntityTypeProvisionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EntityTypeProvision` that was created by this mutation.""" - entityTypeProvision: EntityTypeProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" - entityTypeProvisionEdge( - """The method to use when ordering `EntityTypeProvision`.""" - orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): EntityTypeProvisionEdge -} - -"""All input for the create `EntityTypeProvision` mutation.""" -input CreateEntityTypeProvisionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `EntityTypeProvision` to be created by this mutation.""" - entityTypeProvision: EntityTypeProvisionInput! -} - -"""An input for mutations affecting `EntityTypeProvision`""" -input EntityTypeProvisionInput { - """Unique identifier for this provision row.""" - id: UUID - - """The database to provision this entity type in. Required.""" - databaseId: UUID! - - """ - Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - Stored in the entity_types registry table. - """ - name: String! - - """ - SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - and membership table names (prefix_memberships, prefix_members, etc.). - Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - """ - prefix: String! - - """ - Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. - """ - description: String - - """ - Prefix of the parent entity type. The trigger resolves this to a membership_type integer - by looking up memberships_module WHERE prefix = parent_entity. - Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - (e.g. 'data_room' for a team_channel nested under data_room). - The parent type must already be provisioned before this INSERT. - """ - parentEntity: String - - """ - Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - (e.g. prefix 'data_room' produces table 'data_rooms'). - Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - """ - tableName: String - - """ - Whether members of the parent entity can see child entities. Defaults to true. - When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - When false: only direct members of the entity itself can see it (private entity mode). - Controls whether the parent_member SELECT policy is created on the entity table. - Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - skip_entity_policies=true, since no default policies are being applied in those cases. - """ - isVisible: Boolean - - """ - Whether to apply limits_module security for this type. Defaults to false. - The limits_module table structure is always created (memberships_module requires it), - but when false, no RLS policies are applied to the limits tables. - Set to true if this entity type needs configurable resource limits per membership. - """ - hasLimits: Boolean - - """ - Whether to provision profiles_module for this type. Defaults to false. - Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - When true, creates profile tables and applies profiles security. - """ - hasProfiles: Boolean - - """ - Whether to provision events_module for this type. Defaults to false. - Levels provide gamification/achievement tracking for members. - When true, creates level steps, achievements, and level tables with security. - """ - hasLevels: Boolean - - """ - Whether to provision invites_module for this type. Defaults to false. - When true, the trigger inserts a row into invites_module which in turn - (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - repeated INSERTs safe. - """ - hasInvites: Boolean - - """ - Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - When true, the trigger calls event_tracker() on the claimed_invites table with - event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - crediting the SENDER (inviter) when someone claims their invite code. - Developers can then define achievements in the blueprint achievements[] section - that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - """ - hasInviteAchievements: Boolean - - """ - Optional JSON array of storage module definitions. Presence triggers provisioning - (same inference model as namespaces, functions, agents). - Each element provisions a separate storage module with its own tables - ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - NULL = do not provision storage. '[{}]' = provision one default storage module. - Each array element recognizes (all optional): - - key (text) module discriminator, max 16 chars, lowercase snake_case. - Defaults to 'default' (omitted from table names). - Non-default keys become infixes: {prefix}_{key}_buckets. - (storage_key accepted for backward compat) - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this module - - allowed_origins (text[]) default CORS origins for all buckets in this module - - restrict_reads (boolean) require read_files permission for SELECT on files - - has_path_shares (boolean) enable virtual filesystem + path share policies - - has_versioning (boolean) enable file version chains - - has_content_hash (boolean) enable content hash for dedup - - has_custom_keys (boolean) allow client-provided S3 keys - - has_audit_log (boolean) enable file events audit table - - has_confirm_upload (boolean) enable HeadObject confirmation flow - - confirm_upload_delay (interval) delay before first confirmation attempt - - buckets (jsonb[]) array of initial bucket definitions to seed. - Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - Each value: { nodes, fields, grants, use_rls, policies }. - Example (single module, backward compat): - storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - Example (multi-module): - storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - """ - storage: JSON - - """ - Optional JSON array of namespace module definitions. Presence triggers provisioning. - NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - Registers manage_namespaces permission bit on first provision. - Example: namespaces := '[{}]'::jsonb - """ - namespaces: JSON - - """ - Optional JSON array of function module definitions. Presence triggers provisioning. - NULL = do not provision functions. '[{}]' = provision one default function module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - with entity-scoped RLS and a job trigger dispatching function:provision tasks. - Registers manage_functions + invoke_functions permission bits on first provision. - Example: functions := '[{}]'::jsonb - """ - functions: JSON - - """ - Optional JSON array of graph module definitions. Presence triggers provisioning. - NULL = do not provision graphs. '[{}]' = provision one default graph module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - Registers manage_graphs + execute_graphs permission bits on first provision. - Graph module requires a merkle_store_module_id dependency, so entity_type_provision - only registers permissions here. The graph module itself must be provisioned - separately with the merkle store dependency resolved. - Example: graphs := '[{}]'::jsonb - """ - graphs: JSON - agents: JSON - - """ - Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - Use this only when you want the entity table provisioned with zero policies (e.g. because you - plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - false and either accepting the five defaults (table_provision=NULL) or overriding them via - table_provision. - Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - - SELECT (self_member): direct members of the entity can see it - - INSERT: create_entity permission on the parent entity - - UPDATE: admin_entity permission on the entity itself - - DELETE: owner of the entity can delete it - """ - skipEntityPolicies: Boolean - - """ - Single jsonb object describing the full security setup to apply to the entity table. - Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - entries, so an entity table is configured the same way an ordinary blueprint table is. - Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - table_provision.policies[] (is_visible becomes a no-op on this path). - Recognized keys (all optional): - - use_rls (boolean, default true) - - nodes (jsonb array of {"$type","data"} Data* module entries) - - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - - grants (jsonb array of grant objects; each with roles[] and privileges[]) - - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - against the newly created entity table. - Example — override with two SELECT policies: - table_provision := jsonb_build_object( - 'policies', jsonb_build_array( - jsonb_build_object( - '$type', 'AuthzEntityMembership', - 'privileges', jsonb_build_array('select'), - 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - 'name', 'self_member' - ), - jsonb_build_object( - '$type', 'AuthzDirectOwner', - 'privileges', jsonb_build_array('select', 'update'), - 'data', jsonb_build_object('owner_field', 'owner_id') - ) - ) - ) - """ - tableProvision: JSON - - """ - Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - This is the ID used in entity_types, memberships_module, and all module tables. - """ - outMembershipType: Int - - """ - Output: the UUID of the created entity table. Populated by the trigger. - Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - """ - outEntityTableId: UUID - - """ - Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. - """ - outEntityTableName: String - - """ - Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - Populated by the trigger. Useful for verifying which modules were provisioned. - """ - outInstalledModules: [String] - - """ - Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. - """ - outStorageModuleId: UUID - - """ - Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. - """ - outBucketsTableId: UUID - - """ - Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. - """ - outFilesTableId: UUID - outPathSharesTableId: UUID - - """ - Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - (i.e. the invites_module row was created in a previous run). - """ - outInvitesModuleId: UUID - - """ - Output: the UUID of the namespace_module row created (or found) for this entity type. - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespaceModuleId: UUID - - """ - Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespacesTableId: UUID - - """ - Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespaceEventsTableId: UUID - outFunctionModuleId: UUID - outDefinitionsTableId: UUID - outInvocationsTableId: UUID - outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID - outRequirementsTableId: UUID - outConfigRequirementsTableId: UUID - outGraphModuleId: UUID - outGraphsTableId: UUID - outAgentModuleId: UUID -} - -"""The output of our update `DefaultIdsModule` mutation.""" -type UpdateDefaultIdsModulePayload { - """ - The exact 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 updated 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 `updateDefaultIdsModule` mutation.""" -input UpdateDefaultIdsModuleInput { - """ - An arbitrary string value 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 `DefaultIdsModule` being updated. - """ - defaultIdsModulePatch: DefaultIdsModulePatch! -} - -""" -Represents an update to a `DefaultIdsModule`. Fields that are set will be updated. -""" -input DefaultIdsModulePatch { - id: UUID - databaseId: UUID -} - -"""The output of our update `AppLimitCreditRedemption` mutation.""" -type UpdateAppLimitCreditRedemptionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditRedemption` that was updated by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge -} - -"""All input for the `updateAppLimitCreditRedemption` mutation.""" -input UpdateAppLimitCreditRedemptionInput { - """ - An arbitrary string value 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 `AppLimitCreditRedemption` being updated. - """ - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch! -} - -""" -Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. -""" -input AppLimitCreditRedemptionPatch { - id: UUID - - """FK to credit_codes — which code is being redeemed""" - creditCodeId: UUID - - """Entity receiving the credits (personal org user_id or org entity_id)""" - entityId: UUID -} - -"""The output of our update `Function` mutation.""" -type UpdateFunctionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Function` that was updated by this mutation.""" - function: Function - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Function`. May be used by Relay 1.""" - functionEdge( - """The method to use when ordering `Function`.""" - orderBy: [FunctionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionEdge -} - -"""All input for the `updateFunction` mutation.""" -input UpdateFunctionInput { - """ - An arbitrary string value 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 `Function` being updated. - """ - functionPatch: FunctionPatch! -} - -""" -Represents an update to a `Function`. Fields that are set will be updated. -""" -input FunctionPatch { - id: UUID - databaseId: UUID - schemaId: UUID - name: String -} - -"""The output of our update `ViewTable` mutation.""" -type UpdateViewTablePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewTable` that was updated by this mutation.""" - viewTable: ViewTable - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewTable`. May be used by Relay 1.""" - viewTableEdge( - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewTableEdge -} - -"""All input for the `updateViewTable` mutation.""" -input UpdateViewTableInput { - """ - An arbitrary string value 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 `ViewTable` being updated. - """ - viewTablePatch: ViewTablePatch! -} - -""" -Represents an update to a `ViewTable`. Fields that are set will be updated. -""" -input ViewTablePatch { - id: UUID - viewId: UUID - tableId: UUID - joinOrder: Int -} - -"""The output of our update `ApiSchema` mutation.""" -type UpdateApiSchemaPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiSchema` that was updated by this mutation.""" - apiSchema: ApiSchema - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSchema`. May be used by Relay 1.""" - apiSchemaEdge( - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSchemaEdge -} - -"""All input for the `updateApiSchema` mutation.""" -input UpdateApiSchemaInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API-schema mapping""" - id: UUID! - - """ - An object where the defined keys will be set on the `ApiSchema` being updated. - """ - apiSchemaPatch: ApiSchemaPatch! -} - -""" -Represents an update to a `ApiSchema`. Fields that are set will be updated. -""" -input ApiSchemaPatch { - """Unique identifier for this API-schema mapping""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """Metaschema schema being exposed through the API""" - schemaId: UUID - - """API that exposes this schema""" - apiId: UUID -} - -"""The output of our update `SiteTheme` mutation.""" -type UpdateSiteThemePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteTheme` that was updated by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the `updateSiteTheme` mutation.""" -input UpdateSiteThemeInput { - """ - An arbitrary 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 theme record""" - id: UUID! - - """ - An object where the defined keys will be set on the `SiteTheme` being updated. - """ - siteThemePatch: SiteThemePatch! -} - -""" -Represents an update to a `SiteTheme`. Fields that are set will be updated. -""" -input SiteThemePatch { - """Unique identifier for this theme record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """Site this theme belongs to""" - siteId: UUID - - """ - JSONB object containing theme tokens (colors, typography, spacing, etc.) - """ - theme: JSON -} - -"""The output of our update `OrgMember` mutation.""" -type UpdateOrgMemberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMember` that was updated by this mutation.""" - orgMember: OrgMember - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge -} - -"""All input for the `updateOrgMember` mutation.""" -input UpdateOrgMemberInput { - """ - An arbitrary string value 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 `OrgMember` being updated. - """ - orgMemberPatch: OrgMemberPatch! -} - -""" -Represents an update to a `OrgMember`. Fields that are set will be updated. -""" -input OrgMemberPatch { - id: UUID - - """Whether this member has admin privileges""" - isAdmin: Boolean - - """References the user who is a member""" - actorId: UUID - - """References the entity (org or group) this member belongs to""" - entityId: UUID -} - -"""The output of our update `CorsSetting` mutation.""" -type UpdateCorsSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CorsSetting` that was updated by this mutation.""" - corsSetting: CorsSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CorsSetting`. May be used by Relay 1.""" - corsSettingEdge( - """The method to use when ordering `CorsSetting`.""" - orderBy: [CorsSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): CorsSettingEdge -} - -"""All input for the `updateCorsSetting` mutation.""" -input UpdateCorsSettingInput { - """ - An arbitrary 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 CORS settings record""" - id: UUID! - - """ - An object where the defined keys will be set on the `CorsSetting` being updated. - """ - corsSettingPatch: CorsSettingPatch! -} - -""" -Represents an update to a `CorsSetting`. Fields that are set will be updated. -""" -input CorsSettingPatch { - """Unique identifier for this CORS settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """Optional API for per-API override; NULL means database-wide default""" - apiId: UUID - - """Array of allowed CORS origins (e.g. https://example.com)""" - allowedOrigins: [String] -} - -"""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 -} - -"""The output of our update `MembershipTypesModule` mutation.""" -type UpdateMembershipTypesModulePayload { - """ - The exact 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 updated 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 `updateMembershipTypesModule` mutation.""" -input UpdateMembershipTypesModuleInput { - """ - An arbitrary string value 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 `MembershipTypesModule` being updated. - """ - membershipTypesModulePatch: MembershipTypesModulePatch! -} - -""" -Represents an update to a `MembershipTypesModule`. Fields that are set will be updated. -""" -input MembershipTypesModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - tableId: UUID - 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 `AppPermissionDefault` mutation.""" -type UpdateAppPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermissionDefault` that was updated by this mutation.""" - appPermissionDefault: AppPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge -} - -"""All input for the `updateAppPermissionDefault` mutation.""" -input UpdateAppPermissionDefaultInput { - """ - An arbitrary string value 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 `AppPermissionDefault` being updated. - """ - appPermissionDefaultPatch: AppPermissionDefaultPatch! -} - -""" -Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. -""" -input AppPermissionDefaultPatch { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString -} - -"""The output of our update `ApiModule` mutation.""" -type UpdateApiModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiModule` that was updated by this mutation.""" - apiModule: ApiModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiModule`. May be used by Relay 1.""" - apiModuleEdge( - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiModuleEdge -} - -"""All input for the `updateApiModule` mutation.""" -input UpdateApiModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API module record""" - id: UUID! - - """ - An object where the defined keys will be set on the `ApiModule` being updated. - """ - apiModulePatch: ApiModulePatch! -} - -""" -Represents an update to a `ApiModule`. Fields that are set will be updated. -""" -input ApiModulePatch { - """Unique identifier for this API module record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """API this module configuration belongs to""" - apiId: UUID - - """Module name (e.g. auth, uploads, webhooks)""" - name: String - - """JSON configuration data for this module""" - data: JSON -} - -"""The output of our update `SiteModule` mutation.""" -type UpdateSiteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteModule` that was updated by this mutation.""" - siteModule: SiteModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteModule`. May be used by Relay 1.""" - siteModuleEdge( - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteModuleEdge -} - -"""All input for the `updateSiteModule` mutation.""" -input UpdateSiteModuleInput { - """ - An arbitrary 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 site module record""" - id: UUID! - - """ - An object where the defined keys will be set on the `SiteModule` being updated. - """ - siteModulePatch: SiteModulePatch! -} - -""" -Represents an update to a `SiteModule`. Fields that are set will be updated. -""" -input SiteModulePatch { - """Unique identifier for this site module record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """Site this module configuration belongs to""" - siteId: UUID - - """Module name (e.g. user_auth_module, analytics)""" - name: String - - """JSON configuration data for this module""" - data: JSON -} - -"""The output of our update `RoleType` mutation.""" -type UpdateRoleTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RoleType` that was updated by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the `updateRoleType` mutation.""" -input UpdateRoleTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: Int! - - """ - An object where the defined keys will be set on the `RoleType` being updated. - """ - roleTypePatch: RoleTypePatch! -} - -""" -Represents an update to a `RoleType`. Fields that are set will be updated. -""" -input RoleTypePatch { - id: Int - name: String -} - -"""The output of our update `SchemaGrant` mutation.""" -type UpdateSchemaGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SchemaGrant` that was updated by this mutation.""" - schemaGrant: SchemaGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SchemaGrant`. May be used by Relay 1.""" - schemaGrantEdge( - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaGrantEdge -} - -"""All input for the `updateSchemaGrant` mutation.""" -input UpdateSchemaGrantInput { - """ - An arbitrary string value 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 `SchemaGrant` being updated. - """ - schemaGrantPatch: SchemaGrantPatch! -} - -""" -Represents an update to a `SchemaGrant`. Fields that are set will be updated. -""" -input SchemaGrantPatch { - id: UUID - databaseId: UUID - schemaId: UUID - granteeName: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `TriggerFunction` mutation.""" -type UpdateTriggerFunctionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TriggerFunction` that was updated by this mutation.""" - triggerFunction: TriggerFunction - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TriggerFunction`. May be used by Relay 1.""" - triggerFunctionEdge( - """The method to use when ordering `TriggerFunction`.""" - orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerFunctionEdge -} - -"""All input for the `updateTriggerFunction` mutation.""" -input UpdateTriggerFunctionInput { - """ - An arbitrary string value 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 `TriggerFunction` being updated. - """ - triggerFunctionPatch: TriggerFunctionPatch! -} - -""" -Represents an update to a `TriggerFunction`. Fields that are set will be updated. -""" -input TriggerFunctionPatch { - id: UUID - databaseId: UUID - name: String - code: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `ViewRule` mutation.""" -type UpdateViewRulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewRule` that was updated by this mutation.""" - viewRule: ViewRule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewRule`. May be used by Relay 1.""" - viewRuleEdge( - """The method to use when ordering `ViewRule`.""" - orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewRuleEdge -} - -"""All input for the `updateViewRule` mutation.""" -input UpdateViewRuleInput { - """ - An arbitrary string value 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 `ViewRule` being updated. - """ - viewRulePatch: ViewRulePatch! -} - -""" -Represents an update to a `ViewRule`. Fields that are set will be updated. -""" -input ViewRulePatch { - id: UUID - databaseId: UUID - viewId: UUID - name: String - - """INSERT, UPDATE, or DELETE""" - event: String - - """NOTHING (for read-only) or custom action""" - action: String -} - -"""The output of our update `ConfigSecretsUserModule` mutation.""" -type UpdateConfigSecretsUserModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ConfigSecretsUserModule` that was updated by this mutation.""" - configSecretsUserModule: ConfigSecretsUserModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" - configSecretsUserModuleEdge( - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleEdge -} - -"""All input for the `updateConfigSecretsUserModule` mutation.""" -input UpdateConfigSecretsUserModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. - """ - configSecretsUserModulePatch: ConfigSecretsUserModulePatch! -} - -""" -Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. -""" -input ConfigSecretsUserModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - tableId: UUID - tableName: String - configDefinitionsTableId: UUID -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `IdentityProvidersModule` being updated. - """ - identityProvidersModulePatch: IdentityProvidersModulePatch! -} - -""" -Represents an update to a `IdentityProvidersModule`. 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 - tableId: UUID - tableName: String -} - -"""The output of our update `SessionSecretsModule` mutation.""" -type UpdateSessionSecretsModulePayload { - """ - The exact 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 updated 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 `updateSessionSecretsModule` mutation.""" -input UpdateSessionSecretsModuleInput { - """ - An arbitrary string value 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 `SessionSecretsModule` being updated. - """ - sessionSecretsModulePatch: SessionSecretsModulePatch! -} - -""" -Represents an update to a `SessionSecretsModule`. Fields that are set will be updated. -""" -input SessionSecretsModulePatch { - 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 -} - -"""The output of our update `AppAdminGrant` mutation.""" -type UpdateAppAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppAdminGrant` that was updated by this mutation.""" - appAdminGrant: AppAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge -} - -"""All input for the `updateAppAdminGrant` mutation.""" -input UpdateAppAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppAdminGrant` being updated. - """ - appAdminGrantPatch: AppAdminGrantPatch! -} - -""" -Represents an update to a `AppAdminGrant`. Fields that are set will be updated. -""" -input AppAdminGrantPatch { - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `AppOwnerGrant` mutation.""" -type UpdateAppOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppOwnerGrant` that was updated by this mutation.""" - appOwnerGrant: AppOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge -} - -"""All input for the `updateAppOwnerGrant` mutation.""" -input UpdateAppOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppOwnerGrant` being updated. - """ - appOwnerGrantPatch: AppOwnerGrantPatch! -} - -""" -Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. -""" -input AppOwnerGrantPatch { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - - """The member receiving or losing the ownership grant""" - actorId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgPermissionDefault` mutation.""" -type UpdateOrgPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefault` that was updated by this mutation.""" - orgPermissionDefault: OrgPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge -} - -"""All input for the `updateOrgPermissionDefault` mutation.""" -input UpdateOrgPermissionDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgPermissionDefault` being updated. - """ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch! -} - -""" -Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. -""" -input OrgPermissionDefaultPatch { - id: UUID - - """Default permission bitmask applied to new members""" - permissions: BitString - - """References the entity these default permissions apply to""" - entityId: UUID -} - -"""The output of our update `DefaultPrivilege` mutation.""" -type UpdateDefaultPrivilegePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DefaultPrivilege` that was updated by this mutation.""" - defaultPrivilege: DefaultPrivilege - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DefaultPrivilege`. May be used by Relay 1.""" - defaultPrivilegeEdge( - """The method to use when ordering `DefaultPrivilege`.""" - orderBy: [DefaultPrivilegeOrderBy!]! = [PRIMARY_KEY_ASC] - ): DefaultPrivilegeEdge -} - -"""All input for the `updateDefaultPrivilege` mutation.""" -input UpdateDefaultPrivilegeInput { - """ - An arbitrary string value 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 `DefaultPrivilege` being updated. - """ - defaultPrivilegePatch: DefaultPrivilegePatch! -} - -""" -Represents an update to a `DefaultPrivilege`. Fields that are set will be updated. -""" -input DefaultPrivilegePatch { - id: UUID - databaseId: UUID - schemaId: UUID - objectType: String - privilege: String - granteeName: String - isGrant: Boolean -} - -"""The output of our update `ViewGrant` mutation.""" -type UpdateViewGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewGrant` that was updated by this mutation.""" - viewGrant: ViewGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewGrant`. May be used by Relay 1.""" - viewGrantEdge( - """The method to use when ordering `ViewGrant`.""" - orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewGrantEdge -} - -"""All input for the `updateViewGrant` mutation.""" -input UpdateViewGrantInput { - """ - An arbitrary string value 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 `ViewGrant` being updated. - """ - viewGrantPatch: ViewGrantPatch! -} - -""" -Represents an update to a `ViewGrant`. Fields that are set will be updated. -""" -input ViewGrantPatch { - id: UUID - databaseId: UUID - viewId: UUID - granteeName: String - privilege: String - withGrantOption: Boolean - isGrant: Boolean -} - -"""The output of our update `Api` mutation.""" -type UpdateApiPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Api` that was updated by this mutation.""" - api: Api - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Api`. May be used by Relay 1.""" - apiEdge( - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiEdge -} - -"""All input for the `updateApi` mutation.""" -input UpdateApiInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API""" - id: UUID! - - """ - An object where the defined keys will be set on the `Api` being updated. - """ - apiPatch: ApiPatch! -} - -"""Represents an update to a `Api`. Fields that are set will be updated.""" -input ApiPatch { - """Unique identifier for this API""" - id: UUID - - """Reference to the metaschema database this API serves""" - databaseId: UUID - - """Unique name for this API within its database""" - name: String - - """PostgreSQL database name to connect to""" - dbname: String - - """PostgreSQL role used for authenticated requests""" - roleName: String - - """PostgreSQL role used for anonymous/unauthenticated requests""" - anonRole: String - - """Whether this API is publicly accessible without authentication""" - isPublic: Boolean -} - -"""The output of our update `ConnectedAccountsModule` mutation.""" -type UpdateConnectedAccountsModulePayload { - """ - The exact 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 updated 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 `updateConnectedAccountsModule` mutation.""" -input UpdateConnectedAccountsModuleInput { - """ - An arbitrary string value 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 `ConnectedAccountsModule` being updated. - """ - connectedAccountsModulePatch: ConnectedAccountsModulePatch! -} - -""" -Represents an update to a `ConnectedAccountsModule`. Fields that are set will be updated. -""" -input ConnectedAccountsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String -} - -"""The output of our update `DevicesModule` mutation.""" -type UpdateDevicesModulePayload { - """ - The exact 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 updated 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 `updateDevicesModule` mutation.""" -input UpdateDevicesModuleInput { - """ - An arbitrary string value 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 `DevicesModule` being updated. - """ - devicesModulePatch: DevicesModulePatch! -} - -""" -Represents an update to a `DevicesModule`. Fields that are set will be updated. -""" -input DevicesModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - userDevicesTableId: UUID - deviceSettingsTableId: UUID - userDevicesTable: String - deviceSettingsTable: String -} - -"""The output of our update `EmailsModule` mutation.""" -type UpdateEmailsModulePayload { - """ - The exact 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 updated 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 `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 `updateEmailsModule` mutation.""" -input UpdateEmailsModuleInput { - """ - An arbitrary string value 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 `EmailsModule` being updated. - """ - emailsModulePatch: EmailsModulePatch! -} - -""" -Represents an update to a `EmailsModule`. Fields that are set will be updated. -""" -input EmailsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String -} - -"""The output of our update `PhoneNumbersModule` mutation.""" -type UpdatePhoneNumbersModulePayload { - """ - The exact 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 updated 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 `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 `updatePhoneNumbersModule` mutation.""" -input UpdatePhoneNumbersModuleInput { - """ - An arbitrary string value 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 `PhoneNumbersModule` being updated. - """ - phoneNumbersModulePatch: PhoneNumbersModulePatch! -} - -""" -Represents an update to a `PhoneNumbersModule`. Fields that are set will be updated. -""" -input PhoneNumbersModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String -} - -"""The output of our update `UsersModule` mutation.""" -type UpdateUsersModulePayload { - """ - The exact 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 updated 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 `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 `updateUsersModule` mutation.""" -input UpdateUsersModuleInput { - """ - An arbitrary string value 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 `UsersModule` being updated. - """ - usersModulePatch: UsersModulePatch! -} - -""" -Represents an update to a `UsersModule`. Fields that are set will be updated. -""" -input UsersModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - tableId: UUID - tableName: String - typeTableId: UUID - typeTableName: String -} - -"""The output of our update `WebauthnCredentialsModule` mutation.""" -type UpdateWebauthnCredentialsModulePayload { - """ - The exact 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 updated 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 `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 `updateWebauthnCredentialsModule` mutation.""" -input UpdateWebauthnCredentialsModuleInput { - """ - An arbitrary string value 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 `WebauthnCredentialsModule` being updated. - """ - webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch! -} - -""" -Represents an update to a `WebauthnCredentialsModule`. Fields that are set will be updated. -""" -input WebauthnCredentialsModulePatch { - 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 -} - -"""The output of our update `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge -} - -"""All input for the `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. - """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! -} - -""" -Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. -""" -input AppMembershipDefaultPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean -} - -"""The output of our update `OrgAdminGrant` mutation.""" -type UpdateOrgAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgAdminGrant` that was updated by this mutation.""" - orgAdminGrant: OrgAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge -} - -"""All input for the `updateOrgAdminGrant` mutation.""" -input UpdateOrgAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgAdminGrant` being updated. - """ - orgAdminGrantPatch: OrgAdminGrantPatch! -} - -""" -Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. -""" -input OrgAdminGrantPatch { - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID - - """The entity (org or group) this admin grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgMembershipDefault` mutation.""" -type UpdateOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipDefault` that was updated by this mutation.""" - orgMembershipDefault: OrgMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} - -"""All input for the `updateOrgMembershipDefault` mutation.""" -input UpdateOrgMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgMembershipDefault` being updated. - """ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch! -} - -""" -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. -""" -input OrgMembershipDefaultPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """References the entity these membership defaults apply to""" - entityId: UUID -} - -"""The output of our update `OrgOwnerGrant` mutation.""" -type UpdateOrgOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgOwnerGrant` that was updated by this mutation.""" - orgOwnerGrant: OrgOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge -} - -"""All input for the `updateOrgOwnerGrant` mutation.""" -input UpdateOrgOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgOwnerGrant` being updated. - """ - orgOwnerGrantPatch: OrgOwnerGrantPatch! -} - -""" -Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. -""" -input OrgOwnerGrantPatch { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean - - """The member receiving or losing the ownership grant""" - actorId: UUID - - """The entity (org or group) this ownership grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `NodeTypeRegistry` mutation.""" -type UpdateNodeTypeRegistryPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NodeTypeRegistry` that was updated by this mutation.""" - nodeTypeRegistry: NodeTypeRegistry - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" - nodeTypeRegistryEdge( - """The method to use when ordering `NodeTypeRegistry`.""" - orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] - ): NodeTypeRegistryEdge -} - -"""All input for the `updateNodeTypeRegistry` mutation.""" -input UpdateNodeTypeRegistryInput { - """ - An arbitrary 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! - - """ - An object where the defined keys will be set on the `NodeTypeRegistry` being updated. - """ - nodeTypeRegistryPatch: NodeTypeRegistryPatch! -} - -""" -Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. -""" -input NodeTypeRegistryPatch { - name: String - slug: String - category: String - displayName: String - description: String - parameterSchema: JSON - tags: [String] -} - -"""The output of our update `AppLimitCapsDefault` mutation.""" -type UpdateAppLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` that was updated by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the `updateAppLimitCapsDefault` mutation.""" -input UpdateAppLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. - """ - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch! -} - -""" -Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. -""" -input AppLimitCapsDefaultPatch { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our update `OrgLimitCapsDefault` mutation.""" -type UpdateOrgLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` that was updated by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the `updateOrgLimitCapsDefault` mutation.""" -input UpdateOrgLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. - """ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch! -} - -""" -Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. -""" -input OrgLimitCapsDefaultPatch { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our update `AppLimitCap` mutation.""" -type UpdateAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCap` that was updated by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the `updateAppLimitCap` mutation.""" -input UpdateAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitCap` being updated. - """ - appLimitCapPatch: AppLimitCapPatch! -} - -""" -Represents an update to a `AppLimitCap`. Fields that are set will be updated. -""" -input AppLimitCapPatch { - id: UUID - - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our update `OrgLimitCap` mutation.""" -type UpdateOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was updated by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the `updateOrgLimitCap` mutation.""" -input UpdateOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitCap` being updated. - """ - orgLimitCapPatch: OrgLimitCapPatch! -} - -""" -Represents an update to a `OrgLimitCap`. Fields that are set will be updated. -""" -input OrgLimitCapPatch { - id: UUID - - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our update `Database` mutation.""" -type UpdateDatabasePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Database` that was updated by this mutation.""" - database: Database - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Database`. May be used by Relay 1.""" - databaseEdge( - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseEdge -} - -"""All input for the `updateDatabase` mutation.""" -input UpdateDatabaseInput { - """ - An arbitrary string value 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 `Database` being updated. - """ - databasePatch: DatabasePatch! -} - -""" -Represents an update to a `Database`. Fields that are set will be updated. -""" -input DatabasePatch { - id: UUID - ownerId: UUID - schemaHash: String - name: String - label: String - hash: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `CryptoAddressesModule` being updated. - """ - cryptoAddressesModulePatch: CryptoAddressesModulePatch! -} - -""" -Represents an update to a `CryptoAddressesModule`. Fields that are set will be updated. -""" -input CryptoAddressesModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String - cryptoNetwork: String -} - -"""The output of our update `OrgChartEdge` mutation.""" -type UpdateOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was updated by this mutation.""" - orgChartEdge: OrgChartEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} - -"""All input for the `updateOrgChartEdge` mutation.""" -input UpdateOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgChartEdge` being updated. - """ - orgChartEdgePatch: OrgChartEdgePatch! -} - -""" -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. -""" -input OrgChartEdgePatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID - - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID - - """Job title or role name for this position in the org chart""" - positionTitle: String - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int -} - -"""The output of our update `CryptoAddress` mutation.""" -type UpdateCryptoAddressPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CryptoAddress` that was updated by this mutation.""" - cryptoAddress: CryptoAddress - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CryptoAddress`. May be used by Relay 1.""" - cryptoAddressEdge( - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressEdge -} - -"""All input for the `updateCryptoAddress` mutation.""" -input UpdateCryptoAddressInput { - """ - An arbitrary string value 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 `CryptoAddress` being updated. - """ - cryptoAddressPatch: CryptoAddressPatch! -} - -""" -Represents an update to a `CryptoAddress`. Fields that are set will be updated. -""" -input CryptoAddressPatch { - id: UUID - ownerId: UUID - - """ - The cryptocurrency wallet address, validated against network-specific patterns - """ - address: String - - """Whether ownership of this address has been cryptographically verified""" - isVerified: Boolean - - """Whether this is the user's primary cryptocurrency address""" - isPrimary: Boolean - - """ - Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). - """ - name: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `AppLimitCreditCodeItem` mutation.""" -type UpdateAppLimitCreditCodeItemPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCodeItem` that was updated by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge -} - -"""All input for the `updateAppLimitCreditCodeItem` mutation.""" -input UpdateAppLimitCreditCodeItemInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. - """ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! -} - -""" -Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. -""" -input AppLimitCreditCodeItemPatch { - id: UUID - - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID - - """Number of credits this item grants per redemption""" - amount: BigInt - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String -} - -"""The output of our update `AppLimitDefault` mutation.""" -type UpdateAppLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitDefault` that was updated by this mutation.""" - appLimitDefault: AppLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge -} - -"""All input for the `updateAppLimitDefault` mutation.""" -input UpdateAppLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitDefault` being updated. - """ - appLimitDefaultPatch: AppLimitDefaultPatch! -} - -""" -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. -""" -input AppLimitDefaultPatch { - id: UUID - - """Name identifier of the limit this default applies to""" - name: String - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""The output of our update `OrgLimitDefault` mutation.""" -type UpdateOrgLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitDefault` that was updated by this mutation.""" - orgLimitDefault: OrgLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge -} - -"""All input for the `updateOrgLimitDefault` mutation.""" -input UpdateOrgLimitDefaultInput { - """ - An arbitrary string value 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 `OrgLimitDefault` being updated. - """ - orgLimitDefaultPatch: OrgLimitDefaultPatch! -} - -""" -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. -""" -input OrgLimitDefaultPatch { - id: UUID - - """Name identifier of the limit this default applies to""" - name: String - - """Default maximum usage allowed for this limit""" - max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt -} - -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppPermission` being updated. - """ - appPermissionPatch: AppPermissionPatch! -} - -""" -Represents an update to a `AppPermission`. Fields that are set will be updated. -""" -input AppPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgPermission` being updated. - """ - orgPermissionPatch: OrgPermissionPatch! -} - -""" -Represents an update to a `OrgPermission`. Fields that are set will be updated. -""" -input OrgPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `AppLimitCreditCode` mutation.""" -type UpdateAppLimitCreditCodePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCode` that was updated by this mutation.""" - appLimitCreditCode: AppLimitCreditCode - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge -} - -"""All input for the `updateAppLimitCreditCode` mutation.""" -input UpdateAppLimitCreditCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitCreditCode` being updated. - """ - appLimitCreditCodePatch: AppLimitCreditCodePatch! -} - -""" -Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. -""" -input AppLimitCreditCodePatch { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime -} - -"""The output of our update `AppLimitWarning` mutation.""" -type UpdateAppLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitWarning` that was updated by this mutation.""" - appLimitWarning: AppLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge -} - -"""All input for the `updateAppLimitWarning` mutation.""" -input UpdateAppLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitWarning` being updated. - """ - appLimitWarningPatch: AppLimitWarningPatch! -} - -""" -Represents an update to a `AppLimitWarning`. Fields that are set will be updated. -""" -input AppLimitWarningPatch { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String -} - -"""The output of our update `FullTextSearch` mutation.""" -type UpdateFullTextSearchPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `FullTextSearch` that was updated by this mutation.""" - fullTextSearch: FullTextSearch - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FullTextSearch`. May be used by Relay 1.""" - fullTextSearchEdge( - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] - ): FullTextSearchEdge -} - -"""All input for the `updateFullTextSearch` mutation.""" -input UpdateFullTextSearchInput { - """ - An arbitrary string value 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 `FullTextSearch` being updated. - """ - fullTextSearchPatch: FullTextSearchPatch! -} - -""" -Represents an update to a `FullTextSearch`. Fields that are set will be updated. -""" -input FullTextSearchPatch { - id: UUID - databaseId: UUID - tableId: UUID - fieldId: UUID - fieldIds: [UUID] - weights: [String] - langs: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `TableGrant` mutation.""" -type UpdateTableGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TableGrant` that was updated by this mutation.""" - tableGrant: TableGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TableGrant`. May be used by Relay 1.""" - tableGrantEdge( - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableGrantEdge -} - -"""All input for the `updateTableGrant` mutation.""" -input UpdateTableGrantInput { - """ - An arbitrary string value 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 `TableGrant` being updated. - """ - tableGrantPatch: TableGrantPatch! -} - -""" -Represents an update to a `TableGrant`. Fields that are set will be updated. -""" -input TableGrantPatch { - id: UUID - databaseId: UUID - tableId: UUID - privilege: String - granteeName: String - fieldIds: [UUID] - isGrant: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `SiteMetadatum` mutation.""" -type UpdateSiteMetadatumPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteMetadatum` that was updated by this mutation.""" - siteMetadatum: SiteMetadatum - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge -} - -"""All input for the `updateSiteMetadatum` mutation.""" -input UpdateSiteMetadatumInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this metadata record""" - id: UUID! - - """ - An object where the defined keys will be set on the `SiteMetadatum` being updated. - """ - siteMetadatumPatch: SiteMetadatumPatch! -} - -""" -Represents an update to a `SiteMetadatum`. Fields that are set will be updated. -""" -input SiteMetadatumPatch { - """Unique identifier for this metadata record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """Site this metadata belongs to""" - siteId: UUID - - """Page title for SEO (max 120 characters)""" - title: String - - """Meta description for SEO and social sharing (max 120 characters)""" - description: String - - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage - - """Upload for Open Graph image for social media previews""" - ogImageUpload: Upload -} - -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - -"""The output of our update `PubkeySetting` mutation.""" -type UpdatePubkeySettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PubkeySetting` that was updated by this mutation.""" - pubkeySetting: PubkeySetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PubkeySetting`. May be used by Relay 1.""" - pubkeySettingEdge( - """The method to use when ordering `PubkeySetting`.""" - orderBy: [PubkeySettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PubkeySettingEdge -} - -"""All input for the `updatePubkeySetting` mutation.""" -input UpdatePubkeySettingInput { - """ - An arbitrary 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 pubkey settings record""" - id: UUID! - - """ - An object where the defined keys will be set on the `PubkeySetting` being updated. - """ - pubkeySettingPatch: PubkeySettingPatch! -} - -""" -Represents an update to a `PubkeySetting`. Fields that are set will be updated. -""" -input PubkeySettingPatch { - """Unique identifier for this pubkey settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """ - Schema containing the crypto auth functions (FK to metaschema_public.schema) - """ - schemaId: UUID - - """Crypto network for key derivation (e.g. cosmos, ethereum)""" - cryptoNetwork: String - - """Field name used to identify the user in crypto auth functions""" - userField: String - - """ - Reference to the sign-up-with-key function (FK to metaschema_public.function) - """ - signUpWithKeyFunctionId: UUID - - """ - Reference to the sign-in challenge request function (FK to metaschema_public.function) - """ - signInRequestChallengeFunctionId: UUID - - """ - Reference to the sign-in failure recording function (FK to metaschema_public.function) - """ - signInRecordFailureFunctionId: UUID - - """ - Reference to the sign-in-with-challenge function (FK to metaschema_public.function) - """ - signInWithChallengeFunctionId: UUID -} - -"""The output of our update `RateLimitsModule` mutation.""" -type UpdateRateLimitsModulePayload { - """ - The exact 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 updated 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 `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 `updateRateLimitsModule` mutation.""" -input UpdateRateLimitsModuleInput { - """ - An arbitrary string value 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 `RateLimitsModule` being updated. - """ - rateLimitsModulePatch: RateLimitsModulePatch! -} - -""" -Represents an update to a `RateLimitsModule`. Fields that are set will be updated. -""" -input RateLimitsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - rateLimitSettingsTableId: UUID - ipRateLimitsTableId: UUID - rateLimitsTableId: UUID - rateLimitSettingsTable: String - ipRateLimitsTable: String - rateLimitsTable: String -} - -"""The output of our update `OrgChartEdgeGrant` mutation.""" -type UpdateOrgChartEdgeGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdgeGrant` that was updated by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge -} - -"""All input for the `updateOrgChartEdgeGrant` mutation.""" -input UpdateOrgChartEdgeGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. - """ - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch! -} - -""" -Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. -""" -input OrgChartEdgeGrantPatch { - id: UUID - - """Organization this grant applies to""" - entityId: UUID - - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean - - """Job title or role name being assigned in this grant""" - positionTitle: String - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime -} - -"""The output of our update `PhoneNumber` mutation.""" -type UpdatePhoneNumberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PhoneNumber` that was updated by this mutation.""" - phoneNumber: PhoneNumber - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PhoneNumber`. May be used by Relay 1.""" - phoneNumberEdge( - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] - ): PhoneNumberEdge -} - -"""All input for the `updatePhoneNumber` mutation.""" -input UpdatePhoneNumberInput { - """ - An arbitrary string value 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 `PhoneNumber` being updated. - """ - phoneNumberPatch: PhoneNumberPatch! -} - -""" -Represents an update to a `PhoneNumber`. Fields that are set will be updated. -""" -input PhoneNumberPatch { - id: UUID - ownerId: UUID - - """Country calling code (e.g. +1, +44)""" - cc: String - - """The phone number without country code""" - number: String - - """Whether the phone number has been verified via SMS code""" - isVerified: Boolean - - """Whether this is the user's primary phone number""" - isPrimary: Boolean - - """ - Optional user-provided label for this phone number (e.g. "Mobile", "Work"). - """ - name: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `AppLimitCredit` mutation.""" -type UpdateAppLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCredit` that was updated by this mutation.""" - appLimitCredit: AppLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge -} - -"""All input for the `updateAppLimitCredit` mutation.""" -input UpdateAppLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitCredit` being updated. - """ - appLimitCreditPatch: AppLimitCreditPatch! -} - -""" -Represents an update to a `AppLimitCredit`. Fields that are set will be updated. -""" -input AppLimitCreditPatch { - id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our update `OrgLimitCredit` mutation.""" -type UpdateOrgLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCredit` that was updated by this mutation.""" - orgLimitCredit: OrgLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge -} - -"""All input for the `updateOrgLimitCredit` mutation.""" -input UpdateOrgLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitCredit` being updated. - """ - orgLimitCreditPatch: OrgLimitCreditPatch! -} - -""" -Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. -""" -input OrgLimitCreditPatch { - id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our update `AppClaimedInvite` mutation.""" -type UpdateAppClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppClaimedInvite` that was updated by this mutation.""" - appClaimedInvite: AppClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge -} - -"""All input for the `updateAppClaimedInvite` mutation.""" -input UpdateAppClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppClaimedInvite` being updated. - """ - appClaimedInvitePatch: AppClaimedInvitePatch! -} - -""" -Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. -""" -input AppClaimedInvitePatch { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgLimitWarning` mutation.""" -type UpdateOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was updated by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the `updateOrgLimitWarning` mutation.""" -input UpdateOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitWarning` being updated. - """ - orgLimitWarningPatch: OrgLimitWarningPatch! -} - -""" -Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. -""" -input OrgLimitWarningPatch { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID -} - -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """ - An object where the defined keys will be set on the `MembershipType` being updated. - """ - membershipTypePatch: MembershipTypePatch! -} - -""" -Represents an update to a `MembershipType`. Fields that are set will be updated. -""" -input MembershipTypePatch { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int - - """Human-readable name of the membership type""" - name: String - - """Description of what this membership type represents""" - description: String - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean -} - -"""The output of our update `Domain` mutation.""" -type UpdateDomainPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Domain` that was updated by this mutation.""" - domain: Domain - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Domain`. May be used by Relay 1.""" - domainEdge( - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] - ): DomainEdge -} - -"""All input for the `updateDomain` mutation.""" -input UpdateDomainInput { - """ - An arbitrary 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 domain record""" - id: UUID! - - """ - An object where the defined keys will be set on the `Domain` being updated. - """ - domainPatch: DomainPatch! -} - -""" -Represents an update to a `Domain`. Fields that are set will be updated. -""" -input DomainPatch { - """Unique identifier for this domain record""" - id: UUID - - """Reference to the metaschema database this domain belongs to""" - databaseId: UUID - - """API endpoint this domain routes to (mutually exclusive with site_id)""" - apiId: UUID - - """Site this domain routes to (mutually exclusive with api_id)""" - siteId: UUID - - """Subdomain portion of the hostname""" - subdomain: ConstructiveInternalTypeHostname - - """Root domain of the hostname""" - domain: ConstructiveInternalTypeHostname -} - -"""The output of our update `RlsSetting` mutation.""" -type UpdateRlsSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RlsSetting` that was updated by this mutation.""" - rlsSetting: RlsSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RlsSetting`. May be used by Relay 1.""" - rlsSettingEdge( - """The method to use when ordering `RlsSetting`.""" - orderBy: [RlsSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): RlsSettingEdge -} - -"""All input for the `updateRlsSetting` mutation.""" -input UpdateRlsSettingInput { - """ - An arbitrary 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 RLS settings record""" - id: UUID! - - """ - An object where the defined keys will be set on the `RlsSetting` being updated. - """ - rlsSettingPatch: RlsSettingPatch! -} - -""" -Represents an update to a `RlsSetting`. Fields that are set will be updated. -""" -input RlsSettingPatch { - """Unique identifier for this RLS settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """ - Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) - """ - authenticateSchemaId: UUID - - """ - Schema containing current_role and related functions (FK to metaschema_public.schema) - """ - roleSchemaId: UUID - - """ - Reference to the authenticate function (FK to metaschema_public.function) - """ - authenticateFunctionId: UUID - - """ - Reference to the strict authenticate function (FK to metaschema_public.function) - """ - authenticateStrictFunctionId: UUID - - """ - Reference to the current_role function (FK to metaschema_public.function) - """ - currentRoleFunctionId: UUID - - """ - Reference to the current_role_id function (FK to metaschema_public.function) - """ - currentRoleIdFunctionId: UUID - - """ - Reference to the current_user_agent function (FK to metaschema_public.function) - """ - currentUserAgentFunctionId: UUID - - """ - Reference to the current_ip_address function (FK to metaschema_public.function) - """ - currentIpAddressFunctionId: UUID -} - -"""The output of our update `AppGrant` mutation.""" -type UpdateAppGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppGrant` that was updated by this mutation.""" - appGrant: AppGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge -} - -"""All input for the `updateAppGrant` mutation.""" -input UpdateAppGrantInput { - """ - An arbitrary string value 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 `AppGrant` being updated. - """ - appGrantPatch: AppGrantPatch! -} - -""" -Represents an update to a `AppGrant`. Fields that are set will be updated. -""" -input AppGrantPatch { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgClaimedInvite` mutation.""" -type UpdateOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgClaimedInvite` that was updated by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge -} - -"""All input for the `updateOrgClaimedInvite` mutation.""" -input UpdateOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgClaimedInvite` being updated. - """ - orgClaimedInvitePatch: OrgClaimedInvitePatch! -} - -""" -Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. -""" -input OrgClaimedInvitePatch { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID -} - -"""The output of our update `AuditLogAuth` mutation.""" -type UpdateAuditLogAuthPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AuditLogAuth` that was updated by this mutation.""" - auditLogAuth: AuditLogAuth - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AuditLogAuth`. May be used by Relay 1.""" - auditLogAuthEdge( - """The method to use when ordering `AuditLogAuth`.""" - orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogAuthEdge -} - -"""All input for the `updateAuditLogAuth` mutation.""" -input UpdateAuditLogAuthInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """ - Unique identifier for each audit event (uuidv7 provides temporal ordering) - """ - id: UUID! - - """ - An object where the defined keys will be set on the `AuditLogAuth` being updated. - """ - auditLogAuthPatch: AuditLogAuthPatch! -} - -""" -Represents an update to a `AuditLogAuth`. Fields that are set will be updated. -""" -input AuditLogAuthPatch { - createdAt: Datetime - - """ - Unique identifier for each audit event (uuidv7 provides temporal ordering) - """ - id: UUID - - """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) - """ - event: String - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID - - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin - - """Browser or client user-agent string from the request""" - userAgent: String - - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress - - """Whether the authentication attempt succeeded""" - success: Boolean -} - -"""The output of our update `BlueprintConstruction` mutation.""" -type UpdateBlueprintConstructionPayload { - """ - The exact 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 updated 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 `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 `updateBlueprintConstruction` mutation.""" -input UpdateBlueprintConstructionInput { - """ - An arbitrary 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! - - """ - An object where the defined keys will be set on the `BlueprintConstruction` being updated. - """ - blueprintConstructionPatch: BlueprintConstructionPatch! -} - -""" -Represents an update to a `BlueprintConstruction`. Fields that are set will be updated. -""" -input BlueprintConstructionPatch { - """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 - - """ - 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 update `RlsModule` mutation.""" -type UpdateRlsModulePayload { - """ - The exact 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 updated 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 `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 `updateRlsModule` mutation.""" -input UpdateRlsModuleInput { - """ - An arbitrary string value 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 `RlsModule` being updated. - """ - rlsModulePatch: RlsModulePatch! -} - -""" -Represents an update to a `RlsModule`. Fields that are set will be updated. -""" -input RlsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - sessionCredentialsTableId: UUID - sessionsTableId: UUID - usersTableId: UUID - authenticate: String - authenticateStrict: String - currentRole: String - currentRoleId: String -} - -"""The output of our update `SessionsModule` mutation.""" -type UpdateSessionsModulePayload { - """ - The exact 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 updated 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 `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 `updateSessionsModule` mutation.""" -input UpdateSessionsModuleInput { - """ - An arbitrary string value 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 `SessionsModule` being updated. - """ - sessionsModulePatch: SessionsModulePatch! -} - -""" -Represents an update to a `SessionsModule`. Fields that are set will be updated. -""" -input SessionsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - authSettingsTableId: UUID - usersTableId: UUID - sessionsDefaultExpiration: IntervalInput - sessionsTable: String - sessionCredentialsTable: String - authSettingsTable: String -} - -"""The output of our update `OrgMemberProfile` mutation.""" -type UpdateOrgMemberProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMemberProfile` that was updated by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the `updateOrgMemberProfile` mutation.""" -input UpdateOrgMemberProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgMemberProfile` being updated. - """ - orgMemberProfilePatch: OrgMemberProfilePatch! -} - -""" -Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. -""" -input OrgMemberProfilePatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload -} - -"""The output of our update `OrgGrant` mutation.""" -type UpdateOrgGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgGrant` that was updated by this mutation.""" - orgGrant: OrgGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge -} - -"""All input for the `updateOrgGrant` mutation.""" -input UpdateOrgGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgGrant` being updated. - """ - orgGrantPatch: OrgGrantPatch! -} - -""" -Represents an update to a `OrgGrant`. Fields that are set will be updated. -""" -input OrgGrantPatch { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID - - """The entity (org or group) this permission grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `Blueprint` mutation.""" -type UpdateBlueprintPayload { - """ - The exact 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 updated 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 `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 `updateBlueprint` mutation.""" -input UpdateBlueprintInput { - """ - An arbitrary 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! - - """ - An object where the defined keys will be set on the `Blueprint` being updated. - """ - blueprintPatch: BlueprintPatch! -} - -""" -Represents an update to a `Blueprint`. Fields that are set will be updated. -""" -input BlueprintPatch { - """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 - - """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 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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - 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. -""" -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 `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - 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. -""" -input RateLimitMetersModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - rateLimitStateTableId: UUID - rateLimitStateTableName: String - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String - checkRateLimitFunction: String - prefix: String -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - 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. -""" -input RealtimeModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - subscriptionsSchemaId: UUID - changeLogTableId: UUID - listenerNodeTableId: UUID - sourceRegistryTableId: UUID - retentionHours: Int - premake: Int - interval: String - notifyChannel: String -} - -"""The output of our update `Partition` mutation.""" -type UpdatePartitionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Partition` that was updated by this mutation.""" - partition: Partition - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge -} - -"""All input for the `updatePartition` mutation.""" -input UpdatePartitionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `Partition` being updated. - """ - partitionPatch: PartitionPatch! -} - -""" -Represents an update to a `Partition`. Fields that are set will be updated. -""" -input PartitionPatch { - id: UUID - databaseId: UUID - tableId: UUID - strategy: String - partitionKeyId: UUID - interval: String - retention: String - retentionKeepTable: Boolean - premake: Int - namingPattern: String - isParented: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `PlansModule` mutation.""" -type UpdatePlansModulePayload { - """ - The exact 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 updated 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 `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 `updatePlansModule` mutation.""" -input UpdatePlansModuleInput { - """ - An arbitrary string value 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 `PlansModule` being updated. - """ - plansModulePatch: PlansModulePatch! -} - -""" -Represents an update to a `PlansModule`. Fields that are set will be updated. -""" -input PlansModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - plansTableId: UUID - plansTableName: String - planLimitsTableId: UUID - planLimitsTableName: String - planPricingTableId: UUID - planOverridesTableId: UUID - applyPlanFunction: String - applyPlanAggregateFunction: String - prefix: String -} - -"""The output of our update `Email` mutation.""" -type UpdateEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was updated by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `updateEmail` mutation.""" -input UpdateEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `Email` being updated. - """ - emailPatch: EmailPatch! -} - -""" -Represents an update to a `Email`. Fields that are set will be updated. -""" -input EmailPatch { - id: UUID - ownerId: UUID - - """The email address""" - email: ConstructiveInternalTypeEmail - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean - - """Whether this is the user's primary email address""" - isPrimary: Boolean - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `DatabaseTransfer` mutation.""" -type UpdateDatabaseTransferPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseTransfer` that was updated by this mutation.""" - databaseTransfer: DatabaseTransfer - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" - databaseTransferEdge( - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseTransferEdge -} - -"""All input for the `updateDatabaseTransfer` mutation.""" -input UpdateDatabaseTransferInput { - """ - An arbitrary string value 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 `DatabaseTransfer` being updated. - """ - databaseTransferPatch: DatabaseTransferPatch! -} - -""" -Represents an update to a `DatabaseTransfer`. Fields that are set will be updated. -""" -input DatabaseTransferPatch { - id: UUID - databaseId: UUID - targetOwnerId: UUID - sourceApproved: Boolean - targetApproved: Boolean - sourceApprovedAt: Datetime - targetApprovedAt: Datetime - status: String - initiatedBy: UUID - notes: String - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime - completedAt: Datetime -} - -"""The output of our update `DatabaseSetting` mutation.""" -type UpdateDatabaseSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseSetting` that was updated by this mutation.""" - databaseSetting: DatabaseSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge -} - -"""All input for the `updateDatabaseSetting` mutation.""" -input UpdateDatabaseSettingInput { - """ - An arbitrary 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 settings record""" - id: UUID! - - """ - An object where the defined keys will be set on the `DatabaseSetting` being updated. - """ - databaseSettingPatch: DatabaseSettingPatch! -} - -""" -Represents an update to a `DatabaseSetting`. Fields that are set will be updated. -""" -input DatabaseSettingPatch { - """Unique identifier for this settings record""" - id: UUID - - """Reference to the metaschema database these settings apply to""" - databaseId: UUID - - """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" - enableAggregates: Boolean - - """Enable PostGIS spatial types and operators in the GraphQL API""" - enablePostgis: Boolean - - """ - Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API - """ - enableSearch: Boolean - - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - - """Enable presigned URL upload flow for S3/MinIO storage""" - enablePresignedUploads: Boolean - - """Enable many-to-many relationship queries in the GraphQL API""" - enableManyToMany: Boolean - - """Enable connection filter (where argument) in the GraphQL API""" - enableConnectionFilter: Boolean - - """Enable ltree hierarchical data type support in the GraphQL API""" - enableLtree: Boolean - - """Enable LLM/AI integration features in the GraphQL API""" - enableLlm: Boolean - - """ - Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API - """ - enableRealtime: Boolean - - """ - Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API - """ - enableBulk: Boolean - - """ - Extensible JSON for additional settings that do not have dedicated columns - """ - options: JSON -} - -"""The output of our update `CryptoAuthModule` mutation.""" -type UpdateCryptoAuthModulePayload { - """ - The exact 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 updated 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 `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 `updateCryptoAuthModule` mutation.""" -input UpdateCryptoAuthModuleInput { - """ - An arbitrary string value 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 `CryptoAuthModule` being updated. - """ - cryptoAuthModulePatch: CryptoAuthModulePatch! -} - -""" -Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. -""" -input CryptoAuthModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - 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 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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. - """ - databaseProvisionModulePatch: DatabaseProvisionModulePatch! -} - -""" -Represents an update to a `DatabaseProvisionModule`. Fields that are set will be updated. -""" -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 - - """ - Explicit array of module IDs to install (e.g. users_module, storage_module:full) - """ - modules: [String] - - """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 ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID - createdAt: Datetime - updatedAt: Datetime - completedAt: Datetime -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `InvitesModule` being updated. - """ - invitesModulePatch: InvitesModulePatch! -} - -""" -Represents an update to a `InvitesModule`. Fields that are set will be updated. -""" -input InvitesModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - emailsTableId: UUID - usersTableId: UUID - invitesTableId: UUID - claimedInvitesTableId: UUID - invitesTableName: String - claimedInvitesTableName: String - submitInviteCodeFunction: String - prefix: String - membershipType: Int - entityTableId: UUID -} - -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge -} - -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. - """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! -} - -""" -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. -""" -input OrgMembershipSettingPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String -} - -"""The output of our update `SecureTableProvision` mutation.""" -type UpdateSecureTableProvisionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SecureTableProvision` that was updated by this mutation.""" - secureTableProvision: SecureTableProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `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 `updateSecureTableProvision` mutation.""" -input UpdateSecureTableProvisionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this provision row.""" - id: UUID! - - """ - An object where the defined keys will be set on the `SecureTableProvision` being updated. - """ - secureTableProvisionPatch: SecureTableProvisionPatch! -} - -""" -Represents an update to a `SecureTableProvision`. Fields that are set will be updated. -""" -input SecureTableProvisionPatch { - """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 - - """ - 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. - """ - 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: JSON - - """ - 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: [JSON] - - """ - 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: JSON - - """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. - """ - policies: JSON - - """ - 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 update `ApiSetting` mutation.""" -type UpdateApiSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiSetting` that was updated by this mutation.""" - apiSetting: ApiSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge -} - -"""All input for the `updateApiSetting` mutation.""" -input UpdateApiSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API settings record""" - id: UUID! - - """ - An object where the defined keys will be set on the `ApiSetting` being updated. - """ - apiSettingPatch: ApiSettingPatch! -} - -""" -Represents an update to a `ApiSetting`. Fields that are set will be updated. -""" -input ApiSettingPatch { - """Unique identifier for this API settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """API these settings override for""" - apiId: UUID - - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ - enableAggregates: Boolean - - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ - enablePostgis: Boolean - - """ - Override: enable unified search (NULL = inherit from database_settings) - """ - enableSearch: Boolean - - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ - enablePresignedUploads: Boolean - - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ - enableManyToMany: Boolean - - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ - enableConnectionFilter: Boolean - - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ - enableLtree: Boolean - - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ - enableLlm: Boolean - - """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) - """ - enableRealtime: Boolean - - """ - Override: enable bulk mutations (NULL = inherit from database_settings) - """ - enableBulk: Boolean - - """ - Extensible JSON for additional per-API settings that do not have dedicated columns - """ - options: JSON -} - -"""The output of our update `ComputeLogModule` mutation.""" -type UpdateComputeLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ComputeLogModule` that was updated by this mutation.""" - computeLogModule: ComputeLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge -} - -"""All input for the `updateComputeLogModule` mutation.""" -input UpdateComputeLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `ComputeLogModule` being updated. - """ - computeLogModulePatch: ComputeLogModulePatch! -} - -""" -Represents an update to a `ComputeLogModule`. Fields that are set will be updated. -""" -input ComputeLogModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - computeLogTableId: UUID - computeLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our update `InferenceLogModule` mutation.""" -type UpdateInferenceLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `InferenceLogModule` that was updated by this mutation.""" - inferenceLogModule: InferenceLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `InferenceLogModule`. May be used by Relay 1.""" - inferenceLogModuleEdge( - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InferenceLogModuleEdge -} - -"""All input for the `updateInferenceLogModule` mutation.""" -input UpdateInferenceLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `InferenceLogModule` being updated. - """ - inferenceLogModulePatch: InferenceLogModulePatch! -} - -""" -Represents an update to a `InferenceLogModule`. Fields that are set will be updated. -""" -input InferenceLogModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - inferenceLogTableId: UUID - inferenceLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our update `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `MerkleStoreModule` being updated. - """ - merkleStoreModulePatch: MerkleStoreModulePatch! -} - -""" -Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. -""" -input MerkleStoreModulePatch { - 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 - scopeField: String - createdAt: Datetime -} - -"""The output of our update `StorageLogModule` mutation.""" -type UpdateStorageLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageLogModule` that was updated by this mutation.""" - storageLogModule: StorageLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageLogModule`. May be used by Relay 1.""" - storageLogModuleEdge( - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageLogModuleEdge -} - -"""All input for the `updateStorageLogModule` mutation.""" -input UpdateStorageLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `StorageLogModule` being updated. - """ - storageLogModulePatch: StorageLogModulePatch! -} - -""" -Represents an update to a `StorageLogModule`. Fields that are set will be updated. -""" -input StorageLogModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - storageLogTableId: UUID - storageLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our update `TransferLogModule` mutation.""" -type UpdateTransferLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TransferLogModule` that was updated by this mutation.""" - transferLogModule: TransferLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TransferLogModule`. May be used by Relay 1.""" - transferLogModuleEdge( - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): TransferLogModuleEdge -} - -"""All input for the `updateTransferLogModule` mutation.""" -input UpdateTransferLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `TransferLogModule` being updated. - """ - transferLogModulePatch: TransferLogModulePatch! -} - -""" -Represents an update to a `TransferLogModule`. Fields that are set will be updated. -""" -input TransferLogModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - transferLogTableId: UUID - transferLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String -} - -"""The output of our update `Enum` mutation.""" -type UpdateEnumPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Enum` that was updated by this mutation.""" - enum: Enum - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Enum`. May be used by Relay 1.""" - enumEdge( - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] - ): EnumEdge -} - -"""All input for the `updateEnum` mutation.""" -input UpdateEnumInput { - """ - An arbitrary string value 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 `Enum` being updated. - """ - enumPatch: EnumPatch! -} - -"""Represents an update to a `Enum`. Fields that are set will be updated.""" -input EnumPatch { - id: UUID - databaseId: UUID - schemaId: UUID - name: String - label: String - description: String - values: [String] - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] -} - -"""The output of our update `AppLimitEvent` mutation.""" -type UpdateAppLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitEvent` that was updated by this mutation.""" - appLimitEvent: AppLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge -} - -"""All input for the `updateAppLimitEvent` mutation.""" -input UpdateAppLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimitEvent` being updated. - """ - appLimitEventPatch: AppLimitEventPatch! -} - -""" -Represents an update to a `AppLimitEvent`. Fields that are set will be updated. -""" -input AppLimitEventPatch { - createdAt: Datetime - - """Unique identifier for each limit event""" - id: UUID - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our update `OrgLimitEvent` mutation.""" -type UpdateOrgLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitEvent` that was updated by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge -} - -"""All input for the `updateOrgLimitEvent` mutation.""" -input UpdateOrgLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitEvent` being updated. - """ - orgLimitEventPatch: OrgLimitEventPatch! -} - -""" -Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. -""" -input OrgLimitEventPatch { - createdAt: Datetime - - """Unique identifier for each limit event""" - id: UUID - - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """ - Resolved billable organization via get_organization_id; NULL for app-level events - """ - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our update `View` mutation.""" -type UpdateViewPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `View` that was updated by this mutation.""" - view: View - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `View`. May be used by Relay 1.""" - viewEdge( - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewEdge -} - -"""All input for the `updateView` mutation.""" -input UpdateViewInput { - """ - An arbitrary string value 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 `View` being updated. - """ - viewPatch: ViewPatch! -} - -"""Represents an update to a `View`. Fields that are set will be updated.""" -input ViewPatch { - id: UUID - databaseId: UUID - schemaId: UUID - name: String - tableId: UUID - viewType: String - data: JSON - filterType: String - filterData: JSON - securityInvoker: Boolean - isReadOnly: Boolean - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `WebauthnAuthModule` being updated. - """ - webauthnAuthModulePatch: WebauthnAuthModulePatch! -} - -""" -Represents an update to a `WebauthnAuthModule`. Fields that are set will be updated. -""" -input WebauthnAuthModulePatch { - 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 -} - -"""The output of our update `AppMembership` mutation.""" -type UpdateAppMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembership` that was updated by this mutation.""" - appMembership: AppMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge -} - -"""All input for the `updateAppMembership` mutation.""" -input UpdateAppMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppMembership` being updated. - """ - appMembershipPatch: AppMembershipPatch! -} - -""" -Represents an update to a `AppMembership`. Fields that are set will be updated. -""" -input AppMembershipPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - profileId: UUID -} - -"""The output of our update `User` mutation.""" -type UpdateUserPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `User` that was updated by this mutation.""" - user: User - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge -} - -"""All input for the `updateUser` mutation.""" -input UpdateUserInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `User` being updated. - """ - userPatch: UserPatch! -} - -"""Represents an update to a `User`. Fields that are set will be updated.""" -input UserPatch { - id: UUID - username: String - displayName: String - profilePicture: ConstructiveInternalTypeImage - type: Int - createdAt: Datetime - updatedAt: Datetime - - """File upload for the `profilePicture` field.""" - profilePictureUpload: Upload -} - -"""The output of our update `AppLimit` mutation.""" -type UpdateAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was updated by this mutation.""" - appLimit: AppLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} - -"""All input for the `updateAppLimit` mutation.""" -input UpdateAppLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppLimit` being updated. - """ - appLimitPatch: AppLimitPatch! -} - -""" -Represents an update to a `AppLimit`. Fields that are set will be updated. -""" -input AppLimitPatch { - id: UUID - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""The output of our update `App` mutation.""" -type UpdateAppPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `App` that was updated by this mutation.""" - app: App - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge -} - -"""All input for the `updateApp` mutation.""" -input UpdateAppInput { - """ - An arbitrary 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 app""" - id: UUID! - - """ - An object where the defined keys will be set on the `App` being updated. - """ - appPatch: AppPatch! -} - -"""Represents an update to a `App`. Fields that are set will be updated.""" -input AppPatch { - """Unique identifier for this app""" - id: UUID - - """Reference to the metaschema database this app belongs to""" - databaseId: UUID - - """Site this app is associated with (one app per site)""" - siteId: UUID - - """Display name of the app""" - name: String - - """App icon or promotional image""" - appImage: ConstructiveInternalTypeImage - - """URL to the Apple App Store listing""" - appStoreLink: ConstructiveInternalTypeUrl - - """Apple App Store application identifier""" - appStoreId: String - - """ - Apple App ID prefix (Team ID) for universal links and associated domains - """ - appIdPrefix: String - - """URL to the Google Play Store listing""" - playStoreLink: ConstructiveInternalTypeUrl - - """Upload for App icon or promotional image""" - appImageUpload: Upload -} - -"""The output of our update `Site` mutation.""" -type UpdateSitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Site` that was updated by this mutation.""" - site: Site - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Site`. May be used by Relay 1.""" - siteEdge( - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteEdge -} - -"""All input for the `updateSite` mutation.""" -input UpdateSiteInput { - """ - An arbitrary 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 site""" - id: UUID! - - """ - An object where the defined keys will be set on the `Site` being updated. - """ - sitePatch: SitePatch! -} - -"""Represents an update to a `Site`. Fields that are set will be updated.""" -input SitePatch { - """Unique identifier for this site""" - id: UUID - - """Reference to the metaschema database this site belongs to""" - databaseId: UUID - - """Display title for the site (max 120 characters)""" - title: String - - """Short description of the site (max 120 characters)""" - description: String - - """Open Graph image used for social media link previews""" - ogImage: ConstructiveInternalTypeImage - - """Browser favicon attachment""" - favicon: ConstructiveInternalTypeAttachment - - """Apple touch icon for iOS home screen bookmarks""" - appleTouchIcon: ConstructiveInternalTypeImage - - """Primary logo image for the site""" - logo: ConstructiveInternalTypeImage - - """PostgreSQL database name this site connects to""" - dbname: String - - """Upload for Open Graph image used for social media link previews""" - ogImageUpload: Upload - - """Upload for Browser favicon attachment""" - faviconUpload: Upload - - """Upload for Apple touch icon for iOS home screen bookmarks""" - appleTouchIconUpload: Upload - - """Upload for Primary logo image for the site""" - logoUpload: Upload -} - -"""The output of our update `DbUsageModule` mutation.""" -type UpdateDbUsageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DbUsageModule` that was updated by this mutation.""" - dbUsageModule: DbUsageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge -} - -"""All input for the `updateDbUsageModule` mutation.""" -input UpdateDbUsageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `DbUsageModule` being updated. - """ - dbUsageModulePatch: DbUsageModulePatch! -} - -""" -Represents an update to a `DbUsageModule`. Fields that are set will be updated. -""" -input DbUsageModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableStatsLogTableId: UUID - tableStatsLogTableName: String - tableStatsDailyTableId: UUID - tableStatsDailyTableName: String - queryStatsLogTableId: UUID - queryStatsLogTableName: String - queryStatsDailyTableId: UUID - queryStatsDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - prefix: String -} - -"""The output of our update `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - 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. -""" -input NamespaceModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - namespacesTableId: UUID - namespaceEventsTableId: UUID - namespacesTableName: String - namespaceEventsTableName: String - apiName: String - privateApiName: String - membershipType: Int - key: String - entityTableId: UUID - policies: JSON - provisions: JSON -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `NotificationsModule` being updated. - """ - notificationsModulePatch: NotificationsModulePatch! -} - -""" -Represents an update to a `NotificationsModule`. Fields that are set will be updated. -""" -input NotificationsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - notificationsTableId: UUID - readStateTableId: UUID - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - ownerTableId: UUID - userSettingsTableId: UUID - organizationSettingsTableId: UUID - hasChannels: Boolean - hasPreferences: Boolean - hasSettingsExtension: Boolean - hasDigestMetadata: Boolean - hasSubscriptions: Boolean -} - -"""The output of our update `PermissionsModule` mutation.""" -type UpdatePermissionsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PermissionsModule` that was updated by this mutation.""" - permissionsModule: PermissionsModule - - """ - 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 `updatePermissionsModule` mutation.""" -input UpdatePermissionsModuleInput { - """ - An arbitrary string value 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 `PermissionsModule` being updated. - """ - permissionsModulePatch: PermissionsModulePatch! -} - -""" -Represents an update to a `PermissionsModule`. Fields that are set will be updated. -""" -input PermissionsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - bitlen: Int - membershipType: Int - entityTableId: UUID - actorTableId: UUID - prefix: String - getPaddedMask: String - getMask: String - getByMask: String - getMaskByName: String -} - -"""The output of our update `WebauthnCredential` mutation.""" -type UpdateWebauthnCredentialPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `WebauthnCredential` that was updated by this mutation.""" - webauthnCredential: WebauthnCredential - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnCredential`. May be used by Relay 1.""" - webauthnCredentialEdge( - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialEdge -} - -"""All input for the `updateWebauthnCredential` mutation.""" -input UpdateWebauthnCredentialInput { - """ - An arbitrary string value 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 `WebauthnCredential` being updated. - """ - webauthnCredentialPatch: WebauthnCredentialPatch! -} - -""" -Represents an update to a `WebauthnCredential`. Fields that are set will be updated. -""" -input WebauthnCredentialPatch { - id: UUID - ownerId: UUID - - """ - Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. - """ - credentialId: String - - """COSE-encoded public key bytes from the authenticator attestation.""" - publicKey: Base64EncodedBinary - - """ - Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. - """ - signCount: BigInt - - """ - Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. - """ - webauthnUserId: String - - """ - Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. - """ - transports: [String] - - """ - Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. - """ - credentialDeviceType: String - - """ - Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. - """ - backupEligible: Boolean - - """Current backup state; updated on each successful sign-in assertion.""" - backupState: Boolean - - """ - User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. - """ - name: String - - """ - Timestamp of the most recent successful sign-in assertion using this credential. - """ - lastUsedAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `PrimaryKeyConstraint` mutation.""" -type UpdatePrimaryKeyConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PrimaryKeyConstraint` that was updated by this mutation.""" - primaryKeyConstraint: PrimaryKeyConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" - primaryKeyConstraintEdge( - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintEdge -} - -"""All input for the `updatePrimaryKeyConstraint` mutation.""" -input UpdatePrimaryKeyConstraintInput { - """ - An arbitrary string value 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 `PrimaryKeyConstraint` being updated. - """ - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch! -} - -""" -Represents an update to a `PrimaryKeyConstraint`. Fields that are set will be updated. -""" -input PrimaryKeyConstraintPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - type: String - fieldIds: [UUID] - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `Trigger` mutation.""" -type UpdateTriggerPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Trigger` that was updated by this mutation.""" - trigger: Trigger - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Trigger`. May be used by Relay 1.""" - triggerEdge( - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerEdge -} - -"""All input for the `updateTrigger` mutation.""" -input UpdateTriggerInput { - """ - An arbitrary string value 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 `Trigger` being updated. - """ - triggerPatch: TriggerPatch! -} - -""" -Represents an update to a `Trigger`. Fields that are set will be updated. -""" -input TriggerPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - event: String - functionName: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `CheckConstraint` mutation.""" -type UpdateCheckConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CheckConstraint` that was updated by this mutation.""" - checkConstraint: CheckConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CheckConstraint`. May be used by Relay 1.""" - checkConstraintEdge( - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): CheckConstraintEdge -} - -"""All input for the `updateCheckConstraint` mutation.""" -input UpdateCheckConstraintInput { - """ - An arbitrary string value 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 `CheckConstraint` being updated. - """ - checkConstraintPatch: CheckConstraintPatch! -} - -""" -Represents an update to a `CheckConstraint`. Fields that are set will be updated. -""" -input CheckConstraintPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - type: String - fieldIds: [UUID] - expr: JSON - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `UniqueConstraint` mutation.""" -type UpdateUniqueConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `UniqueConstraint` that was updated by this mutation.""" - uniqueConstraint: UniqueConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UniqueConstraint`. May be used by Relay 1.""" - uniqueConstraintEdge( - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): UniqueConstraintEdge -} - -"""All input for the `updateUniqueConstraint` mutation.""" -input UpdateUniqueConstraintInput { - """ - An arbitrary string value 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 `UniqueConstraint` being updated. - """ - uniqueConstraintPatch: UniqueConstraintPatch! -} - -""" -Represents an update to a `UniqueConstraint`. Fields that are set will be updated. -""" -input UniqueConstraintPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID] - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `SpatialRelation` mutation.""" -type UpdateSpatialRelationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SpatialRelation` that was updated by this mutation.""" - spatialRelation: SpatialRelation - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SpatialRelation`. May be used by Relay 1.""" - spatialRelationEdge( - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] - ): SpatialRelationEdge -} - -"""All input for the `updateSpatialRelation` mutation.""" -input UpdateSpatialRelationInput { - """ - An arbitrary string value 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 `SpatialRelation` being updated. - """ - spatialRelationPatch: SpatialRelationPatch! -} - -""" -Represents an update to a `SpatialRelation`. Fields that are set will be updated. -""" -input SpatialRelationPatch { - id: UUID - databaseId: UUID - tableId: UUID - fieldId: UUID - refTableId: UUID - refFieldId: UUID - name: String - operator: String - paramName: String - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `Policy` mutation.""" -type UpdatePolicyPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Policy` that was updated by this mutation.""" - policy: Policy - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Policy`. May be used by Relay 1.""" - policyEdge( - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] - ): PolicyEdge -} - -"""All input for the `updatePolicy` mutation.""" -input UpdatePolicyInput { - """ - An arbitrary string value 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 `Policy` being updated. - """ - policyPatch: PolicyPatch! -} - -""" -Represents an update to a `Policy`. Fields that are set will be updated. -""" -input PolicyPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - granteeName: String - privilege: String - permissive: Boolean - disabled: Boolean - policyType: String - data: JSON - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgLimitAggregate` mutation.""" -type UpdateOrgLimitAggregatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitAggregate` that was updated by this mutation.""" - orgLimitAggregate: OrgLimitAggregate - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge -} - -"""All input for the `updateOrgLimitAggregate` mutation.""" -input UpdateOrgLimitAggregateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimitAggregate` being updated. - """ - orgLimitAggregatePatch: OrgLimitAggregatePatch! -} - -""" -Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. -""" -input OrgLimitAggregatePatch { - id: UUID - - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID - - """Current aggregate usage count for this entity and limit""" - num: BigInt - - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt - - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - - """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. - """ - reserved: BigInt - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""The output of our update `OrgLimit` mutation.""" -type UpdateOrgLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimit` that was updated by this mutation.""" - orgLimit: OrgLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge -} - -"""All input for the `updateOrgLimit` mutation.""" -input UpdateOrgLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgLimit` being updated. - """ - orgLimitPatch: OrgLimitPatch! -} - -""" -Represents an update to a `OrgLimit`. Fields that are set will be updated. -""" -input OrgLimitPatch { - id: UUID - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: IntervalInput - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID - - """Resolved billable organization via get_organization_id""" - organizationId: UUID - - """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" - entityType: String -} - -"""The output of our update `WebauthnSetting` mutation.""" -type UpdateWebauthnSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `WebauthnSetting` that was updated by this mutation.""" - webauthnSetting: WebauthnSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnSetting`. May be used by Relay 1.""" - webauthnSettingEdge( - """The method to use when ordering `WebauthnSetting`.""" - orderBy: [WebauthnSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnSettingEdge -} - -"""All input for the `updateWebauthnSetting` mutation.""" -input UpdateWebauthnSettingInput { - """ - An arbitrary 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 WebAuthn settings record""" - id: UUID! - - """ - An object where the defined keys will be set on the `WebauthnSetting` being updated. - """ - webauthnSettingPatch: WebauthnSettingPatch! -} - -""" -Represents an update to a `WebauthnSetting`. Fields that are set will be updated. -""" -input WebauthnSettingPatch { - """Unique identifier for this WebAuthn settings record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """ - Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) - """ - schemaId: UUID - - """ - Schema of the webauthn_credentials table (FK to metaschema_public.schema) - """ - credentialsSchemaId: UUID - - """Schema of the sessions table (FK to metaschema_public.schema)""" - sessionsSchemaId: UUID - - """Schema of the session_secrets table (FK to metaschema_public.schema)""" - sessionSecretsSchemaId: UUID - - """ - Reference to the webauthn_credentials table (FK to metaschema_public.table) - """ - credentialsTableId: UUID - - """Reference to the sessions table (FK to metaschema_public.table)""" - sessionsTableId: UUID - - """ - Reference to the session_credentials table (FK to metaschema_public.table) - """ - sessionCredentialsTableId: UUID - - """Reference to the session_secrets table (FK to metaschema_public.table)""" - sessionSecretsTableId: UUID - - """ - Reference to the user field on webauthn_credentials (FK to metaschema_public.field) - """ - userFieldId: UUID - - """WebAuthn Relying Party ID (typically the domain name)""" - rpId: String - - """WebAuthn Relying Party display name""" - rpName: String - - """Allowed origins for WebAuthn registration and authentication""" - originAllowlist: [String] - - """Attestation conveyance preference (none, indirect, direct, enterprise)""" - attestationType: String - - """Whether to require user verification (biometric/PIN) during auth""" - requireUserVerification: Boolean - - """Resident key requirement (discouraged, preferred, required)""" - residentKey: String - - """Challenge TTL in seconds (default 300 = 5 minutes)""" - challengeExpirySeconds: BigInt -} - -"""The output of our update `BillingModule` mutation.""" -type UpdateBillingModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingModule` that was updated by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the `updateBillingModule` mutation.""" -input UpdateBillingModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `BillingModule` being updated. - """ - billingModulePatch: BillingModulePatch! -} - -""" -Represents an update to a `BillingModule`. Fields that are set will be updated. -""" -input BillingModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - meterCreditsTableId: UUID - meterCreditsTableName: String - meterSourcesTableId: UUID - meterSourcesTableName: String - recordUsageFunction: String - prefix: String -} - -"""The output of our update `OrgMembership` mutation.""" -type UpdateOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was updated by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `updateOrgMembership` mutation.""" -input UpdateOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgMembership` being updated. - """ - orgMembershipPatch: OrgMembershipPatch! -} - -""" -Represents an update to a `OrgMembership`. Fields that are set will be updated. -""" -input OrgMembershipPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - - """References the entity (org or group) this membership belongs to""" - entityId: UUID - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID -} - -"""The output of our update `Schema` mutation.""" -type UpdateSchemaPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Schema` that was updated by this mutation.""" - schema: Schema - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Schema`. May be used by Relay 1.""" - schemaEdge( - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaEdge -} - -"""All input for the `updateSchema` mutation.""" -input UpdateSchemaInput { - """ - An arbitrary string value 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 `Schema` being updated. - """ - schemaPatch: SchemaPatch! -} - -""" -Represents an update to a `Schema`. Fields that are set will be updated. -""" -input SchemaPatch { - id: UUID - databaseId: UUID - name: String - schemaName: String - label: String - description: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - isPublic: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `Index` mutation.""" -type UpdateIndexPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Index` that was updated by this mutation.""" - index: Index - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Index`. May be used by Relay 1.""" - indexEdge( - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] - ): IndexEdge -} - -"""All input for the `updateIndex` mutation.""" -input UpdateIndexInput { - """ - An arbitrary string value 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 `Index` being updated. - """ - indexPatch: IndexPatch! -} - -""" -Represents an update to a `Index`. Fields that are set will be updated. -""" -input IndexPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - fieldIds: [UUID] - includeFieldIds: [UUID] - accessMethod: String - indexParams: JSON - whereClause: JSON - isUnique: Boolean - options: JSON - opClasses: [String] - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `GraphModule` being updated. - """ - graphModulePatch: GraphModulePatch! -} - -""" -Represents an update to a `GraphModule`. Fields that are set will be updated. -""" -input GraphModulePatch { - id: UUID - databaseId: UUID - publicSchemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - prefix: String - merkleStoreModuleId: UUID - graphsTableId: UUID - executionsTableId: UUID - outputsTableId: UUID - apiName: String - privateApiName: String - scopeField: String - membershipType: Int - entityTableId: UUID - policies: JSON - provisions: JSON - createdAt: Datetime -} - -"""The output of our update `AppInvite` mutation.""" -type UpdateAppInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge -} - -"""All input for the `updateAppInvite` mutation.""" -input UpdateAppInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppInvite` being updated. - """ - appInvitePatch: AppInvitePatch! -} - -""" -Represents an update to a `AppInvite`. Fields that are set will be updated. -""" -input AppInvitePatch { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `BillingProviderModule` being updated. - """ - billingProviderModulePatch: BillingProviderModulePatch! -} - -""" -Represents an update to a `BillingProviderModule`. Fields that are set will be updated. -""" -input BillingProviderModulePatch { - 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 -} - -"""The output of our update `BlueprintTemplate` mutation.""" -type UpdateBlueprintTemplatePayload { - """ - The exact 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 updated 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 `updateBlueprintTemplate` mutation.""" -input UpdateBlueprintTemplateInput { - """ - An arbitrary 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! - - """ - An object where the defined keys will be set on the `BlueprintTemplate` being updated. - """ - blueprintTemplatePatch: BlueprintTemplatePatch! -} - -""" -Represents an update to a `BlueprintTemplate`. Fields that are set will be updated. -""" -input BlueprintTemplatePatch { - """Unique identifier for this template.""" - id: UUID - - """ - Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. - """ - name: String - - """Semantic version string. Defaults to 1.0.0.""" - version: String - - """Human-readable display name for the template (e.g. E-Commerce Basic).""" - displayName: String - - """Optional description of what the template provisions.""" - description: String - - """The user who created or published this template.""" - ownerId: UUID - - """ - Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. - """ - visibility: String - - """ - Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. - """ - categories: [String] - - """ - Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. - """ - tags: [String] - - """ - The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. - """ - definition: JSON - - """ - Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. - """ - definitionSchemaVersion: String - - """ - Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. - """ - source: String - - """ - Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. - """ - complexity: String - - """ - Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. - """ - copyCount: Int - - """ - Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. - """ - forkCount: Int - - """ - If this template was forked from another template, the ID of the parent. NULL for original templates. - """ - 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. - """ - 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 `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `HierarchyModule` being updated. - """ - hierarchyModulePatch: HierarchyModulePatch! -} - -""" -Represents an update to a `HierarchyModule`. Fields that are set will be updated. -""" -input HierarchyModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - chartEdgesTableId: UUID - chartEdgesTableName: String - hierarchySprtTableId: UUID - hierarchySprtTableName: String - chartEdgeGrantsTableId: UUID - chartEdgeGrantsTableName: String - entityTableId: UUID - usersTableId: UUID - prefix: String - privateSchemaName: String - sprtTableName: String - rebuildHierarchyFunction: String - getSubordinatesFunction: String - getManagersFunction: String - isManagerOfFunction: String - createdAt: 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 - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String - profileGrantsTableId: UUID - profileGrantsTableName: String - profileDefinitionGrantsTableId: UUID - profileDefinitionGrantsTableName: String - profileTemplatesTableId: UUID - profileTemplatesTableName: String - membershipType: Int - entityTableId: UUID - actorTableId: UUID - permissionsTableId: UUID - membershipsTableId: UUID - prefix: String -} - -"""The output of our update `EmbeddingChunk` mutation.""" -type UpdateEmbeddingChunkPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EmbeddingChunk` that was updated by this mutation.""" - embeddingChunk: EmbeddingChunk - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" - embeddingChunkEdge( - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmbeddingChunkEdge -} - -"""All input for the `updateEmbeddingChunk` mutation.""" -input UpdateEmbeddingChunkInput { - """ - An arbitrary string value 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 `EmbeddingChunk` being updated. - """ - embeddingChunkPatch: EmbeddingChunkPatch! -} - -""" -Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. -""" -input EmbeddingChunkPatch { - id: UUID - databaseId: UUID - tableId: UUID - embeddingFieldId: UUID - chunksTableId: UUID - chunksTableName: String - contentFieldName: String - dimensions: Int - metric: String - chunkSize: Int - chunkOverlap: Int - chunkStrategy: String - metadataFields: JSON - searchIndexes: JSON - enqueueChunkingJob: Boolean - chunkingTaskName: String - embeddingModel: String - embeddingProvider: String - parentFkFieldId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `ForeignKeyConstraint` mutation.""" -type UpdateForeignKeyConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ForeignKeyConstraint` that was updated by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" - foreignKeyConstraintEdge( - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintEdge -} - -"""All input for the `updateForeignKeyConstraint` mutation.""" -input UpdateForeignKeyConstraintInput { - """ - An arbitrary string value 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 `ForeignKeyConstraint` being updated. - """ - foreignKeyConstraintPatch: ForeignKeyConstraintPatch! -} - -""" -Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. -""" -input ForeignKeyConstraintPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID] - refTableId: UUID - refFieldIds: [UUID] - deleteAction: String - updateAction: String - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgInvite` mutation.""" -type UpdateOrgInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgInvite` that was updated by this mutation.""" - orgInvite: OrgInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge -} - -"""All input for the `updateOrgInvite` mutation.""" -input UpdateOrgInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgInvite` being updated. - """ - orgInvitePatch: OrgInvitePatch! -} - -""" -Represents an update to a `OrgInvite`. Fields that are set will be updated. -""" -input OrgInvitePatch { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. - """ - profileId: UUID - - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime - entityId: UUID -} - -"""The output of our update `AgentModule` mutation.""" -type UpdateAgentModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AgentModule` that was updated by this mutation.""" - agentModule: AgentModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentModule`. May be used by Relay 1.""" - agentModuleEdge( - """The method to use when ordering `AgentModule`.""" - orderBy: [AgentModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentModuleEdge -} - -"""All input for the `updateAgentModule` mutation.""" -input UpdateAgentModuleInput { - """ - An arbitrary string value 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 `AgentModule` being updated. - """ - agentModulePatch: AgentModulePatch! -} - -""" -Represents an update to a `AgentModule`. Fields that are set will be updated. -""" -input AgentModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - threadTableId: UUID - messageTableId: UUID - taskTableId: UUID - promptsTableId: UUID - knowledgeTableId: UUID - threadTableName: String - messageTableName: String - taskTableName: String - promptsTableName: String - knowledgeTableName: String - hasKnowledge: Boolean - apiName: String - membershipType: Int - key: String - entityTableId: UUID - policies: JSON - knowledgeConfig: JSON - knowledgePolicies: JSON - provisions: JSON -} - -"""The output of our update `RelationProvision` mutation.""" -type UpdateRelationProvisionPayload { - """ - The exact 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 updated 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 `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 `updateRelationProvision` mutation.""" -input UpdateRelationProvisionInput { - """ - An arbitrary 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! - - """ - An object where the defined keys will be set on the `RelationProvision` being updated. - """ - relationProvisionPatch: RelationProvisionPatch! -} - -""" -Represents an update to a `RelationProvision`. Fields that are set will be updated. -""" -input RelationProvisionPatch { - """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 -} - -"""The output of our update `UserAuthModule` mutation.""" -type UpdateUserAuthModulePayload { - """ - The exact 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 updated 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 `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 `updateUserAuthModule` mutation.""" -input UpdateUserAuthModuleInput { - """ - An arbitrary string value 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 `UserAuthModule` being updated. - """ - userAuthModulePatch: UserAuthModulePatch! -} - -""" -Represents an update to a `UserAuthModule`. Fields that are set will be updated. -""" -input UserAuthModulePatch { - 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 -} - -"""The output of our update `Field` mutation.""" -type UpdateFieldPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Field` that was updated by this mutation.""" - field: Field - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Field`. May be used by Relay 1.""" - fieldEdge( - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): FieldEdge -} - -"""All input for the `updateField` mutation.""" -input UpdateFieldInput { - """ - An arbitrary string value 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 `Field` being updated. - """ - fieldPatch: FieldPatch! -} - -""" -Represents an update to a `Field`. Fields that are set will be updated. -""" -input FieldPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - label: String - description: String - smartTags: JSON - isRequired: Boolean - apiRequired: Boolean - defaultValue: JSON - type: JSON - fieldOrder: Int - regexp: String - chk: JSON - chkExpr: JSON - min: Float - max: Float - tags: [String] - category: ObjectCategory - module: String - scope: Int - 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 - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - definitionsTableId: UUID - invocationsTableId: UUID - executionLogsTableId: UUID - secretDefinitionsTableId: UUID - requirementsTableId: UUID - configDefinitionsTableId: UUID - configRequirementsTableId: UUID - definitionsTableName: String - invocationsTableName: String - executionLogsTableName: String - secretDefinitionsTableName: String - requirementsTableName: String - configRequirementsTableName: String - apiName: String - privateApiName: String - membershipType: Int - prefix: String - key: String - entityTableId: UUID - policies: JSON - provisions: JSON -} - -"""The output of our update `Table` mutation.""" -type UpdateTablePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Table` that was updated by this mutation.""" - table: Table - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Table`. May be used by Relay 1.""" - tableEdge( - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableEdge -} - -"""All input for the `updateTable` mutation.""" -input UpdateTableInput { - """ - An arbitrary string value 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 `Table` being updated. - """ - tablePatch: TablePatch! -} - -""" -Represents an update to a `Table`. Fields that are set will be updated. -""" -input TablePatch { - id: UUID - databaseId: UUID - schemaId: UUID - name: String - label: String - description: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - useRls: Boolean - timestamps: Boolean - peoplestamps: Boolean - pluralName: String - singularName: String - tags: [String] - partitioned: Boolean - partitionStrategy: String - partitionKeyNames: [String] - partitionKeyTypes: [String] - inheritsId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `LimitsModule` mutation.""" -type UpdateLimitsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `LimitsModule` that was updated by this mutation.""" - limitsModule: LimitsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `LimitsModule`. May be used by Relay 1.""" - limitsModuleEdge( - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): LimitsModuleEdge -} - -"""All input for the `updateLimitsModule` mutation.""" -input UpdateLimitsModuleInput { - """ - An arbitrary string value 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 `LimitsModule` being updated. - """ - limitsModulePatch: LimitsModulePatch! -} - -""" -Represents an update to a `LimitsModule`. Fields that are set will be updated. -""" -input LimitsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - 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 - prefix: String - membershipType: Int - entityTableId: UUID - actorTableId: UUID -} - -"""The output of our update `StorageModule` mutation.""" -type UpdateStorageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageModule` that was updated by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the `updateStorageModule` mutation.""" -input UpdateStorageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `StorageModule` being updated. - """ - storageModulePatch: StorageModulePatch! -} - -""" -Represents an update to a `StorageModule`. Fields that are set will be updated. -""" -input StorageModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String - membershipType: Int - key: String - policies: JSON - provisions: JSON - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID -} - -"""The output of our update `MembershipsModule` mutation.""" -type UpdateMembershipsModulePayload { - """ - The exact 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 - 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 - membershipType: Int - entityTableId: UUID - entityTableOwnerId: UUID - prefix: String - getOrgFn: String - actorMaskCheck: String - actorPermCheck: String - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID -} - -"""The output of our update `EventsModule` mutation.""" -type UpdateEventsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EventsModule` that was updated by this mutation.""" - eventsModule: EventsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EventsModule`. May be used by Relay 1.""" - eventsModuleEdge( - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EventsModuleEdge -} - -"""All input for the `updateEventsModule` mutation.""" -input UpdateEventsModuleInput { - """ - An arbitrary string value 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 `EventsModule` being updated. - """ - eventsModulePatch: EventsModulePatch! -} - -""" -Represents an update to a `EventsModule`. Fields that are set will be updated. -""" -input EventsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - eventsTableId: UUID - eventsTableName: String - eventAggregatesTableId: UUID - eventAggregatesTableName: String - eventTypesTableId: UUID - eventTypesTableName: String - levelsTableId: UUID - levelsTableName: String - levelRequirementsTableId: UUID - levelRequirementsTableName: String - levelGrantsTableId: UUID - levelGrantsTableName: String - achievementRewardsTableId: UUID - 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: Int - prefix: String - membershipType: Int - entityTableId: UUID - actorTableId: UUID -} - -"""The output of our update `EntityTypeProvision` mutation.""" -type UpdateEntityTypeProvisionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EntityTypeProvision` that was updated by this mutation.""" - entityTypeProvision: EntityTypeProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" - entityTypeProvisionEdge( - """The method to use when ordering `EntityTypeProvision`.""" - orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): EntityTypeProvisionEdge -} - -"""All input for the `updateEntityTypeProvision` mutation.""" -input UpdateEntityTypeProvisionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this provision row.""" - id: UUID! - - """ - An object where the defined keys will be set on the `EntityTypeProvision` being updated. - """ - entityTypeProvisionPatch: EntityTypeProvisionPatch! -} - -""" -Represents an update to a `EntityTypeProvision`. Fields that are set will be updated. -""" -input EntityTypeProvisionPatch { - """Unique identifier for this provision row.""" - id: UUID - - """The database to provision this entity type in. Required.""" - databaseId: UUID - - """ - Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - Stored in the entity_types registry table. - """ - name: String - - """ - SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - and membership table names (prefix_memberships, prefix_members, etc.). - Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - """ - prefix: String - - """ - Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. - """ - description: String - - """ - Prefix of the parent entity type. The trigger resolves this to a membership_type integer - by looking up memberships_module WHERE prefix = parent_entity. - Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - (e.g. 'data_room' for a team_channel nested under data_room). - The parent type must already be provisioned before this INSERT. - """ - parentEntity: String - - """ - Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - (e.g. prefix 'data_room' produces table 'data_rooms'). - Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - """ - tableName: String - - """ - Whether members of the parent entity can see child entities. Defaults to true. - When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - When false: only direct members of the entity itself can see it (private entity mode). - Controls whether the parent_member SELECT policy is created on the entity table. - Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - skip_entity_policies=true, since no default policies are being applied in those cases. - """ - isVisible: Boolean - - """ - Whether to apply limits_module security for this type. Defaults to false. - The limits_module table structure is always created (memberships_module requires it), - but when false, no RLS policies are applied to the limits tables. - Set to true if this entity type needs configurable resource limits per membership. - """ - hasLimits: Boolean - - """ - Whether to provision profiles_module for this type. Defaults to false. - Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - When true, creates profile tables and applies profiles security. - """ - hasProfiles: Boolean - - """ - Whether to provision events_module for this type. Defaults to false. - Levels provide gamification/achievement tracking for members. - When true, creates level steps, achievements, and level tables with security. - """ - hasLevels: Boolean - - """ - Whether to provision invites_module for this type. Defaults to false. - When true, the trigger inserts a row into invites_module which in turn - (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - repeated INSERTs safe. - """ - hasInvites: Boolean - - """ - Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - When true, the trigger calls event_tracker() on the claimed_invites table with - event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - crediting the SENDER (inviter) when someone claims their invite code. - Developers can then define achievements in the blueprint achievements[] section - that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - """ - hasInviteAchievements: Boolean - - """ - Optional JSON array of storage module definitions. Presence triggers provisioning - (same inference model as namespaces, functions, agents). - Each element provisions a separate storage module with its own tables - ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - NULL = do not provision storage. '[{}]' = provision one default storage module. - Each array element recognizes (all optional): - - key (text) module discriminator, max 16 chars, lowercase snake_case. - Defaults to 'default' (omitted from table names). - Non-default keys become infixes: {prefix}_{key}_buckets. - (storage_key accepted for backward compat) - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this module - - allowed_origins (text[]) default CORS origins for all buckets in this module - - restrict_reads (boolean) require read_files permission for SELECT on files - - has_path_shares (boolean) enable virtual filesystem + path share policies - - has_versioning (boolean) enable file version chains - - has_content_hash (boolean) enable content hash for dedup - - has_custom_keys (boolean) allow client-provided S3 keys - - has_audit_log (boolean) enable file events audit table - - has_confirm_upload (boolean) enable HeadObject confirmation flow - - confirm_upload_delay (interval) delay before first confirmation attempt - - buckets (jsonb[]) array of initial bucket definitions to seed. - Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - Each value: { nodes, fields, grants, use_rls, policies }. - Example (single module, backward compat): - storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - Example (multi-module): - storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - """ - storage: JSON - - """ - Optional JSON array of namespace module definitions. Presence triggers provisioning. - NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - Registers manage_namespaces permission bit on first provision. - Example: namespaces := '[{}]'::jsonb - """ - namespaces: JSON - - """ - Optional JSON array of function module definitions. Presence triggers provisioning. - NULL = do not provision functions. '[{}]' = provision one default function module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - with entity-scoped RLS and a job trigger dispatching function:provision tasks. - Registers manage_functions + invoke_functions permission bits on first provision. - Example: functions := '[{}]'::jsonb - """ - functions: JSON - - """ - Optional JSON array of graph module definitions. Presence triggers provisioning. - NULL = do not provision graphs. '[{}]' = provision one default graph module. - Each element recognizes (all optional): - - key (text) module discriminator. Defaults to 'default'. - - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - Registers manage_graphs + execute_graphs permission bits on first provision. - Graph module requires a merkle_store_module_id dependency, so entity_type_provision - only registers permissions here. The graph module itself must be provisioned - separately with the merkle store dependency resolved. - Example: graphs := '[{}]'::jsonb - """ - graphs: JSON - agents: JSON - - """ - Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - Use this only when you want the entity table provisioned with zero policies (e.g. because you - plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - false and either accepting the five defaults (table_provision=NULL) or overriding them via - table_provision. - Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - - SELECT (self_member): direct members of the entity can see it - - INSERT: create_entity permission on the parent entity - - UPDATE: admin_entity permission on the entity itself - - DELETE: owner of the entity can delete it - """ - skipEntityPolicies: Boolean - - """ - Single jsonb object describing the full security setup to apply to the entity table. - Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - entries, so an entity table is configured the same way an ordinary blueprint table is. - Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - table_provision.policies[] (is_visible becomes a no-op on this path). - Recognized keys (all optional): - - use_rls (boolean, default true) - - nodes (jsonb array of {"$type","data"} Data* module entries) - - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - - grants (jsonb array of grant objects; each with roles[] and privileges[]) - - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - against the newly created entity table. - Example — override with two SELECT policies: - table_provision := jsonb_build_object( - 'policies', jsonb_build_array( - jsonb_build_object( - '$type', 'AuthzEntityMembership', - 'privileges', jsonb_build_array('select'), - 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - 'name', 'self_member' - ), - jsonb_build_object( - '$type', 'AuthzDirectOwner', - 'privileges', jsonb_build_array('select', 'update'), - 'data', jsonb_build_object('owner_field', 'owner_id') - ) - ) - ) - """ - tableProvision: JSON - - """ - Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - This is the ID used in entity_types, memberships_module, and all module tables. - """ - outMembershipType: Int - - """ - Output: the UUID of the created entity table. Populated by the trigger. - Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - """ - outEntityTableId: UUID - - """ - Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. - """ - outEntityTableName: String - - """ - Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - Populated by the trigger. Useful for verifying which modules were provisioned. - """ - outInstalledModules: [String] - - """ - Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. - """ - outStorageModuleId: UUID - - """ - Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. - """ - outBucketsTableId: UUID - - """ - Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. - """ - outFilesTableId: UUID - outPathSharesTableId: UUID - - """ - Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - (i.e. the invites_module row was created in a previous run). - """ - outInvitesModuleId: UUID - - """ - Output: the UUID of the namespace_module row created (or found) for this entity type. - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespaceModuleId: UUID - - """ - Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespacesTableId: UUID - - """ - Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespaceEventsTableId: UUID - outFunctionModuleId: UUID - outDefinitionsTableId: UUID - outInvocationsTableId: UUID - outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID - outRequirementsTableId: UUID - outConfigRequirementsTableId: UUID - outGraphModuleId: UUID - outGraphsTableId: UUID - outAgentModuleId: UUID -} - -"""The output of our delete `DefaultIdsModule` mutation.""" -type DeleteDefaultIdsModulePayload { - """ - The exact 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 deleted 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 `deleteDefaultIdsModule` mutation.""" -input DeleteDefaultIdsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCreditRedemption` mutation.""" -type DeleteAppLimitCreditRedemptionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditRedemption` that was deleted by this mutation.""" - appLimitCreditRedemption: AppLimitCreditRedemption - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" - appLimitCreditRedemptionEdge( - """The method to use when ordering `AppLimitCreditRedemption`.""" - orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditRedemptionEdge -} - -"""All input for the `deleteAppLimitCreditRedemption` mutation.""" -input DeleteAppLimitCreditRedemptionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Function` mutation.""" -type DeleteFunctionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Function` that was deleted by this mutation.""" - function: Function - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Function`. May be used by Relay 1.""" - functionEdge( - """The method to use when ordering `Function`.""" - orderBy: [FunctionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionEdge -} - -"""All input for the `deleteFunction` mutation.""" -input DeleteFunctionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ViewTable` mutation.""" -type DeleteViewTablePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewTable` that was deleted by this mutation.""" - viewTable: ViewTable - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewTable`. May be used by Relay 1.""" - viewTableEdge( - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewTableEdge -} - -"""All input for the `deleteViewTable` mutation.""" -input DeleteViewTableInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ApiSchema` mutation.""" -type DeleteApiSchemaPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiSchema` that was deleted by this mutation.""" - apiSchema: ApiSchema - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSchema`. May be used by Relay 1.""" - apiSchemaEdge( - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSchemaEdge -} - -"""All input for the `deleteApiSchema` mutation.""" -input DeleteApiSchemaInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API-schema mapping""" - id: UUID! -} - -"""The output of our delete `SiteTheme` mutation.""" -type DeleteSiteThemePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteTheme` that was deleted by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the `deleteSiteTheme` mutation.""" -input DeleteSiteThemeInput { - """ - An arbitrary 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 theme record""" - id: UUID! -} - -"""The output of our delete `OrgMember` mutation.""" -type DeleteOrgMemberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMember` that was deleted by this mutation.""" - orgMember: OrgMember - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMember`. May be used by Relay 1.""" - orgMemberEdge( - """The method to use when ordering `OrgMember`.""" - orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberEdge -} - -"""All input for the `deleteOrgMember` mutation.""" -input DeleteOrgMemberInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `CorsSetting` mutation.""" -type DeleteCorsSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CorsSetting` that was deleted by this mutation.""" - corsSetting: CorsSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CorsSetting`. May be used by Relay 1.""" - corsSettingEdge( - """The method to use when ordering `CorsSetting`.""" - orderBy: [CorsSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): CorsSettingEdge -} - -"""All input for the `deleteCorsSetting` mutation.""" -input DeleteCorsSettingInput { - """ - An arbitrary 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 CORS settings record""" - id: UUID! -} - -"""The output of our delete `ConfigSecretsOrgModule` mutation.""" -type DeleteConfigSecretsOrgModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ConfigSecretsOrgModule` that was deleted by this mutation.""" - configSecretsOrgModule: ConfigSecretsOrgModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" - configSecretsOrgModuleEdge( - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleEdge -} - -"""All input for the `deleteConfigSecretsOrgModule` mutation.""" -input DeleteConfigSecretsOrgModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `MembershipTypesModule` mutation.""" -type DeleteMembershipTypesModulePayload { - """ - The exact 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 deleted 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 `deleteMembershipTypesModule` mutation.""" -input DeleteMembershipTypesModuleInput { - """ - An arbitrary string value with no semantic meaning. Will 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 `AppPermissionDefault` mutation.""" -type DeleteAppPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermissionDefault` that was deleted by this mutation.""" - appPermissionDefault: AppPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge -} - -"""All input for the `deleteAppPermissionDefault` mutation.""" -input DeleteAppPermissionDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ApiModule` mutation.""" -type DeleteApiModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiModule` that was deleted by this mutation.""" - apiModule: ApiModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiModule`. May be used by Relay 1.""" - apiModuleEdge( - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiModuleEdge -} - -"""All input for the `deleteApiModule` mutation.""" -input DeleteApiModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API module record""" - id: UUID! -} - -"""The output of our delete `SiteModule` mutation.""" -type DeleteSiteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteModule` that was deleted by this mutation.""" - siteModule: SiteModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteModule`. May be used by Relay 1.""" - siteModuleEdge( - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteModuleEdge -} - -"""All input for the `deleteSiteModule` mutation.""" -input DeleteSiteModuleInput { - """ - An arbitrary 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 site module record""" - id: UUID! -} - -"""The output of our delete `RoleType` mutation.""" -type DeleteRoleTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RoleType` that was deleted by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the `deleteRoleType` mutation.""" -input DeleteRoleTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: Int! -} - -"""The output of our delete `SchemaGrant` mutation.""" -type DeleteSchemaGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SchemaGrant` that was deleted by this mutation.""" - schemaGrant: SchemaGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SchemaGrant`. May be used by Relay 1.""" - schemaGrantEdge( - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaGrantEdge -} - -"""All input for the `deleteSchemaGrant` mutation.""" -input DeleteSchemaGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `TriggerFunction` mutation.""" -type DeleteTriggerFunctionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TriggerFunction` that was deleted by this mutation.""" - triggerFunction: TriggerFunction - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TriggerFunction`. May be used by Relay 1.""" - triggerFunctionEdge( - """The method to use when ordering `TriggerFunction`.""" - orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerFunctionEdge -} - -"""All input for the `deleteTriggerFunction` mutation.""" -input DeleteTriggerFunctionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ViewRule` mutation.""" -type DeleteViewRulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewRule` that was deleted by this mutation.""" - viewRule: ViewRule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewRule`. May be used by Relay 1.""" - viewRuleEdge( - """The method to use when ordering `ViewRule`.""" - orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewRuleEdge -} - -"""All input for the `deleteViewRule` mutation.""" -input DeleteViewRuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ConfigSecretsUserModule` mutation.""" -type DeleteConfigSecretsUserModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `AppAdminGrant` mutation.""" -type DeleteAppAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppAdminGrant` that was deleted by this mutation.""" - appAdminGrant: AppAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge -} - -"""All input for the `deleteAppAdminGrant` mutation.""" -input DeleteAppAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppOwnerGrant` mutation.""" -type DeleteAppOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppOwnerGrant` that was deleted by this mutation.""" - appOwnerGrant: AppOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge -} - -"""All input for the `deleteAppOwnerGrant` mutation.""" -input DeleteAppOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgPermissionDefault` mutation.""" -type DeleteOrgPermissionDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermissionDefault` that was deleted by this mutation.""" - orgPermissionDefault: OrgPermissionDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge -} - -"""All input for the `deleteOrgPermissionDefault` mutation.""" -input DeleteOrgPermissionDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `DefaultPrivilege` mutation.""" -type DeleteDefaultPrivilegePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DefaultPrivilege` that was deleted by this mutation.""" - defaultPrivilege: DefaultPrivilege - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DefaultPrivilege`. May be used by Relay 1.""" - defaultPrivilegeEdge( - """The method to use when ordering `DefaultPrivilege`.""" - orderBy: [DefaultPrivilegeOrderBy!]! = [PRIMARY_KEY_ASC] - ): DefaultPrivilegeEdge -} - -"""All input for the `deleteDefaultPrivilege` mutation.""" -input DeleteDefaultPrivilegeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ViewGrant` mutation.""" -type DeleteViewGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ViewGrant` that was deleted by this mutation.""" - viewGrant: ViewGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewGrant`. May be used by Relay 1.""" - viewGrantEdge( - """The method to use when ordering `ViewGrant`.""" - orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewGrantEdge -} - -"""All input for the `deleteViewGrant` mutation.""" -input DeleteViewGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Api` mutation.""" -type DeleteApiPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Api` that was deleted by this mutation.""" - api: Api - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Api`. May be used by Relay 1.""" - apiEdge( - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiEdge -} - -"""All input for the `deleteApi` mutation.""" -input DeleteApiInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API""" - 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 `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 `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge -} - -"""All input for the `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgAdminGrant` mutation.""" -type DeleteOrgAdminGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgAdminGrant` that was deleted by this mutation.""" - orgAdminGrant: OrgAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge -} - -"""All input for the `deleteOrgAdminGrant` mutation.""" -input DeleteOrgAdminGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} - -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgOwnerGrant` mutation.""" -type DeleteOrgOwnerGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgOwnerGrant` that was deleted by this mutation.""" - orgOwnerGrant: OrgOwnerGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge -} - -"""All input for the `deleteOrgOwnerGrant` mutation.""" -input DeleteOrgOwnerGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `NodeTypeRegistry` mutation.""" -type DeleteNodeTypeRegistryPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NodeTypeRegistry` that was deleted by this mutation.""" - nodeTypeRegistry: NodeTypeRegistry - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" - nodeTypeRegistryEdge( - """The method to use when ordering `NodeTypeRegistry`.""" - orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] - ): NodeTypeRegistryEdge -} - -"""All input for the `deleteNodeTypeRegistry` mutation.""" -input DeleteNodeTypeRegistryInput { - """ - An arbitrary 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! -} - -"""The output of our delete `AppLimitCapsDefault` mutation.""" -type DeleteAppLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCapsDefault` that was deleted by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the `deleteAppLimitCapsDefault` mutation.""" -input DeleteAppLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitCapsDefault` mutation.""" -type DeleteOrgLimitCapsDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCapsDefault` that was deleted by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the `deleteOrgLimitCapsDefault` mutation.""" -input DeleteOrgLimitCapsDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCap` mutation.""" -type DeleteAppLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCap` that was deleted by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the `deleteAppLimitCap` mutation.""" -input DeleteAppLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitCap` mutation.""" -type DeleteOrgLimitCapPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCap` that was deleted by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the `deleteOrgLimitCap` mutation.""" -input DeleteOrgLimitCapInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Database` mutation.""" -type DeleteDatabasePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Database` that was deleted by this mutation.""" - database: Database - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Database`. May be used by Relay 1.""" - databaseEdge( - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseEdge -} - -"""All input for the `deleteDatabase` mutation.""" -input DeleteDatabaseInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgChartEdge` mutation.""" -type DeleteOrgChartEdgePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdge` that was deleted by this mutation.""" - orgChartEdge: OrgChartEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} - -"""All input for the `deleteOrgChartEdge` mutation.""" -input DeleteOrgChartEdgeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `CryptoAddress` mutation.""" -type DeleteCryptoAddressPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CryptoAddress` that was deleted by this mutation.""" - cryptoAddress: CryptoAddress - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CryptoAddress`. May be used by Relay 1.""" - cryptoAddressEdge( - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressEdge -} - -"""All input for the `deleteCryptoAddress` mutation.""" -input DeleteCryptoAddressInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCreditCodeItem` mutation.""" -type DeleteAppLimitCreditCodeItemPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge -} - -"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" -input DeleteAppLimitCreditCodeItemInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge -} - -"""All input for the `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge -} - -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCreditCode` mutation.""" -type DeleteAppLimitCreditCodePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCreditCode` that was deleted by this mutation.""" - appLimitCreditCode: AppLimitCreditCode - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge -} - -"""All input for the `deleteAppLimitCreditCode` mutation.""" -input DeleteAppLimitCreditCodeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitWarning` mutation.""" -type DeleteAppLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitWarning` that was deleted by this mutation.""" - appLimitWarning: AppLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge -} - -"""All input for the `deleteAppLimitWarning` mutation.""" -input DeleteAppLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `FullTextSearch` mutation.""" -type DeleteFullTextSearchPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `FullTextSearch` that was deleted by this mutation.""" - fullTextSearch: FullTextSearch - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FullTextSearch`. May be used by Relay 1.""" - fullTextSearchEdge( - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] - ): FullTextSearchEdge -} - -"""All input for the `deleteFullTextSearch` mutation.""" -input DeleteFullTextSearchInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `TableGrant` mutation.""" -type DeleteTableGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TableGrant` that was deleted by this mutation.""" - tableGrant: TableGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TableGrant`. May be used by Relay 1.""" - tableGrantEdge( - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableGrantEdge -} - -"""All input for the `deleteTableGrant` mutation.""" -input DeleteTableGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `SiteMetadatum` mutation.""" -type DeleteSiteMetadatumPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteMetadatum` that was deleted by this mutation.""" - siteMetadatum: SiteMetadatum - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge -} - -"""All input for the `deleteSiteMetadatum` mutation.""" -input DeleteSiteMetadatumInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this metadata record""" - id: UUID! -} - -"""The output of our delete `PubkeySetting` mutation.""" -type DeletePubkeySettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PubkeySetting` that was deleted by this mutation.""" - pubkeySetting: PubkeySetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PubkeySetting`. May be used by Relay 1.""" - pubkeySettingEdge( - """The method to use when ordering `PubkeySetting`.""" - orderBy: [PubkeySettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PubkeySettingEdge -} - -"""All input for the `deletePubkeySetting` mutation.""" -input DeletePubkeySettingInput { - """ - An arbitrary 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 pubkey settings record""" - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgChartEdgeGrant` mutation.""" -type DeleteOrgChartEdgeGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgChartEdgeGrant` that was deleted by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge -} - -"""All input for the `deleteOrgChartEdgeGrant` mutation.""" -input DeleteOrgChartEdgeGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `PhoneNumber` mutation.""" -type DeletePhoneNumberPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PhoneNumber` that was deleted by this mutation.""" - phoneNumber: PhoneNumber - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PhoneNumber`. May be used by Relay 1.""" - phoneNumberEdge( - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] - ): PhoneNumberEdge -} - -"""All input for the `deletePhoneNumber` mutation.""" -input DeletePhoneNumberInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitCredit` mutation.""" -type DeleteAppLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitCredit` that was deleted by this mutation.""" - appLimitCredit: AppLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge -} - -"""All input for the `deleteAppLimitCredit` mutation.""" -input DeleteAppLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitCredit` mutation.""" -type DeleteOrgLimitCreditPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitCredit` that was deleted by this mutation.""" - orgLimitCredit: OrgLimitCredit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge -} - -"""All input for the `deleteOrgLimitCredit` mutation.""" -input DeleteOrgLimitCreditInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppClaimedInvite` that was deleted by this mutation.""" - appClaimedInvite: AppClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge -} - -"""All input for the `deleteAppClaimedInvite` mutation.""" -input DeleteAppClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitWarning` mutation.""" -type DeleteOrgLimitWarningPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitWarning` that was deleted by this mutation.""" - orgLimitWarning: OrgLimitWarning - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} - -"""All input for the `deleteOrgLimitWarning` mutation.""" -input DeleteOrgLimitWarningInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `MembershipType` mutation.""" -type DeleteMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! -} - -"""The output of our delete `Domain` mutation.""" -type DeleteDomainPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Domain` that was deleted by this mutation.""" - domain: Domain - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Domain`. May be used by Relay 1.""" - domainEdge( - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] - ): DomainEdge -} - -"""All input for the `deleteDomain` mutation.""" -input DeleteDomainInput { - """ - An arbitrary 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 domain record""" - id: UUID! -} - -"""The output of our delete `RlsSetting` mutation.""" -type DeleteRlsSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `RlsSetting` that was deleted by this mutation.""" - rlsSetting: RlsSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RlsSetting`. May be used by Relay 1.""" - rlsSettingEdge( - """The method to use when ordering `RlsSetting`.""" - orderBy: [RlsSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): RlsSettingEdge -} - -"""All input for the `deleteRlsSetting` mutation.""" -input DeleteRlsSettingInput { - """ - An arbitrary 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 RLS settings record""" - id: UUID! -} - -"""The output of our delete `AppGrant` mutation.""" -type DeleteAppGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppGrant` that was deleted by this mutation.""" - appGrant: AppGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge -} - -"""All input for the `deleteAppGrant` mutation.""" -input DeleteAppGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgClaimedInvite` mutation.""" -type DeleteOrgClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgClaimedInvite` that was deleted by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge -} - -"""All input for the `deleteOrgClaimedInvite` mutation.""" -input DeleteOrgClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AuditLogAuth` mutation.""" -type DeleteAuditLogAuthPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AuditLogAuth` that was deleted by this mutation.""" - auditLogAuth: AuditLogAuth - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AuditLogAuth`. May be used by Relay 1.""" - auditLogAuthEdge( - """The method to use when ordering `AuditLogAuth`.""" - orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogAuthEdge -} - -"""All input for the `deleteAuditLogAuth` mutation.""" -input DeleteAuditLogAuthInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """ - Unique identifier for each audit event (uuidv7 provides temporal ordering) - """ - id: UUID! -} - -"""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 `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 `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 `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 `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgGrant` mutation.""" -type DeleteOrgGrantPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgGrant` that was deleted by this mutation.""" - orgGrant: OrgGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge -} - -"""All input for the `deleteOrgGrant` mutation.""" -input DeleteOrgGrantInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `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 `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 `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 `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 `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Partition` mutation.""" -type DeletePartitionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Partition` that was deleted by this mutation.""" - partition: Partition - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge -} - -"""All input for the `deletePartition` mutation.""" -input DeletePartitionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Email` mutation.""" -type DeleteEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was deleted by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `deleteEmail` mutation.""" -input DeleteEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `DatabaseTransfer` mutation.""" -type DeleteDatabaseTransferPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseTransfer` that was deleted by this mutation.""" - databaseTransfer: DatabaseTransfer - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" - databaseTransferEdge( - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseTransferEdge -} - -"""All input for the `deleteDatabaseTransfer` mutation.""" -input DeleteDatabaseTransferInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `DatabaseSetting` mutation.""" -type DeleteDatabaseSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseSetting` that was deleted by this mutation.""" - databaseSetting: DatabaseSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge -} - -"""All input for the `deleteDatabaseSetting` mutation.""" -input DeleteDatabaseSettingInput { - """ - An arbitrary 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 settings record""" - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge -} - -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `SecureTableProvision` mutation.""" -type DeleteSecureTableProvisionPayload { - """ - The exact 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 - - """ - 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 -} - -"""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 `ApiSetting` mutation.""" -type DeleteApiSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiSetting` that was deleted by this mutation.""" - apiSetting: ApiSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge -} - -"""All input for the `deleteApiSetting` mutation.""" -input DeleteApiSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API settings record""" - id: UUID! -} - -"""The output of our delete `ComputeLogModule` mutation.""" -type DeleteComputeLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ComputeLogModule` that was deleted by this mutation.""" - computeLogModule: ComputeLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `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 `deleteComputeLogModule` mutation.""" -input DeleteComputeLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `InferenceLogModule` mutation.""" -type DeleteInferenceLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `InferenceLogModule` that was deleted by this mutation.""" - inferenceLogModule: InferenceLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `InferenceLogModule`. May be used by Relay 1.""" - inferenceLogModuleEdge( - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InferenceLogModuleEdge -} - -"""All input for the `deleteInferenceLogModule` mutation.""" -input DeleteInferenceLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `StorageLogModule` mutation.""" -type DeleteStorageLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageLogModule` that was deleted by this mutation.""" - storageLogModule: StorageLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageLogModule`. May be used by Relay 1.""" - storageLogModuleEdge( - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageLogModuleEdge -} - -"""All input for the `deleteStorageLogModule` mutation.""" -input DeleteStorageLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `TransferLogModule` mutation.""" -type DeleteTransferLogModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `TransferLogModule` that was deleted by this mutation.""" - transferLogModule: TransferLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `TransferLogModule`. May be used by Relay 1.""" - transferLogModuleEdge( - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): TransferLogModuleEdge -} - -"""All input for the `deleteTransferLogModule` mutation.""" -input DeleteTransferLogModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Enum` mutation.""" -type DeleteEnumPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Enum` that was deleted by this mutation.""" - enum: Enum - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Enum`. May be used by Relay 1.""" - enumEdge( - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] - ): EnumEdge -} - -"""All input for the `deleteEnum` mutation.""" -input DeleteEnumInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimitEvent` mutation.""" -type DeleteAppLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimitEvent` that was deleted by this mutation.""" - appLimitEvent: AppLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitEvent`. May be used by Relay 1.""" - appLimitEventEdge( - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEventEdge -} - -"""All input for the `deleteAppLimitEvent` mutation.""" -input DeleteAppLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! -} - -"""The output of our delete `OrgLimitEvent` mutation.""" -type DeleteOrgLimitEventPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitEvent` that was deleted by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" - orgLimitEventEdge( - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEventEdge -} - -"""All input for the `deleteOrgLimitEvent` mutation.""" -input DeleteOrgLimitEventInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - createdAt: Datetime! - - """Unique identifier for each limit event""" - id: UUID! -} - -"""The output of our delete `View` mutation.""" -type DeleteViewPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `View` that was deleted by this mutation.""" - view: View - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `View`. May be used by Relay 1.""" - viewEdge( - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewEdge -} - -"""All input for the `deleteView` mutation.""" -input DeleteViewInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppMembership` mutation.""" -type DeleteAppMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge -} - -"""All input for the `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `User` mutation.""" -type DeleteUserPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `User` that was deleted by this mutation.""" - user: User - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge -} - -"""All input for the `deleteUser` mutation.""" -input DeleteUserInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} - -"""All input for the `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `App` mutation.""" -type DeleteAppPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `App` that was deleted by this mutation.""" - app: App - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge -} - -"""All input for the `deleteApp` mutation.""" -input DeleteAppInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this app""" - id: UUID! -} - -"""The output of our delete `Site` mutation.""" -type DeleteSitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Site` that was deleted by this mutation.""" - site: Site - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Site`. May be used by Relay 1.""" - siteEdge( - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteEdge -} - -"""All input for the `deleteSite` mutation.""" -input DeleteSiteInput { - """ - An arbitrary 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 site""" - id: UUID! -} - -"""The output of our delete `DbUsageModule` mutation.""" -type DeleteDbUsageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DbUsageModule` that was deleted by this mutation.""" - dbUsageModule: DbUsageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge -} - -"""All input for the `deleteDbUsageModule` mutation.""" -input DeleteDbUsageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `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 `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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `WebauthnCredential` mutation.""" -type DeleteWebauthnCredentialPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `WebauthnCredential` that was deleted by this mutation.""" - webauthnCredential: WebauthnCredential - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnCredential`. May be used by Relay 1.""" - webauthnCredentialEdge( - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialEdge -} - -"""All input for the `deleteWebauthnCredential` mutation.""" -input DeleteWebauthnCredentialInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `PrimaryKeyConstraint` mutation.""" -type DeletePrimaryKeyConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PrimaryKeyConstraint` that was deleted by this mutation.""" - primaryKeyConstraint: PrimaryKeyConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" - primaryKeyConstraintEdge( - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintEdge -} - -"""All input for the `deletePrimaryKeyConstraint` mutation.""" -input DeletePrimaryKeyConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Trigger` mutation.""" -type DeleteTriggerPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Trigger` that was deleted by this mutation.""" - trigger: Trigger - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Trigger`. May be used by Relay 1.""" - triggerEdge( - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerEdge -} - -"""All input for the `deleteTrigger` mutation.""" -input DeleteTriggerInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `CheckConstraint` mutation.""" -type DeleteCheckConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CheckConstraint` that was deleted by this mutation.""" - checkConstraint: CheckConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CheckConstraint`. May be used by Relay 1.""" - checkConstraintEdge( - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): CheckConstraintEdge -} - -"""All input for the `deleteCheckConstraint` mutation.""" -input DeleteCheckConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `UniqueConstraint` mutation.""" -type DeleteUniqueConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `UniqueConstraint` that was deleted by this mutation.""" - uniqueConstraint: UniqueConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UniqueConstraint`. May be used by Relay 1.""" - uniqueConstraintEdge( - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): UniqueConstraintEdge -} - -"""All input for the `deleteUniqueConstraint` mutation.""" -input DeleteUniqueConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `SpatialRelation` mutation.""" -type DeleteSpatialRelationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SpatialRelation` that was deleted by this mutation.""" - spatialRelation: SpatialRelation - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SpatialRelation`. May be used by Relay 1.""" - spatialRelationEdge( - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] - ): SpatialRelationEdge -} - -"""All input for the `deleteSpatialRelation` mutation.""" -input DeleteSpatialRelationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Policy` mutation.""" -type DeletePolicyPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Policy` that was deleted by this mutation.""" - policy: Policy - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Policy`. May be used by Relay 1.""" - policyEdge( - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] - ): PolicyEdge -} - -"""All input for the `deletePolicy` mutation.""" -input DeletePolicyInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimitAggregate` mutation.""" -type DeleteOrgLimitAggregatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimitAggregate` that was deleted by this mutation.""" - orgLimitAggregate: OrgLimitAggregate - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge -} - -"""All input for the `deleteOrgLimitAggregate` mutation.""" -input DeleteOrgLimitAggregateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgLimit` mutation.""" -type DeleteOrgLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgLimit` that was deleted by this mutation.""" - orgLimit: OrgLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge -} - -"""All input for the `deleteOrgLimit` mutation.""" -input DeleteOrgLimitInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `WebauthnSetting` mutation.""" -type DeleteWebauthnSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `WebauthnSetting` that was deleted by this mutation.""" - webauthnSetting: WebauthnSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnSetting`. May be used by Relay 1.""" - webauthnSettingEdge( - """The method to use when ordering `WebauthnSetting`.""" - orderBy: [WebauthnSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnSettingEdge -} - -"""All input for the `deleteWebauthnSetting` mutation.""" -input DeleteWebauthnSettingInput { - """ - An arbitrary 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 WebAuthn settings record""" - id: UUID! -} - -"""The output of our delete `BillingModule` mutation.""" -type DeleteBillingModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingModule` that was deleted by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the `deleteBillingModule` mutation.""" -input DeleteBillingModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Schema` mutation.""" -type DeleteSchemaPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Schema` that was deleted by this mutation.""" - schema: Schema - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Schema`. May be used by Relay 1.""" - schemaEdge( - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaEdge -} - -"""All input for the `deleteSchema` mutation.""" -input DeleteSchemaInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Index` mutation.""" -type DeleteIndexPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Index` that was deleted by this mutation.""" - index: Index - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Index`. May be used by Relay 1.""" - indexEdge( - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] - ): IndexEdge -} - -"""All input for the `deleteIndex` mutation.""" -input DeleteIndexInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppInvite` mutation.""" -type DeleteAppInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppInvite` that was deleted by this mutation.""" - appInvite: AppInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge -} - -"""All input for the `deleteAppInvite` mutation.""" -input DeleteAppInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `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 `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 `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 `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. - """ - clientMutationId: String - 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! -} - -"""The output of our delete `HierarchyModule` mutation.""" -type DeleteHierarchyModulePayload { - """ - The exact 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 deleted 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 `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 `deleteHierarchyModule` mutation.""" -input DeleteHierarchyModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ProfilesModule` mutation.""" -type DeleteProfilesModulePayload { - """ - The exact 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 deleted 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 `deleteProfilesModule` mutation.""" -input DeleteProfilesModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `EmbeddingChunk` mutation.""" -type DeleteEmbeddingChunkPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EmbeddingChunk` that was deleted by this mutation.""" - embeddingChunk: EmbeddingChunk - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" - embeddingChunkEdge( - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmbeddingChunkEdge -} - -"""All input for the `deleteEmbeddingChunk` mutation.""" -input DeleteEmbeddingChunkInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ForeignKeyConstraint` mutation.""" -type DeleteForeignKeyConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ForeignKeyConstraint` that was deleted by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" - foreignKeyConstraintEdge( - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintEdge -} - -"""All input for the `deleteForeignKeyConstraint` mutation.""" -input DeleteForeignKeyConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgInvite` mutation.""" -type DeleteOrgInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgInvite` that was deleted by this mutation.""" - orgInvite: OrgInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge -} - -"""All input for the `deleteOrgInvite` mutation.""" -input DeleteOrgInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `AgentModule` mutation.""" -type DeleteAgentModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AgentModule` that was deleted by this mutation.""" - agentModule: AgentModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentModule`. May be used by Relay 1.""" - agentModuleEdge( - """The method to use when ordering `AgentModule`.""" - orderBy: [AgentModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentModuleEdge -} - -"""All input for the `deleteAgentModule` mutation.""" -input DeleteAgentModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `RelationProvision` mutation.""" -type DeleteRelationProvisionPayload { - """ - The exact 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 - - """ - 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 -} - -"""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 `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 `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 `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 `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 - id: UUID! -} - -"""The output of our delete `Field` mutation.""" -type DeleteFieldPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Field` that was deleted by this mutation.""" - field: Field - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Field`. May be used by Relay 1.""" - fieldEdge( - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): FieldEdge -} - -"""All input for the `deleteField` mutation.""" -input DeleteFieldInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Table` mutation.""" -type DeleteTablePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Table` that was deleted by this mutation.""" - table: Table - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Table`. May be used by Relay 1.""" - tableEdge( - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableEdge -} - -"""All input for the `deleteTable` mutation.""" -input DeleteTableInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `LimitsModule` mutation.""" -type DeleteLimitsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `LimitsModule` that was deleted by this mutation.""" - limitsModule: LimitsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `LimitsModule`. May be used by Relay 1.""" - limitsModuleEdge( - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): LimitsModuleEdge -} - -"""All input for the `deleteLimitsModule` mutation.""" -input DeleteLimitsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `StorageModule` mutation.""" -type DeleteStorageModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `StorageModule` that was deleted by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the `deleteStorageModule` mutation.""" -input DeleteStorageModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - 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 { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EventsModule` that was deleted by this mutation.""" - eventsModule: EventsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EventsModule`. May be used by Relay 1.""" - eventsModuleEdge( - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EventsModuleEdge -} - -"""All input for the `deleteEventsModule` mutation.""" -input DeleteEventsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will 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 { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `EntityTypeProvision` that was deleted by this mutation.""" - entityTypeProvision: EntityTypeProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" - entityTypeProvisionEdge( - """The method to use when ordering `EntityTypeProvision`.""" - orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): EntityTypeProvisionEdge -} - -"""All input for the `deleteEntityTypeProvision` mutation.""" -input DeleteEntityTypeProvisionInput { - """ - An arbitrary 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! -} - -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/usage.graphql b/sdk/constructive-sdk/schemas/usage.graphql new file mode 100644 index 0000000000..db5f410fb1 --- /dev/null +++ b/sdk/constructive-sdk/schemas/usage.graphql @@ -0,0 +1,7000 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" + appLimitCapsDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCapsDefaultFilter + + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultConnection + + """Reads and enables pagination through a set of `OrgLimitCapsDefault`.""" + orgLimitCapsDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: OrgLimitCapsDefaultFilter + + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultConnection + + """Reads and enables pagination through a set of `AppLimitCap`.""" + appLimitCaps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCapFilter + + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCapConnection + + """Reads and enables pagination through a set of `OrgLimitCap`.""" + orgLimitCaps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: OrgLimitCapFilter + + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCapConnection + + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitDefaultFilter + + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection + + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: OrgLimitDefaultFilter + + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection + + """ + Reads and enables pagination through a set of `AppLimitCreditRedemption`. + """ + appLimitCreditRedemptions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditRedemptionFilter + + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionConnection + + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItems( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditCodeItemFilter + + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemConnection + + """Reads and enables pagination through a set of `AppLimitWarning`.""" + appLimitWarnings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitWarningFilter + + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitWarningConnection + + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCredits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditFilter + + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditConnection + + """Reads and enables pagination through a set of `OrgLimitWarning`.""" + orgLimitWarnings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: OrgLimitWarningFilter + + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitWarningConnection + + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCredits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: OrgLimitCreditFilter + + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCreditConnection + + """Reads and enables pagination through a set of `AppLimitCreditCode`.""" + appLimitCreditCodes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditCodeFilter + + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeConnection + + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitEventFilter + + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitEventConnection + + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitEventFilter + + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitEventConnection + + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitFilter + + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection + + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregates( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: OrgLimitAggregateFilter + + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateConnection + + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitFilter + + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +"""A connection to a list of `AppLimitCapsDefault` values.""" +type AppLimitCapsDefaultConnection { + """A list of `AppLimitCapsDefault` objects.""" + nodes: [AppLimitCapsDefault]! + + """ + A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. + """ + edges: [AppLimitCapsDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitCapsDefault` you could get from the connection. + """ + totalCount: Int! +} + +""" +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +""" +type AppLimitCapsDefault { + id: UUID! + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt! +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar 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 `AppLimitCapsDefault` edge in the connection.""" +type AppLimitCapsDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCapsDefault` at the end of the edge.""" + node: AppLimitCapsDefault +} + +"""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 filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCapsDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Checks for all expressions in this list.""" + and: [AppLimitCapsDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitCapsDefaultFilter!] + + """Negates the expression.""" + not: AppLimitCapsDefaultFilter +} + +""" +A filter to be used against 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 +} + +""" +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 `AppLimitCapsDefault`.""" +enum AppLimitCapsDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC +} + +"""A connection to a list of `OrgLimitCapsDefault` values.""" +type OrgLimitCapsDefaultConnection { + """A list of `OrgLimitCapsDefault` objects.""" + nodes: [OrgLimitCapsDefault]! + + """ + A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. + """ + edges: [OrgLimitCapsDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitCapsDefault` you could get from the connection. + """ + totalCount: Int! +} + +""" +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +""" +type OrgLimitCapsDefault { + id: UUID! + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt! +} + +"""A `OrgLimitCapsDefault` edge in the connection.""" +type OrgLimitCapsDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitCapsDefault` at the end of the edge.""" + node: OrgLimitCapsDefault +} + +""" +A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitCapsDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitCapsDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitCapsDefaultFilter!] + + """Negates the expression.""" + not: OrgLimitCapsDefaultFilter +} + +"""Methods to use when ordering `OrgLimitCapsDefault`.""" +enum OrgLimitCapsDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC +} + +"""A connection to a list of `AppLimitCap` values.""" +type AppLimitCapConnection { + """A list of `AppLimitCap` objects.""" + nodes: [AppLimitCap]! + + """ + A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. + """ + edges: [AppLimitCapEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimitCap` you could get from the connection.""" + totalCount: Int! +} + +""" +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +""" +type AppLimitCap { + id: UUID! + + """Name identifier of the cap being overridden""" + name: String! + + """Entity this cap override applies to""" + entityId: UUID! + + """Override cap value for this entity""" + max: BigInt! +} + +"""A `AppLimitCap` edge in the connection.""" +type AppLimitCapEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCap` at the end of the edge.""" + node: AppLimitCap +} + +""" +A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCapFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Checks for all expressions in this list.""" + and: [AppLimitCapFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitCapFilter!] + + """Negates the expression.""" + not: AppLimitCapFilter +} + +"""Methods to use when ordering `AppLimitCap`.""" +enum AppLimitCapOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + MAX_ASC + MAX_DESC +} + +"""A connection to a list of `OrgLimitCap` values.""" +type OrgLimitCapConnection { + """A list of `OrgLimitCap` objects.""" + nodes: [OrgLimitCap]! + + """ + A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. + """ + edges: [OrgLimitCapEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimitCap` you could get from the connection.""" + totalCount: Int! +} + +""" +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. +""" +type OrgLimitCap { + id: UUID! + + """Name identifier of the cap being overridden""" + name: String! + + """Entity this cap override applies to""" + entityId: UUID! + + """Override cap value for this entity""" + max: BigInt! +} + +"""A `OrgLimitCap` edge in the connection.""" +type OrgLimitCapEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitCap` at the end of the edge.""" + node: OrgLimitCap +} + +""" +A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitCapFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitCapFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitCapFilter!] + + """Negates the expression.""" + not: OrgLimitCapFilter +} + +"""Methods to use when ordering `OrgLimitCap`.""" +enum OrgLimitCapOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + MAX_ASC + MAX_DESC +} + +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! + + """ + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. + """ + edges: [AppLimitDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitDefault` you could get from the connection. + """ + totalCount: Int! +} + +""" +Default maximum values for each named limit, applied when no per-actor override exists +""" +type AppLimitDefault { + id: UUID! + + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCreditsByDefaultLimitId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditFilter + + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditConnection! + + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItemsByDefaultLimitId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditCodeItemFilter + + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemConnection! +} + +"""A connection to a list of `AppLimitCredit` values.""" +type AppLimitCreditConnection { + """A list of `AppLimitCredit` objects.""" + nodes: [AppLimitCredit]! + + """ + A list of edges which contains the `AppLimitCredit` and cursor to aid in pagination. + """ + edges: [AppLimitCreditEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimitCredit` you could get from the connection.""" + totalCount: Int! +} + +""" +Append-only ledger of credit grants that automatically update limit ceilings +""" +type AppLimitCredit { + id: UUID! + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! + + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String! + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String + + """ + Reads a single `AppLimitDefault` that is related to this `AppLimitCredit`. + """ + defaultLimit: AppLimitDefault +} + +"""A `AppLimitCredit` edge in the connection.""" +type AppLimitCreditEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCredit` at the end of the edge.""" + node: AppLimitCredit +} + +""" +A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `amount` field.""" + amount: BigIntFilter + + """Filter by the object’s `creditType` field.""" + creditType: StringFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitCreditFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitCreditFilter!] + + """Negates the expression.""" + not: AppLimitCreditFilter + + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: AppLimitDefaultFilter +} + +""" +A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Checks for all expressions in this list.""" + and: [AppLimitDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitDefaultFilter!] + + """Negates the expression.""" + not: AppLimitDefaultFilter + + """Filter by the object’s `appLimitCreditsByDefaultLimitId` relation.""" + appLimitCreditsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditFilter + + """`appLimitCreditsByDefaultLimitId` exist.""" + appLimitCreditsByDefaultLimitIdExist: Boolean + + """ + Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. + """ + appLimitCreditCodeItemsByDefaultLimitId: AppLimitDefaultToManyAppLimitCreditCodeItemFilter + + """`appLimitCreditCodeItemsByDefaultLimitId` exist.""" + appLimitCreditCodeItemsByDefaultLimitIdExist: Boolean +} + +""" +A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitDefaultToManyAppLimitCreditFilter { + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditFilter + + """Filters to entities where every related entity matches.""" + every: AppLimitCreditFilter + + """Filters to entities where no related entity matches.""" + none: AppLimitCreditFilter +} + +""" +A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitDefaultToManyAppLimitCreditCodeItemFilter { + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditCodeItemFilter + + """Filters to entities where every related entity matches.""" + every: AppLimitCreditCodeItemFilter + + """Filters to entities where no related entity matches.""" + none: AppLimitCreditCodeItemFilter +} + +""" +A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditCodeItemFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `creditCodeId` field.""" + creditCodeId: UUIDFilter + + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter + + """Filter by the object’s `amount` field.""" + amount: BigIntFilter + + """Filter by the object’s `creditType` field.""" + creditType: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitCreditCodeItemFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitCreditCodeItemFilter!] + + """Negates the expression.""" + not: AppLimitCreditCodeItemFilter + + """Filter by the object’s `creditCode` relation.""" + creditCode: AppLimitCreditCodeFilter + + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: AppLimitDefaultFilter +} + +""" +A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditCodeFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `code` field.""" + code: StringFilter + + """Filter by the object’s `maxRedemptions` field.""" + maxRedemptions: IntFilter + + """Filter by the object’s `currentRedemptions` field.""" + currentRedemptions: IntFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AppLimitCreditCodeFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitCreditCodeFilter!] + + """Negates the expression.""" + not: AppLimitCreditCodeFilter + + """ + Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. + """ + appLimitCreditCodeItemsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter + + """`appLimitCreditCodeItemsByCreditCodeId` exist.""" + appLimitCreditCodeItemsByCreditCodeIdExist: Boolean + + """ + Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. + """ + appLimitCreditRedemptionsByCreditCodeId: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter + + """`appLimitCreditRedemptionsByCreditCodeId` exist.""" + appLimitCreditRedemptionsByCreditCodeIdExist: Boolean +} + +""" +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 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 point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +""" +A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditCodeItemFilter + + """Filters to entities where every related entity matches.""" + every: AppLimitCreditCodeItemFilter + + """Filters to entities where no related entity matches.""" + none: AppLimitCreditCodeItemFilter +} + +""" +A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + """Filters to entities where at least one related entity matches.""" + some: AppLimitCreditRedemptionFilter + + """Filters to entities where every related entity matches.""" + every: AppLimitCreditRedemptionFilter + + """Filters to entities where no related entity matches.""" + none: AppLimitCreditRedemptionFilter +} + +""" +A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCreditRedemptionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `creditCodeId` field.""" + creditCodeId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitCreditRedemptionFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitCreditRedemptionFilter!] + + """Negates the expression.""" + not: AppLimitCreditRedemptionFilter + + """Filter by the object’s `creditCode` relation.""" + creditCode: AppLimitCreditCodeFilter +} + +"""Methods to use when ordering `AppLimitCredit`.""" +enum AppLimitCreditOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + AMOUNT_ASC + AMOUNT_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC + REASON_ASC + REASON_DESC +} + +"""A connection to a list of `AppLimitCreditCodeItem` values.""" +type AppLimitCreditCodeItemConnection { + """A list of `AppLimitCreditCodeItem` objects.""" + nodes: [AppLimitCreditCodeItem]! + + """ + A list of edges which contains the `AppLimitCreditCodeItem` and cursor to aid in pagination. + """ + edges: [AppLimitCreditCodeItemEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitCreditCodeItem` you could get from the connection. + """ + totalCount: Int! +} + +""" +Items within a credit code — each row grants credits for a specific limit definition +""" +type AppLimitCreditCodeItem { + id: UUID! + + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! + + """Number of credits this item grants per redemption""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String! + + """ + Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditCodeItem`. + """ + creditCode: AppLimitCreditCode + + """ + Reads a single `AppLimitDefault` that is related to this `AppLimitCreditCodeItem`. + """ + defaultLimit: AppLimitDefault +} + +""" +Redeemable credit codes managed by admins with the add_credits permission +""" +type AppLimitCreditCode { + id: UUID! + + """Human-readable credit code (case-insensitive, unique)""" + code: String! + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int! + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime + + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItemsByCreditCodeId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditCodeItemFilter + + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemConnection! + + """ + Reads and enables pagination through a set of `AppLimitCreditRedemption`. + """ + appLimitCreditRedemptionsByCreditCodeId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: AppLimitCreditRedemptionFilter + + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionConnection! +} + +"""Methods to use when ordering `AppLimitCreditCodeItem`.""" +enum AppLimitCreditCodeItemOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREDIT_CODE_ID_ASC + CREDIT_CODE_ID_DESC + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC + AMOUNT_ASC + AMOUNT_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC +} + +"""A connection to a list of `AppLimitCreditRedemption` values.""" +type AppLimitCreditRedemptionConnection { + """A list of `AppLimitCreditRedemption` objects.""" + nodes: [AppLimitCreditRedemption]! + + """ + A list of edges which contains the `AppLimitCreditRedemption` and cursor to aid in pagination. + """ + edges: [AppLimitCreditRedemptionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitCreditRedemption` you could get from the connection. + """ + totalCount: Int! +} + +""" +Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits +""" +type AppLimitCreditRedemption { + id: UUID! + + """FK to credit_codes — which code is being redeemed""" + creditCodeId: UUID! + + """Entity receiving the credits (personal org user_id or org entity_id)""" + entityId: UUID! + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + + """ + Reads a single `AppLimitCreditCode` that is related to this `AppLimitCreditRedemption`. + """ + creditCode: AppLimitCreditCode +} + +"""A `AppLimitCreditRedemption` edge in the connection.""" +type AppLimitCreditRedemptionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCreditRedemption` at the end of the edge.""" + node: AppLimitCreditRedemption +} + +"""Methods to use when ordering `AppLimitCreditRedemption`.""" +enum AppLimitCreditRedemptionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREDIT_CODE_ID_ASC + CREDIT_CODE_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC +} + +"""A `AppLimitCreditCodeItem` edge in the connection.""" +type AppLimitCreditCodeItemEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCreditCodeItem` at the end of the edge.""" + node: AppLimitCreditCodeItem +} + +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault +} + +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC +} + +"""A connection to a list of `OrgLimitDefault` values.""" +type OrgLimitDefaultConnection { + """A list of `OrgLimitDefault` objects.""" + nodes: [OrgLimitDefault]! + + """ + A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + """ + edges: [OrgLimitDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitDefault` you could get from the connection. + """ + totalCount: Int! +} + +""" +Default maximum values for each named limit, applied when no per-actor override exists +""" +type OrgLimitDefault { + id: UUID! + + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCreditsByDefaultLimitId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: 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: OrgLimitCreditFilter + + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCreditConnection! +} + +"""A connection to a list of `OrgLimitCredit` values.""" +type OrgLimitCreditConnection { + """A list of `OrgLimitCredit` objects.""" + nodes: [OrgLimitCredit]! + + """ + A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. + """ + edges: [OrgLimitCreditEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimitCredit` you could get from the connection.""" + totalCount: Int! +} + +""" +Append-only ledger of credit grants that automatically update limit ceilings +""" +type OrgLimitCredit { + id: UUID! + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! + + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String! + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String + + """ + Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. + """ + defaultLimit: OrgLimitDefault +} + +"""A `OrgLimitCredit` edge in the connection.""" +type OrgLimitCreditEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitCredit` at the end of the edge.""" + node: OrgLimitCredit +} + +""" +A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitCreditFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Filter by the object’s `amount` field.""" + amount: BigIntFilter + + """Filter by the object’s `creditType` field.""" + creditType: StringFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitCreditFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitCreditFilter!] + + """Negates the expression.""" + not: OrgLimitCreditFilter + + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: OrgLimitDefaultFilter +} + +""" +A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitDefaultFilter!] + + """Negates the expression.""" + not: OrgLimitDefaultFilter + + """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" + orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter + + """`orgLimitCreditsByDefaultLimitId` exist.""" + orgLimitCreditsByDefaultLimitIdExist: Boolean +} + +""" +A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitDefaultToManyOrgLimitCreditFilter { + """Filters to entities where at least one related entity matches.""" + some: OrgLimitCreditFilter + + """Filters to entities where every related entity matches.""" + every: OrgLimitCreditFilter + + """Filters to entities where no related entity matches.""" + none: OrgLimitCreditFilter +} + +"""Methods to use when ordering `OrgLimitCredit`.""" +enum OrgLimitCreditOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + AMOUNT_ASC + AMOUNT_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC + REASON_ASC + REASON_DESC +} + +"""A `OrgLimitDefault` edge in the connection.""" +type OrgLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitDefault` at the end of the edge.""" + node: OrgLimitDefault +} + +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC +} + +"""A connection to a list of `AppLimitWarning` values.""" +type AppLimitWarningConnection { + """A list of `AppLimitWarning` objects.""" + nodes: [AppLimitWarning]! + + """ + A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. + """ + edges: [AppLimitWarningEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitWarning` you could get from the connection. + """ + totalCount: Int! +} + +""" +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +""" +type AppLimitWarning { + id: UUID! + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! +} + +"""A `AppLimitWarning` edge in the connection.""" +type AppLimitWarningEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitWarning` at the end of the edge.""" + node: AppLimitWarning +} + +""" +A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitWarningFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `warningType` field.""" + warningType: StringFilter + + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitWarningFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitWarningFilter!] + + """Negates the expression.""" + not: AppLimitWarningFilter +} + +"""Methods to use when ordering `AppLimitWarning`.""" +enum AppLimitWarningOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC +} + +"""A connection to a list of `OrgLimitWarning` values.""" +type OrgLimitWarningConnection { + """A list of `OrgLimitWarning` objects.""" + nodes: [OrgLimitWarning]! + + """ + A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. + """ + edges: [OrgLimitWarningEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitWarning` you could get from the connection. + """ + totalCount: Int! +} + +""" +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +""" +type OrgLimitWarning { + id: UUID! + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! + + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID +} + +"""A `OrgLimitWarning` edge in the connection.""" +type OrgLimitWarningEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitWarning` at the end of the edge.""" + node: OrgLimitWarning +} + +""" +A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitWarningFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `warningType` field.""" + warningType: StringFilter + + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitWarningFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitWarningFilter!] + + """Negates the expression.""" + not: OrgLimitWarningFilter +} + +"""Methods to use when ordering `OrgLimitWarning`.""" +enum OrgLimitWarningOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} + +"""A connection to a list of `AppLimitCreditCode` values.""" +type AppLimitCreditCodeConnection { + """A list of `AppLimitCreditCode` objects.""" + nodes: [AppLimitCreditCode]! + + """ + A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. + """ + edges: [AppLimitCreditCodeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitCreditCode` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AppLimitCreditCode` edge in the connection.""" +type AppLimitCreditCodeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitCreditCode` at the end of the edge.""" + node: AppLimitCreditCode +} + +"""Methods to use when ordering `AppLimitCreditCode`.""" +enum AppLimitCreditCodeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CODE_ASC + CODE_DESC + MAX_REDEMPTIONS_ASC + MAX_REDEMPTIONS_DESC + CURRENT_REDEMPTIONS_ASC + CURRENT_REDEMPTIONS_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC +} + +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! + + """ + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. + """ + edges: [AppLimitEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimitEvent` you could get from the connection.""" + totalCount: Int! +} + +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent +} + +""" +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitEventFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitEventFilter!] + + """Negates the expression.""" + not: AppLimitEventFilter +} + +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} + +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! + + """ + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + """ + edges: [OrgLimitEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimitEvent` you could get from the connection.""" + totalCount: Int! +} + +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent +} + +""" +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitEventFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitEventFilter!] + + """Negates the expression.""" + not: OrgLimitEventFilter +} + +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} + +"""A connection to a list of `AppLimit` values.""" +type AppLimitConnection { + """A list of `AppLimit` objects.""" + nodes: [AppLimit]! + + """ + A list of edges which contains the `AppLimit` and cursor to aid in pagination. + """ + edges: [AppLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimit` you could get from the connection.""" + totalCount: Int! +} + +"""Tracks per-actor usage counts against configurable maximum limits""" +type AppLimit { + id: UUID! + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""A `AppLimit` edge in the connection.""" +type AppLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimit` at the end of the edge.""" + node: AppLimit +} + +""" +A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitFilter!] + + """Negates the expression.""" + not: AppLimitFilter +} + +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: IntervalInput + + """Not equal to the specified value.""" + notEqualTo: IntervalInput + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput + + """Included in the specified list.""" + in: [IntervalInput!] + + """Not included in the specified list.""" + notIn: [IntervalInput!] + + """Less than the specified value.""" + lessThan: IntervalInput + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput + + """Greater than the specified value.""" + greaterThan: IntervalInput + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""Methods to use when ordering `AppLimit`.""" +enum AppLimitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC +} + +"""A connection to a list of `OrgLimitAggregate` values.""" +type OrgLimitAggregateConnection { + """A list of `OrgLimitAggregate` objects.""" + nodes: [OrgLimitAggregate]! + + """ + A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. + """ + edges: [OrgLimitAggregateEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitAggregate` you could get from the connection. + """ + totalCount: Int! +} + +""" +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) +""" +type OrgLimitAggregate { + id: UUID! + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""A `OrgLimitAggregate` edge in the connection.""" +type OrgLimitAggregateEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitAggregate` at the end of the edge.""" + node: OrgLimitAggregate +} + +""" +A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitAggregateFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Filter by the object’s `reserved` field.""" + reserved: BigIntFilter + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitAggregateFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitAggregateFilter!] + + """Negates the expression.""" + not: OrgLimitAggregateFilter +} + +"""Methods to use when ordering `OrgLimitAggregate`.""" +enum OrgLimitAggregateOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + RESERVED_ASC + RESERVED_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_DESC +} + +"""A connection to a list of `OrgLimit` values.""" +type OrgLimitConnection { + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! + + """ + A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + """ + edges: [OrgLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimit` you could get from the connection.""" + totalCount: Int! +} + +"""Tracks per-actor usage counts against configurable maximum limits""" +type OrgLimit { + id: UUID! + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID! + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""A `OrgLimit` edge in the connection.""" +type OrgLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimit` at the end of the edge.""" + node: OrgLimit +} + +""" +A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `organizationId` field.""" + organizationId: UUIDFilter + + """Filter by the object’s `entityType` field.""" + entityType: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitFilter!] + + """Negates the expression.""" + not: OrgLimitFilter +} + +"""Methods to use when ordering `OrgLimit`.""" +enum OrgLimitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ORGANIZATION_ID_ASC + ORGANIZATION_ID_DESC + ENTITY_TYPE_ASC + ENTITY_TYPE_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! +} + +"""Information about a table field/column""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! + isPrimaryKey: Boolean! + isForeignKey: Boolean! + description: String +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean + subtype: 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 +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + seedAppLimitCapsDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedAppLimitCapsDefaultsInput! + ): SeedAppLimitCapsDefaultsPayload + seedAppLimitDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedAppLimitDefaultsInput! + ): SeedAppLimitDefaultsPayload + seedOrgLimitCapsDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedOrgLimitCapsDefaultsInput! + ): SeedOrgLimitCapsDefaultsPayload + seedOrgLimitDefaults( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SeedOrgLimitDefaultsInput! + ): SeedOrgLimitDefaultsPayload + + """Creates a single `AppLimitCapsDefault`.""" + createAppLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCapsDefaultInput! + ): CreateAppLimitCapsDefaultPayload + + """Creates a single `OrgLimitCapsDefault`.""" + createOrgLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitCapsDefaultInput! + ): CreateOrgLimitCapsDefaultPayload + + """Creates a single `AppLimitCap`.""" + createAppLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCapInput! + ): CreateAppLimitCapPayload + + """Creates a single `OrgLimitCap`.""" + createOrgLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitCapInput! + ): CreateOrgLimitCapPayload + + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload + + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload + + """Creates a single `AppLimitCreditRedemption`.""" + createAppLimitCreditRedemption( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditRedemptionInput! + ): CreateAppLimitCreditRedemptionPayload + + """Creates a single `AppLimitCreditCodeItem`.""" + createAppLimitCreditCodeItem( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeItemInput! + ): CreateAppLimitCreditCodeItemPayload + + """Creates a single `AppLimitWarning`.""" + createAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitWarningInput! + ): CreateAppLimitWarningPayload + + """Creates a single `AppLimitCredit`.""" + createAppLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditInput! + ): CreateAppLimitCreditPayload + + """Creates a single `OrgLimitWarning`.""" + createOrgLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitWarningInput! + ): CreateOrgLimitWarningPayload + + """Creates a single `OrgLimitCredit`.""" + createOrgLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitCreditInput! + ): CreateOrgLimitCreditPayload + + """Creates a single `AppLimitCreditCode`.""" + createAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeInput! + ): CreateAppLimitCreditCodePayload + + """Creates a single `AppLimitEvent`.""" + createAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitEventInput! + ): CreateAppLimitEventPayload + + """Creates a single `OrgLimitEvent`.""" + createOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitEventInput! + ): CreateOrgLimitEventPayload + + """Creates a single `AppLimit`.""" + createAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitInput! + ): CreateAppLimitPayload + + """Creates a single `OrgLimitAggregate`.""" + createOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitAggregateInput! + ): CreateOrgLimitAggregatePayload + + """Creates a single `OrgLimit`.""" + createOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload + + """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" + updateAppLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCapsDefaultInput! + ): UpdateAppLimitCapsDefaultPayload + + """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" + updateOrgLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitCapsDefaultInput! + ): UpdateOrgLimitCapsDefaultPayload + + """Updates a single `AppLimitCap` using a unique key and a patch.""" + updateAppLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCapInput! + ): UpdateAppLimitCapPayload + + """Updates a single `OrgLimitCap` using a unique key and a patch.""" + updateOrgLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitCapInput! + ): UpdateOrgLimitCapPayload + + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload + + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload + + """ + Updates a single `AppLimitCreditRedemption` using a unique key and a patch. + """ + updateAppLimitCreditRedemption( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditRedemptionInput! + ): UpdateAppLimitCreditRedemptionPayload + + """ + Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. + """ + updateAppLimitCreditCodeItem( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditCodeItemInput! + ): UpdateAppLimitCreditCodeItemPayload + + """Updates a single `AppLimitWarning` using a unique key and a patch.""" + updateAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitWarningInput! + ): UpdateAppLimitWarningPayload + + """Updates a single `AppLimitCredit` using a unique key and a patch.""" + updateAppLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditInput! + ): UpdateAppLimitCreditPayload + + """Updates a single `OrgLimitWarning` using a unique key and a patch.""" + updateOrgLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitWarningInput! + ): UpdateOrgLimitWarningPayload + + """Updates a single `OrgLimitCredit` using a unique key and a patch.""" + updateOrgLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitCreditInput! + ): UpdateOrgLimitCreditPayload + + """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" + updateAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditCodeInput! + ): UpdateAppLimitCreditCodePayload + + """Updates a single `AppLimitEvent` using a unique key and a patch.""" + updateAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitEventInput! + ): UpdateAppLimitEventPayload + + """Updates a single `OrgLimitEvent` using a unique key and a patch.""" + updateOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitEventInput! + ): UpdateOrgLimitEventPayload + + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload + + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload + + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload + + """Deletes a single `AppLimitCapsDefault` using a unique key.""" + deleteAppLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCapsDefaultInput! + ): DeleteAppLimitCapsDefaultPayload + + """Deletes a single `OrgLimitCapsDefault` using a unique key.""" + deleteOrgLimitCapsDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitCapsDefaultInput! + ): DeleteOrgLimitCapsDefaultPayload + + """Deletes a single `AppLimitCap` using a unique key.""" + deleteAppLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCapInput! + ): DeleteAppLimitCapPayload + + """Deletes a single `OrgLimitCap` using a unique key.""" + deleteOrgLimitCap( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitCapInput! + ): DeleteOrgLimitCapPayload + + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload + + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload + + """Deletes a single `AppLimitCreditRedemption` using a unique key.""" + deleteAppLimitCreditRedemption( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditRedemptionInput! + ): DeleteAppLimitCreditRedemptionPayload + + """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" + deleteAppLimitCreditCodeItem( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditCodeItemInput! + ): DeleteAppLimitCreditCodeItemPayload + + """Deletes a single `AppLimitWarning` using a unique key.""" + deleteAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitWarningInput! + ): DeleteAppLimitWarningPayload + + """Deletes a single `AppLimitCredit` using a unique key.""" + deleteAppLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditInput! + ): DeleteAppLimitCreditPayload + + """Deletes a single `OrgLimitWarning` using a unique key.""" + deleteOrgLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitWarningInput! + ): DeleteOrgLimitWarningPayload + + """Deletes a single `OrgLimitCredit` using a unique key.""" + deleteOrgLimitCredit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitCreditInput! + ): DeleteOrgLimitCreditPayload + + """Deletes a single `AppLimitCreditCode` using a unique key.""" + deleteAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditCodeInput! + ): DeleteAppLimitCreditCodePayload + + """Deletes a single `AppLimitEvent` using a unique key.""" + deleteAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitEventInput! + ): DeleteAppLimitEventPayload + + """Deletes a single `OrgLimitEvent` using a unique key.""" + deleteOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitEventInput! + ): DeleteOrgLimitEventPayload + + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload + + """Deletes a single `OrgLimitAggregate` using a unique key.""" + deleteOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitAggregateInput! + ): DeleteOrgLimitAggregatePayload + + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload + + """ + 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 `seedAppLimitCapsDefaults` mutation.""" +type SeedAppLimitCapsDefaultsPayload { + """ + The 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 `seedAppLimitCapsDefaults` mutation.""" +input SeedAppLimitCapsDefaultsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + defaults: JSON +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""The output of our `seedAppLimitDefaults` mutation.""" +type SeedAppLimitDefaultsPayload { + """ + The 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 `seedAppLimitDefaults` mutation.""" +input SeedAppLimitDefaultsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + defaults: JSON +} + +"""The output of our `seedOrgLimitCapsDefaults` mutation.""" +type SeedOrgLimitCapsDefaultsPayload { + """ + The 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 `seedOrgLimitCapsDefaults` mutation.""" +input SeedOrgLimitCapsDefaultsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + defaults: JSON +} + +"""The output of our `seedOrgLimitDefaults` mutation.""" +type SeedOrgLimitDefaultsPayload { + """ + The 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 `seedOrgLimitDefaults` mutation.""" +input SeedOrgLimitDefaultsInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + defaults: JSON +} + +"""The output of our create `AppLimitCapsDefault` mutation.""" +type CreateAppLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCapsDefault` that was created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge +} + +"""All input for the create `AppLimitCapsDefault` mutation.""" +input CreateAppLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCapsDefault` to be created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefaultInput! +} + +"""An input for mutations affecting `AppLimitCapsDefault`""" +input AppLimitCapsDefaultInput { + id: UUID + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt +} + +"""The output of our create `OrgLimitCapsDefault` mutation.""" +type CreateOrgLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCapsDefault` that was created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge +} + +"""All input for the create `OrgLimitCapsDefault` mutation.""" +input CreateOrgLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitCapsDefault` to be created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefaultInput! +} + +"""An input for mutations affecting `OrgLimitCapsDefault`""" +input OrgLimitCapsDefaultInput { + id: UUID + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt +} + +"""The output of our create `AppLimitCap` mutation.""" +type CreateAppLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCap` that was created by this mutation.""" + appLimitCap: AppLimitCap + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge +} + +"""All input for the create `AppLimitCap` mutation.""" +input CreateAppLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCap` to be created by this mutation.""" + appLimitCap: AppLimitCapInput! +} + +"""An input for mutations affecting `AppLimitCap`""" +input AppLimitCapInput { + id: UUID + + """Name identifier of the cap being overridden""" + name: String! + + """Entity this cap override applies to""" + entityId: UUID! + + """Override cap value for this entity""" + max: BigInt +} + +"""The output of our create `OrgLimitCap` mutation.""" +type CreateOrgLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCap` that was created by this mutation.""" + orgLimitCap: OrgLimitCap + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge +} + +"""All input for the create `OrgLimitCap` mutation.""" +input CreateOrgLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitCap` to be created by this mutation.""" + orgLimitCap: OrgLimitCapInput! +} + +"""An input for mutations affecting `OrgLimitCap`""" +input OrgLimitCapInput { + id: UUID + + """Name identifier of the cap being overridden""" + name: String! + + """Entity this cap override applies to""" + entityId: UUID! + + """Override cap value for this entity""" + max: BigInt +} + +"""The output of our create `AppLimitDefault` mutation.""" +type CreateAppLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! +} + +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our create `OrgLimitDefault` mutation.""" +type CreateOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! +} + +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our create `AppLimitCreditRedemption` mutation.""" +type CreateAppLimitCreditRedemptionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditRedemption` that was created by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemption + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" + appLimitCreditRedemptionEdge( + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionEdge +} + +"""All input for the create `AppLimitCreditRedemption` mutation.""" +input CreateAppLimitCreditRedemptionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCreditRedemption` to be created by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemptionInput! +} + +"""An input for mutations affecting `AppLimitCreditRedemption`""" +input AppLimitCreditRedemptionInput { + id: UUID + + """FK to credit_codes — which code is being redeemed""" + creditCodeId: UUID! + + """Entity receiving the credits (personal org user_id or org entity_id)""" + entityId: UUID! + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String +} + +"""The output of our create `AppLimitCreditCodeItem` mutation.""" +type CreateAppLimitCreditCodeItemPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCodeItem` that was created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge +} + +"""All input for the create `AppLimitCreditCodeItem` mutation.""" +input CreateAppLimitCreditCodeItemInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCreditCodeItem` to be created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItemInput! +} + +"""An input for mutations affecting `AppLimitCreditCodeItem`""" +input AppLimitCreditCodeItemInput { + id: UUID + + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! + + """Number of credits this item grants per redemption""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String +} + +"""The output of our create `AppLimitWarning` mutation.""" +type CreateAppLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitWarning` that was created by this mutation.""" + appLimitWarning: AppLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge +} + +"""All input for the create `AppLimitWarning` mutation.""" +input CreateAppLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitWarning` to be created by this mutation.""" + appLimitWarning: AppLimitWarningInput! +} + +"""An input for mutations affecting `AppLimitWarning`""" +input AppLimitWarningInput { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! +} + +"""The output of our create `AppLimitCredit` mutation.""" +type CreateAppLimitCreditPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCredit` that was created by this mutation.""" + appLimitCredit: AppLimitCredit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge +} + +"""All input for the create `AppLimitCredit` mutation.""" +input CreateAppLimitCreditInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCredit` to be created by this mutation.""" + appLimitCredit: AppLimitCreditInput! +} + +"""An input for mutations affecting `AppLimitCredit`""" +input AppLimitCreditInput { + id: UUID + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! + + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String +} + +"""The output of our create `OrgLimitWarning` mutation.""" +type CreateOrgLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitWarning` that was created by this mutation.""" + orgLimitWarning: OrgLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge +} + +"""All input for the create `OrgLimitWarning` mutation.""" +input CreateOrgLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitWarning` to be created by this mutation.""" + orgLimitWarning: OrgLimitWarningInput! +} + +"""An input for mutations affecting `OrgLimitWarning`""" +input OrgLimitWarningInput { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! + + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID +} + +"""The output of our create `OrgLimitCredit` mutation.""" +type CreateOrgLimitCreditPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCredit` that was created by this mutation.""" + orgLimitCredit: OrgLimitCredit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge +} + +"""All input for the create `OrgLimitCredit` mutation.""" +input CreateOrgLimitCreditInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitCredit` to be created by this mutation.""" + orgLimitCredit: OrgLimitCreditInput! +} + +"""An input for mutations affecting `OrgLimitCredit`""" +input OrgLimitCreditInput { + id: UUID + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! + + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String +} + +"""The output of our create `AppLimitCreditCode` mutation.""" +type CreateAppLimitCreditCodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCode` that was created by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the create `AppLimitCreditCode` mutation.""" +input CreateAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitCreditCode` to be created by this mutation.""" + appLimitCreditCode: AppLimitCreditCodeInput! +} + +"""An input for mutations affecting `AppLimitCreditCode`""" +input AppLimitCreditCodeInput { + id: UUID + + """Human-readable credit code (case-insensitive, unique)""" + code: String! + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime +} + +"""The output of our create `AppLimitEvent` mutation.""" +type CreateAppLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitEvent` that was created by this mutation.""" + appLimitEvent: AppLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge +} + +"""All input for the create `AppLimitEvent` mutation.""" +input CreateAppLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitEvent` to be created by this mutation.""" + appLimitEvent: AppLimitEventInput! +} + +"""An input for mutations affecting `AppLimitEvent`""" +input AppLimitEventInput { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""The output of our create `OrgLimitEvent` mutation.""" +type CreateOrgLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitEvent` that was created by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge +} + +"""All input for the create `OrgLimitEvent` mutation.""" +input CreateOrgLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitEvent` to be created by this mutation.""" + orgLimitEvent: OrgLimitEventInput! +} + +"""An input for mutations affecting `OrgLimitEvent`""" +input OrgLimitEventInput { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""The output of our create `AppLimit` mutation.""" +type CreateAppLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! +} + +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""The output of our create `OrgLimitAggregate` mutation.""" +type CreateOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was created by this mutation.""" + orgLimitAggregate: OrgLimitAggregate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge +} + +"""All input for the create `OrgLimitAggregate` mutation.""" +input CreateOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitAggregate` to be created by this mutation.""" + orgLimitAggregate: OrgLimitAggregateInput! +} + +"""An input for mutations affecting `OrgLimitAggregate`""" +input OrgLimitAggregateInput { + id: UUID + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""The output of our create `OrgLimit` mutation.""" +type CreateOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! +} + +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID! + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""The output of our update `AppLimitCapsDefault` mutation.""" +type UpdateAppLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCapsDefault` that was updated by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge +} + +"""All input for the `updateAppLimitCapsDefault` mutation.""" +input UpdateAppLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. + """ + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch! +} + +""" +Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. +""" +input AppLimitCapsDefaultPatch { + id: UUID + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt +} + +"""The output of our update `OrgLimitCapsDefault` mutation.""" +type UpdateOrgLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCapsDefault` that was updated by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge +} + +"""All input for the `updateOrgLimitCapsDefault` mutation.""" +input UpdateOrgLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. + """ + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch! +} + +""" +Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. +""" +input OrgLimitCapsDefaultPatch { + id: UUID + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt +} + +"""The output of our update `AppLimitCap` mutation.""" +type UpdateAppLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCap` that was updated by this mutation.""" + appLimitCap: AppLimitCap + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge +} + +"""All input for the `updateAppLimitCap` mutation.""" +input UpdateAppLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitCap` being updated. + """ + appLimitCapPatch: AppLimitCapPatch! +} + +""" +Represents an update to a `AppLimitCap`. Fields that are set will be updated. +""" +input AppLimitCapPatch { + id: UUID + + """Name identifier of the cap being overridden""" + name: String + + """Entity this cap override applies to""" + entityId: UUID + + """Override cap value for this entity""" + max: BigInt +} + +"""The output of our update `OrgLimitCap` mutation.""" +type UpdateOrgLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCap` that was updated by this mutation.""" + orgLimitCap: OrgLimitCap + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge +} + +"""All input for the `updateOrgLimitCap` mutation.""" +input UpdateOrgLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitCap` being updated. + """ + orgLimitCapPatch: OrgLimitCapPatch! +} + +""" +Represents an update to a `OrgLimitCap`. Fields that are set will be updated. +""" +input OrgLimitCapPatch { + id: UUID + + """Name identifier of the cap being overridden""" + name: String + + """Entity this cap override applies to""" + entityId: UUID + + """Override cap value for this entity""" + max: BigInt +} + +"""The output of our update `AppLimitDefault` mutation.""" +type UpdateAppLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitDefault` being updated. + """ + appLimitDefaultPatch: AppLimitDefaultPatch! +} + +""" +Represents an update to a `AppLimitDefault`. Fields that are set will be updated. +""" +input AppLimitDefaultPatch { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our update `OrgLimitDefault` mutation.""" +type UpdateOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { + """ + An arbitrary string value 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 `OrgLimitDefault` being updated. + """ + orgLimitDefaultPatch: OrgLimitDefaultPatch! +} + +""" +Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +""" +input OrgLimitDefaultPatch { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our update `AppLimitCreditRedemption` mutation.""" +type UpdateAppLimitCreditRedemptionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditRedemption` that was updated by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemption + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" + appLimitCreditRedemptionEdge( + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionEdge +} + +"""All input for the `updateAppLimitCreditRedemption` mutation.""" +input UpdateAppLimitCreditRedemptionInput { + """ + An arbitrary string value 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 `AppLimitCreditRedemption` being updated. + """ + appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch! +} + +""" +Represents an update to a `AppLimitCreditRedemption`. Fields that are set will be updated. +""" +input AppLimitCreditRedemptionPatch { + id: UUID + + """FK to credit_codes — which code is being redeemed""" + creditCodeId: UUID + + """Entity receiving the credits (personal org user_id or org entity_id)""" + entityId: UUID + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String +} + +"""The output of our update `AppLimitCreditCodeItem` mutation.""" +type UpdateAppLimitCreditCodeItemPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCodeItem` that was updated by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge +} + +"""All input for the `updateAppLimitCreditCodeItem` mutation.""" +input UpdateAppLimitCreditCodeItemInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. + """ + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! +} + +""" +Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. +""" +input AppLimitCreditCodeItemPatch { + id: UUID + + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID + + """Number of credits this item grants per redemption""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String +} + +"""The output of our update `AppLimitWarning` mutation.""" +type UpdateAppLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitWarning` that was updated by this mutation.""" + appLimitWarning: AppLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge +} + +"""All input for the `updateAppLimitWarning` mutation.""" +input UpdateAppLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitWarning` being updated. + """ + appLimitWarningPatch: AppLimitWarningPatch! +} + +""" +Represents an update to a `AppLimitWarning`. Fields that are set will be updated. +""" +input AppLimitWarningPatch { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String +} + +"""The output of our update `AppLimitCredit` mutation.""" +type UpdateAppLimitCreditPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCredit` that was updated by this mutation.""" + appLimitCredit: AppLimitCredit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge +} + +"""All input for the `updateAppLimitCredit` mutation.""" +input UpdateAppLimitCreditInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitCredit` being updated. + """ + appLimitCreditPatch: AppLimitCreditPatch! +} + +""" +Represents an update to a `AppLimitCredit`. Fields that are set will be updated. +""" +input AppLimitCreditPatch { + id: UUID + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID + + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String +} + +"""The output of our update `OrgLimitWarning` mutation.""" +type UpdateOrgLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitWarning` that was updated by this mutation.""" + orgLimitWarning: OrgLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge +} + +"""All input for the `updateOrgLimitWarning` mutation.""" +input UpdateOrgLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitWarning` being updated. + """ + orgLimitWarningPatch: OrgLimitWarningPatch! +} + +""" +Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. +""" +input OrgLimitWarningPatch { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String + + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID +} + +"""The output of our update `OrgLimitCredit` mutation.""" +type UpdateOrgLimitCreditPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCredit` that was updated by this mutation.""" + orgLimitCredit: OrgLimitCredit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge +} + +"""All input for the `updateOrgLimitCredit` mutation.""" +input UpdateOrgLimitCreditInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitCredit` being updated. + """ + orgLimitCreditPatch: OrgLimitCreditPatch! +} + +""" +Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. +""" +input OrgLimitCreditPatch { + id: UUID + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID + + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Membership prefix identifying the entity kind (org, team, app)""" + entityType: String + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String +} + +"""The output of our update `AppLimitCreditCode` mutation.""" +type UpdateAppLimitCreditCodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCode` that was updated by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the `updateAppLimitCreditCode` mutation.""" +input UpdateAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitCreditCode` being updated. + """ + appLimitCreditCodePatch: AppLimitCreditCodePatch! +} + +""" +Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +""" +input AppLimitCreditCodePatch { + id: UUID + + """Human-readable credit code (case-insensitive, unique)""" + code: String + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime +} + +"""The output of our update `AppLimitEvent` mutation.""" +type UpdateAppLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitEvent` that was updated by this mutation.""" + appLimitEvent: AppLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge +} + +"""All input for the `updateAppLimitEvent` mutation.""" +input UpdateAppLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimitEvent` being updated. + """ + appLimitEventPatch: AppLimitEventPatch! +} + +""" +Represents an update to a `AppLimitEvent`. Fields that are set will be updated. +""" +input AppLimitEventPatch { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""The output of our update `OrgLimitEvent` mutation.""" +type UpdateOrgLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitEvent` that was updated by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge +} + +"""All input for the `updateOrgLimitEvent` mutation.""" +input UpdateOrgLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitEvent` being updated. + """ + orgLimitEventPatch: OrgLimitEventPatch! +} + +""" +Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. +""" +input OrgLimitEventPatch { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """ + Resolved billable organization via get_organization_id; NULL for app-level events + """ + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""The output of our update `AppLimit` mutation.""" +type UpdateAppLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppLimit` being updated. + """ + appLimitPatch: AppLimitPatch! +} + +""" +Represents an update to a `AppLimit`. Fields that are set will be updated. +""" +input AppLimitPatch { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""The output of our update `OrgLimitAggregate` mutation.""" +type UpdateOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was updated by this mutation.""" + orgLimitAggregate: OrgLimitAggregate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge +} + +"""All input for the `updateOrgLimitAggregate` mutation.""" +input UpdateOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitAggregate` being updated. + """ + orgLimitAggregatePatch: OrgLimitAggregatePatch! +} + +""" +Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. +""" +input OrgLimitAggregatePatch { + id: UUID + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""The output of our update `OrgLimit` mutation.""" +type UpdateOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimit` that was updated by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `updateOrgLimit` mutation.""" +input UpdateOrgLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimit` being updated. + """ + orgLimitPatch: OrgLimitPatch! +} + +""" +Represents an update to a `OrgLimit`. Fields that are set will be updated. +""" +input OrgLimitPatch { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID + + """Resolved billable organization via get_organization_id""" + organizationId: UUID + + """Entity type prefix (org, team, app, etc.) for interpreting entity_id""" + entityType: String +} + +"""The output of our delete `AppLimitCapsDefault` mutation.""" +type DeleteAppLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCapsDefault` that was deleted by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge +} + +"""All input for the `deleteAppLimitCapsDefault` mutation.""" +input DeleteAppLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitCapsDefault` mutation.""" +type DeleteOrgLimitCapsDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCapsDefault` that was deleted by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge +} + +"""All input for the `deleteOrgLimitCapsDefault` mutation.""" +input DeleteOrgLimitCapsDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCap` mutation.""" +type DeleteAppLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCap` that was deleted by this mutation.""" + appLimitCap: AppLimitCap + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge +} + +"""All input for the `deleteAppLimitCap` mutation.""" +input DeleteAppLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitCap` mutation.""" +type DeleteOrgLimitCapPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCap` that was deleted by this mutation.""" + orgLimitCap: OrgLimitCap + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge +} + +"""All input for the `deleteOrgLimitCap` mutation.""" +input DeleteOrgLimitCapInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitDefault` mutation.""" +type DeleteAppLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitDefault` mutation.""" +type DeleteOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCreditRedemption` mutation.""" +type DeleteAppLimitCreditRedemptionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditRedemption` that was deleted by this mutation.""" + appLimitCreditRedemption: AppLimitCreditRedemption + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditRedemption`. May be used by Relay 1.""" + appLimitCreditRedemptionEdge( + """The method to use when ordering `AppLimitCreditRedemption`.""" + orderBy: [AppLimitCreditRedemptionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditRedemptionEdge +} + +"""All input for the `deleteAppLimitCreditRedemption` mutation.""" +input DeleteAppLimitCreditRedemptionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCreditCodeItem` mutation.""" +type DeleteAppLimitCreditCodeItemPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge +} + +"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" +input DeleteAppLimitCreditCodeItemInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitWarning` mutation.""" +type DeleteAppLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitWarning` that was deleted by this mutation.""" + appLimitWarning: AppLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge +} + +"""All input for the `deleteAppLimitWarning` mutation.""" +input DeleteAppLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCredit` mutation.""" +type DeleteAppLimitCreditPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCredit` that was deleted by this mutation.""" + appLimitCredit: AppLimitCredit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge +} + +"""All input for the `deleteAppLimitCredit` mutation.""" +input DeleteAppLimitCreditInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitWarning` mutation.""" +type DeleteOrgLimitWarningPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitWarning` that was deleted by this mutation.""" + orgLimitWarning: OrgLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge +} + +"""All input for the `deleteOrgLimitWarning` mutation.""" +input DeleteOrgLimitWarningInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitCredit` mutation.""" +type DeleteOrgLimitCreditPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitCredit` that was deleted by this mutation.""" + orgLimitCredit: OrgLimitCredit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge +} + +"""All input for the `deleteOrgLimitCredit` mutation.""" +input DeleteOrgLimitCreditInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitCreditCode` mutation.""" +type DeleteAppLimitCreditCodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitCreditCode` that was deleted by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the `deleteAppLimitCreditCode` mutation.""" +input DeleteAppLimitCreditCodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppLimitEvent` mutation.""" +type DeleteAppLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitEvent` that was deleted by this mutation.""" + appLimitEvent: AppLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge +} + +"""All input for the `deleteAppLimitEvent` mutation.""" +input DeleteAppLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! +} + +"""The output of our delete `OrgLimitEvent` mutation.""" +type DeleteOrgLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitEvent` that was deleted by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge +} + +"""All input for the `deleteOrgLimitEvent` mutation.""" +input DeleteOrgLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! +} + +"""The output of our delete `AppLimit` mutation.""" +type DeleteAppLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitAggregate` mutation.""" +type DeleteOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was deleted by this mutation.""" + orgLimitAggregate: OrgLimitAggregate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge +} + +"""All input for the `deleteOrgLimitAggregate` mutation.""" +input DeleteOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimit` mutation.""" +type DeleteOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + 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/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index 074ee9ab2e..75533e2d20 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 44 +- **Tables:** 26 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index 53fcc9ce06..027e84fff8 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -25,45 +25,27 @@ const db = createClient({ | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | -| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | -| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | -| `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitCapsDefault` | findMany, findOne, create, update, delete | -| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitCredit` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -194,139 +176,71 @@ const updated = await db.orgPermission.update({ where: { id: '' }, data: { const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditRedemption` - -CRUD operations for AppLimitCreditRedemption records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditRedemption records -const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Create -const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCodeItem` - -CRUD operations for AppLimitCreditCodeItem records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `defaultLimitId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCodeItem records -const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Create -const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCredit` +### `db.orgMember` -CRUD operations for AppLimitCredit records. +CRUD operations for OrgMember records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | +| `isAdmin` | Boolean | Yes | | `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appLimitCredit records -const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); +// List all orgMember records +const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMember` +### `db.appPermissionDefault` -CRUD operations for OrgMember records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | +| `permissions` | BitString | Yes | **Operations:** ```typescript -// List all orgMember records -const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.orgPermissionDefault` -CRUD operations for AppPermissionDefault records. +CRUD operations for OrgPermissionDefault records. **Fields:** @@ -334,24 +248,25 @@ CRUD operations for AppPermissionDefault records. |-------|------|----------| | `id` | UUID | No | | `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -422,676 +337,284 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermissionDefault` +### `db.orgAdminGrant` -CRUD operations for OrgPermissionDefault records. +CRUD operations for OrgAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); +// List all orgAdminGrant records +const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.orgOwnerGrant` -CRUD operations for AppMembershipDefault records. +CRUD operations for OrgOwnerGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all orgOwnerGrant records +const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdgeGrant` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdgeGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | | `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | | `grantorId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgChartEdgeGrant records +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.appClaimedInvite` -CRUD operations for OrgMembershipDefault records. +CRUD operations for AppClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all appClaimedInvite records +const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.membershipType` -CRUD operations for OrgOwnerGrant records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `scope` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, scope: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', scope: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCapsDefault` +### `db.appGrant` -CRUD operations for AppLimitCapsDefault records. +CRUD operations for AppGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCapsDefault records -const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appGrant records +const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitCapsDefault` +### `db.appMembershipDefault` -CRUD operations for OrgLimitCapsDefault records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appMembershipDefault records +const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCap` +### `db.orgMembershipDefault` -CRUD operations for AppLimitCap records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | | `entityId` | UUID | Yes | -| `max` | BigInt | Yes | **Operations:** ```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdge` - -CRUD operations for OrgChartEdge records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | - -**Operations:** - -```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCode` - -CRUD operations for AppLimitCreditCode records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitWarning` - -CRUD operations for AppLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdgeGrant` - -CRUD operations for OrgChartEdgeGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitWarning` - -CRUD operations for OrgLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appGrant` - -CRUD operations for AppGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -1165,9 +688,9 @@ const updated = await db.orgGrant.update({ where: { id: '' }, data: { perm const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgChartEdge` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgChartEdge records. **Fields:** @@ -1176,117 +699,71 @@ CRUD operations for OrgMembershipSetting records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgChartEdge records +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` +### `db.orgMembershipSetting` -CRUD operations for AppLimitEvent records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` - -CRUD operations for OrgLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| | `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -1333,91 +810,6 @@ const updated = await db.appMembership.update({ where: { id: '' }, data: { const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - ### `db.appInvite` CRUD operations for AppInvite records. @@ -1459,129 +851,89 @@ const updated = await db.appInvite.update({ where: { id: '' }, data: { ema const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimit` +### `db.orgMembership` -CRUD operations for AppLimit records. +CRUD operations for OrgMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | | `entityId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); +// List all orgMembership records +const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimit` +### `db.orgMemberProfile` -CRUD operations for OrgLimit records. +CRUD operations for OrgMemberProfile records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index 9c9e9839c6..4fdc6e95eb 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -9,45 +9,27 @@ import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; -import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; -import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; -import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; -import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { OrgLimitCreditModel } from './models/orgLimitCredit'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { AppLimitWarningModel } from './models/appLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { OrgGrantModel } from './models/orgGrant'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { AppMembershipModel } from './models/appMembership'; +import { AppInviteModel } from './models/appInvite'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { AppInviteModel } from './models/appInvite'; -import { AppLimitModel } from './models/appLimit'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitModel } from './models/orgLimit'; import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -88,45 +70,27 @@ export function createClient(config: OrmClientConfig) { orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), - appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), - appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), orgAdminGrant: new OrgAdminGrantModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgOwnerGrant: new OrgOwnerGrantModel(client), - appLimitCapsDefault: new AppLimitCapsDefaultModel(client), - orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - orgLimitCredit: new OrgLimitCreditModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - appLimitWarning: new AppLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), orgGrant: new OrgGrantModel(client), + orgChartEdge: new OrgChartEdgeModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), appMembership: new AppMembershipModel(client), + appInvite: new AppInviteModel(client), orgMembership: new OrgMembershipModel(client), orgMemberProfile: new OrgMemberProfileModel(client), - appInvite: new AppInviteModel(client), - appLimit: new AppLimitModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimit: new OrgLimitModel(client), orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 9d6397d59c..c06ff000a6 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -266,40 +266,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ -export interface AppLimitCreditRedemption { - id: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string | null; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string | null; -} -/** Items within a credit code — each row grants credits for a specific limit definition */ -export interface AppLimitCreditCodeItem { - id: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string | null; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string | null; - /** Number of credits this item grants per redemption */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface AppLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; @@ -316,6 +282,14 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface OrgPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; + /** References the entity these default permissions apply to */ + entityId?: string | null; +} /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; @@ -338,26 +312,6 @@ export interface AppOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} /** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { id: string; @@ -371,18 +325,6 @@ export interface OrgAdminGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of ownership transfers and grants between members */ export interface OrgOwnerGrant { id: string; @@ -396,118 +338,6 @@ export interface OrgOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface OrgLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { id: string; @@ -540,20 +370,6 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; -} /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ @@ -562,8 +378,8 @@ export interface MembershipType { name?: string | null; /** Description of what this membership type represents */ description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope?: string | null; /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ parentMembershipType?: number | null; /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ @@ -582,6 +398,30 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -610,6 +450,22 @@ export interface OrgGrant { createdAt?: string | null; updatedAt?: string | null; } +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Organization this hierarchy edge belongs to */ + entityId?: string | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; +} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -636,62 +492,6 @@ export interface OrgMembershipSetting { /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ limitAllocationMode?: string | null; } -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { id: string; @@ -721,6 +521,32 @@ export interface AppMembership { actorId?: string | null; profileId?: string | null; } +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { + id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; @@ -777,119 +603,6 @@ export interface OrgMemberProfile { profilePicture?: ConstructiveInternalTypeImage | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ -export interface OrgLimitAggregate { - id: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string | null; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string | null; - /** Current aggregate usage count for this entity and limit */ - num?: string | null; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - entityId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; /** Email address of the invited recipient */ @@ -937,66 +650,31 @@ export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface AppLimitCreditRedemptionRelations { - creditCode?: AppLimitCreditCode | null; -} -export interface AppLimitCreditCodeItemRelations { - creditCode?: AppLimitCreditCode | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditRelations { - defaultLimit?: AppLimitDefault | null; -} export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} +export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface OrgPermissionDefaultRelations {} -export interface AppMembershipDefaultRelations {} export interface OrgAdminGrantRelations {} -export interface OrgMembershipDefaultRelations {} export interface OrgOwnerGrantRelations {} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface OrgChartEdgeRelations {} -export interface AppLimitDefaultRelations { - appLimitCreditsByDefaultLimitId?: ConnectionResult; - appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitDefaultRelations { - orgLimitCreditsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitCreditRelations { - defaultLimit?: OrgLimitDefault | null; -} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} -export interface OrgLimitWarningRelations {} export interface MembershipTypeRelations {} export interface AppGrantRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} export interface OrgGrantRelations {} +export interface OrgChartEdgeRelations {} export interface OrgMembershipSettingRelations {} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface AppMembershipRelations {} +export interface AppInviteRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } -export interface AppInviteRelations {} -export interface AppLimitRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & @@ -1005,52 +683,32 @@ export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & - AppLimitCreditRedemptionRelations; -export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & - AppLimitCreditCodeItemRelations; -export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; +export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; +export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; -export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { @@ -1075,38 +733,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type AppLimitCreditRedemptionSelect = { - id?: boolean; - creditCodeId?: boolean; - entityId?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; -}; -export type AppLimitCreditCodeItemSelect = { - id?: boolean; - creditCodeId?: boolean; - defaultLimitId?: boolean; - amount?: boolean; - creditType?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; export type OrgMemberSelect = { id?: boolean; isAdmin?: boolean; @@ -1117,7 +743,12 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppAdminGrantSelect = { +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; +}; +export type AppAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; @@ -1133,20 +764,6 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -1156,15 +773,6 @@ export type OrgAdminGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; -}; export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; @@ -1174,106 +782,6 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgChartEdgeSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - appLimitCreditsByDefaultLimitId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - appLimitCreditCodeItemsByDefaultLimitId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - orgLimitCreditsByDefaultLimitId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; -}; -export type OrgLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - entityId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - defaultLimit?: { - select: OrgLimitDefaultSelect; - }; -}; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; export type OrgChartEdgeGrantSelect = { id?: boolean; entityId?: boolean; @@ -1293,19 +801,11 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type OrgLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; - entityId?: boolean; -}; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; - prefix?: boolean; + scope?: boolean; parentMembershipType?: boolean; hasUsersTableEntry?: boolean; }; @@ -1318,6 +818,24 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; export type OrgClaimedInviteSelect = { id?: boolean; data?: boolean; @@ -1337,6 +855,16 @@ export type OrgGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgChartEdgeSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; +}; export type OrgMembershipSettingSelect = { id?: boolean; createdAt?: boolean; @@ -1353,36 +881,6 @@ export type OrgMembershipSettingSelect = { populateMemberEmail?: boolean; limitAllocationMode?: boolean; }; -export type AppLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -1401,6 +899,21 @@ export type AppMembershipSelect = { actorId?: boolean; profileId?: boolean; }; +export type AppInviteSelect = { + id?: boolean; + email?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -1440,68 +953,6 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; -export type OrgLimitAggregateSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - reserved?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; -}; export type OrgInviteSelect = { id?: boolean; email?: boolean; @@ -1571,66 +1022,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1659,6 +1050,20 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } +export interface OrgPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultFilter; +} export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1699,42 +1104,6 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; -} -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1757,28 +1126,6 @@ export interface OrgAdminGrantFilter { /** Negates the expression. */ not?: OrgAdminGrantFilter; } -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; -} export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1801,203 +1148,7 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; -} -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -export interface OrgChartEdgeGrantFilter { +export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `entityId` field. */ @@ -2041,26 +1192,6 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; -} export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; @@ -2068,8 +1199,8 @@ export interface MembershipTypeFilter { name?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `parentMembershipType` field. */ parentMembershipType?: IntFilter; /** Filter by the object’s `hasUsersTableEntry` field. */ @@ -2103,6 +1234,50 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} export interface OrgClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2147,6 +1322,30 @@ export interface OrgGrantFilter { /** Negates the expression. */ not?: OrgGrantFilter; } +export interface OrgChartEdgeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; + /** Checks for all expressions in this list. */ + and?: OrgChartEdgeFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgChartEdgeFilter[]; + /** Negates the expression. */ + not?: OrgChartEdgeFilter; +} export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2183,74 +1382,6 @@ export interface OrgMembershipSettingFilter { /** Negates the expression. */ not?: OrgMembershipSettingFilter; } -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2291,6 +1422,38 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } +export interface AppInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: AppInviteFilter[]; + /** Negates the expression. */ + not?: AppInviteFilter; +} export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2371,13 +1534,15 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface AppInviteFilter { +export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; /** Filter by the object’s `senderId` field. */ senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; /** Filter by the object’s `inviteToken` field. */ inviteToken?: StringFilter; /** Filter by the object’s `inviteValid` field. */ @@ -2390,162 +1555,22 @@ export interface AppInviteFilter { multiple?: BooleanFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; + and?: OrgInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; + or?: OrgInviteFilter[]; /** Negates the expression. */ - not?: AppInviteFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; -} -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; + not?: OrgInviteFilter; } // ============ OrderBy Types ============ export type OrgGetManagersRecordsOrderBy = @@ -2592,46 +1617,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type OrgMemberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,6 +1637,16 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2684,34 +1679,6 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2730,24 +1697,6 @@ export type OrgAdminGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2766,140 +1715,6 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2938,22 +1753,6 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2964,8 +1763,8 @@ export type MembershipTypeOrderBy = | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' @@ -2988,32 +1787,68 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type OrgClaimedInviteOrderBy = +export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgGrantOrderBy = + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgClaimedInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' @@ -3026,6 +1861,26 @@ export type OrgGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgChartEdgeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3058,66 +1913,6 @@ export type OrgMembershipSettingOrderBy = | 'POPULATE_MEMBER_EMAIL_DESC' | 'LIMIT_ALLOCATION_MODE_ASC' | 'LIMIT_ALLOCATION_MODE_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3154,6 +1949,36 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3220,130 +2045,6 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3469,76 +2170,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - appLimitCreditRedemption: { - creditCodeId: string; - entityId: string; - }; -} -export interface AppLimitCreditRedemptionPatch { - creditCodeId?: string | null; - entityId?: string | null; -} -export interface UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - appLimitCreditCodeItem: { - creditCodeId: string; - defaultLimitId: string; - amount: string; - creditType?: string; - }; -} -export interface AppLimitCreditCodeItemPatch { - creditCodeId?: string | null; - defaultLimitId?: string | null; - amount?: string | null; - creditType?: string | null; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - appLimitCredit: { - defaultLimitId: string; - actorId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface AppLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - appLimitCreditPatch: AppLimitCreditPatch; -} -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMemberInput { clientMutationId?: string; orgMember: { @@ -3579,6 +2210,26 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; appAdminGrant: { @@ -3623,203 +2274,251 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateOrgAdminGrantInput { clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; + orgAdminGrant: { + isGrant?: boolean; + actorId: string; entityId: string; + grantorId?: string; }; } -export interface OrgPermissionDefaultPatch { - permissions?: string | null; +export interface OrgAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; entityId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgPermissionDefaultInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteOrgPermissionDefaultInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateOrgOwnerGrantInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; + orgOwnerGrant: { + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; } -export interface UpdateAppMembershipDefaultInput { +export interface OrgOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgAdminGrantInput { +export interface CreateOrgChartEdgeGrantInput { clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; + orgChartEdgeGrant: { entityId: string; + childId: string; + parentId?: string; grantorId?: string; + isGrant?: boolean; + positionTitle?: string; + positionLevel?: number; }; } -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgChartEdgeGrantPatch { entityId?: string | null; + childId?: string | null; + parentId?: string | null; grantorId?: string | null; + isGrant?: boolean | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateOrgAdminGrantInput { +export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppClaimedInviteInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appClaimedInvitePatch: AppClaimedInvitePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgOwnerGrantInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgOwnerGrant: { + membershipType: { + name: string; + description: string; + scope: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; + }; +} +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + scope?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + id: number; + membershipTypePatch: MembershipTypePatch; +} +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + appGrant: { + permissions?: string; isGrant?: boolean; actorId: string; - entityId: string; grantorId?: string; }; } -export interface OrgOwnerGrantPatch { +export interface AppGrantPatch { + permissions?: string | null; isGrant?: boolean | null; actorId?: string | null; - entityId?: string | null; grantorId?: string | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapsDefaultInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appLimitCapsDefault: { - name: string; - max?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface AppLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; } -export interface UpdateAppLimitCapsDefaultInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -export interface DeleteAppLimitCapsDefaultInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCapsDefaultInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - orgLimitCapsDefault: { - name: string; - max?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; }; } -export interface OrgLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; } -export interface UpdateOrgLimitCapsDefaultInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -export interface DeleteOrgLimitCapsDefaultInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCapInput { +export interface CreateOrgClaimedInviteInput { clientMutationId?: string; - appLimitCap: { - name: string; + orgClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; entityId: string; - max?: string; }; } -export interface AppLimitCapPatch { - name?: string | null; +export interface OrgClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; entityId?: string | null; - max?: string | null; } -export interface UpdateAppLimitCapInput { +export interface UpdateOrgClaimedInviteInput { clientMutationId?: string; id: string; - appLimitCapPatch: AppLimitCapPatch; + orgClaimedInvitePatch: OrgClaimedInvitePatch; } -export interface DeleteAppLimitCapInput { +export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCapInput { +export interface CreateOrgGrantInput { clientMutationId?: string; - orgLimitCap: { - name: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; entityId: string; - max?: string; + grantorId?: string; }; } -export interface OrgLimitCapPatch { - name?: string | null; +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; entityId?: string | null; - max?: string | null; + grantorId?: string | null; } -export interface UpdateOrgLimitCapInput { +export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; - orgLimitCapPatch: OrgLimitCapPatch; + orgGrantPatch: OrgGrantPatch; } -export interface DeleteOrgLimitCapInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } @@ -3849,2467 +2548,855 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - appLimitDefault: { - name: string; - max?: string; - softMax?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface AppLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: string; - softMax?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitCreditInput { +export interface CreateAppInviteInput { clientMutationId?: string; - orgLimitCredit: { - defaultLimitId: string; - actorId?: string; - entityId?: string; - amount: string; - creditType?: string; - reason?: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + expiresAt?: string; }; } -export interface OrgLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - entityId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; - }; -} -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeGrantInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - orgChartEdgeGrant: { + orgMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; entityId: string; - childId: string; - parentId?: string; - grantorId?: string; - isGrant?: boolean; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgeGrantPatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -export interface DeleteOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; -} -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; -} -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - orgLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - entityId?: string; + isReadOnly?: boolean; + profileId?: string; }; } -export interface OrgLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; entityId?: string | null; + isReadOnly?: boolean | null; + profileId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateAppGrantInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; + orgMemberProfile: { + membershipId: string; + entityId: string; actorId: string; - grantorId?: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; +export interface OrgMemberProfilePatch { + membershipId?: string | null; + entityId?: string | null; actorId?: string | null; - grantorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgClaimedInviteInput { +export interface CreateOrgInviteInput { clientMutationId?: string; - orgClaimedInvite: { - data?: Record; + orgInvite: { + email?: ConstructiveInternalTypeEmail; senderId?: string; receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + isReadOnly?: boolean; + expiresAt?: string; entityId: string; }; } -export interface OrgClaimedInvitePatch { - data?: Record | null; +export interface OrgInvitePatch { + email?: ConstructiveInternalTypeEmail | null; senderId?: string | null; receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; + isReadOnly?: boolean | null; + expiresAt?: string | null; entityId?: string | null; } -export interface UpdateOrgClaimedInviteInput { +export interface UpdateOrgInviteInput { clientMutationId?: string; id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; + orgInvitePatch: OrgInvitePatch; } -export interface DeleteOrgClaimedInviteInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGrantInput { +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SubmitAppInviteCodeInput { clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; + token?: string; } -export interface UpdateOrgGrantInput { +export interface SubmitOrgInviteCodeInput { clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; + token?: string; } -export interface DeleteOrgGrantInput { - clientMutationId?: string; - 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; } -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface AppLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - orgLimitAggregate: { - name?: string; - entityId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - reserved?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitAggregatePatch { - name?: string | null; - entityId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - reserved?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -export interface DeleteOrgLimitAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - entityId: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - orgInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - receiverId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - isReadOnly?: boolean; - expiresAt?: string; - entityId: string; - }; -} -export interface OrgInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - receiverId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - isReadOnly?: boolean | null; - expiresAt?: string | null; - entityId?: string | null; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - orgInvitePatch: OrgInvitePatch; -} -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - AppLimitDefault: { - appLimitCreditsByDefaultLimitId: 'AppLimitCredit', - appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', - }, - OrgLimitDefault: { - orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -/** 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; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * 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 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; -} -/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ -export interface BigIntFilter { - /** 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; -} -/** 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; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** 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; -} -/** 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; -} -/** A connection to a list of `AppPermission` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - nodes?: { - select: AppPermissionSelect; - }; - edges?: { - select: AppPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - nodes?: { - select: OrgPermissionSelect; - }; - edges?: { - select: OrgPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface SubmitAppInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitAppInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitOrgInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitOrgInviteCodePayloadSelect = { - 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 CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type CreateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type UpdateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type DeleteAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type CreateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type UpdateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type DeleteAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type CreateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type UpdateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type DeleteAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type CreateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type UpdateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type DeleteAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was created by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type CreateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was updated by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type UpdateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was deleted by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type DeleteOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type CreateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type UpdateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type DeleteAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type CreateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type UpdateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type DeleteOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeEmailFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeEmail; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeEmail; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: ConstructiveInternalTypeEmail[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: ConstructiveInternalTypeEmail[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: ConstructiveInternalTypeEmail; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -export type CreateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** 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; } -export type UpdateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +/** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; } -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; +export type AppPermissionConnectionSelect = { + nodes?: { + select: AppPermissionSelect; }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + edges?: { + select: AppPermissionEdgeSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + pageInfo?: { + select: PageInfoSelect; }; + totalCount?: boolean; }; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; } -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; +export type OrgPermissionConnectionSelect = { + nodes?: { + select: OrgPermissionSelect; }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + edges?: { + select: OrgPermissionEdgeSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + pageInfo?: { + select: PageInfoSelect; }; + totalCount?: boolean; }; -export interface CreateAppLimitCapsDefaultPayload { +export interface SubmitAppInviteCodePayload { clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; + result?: boolean | null; } -export type CreateAppLimitCapsDefaultPayloadSelect = { +export type SubmitAppInviteCodePayloadSelect = { clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; + result?: boolean; }; -export interface UpdateAppLimitCapsDefaultPayload { +export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; + result?: boolean | null; } -export type UpdateAppLimitCapsDefaultPayloadSelect = { +export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; + result?: boolean; }; -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | 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; } -export type DeleteAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; }; -export interface CreateOrgLimitCapsDefaultPayload { +export interface CreateAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type CreateOrgLimitCapsDefaultPayloadSelect = { +export type CreateAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface UpdateOrgLimitCapsDefaultPayload { +export interface UpdateAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type UpdateOrgLimitCapsDefaultPayloadSelect = { +export type UpdateAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface DeleteOrgLimitCapsDefaultPayload { +export interface DeleteAppPermissionPayload { clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; } -export type DeleteOrgLimitCapsDefaultPayloadSelect = { +export type DeleteAppPermissionPayloadSelect = { clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; + appPermission?: { + select: AppPermissionSelect; }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; }; }; -export interface CreateAppLimitCapPayload { +export interface CreateOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type CreateAppLimitCapPayloadSelect = { +export type CreateOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface UpdateAppLimitCapPayload { +export interface UpdateOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type UpdateAppLimitCapPayloadSelect = { +export type UpdateOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface DeleteAppLimitCapPayload { +export interface DeleteOrgPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; } -export type DeleteAppLimitCapPayloadSelect = { +export type DeleteOrgPermissionPayloadSelect = { clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; + orgPermission?: { + select: OrgPermissionSelect; }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; }; }; -export interface CreateOrgLimitCapPayload { +export interface CreateOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was created by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type CreateOrgLimitCapPayloadSelect = { +export type CreateOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { +export interface UpdateOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was updated by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type UpdateOrgLimitCapPayloadSelect = { +export type UpdateOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface DeleteOrgLimitCapPayload { +export interface DeleteOrgMemberPayload { clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; + /** The `OrgMember` that was deleted by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; } -export type DeleteOrgLimitCapPayloadSelect = { +export type DeleteOrgMemberPayloadSelect = { clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; + orgMember?: { + select: OrgMemberSelect; }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type CreateOrgChartEdgePayloadSelect = { +export type CreateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteOrgPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface CreateOrgLimitCreditPayload { +export interface CreateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type CreateOrgLimitCreditPayloadSelect = { +export type CreateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface UpdateOrgLimitCreditPayload { +export interface UpdateAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type UpdateOrgLimitCreditPayloadSelect = { +export type UpdateAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface DeleteOrgLimitCreditPayload { +export interface DeleteAppOwnerGrantPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export type DeleteOrgLimitCreditPayloadSelect = { +export type DeleteAppOwnerGrantPayloadSelect = { clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; + appOwnerGrant?: { + select: AppOwnerGrantSelect; }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateAppLimitWarningPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateAppLimitWarningPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateAppLimitWarningPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateAppLimitWarningPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteAppLimitWarningPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteAppLimitWarningPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateOrgChartEdgeGrantPayload { @@ -6402,51 +3489,6 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateMembershipTypePayload { clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ @@ -6503,38 +3545,128 @@ export type CreateAppGrantPayloadSelect = { appGrant?: { select: AppGrantSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type UpdateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type DeleteAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6627,6 +3759,51 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type CreateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; /** The `OrgMembershipSetting` that was created by this mutation. */ @@ -6672,96 +3849,6 @@ export type DeleteOrgMembershipSettingPayloadSelect = { select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type UpdateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type DeleteAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type UpdateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type DeleteOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; export interface CreateAppMembershipPayload { clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ @@ -6807,96 +3894,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; export interface CreateAppInvitePayload { clientMutationId?: string | null; /** The `AppInvite` that was created by this mutation. */ @@ -6942,139 +3939,94 @@ export type DeleteAppInvitePayloadSelect = { select: AppInviteEdgeSelect; }; }; -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type CreateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateOrgLimitAggregatePayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateOrgLimitAggregatePayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateOrgLimitAggregatePayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateOrgLimitAggregatePayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteOrgLimitAggregatePayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteOrgLimitAggregatePayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface CreateOrgLimitPayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type CreateOrgLimitPayloadSelect = { +export type CreateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface UpdateOrgLimitPayload { +export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type UpdateOrgLimitPayloadSelect = { +export type UpdateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface DeleteOrgLimitPayload { +export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type DeleteOrgLimitPayloadSelect = { +export type DeleteOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7163,42 +4115,6 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} -export type AppLimitCreditRedemptionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditRedemptionSelect; - }; -}; -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -export type AppLimitCreditCodeItemEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeItemSelect; - }; -}; -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -export type AppLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditSelect; - }; -}; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -7223,6 +4139,18 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -7247,30 +4175,6 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -7283,18 +4187,6 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} -export type OrgMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipDefaultSelect; - }; -}; /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { cursor?: string | null; @@ -7307,126 +4199,6 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -export type AppLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapsDefaultSelect; - }; -}; -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -export type OrgLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapsDefaultSelect; - }; -}; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -export type OrgLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapSelect; - }; -}; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} -export type OrgLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCreditSelect; - }; -}; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -export type AppLimitCreditCodeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeSelect; - }; -}; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} -export type AppLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitWarningSelect; - }; -}; /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { cursor?: string | null; @@ -7451,18 +4223,6 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} -export type OrgLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitWarningSelect; - }; -}; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { cursor?: string | null; @@ -7487,6 +4247,30 @@ export type AppGrantEdgeSelect = { select: AppGrantSelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { cursor?: string | null; @@ -7511,40 +4295,28 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} -export type OrgMembershipSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSettingSelect; - }; -}; -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type AppLimitEventEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitEventSelect; + select: OrgChartEdgeSelect; }; }; -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; } -export type OrgLimitEventEdgeSelect = { +export type OrgMembershipSettingEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitEventSelect; + select: OrgMembershipSettingSelect; }; }; /** A `AppMembership` edge in the connection. */ @@ -7559,30 +4331,6 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; /** A `AppInvite` edge in the connection. */ export interface AppInviteEdge { cursor?: string | null; @@ -7595,40 +4343,28 @@ export type AppInviteEdgeSelect = { select: AppInviteSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } -export type OrgLimitAggregateEdgeSelect = { +export type OrgMembershipEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitAggregateSelect; + select: OrgMembershipSelect; }; }; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } -export type OrgLimitEdgeSelect = { +export type OrgMemberProfileEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitSelect; + select: OrgMemberProfileSelect; }; }; /** A `OrgInvite` edge in the connection. */ diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimit.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimit.ts deleted file mode 100644 index 2e109cb07e..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimit, - AppLimitWithRelations, - AppLimitSelect, - AppLimitFilter, - AppLimitOrderBy, - CreateAppLimitInput, - UpdateAppLimitInput, - AppLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimit', - document, - variables, - transform: (data: { - appLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimit: data.appLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimit', - document, - variables, - transform: (data: { - appLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimit: data.appLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimit', - 'createAppLimit', - 'appLimit', - args.select, - args.data, - 'CreateAppLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'createAppLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimit', - 'updateAppLimit', - 'appLimit', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitInput', - 'id', - 'appLimitPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'updateAppLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimit', - 'deleteAppLimit', - 'appLimit', - { - id: args.where.id, - }, - 'DeleteAppLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'deleteAppLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitCap.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitCap.ts deleted file mode 100644 index 3359af7c92..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitCap.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCap model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCap, - AppLimitCapWithRelations, - AppLimitCapSelect, - AppLimitCapFilter, - AppLimitCapOrderBy, - CreateAppLimitCapInput, - UpdateAppLimitCapInput, - AppLimitCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCap', - document, - variables, - transform: (data: { - appLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCap: data.appLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCap', - document, - variables, - transform: (data: { - appLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCap: data.appLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCap', - 'createAppLimitCap', - 'appLimitCap', - args.select, - args.data, - 'CreateAppLimitCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'createAppLimitCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCap', - 'updateAppLimitCap', - 'appLimitCap', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCapInput', - 'id', - 'appLimitCapPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'updateAppLimitCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCap', - 'deleteAppLimitCap', - 'appLimitCap', - { - id: args.where.id, - }, - 'DeleteAppLimitCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'deleteAppLimitCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitCapsDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitCapsDefault.ts deleted file mode 100644 index 0eac9c6f8b..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitCapsDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCapsDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCapsDefault, - AppLimitCapsDefaultWithRelations, - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy, - CreateAppLimitCapsDefaultInput, - UpdateAppLimitCapsDefaultInput, - AppLimitCapsDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCapsDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefault', - document, - variables, - transform: (data: { - appLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCapsDefault: data.appLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefault', - document, - variables, - transform: (data: { - appLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCapsDefault: data.appLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCapsDefault', - 'createAppLimitCapsDefault', - 'appLimitCapsDefault', - args.select, - args.data, - 'CreateAppLimitCapsDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'createAppLimitCapsDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCapsDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCapsDefault', - 'updateAppLimitCapsDefault', - 'appLimitCapsDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCapsDefaultInput', - 'id', - 'appLimitCapsDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'updateAppLimitCapsDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCapsDefault', - 'deleteAppLimitCapsDefault', - 'appLimitCapsDefault', - { - id: args.where.id, - }, - 'DeleteAppLimitCapsDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'deleteAppLimitCapsDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitCredit.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitCredit.ts deleted file mode 100644 index 87ef262696..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitCredit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCredit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCredit, - AppLimitCreditWithRelations, - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy, - CreateAppLimitCreditInput, - UpdateAppLimitCreditInput, - AppLimitCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredit', - document, - variables, - transform: (data: { - appLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCredit: data.appLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredit', - document, - variables, - transform: (data: { - appLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCredit: data.appLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCredit', - 'createAppLimitCredit', - 'appLimitCredit', - args.select, - args.data, - 'CreateAppLimitCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'createAppLimitCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCredit', - 'updateAppLimitCredit', - 'appLimitCredit', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditInput', - 'id', - 'appLimitCreditPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'updateAppLimitCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCredit', - 'deleteAppLimitCredit', - 'appLimitCredit', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'deleteAppLimitCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditCode.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditCode.ts deleted file mode 100644 index 1d21f2d211..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditCode.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCreditCode model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditCode, - AppLimitCreditCodeWithRelations, - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy, - CreateAppLimitCreditCodeInput, - UpdateAppLimitCreditCodeInput, - AppLimitCreditCodePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditCodeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCodes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCode: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCode', - document, - variables, - transform: (data: { - appLimitCreditCodes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCode: data.appLimitCreditCodes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCode: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCode', - document, - variables, - transform: (data: { - appLimitCreditCodes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCode: data.appLimitCreditCodes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditCode', - 'createAppLimitCreditCode', - 'appLimitCreditCode', - args.select, - args.data, - 'CreateAppLimitCreditCodeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'createAppLimitCreditCode', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditCodePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditCode', - 'updateAppLimitCreditCode', - 'appLimitCreditCode', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditCodeInput', - 'id', - 'appLimitCreditCodePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'updateAppLimitCreditCode', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditCode', - 'deleteAppLimitCreditCode', - 'appLimitCreditCode', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditCodeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'deleteAppLimitCreditCode', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditCodeItem.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditCodeItem.ts deleted file mode 100644 index ade7d6cdc0..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditCodeItem.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppLimitCreditCodeItem model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditCodeItem, - AppLimitCreditCodeItemWithRelations, - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy, - CreateAppLimitCreditCodeItemInput, - UpdateAppLimitCreditCodeItemInput, - AppLimitCreditCodeItemPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditCodeItemModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItems: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItems', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItem: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItem', - document, - variables, - transform: (data: { - appLimitCreditCodeItems?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCodeItem: data.appLimitCreditCodeItems?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItem: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItem', - document, - variables, - transform: (data: { - appLimitCreditCodeItems?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCodeItem: data.appLimitCreditCodeItems?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditCodeItem', - 'createAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - args.select, - args.data, - 'CreateAppLimitCreditCodeItemInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'createAppLimitCreditCodeItem', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditCodeItemPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditCodeItem', - 'updateAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditCodeItemInput', - 'id', - 'appLimitCreditCodeItemPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'updateAppLimitCreditCodeItem', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditCodeItem', - 'deleteAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditCodeItemInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'deleteAppLimitCreditCodeItem', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditRedemption.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditRedemption.ts deleted file mode 100644 index f60a8e62f9..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitCreditRedemption.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppLimitCreditRedemption model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditRedemption, - AppLimitCreditRedemptionWithRelations, - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy, - CreateAppLimitCreditRedemptionInput, - UpdateAppLimitCreditRedemptionInput, - AppLimitCreditRedemptionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditRedemptionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemptions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemptions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemption: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemption', - document, - variables, - transform: (data: { - appLimitCreditRedemptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditRedemption: data.appLimitCreditRedemptions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemption: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemption', - document, - variables, - transform: (data: { - appLimitCreditRedemptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditRedemption: data.appLimitCreditRedemptions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditRedemption', - 'createAppLimitCreditRedemption', - 'appLimitCreditRedemption', - args.select, - args.data, - 'CreateAppLimitCreditRedemptionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'createAppLimitCreditRedemption', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditRedemptionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditRedemption', - 'updateAppLimitCreditRedemption', - 'appLimitCreditRedemption', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditRedemptionInput', - 'id', - 'appLimitCreditRedemptionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'updateAppLimitCreditRedemption', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditRedemption', - 'deleteAppLimitCreditRedemption', - 'appLimitCreditRedemption', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditRedemptionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'deleteAppLimitCreditRedemption', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitDefault.ts deleted file mode 100644 index f9df6376e5..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitDefault, - AppLimitDefaultWithRelations, - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy, - CreateAppLimitDefaultInput, - UpdateAppLimitDefaultInput, - AppLimitDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefault', - document, - variables, - transform: (data: { - appLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefault', - document, - variables, - transform: (data: { - appLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitDefault', - 'createAppLimitDefault', - 'appLimitDefault', - args.select, - args.data, - 'CreateAppLimitDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'createAppLimitDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitDefault', - 'updateAppLimitDefault', - 'appLimitDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitDefaultInput', - 'id', - 'appLimitDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'updateAppLimitDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitDefault', - 'deleteAppLimitDefault', - 'appLimitDefault', - { - id: args.where.id, - }, - 'DeleteAppLimitDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'deleteAppLimitDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts deleted file mode 100644 index ef7249f3e9..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitEvent model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitEvent, - AppLimitEventWithRelations, - AppLimitEventSelect, - AppLimitEventFilter, - AppLimitEventOrderBy, - CreateAppLimitEventInput, - UpdateAppLimitEventInput, - AppLimitEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvent', - document, - variables, - transform: (data: { - appLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvent', - document, - variables, - transform: (data: { - appLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitEvent', - 'createAppLimitEvent', - 'appLimitEvent', - args.select, - args.data, - 'CreateAppLimitEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'createAppLimitEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitEvent', - 'updateAppLimitEvent', - 'appLimitEvent', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitEventInput', - 'id', - 'appLimitEventPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'updateAppLimitEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitEvent', - 'deleteAppLimitEvent', - 'appLimitEvent', - { - id: args.where.id, - }, - 'DeleteAppLimitEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'deleteAppLimitEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitWarning.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitWarning.ts deleted file mode 100644 index 8366dd8336..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitWarning.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitWarning model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitWarning, - AppLimitWarningWithRelations, - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy, - CreateAppLimitWarningInput, - UpdateAppLimitWarningInput, - AppLimitWarningPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitWarningModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarnings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarnings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarning', - document, - variables, - transform: (data: { - appLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarning', - document, - variables, - transform: (data: { - appLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitWarning', - 'createAppLimitWarning', - 'appLimitWarning', - args.select, - args.data, - 'CreateAppLimitWarningInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'createAppLimitWarning', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitWarningPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitWarning', - 'updateAppLimitWarning', - 'appLimitWarning', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitWarningInput', - 'id', - 'appLimitWarningPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'updateAppLimitWarning', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitWarning', - 'deleteAppLimitWarning', - 'appLimitWarning', - { - id: args.where.id, - }, - 'DeleteAppLimitWarningInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'deleteAppLimitWarning', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/index.ts b/sdk/constructive-sdk/src/admin/orm/models/index.ts index c2222e7884..3580afbcaf 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -7,43 +7,25 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; -export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; -export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; -export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { OrgLimitCreditModel } from './orgLimitCredit'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { AppLimitWarningModel } from './appLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { OrgGrantModel } from './orgGrant'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { AppMembershipModel } from './appMembership'; +export { AppInviteModel } from './appInvite'; export { OrgMembershipModel } from './orgMembership'; export { OrgMemberProfileModel } from './orgMemberProfile'; -export { AppInviteModel } from './appInvite'; -export { AppLimitModel } from './appLimit'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitModel } from './orgLimit'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimit.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimit.ts deleted file mode 100644 index 48a3932f23..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimit, - OrgLimitWithRelations, - OrgLimitSelect, - OrgLimitFilter, - OrgLimitOrderBy, - CreateOrgLimitInput, - UpdateOrgLimitInput, - OrgLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimit', - document, - variables, - transform: (data: { - orgLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimit: data.orgLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimit', - document, - variables, - transform: (data: { - orgLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimit: data.orgLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimit', - 'createOrgLimit', - 'orgLimit', - args.select, - args.data, - 'CreateOrgLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'createOrgLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimit', - 'updateOrgLimit', - 'orgLimit', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitInput', - 'id', - 'orgLimitPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'updateOrgLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimit', - 'deleteOrgLimit', - 'orgLimit', - { - id: args.where.id, - }, - 'DeleteOrgLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'deleteOrgLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitAggregate.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitAggregate.ts deleted file mode 100644 index d74b9e7d92..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitAggregate.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitAggregate model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitAggregate, - OrgLimitAggregateWithRelations, - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy, - CreateOrgLimitAggregateInput, - UpdateOrgLimitAggregateInput, - OrgLimitAggregatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitAggregateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregate', - document, - variables, - transform: (data: { - orgLimitAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregate', - document, - variables, - transform: (data: { - orgLimitAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitAggregate', - 'createOrgLimitAggregate', - 'orgLimitAggregate', - args.select, - args.data, - 'CreateOrgLimitAggregateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'createOrgLimitAggregate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitAggregatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitAggregate', - 'updateOrgLimitAggregate', - 'orgLimitAggregate', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitAggregateInput', - 'id', - 'orgLimitAggregatePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'updateOrgLimitAggregate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitAggregate', - 'deleteOrgLimitAggregate', - 'orgLimitAggregate', - { - id: args.where.id, - }, - 'DeleteOrgLimitAggregateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'deleteOrgLimitAggregate', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitCap.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitCap.ts deleted file mode 100644 index 6755eea460..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitCap.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCap model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCap, - OrgLimitCapWithRelations, - OrgLimitCapSelect, - OrgLimitCapFilter, - OrgLimitCapOrderBy, - CreateOrgLimitCapInput, - UpdateOrgLimitCapInput, - OrgLimitCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCap', - document, - variables, - transform: (data: { - orgLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCap: data.orgLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCap', - document, - variables, - transform: (data: { - orgLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCap: data.orgLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCap', - 'createOrgLimitCap', - 'orgLimitCap', - args.select, - args.data, - 'CreateOrgLimitCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'createOrgLimitCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCap', - 'updateOrgLimitCap', - 'orgLimitCap', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCapInput', - 'id', - 'orgLimitCapPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'updateOrgLimitCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCap', - 'deleteOrgLimitCap', - 'orgLimitCap', - { - id: args.where.id, - }, - 'DeleteOrgLimitCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'deleteOrgLimitCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitCapsDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitCapsDefault.ts deleted file mode 100644 index 7884189152..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitCapsDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCapsDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCapsDefault, - OrgLimitCapsDefaultWithRelations, - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy, - CreateOrgLimitCapsDefaultInput, - UpdateOrgLimitCapsDefaultInput, - OrgLimitCapsDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCapsDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefault', - document, - variables, - transform: (data: { - orgLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCapsDefault: data.orgLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefault', - document, - variables, - transform: (data: { - orgLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCapsDefault: data.orgLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCapsDefault', - 'createOrgLimitCapsDefault', - 'orgLimitCapsDefault', - args.select, - args.data, - 'CreateOrgLimitCapsDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'createOrgLimitCapsDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCapsDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCapsDefault', - 'updateOrgLimitCapsDefault', - 'orgLimitCapsDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCapsDefaultInput', - 'id', - 'orgLimitCapsDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'updateOrgLimitCapsDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCapsDefault', - 'deleteOrgLimitCapsDefault', - 'orgLimitCapsDefault', - { - id: args.where.id, - }, - 'DeleteOrgLimitCapsDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'deleteOrgLimitCapsDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitCredit.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitCredit.ts deleted file mode 100644 index 560f611013..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitCredit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCredit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCredit, - OrgLimitCreditWithRelations, - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy, - CreateOrgLimitCreditInput, - UpdateOrgLimitCreditInput, - OrgLimitCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredit', - document, - variables, - transform: (data: { - orgLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCredit: data.orgLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredit', - document, - variables, - transform: (data: { - orgLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCredit: data.orgLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCredit', - 'createOrgLimitCredit', - 'orgLimitCredit', - args.select, - args.data, - 'CreateOrgLimitCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'createOrgLimitCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCredit', - 'updateOrgLimitCredit', - 'orgLimitCredit', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCreditInput', - 'id', - 'orgLimitCreditPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'updateOrgLimitCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCredit', - 'deleteOrgLimitCredit', - 'orgLimitCredit', - { - id: args.where.id, - }, - 'DeleteOrgLimitCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'deleteOrgLimitCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitDefault.ts deleted file mode 100644 index 7e55bfd1f7..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitDefault, - OrgLimitDefaultWithRelations, - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy, - CreateOrgLimitDefaultInput, - UpdateOrgLimitDefaultInput, - OrgLimitDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefault', - document, - variables, - transform: (data: { - orgLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefault', - document, - variables, - transform: (data: { - orgLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitDefault', - 'createOrgLimitDefault', - 'orgLimitDefault', - args.select, - args.data, - 'CreateOrgLimitDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'createOrgLimitDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitDefault', - 'updateOrgLimitDefault', - 'orgLimitDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitDefaultInput', - 'id', - 'orgLimitDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'updateOrgLimitDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitDefault', - 'deleteOrgLimitDefault', - 'orgLimitDefault', - { - id: args.where.id, - }, - 'DeleteOrgLimitDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'deleteOrgLimitDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts deleted file mode 100644 index 2eb9796e2a..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitEvent model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitEvent, - OrgLimitEventWithRelations, - OrgLimitEventSelect, - OrgLimitEventFilter, - OrgLimitEventOrderBy, - CreateOrgLimitEventInput, - UpdateOrgLimitEventInput, - OrgLimitEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvent', - document, - variables, - transform: (data: { - orgLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvent', - document, - variables, - transform: (data: { - orgLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitEvent', - 'createOrgLimitEvent', - 'orgLimitEvent', - args.select, - args.data, - 'CreateOrgLimitEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'createOrgLimitEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitEvent', - 'updateOrgLimitEvent', - 'orgLimitEvent', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitEventInput', - 'id', - 'orgLimitEventPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'updateOrgLimitEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitEvent', - 'deleteOrgLimitEvent', - 'orgLimitEvent', - { - id: args.where.id, - }, - 'DeleteOrgLimitEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'deleteOrgLimitEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitWarning.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitWarning.ts deleted file mode 100644 index e496b69fef..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitWarning.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitWarning model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitWarning, - OrgLimitWarningWithRelations, - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy, - CreateOrgLimitWarningInput, - UpdateOrgLimitWarningInput, - OrgLimitWarningPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitWarningModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarnings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarnings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarning', - document, - variables, - transform: (data: { - orgLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarning', - document, - variables, - transform: (data: { - orgLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitWarning', - 'createOrgLimitWarning', - 'orgLimitWarning', - args.select, - args.data, - 'CreateOrgLimitWarningInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'createOrgLimitWarning', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitWarningPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitWarning', - 'updateOrgLimitWarning', - 'orgLimitWarning', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitWarningInput', - 'id', - 'orgLimitWarningPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'updateOrgLimitWarning', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitWarning', - 'deleteOrgLimitWarning', - 'orgLimitWarning', - { - id: args.where.id, - }, - 'DeleteOrgLimitWarningInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'deleteOrgLimitWarning', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/agent/README.md b/sdk/constructive-sdk/src/agent/README.md new file mode 100644 index 0000000000..3f92cd3bf1 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 6 +- **Custom queries:** 0 +- **Custom mutations:** 1 + +**Generators:** ORM + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +--- + +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/public/index.ts b/sdk/constructive-sdk/src/agent/index.ts similarity index 100% rename from sdk/constructive-sdk/src/public/index.ts rename to sdk/constructive-sdk/src/agent/index.ts diff --git a/sdk/constructive-sdk/src/agent/orm/README.md b/sdk/constructive-sdk/src/agent/orm/README.md new file mode 100644 index 0000000000..c7a2b551d4 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/README.md @@ -0,0 +1,306 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `agentPlan` | findMany, findOne, create, update, delete | +| `agentMessage` | findMany, findOne, create, update, delete | +| `agentTask` | findMany, findOne, create, update, delete | +| `agentThread` | findMany, findOne, create, update, delete | +| `agentPrompt` | findMany, findOne, create, update, delete | +| `agentSkill` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.agentPlan` + +CRUD operations for AgentPlan records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `threadId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `status` | String | Yes | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentPlan.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentPlan.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentMessage` + +CRUD operations for AgentMessage records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `parts` | JSON | Yes | +| `threadId` | UUID | Yes | +| `authorRole` | String | Yes | +| `model` | String | Yes | + +**Operations:** + +```typescript +// List all agentMessage records +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); + +// Get one by id +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); + +// Create +const created = await db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentTask` + +CRUD operations for AgentTask records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `planId` | UUID | Yes | +| `description` | String | Yes | +| `source` | String | Yes | +| `error` | String | Yes | +| `orderIndex` | Int | Yes | +| `requiresApproval` | Boolean | Yes | +| `approvalStatus` | String | Yes | +| `approvedBy` | UUID | Yes | +| `approvedAt` | Datetime | Yes | +| `approvalFeedback` | String | Yes | + +**Operations:** + +```typescript +// List all agentTask records +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: 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, ownerId: true, status: true, planId: 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: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentThread` + +CRUD operations for AgentThread records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | +| `title` | String | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `systemPrompt` | String | Yes | +| `promptTemplateId` | UUID | Yes | + +**Operations:** + +```typescript +// List all agentThread records +const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }).execute(); + +// Get one by id +const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, title: true, mode: true, model: true, systemPrompt: true, promptTemplateId: true } }).execute(); + +// Create +const created = await db.agentThread.create({ data: { ownerId: '', status: '', title: '', mode: '', model: '', systemPrompt: '', promptTemplateId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentPrompt` + +CRUD operations for AgentPrompt records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `name` | String | Yes | +| `content` | String | Yes | +| `description` | String | Yes | +| `isDefault` | Boolean | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentPrompt.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentPrompt.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentSkill` + +CRUD operations for AgentSkill records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `body` | String | Yes | +| `keywords` | String | Yes | +| `isActive` | Boolean | Yes | +| `metadata` | JSON | Yes | +| `search` | FullText | Yes | +| `embedding` | Vector | Yes | +| `embeddingUpdatedAt` | Datetime | Yes | +| `searchTsvRank` | Float | Yes | +| `embeddingVectorDistance` | Float | Yes | +| `titleTrgmSimilarity` | Float | Yes | +| `descriptionTrgmSimilarity` | Float | Yes | +| `bodyTrgmSimilarity` | Float | Yes | +| `searchScore` | Float | Yes | + +**Operations:** + +```typescript +// List all agentSkill records +const items = await db.agentSkill.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); + +// Get one by id +const item = await db.agentSkill.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); + +// Create +const created = await db.agentSkill.create({ data: { createdBy: '', updatedBy: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentSkill.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentSkill.delete({ where: { id: '' } }).execute(); +``` + +> **pgvector embedding fields:** `embedding` +> High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. + +> **Unified Search API fields:** `search` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + +## Custom Operations + +### `db.mutation.provisionBucket` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +--- + +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/agent/orm/client.ts b/sdk/constructive-sdk/src/agent/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/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/agent/orm/index.ts b/sdk/constructive-sdk/src/agent/orm/index.ts new file mode 100644 index 0000000000..cdd1c62a4a --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/index.ts @@ -0,0 +1,55 @@ +/** + * 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 { AgentPlanModel } from './models/agentPlan'; +import { AgentMessageModel } from './models/agentMessage'; +import { AgentTaskModel } from './models/agentTask'; +import { AgentThreadModel } from './models/agentThread'; +import { AgentPromptModel } from './models/agentPrompt'; +import { AgentSkillModel } from './models/agentSkill'; +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 { + agentPlan: new AgentPlanModel(client), + agentMessage: new AgentMessageModel(client), + agentTask: new AgentTaskModel(client), + agentThread: new AgentThreadModel(client), + agentPrompt: new AgentPromptModel(client), + agentSkill: new AgentSkillModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-sdk/src/agent/orm/input-types.ts b/sdk/constructive-sdk/src/agent/orm/input-types.ts new file mode 100644 index 0000000000..cbd29082a9 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/input-types.ts @@ -0,0 +1,1987 @@ +/** + * 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; +} +/** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */ +// ============ Entity Types ============ +export interface AgentPlan { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this plan */ + ownerId?: string | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Human-readable plan name */ + title?: string | null; + /** Overall goal or context for this plan */ + description?: string | null; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string | null; +} +/** Message within an agent thread with TextPart/ToolPart jsonb parts */ +export interface AgentMessage { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this message */ + ownerId?: string | null; + /** Message content: TextPart and ToolPart array */ + parts?: Record | null; + /** Foreign key to agent_thread */ + threadId?: string | null; + /** Who authored this message: user or assistant */ + authorRole?: string | null; + /** LLM model that generated this response */ + model?: string | null; +} +/** Task within a plan, with ordering and optional approval gates */ +export interface AgentTask { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this task */ + ownerId?: string | null; + /** Current status of this task */ + status?: string | null; + /** Foreign key to agent_plan */ + planId?: string | null; + /** Natural-language description of the work to do */ + description?: string | null; + /** Who created the task: agent or user */ + source?: string | null; + /** Error message captured when the task failed */ + error?: string | null; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number | null; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean | null; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string | null; + /** User who approved or rejected this task */ + approvedBy?: string | null; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string | null; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string | null; +} +/** Top-level AI/LLM conversation thread */ +export interface AgentThread { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** User who owns this thread */ + ownerId?: string | null; + /** Current status of this thread */ + status?: string | null; + /** Human-readable conversation title */ + title?: string | null; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string | null; + /** LLM model id this thread is bound to */ + model?: string | null; + /** System prompt active for this thread */ + systemPrompt?: string | null; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string | null; +} +/** Shared system prompt templates for agent conversations */ +export interface AgentPrompt { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name?: string | null; + /** The system prompt template content */ + content?: string | null; + /** What this prompt template is for */ + description?: string | null; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean | null; + /** Variables, tags, category metadata */ + metadata?: Record | null; +} +/** Structured procedural instructions for agent workflows */ +export interface AgentSkill { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Skill name or title */ + title?: string | null; + /** Brief description of when this skill applies */ + description?: string | null; + /** Full skill instructions (markdown) */ + body?: string | null; + /** Keywords for deterministic retrieval routing */ + keywords?: string[] | null; + /** Whether this skill is active and retrievable */ + isActive?: boolean | null; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record | null; + search?: string | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; + /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ + embeddingVectorDistance?: number | null; + /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ + titleTrgmSimilarity?: number | null; + /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ + descriptionTrgmSimilarity?: number | null; + /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ + bodyTrgmSimilarity?: number | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; +} +// ============ 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 AgentPlanRelations { + thread?: AgentThread | null; + agentTasksByPlanId?: ConnectionResult; +} +export interface AgentMessageRelations { + thread?: AgentThread | null; +} +export interface AgentTaskRelations { + plan?: AgentPlan | null; +} +export interface AgentThreadRelations { + promptTemplate?: AgentPrompt | null; + agentMessagesByThreadId?: ConnectionResult; + agentPlansByThreadId?: ConnectionResult; +} +export interface AgentPromptRelations {} +export interface AgentSkillRelations {} +// ============ Entity Types With Relations ============ +export type AgentPlanWithRelations = AgentPlan & AgentPlanRelations; +export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; +export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; +export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type AgentPromptWithRelations = AgentPrompt & AgentPromptRelations; +export type AgentSkillWithRelations = AgentSkill & AgentSkillRelations; +// ============ Entity Select Types ============ +export type AgentPlanSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + threadId?: boolean; + title?: boolean; + description?: boolean; + status?: boolean; + thread?: { + select: AgentThreadSelect; + }; + agentTasksByPlanId?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; +}; +export type AgentMessageSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + parts?: boolean; + threadId?: boolean; + authorRole?: boolean; + model?: boolean; + thread?: { + select: AgentThreadSelect; + }; +}; +export type AgentTaskSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + planId?: boolean; + description?: boolean; + source?: boolean; + error?: boolean; + orderIndex?: boolean; + requiresApproval?: boolean; + approvalStatus?: boolean; + approvedBy?: boolean; + approvedAt?: boolean; + approvalFeedback?: boolean; + plan?: { + select: AgentPlanSelect; + }; +}; +export type AgentThreadSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + title?: boolean; + mode?: boolean; + model?: boolean; + systemPrompt?: boolean; + promptTemplateId?: boolean; + promptTemplate?: { + select: AgentPromptSelect; + }; + agentMessagesByThreadId?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + agentPlansByThreadId?: { + select: AgentPlanSelect; + first?: number; + filter?: AgentPlanFilter; + orderBy?: AgentPlanOrderBy[]; + }; +}; +export type AgentPromptSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + name?: boolean; + content?: boolean; + description?: boolean; + isDefault?: boolean; + metadata?: boolean; +}; +export type AgentSkillSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + title?: boolean; + description?: boolean; + body?: boolean; + keywords?: boolean; + isActive?: boolean; + metadata?: boolean; + search?: boolean; + embedding?: boolean; + embeddingUpdatedAt?: boolean; + searchTsvRank?: boolean; + embeddingVectorDistance?: boolean; + titleTrgmSimilarity?: boolean; + descriptionTrgmSimilarity?: boolean; + bodyTrgmSimilarity?: boolean; + searchScore?: boolean; +}; +// ============ Table Filter Types ============ +export interface AgentPlanFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; +} +export interface AgentMessageFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface AgentTaskFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; +} +export interface AgentThreadFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; +} +export interface AgentPromptFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Negates the expression. */ + not?: AgentPromptFilter; +} +export interface AgentSkillFilter { + /** 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 `title` field. */ + title?: StringTrgmFilter; + /** Filter by the object’s `description` field. */ + description?: StringTrgmFilter; + /** Filter by the object’s `body` field. */ + body?: StringTrgmFilter; + /** Filter by the object’s `keywords` field. */ + keywords?: StringListFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `search` field. */ + search?: FullTextFilter; + /** Filter by the object’s `embedding` field. */ + embedding?: VectorFilter; + /** Filter by the object’s `embeddingUpdatedAt` field. */ + embeddingUpdatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AgentSkillFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentSkillFilter[]; + /** Negates the expression. */ + not?: AgentSkillFilter; + /** TSV search on the `search` column. */ + tsvSearch?: string; + /** VECTOR search on the `embedding` column. */ + vectorEmbedding?: VectorNearbyInput; + /** TRGM search on the `title` column. */ + trgmTitle?: TrgmSearchInput; + /** TRGM search on the `description` column. */ + trgmDescription?: TrgmSearchInput; + /** TRGM search on the `body` column. */ + trgmBody?: TrgmSearchInput; + /** + * Composite unified search. Provide a search string and it will be dispatched to + * all text-compatible search algorithms (tsvector, BM25, pg_trgm) + * simultaneously. Rows matching ANY algorithm are returned. All matching score + * fields are populated. + */ + unifiedSearch?: string; +} +// ============ OrderBy Types ============ +export type AgentPlanOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type AgentMessageOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC'; +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'PLAN_ID_ASC' + | 'PLAN_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ORDER_INDEX_ASC' + | 'ORDER_INDEX_DESC' + | 'REQUIRES_APPROVAL_ASC' + | 'REQUIRES_APPROVAL_DESC' + | 'APPROVAL_STATUS_ASC' + | 'APPROVAL_STATUS_DESC' + | 'APPROVED_BY_ASC' + | 'APPROVED_BY_DESC' + | 'APPROVED_AT_ASC' + | 'APPROVED_AT_DESC' + | 'APPROVAL_FEEDBACK_ASC' + | 'APPROVAL_FEEDBACK_DESC'; +export type AgentThreadOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'PROMPT_TEMPLATE_ID_ASC' + | 'PROMPT_TEMPLATE_ID_DESC'; +export type AgentPromptOrderBy = + | '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' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_DEFAULT_ASC' + | 'IS_DEFAULT_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC'; +export type AgentSkillOrderBy = + | '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' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'BODY_ASC' + | 'BODY_DESC' + | 'KEYWORDS_ASC' + | 'KEYWORDS_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'SEARCH_ASC' + | 'SEARCH_DESC' + | 'EMBEDDING_ASC' + | 'EMBEDDING_DESC' + | 'EMBEDDING_UPDATED_AT_ASC' + | 'EMBEDDING_UPDATED_AT_DESC' + | 'SEARCH_TSV_RANK_ASC' + | 'SEARCH_TSV_RANK_DESC' + | 'EMBEDDING_VECTOR_DISTANCE_ASC' + | 'EMBEDDING_VECTOR_DISTANCE_DESC' + | 'TITLE_TRGM_SIMILARITY_ASC' + | 'TITLE_TRGM_SIMILARITY_DESC' + | 'DESCRIPTION_TRGM_SIMILARITY_ASC' + | 'DESCRIPTION_TRGM_SIMILARITY_DESC' + | 'BODY_TRGM_SIMILARITY_ASC' + | 'BODY_TRGM_SIMILARITY_DESC' + | 'SEARCH_SCORE_ASC' + | 'SEARCH_SCORE_DESC'; +// ============ CRUD Input Types ============ +export interface CreateAgentPlanInput { + clientMutationId?: string; + agentPlan: { + ownerId?: string; + threadId: string; + title: string; + description?: string; + status?: string; + }; +} +export interface AgentPlanPatch { + ownerId?: string | null; + threadId?: string | null; + title?: string | null; + description?: string | null; + status?: string | null; +} +export interface UpdateAgentPlanInput { + clientMutationId?: string; + id: string; + agentPlanPatch: AgentPlanPatch; +} +export interface DeleteAgentPlanInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + ownerId?: string; + parts?: Record; + threadId: string; + authorRole: string; + model?: string; + }; +} +export interface AgentMessagePatch { + ownerId?: string | null; + parts?: Record | null; + threadId?: string | null; + authorRole?: string | null; + model?: string | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + ownerId?: string; + status?: string; + planId: string; + description: string; + source?: string; + error?: string; + orderIndex?: number; + requiresApproval?: boolean; + approvalStatus?: string; + approvedBy?: string; + approvedAt?: string; + approvalFeedback?: string; + }; +} +export interface AgentTaskPatch { + ownerId?: string | null; + status?: string | null; + planId?: string | null; + description?: string | null; + source?: string | null; + error?: string | null; + orderIndex?: number | null; + requiresApproval?: boolean | null; + approvalStatus?: string | null; + approvedBy?: string | null; + approvedAt?: string | null; + approvalFeedback?: string | null; +} +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + agentThread: { + ownerId?: string; + status?: string; + title?: string; + mode?: string; + model?: string; + systemPrompt?: string; + promptTemplateId?: string; + }; +} +export interface AgentThreadPatch { + ownerId?: string | null; + status?: string | null; + title?: string | null; + mode?: string | null; + model?: string | null; + systemPrompt?: string | null; + promptTemplateId?: string | null; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + agentThreadPatch: AgentThreadPatch; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentPromptInput { + clientMutationId?: string; + agentPrompt: { + createdBy?: string; + updatedBy?: string; + name: string; + content: string; + description?: string; + isDefault?: boolean; + metadata?: Record; + }; +} +export interface AgentPromptPatch { + createdBy?: string | null; + updatedBy?: string | null; + name?: string | null; + content?: string | null; + description?: string | null; + isDefault?: boolean | null; + metadata?: Record | null; +} +export interface UpdateAgentPromptInput { + clientMutationId?: string; + id: string; + agentPromptPatch: AgentPromptPatch; +} +export interface DeleteAgentPromptInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentSkillInput { + clientMutationId?: string; + agentSkill: { + createdBy?: string; + updatedBy?: string; + title: string; + description?: string; + body: string; + keywords?: string[]; + isActive?: boolean; + metadata?: Record; + embedding?: number[]; + embeddingUpdatedAt?: string; + }; +} +export interface AgentSkillPatch { + createdBy?: string | null; + updatedBy?: string | null; + title?: string | null; + description?: string | null; + body?: string | null; + keywords?: string[] | null; + isActive?: boolean | null; + metadata?: Record | null; + embedding?: number[] | null; + embeddingUpdatedAt?: string | null; +} +export interface UpdateAgentSkillInput { + clientMutationId?: string; + id: string; + agentSkillPatch: AgentSkillPatch; +} +export interface DeleteAgentSkillInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + AgentPlan: { + agentTasksByPlanId: 'AgentTask', + }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentPlansByThreadId: 'AgentPlan', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentPlanFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentPlanFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentPlanFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentPlanFilter; +} +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + 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; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */ +export interface VectorNearbyInput { + /** Query vector for similarity search. */ + vector: number[]; + /** Similarity metric to use (default: COSINE). */ + metric?: VectorMetric; + /** Maximum distance threshold. Only rows within this distance are returned. */ + distance?: number; + /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */ + includeChunks?: boolean; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `planId` field. */ + planId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `orderIndex` field. */ + orderIndex?: IntFilter; + /** Filter by the object’s `requiresApproval` field. */ + requiresApproval?: BooleanFilter; + /** Filter by the object’s `approvalStatus` field. */ + approvalStatus?: StringFilter; + /** Filter by the object’s `approvedBy` field. */ + approvedBy?: UUIDFilter; + /** Filter by the object’s `approvedAt` field. */ + approvedAt?: DatetimeFilter; + /** Filter by the object’s `approvalFeedback` field. */ + approvalFeedback?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `plan` relation. */ + plan?: AgentPlanFilter; +} +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPlanFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentPlanFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPlanFilter[]; + /** Negates the expression. */ + not?: AgentPlanFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; + /** Filter by the object’s `agentTasksByPlanId` relation. */ + agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter; + /** `agentTasksByPlanId` exist. */ + agentTasksByPlanIdExist?: boolean; +} +/** Similarity metric for vector search */ +export type VectorMetric = 'COSINE' | 'L2' | 'IP'; +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `promptTemplateId` field. */ + promptTemplateId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `promptTemplate` relation. */ + promptTemplate?: AgentPromptFilter; + /** A related `promptTemplate` exists. */ + promptTemplateExists?: boolean; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentPlansByThreadId` relation. */ + agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter; + /** `agentPlansByThreadId` exist. */ + agentPlansByThreadIdExist?: boolean; +} +/** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentPromptFilter { + /** Filter by the object’s `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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isDefault` field. */ + isDefault?: BooleanFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentPromptFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentPromptFilter[]; + /** Negates the expression. */ + not?: AgentPromptFilter; +} +// ============ Payload/Return Types (for custom operations) ============ +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 CreateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was created by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type CreateAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface UpdateAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was updated by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type UpdateAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface DeleteAgentPlanPayload { + clientMutationId?: string | null; + /** The `AgentPlan` that was deleted by this mutation. */ + agentPlan?: AgentPlan | null; + agentPlanEdge?: AgentPlanEdge | null; +} +export type DeleteAgentPlanPayloadSelect = { + clientMutationId?: boolean; + agentPlan?: { + select: AgentPlanSelect; + }; + agentPlanEdge?: { + select: AgentPlanEdgeSelect; + }; +}; +export interface CreateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type CreateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface UpdateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type UpdateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface DeleteAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type DeleteAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type CreateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type UpdateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type DeleteAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface CreateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type CreateAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface UpdateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type UpdateAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface DeleteAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export type DeleteAgentThreadPayloadSelect = { + clientMutationId?: boolean; + agentThread?: { + select: AgentThreadSelect; + }; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface CreateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was created by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type CreateAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface UpdateAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was updated by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type UpdateAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface DeleteAgentPromptPayload { + clientMutationId?: string | null; + /** The `AgentPrompt` that was deleted by this mutation. */ + agentPrompt?: AgentPrompt | null; + agentPromptEdge?: AgentPromptEdge | null; +} +export type DeleteAgentPromptPayloadSelect = { + clientMutationId?: boolean; + agentPrompt?: { + select: AgentPromptSelect; + }; + agentPromptEdge?: { + select: AgentPromptEdgeSelect; + }; +}; +export interface CreateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was created by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type CreateAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +export interface UpdateAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was updated by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type UpdateAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +export interface DeleteAgentSkillPayload { + clientMutationId?: string | null; + /** The `AgentSkill` that was deleted by this mutation. */ + agentSkill?: AgentSkill | null; + agentSkillEdge?: AgentSkillEdge | null; +} +export type DeleteAgentSkillPayloadSelect = { + clientMutationId?: boolean; + agentSkill?: { + select: AgentSkillSelect; + }; + agentSkillEdge?: { + select: AgentSkillEdgeSelect; + }; +}; +/** A `AgentPlan` edge in the connection. */ +export interface AgentPlanEdge { + cursor?: string | null; + /** The `AgentPlan` at the end of the edge. */ + node?: AgentPlan | null; +} +export type AgentPlanEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentPlanSelect; + }; +}; +/** A `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { + cursor?: string | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; +} +export type AgentMessageEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentMessageSelect; + }; +}; +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { + cursor?: string | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; +} +export type AgentTaskEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentTaskSelect; + }; +}; +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { + cursor?: string | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; +} +export type AgentThreadEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentThreadSelect; + }; +}; +/** A `AgentPrompt` edge in the connection. */ +export interface AgentPromptEdge { + cursor?: string | null; + /** The `AgentPrompt` at the end of the edge. */ + node?: AgentPrompt | null; +} +export type AgentPromptEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentPromptSelect; + }; +}; +/** A `AgentSkill` edge in the connection. */ +export interface AgentSkillEdge { + cursor?: string | null; + /** The `AgentSkill` at the end of the edge. */ + node?: AgentSkill | null; +} +export type AgentSkillEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentSkillSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/agent/orm/models/agentMessage.ts b/sdk/constructive-sdk/src/agent/orm/models/agentMessage.ts new file mode 100644 index 0000000000..d128641c85 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/agentMessage.ts @@ -0,0 +1,244 @@ +/** + * AgentMessage model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentMessage, + AgentMessageWithRelations, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, + CreateAgentMessageInput, + UpdateAgentMessageInput, + AgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentMessage', + 'createAgentMessage', + 'agentMessage', + args.select, + args.data, + 'CreateAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'createAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentMessage', + 'updateAgentMessage', + 'agentMessage', + args.select, + args.where.id, + args.data, + 'UpdateAgentMessageInput', + 'id', + 'agentMessagePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'updateAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentMessage', + 'deleteAgentMessage', + 'agentMessage', + { + id: args.where.id, + }, + 'DeleteAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'deleteAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/agentPlan.ts b/sdk/constructive-sdk/src/agent/orm/models/agentPlan.ts new file mode 100644 index 0000000000..ec029de47d --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/agentPlan.ts @@ -0,0 +1,244 @@ +/** + * AgentPlan model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentPlan, + AgentPlanWithRelations, + AgentPlanSelect, + AgentPlanFilter, + AgentPlanOrderBy, + CreateAgentPlanInput, + UpdateAgentPlanInput, + AgentPlanPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentPlanModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlans: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlans', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlan', + document, + variables, + transform: (data: { + agentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPlan: data.agentPlans?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPlan: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPlan', + 'agentPlans', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentPlanFilter', + 'AgentPlanOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPlan', + fieldName: 'agentPlan', + document, + variables, + transform: (data: { + agentPlans?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPlan: data.agentPlans?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentPlan', + 'createAgentPlan', + 'agentPlan', + args.select, + args.data, + 'CreateAgentPlanInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'createAgentPlan', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentPlanPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentPlan', + 'updateAgentPlan', + 'agentPlan', + args.select, + args.where.id, + args.data, + 'UpdateAgentPlanInput', + 'id', + 'agentPlanPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'updateAgentPlan', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentPlan: { + agentPlan: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentPlan', + 'deleteAgentPlan', + 'agentPlan', + { + id: args.where.id, + }, + 'DeleteAgentPlanInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPlan', + fieldName: 'deleteAgentPlan', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/agentPrompt.ts b/sdk/constructive-sdk/src/agent/orm/models/agentPrompt.ts new file mode 100644 index 0000000000..5e4aa9b6d1 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/agentPrompt.ts @@ -0,0 +1,244 @@ +/** + * AgentPrompt model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentPrompt, + AgentPromptWithRelations, + AgentPromptSelect, + AgentPromptFilter, + AgentPromptOrderBy, + CreateAgentPromptInput, + UpdateAgentPromptInput, + AgentPromptPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentPromptModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompt', + document, + variables, + transform: (data: { + agentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPrompt: data.agentPrompts?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentPrompt: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentPrompt', + 'agentPrompts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentPromptFilter', + 'AgentPromptOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentPrompt', + fieldName: 'agentPrompt', + document, + variables, + transform: (data: { + agentPrompts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentPrompt: data.agentPrompts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentPrompt', + 'createAgentPrompt', + 'agentPrompt', + args.select, + args.data, + 'CreateAgentPromptInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'createAgentPrompt', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentPromptPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentPrompt', + 'updateAgentPrompt', + 'agentPrompt', + args.select, + args.where.id, + args.data, + 'UpdateAgentPromptInput', + 'id', + 'agentPromptPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'updateAgentPrompt', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentPrompt: { + agentPrompt: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentPrompt', + 'deleteAgentPrompt', + 'agentPrompt', + { + id: args.where.id, + }, + 'DeleteAgentPromptInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentPrompt', + fieldName: 'deleteAgentPrompt', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/agentSkill.ts b/sdk/constructive-sdk/src/agent/orm/models/agentSkill.ts new file mode 100644 index 0000000000..6d9674a010 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/agentSkill.ts @@ -0,0 +1,244 @@ +/** + * AgentSkill model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentSkill, + AgentSkillWithRelations, + AgentSkillSelect, + AgentSkillFilter, + AgentSkillOrderBy, + CreateAgentSkillInput, + UpdateAgentSkillInput, + AgentSkillPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentSkillModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkills: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkills', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkill: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkill', + document, + variables, + transform: (data: { + agentSkills?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentSkill: data.agentSkills?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentSkill: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentSkill', + 'agentSkills', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentSkillFilter', + 'AgentSkillOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentSkill', + fieldName: 'agentSkill', + document, + variables, + transform: (data: { + agentSkills?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentSkill: data.agentSkills?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentSkill', + 'createAgentSkill', + 'agentSkill', + args.select, + args.data, + 'CreateAgentSkillInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'createAgentSkill', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentSkillPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentSkill', + 'updateAgentSkill', + 'agentSkill', + args.select, + args.where.id, + args.data, + 'UpdateAgentSkillInput', + 'id', + 'agentSkillPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'updateAgentSkill', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentSkill: { + agentSkill: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentSkill', + 'deleteAgentSkill', + 'agentSkill', + { + id: args.where.id, + }, + 'DeleteAgentSkillInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentSkill', + fieldName: 'deleteAgentSkill', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/agentTask.ts b/sdk/constructive-sdk/src/agent/orm/models/agentTask.ts new file mode 100644 index 0000000000..3bbc609f16 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/agentTask.ts @@ -0,0 +1,244 @@ +/** + * AgentTask model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentTask, + AgentTaskWithRelations, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, + CreateAgentTaskInput, + UpdateAgentTaskInput, + AgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentTask', + 'createAgentTask', + 'agentTask', + args.select, + args.data, + 'CreateAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'createAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentTask', + 'updateAgentTask', + 'agentTask', + args.select, + args.where.id, + args.data, + 'UpdateAgentTaskInput', + 'id', + 'agentTaskPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'updateAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentTask', + 'deleteAgentTask', + 'agentTask', + { + id: args.where.id, + }, + 'DeleteAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'deleteAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/agentThread.ts b/sdk/constructive-sdk/src/agent/orm/models/agentThread.ts new file mode 100644 index 0000000000..7bbd14abec --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/agentThread.ts @@ -0,0 +1,244 @@ +/** + * AgentThread model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentThread, + AgentThreadWithRelations, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, + CreateAgentThreadInput, + UpdateAgentThreadInput, + AgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentThread', + 'createAgentThread', + 'agentThread', + args.select, + args.data, + 'CreateAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'createAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentThread', + 'updateAgentThread', + 'agentThread', + args.select, + args.where.id, + args.data, + 'UpdateAgentThreadInput', + 'id', + 'agentThreadPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'updateAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentThread', + 'deleteAgentThread', + 'agentThread', + { + id: args.where.id, + }, + 'DeleteAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'deleteAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/models/index.ts b/sdk/constructive-sdk/src/agent/orm/models/index.ts new file mode 100644 index 0000000000..2c3871f194 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/models/index.ts @@ -0,0 +1,11 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { AgentPlanModel } from './agentPlan'; +export { AgentMessageModel } from './agentMessage'; +export { AgentTaskModel } from './agentTask'; +export { AgentThreadModel } from './agentThread'; +export { AgentPromptModel } from './agentPrompt'; +export { AgentSkillModel } from './agentSkill'; diff --git a/sdk/constructive-sdk/src/agent/orm/mutation/index.ts b/sdk/constructive-sdk/src/agent/orm/mutation/index.ts new file mode 100644 index 0000000000..989afbcbd6 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/mutation/index.ts @@ -0,0 +1,57 @@ +/** + * Custom mutation operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + ProvisionBucketInput, + ProvisionBucketPayload, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for provisionBucket + * Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + */ +export interface ProvisionBucketVariables { + input: ProvisionBucketInput; +} +export function createMutationOperations(client: OrmClient) { + return { + provisionBucket: ( + args: ProvisionBucketVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionBucket: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionBucket', + fieldName: 'provisionBucket', + ...buildCustomDocument( + 'mutation', + 'ProvisionBucket', + 'provisionBucket', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionBucketInput!', + }, + ], + connectionFieldsMap, + 'ProvisionBucketPayload' + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/agent/orm/query-builder.ts b/sdk/constructive-sdk/src/agent/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/agent/orm/realtime.ts b/sdk/constructive-sdk/src/agent/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/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/agent/orm/select-types.ts b/sdk/constructive-sdk/src/agent/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-sdk/src/agent/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/agent/orm/types.ts b/sdk/constructive-sdk/src/agent/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-sdk/src/agent/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/api/README.md b/sdk/constructive-sdk/src/api/README.md new file mode 100644 index 0000000000..6873e2e667 --- /dev/null +++ b/sdk/constructive-sdk/src/api/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 45 +- **Custom queries:** 1 +- **Custom mutations:** 9 + +**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/api/index.ts b/sdk/constructive-sdk/src/api/index.ts new file mode 100644 index 0000000000..654223e7a5 --- /dev/null +++ b/sdk/constructive-sdk/src/api/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/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md new file mode 100644 index 0000000000..8690e7411b --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/README.md @@ -0,0 +1,2001 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `function` | findMany, findOne, create, update, delete | +| `schema` | findMany, findOne, create, update, delete | +| `table` | findMany, findOne, create, update, delete | +| `checkConstraint` | findMany, findOne, create, update, delete | +| `field` | findMany, findOne, create, update, delete | +| `spatialRelation` | findMany, findOne, create, update, delete | +| `foreignKeyConstraint` | findMany, findOne, create, update, delete | +| `fullTextSearch` | findMany, findOne, create, update, delete | +| `index` | findMany, findOne, create, update, delete | +| `policy` | findMany, findOne, create, update, delete | +| `primaryKeyConstraint` | findMany, findOne, create, update, delete | +| `tableGrant` | findMany, findOne, create, update, delete | +| `trigger` | findMany, findOne, create, update, delete | +| `uniqueConstraint` | findMany, findOne, create, update, delete | +| `view` | findMany, findOne, create, update, delete | +| `viewTable` | findMany, findOne, create, update, delete | +| `viewGrant` | findMany, findOne, create, update, delete | +| `viewRule` | findMany, findOne, create, update, delete | +| `embeddingChunk` | findMany, findOne, create, update, delete | +| `schemaGrant` | findMany, findOne, create, update, delete | +| `defaultPrivilege` | findMany, findOne, create, update, delete | +| `enum` | findMany, findOne, create, update, delete | +| `apiSchema` | findMany, findOne, create, update, delete | +| `apiModule` | findMany, findOne, create, update, delete | +| `domain` | findMany, findOne, create, update, delete | +| `siteMetadatum` | findMany, findOne, create, update, delete | +| `siteModule` | findMany, findOne, create, update, delete | +| `siteTheme` | findMany, findOne, create, update, delete | +| `corsSetting` | findMany, findOne, create, update, delete | +| `triggerFunction` | findMany, findOne, create, update, delete | +| `partition` | findMany, findOne, create, update, delete | +| `databaseTransfer` | findMany, findOne, create, update, delete | +| `api` | findMany, findOne, create, update, delete | +| `site` | findMany, findOne, create, update, delete | +| `app` | findMany, findOne, create, update, delete | +| `apiSetting` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `pubkeySetting` | findMany, findOne, create, update, delete | +| `database` | findMany, findOne, create, update, delete | +| `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 | + +## Table Operations + +### `db.function` + +CRUD operations for Function records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all function records +const items = await db.function.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); + +// Get one by id +const item = await db.function.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); + +// Create +const created = await db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.function.delete({ where: { id: '' } }).execute(); +``` + +### `db.schema` + +CRUD operations for Schema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `schemaName` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `isPublic` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schema records +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schema.delete({ where: { id: '' } }).execute(); +``` + +### `db.table` + +CRUD operations for Table records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `useRls` | Boolean | Yes | +| `timestamps` | Boolean | Yes | +| `peoplestamps` | Boolean | Yes | +| `pluralName` | String | Yes | +| `singularName` | String | Yes | +| `tags` | String | Yes | +| `partitioned` | Boolean | Yes | +| `partitionStrategy` | String | Yes | +| `partitionKeyNames` | String | Yes | +| `partitionKeyTypes` | String | Yes | +| `inheritsId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.table.delete({ where: { id: '' } }).execute(); +``` + +### `db.checkConstraint` + +CRUD operations for CheckConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `expr` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all checkConstraint records +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.field` + +CRUD operations for Field records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | +| `defaultValue` | JSON | Yes | +| `type` | JSON | Yes | +| `fieldOrder` | Int | Yes | +| `regexp` | String | Yes | +| `chk` | JSON | Yes | +| `chkExpr` | JSON | Yes | +| `min` | Float | Yes | +| `max` | Float | Yes | +| `tags` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.field.delete({ where: { id: '' } }).execute(); +``` + +### `db.spatialRelation` + +CRUD operations for SpatialRelation records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `name` | String | Yes | +| `operator` | String | Yes | +| `paramName` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all spatialRelation records +const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); +``` + +### `db.foreignKeyConstraint` + +CRUD operations for ForeignKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldIds` | UUID | Yes | +| `deleteAction` | String | Yes | +| `updateAction` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all foreignKeyConstraint records +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.fullTextSearch` + +CRUD operations for FullTextSearch records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fieldIds` | UUID | Yes | +| `weights` | String | Yes | +| `langs` | String | Yes | +| `langColumn` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all fullTextSearch records +const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, langColumn: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '', langColumn: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); +``` + +### `db.index` + +CRUD operations for Index records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `fieldIds` | UUID | Yes | +| `includeFieldIds` | UUID | Yes | +| `accessMethod` | String | Yes | +| `indexParams` | JSON | Yes | +| `whereClause` | JSON | Yes | +| `isUnique` | Boolean | Yes | +| `options` | JSON | Yes | +| `opClasses` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all index records +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.index.delete({ where: { id: '' } }).execute(); +``` + +### `db.policy` + +CRUD operations for Policy records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `granteeName` | String | Yes | +| `privilege` | String | Yes | +| `permissive` | Boolean | Yes | +| `disabled` | Boolean | Yes | +| `policyType` | String | Yes | +| `data` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.policy.delete({ where: { id: '' } }).execute(); +``` + +### `db.primaryKeyConstraint` + +CRUD operations for PrimaryKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all primaryKeyConstraint records +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.tableGrant` + +CRUD operations for TableGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `fieldIds` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all tableGrant records +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.trigger` + +CRUD operations for Trigger records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `functionName` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all trigger records +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); +``` + +### `db.uniqueConstraint` + +CRUD operations for UniqueConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all uniqueConstraint records +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.view` + +CRUD operations for View records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `tableId` | UUID | Yes | +| `viewType` | String | Yes | +| `data` | JSON | Yes | +| `filterType` | String | Yes | +| `filterData` | JSON | Yes | +| `securityInvoker` | Boolean | Yes | +| `isReadOnly` | Boolean | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all view records +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.view.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewTable` + +CRUD operations for ViewTable records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `viewId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `joinOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all viewTable records +const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Get one by id +const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Create +const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewGrant` + +CRUD operations for ViewGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `granteeName` | String | Yes | +| `privilege` | String | Yes | +| `withGrantOption` | Boolean | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all viewGrant records +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); + +// Create +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewRule` + +CRUD operations for ViewRule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `action` | String | Yes | + +**Operations:** + +```typescript +// List all viewRule records +const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Get one by id +const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Create +const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.embeddingChunk` + +CRUD operations for EmbeddingChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `embeddingFieldId` | UUID | Yes | +| `chunksTableId` | UUID | Yes | +| `chunksTableName` | String | Yes | +| `contentFieldName` | String | Yes | +| `dimensions` | Int | Yes | +| `metric` | String | Yes | +| `chunkSize` | Int | Yes | +| `chunkOverlap` | Int | Yes | +| `chunkStrategy` | String | Yes | +| `metadataFields` | JSON | Yes | +| `searchIndexes` | JSON | Yes | +| `enqueueChunkingJob` | Boolean | Yes | +| `chunkingTaskName` | String | Yes | +| `embeddingModel` | String | Yes | +| `embeddingProvider` | String | Yes | +| `parentFkFieldId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all embeddingChunk records +const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); +``` + +### `db.schemaGrant` + +CRUD operations for SchemaGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `granteeName` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schemaGrant records +const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.defaultPrivilege` + +CRUD operations for DefaultPrivilege records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `objectType` | String | Yes | +| `privilege` | String | Yes | +| `granteeName` | String | Yes | +| `isGrant` | Boolean | Yes | + +**Operations:** + +```typescript +// List all defaultPrivilege records +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Get one by id +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); + +// Create +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + +### `db.enum` + +CRUD operations for Enum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `values` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all enum records +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.enum.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiSchema` + +CRUD operations for ApiSchema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `apiId` | UUID | Yes | + +**Operations:** + +```typescript +// List all apiSchema records +const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Get one by id +const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Create +const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiModule` + +CRUD operations for ApiModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all apiModule records +const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.domain` + +CRUD operations for Domain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `subdomain` | ConstructiveInternalTypeHostname | Yes | +| `domain` | ConstructiveInternalTypeHostname | Yes | + +**Operations:** + +```typescript +// List all domain records +const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Get one by id +const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Create +const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.domain.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteMetadatum` + +CRUD operations for SiteMetadatum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | + +**Operations:** + +```typescript +// List all siteMetadatum records +const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Get one by id +const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Create +const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteModule` + +CRUD operations for SiteModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteModule records +const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteTheme` + +CRUD operations for SiteTheme records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `theme` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteTheme records +const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Get one by id +const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Create +const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); +``` + +### `db.corsSetting` + +CRUD operations for CorsSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `allowedOrigins` | String | Yes | + +**Operations:** + +```typescript +// List all corsSetting records +const items = await db.corsSetting.findMany({ select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); + +// Get one by id +const item = await db.corsSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); + +// Create +const created = await db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.corsSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.triggerFunction` + +CRUD operations for TriggerFunction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `code` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all triggerFunction records +const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +``` + +### `db.partition` + +CRUD operations for Partition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `strategy` | String | Yes | +| `partitionKeyId` | UUID | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | +| `premake` | Int | Yes | +| `namingPattern` | String | Yes | +| `isParented` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all partition records +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.partition.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseTransfer` + +CRUD operations for DatabaseTransfer records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `targetOwnerId` | UUID | Yes | +| `sourceApproved` | Boolean | Yes | +| `targetApproved` | Boolean | Yes | +| `sourceApprovedAt` | Datetime | Yes | +| `targetApprovedAt` | Datetime | Yes | +| `status` | String | Yes | +| `initiatedBy` | UUID | Yes | +| `notes` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseTransfer records +const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Get one by id +const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Create +const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); +``` + +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `dbname` | String | Yes | +| `roleName` | String | Yes | +| `anonRole` | String | Yes | +| `isPublic` | Boolean | Yes | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Create +const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + +### `db.site` + +CRUD operations for Site records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | +| `favicon` | ConstructiveInternalTypeAttachment | Yes | +| `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `dbname` | String | Yes | + +**Operations:** + +```typescript +// List all site records +const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Get one by id +const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Create +const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.site.delete({ where: { id: '' } }).execute(); +``` + +### `db.app` + +CRUD operations for App records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `appImage` | ConstructiveInternalTypeImage | Yes | +| `appStoreLink` | ConstructiveInternalTypeUrl | Yes | +| `appStoreId` | String | Yes | +| `appIdPrefix` | String | Yes | +| `playStoreLink` | ConstructiveInternalTypeUrl | Yes | + +**Operations:** + +```typescript +// List all app records +const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Get one by id +const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Create +const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.app.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiSetting` + +CRUD operations for ApiSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `enableI18N` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all apiSetting records +const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Get one by id +const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Create +const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); + +// Get one by id +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); + +// Create +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +``` + +### `db.nodeTypeRegistry` + +CRUD operations for NodeTypeRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Create +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); + +// Update +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); + +// Delete +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +``` + +### `db.pubkeySetting` + +CRUD operations for PubkeySetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `cryptoNetwork` | String | Yes | +| `userField` | String | Yes | +| `signUpWithKeyFunctionId` | UUID | Yes | +| `signInRequestChallengeFunctionId` | UUID | Yes | +| `signInRecordFailureFunctionId` | UUID | Yes | +| `signInWithChallengeFunctionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all pubkeySetting records +const items = await db.pubkeySetting.findMany({ select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); + +// Get one by id +const item = await db.pubkeySetting.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); + +// Create +const created = await db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.database` + +CRUD operations for Database records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `schemaHash` | String | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.database.delete({ where: { id: '' } }).execute(); +``` + +### `db.rlsSetting` + +CRUD operations for RlsSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `authenticateSchemaId` | UUID | Yes | +| `roleSchemaId` | UUID | Yes | +| `authenticateFunctionId` | UUID | Yes | +| `authenticateStrictFunctionId` | UUID | Yes | +| `currentRoleFunctionId` | UUID | Yes | +| `currentRoleIdFunctionId` | UUID | Yes | +| `currentUserAgentFunctionId` | UUID | Yes | +| `currentIpAddressFunctionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all rlsSetting records +const items = await db.rlsSetting.findMany({ select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); + +// Get one by id +const item = await db.rlsSetting.findOne({ id: '', select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); + +// Create +const created = await db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.sqlAction` + +CRUD operations for SqlAction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `deploy` | String | Yes | +| `deps` | String | Yes | +| `payload` | JSON | Yes | +| `content` | String | Yes | +| `revert` | String | Yes | +| `verify` | String | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all sqlAction records +const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Get one by id +const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Create +const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseSetting` + +CRUD operations for DatabaseSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `enableI18N` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all databaseSetting records +const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Get one by id +const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, enableI18N: true, options: true } }).execute(); + +// Create +const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); +``` + +### `db.webauthnSetting` + +CRUD operations for WebauthnSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `credentialsSchemaId` | UUID | Yes | +| `sessionsSchemaId` | UUID | Yes | +| `sessionSecretsSchemaId` | UUID | Yes | +| `credentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionSecretsTableId` | UUID | Yes | +| `userFieldId` | UUID | Yes | +| `rpId` | String | Yes | +| `rpName` | String | Yes | +| `originAllowlist` | String | Yes | +| `attestationType` | String | Yes | +| `requireUserVerification` | Boolean | Yes | +| `residentKey` | String | Yes | +| `challengeExpirySeconds` | BigInt | Yes | + +**Operations:** + +```typescript +// List all webauthnSetting records +const items = await db.webauthnSetting.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.webauthnSetting.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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` + +applyRegistryDefaults + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `nodeType` | String | + | `data` | JSON | + +```typescript +const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); +``` + +### `db.mutation.acceptDatabaseTransfer` + +acceptDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | AcceptDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.cancelDatabaseTransfer` + +cancelDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CancelDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.rejectDatabaseTransfer` + +rejectDatabaseTransfer + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RejectDatabaseTransferInput (required) | + +```typescript +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); +``` + +### `db.mutation.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 + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +```typescript +const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); +``` + +### `db.mutation.applyRls` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` + +### `db.mutation.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) + +Returns the database_id UUID of the newly created database. + +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 + + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateUserDatabaseInput (required) | + +```typescript +const result = await db.mutation.createUserDatabase({ 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/api/orm/client.ts b/sdk/constructive-sdk/src/api/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-sdk/src/api/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/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts new file mode 100644 index 0000000000..b2161f6fdc --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -0,0 +1,136 @@ +/** + * 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 { FunctionModel } from './models/function'; +import { SchemaModel } from './models/schema'; +import { TableModel } from './models/table'; +import { CheckConstraintModel } from './models/checkConstraint'; +import { FieldModel } from './models/field'; +import { SpatialRelationModel } from './models/spatialRelation'; +import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; +import { FullTextSearchModel } from './models/fullTextSearch'; +import { IndexModel } from './models/index'; +import { PolicyModel } from './models/policy'; +import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; +import { TableGrantModel } from './models/tableGrant'; +import { TriggerModel } from './models/trigger'; +import { UniqueConstraintModel } from './models/uniqueConstraint'; +import { ViewModel } from './models/view'; +import { ViewTableModel } from './models/viewTable'; +import { ViewGrantModel } from './models/viewGrant'; +import { ViewRuleModel } from './models/viewRule'; +import { EmbeddingChunkModel } from './models/embeddingChunk'; +import { SchemaGrantModel } from './models/schemaGrant'; +import { DefaultPrivilegeModel } from './models/defaultPrivilege'; +import { EnumModel } from './models/enum'; +import { ApiSchemaModel } from './models/apiSchema'; +import { ApiModuleModel } from './models/apiModule'; +import { DomainModel } from './models/domain'; +import { SiteMetadatumModel } from './models/siteMetadatum'; +import { SiteModuleModel } from './models/siteModule'; +import { SiteThemeModel } from './models/siteTheme'; +import { CorsSettingModel } from './models/corsSetting'; +import { TriggerFunctionModel } from './models/triggerFunction'; +import { PartitionModel } from './models/partition'; +import { DatabaseTransferModel } from './models/databaseTransfer'; +import { ApiModel } from './models/api'; +import { SiteModel } from './models/site'; +import { AppModel } from './models/app'; +import { ApiSettingModel } from './models/apiSetting'; +import { MigrateFileModel } from './models/migrateFile'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { PubkeySettingModel } from './models/pubkeySetting'; +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 { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @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 { + function: new FunctionModel(client), + schema: new SchemaModel(client), + table: new TableModel(client), + checkConstraint: new CheckConstraintModel(client), + field: new FieldModel(client), + spatialRelation: new SpatialRelationModel(client), + foreignKeyConstraint: new ForeignKeyConstraintModel(client), + fullTextSearch: new FullTextSearchModel(client), + index: new IndexModel(client), + policy: new PolicyModel(client), + primaryKeyConstraint: new PrimaryKeyConstraintModel(client), + tableGrant: new TableGrantModel(client), + trigger: new TriggerModel(client), + uniqueConstraint: new UniqueConstraintModel(client), + view: new ViewModel(client), + viewTable: new ViewTableModel(client), + viewGrant: new ViewGrantModel(client), + viewRule: new ViewRuleModel(client), + embeddingChunk: new EmbeddingChunkModel(client), + schemaGrant: new SchemaGrantModel(client), + defaultPrivilege: new DefaultPrivilegeModel(client), + enum: new EnumModel(client), + apiSchema: new ApiSchemaModel(client), + apiModule: new ApiModuleModel(client), + domain: new DomainModel(client), + siteMetadatum: new SiteMetadatumModel(client), + siteModule: new SiteModuleModel(client), + siteTheme: new SiteThemeModel(client), + corsSetting: new CorsSettingModel(client), + triggerFunction: new TriggerFunctionModel(client), + partition: new PartitionModel(client), + databaseTransfer: new DatabaseTransferModel(client), + api: new ApiModel(client), + site: new SiteModel(client), + app: new AppModel(client), + apiSetting: new ApiSettingModel(client), + migrateFile: new MigrateFileModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), + pubkeySetting: new PubkeySettingModel(client), + database: new DatabaseModel(client), + rlsSetting: new RlsSettingModel(client), + sqlAction: new SqlActionModel(client), + databaseSetting: new DatabaseSettingModel(client), + webauthnSetting: new WebauthnSettingModel(client), + astMigration: new AstMigrationModel(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 new file mode 100644 index 0000000000..8da4e53642 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -0,0 +1,13087 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface VectorFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Enum Types ============ +export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeUpload = unknown; +export type ConstructiveInternalTypeUrl = unknown; +// ============ Entity Types ============ +export interface Function { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; +} +export interface Schema { + id: string; + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + isPublic?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Table { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string[] | null; + partitioned?: boolean | null; + partitionStrategy?: string | null; + partitionKeyNames?: string[] | null; + partitionKeyTypes?: string[] | null; + inheritsId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface CheckConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Field { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + defaultValue?: Record | null; + type?: Record | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface SpatialRelation { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + name?: string | null; + operator?: string | null; + paramName?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ForeignKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + refTableId?: string | null; + refFieldIds?: string[] | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface FullTextSearch { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; + langColumn?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Index { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + options?: Record | null; + opClasses?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Policy { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + granteeName?: string | null; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PrimaryKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface TableGrant { + id: string; + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + granteeName?: string | null; + fieldIds?: string[] | null; + isGrant?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Trigger { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface UniqueConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface View { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +/** Junction table linking views to their joined tables for referential integrity */ +export interface ViewTable { + id: string; + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface ViewGrant { + id: string; + databaseId?: string | null; + viewId?: string | null; + granteeName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; + isGrant?: boolean | null; +} +/** DO INSTEAD rules for views (e.g., read-only enforcement) */ +export interface ViewRule { + id: string; + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + /** INSERT, UPDATE, or DELETE */ + event?: string | null; + /** NOTHING (for read-only) or custom action */ + action?: string | null; +} +export interface EmbeddingChunk { + id: string; + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + searchIndexes?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + embeddingModel?: string | null; + embeddingProvider?: string | null; + parentFkFieldId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface SchemaGrant { + id: string; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface DefaultPrivilege { + id: string; + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface Enum { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ +export interface ApiSchema { + /** Unique identifier for this API-schema mapping */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Metaschema schema being exposed through the API */ + schemaId?: string | null; + /** API that exposes this schema */ + apiId?: string | null; +} +/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ +export interface ApiModule { + /** Unique identifier for this API module record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** API this module configuration belongs to */ + apiId?: string | null; + /** Module name (e.g. auth, uploads, webhooks) */ + name?: string | null; + /** JSON configuration data for this module */ + data?: Record | null; +} +/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ +export interface Domain { + /** Unique identifier for this domain record */ + id: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId?: string | null; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string | null; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string | null; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname | null; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname | null; +} +/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ +export interface SiteMetadatum { + /** Unique identifier for this metadata record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this metadata belongs to */ + siteId?: string | null; + /** Page title for SEO (max 120 characters) */ + title?: string | null; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string | null; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage | null; +} +/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ +export interface SiteModule { + /** Unique identifier for this site module record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this module configuration belongs to */ + siteId?: string | null; + /** Module name (e.g. user_auth_module, analytics) */ + name?: string | null; + /** JSON configuration data for this module */ + data?: Record | null; +} +/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ +export interface SiteTheme { + /** Unique identifier for this theme record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Site this theme belongs to */ + siteId?: string | null; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: Record | null; +} +/** Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries */ +export interface CorsSetting { + /** Unique identifier for this CORS settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string | null; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[] | null; +} +export interface TriggerFunction { + id: string; + databaseId?: string | null; + name?: string | null; + code?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Partition { + id: string; + databaseId?: string | null; + tableId?: string | null; + strategy?: string | null; + partitionKeyId?: string | null; + interval?: string | null; + retention?: string | null; + retentionKeepTable?: boolean | null; + premake?: number | null; + namingPattern?: string | null; + isParented?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface DatabaseTransfer { + id: string; + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; +} +/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ +export interface Api { + /** Unique identifier for this API */ + id: string; + /** Reference to the metaschema database this API serves */ + databaseId?: string | null; + /** Unique name for this API within its database */ + name?: string | null; + /** PostgreSQL database name to connect to */ + dbname?: string | null; + /** PostgreSQL role used for authenticated requests */ + roleName?: string | null; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string | null; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean | null; +} +/** Top-level site configuration: branding assets, title, and description for a deployed application */ +export interface Site { + /** Unique identifier for this site */ + id: string; + /** Reference to the metaschema database this site belongs to */ + databaseId?: string | null; + /** Display title for the site (max 120 characters) */ + title?: string | null; + /** Short description of the site (max 120 characters) */ + description?: string | null; + /** Open Graph image used for social media link previews */ + ogImage?: ConstructiveInternalTypeImage | null; + /** Browser favicon attachment */ + favicon?: ConstructiveInternalTypeAttachment | null; + /** Apple touch icon for iOS home screen bookmarks */ + appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** Primary logo image for the site */ + logo?: ConstructiveInternalTypeImage | null; + /** PostgreSQL database name this site connects to */ + dbname?: string | null; +} +/** Mobile and native app configuration linked to a site, including store links and identifiers */ +export interface App { + /** Unique identifier for this app */ + id: string; + /** Reference to the metaschema database this app belongs to */ + databaseId?: string | null; + /** Site this app is associated with (one app per site) */ + siteId?: string | null; + /** Display name of the app */ + name?: string | null; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage | null; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl | null; + /** Apple App Store application identifier */ + appStoreId?: string | null; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string | null; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl | null; +} +/** Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default */ +export interface ApiSetting { + /** Unique identifier for this API settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** API these settings override for */ + apiId?: string | null; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean | null; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean | null; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean | null; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean | null; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean | null; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean | null; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean | null; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean | null; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean | null; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean | null; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean | null; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean | null; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: Record | null; +} +export interface MigrateFile { + id: string; + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ +export interface PubkeySetting { + /** Unique identifier for this pubkey settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string | null; + /** Field name used to identify the user in crypto auth functions */ + userField?: string | null; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string | null; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string | null; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string | null; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string | null; +} +export interface Database { + id: string; + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ +export interface RlsSetting { + /** Unique identifier for this RLS settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string | null; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string | null; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string | null; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string | null; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string | null; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string | null; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string | null; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string | null; +} +export interface SqlAction { + id: number; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ +export interface DatabaseSetting { + /** Unique identifier for this settings record */ + id: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string | null; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean | null; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean | null; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean | null; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean | null; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean | null; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean | null; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean | null; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean | null; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean | null; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean | null; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean | null; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean | null; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record | 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 */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string | null; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string | null; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string | null; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string | null; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string | null; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string | null; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string | null; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string | null; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string | null; + /** WebAuthn Relying Party display name */ + rpName?: string | null; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[] | null; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string | null; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean | null; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string | null; + /** 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[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface FunctionRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface SchemaRelations { + database?: Database | null; + tables?: ConnectionResult
; + schemaGrants?: ConnectionResult; + views?: ConnectionResult; + defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + functions?: ConnectionResult; + apiSchemas?: ConnectionResult; +} +export interface TableRelations { + database?: Database | null; + schema?: Schema | null; + inherits?: Table | null; + partition?: Partition | null; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + tableGrants?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewTables?: ConnectionResult; + embeddingChunksByChunksTableId?: ConnectionResult; + embeddingChunks?: ConnectionResult; + spatialRelationsByRefTableId?: ConnectionResult; + spatialRelations?: ConnectionResult; +} +export interface CheckConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface FieldRelations { + database?: Database | null; + table?: Table | null; + spatialRelations?: ConnectionResult; + spatialRelationsByRefFieldId?: ConnectionResult; +} +export interface SpatialRelationRelations { + database?: Database | null; + field?: Field | null; + refField?: Field | null; + refTable?: Table | null; + table?: Table | null; +} +export interface ForeignKeyConstraintRelations { + database?: Database | null; + refTable?: Table | null; + table?: Table | null; +} +export interface FullTextSearchRelations { + database?: Database | null; + table?: Table | null; +} +export interface IndexRelations { + database?: Database | null; + table?: Table | null; +} +export interface PolicyRelations { + database?: Database | null; + table?: Table | null; +} +export interface PrimaryKeyConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface TableGrantRelations { + database?: Database | null; + table?: Table | null; +} +export interface TriggerRelations { + database?: Database | null; + table?: Table | null; +} +export interface UniqueConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface ViewRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; + viewTables?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; +} +export interface ViewTableRelations { + table?: Table | null; + view?: View | null; +} +export interface ViewGrantRelations { + database?: Database | null; + view?: View | null; +} +export interface ViewRuleRelations { + database?: Database | null; + view?: View | null; +} +export interface EmbeddingChunkRelations { + chunksTable?: Table | null; + database?: Database | null; + embeddingField?: Field | null; + parentFkField?: Field | null; + table?: Table | null; +} +export interface SchemaGrantRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface DefaultPrivilegeRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface EnumRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface ApiSchemaRelations { + api?: Api | null; + database?: Database | null; + schema?: Schema | null; +} +export interface ApiModuleRelations { + api?: Api | null; + database?: Database | null; +} +export interface DomainRelations { + api?: Api | null; + database?: Database | null; + site?: Site | null; +} +export interface SiteMetadatumRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteModuleRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteThemeRelations { + database?: Database | null; + site?: Site | null; +} +export interface CorsSettingRelations { + api?: Api | null; + database?: Database | null; +} +export interface TriggerFunctionRelations { + database?: Database | null; +} +export interface PartitionRelations { + database?: Database | null; + partitionKey?: Field | null; + table?: Table | null; +} +export interface DatabaseTransferRelations { + database?: Database | null; +} +export interface ApiRelations { + database?: Database | null; + apiSetting?: ApiSetting | null; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + domains?: ConnectionResult; + corsSettings?: ConnectionResult; +} +export interface SiteRelations { + database?: Database | null; + app?: App | null; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; +} +export interface AppRelations { + site?: Site | null; + database?: Database | null; +} +export interface ApiSettingRelations { + api?: Api | null; + database?: Database | null; +} +export interface MigrateFileRelations {} +export interface NodeTypeRegistryRelations {} +export interface PubkeySettingRelations { + database?: Database | null; + schema?: Schema | null; + signInRecordFailureFunction?: Function | null; + signInRequestChallengeFunction?: Function | null; + signInWithChallengeFunction?: Function | null; + signUpWithKeyFunction?: Function | null; +} +export interface DatabaseRelations { + databaseSetting?: DatabaseSetting | null; + rlsSetting?: RlsSetting | null; + pubkeySetting?: PubkeySetting | null; + webauthnSetting?: WebauthnSetting | null; + schemas?: ConnectionResult; + tables?: ConnectionResult
; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + schemaGrants?: ConnectionResult; + tableGrants?: ConnectionResult; + triggerFunctions?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; + defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + embeddingChunks?: ConnectionResult; + spatialRelations?: ConnectionResult; + functions?: ConnectionResult; + partitions?: ConnectionResult; + databaseTransfers?: ConnectionResult; + apis?: ConnectionResult; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + sites?: ConnectionResult; + apps?: ConnectionResult; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; + apiSettings?: ConnectionResult; + corsSettings?: ConnectionResult; +} +export interface RlsSettingRelations { + authenticateFunction?: Function | null; + authenticateSchema?: Schema | null; + authenticateStrictFunction?: Function | null; + currentIpAddressFunction?: Function | null; + currentRoleFunction?: Function | null; + currentRoleIdFunction?: Function | null; + currentUserAgentFunction?: Function | null; + database?: Database | null; + roleSchema?: Schema | null; +} +export interface SqlActionRelations {} +export interface DatabaseSettingRelations { + database?: Database | null; +} +export interface WebauthnSettingRelations { + credentialsSchema?: Schema | null; + credentialsTable?: Table | null; + database?: Database | null; + schema?: Schema | null; + sessionCredentialsTable?: Table | null; + sessionSecretsSchema?: Schema | null; + sessionSecretsTable?: Table | null; + sessionsSchema?: Schema | null; + sessionsTable?: Table | null; + userField?: Field | null; +} +export interface AstMigrationRelations {} +// ============ Entity Types With Relations ============ +export type FunctionWithRelations = Function & FunctionRelations; +export type SchemaWithRelations = Schema & SchemaRelations; +export type TableWithRelations = Table & TableRelations; +export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; +export type FieldWithRelations = Field & FieldRelations; +export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; +export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & + ForeignKeyConstraintRelations; +export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; +export type IndexWithRelations = Index & IndexRelations; +export type PolicyWithRelations = Policy & PolicyRelations; +export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & + PrimaryKeyConstraintRelations; +export type TableGrantWithRelations = TableGrant & TableGrantRelations; +export type TriggerWithRelations = Trigger & TriggerRelations; +export type UniqueConstraintWithRelations = UniqueConstraint & UniqueConstraintRelations; +export type ViewWithRelations = View & ViewRelations; +export type ViewTableWithRelations = ViewTable & ViewTableRelations; +export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; +export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; +export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; +export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; +export type EnumWithRelations = Enum & EnumRelations; +export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; +export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; +export type DomainWithRelations = Domain & DomainRelations; +export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; +export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; +export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; +export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; +export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; +export type PartitionWithRelations = Partition & PartitionRelations; +export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; +export type ApiWithRelations = Api & ApiRelations; +export type SiteWithRelations = Site & SiteRelations; +export type AppWithRelations = App & AppRelations; +export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; +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; +// ============ Entity Select Types ============ +export type FunctionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type SchemaSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + schemaName?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + isPublic?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + functions?: { + select: FunctionSelect; + first?: number; + filter?: FunctionFilter; + orderBy?: FunctionOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; +}; +export type TableSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: boolean; + singularName?: boolean; + tags?: boolean; + partitioned?: boolean; + partitionStrategy?: boolean; + partitionKeyNames?: boolean; + partitionKeyTypes?: boolean; + inheritsId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + inherits?: { + select: TableSelect; + }; + partition?: { + select: PartitionSelect; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + embeddingChunksByChunksTableId?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + spatialRelationsByRefTableId?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; +}; +export type CheckConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + expr?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: boolean; + type?: boolean; + fieldOrder?: boolean; + regexp?: boolean; + chk?: boolean; + chkExpr?: boolean; + min?: boolean; + max?: boolean; + tags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + spatialRelationsByRefFieldId?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; +}; +export type SpatialRelationSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + refTableId?: boolean; + refFieldId?: boolean; + name?: boolean; + operator?: boolean; + paramName?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + field?: { + select: FieldSelect; + }; + refField?: { + select: FieldSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ForeignKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + refTableId?: boolean; + refFieldIds?: boolean; + deleteAction?: boolean; + updateAction?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FullTextSearchSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + fieldIds?: boolean; + weights?: boolean; + langs?: boolean; + langColumn?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type IndexSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + fieldIds?: boolean; + includeFieldIds?: boolean; + accessMethod?: boolean; + indexParams?: boolean; + whereClause?: boolean; + isUnique?: boolean; + options?: boolean; + opClasses?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PolicySelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + granteeName?: boolean; + privilege?: boolean; + permissive?: boolean; + disabled?: boolean; + policyType?: boolean; + data?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PrimaryKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TableGrantSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + privilege?: boolean; + granteeName?: boolean; + fieldIds?: boolean; + isGrant?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TriggerSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + event?: boolean; + functionName?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type UniqueConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ViewSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + tableId?: boolean; + viewType?: boolean; + data?: boolean; + filterType?: boolean; + filterData?: boolean; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; +}; +export type ViewTableSelect = { + id?: boolean; + viewId?: boolean; + tableId?: boolean; + joinOrder?: boolean; + table?: { + select: TableSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewGrantSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + granteeName?: boolean; + privilege?: boolean; + withGrantOption?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewRuleSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + name?: boolean; + event?: boolean; + action?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type EmbeddingChunkSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + embeddingFieldId?: boolean; + chunksTableId?: boolean; + chunksTableName?: boolean; + contentFieldName?: boolean; + dimensions?: boolean; + metric?: boolean; + chunkSize?: boolean; + chunkOverlap?: boolean; + chunkStrategy?: boolean; + metadataFields?: boolean; + searchIndexes?: boolean; + enqueueChunkingJob?: boolean; + chunkingTaskName?: boolean; + embeddingModel?: boolean; + embeddingProvider?: boolean; + parentFkFieldId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + chunksTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + embeddingField?: { + select: FieldSelect; + }; + parentFkField?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type SchemaGrantSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + granteeName?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type DefaultPrivilegeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + objectType?: boolean; + privilege?: boolean; + granteeName?: boolean; + isGrant?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type EnumSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + values?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiSchemaSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + apiId?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiModuleSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + name?: boolean; + data?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type DomainSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + siteId?: boolean; + subdomain?: boolean; + domain?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteMetadatumSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteModuleSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + data?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteThemeSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + theme?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type CorsSettingSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + allowedOrigins?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type TriggerFunctionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + code?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type PartitionSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + strategy?: boolean; + partitionKeyId?: boolean; + interval?: boolean; + retention?: boolean; + retentionKeepTable?: boolean; + premake?: boolean; + namingPattern?: boolean; + isParented?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + partitionKey?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type DatabaseTransferSelect = { + id?: boolean; + databaseId?: boolean; + targetOwnerId?: boolean; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: boolean; + targetApprovedAt?: boolean; + status?: boolean; + initiatedBy?: boolean; + notes?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type ApiSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + dbname?: boolean; + roleName?: boolean; + anonRole?: boolean; + isPublic?: boolean; + database?: { + select: DatabaseSelect; + }; + apiSetting?: { + select: ApiSettingSelect; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; +export type SiteSelect = { + id?: boolean; + databaseId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + favicon?: boolean; + appleTouchIcon?: boolean; + logo?: boolean; + dbname?: boolean; + database?: { + select: DatabaseSelect; + }; + app?: { + select: AppSelect; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; +}; +export type AppSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + appImage?: boolean; + appStoreLink?: boolean; + appStoreId?: boolean; + appIdPrefix?: boolean; + playStoreLink?: boolean; + site?: { + select: SiteSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type ApiSettingSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type MigrateFileSelect = { + id?: boolean; + databaseId?: boolean; + upload?: boolean; +}; +export type NodeTypeRegistrySelect = { + name?: boolean; + slug?: boolean; + category?: boolean; + displayName?: boolean; + description?: boolean; + parameterSchema?: boolean; + tags?: boolean; +}; +export type PubkeySettingSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + cryptoNetwork?: boolean; + userField?: boolean; + signUpWithKeyFunctionId?: boolean; + signInRequestChallengeFunctionId?: boolean; + signInRecordFailureFunctionId?: boolean; + signInWithChallengeFunctionId?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + signInRecordFailureFunction?: { + select: FunctionSelect; + }; + signInRequestChallengeFunction?: { + select: FunctionSelect; + }; + signInWithChallengeFunction?: { + select: FunctionSelect; + }; + signUpWithKeyFunction?: { + select: FunctionSelect; + }; +}; +export type DatabaseSelect = { + id?: boolean; + ownerId?: boolean; + schemaHash?: boolean; + name?: boolean; + label?: boolean; + hash?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + rlsSetting?: { + select: RlsSettingSelect; + }; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + schemas?: { + select: SchemaSelect; + first?: number; + filter?: SchemaFilter; + orderBy?: SchemaOrderBy[]; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggerFunctions?: { + select: TriggerFunctionSelect; + first?: number; + filter?: TriggerFunctionFilter; + orderBy?: TriggerFunctionOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; + defaultPrivileges?: { + select: DefaultPrivilegeSelect; + first?: number; + filter?: DefaultPrivilegeFilter; + orderBy?: DefaultPrivilegeOrderBy[]; + }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + spatialRelations?: { + select: SpatialRelationSelect; + first?: number; + filter?: SpatialRelationFilter; + orderBy?: SpatialRelationOrderBy[]; + }; + functions?: { + select: FunctionSelect; + first?: number; + filter?: FunctionFilter; + orderBy?: FunctionOrderBy[]; + }; + partitions?: { + select: PartitionSelect; + first?: number; + filter?: PartitionFilter; + orderBy?: PartitionOrderBy[]; + }; + databaseTransfers?: { + select: DatabaseTransferSelect; + first?: number; + filter?: DatabaseTransferFilter; + orderBy?: DatabaseTransferOrderBy[]; + }; + apis?: { + select: ApiSelect; + first?: number; + filter?: ApiFilter; + orderBy?: ApiOrderBy[]; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + sites?: { + select: SiteSelect; + first?: number; + filter?: SiteFilter; + orderBy?: SiteOrderBy[]; + }; + apps?: { + select: AppSelect; + first?: number; + filter?: AppFilter; + orderBy?: AppOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; + apiSettings?: { + select: ApiSettingSelect; + first?: number; + filter?: ApiSettingFilter; + orderBy?: ApiSettingOrderBy[]; + }; + corsSettings?: { + select: CorsSettingSelect; + first?: number; + filter?: CorsSettingFilter; + orderBy?: CorsSettingOrderBy[]; + }; +}; +export type RlsSettingSelect = { + id?: boolean; + databaseId?: boolean; + authenticateSchemaId?: boolean; + roleSchemaId?: boolean; + authenticateFunctionId?: boolean; + authenticateStrictFunctionId?: boolean; + currentRoleFunctionId?: boolean; + currentRoleIdFunctionId?: boolean; + currentUserAgentFunctionId?: boolean; + currentIpAddressFunctionId?: boolean; + authenticateFunction?: { + select: FunctionSelect; + }; + authenticateSchema?: { + select: SchemaSelect; + }; + authenticateStrictFunction?: { + select: FunctionSelect; + }; + currentIpAddressFunction?: { + select: FunctionSelect; + }; + currentRoleFunction?: { + select: FunctionSelect; + }; + currentRoleIdFunction?: { + select: FunctionSelect; + }; + currentUserAgentFunction?: { + select: FunctionSelect; + }; + database?: { + select: DatabaseSelect; + }; + roleSchema?: { + select: SchemaSelect; + }; +}; +export type SqlActionSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + deploy?: boolean; + deps?: boolean; + payload?: boolean; + content?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; +export type DatabaseSettingSelect = { + id?: boolean; + databaseId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type WebauthnSettingSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + credentialsSchemaId?: boolean; + sessionsSchemaId?: boolean; + sessionSecretsSchemaId?: boolean; + credentialsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + sessionSecretsTableId?: boolean; + userFieldId?: boolean; + rpId?: boolean; + rpName?: boolean; + originAllowlist?: boolean; + attestationType?: boolean; + requireUserVerification?: boolean; + residentKey?: boolean; + challengeExpirySeconds?: boolean; + credentialsSchema?: { + select: SchemaSelect; + }; + credentialsTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + sessionCredentialsTable?: { + select: TableSelect; + }; + sessionSecretsSchema?: { + select: SchemaSelect; + }; + sessionSecretsTable?: { + select: TableSelect; + }; + sessionsSchema?: { + select: SchemaSelect; + }; + sessionsTable?: { + select: TableSelect; + }; + userField?: { + 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. */ + 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 `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionFilter[]; + /** Negates the expression. */ + not?: FunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: SchemaToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; +} +export interface TableFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `partitioned` field. */ + partitioned?: BooleanFilter; + /** Filter by the object’s `partitionStrategy` field. */ + partitionStrategy?: StringFilter; + /** Filter by the object’s `partitionKeyNames` field. */ + partitionKeyNames?: StringListFilter; + /** Filter by the object’s `partitionKeyTypes` field. */ + partitionKeyTypes?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `inherits` relation. */ + inherits?: TableFilter; + /** A related `inherits` exists. */ + inheritsExists?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: TableToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: TableToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: TableToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: TableToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: TableToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: TableToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: TableToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: TableToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: TableToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: TableToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ + spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; + /** `spatialRelationsByRefTableId` exist. */ + spatialRelationsByRefTableIdExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: TableToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `partition` relation. */ + partition?: PartitionFilter; + /** A related `partition` exists. */ + partitionExists?: boolean; +} +export interface CheckConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface FieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: JSONFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** 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?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: FieldToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ + spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; + /** `spatialRelationsByRefFieldId` exist. */ + spatialRelationsByRefFieldIdExist?: boolean; +} +export interface SpatialRelationFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `operator` field. */ + operator?: StringFilter; + /** Filter by the object’s `paramName` field. */ + paramName?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: SpatialRelationFilter[]; + /** Checks for any expressions in this list. */ + or?: SpatialRelationFilter[]; + /** Negates the expression. */ + not?: SpatialRelationFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `field` relation. */ + field?: FieldFilter; + /** Filter by the object’s `refField` relation. */ + refField?: FieldFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface ForeignKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface FullTextSearchFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: StringListFilter; + /** Filter by the object’s `langColumn` field. */ + langColumn?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface IndexFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `opClasses` field. */ + opClasses?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: IndexFilter[]; + /** Negates the expression. */ + not?: IndexFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface PolicyFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface PrimaryKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface TableGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface TriggerFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface UniqueConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** A related `table` exists. */ + tableExists?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: ViewToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: ViewToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: ViewToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; +} +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +export interface EmbeddingChunkFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `searchIndexes` field. */ + searchIndexes?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringFilter; + /** Filter by the object’s `embeddingProvider` field. */ + embeddingProvider?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: 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?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface EnumFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** A related `site` exists. */ + siteExists?: boolean; +} +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +export interface CorsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CorsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: CorsSettingFilter[]; + /** Negates the expression. */ + not?: CorsSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface TriggerFunctionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface PartitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `strategy` field. */ + strategy?: StringFilter; + /** Filter by the object’s `partitionKeyId` field. */ + partitionKeyId?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `namingPattern` field. */ + namingPattern?: StringFilter; + /** Filter by the object’s `isParented` field. */ + isParented?: 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?: PartitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PartitionFilter[]; + /** Negates the expression. */ + not?: PartitionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `partitionKey` relation. */ + partitionKey?: FieldFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface ApiFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: ApiToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: ApiToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; +} +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: 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. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `app` relation. */ + app?: AppFilter; + /** A related `app` exists. */ + appExists?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: SiteToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: SiteToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; +} +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface ApiSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ApiSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSettingFilter[]; + /** Negates the expression. */ + not?: ApiSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface MigrateFileFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `upload` field. */ + upload?: ConstructiveInternalTypeUploadFilter; + /** Checks for all expressions in this list. */ + and?: MigrateFileFilter[]; + /** Checks for any expressions in this list. */ + or?: MigrateFileFilter[]; + /** Negates the expression. */ + not?: MigrateFileFilter; +} +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +export interface PubkeySettingFilter { + /** 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 `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `signUpWithKeyFunctionId` field. */ + signUpWithKeyFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ + signInRequestChallengeFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRecordFailureFunctionId` field. */ + signInRecordFailureFunctionId?: UUIDFilter; + /** Filter by the object’s `signInWithChallengeFunctionId` field. */ + signInWithChallengeFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PubkeySettingFilter[]; + /** Checks for any expressions in this list. */ + or?: PubkeySettingFilter[]; + /** Negates the expression. */ + not?: PubkeySettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `signInRecordFailureFunction` relation. */ + signInRecordFailureFunction?: FunctionFilter; + /** A related `signInRecordFailureFunction` exists. */ + signInRecordFailureFunctionExists?: boolean; + /** Filter by the object’s `signInRequestChallengeFunction` relation. */ + signInRequestChallengeFunction?: FunctionFilter; + /** A related `signInRequestChallengeFunction` exists. */ + signInRequestChallengeFunctionExists?: boolean; + /** Filter by the object’s `signInWithChallengeFunction` relation. */ + signInWithChallengeFunction?: FunctionFilter; + /** A related `signInWithChallengeFunction` exists. */ + signInWithChallengeFunctionExists?: boolean; + /** Filter by the object’s `signUpWithKeyFunction` relation. */ + signUpWithKeyFunction?: FunctionFilter; + /** A related `signUpWithKeyFunction` exists. */ + signUpWithKeyFunctionExists?: boolean; +} +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; + /** Filter by the object’s `schemas` relation. */ + schemas?: DatabaseToManySchemaFilter; + /** `schemas` exist. */ + schemasExist?: boolean; + /** Filter by the object’s `tables` relation. */ + tables?: DatabaseToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: DatabaseToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: DatabaseToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: DatabaseToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggerFunctions` relation. */ + triggerFunctions?: DatabaseToManyTriggerFunctionFilter; + /** `triggerFunctions` exist. */ + triggerFunctionsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: DatabaseToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: DatabaseToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: DatabaseToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: DatabaseToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: DatabaseToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `partitions` relation. */ + partitions?: DatabaseToManyPartitionFilter; + /** `partitions` exist. */ + partitionsExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `apis` relation. */ + apis?: DatabaseToManyApiFilter; + /** `apis` exist. */ + apisExist?: boolean; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: DatabaseToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: DatabaseToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `sites` relation. */ + sites?: DatabaseToManySiteFilter; + /** `sites` exist. */ + sitesExist?: boolean; + /** Filter by the object’s `apps` relation. */ + apps?: DatabaseToManyAppFilter; + /** `apps` exist. */ + appsExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: DatabaseToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: DatabaseToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: DatabaseToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: DatabaseToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `databaseSetting` relation. */ + databaseSetting?: DatabaseSettingFilter; + /** A related `databaseSetting` exists. */ + databaseSettingExists?: boolean; + /** Filter by the object’s `apiSettings` relation. */ + apiSettings?: DatabaseToManyApiSettingFilter; + /** `apiSettings` exist. */ + apiSettingsExist?: boolean; + /** Filter by the object’s `rlsSetting` relation. */ + rlsSetting?: RlsSettingFilter; + /** A related `rlsSetting` exists. */ + rlsSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: DatabaseToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `pubkeySetting` relation. */ + pubkeySetting?: PubkeySettingFilter; + /** A related `pubkeySetting` exists. */ + pubkeySettingExists?: boolean; + /** Filter by the object’s `webauthnSetting` relation. */ + webauthnSetting?: WebauthnSettingFilter; + /** A related `webauthnSetting` exists. */ + webauthnSettingExists?: boolean; +} +export interface RlsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `authenticateSchemaId` field. */ + authenticateSchemaId?: UUIDFilter; + /** Filter by the object’s `roleSchemaId` field. */ + roleSchemaId?: UUIDFilter; + /** Filter by the object’s `authenticateFunctionId` field. */ + authenticateFunctionId?: UUIDFilter; + /** Filter by the object’s `authenticateStrictFunctionId` field. */ + authenticateStrictFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleFunctionId` field. */ + currentRoleFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleIdFunctionId` field. */ + currentRoleIdFunctionId?: UUIDFilter; + /** Filter by the object’s `currentUserAgentFunctionId` field. */ + currentUserAgentFunctionId?: UUIDFilter; + /** Filter by the object’s `currentIpAddressFunctionId` field. */ + currentIpAddressFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RlsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsSettingFilter[]; + /** Negates the expression. */ + not?: RlsSettingFilter; + /** Filter by the object’s `authenticateFunction` relation. */ + authenticateFunction?: FunctionFilter; + /** A related `authenticateFunction` exists. */ + authenticateFunctionExists?: boolean; + /** Filter by the object’s `authenticateSchema` relation. */ + authenticateSchema?: SchemaFilter; + /** A related `authenticateSchema` exists. */ + authenticateSchemaExists?: boolean; + /** Filter by the object’s `authenticateStrictFunction` relation. */ + authenticateStrictFunction?: FunctionFilter; + /** A related `authenticateStrictFunction` exists. */ + authenticateStrictFunctionExists?: boolean; + /** Filter by the object’s `currentIpAddressFunction` relation. */ + currentIpAddressFunction?: FunctionFilter; + /** A related `currentIpAddressFunction` exists. */ + currentIpAddressFunctionExists?: boolean; + /** Filter by the object’s `currentRoleFunction` relation. */ + currentRoleFunction?: FunctionFilter; + /** A related `currentRoleFunction` exists. */ + currentRoleFunctionExists?: boolean; + /** Filter by the object’s `currentRoleIdFunction` relation. */ + currentRoleIdFunction?: FunctionFilter; + /** A related `currentRoleIdFunction` exists. */ + currentRoleIdFunctionExists?: boolean; + /** Filter by the object’s `currentUserAgentFunction` relation. */ + currentUserAgentFunction?: FunctionFilter; + /** A related `currentUserAgentFunction` exists. */ + currentUserAgentFunctionExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `roleSchema` relation. */ + roleSchema?: SchemaFilter; + /** A related `roleSchema` exists. */ + roleSchemaExists?: boolean; +} +export interface SqlActionFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlActionFilter[]; + /** Checks for any expressions in this list. */ + or?: SqlActionFilter[]; + /** Negates the expression. */ + not?: SqlActionFilter; +} +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +export interface WebauthnSettingFilter { + /** 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 `credentialsSchemaId` field. */ + credentialsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionsSchemaId` field. */ + sessionsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsSchemaId` field. */ + sessionSecretsSchemaId?: 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 `userFieldId` field. */ + userFieldId?: 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 `challengeExpirySeconds` field. */ + challengeExpirySeconds?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnSettingFilter[]; + /** Negates the expression. */ + not?: WebauthnSettingFilter; + /** Filter by the object’s `credentialsSchema` relation. */ + credentialsSchema?: SchemaFilter; + /** A related `credentialsSchema` exists. */ + credentialsSchemaExists?: boolean; + /** Filter by the object’s `credentialsTable` relation. */ + credentialsTable?: TableFilter; + /** A related `credentialsTable` exists. */ + credentialsTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `sessionCredentialsTable` relation. */ + sessionCredentialsTable?: TableFilter; + /** A related `sessionCredentialsTable` exists. */ + sessionCredentialsTableExists?: boolean; + /** Filter by the object’s `sessionSecretsSchema` relation. */ + sessionSecretsSchema?: SchemaFilter; + /** A related `sessionSecretsSchema` exists. */ + sessionSecretsSchemaExists?: boolean; + /** Filter by the object’s `sessionSecretsTable` relation. */ + sessionSecretsTable?: TableFilter; + /** A related `sessionSecretsTable` exists. */ + sessionSecretsTableExists?: boolean; + /** Filter by the object’s `sessionsSchema` relation. */ + sessionsSchema?: SchemaFilter; + /** A related `sessionsSchema` exists. */ + sessionsSchemaExists?: boolean; + /** Filter by the object’s `sessionsTable` relation. */ + sessionsTable?: TableFilter; + /** A related `sessionsTable` exists. */ + sessionsTableExists?: boolean; + /** Filter by the object’s `userField` relation. */ + userField?: FieldFilter; + /** 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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type SchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCHEMA_NAME_ASC' + | 'SCHEMA_NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'TIMESTAMPS_ASC' + | 'TIMESTAMPS_DESC' + | 'PEOPLESTAMPS_ASC' + | 'PEOPLESTAMPS_DESC' + | 'PLURAL_NAME_ASC' + | 'PLURAL_NAME_DESC' + | 'SINGULAR_NAME_ASC' + | 'SINGULAR_NAME_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'PARTITIONED_ASC' + | 'PARTITIONED_DESC' + | 'PARTITION_STRATEGY_ASC' + | 'PARTITION_STRATEGY_DESC' + | 'PARTITION_KEY_NAMES_ASC' + | 'PARTITION_KEY_NAMES_DESC' + | 'PARTITION_KEY_TYPES_ASC' + | 'PARTITION_KEY_TYPES_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CheckConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'EXPR_ASC' + | 'EXPR_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'API_REQUIRED_ASC' + | 'API_REQUIRED_DESC' + | 'DEFAULT_VALUE_ASC' + | 'DEFAULT_VALUE_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_ORDER_ASC' + | 'FIELD_ORDER_DESC' + | 'REGEXP_ASC' + | 'REGEXP_DESC' + | 'CHK_ASC' + | 'CHK_DESC' + | 'CHK_EXPR_ASC' + | 'CHK_EXPR_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type SpatialRelationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OPERATOR_ASC' + | 'OPERATOR_DESC' + | 'PARAM_NAME_ASC' + | 'PARAM_NAME_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ForeignKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_IDS_ASC' + | 'REF_FIELD_IDS_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'UPDATE_ACTION_ASC' + | 'UPDATE_ACTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FullTextSearchOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'WEIGHTS_ASC' + | 'WEIGHTS_DESC' + | 'LANGS_ASC' + | 'LANGS_DESC' + | 'LANG_COLUMN_ASC' + | 'LANG_COLUMN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type IndexOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'INCLUDE_FIELD_IDS_ASC' + | 'INCLUDE_FIELD_IDS_DESC' + | 'ACCESS_METHOD_ASC' + | 'ACCESS_METHOD_DESC' + | 'INDEX_PARAMS_ASC' + | 'INDEX_PARAMS_DESC' + | 'WHERE_CLAUSE_ASC' + | 'WHERE_CLAUSE_DESC' + | 'IS_UNIQUE_ASC' + | 'IS_UNIQUE_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'OP_CLASSES_ASC' + | 'OP_CLASSES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PolicyOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'PERMISSIVE_ASC' + | 'PERMISSIVE_DESC' + | 'DISABLED_ASC' + | 'DISABLED_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PrimaryKeyConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TriggerOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'FUNCTION_NAME_ASC' + | 'FUNCTION_NAME_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type UniqueConstraintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ViewOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'VIEW_TYPE_ASC' + | 'VIEW_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FILTER_TYPE_ASC' + | 'FILTER_TYPE_DESC' + | 'FILTER_DATA_ASC' + | 'FILTER_DATA_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type ViewTableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'JOIN_ORDER_ASC' + | 'JOIN_ORDER_DESC'; +export type ViewGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'WITH_GRANT_OPTION_ASC' + | 'WITH_GRANT_OPTION_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +export type ViewRuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC'; +export type EmbeddingChunkOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'EMBEDDING_FIELD_ID_ASC' + | 'EMBEDDING_FIELD_ID_DESC' + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CHUNKS_TABLE_NAME_ASC' + | 'CHUNKS_TABLE_NAME_DESC' + | 'CONTENT_FIELD_NAME_ASC' + | 'CONTENT_FIELD_NAME_DESC' + | 'DIMENSIONS_ASC' + | 'DIMENSIONS_DESC' + | 'METRIC_ASC' + | 'METRIC_DESC' + | 'CHUNK_SIZE_ASC' + | 'CHUNK_SIZE_DESC' + | 'CHUNK_OVERLAP_ASC' + | 'CHUNK_OVERLAP_DESC' + | 'CHUNK_STRATEGY_ASC' + | 'CHUNK_STRATEGY_DESC' + | 'METADATA_FIELDS_ASC' + | 'METADATA_FIELDS_DESC' + | 'SEARCH_INDEXES_ASC' + | 'SEARCH_INDEXES_DESC' + | 'ENQUEUE_CHUNKING_JOB_ASC' + | 'ENQUEUE_CHUNKING_JOB_DESC' + | 'CHUNKING_TASK_NAME_ASC' + | 'CHUNKING_TASK_NAME_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_PROVIDER_ASC' + | 'EMBEDDING_PROVIDER_DESC' + | 'PARENT_FK_FIELD_ID_ASC' + | 'PARENT_FK_FIELD_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type SchemaGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type DefaultPrivilegeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'OBJECT_TYPE_ASC' + | 'OBJECT_TYPE_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC'; +export type EnumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'VALUES_ASC' + | 'VALUES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type ApiSchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +export type ApiModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type DomainOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC'; +export type SiteMetadatumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC'; +export type SiteModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type SiteThemeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'THEME_ASC' + | 'THEME_DESC'; +export type CorsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC'; +export type TriggerFunctionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PartitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'STRATEGY_ASC' + | 'STRATEGY_DESC' + | 'PARTITION_KEY_ID_ASC' + | 'PARTITION_KEY_ID_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'NAMING_PATTERN_ASC' + | 'NAMING_PATTERN_DESC' + | 'IS_PARENTED_ASC' + | 'IS_PARENTED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type DatabaseTransferOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'SOURCE_APPROVED_ASC' + | 'SOURCE_APPROVED_DESC' + | 'TARGET_APPROVED_ASC' + | 'TARGET_APPROVED_DESC' + | 'SOURCE_APPROVED_AT_ASC' + | 'SOURCE_APPROVED_AT_DESC' + | 'TARGET_APPROVED_AT_ASC' + | 'TARGET_APPROVED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INITIATED_BY_ASC' + | 'INITIATED_BY_DESC' + | 'NOTES_ASC' + | 'NOTES_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC'; +export type ApiOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC'; +export type SiteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC' + | 'FAVICON_ASC' + | 'FAVICON_DESC' + | 'APPLE_TOUCH_ICON_ASC' + | 'APPLE_TOUCH_ICON_DESC' + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC'; +export type AppOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'APP_IMAGE_ASC' + | 'APP_IMAGE_DESC' + | 'APP_STORE_LINK_ASC' + | 'APP_STORE_LINK_DESC' + | 'APP_STORE_ID_ASC' + | 'APP_STORE_ID_DESC' + | 'APP_ID_PREFIX_ASC' + | 'APP_ID_PREFIX_DESC' + | 'PLAY_STORE_LINK_ASC' + | 'PLAY_STORE_LINK_DESC'; +export type ApiSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +export type MigrateFileOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type PubkeySettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' + | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' + | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' + | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; +export type DatabaseOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SCHEMA_HASH_ASC' + | 'SCHEMA_HASH_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RlsSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'AUTHENTICATE_SCHEMA_ID_ASC' + | 'AUTHENTICATE_SCHEMA_ID_DESC' + | 'ROLE_SCHEMA_ID_ASC' + | 'ROLE_SCHEMA_ID_DESC' + | 'AUTHENTICATE_FUNCTION_ID_ASC' + | 'AUTHENTICATE_FUNCTION_ID_DESC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' + | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_FUNCTION_ID_DESC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' + | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' + | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' + | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; +export type SqlActionOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type DatabaseSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENABLE_AGGREGATES_ASC' + | 'ENABLE_AGGREGATES_DESC' + | 'ENABLE_POSTGIS_ASC' + | 'ENABLE_POSTGIS_DESC' + | 'ENABLE_SEARCH_ASC' + | 'ENABLE_SEARCH_DESC' + | 'ENABLE_DIRECT_UPLOADS_ASC' + | 'ENABLE_DIRECT_UPLOADS_DESC' + | 'ENABLE_PRESIGNED_UPLOADS_ASC' + | 'ENABLE_PRESIGNED_UPLOADS_DESC' + | 'ENABLE_MANY_TO_MANY_ASC' + | 'ENABLE_MANY_TO_MANY_DESC' + | 'ENABLE_CONNECTION_FILTER_ASC' + | 'ENABLE_CONNECTION_FILTER_DESC' + | 'ENABLE_LTREE_ASC' + | 'ENABLE_LTREE_DESC' + | 'ENABLE_LLM_ASC' + | 'ENABLE_LLM_DESC' + | 'ENABLE_REALTIME_ASC' + | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'ENABLE_I18N_ASC' + | 'ENABLE_I18N_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; +export type 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'; +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; + function: { + databaseId: string; + schemaId: string; + name: string; + }; +} +export interface FunctionPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; +} +export interface UpdateFunctionInput { + clientMutationId?: string; + id: string; + functionPatch: FunctionPatch; +} +export interface DeleteFunctionInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaInput { + clientMutationId?: string; + schema: { + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + }; +} +export interface SchemaPatch { + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; + isPublic?: boolean | null; +} +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + schemaPatch: SchemaPatch; +} +export interface DeleteSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableInput { + clientMutationId?: string; + table: { + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + inheritsId?: string; + }; +} +export interface TablePatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string[] | null; + partitioned?: boolean | null; + partitionStrategy?: string | null; + partitionKeyNames?: string[] | null; + partitionKeyTypes?: string[] | null; + inheritsId?: string | null; +} +export interface UpdateTableInput { + clientMutationId?: string; + id: string; + tablePatch: TablePatch; +} +export interface DeleteTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateCheckConstraintInput { + clientMutationId?: string; + checkConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface CheckConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateCheckConstraintInput { + clientMutationId?: string; + id: string; + checkConstraintPatch: CheckConstraintPatch; +} +export interface DeleteCheckConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFieldInput { + clientMutationId?: string; + field: { + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: Record; + type: Record; + fieldOrder?: number; + regexp?: string; + chk?: Record; + chkExpr?: Record; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + }; +} +export interface FieldPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + defaultValue?: Record | null; + type?: Record | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; +} +export interface UpdateFieldInput { + clientMutationId?: string; + id: string; + fieldPatch: FieldPatch; +} +export interface DeleteFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateSpatialRelationInput { + clientMutationId?: string; + spatialRelation: { + databaseId?: string; + tableId: string; + fieldId: string; + refTableId: string; + refFieldId: string; + name: string; + operator: string; + paramName?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface SpatialRelationPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + name?: string | null; + operator?: string | null; + paramName?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateSpatialRelationInput { + clientMutationId?: string; + id: string; + spatialRelationPatch: SpatialRelationPatch; +} +export interface DeleteSpatialRelationInput { + clientMutationId?: string; + id: string; +} +export interface CreateForeignKeyConstraintInput { + clientMutationId?: string; + foreignKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ForeignKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + refTableId?: string | null; + refFieldIds?: string[] | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateForeignKeyConstraintInput { + clientMutationId?: string; + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +export interface DeleteForeignKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFullTextSearchInput { + clientMutationId?: string; + fullTextSearch: { + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + langColumn?: string; + }; +} +export interface FullTextSearchPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; + langColumn?: string | null; +} +export interface UpdateFullTextSearchInput { + clientMutationId?: string; + id: string; + fullTextSearchPatch: FullTextSearchPatch; +} +export interface DeleteFullTextSearchInput { + clientMutationId?: string; + id: string; +} +export interface CreateIndexInput { + clientMutationId?: string; + index: { + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: Record; + whereClause?: Record; + isUnique?: boolean; + options?: Record; + opClasses?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface IndexPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + options?: Record | null; + opClasses?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateIndexInput { + clientMutationId?: string; + id: string; + indexPatch: IndexPatch; +} +export interface DeleteIndexInput { + clientMutationId?: string; + id: string; +} +export interface CreatePolicyInput { + clientMutationId?: string; + policy: { + databaseId?: string; + tableId: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PolicyPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + granteeName?: string | null; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdatePolicyInput { + clientMutationId?: string; + id: string; + policyPatch: PolicyPatch; +} +export interface DeletePolicyInput { + clientMutationId?: string; + id: string; +} +export interface CreatePrimaryKeyConstraintInput { + clientMutationId?: string; + primaryKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PrimaryKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdatePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; +} +export interface DeletePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + tableGrant: { + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + }; +} +export interface TableGrantPatch { + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + granteeName?: string | null; + fieldIds?: string[] | null; + isGrant?: boolean | null; +} +export interface UpdateTableGrantInput { + clientMutationId?: string; + id: string; + tableGrantPatch: TableGrantPatch; +} +export interface DeleteTableGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateTriggerInput { + clientMutationId?: string; + trigger: { + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface TriggerPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateTriggerInput { + clientMutationId?: string; + id: string; + triggerPatch: TriggerPatch; +} +export interface DeleteTriggerInput { + clientMutationId?: string; + id: string; +} +export interface CreateUniqueConstraintInput { + clientMutationId?: string; + uniqueConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface UniqueConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string[] | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateUniqueConstraintInput { + clientMutationId?: string; + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; +} +export interface DeleteUniqueConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewInput { + clientMutationId?: string; + view: { + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: Record; + filterType?: string; + filterData?: Record; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ViewPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateViewInput { + clientMutationId?: string; + id: string; + viewPatch: ViewPatch; +} +export interface DeleteViewInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewTableInput { + clientMutationId?: string; + viewTable: { + viewId: string; + tableId: string; + joinOrder?: number; + }; +} +export interface ViewTablePatch { + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + viewTablePatch: ViewTablePatch; +} +export interface DeleteViewTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + viewGrant: { + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; + }; +} +export interface ViewGrantPatch { + databaseId?: string | null; + viewId?: string | null; + granteeName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; + isGrant?: boolean | null; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + viewGrantPatch: ViewGrantPatch; +} +export interface DeleteViewGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewRuleInput { + clientMutationId?: string; + viewRule: { + databaseId?: string; + viewId: string; + name: string; + event: string; + action?: string; + }; +} +export interface ViewRulePatch { + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + event?: string | null; + action?: string | null; +} +export interface UpdateViewRuleInput { + clientMutationId?: string; + id: string; + viewRulePatch: ViewRulePatch; +} +export interface DeleteViewRuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + embeddingChunk: { + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: Record; + searchIndexes?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + }; +} +export interface EmbeddingChunkPatch { + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + searchIndexes?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + embeddingModel?: string | null; + embeddingProvider?: string | null; + parentFkFieldId?: string | null; +} +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; +} +export interface DeleteEmbeddingChunkInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaGrantInput { + clientMutationId?: string; + schemaGrant: { + databaseId?: string; + schemaId: string; + granteeName: string; + }; +} +export interface SchemaGrantPatch { + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + schemaGrantPatch: SchemaGrantPatch; +} +export interface DeleteSchemaGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateDefaultPrivilegeInput { + clientMutationId?: string; + defaultPrivilege: { + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; + }; +} +export interface DefaultPrivilegePatch { + databaseId?: string | null; + schemaId?: string | null; + objectType?: string | null; + privilege?: string | null; + granteeName?: string | null; + isGrant?: boolean | null; +} +export interface UpdateDefaultPrivilegeInput { + clientMutationId?: string; + id: string; + defaultPrivilegePatch: DefaultPrivilegePatch; +} +export interface DeleteDefaultPrivilegeInput { + clientMutationId?: string; + id: string; +} +export interface CreateEnumInput { + clientMutationId?: string; + enum: { + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface EnumPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateEnumInput { + clientMutationId?: string; + id: string; + enumPatch: EnumPatch; +} +export interface DeleteEnumInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiSchemaInput { + clientMutationId?: string; + apiSchema: { + databaseId: string; + schemaId: string; + apiId: string; + }; +} +export interface ApiSchemaPatch { + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + id: string; + apiSchemaPatch: ApiSchemaPatch; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + apiModule: { + databaseId: string; + apiId: string; + name: string; + data: Record; + }; +} +export interface ApiModulePatch { + databaseId?: string | null; + apiId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + id: string; + apiModulePatch: ApiModulePatch; +} +export interface DeleteApiModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDomainInput { + clientMutationId?: string; + domain: { + databaseId: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; + }; +} +export interface DomainPatch { + databaseId?: string | null; + apiId?: string | null; + siteId?: string | null; + subdomain?: ConstructiveInternalTypeHostname | null; + domain?: ConstructiveInternalTypeHostname | null; +} +export interface UpdateDomainInput { + clientMutationId?: string; + id: string; + domainPatch: DomainPatch; +} +export interface DeleteDomainInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + siteMetadatum: { + databaseId: string; + siteId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + }; +} +export interface SiteMetadatumPatch { + databaseId?: string | null; + siteId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + ogImageUpload?: File | null; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + id: string; + siteMetadatumPatch: SiteMetadatumPatch; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteModuleInput { + clientMutationId?: string; + siteModule: { + databaseId: string; + siteId: string; + name: string; + data: Record; + }; +} +export interface SiteModulePatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateSiteModuleInput { + clientMutationId?: string; + id: string; + siteModulePatch: SiteModulePatch; +} +export interface DeleteSiteModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteThemeInput { + clientMutationId?: string; + siteTheme: { + databaseId: string; + siteId: string; + theme: Record; + }; +} +export interface SiteThemePatch { + databaseId?: string | null; + siteId?: string | null; + theme?: Record | null; +} +export interface UpdateSiteThemeInput { + clientMutationId?: string; + id: string; + siteThemePatch: SiteThemePatch; +} +export interface DeleteSiteThemeInput { + clientMutationId?: string; + id: string; +} +export interface CreateCorsSettingInput { + clientMutationId?: string; + corsSetting: { + databaseId: string; + apiId?: string; + allowedOrigins?: string[]; + }; +} +export interface CorsSettingPatch { + databaseId?: string | null; + apiId?: string | null; + allowedOrigins?: string[] | null; +} +export interface UpdateCorsSettingInput { + clientMutationId?: string; + id: string; + corsSettingPatch: CorsSettingPatch; +} +export interface DeleteCorsSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateTriggerFunctionInput { + clientMutationId?: string; + triggerFunction: { + databaseId: string; + name: string; + code?: string; + }; +} +export interface TriggerFunctionPatch { + databaseId?: string | null; + name?: string | null; + code?: string | null; +} +export interface UpdateTriggerFunctionInput { + clientMutationId?: string; + id: string; + triggerFunctionPatch: TriggerFunctionPatch; +} +export interface DeleteTriggerFunctionInput { + clientMutationId?: string; + id: string; +} +export interface CreatePartitionInput { + clientMutationId?: string; + partition: { + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + }; +} +export interface PartitionPatch { + databaseId?: string | null; + tableId?: string | null; + strategy?: string | null; + partitionKeyId?: string | null; + interval?: string | null; + retention?: string | null; + retentionKeepTable?: boolean | null; + premake?: number | null; + namingPattern?: string | null; + isParented?: boolean | null; +} +export interface UpdatePartitionInput { + clientMutationId?: string; + id: string; + partitionPatch: PartitionPatch; +} +export interface DeletePartitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + databaseTransfer: { + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + completedAt?: string; + }; +} +export interface DatabaseTransferPatch { + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + databaseTransferPatch: DatabaseTransferPatch; +} +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiInput { + clientMutationId?: string; + api: { + databaseId: string; + name: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; + }; +} +export interface ApiPatch { + databaseId?: string | null; + name?: string | null; + dbname?: string | null; + roleName?: string | null; + anonRole?: string | null; + isPublic?: boolean | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteInput { + clientMutationId?: string; + site: { + databaseId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + favicon?: ConstructiveInternalTypeAttachment; + appleTouchIcon?: ConstructiveInternalTypeImage; + logo?: ConstructiveInternalTypeImage; + dbname?: string; + }; +} +export interface SitePatch { + databaseId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + favicon?: ConstructiveInternalTypeAttachment | null; + appleTouchIcon?: ConstructiveInternalTypeImage | null; + logo?: ConstructiveInternalTypeImage | null; + dbname?: string | null; + ogImageUpload?: File | null; + faviconUpload?: File | null; + appleTouchIconUpload?: File | null; + logoUpload?: File | null; +} +export interface UpdateSiteInput { + clientMutationId?: string; + id: string; + sitePatch: SitePatch; +} +export interface DeleteSiteInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppInput { + clientMutationId?: string; + app: { + databaseId: string; + siteId: string; + name?: string; + appImage?: ConstructiveInternalTypeImage; + appStoreLink?: ConstructiveInternalTypeUrl; + appStoreId?: string; + appIdPrefix?: string; + playStoreLink?: ConstructiveInternalTypeUrl; + }; +} +export interface AppPatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + appImage?: ConstructiveInternalTypeImage | null; + appStoreLink?: ConstructiveInternalTypeUrl | null; + appStoreId?: string | null; + appIdPrefix?: string | null; + playStoreLink?: ConstructiveInternalTypeUrl | null; + appImageUpload?: File | null; +} +export interface UpdateAppInput { + clientMutationId?: string; + id: string; + appPatch: AppPatch; +} +export interface DeleteAppInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiSettingInput { + clientMutationId?: string; + apiSetting: { + databaseId: string; + apiId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: Record; + }; +} +export interface ApiSettingPatch { + databaseId?: string | null; + apiId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + enableI18N?: boolean | null; + options?: Record | null; +} +export interface UpdateApiSettingInput { + clientMutationId?: string; + id: string; + apiSettingPatch: ApiSettingPatch; +} +export interface DeleteApiSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { + clientMutationId?: string; + id: string; + migrateFilePatch: MigrateFilePatch; +} +export interface DeleteMigrateFileInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} +export interface CreatePubkeySettingInput { + clientMutationId?: string; + pubkeySetting: { + databaseId: string; + schemaId?: string; + cryptoNetwork?: string; + userField?: string; + signUpWithKeyFunctionId?: string; + signInRequestChallengeFunctionId?: string; + signInRecordFailureFunctionId?: string; + signInWithChallengeFunctionId?: string; + }; +} +export interface PubkeySettingPatch { + databaseId?: string | null; + schemaId?: string | null; + cryptoNetwork?: string | null; + userField?: string | null; + signUpWithKeyFunctionId?: string | null; + signInRequestChallengeFunctionId?: string | null; + signInRecordFailureFunctionId?: string | null; + signInWithChallengeFunctionId?: string | null; +} +export interface UpdatePubkeySettingInput { + clientMutationId?: string; + id: string; + pubkeySettingPatch: PubkeySettingPatch; +} +export interface DeletePubkeySettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseInput { + clientMutationId?: string; + database: { + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + }; +} +export interface DatabasePatch { + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; +} +export interface UpdateDatabaseInput { + clientMutationId?: string; + id: string; + databasePatch: DatabasePatch; +} +export interface DeleteDatabaseInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsSettingInput { + clientMutationId?: string; + rlsSetting: { + databaseId: string; + authenticateSchemaId?: string; + roleSchemaId?: string; + authenticateFunctionId?: string; + authenticateStrictFunctionId?: string; + currentRoleFunctionId?: string; + currentRoleIdFunctionId?: string; + currentUserAgentFunctionId?: string; + currentIpAddressFunctionId?: string; + }; +} +export interface RlsSettingPatch { + databaseId?: string | null; + authenticateSchemaId?: string | null; + roleSchemaId?: string | null; + authenticateFunctionId?: string | null; + authenticateStrictFunctionId?: string | null; + currentRoleFunctionId?: string | null; + currentRoleIdFunctionId?: string | null; + currentUserAgentFunctionId?: string | null; + currentIpAddressFunctionId?: string | null; +} +export interface UpdateRlsSettingInput { + clientMutationId?: string; + id: string; + rlsSettingPatch: RlsSettingPatch; +} +export interface DeleteRlsSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateSqlActionInput { + clientMutationId?: string; + sqlAction: { + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface SqlActionPatch { + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string[] | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateSqlActionInput { + clientMutationId?: string; + id: number; + sqlActionPatch: SqlActionPatch; +} +export interface DeleteSqlActionInput { + clientMutationId?: string; + id: number; +} +export interface CreateDatabaseSettingInput { + clientMutationId?: string; + databaseSetting: { + databaseId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + enableI18N?: boolean; + options?: Record; + }; +} +export interface DatabaseSettingPatch { + databaseId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + enableI18N?: boolean | null; + options?: Record | null; +} +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + id: string; + databaseSettingPatch: DatabaseSettingPatch; +} +export interface DeleteDatabaseSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnSettingInput { + clientMutationId?: string; + webauthnSetting: { + databaseId: string; + schemaId?: string; + credentialsSchemaId?: string; + sessionsSchemaId?: string; + sessionSecretsSchemaId?: string; + credentialsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; + userFieldId?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpirySeconds?: string; + }; +} +export interface WebauthnSettingPatch { + databaseId?: string | null; + schemaId?: string | null; + credentialsSchemaId?: string | null; + sessionsSchemaId?: string | null; + sessionSecretsSchemaId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + userFieldId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpirySeconds?: string | null; +} +export interface UpdateWebauthnSettingInput { + clientMutationId?: string; + id: string; + webauthnSettingPatch: WebauthnSettingPatch; +} +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: { + tables: 'Table', + schemaGrants: 'SchemaGrant', + views: 'View', + defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + functions: 'Function', + apiSchemas: 'ApiSchema', + }, + Table: { + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + tableGrants: 'TableGrant', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewTables: 'ViewTable', + embeddingChunksByChunksTableId: 'EmbeddingChunk', + embeddingChunks: 'EmbeddingChunk', + spatialRelationsByRefTableId: 'SpatialRelation', + spatialRelations: 'SpatialRelation', + }, + Field: { + spatialRelations: 'SpatialRelation', + spatialRelationsByRefFieldId: 'SpatialRelation', + }, + View: { + viewTables: 'ViewTable', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + }, + Api: { + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + domains: 'Domain', + corsSettings: 'CorsSetting', + }, + Site: { + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + }, + Database: { + schemas: 'Schema', + tables: 'Table', + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + schemaGrants: 'SchemaGrant', + tableGrants: 'TableGrant', + triggerFunctions: 'TriggerFunction', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + embeddingChunks: 'EmbeddingChunk', + spatialRelations: 'SpatialRelation', + functions: 'Function', + partitions: 'Partition', + databaseTransfers: 'DatabaseTransfer', + apis: 'Api', + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + sites: 'Site', + apps: 'App', + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + apiSettings: 'ApiSetting', + corsSettings: 'CorsSetting', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface AcceptDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +export interface CancelDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; +} +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[]; +} +export interface ApplyRlsInput { + clientMutationId?: string; + tableId?: string; + grants?: Record; + policyType?: string; + vars?: Record; + fieldIds?: string[]; + permissive?: boolean; + name?: string; +} +export interface CreateUserDatabaseInput { + clientMutationId?: string; + databaseName?: string; + ownerId?: string; + includeInvites?: boolean; + includeGroups?: boolean; + includeLevels?: boolean; + bitlen?: number; + tokensExpiration?: IntervalInput; +} +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 ObjectCategory fields. All fields are combined with a logical ‘and.’ */ +export interface ObjectCategoryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ObjectCategory; + /** Not equal to the specified value. */ + notEqualTo?: ObjectCategory; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ObjectCategory; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ObjectCategory; + /** Included in the specified list. */ + in?: ObjectCategory[]; + /** Not included in the specified list. */ + notIn?: ObjectCategory[]; + /** Less than the specified value. */ + lessThan?: ObjectCategory; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ObjectCategory; + /** Greater than the specified value. */ + greaterThan?: ObjectCategory; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ObjectCategory; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeHostnameFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeHostname; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeHostname; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeHostname[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeHostname[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeHostname; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeHostname; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** 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; +} +/** 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 `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeAttachmentFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeAttachment; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeAttachment; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeAttachment[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeAttachment[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeAttachment; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeAttachment; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** 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; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUrlFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUrl; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUrl; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUrl[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUrl[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUrl; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUrl; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** 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; +} +/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUploadFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUpload; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUpload; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUpload; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUpload[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUpload[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUpload; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUpload; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeUpload; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeUpload; +} +/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaFilter; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableFilter; + /** Filters to entities where every related entity matches. */ + every?: TableFilter; + /** Filters to entities where no related entity matches. */ + none?: TableFilter; +} +/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCheckConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CheckConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: CheckConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: CheckConstraintFilter; +} +/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFieldFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FieldFilter; + /** Filters to entities where every related entity matches. */ + every?: FieldFilter; + /** Filters to entities where no related entity matches. */ + none?: FieldFilter; +} +/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyForeignKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ForeignKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: ForeignKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: ForeignKeyConstraintFilter; +} +/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFullTextSearchFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FullTextSearchFilter; + /** Filters to entities where every related entity matches. */ + every?: FullTextSearchFilter; + /** Filters to entities where no related entity matches. */ + none?: FullTextSearchFilter; +} +/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyIndexFilter { + /** Filters to entities where at least one related entity matches. */ + some?: IndexFilter; + /** Filters to entities where every related entity matches. */ + every?: IndexFilter; + /** Filters to entities where no related entity matches. */ + none?: IndexFilter; +} +/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPolicyFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PolicyFilter; + /** Filters to entities where every related entity matches. */ + every?: PolicyFilter; + /** Filters to entities where no related entity matches. */ + none?: PolicyFilter; +} +/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPrimaryKeyConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PrimaryKeyConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: PrimaryKeyConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: PrimaryKeyConstraintFilter; +} +/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaGrantFilter; +} +/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTableGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: TableGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: TableGrantFilter; +} +/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFunctionFilter; +} +/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTriggerFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TriggerFilter; + /** Filters to entities where every related entity matches. */ + every?: TriggerFilter; + /** Filters to entities where no related entity matches. */ + none?: TriggerFilter; +} +/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyUniqueConstraintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: UniqueConstraintFilter; + /** Filters to entities where every related entity matches. */ + every?: UniqueConstraintFilter; + /** Filters to entities where no related entity matches. */ + none?: UniqueConstraintFilter; +} +/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewFilter; +} +/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewGrantFilter; +} +/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewRuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewRuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewRuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewRuleFilter; +} +/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDefaultPrivilegeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DefaultPrivilegeFilter; + /** Filters to entities where every related entity matches. */ + every?: DefaultPrivilegeFilter; + /** Filters to entities where no related entity matches. */ + none?: DefaultPrivilegeFilter; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySpatialRelationFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SpatialRelationFilter; + /** Filters to entities where every related entity matches. */ + every?: SpatialRelationFilter; + /** Filters to entities where no related entity matches. */ + none?: SpatialRelationFilter; +} +/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyFunctionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: FunctionFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionFilter; +} +/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyPartitionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PartitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PartitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PartitionFilter; +} +/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDatabaseTransferFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseTransferFilter; + /** Filters to entities where every related entity matches. */ + every?: DatabaseTransferFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseTransferFilter; +} +/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiFilter; +} +/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiModuleFilter; +} +/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSchemaFilter; +} +/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteFilter; +} +/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyAppFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppFilter; + /** Filters to entities where every related entity matches. */ + every?: AppFilter; + /** Filters to entities where no related entity matches. */ + none?: AppFilter; +} +/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDomainFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DomainFilter; + /** Filters to entities where every related entity matches. */ + every?: DomainFilter; + /** Filters to entities where no related entity matches. */ + none?: DomainFilter; +} +/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteMetadatumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteMetadatumFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteMetadatumFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteMetadatumFilter; +} +/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteModuleFilter; +} +/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySiteThemeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SiteThemeFilter; + /** Filters to entities where every related entity matches. */ + every?: SiteThemeFilter; + /** Filters to entities where no related entity matches. */ + none?: SiteThemeFilter; +} +/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyApiSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ApiSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: ApiSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: ApiSettingFilter; +} +/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCorsSettingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CorsSettingFilter; + /** Filters to entities where every related entity matches. */ + every?: CorsSettingFilter; + /** Filters to entities where no related entity matches. */ + none?: CorsSettingFilter; +} +/** 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. */ + 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `partitioned` field. */ + partitioned?: BooleanFilter; + /** Filter by the object’s `partitionStrategy` field. */ + partitionStrategy?: StringFilter; + /** Filter by the object’s `partitionKeyNames` field. */ + partitionKeyNames?: StringListFilter; + /** Filter by the object’s `partitionKeyTypes` field. */ + partitionKeyTypes?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `inherits` relation. */ + inherits?: TableFilter; + /** A related `inherits` exists. */ + inheritsExists?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: TableToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: TableToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: TableToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: TableToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: TableToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: TableToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: TableToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: TableToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: TableToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: TableToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ + spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; + /** `spatialRelationsByRefTableId` exist. */ + spatialRelationsByRefTableIdExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: TableToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `partition` relation. */ + partition?: PartitionFilter; + /** A related `partition` exists. */ + partitionExists?: boolean; +} +/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** A related `table` exists. */ + tableExists?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: ViewToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: ViewToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: ViewToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; +} +/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultPrivilegeFilter { + /** 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 `objectType` field. */ + objectType?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: DefaultPrivilegeFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultPrivilegeFilter[]; + /** Negates the expression. */ + not?: DefaultPrivilegeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface EnumFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionFilter[]; + /** Negates the expression. */ + not?: FunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** 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. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: JSONFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** 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?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: FieldToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ + spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; + /** `spatialRelationsByRefFieldId` exist. */ + spatialRelationsByRefFieldIdExist?: boolean; +} +/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface ForeignKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface FullTextSearchFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: StringListFilter; + /** Filter by the object’s `langColumn` field. */ + langColumn?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface IndexFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `opClasses` field. */ + opClasses?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: IndexFilter[]; + /** Negates the expression. */ + not?: IndexFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface PolicyFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface PrimaryKeyConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface UniqueConstraintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface EmbeddingChunkFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `searchIndexes` field. */ + searchIndexes?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringFilter; + /** Filter by the object’s `embeddingProvider` field. */ + embeddingProvider?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: 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?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ +export interface SpatialRelationFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `operator` field. */ + operator?: StringFilter; + /** Filter by the object’s `paramName` field. */ + paramName?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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?: SpatialRelationFilter[]; + /** Checks for any expressions in this list. */ + or?: SpatialRelationFilter[]; + /** Negates the expression. */ + not?: SpatialRelationFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `field` relation. */ + field?: FieldFilter; + /** Filter by the object’s `refField` relation. */ + refField?: FieldFilter; + /** Filter by the object’s `refTable` relation. */ + refTable?: TableFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `granteeName` field. */ + granteeName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `view` relation. */ + view?: ViewFilter; +} +/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** A related `site` exists. */ + siteExists?: boolean; +} +/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface CorsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CorsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: CorsSettingFilter[]; + /** Negates the expression. */ + not?: CorsSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** A related `api` exists. */ + apiExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; +} +/** A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: SchemaToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; +} +/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFunctionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ +export interface PartitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `strategy` field. */ + strategy?: StringFilter; + /** Filter by the object’s `partitionKeyId` field. */ + partitionKeyId?: UUIDFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `namingPattern` field. */ + namingPattern?: StringFilter; + /** Filter by the object’s `isParented` field. */ + isParented?: 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?: PartitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PartitionFilter[]; + /** Negates the expression. */ + not?: PartitionFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `partitionKey` relation. */ + partitionKey?: FieldFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: ApiToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: ApiToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: ApiToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `apiSetting` relation. */ + apiSetting?: ApiSettingFilter; + /** A related `apiSetting` exists. */ + apiSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: ApiToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; +} +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: 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. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `app` relation. */ + app?: AppFilter; + /** A related `app` exists. */ + appExists?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: SiteToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: SiteToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: SiteToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: SiteToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; +} +/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; + /** Filter by the object’s `site` relation. */ + site?: SiteFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ApiSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSettingFilter[]; + /** Negates the expression. */ + not?: ApiSettingFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; + /** Filter by the object’s `schemas` relation. */ + schemas?: DatabaseToManySchemaFilter; + /** `schemas` exist. */ + schemasExist?: boolean; + /** Filter by the object’s `tables` relation. */ + tables?: DatabaseToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `checkConstraints` relation. */ + checkConstraints?: DatabaseToManyCheckConstraintFilter; + /** `checkConstraints` exist. */ + checkConstraintsExist?: boolean; + /** Filter by the object’s `fields` relation. */ + fields?: DatabaseToManyFieldFilter; + /** `fields` exist. */ + fieldsExist?: boolean; + /** Filter by the object’s `foreignKeyConstraints` relation. */ + foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; + /** `foreignKeyConstraints` exist. */ + foreignKeyConstraintsExist?: boolean; + /** Filter by the object’s `fullTextSearches` relation. */ + fullTextSearches?: DatabaseToManyFullTextSearchFilter; + /** `fullTextSearches` exist. */ + fullTextSearchesExist?: boolean; + /** Filter by the object’s `indices` relation. */ + indices?: DatabaseToManyIndexFilter; + /** `indices` exist. */ + indicesExist?: boolean; + /** Filter by the object’s `policies` relation. */ + policies?: DatabaseToManyPolicyFilter; + /** `policies` exist. */ + policiesExist?: boolean; + /** Filter by the object’s `primaryKeyConstraints` relation. */ + primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; + /** `primaryKeyConstraints` exist. */ + primaryKeyConstraintsExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: DatabaseToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `tableGrants` relation. */ + tableGrants?: DatabaseToManyTableGrantFilter; + /** `tableGrants` exist. */ + tableGrantsExist?: boolean; + /** Filter by the object’s `triggerFunctions` relation. */ + triggerFunctions?: DatabaseToManyTriggerFunctionFilter; + /** `triggerFunctions` exist. */ + triggerFunctionsExist?: boolean; + /** Filter by the object’s `triggers` relation. */ + triggers?: DatabaseToManyTriggerFilter; + /** `triggers` exist. */ + triggersExist?: boolean; + /** Filter by the object’s `uniqueConstraints` relation. */ + uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; + /** `uniqueConstraints` exist. */ + uniqueConstraintsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: DatabaseToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `viewGrants` relation. */ + viewGrants?: DatabaseToManyViewGrantFilter; + /** `viewGrants` exist. */ + viewGrantsExist?: boolean; + /** Filter by the object’s `viewRules` relation. */ + viewRules?: DatabaseToManyViewRuleFilter; + /** `viewRules` exist. */ + viewRulesExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `spatialRelations` relation. */ + spatialRelations?: DatabaseToManySpatialRelationFilter; + /** `spatialRelations` exist. */ + spatialRelationsExist?: boolean; + /** Filter by the object’s `functions` relation. */ + functions?: DatabaseToManyFunctionFilter; + /** `functions` exist. */ + functionsExist?: boolean; + /** Filter by the object’s `partitions` relation. */ + partitions?: DatabaseToManyPartitionFilter; + /** `partitions` exist. */ + partitionsExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; + /** Filter by the object’s `apis` relation. */ + apis?: DatabaseToManyApiFilter; + /** `apis` exist. */ + apisExist?: boolean; + /** Filter by the object’s `apiModules` relation. */ + apiModules?: DatabaseToManyApiModuleFilter; + /** `apiModules` exist. */ + apiModulesExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: DatabaseToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `sites` relation. */ + sites?: DatabaseToManySiteFilter; + /** `sites` exist. */ + sitesExist?: boolean; + /** Filter by the object’s `apps` relation. */ + apps?: DatabaseToManyAppFilter; + /** `apps` exist. */ + appsExist?: boolean; + /** Filter by the object’s `domains` relation. */ + domains?: DatabaseToManyDomainFilter; + /** `domains` exist. */ + domainsExist?: boolean; + /** Filter by the object’s `siteMetadata` relation. */ + siteMetadata?: DatabaseToManySiteMetadatumFilter; + /** `siteMetadata` exist. */ + siteMetadataExist?: boolean; + /** Filter by the object’s `siteModules` relation. */ + siteModules?: DatabaseToManySiteModuleFilter; + /** `siteModules` exist. */ + siteModulesExist?: boolean; + /** Filter by the object’s `siteThemes` relation. */ + siteThemes?: DatabaseToManySiteThemeFilter; + /** `siteThemes` exist. */ + siteThemesExist?: boolean; + /** Filter by the object’s `databaseSetting` relation. */ + databaseSetting?: DatabaseSettingFilter; + /** A related `databaseSetting` exists. */ + databaseSettingExists?: boolean; + /** Filter by the object’s `apiSettings` relation. */ + apiSettings?: DatabaseToManyApiSettingFilter; + /** `apiSettings` exist. */ + apiSettingsExist?: boolean; + /** Filter by the object’s `rlsSetting` relation. */ + rlsSetting?: RlsSettingFilter; + /** A related `rlsSetting` exists. */ + rlsSettingExists?: boolean; + /** Filter by the object’s `corsSettings` relation. */ + corsSettings?: DatabaseToManyCorsSettingFilter; + /** `corsSettings` exist. */ + corsSettingsExist?: boolean; + /** Filter by the object’s `pubkeySetting` relation. */ + pubkeySetting?: PubkeySettingFilter; + /** A related `pubkeySetting` exists. */ + pubkeySettingExists?: boolean; + /** Filter by the object’s `webauthnSetting` relation. */ + webauthnSetting?: WebauthnSettingFilter; + /** A related `webauthnSetting` exists. */ + webauthnSettingExists?: boolean; +} +/** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ +export interface UUIDListFilter { + /** 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 Float fields. All fields are combined with a logical ‘and.’ */ +export interface FloatFilter { + /** 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; +} +/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `enableI18N` field. */ + enableI18N?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} +/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface RlsSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `authenticateSchemaId` field. */ + authenticateSchemaId?: UUIDFilter; + /** Filter by the object’s `roleSchemaId` field. */ + roleSchemaId?: UUIDFilter; + /** Filter by the object’s `authenticateFunctionId` field. */ + authenticateFunctionId?: UUIDFilter; + /** Filter by the object’s `authenticateStrictFunctionId` field. */ + authenticateStrictFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleFunctionId` field. */ + currentRoleFunctionId?: UUIDFilter; + /** Filter by the object’s `currentRoleIdFunctionId` field. */ + currentRoleIdFunctionId?: UUIDFilter; + /** Filter by the object’s `currentUserAgentFunctionId` field. */ + currentUserAgentFunctionId?: UUIDFilter; + /** Filter by the object’s `currentIpAddressFunctionId` field. */ + currentIpAddressFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RlsSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsSettingFilter[]; + /** Negates the expression. */ + not?: RlsSettingFilter; + /** Filter by the object’s `authenticateFunction` relation. */ + authenticateFunction?: FunctionFilter; + /** A related `authenticateFunction` exists. */ + authenticateFunctionExists?: boolean; + /** Filter by the object’s `authenticateSchema` relation. */ + authenticateSchema?: SchemaFilter; + /** A related `authenticateSchema` exists. */ + authenticateSchemaExists?: boolean; + /** Filter by the object’s `authenticateStrictFunction` relation. */ + authenticateStrictFunction?: FunctionFilter; + /** A related `authenticateStrictFunction` exists. */ + authenticateStrictFunctionExists?: boolean; + /** Filter by the object’s `currentIpAddressFunction` relation. */ + currentIpAddressFunction?: FunctionFilter; + /** A related `currentIpAddressFunction` exists. */ + currentIpAddressFunctionExists?: boolean; + /** Filter by the object’s `currentRoleFunction` relation. */ + currentRoleFunction?: FunctionFilter; + /** A related `currentRoleFunction` exists. */ + currentRoleFunctionExists?: boolean; + /** Filter by the object’s `currentRoleIdFunction` relation. */ + currentRoleIdFunction?: FunctionFilter; + /** A related `currentRoleIdFunction` exists. */ + currentRoleIdFunctionExists?: boolean; + /** Filter by the object’s `currentUserAgentFunction` relation. */ + currentUserAgentFunction?: FunctionFilter; + /** A related `currentUserAgentFunction` exists. */ + currentUserAgentFunctionExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `roleSchema` relation. */ + roleSchema?: SchemaFilter; + /** A related `roleSchema` exists. */ + roleSchemaExists?: boolean; +} +/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ +export interface PubkeySettingFilter { + /** 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 `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `signUpWithKeyFunctionId` field. */ + signUpWithKeyFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ + signInRequestChallengeFunctionId?: UUIDFilter; + /** Filter by the object’s `signInRecordFailureFunctionId` field. */ + signInRecordFailureFunctionId?: UUIDFilter; + /** Filter by the object’s `signInWithChallengeFunctionId` field. */ + signInWithChallengeFunctionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PubkeySettingFilter[]; + /** Checks for any expressions in this list. */ + or?: PubkeySettingFilter[]; + /** Negates the expression. */ + not?: PubkeySettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `signInRecordFailureFunction` relation. */ + signInRecordFailureFunction?: FunctionFilter; + /** A related `signInRecordFailureFunction` exists. */ + signInRecordFailureFunctionExists?: boolean; + /** Filter by the object’s `signInRequestChallengeFunction` relation. */ + signInRequestChallengeFunction?: FunctionFilter; + /** A related `signInRequestChallengeFunction` exists. */ + signInRequestChallengeFunctionExists?: boolean; + /** Filter by the object’s `signInWithChallengeFunction` relation. */ + signInWithChallengeFunction?: FunctionFilter; + /** A related `signInWithChallengeFunction` exists. */ + signInWithChallengeFunctionExists?: boolean; + /** Filter by the object’s `signUpWithKeyFunction` relation. */ + signUpWithKeyFunction?: FunctionFilter; + /** A related `signUpWithKeyFunction` exists. */ + signUpWithKeyFunctionExists?: boolean; +} +/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface WebauthnSettingFilter { + /** 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 `credentialsSchemaId` field. */ + credentialsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionsSchemaId` field. */ + sessionsSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsSchemaId` field. */ + sessionSecretsSchemaId?: 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 `userFieldId` field. */ + userFieldId?: 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 `challengeExpirySeconds` field. */ + challengeExpirySeconds?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnSettingFilter[]; + /** Negates the expression. */ + not?: WebauthnSettingFilter; + /** Filter by the object’s `credentialsSchema` relation. */ + credentialsSchema?: SchemaFilter; + /** A related `credentialsSchema` exists. */ + credentialsSchemaExists?: boolean; + /** Filter by the object’s `credentialsTable` relation. */ + credentialsTable?: TableFilter; + /** A related `credentialsTable` exists. */ + credentialsTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** A related `schema` exists. */ + schemaExists?: boolean; + /** Filter by the object’s `sessionCredentialsTable` relation. */ + sessionCredentialsTable?: TableFilter; + /** A related `sessionCredentialsTable` exists. */ + sessionCredentialsTableExists?: boolean; + /** Filter by the object’s `sessionSecretsSchema` relation. */ + sessionSecretsSchema?: SchemaFilter; + /** A related `sessionSecretsSchema` exists. */ + sessionSecretsSchemaExists?: boolean; + /** Filter by the object’s `sessionSecretsTable` relation. */ + sessionSecretsTable?: TableFilter; + /** A related `sessionSecretsTable` exists. */ + sessionSecretsTableExists?: boolean; + /** Filter by the object’s `sessionsSchema` relation. */ + sessionsSchema?: SchemaFilter; + /** A related `sessionsSchema` exists. */ + sessionsSchemaExists?: boolean; + /** Filter by the object’s `sessionsTable` relation. */ + sessionsTable?: TableFilter; + /** A related `sessionsTable` exists. */ + sessionsTableExists?: boolean; + /** Filter by the object’s `userField` relation. */ + userField?: FieldFilter; + /** A related `userField` exists. */ + userFieldExists?: boolean; +} +/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ +export interface BigIntFilter { + /** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface AcceptDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type AcceptDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CancelDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type CancelDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface RejectDatabaseTransferPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +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; +} +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ApplyRlsPayload { + clientMutationId?: string | null; +} +export type ApplyRlsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface CreateUserDatabasePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateUserDatabasePayloadSelect = { + 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 CreateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was created by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type CreateFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface UpdateFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was updated by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type UpdateFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface DeleteFunctionPayload { + clientMutationId?: string | null; + /** The `Function` that was deleted by this mutation. */ + function?: Function | null; + functionEdge?: FunctionEdge | null; +} +export type DeleteFunctionPayloadSelect = { + clientMutationId?: boolean; + function?: { + select: FunctionSelect; + }; + functionEdge?: { + select: FunctionEdgeSelect; + }; +}; +export interface CreateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type CreateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type UpdateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type DeleteSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface CreateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type CreateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface UpdateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type UpdateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface DeleteTablePayload { + clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type DeleteTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type CreateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type UpdateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type DeleteCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface CreateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was created by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type CreateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface UpdateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was updated by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type UpdateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface DeleteFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was deleted by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type DeleteFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface CreateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was created by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type CreateSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface UpdateSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was updated by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type UpdateSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface DeleteSpatialRelationPayload { + clientMutationId?: string | null; + /** The `SpatialRelation` that was deleted by this mutation. */ + spatialRelation?: SpatialRelation | null; + spatialRelationEdge?: SpatialRelationEdge | null; +} +export type DeleteSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + spatialRelation?: { + select: SpatialRelationSelect; + }; + spatialRelationEdge?: { + select: SpatialRelationEdgeSelect; + }; +}; +export interface CreateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was created by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type CreateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was updated by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type UpdateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was deleted by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type DeleteForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was created by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type CreateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was updated by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type UpdateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was deleted by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type DeleteFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface CreateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was created by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type CreateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface UpdateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type UpdateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface DeleteIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type DeleteIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface CreatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type CreatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was updated by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type UpdatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface DeletePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was deleted by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type DeletePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was created by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type CreatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface UpdatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type UpdatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface DeletePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type DeletePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type CreateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type UpdateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was deleted by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type DeleteTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface CreateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type CreateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was updated by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type UpdateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was deleted by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type DeleteTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type CreateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was updated by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type UpdateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was deleted by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type DeleteUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface CreateViewPayload { + clientMutationId?: string | null; + /** The `View` that was created by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type CreateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface UpdateViewPayload { + clientMutationId?: string | null; + /** The `View` that was updated by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type UpdateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface DeleteViewPayload { + clientMutationId?: string | null; + /** The `View` that was deleted by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type DeleteViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface CreateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type CreateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type UpdateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type DeleteViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type CreateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type UpdateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type DeleteViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface CreateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was created by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type CreateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface UpdateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was updated by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type UpdateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface DeleteViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was deleted by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type DeleteViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type CreateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type UpdateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type DeleteEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was created by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type CreateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was updated by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type UpdateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was deleted by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type DeleteSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface CreateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was created by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type CreateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface UpdateDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was updated by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type UpdateDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface DeleteDefaultPrivilegePayload { + clientMutationId?: string | null; + /** The `DefaultPrivilege` that was deleted by this mutation. */ + defaultPrivilege?: DefaultPrivilege | null; + defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; +} +export type DeleteDefaultPrivilegePayloadSelect = { + clientMutationId?: boolean; + defaultPrivilege?: { + select: DefaultPrivilegeSelect; + }; + defaultPrivilegeEdge?: { + select: DefaultPrivilegeEdgeSelect; + }; +}; +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type CreateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type UpdateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type DeleteEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was created by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type CreateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was updated by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type UpdateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was deleted by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type DeleteApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface CreateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type CreateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface UpdateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type UpdateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface DeleteApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type DeleteApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface CreateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was created by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type CreateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface UpdateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was updated by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type UpdateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface DeleteDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was deleted by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type DeleteDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type CreateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type UpdateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type DeleteSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type CreateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type UpdateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type DeleteSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type CreateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type UpdateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type DeleteSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface CreateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was created by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type CreateCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface UpdateCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was updated by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type UpdateCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface DeleteCorsSettingPayload { + clientMutationId?: string | null; + /** The `CorsSetting` that was deleted by this mutation. */ + corsSetting?: CorsSetting | null; + corsSettingEdge?: CorsSettingEdge | null; +} +export type DeleteCorsSettingPayloadSelect = { + clientMutationId?: boolean; + corsSetting?: { + select: CorsSettingSelect; + }; + corsSettingEdge?: { + select: CorsSettingEdgeSelect; + }; +}; +export interface CreateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was created by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type CreateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was updated by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type UpdateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was deleted by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type DeleteTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface CreatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was created by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type CreatePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface UpdatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was updated by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type UpdatePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface DeletePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was deleted by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export type DeletePartitionPayloadSelect = { + clientMutationId?: boolean; + partition?: { + select: PartitionSelect; + }; + partitionEdge?: { + select: PartitionEdgeSelect; + }; +}; +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type CreateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type UpdateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type DeleteDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface CreateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type CreateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface UpdateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type UpdateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface DeleteApiPayload { + clientMutationId?: string | null; + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type DeleteApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface CreateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type CreateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface UpdateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type UpdateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface DeleteSitePayload { + clientMutationId?: string | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type DeleteSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface CreateAppPayload { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type CreateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface UpdateAppPayload { + clientMutationId?: string | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type UpdateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface DeleteAppPayload { + clientMutationId?: string | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type DeleteAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface CreateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was created by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type CreateApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface UpdateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was updated by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type UpdateApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface DeleteApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was deleted by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} +export type DeleteApiSettingPayloadSelect = { + clientMutationId?: boolean; + apiSetting?: { + select: ApiSettingSelect; + }; + apiSettingEdge?: { + select: ApiSettingEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was created by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type CreatePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface UpdatePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was updated by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type UpdatePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface DeletePubkeySettingPayload { + clientMutationId?: string | null; + /** The `PubkeySetting` that was deleted by this mutation. */ + pubkeySetting?: PubkeySetting | null; + pubkeySettingEdge?: PubkeySettingEdge | null; +} +export type DeletePubkeySettingPayloadSelect = { + clientMutationId?: boolean; + pubkeySetting?: { + select: PubkeySettingSelect; + }; + pubkeySettingEdge?: { + select: PubkeySettingEdgeSelect; + }; +}; +export interface CreateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was created by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type CreateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was updated by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type UpdateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type DeleteDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface CreateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was created by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type CreateRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface UpdateRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was updated by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type UpdateRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface DeleteRlsSettingPayload { + clientMutationId?: string | null; + /** The `RlsSetting` that was deleted by this mutation. */ + rlsSetting?: RlsSetting | null; + rlsSettingEdge?: RlsSettingEdge | null; +} +export type DeleteRlsSettingPayloadSelect = { + clientMutationId?: boolean; + rlsSetting?: { + select: RlsSettingSelect; + }; + rlsSettingEdge?: { + select: RlsSettingEdgeSelect; + }; +}; +export interface CreateSqlActionPayload { + clientMutationId?: string | null; + /** The `SqlAction` that was created by this mutation. */ + sqlAction?: SqlAction | null; +} +export type CreateSqlActionPayloadSelect = { + clientMutationId?: boolean; + sqlAction?: { + select: SqlActionSelect; + }; +}; +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type CreateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type UpdateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type DeleteDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface CreateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was created by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type CreateWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +export interface UpdateWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was updated by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type UpdateWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +export interface DeleteWebauthnSettingPayload { + clientMutationId?: string | null; + /** The `WebauthnSetting` that was deleted by this mutation. */ + webauthnSetting?: WebauthnSetting | null; + webauthnSettingEdge?: WebauthnSettingEdge | null; +} +export type DeleteWebauthnSettingPayloadSelect = { + clientMutationId?: boolean; + webauthnSetting?: { + select: WebauthnSettingSelect; + }; + webauthnSettingEdge?: { + select: WebauthnSettingEdgeSelect; + }; +}; +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 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; +}; +/** A `Function` edge in the connection. */ +export interface FunctionEdge { + cursor?: string | null; + /** The `Function` at the end of the edge. */ + node?: Function | null; +} +export type FunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionSelect; + }; +}; +/** A `Schema` edge in the connection. */ +export interface SchemaEdge { + cursor?: string | null; + /** The `Schema` at the end of the edge. */ + node?: Schema | null; +} +export type SchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaSelect; + }; +}; +/** A `Table` edge in the connection. */ +export interface TableEdge { + cursor?: string | null; + /** The `Table` at the end of the edge. */ + node?: Table | null; +} +export type TableEdgeSelect = { + cursor?: boolean; + node?: { + select: TableSelect; + }; +}; +/** A `CheckConstraint` edge in the connection. */ +export interface CheckConstraintEdge { + cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ + node?: CheckConstraint | null; +} +export type CheckConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: CheckConstraintSelect; + }; +}; +/** A `Field` edge in the connection. */ +export interface FieldEdge { + cursor?: string | null; + /** The `Field` at the end of the edge. */ + node?: Field | null; +} +export type FieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FieldSelect; + }; +}; +/** A `SpatialRelation` edge in the connection. */ +export interface SpatialRelationEdge { + cursor?: string | null; + /** The `SpatialRelation` at the end of the edge. */ + node?: SpatialRelation | null; +} +export type SpatialRelationEdgeSelect = { + cursor?: boolean; + node?: { + select: SpatialRelationSelect; + }; +}; +/** A `ForeignKeyConstraint` edge in the connection. */ +export interface ForeignKeyConstraintEdge { + cursor?: string | null; + /** The `ForeignKeyConstraint` at the end of the edge. */ + node?: ForeignKeyConstraint | null; +} +export type ForeignKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: ForeignKeyConstraintSelect; + }; +}; +/** A `FullTextSearch` edge in the connection. */ +export interface FullTextSearchEdge { + cursor?: string | null; + /** The `FullTextSearch` at the end of the edge. */ + node?: FullTextSearch | null; +} +export type FullTextSearchEdgeSelect = { + cursor?: boolean; + node?: { + select: FullTextSearchSelect; + }; +}; +/** A `Index` edge in the connection. */ +export interface IndexEdge { + cursor?: string | null; + /** The `Index` at the end of the edge. */ + node?: Index | null; +} +export type IndexEdgeSelect = { + cursor?: boolean; + node?: { + select: IndexSelect; + }; +}; +/** A `Policy` edge in the connection. */ +export interface PolicyEdge { + cursor?: string | null; + /** The `Policy` at the end of the edge. */ + node?: Policy | null; +} +export type PolicyEdgeSelect = { + cursor?: boolean; + node?: { + select: PolicySelect; + }; +}; +/** A `PrimaryKeyConstraint` edge in the connection. */ +export interface PrimaryKeyConstraintEdge { + cursor?: string | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ + node?: PrimaryKeyConstraint | null; +} +export type PrimaryKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: PrimaryKeyConstraintSelect; + }; +}; +/** A `TableGrant` edge in the connection. */ +export interface TableGrantEdge { + cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ + node?: TableGrant | null; +} +export type TableGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: TableGrantSelect; + }; +}; +/** A `Trigger` edge in the connection. */ +export interface TriggerEdge { + cursor?: string | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | null; +} +export type TriggerEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerSelect; + }; +}; +/** A `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +export type UniqueConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: UniqueConstraintSelect; + }; +}; +/** A `View` edge in the connection. */ +export interface ViewEdge { + cursor?: string | null; + /** The `View` at the end of the edge. */ + node?: View | null; +} +export type ViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewSelect; + }; +}; +/** A `ViewTable` edge in the connection. */ +export interface ViewTableEdge { + cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ + node?: ViewTable | null; +} +export type ViewTableEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewTableSelect; + }; +}; +/** A `ViewGrant` edge in the connection. */ +export interface ViewGrantEdge { + cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ + node?: ViewGrant | null; +} +export type ViewGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewGrantSelect; + }; +}; +/** A `ViewRule` edge in the connection. */ +export interface ViewRuleEdge { + cursor?: string | null; + /** The `ViewRule` at the end of the edge. */ + node?: ViewRule | null; +} +export type ViewRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewRuleSelect; + }; +}; +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} +export type EmbeddingChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: EmbeddingChunkSelect; + }; +}; +/** A `SchemaGrant` edge in the connection. */ +export interface SchemaGrantEdge { + cursor?: string | null; + /** The `SchemaGrant` at the end of the edge. */ + node?: SchemaGrant | null; +} +export type SchemaGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaGrantSelect; + }; +}; +/** A `DefaultPrivilege` edge in the connection. */ +export interface DefaultPrivilegeEdge { + cursor?: string | null; + /** The `DefaultPrivilege` at the end of the edge. */ + node?: DefaultPrivilege | null; +} +export type DefaultPrivilegeEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultPrivilegeSelect; + }; +}; +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} +export type EnumEdgeSelect = { + cursor?: boolean; + node?: { + select: EnumSelect; + }; +}; +/** A `ApiSchema` edge in the connection. */ +export interface ApiSchemaEdge { + cursor?: string | null; + /** The `ApiSchema` at the end of the edge. */ + node?: ApiSchema | null; +} +export type ApiSchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSchemaSelect; + }; +}; +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { + cursor?: string | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +export type ApiModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiModuleSelect; + }; +}; +/** A `Domain` edge in the connection. */ +export interface DomainEdge { + cursor?: string | null; + /** The `Domain` at the end of the edge. */ + node?: Domain | null; +} +export type DomainEdgeSelect = { + cursor?: boolean; + node?: { + select: DomainSelect; + }; +}; +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ + node?: SiteMetadatum | null; +} +export type SiteMetadatumEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteMetadatumSelect; + }; +}; +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; +} +export type SiteModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteModuleSelect; + }; +}; +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { + cursor?: string | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; +} +export type SiteThemeEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteThemeSelect; + }; +}; +/** A `CorsSetting` edge in the connection. */ +export interface CorsSettingEdge { + cursor?: string | null; + /** The `CorsSetting` at the end of the edge. */ + node?: CorsSetting | null; +} +export type CorsSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: CorsSettingSelect; + }; +}; +/** A `TriggerFunction` edge in the connection. */ +export interface TriggerFunctionEdge { + cursor?: string | null; + /** The `TriggerFunction` at the end of the edge. */ + node?: TriggerFunction | null; +} +export type TriggerFunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerFunctionSelect; + }; +}; +/** A `Partition` edge in the connection. */ +export interface PartitionEdge { + cursor?: string | null; + /** The `Partition` at the end of the edge. */ + node?: Partition | null; +} +export type PartitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PartitionSelect; + }; +}; +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} +export type DatabaseTransferEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseTransferSelect; + }; +}; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; +/** A `App` edge in the connection. */ +export interface AppEdge { + cursor?: string | null; + /** The `App` at the end of the edge. */ + node?: App | null; +} +export type AppEdgeSelect = { + cursor?: boolean; + node?: { + select: AppSelect; + }; +}; +/** A `ApiSetting` edge in the connection. */ +export interface ApiSettingEdge { + cursor?: string | null; + /** The `ApiSetting` at the end of the edge. */ + node?: ApiSetting | null; +} +export type ApiSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSettingSelect; + }; +}; +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +export type NodeTypeRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: NodeTypeRegistrySelect; + }; +}; +/** A `PubkeySetting` edge in the connection. */ +export interface PubkeySettingEdge { + cursor?: string | null; + /** The `PubkeySetting` at the end of the edge. */ + node?: PubkeySetting | null; +} +export type PubkeySettingEdgeSelect = { + cursor?: boolean; + node?: { + select: PubkeySettingSelect; + }; +}; +/** A `Database` edge in the connection. */ +export interface DatabaseEdge { + cursor?: string | null; + /** The `Database` at the end of the edge. */ + node?: Database | null; +} +export type DatabaseEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSelect; + }; +}; +/** A `RlsSetting` edge in the connection. */ +export interface RlsSettingEdge { + cursor?: string | null; + /** The `RlsSetting` at the end of the edge. */ + node?: RlsSetting | null; +} +export type RlsSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsSettingSelect; + }; +}; +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} +export type DatabaseSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSettingSelect; + }; +}; +/** A `WebauthnSetting` edge in the connection. */ +export interface WebauthnSettingEdge { + cursor?: string | null; + /** The `WebauthnSetting` at the end of the edge. */ + node?: WebauthnSetting | null; +} +export type WebauthnSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnSettingSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/public/orm/models/api.ts b/sdk/constructive-sdk/src/api/orm/models/api.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/api.ts rename to sdk/constructive-sdk/src/api/orm/models/api.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/apiModule.ts b/sdk/constructive-sdk/src/api/orm/models/apiModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/apiModule.ts rename to sdk/constructive-sdk/src/api/orm/models/apiModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/apiSchema.ts b/sdk/constructive-sdk/src/api/orm/models/apiSchema.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/apiSchema.ts rename to sdk/constructive-sdk/src/api/orm/models/apiSchema.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/apiSetting.ts b/sdk/constructive-sdk/src/api/orm/models/apiSetting.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/apiSetting.ts rename to sdk/constructive-sdk/src/api/orm/models/apiSetting.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/app.ts b/sdk/constructive-sdk/src/api/orm/models/app.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/app.ts rename to sdk/constructive-sdk/src/api/orm/models/app.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/astMigration.ts b/sdk/constructive-sdk/src/api/orm/models/astMigration.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/astMigration.ts rename to sdk/constructive-sdk/src/api/orm/models/astMigration.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/checkConstraint.ts b/sdk/constructive-sdk/src/api/orm/models/checkConstraint.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/checkConstraint.ts rename to sdk/constructive-sdk/src/api/orm/models/checkConstraint.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/corsSetting.ts b/sdk/constructive-sdk/src/api/orm/models/corsSetting.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/corsSetting.ts rename to sdk/constructive-sdk/src/api/orm/models/corsSetting.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/database.ts b/sdk/constructive-sdk/src/api/orm/models/database.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/database.ts rename to sdk/constructive-sdk/src/api/orm/models/database.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/databaseSetting.ts b/sdk/constructive-sdk/src/api/orm/models/databaseSetting.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/databaseSetting.ts rename to sdk/constructive-sdk/src/api/orm/models/databaseSetting.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/databaseTransfer.ts b/sdk/constructive-sdk/src/api/orm/models/databaseTransfer.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/databaseTransfer.ts rename to sdk/constructive-sdk/src/api/orm/models/databaseTransfer.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts b/sdk/constructive-sdk/src/api/orm/models/defaultPrivilege.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/defaultPrivilege.ts rename to sdk/constructive-sdk/src/api/orm/models/defaultPrivilege.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/domain.ts b/sdk/constructive-sdk/src/api/orm/models/domain.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/domain.ts rename to sdk/constructive-sdk/src/api/orm/models/domain.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/embeddingChunk.ts b/sdk/constructive-sdk/src/api/orm/models/embeddingChunk.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/embeddingChunk.ts rename to sdk/constructive-sdk/src/api/orm/models/embeddingChunk.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/enum.ts b/sdk/constructive-sdk/src/api/orm/models/enum.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/enum.ts rename to sdk/constructive-sdk/src/api/orm/models/enum.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/field.ts b/sdk/constructive-sdk/src/api/orm/models/field.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/field.ts rename to sdk/constructive-sdk/src/api/orm/models/field.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/foreignKeyConstraint.ts b/sdk/constructive-sdk/src/api/orm/models/foreignKeyConstraint.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/foreignKeyConstraint.ts rename to sdk/constructive-sdk/src/api/orm/models/foreignKeyConstraint.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/fullTextSearch.ts b/sdk/constructive-sdk/src/api/orm/models/fullTextSearch.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/fullTextSearch.ts rename to sdk/constructive-sdk/src/api/orm/models/fullTextSearch.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/function.ts b/sdk/constructive-sdk/src/api/orm/models/function.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/function.ts rename to sdk/constructive-sdk/src/api/orm/models/function.ts diff --git a/sdk/constructive-sdk/src/api/orm/models/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts new file mode 100644 index 0000000000..326c47f972 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -0,0 +1,50 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { FunctionModel } from './function'; +export { SchemaModel } from './schema'; +export { TableModel } from './table'; +export { CheckConstraintModel } from './checkConstraint'; +export { FieldModel } from './field'; +export { SpatialRelationModel } from './spatialRelation'; +export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; +export { FullTextSearchModel } from './fullTextSearch'; +export { IndexModel } from './indexModel'; +export { PolicyModel } from './policy'; +export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; +export { TableGrantModel } from './tableGrant'; +export { TriggerModel } from './trigger'; +export { UniqueConstraintModel } from './uniqueConstraint'; +export { ViewModel } from './view'; +export { ViewTableModel } from './viewTable'; +export { ViewGrantModel } from './viewGrant'; +export { ViewRuleModel } from './viewRule'; +export { EmbeddingChunkModel } from './embeddingChunk'; +export { SchemaGrantModel } from './schemaGrant'; +export { DefaultPrivilegeModel } from './defaultPrivilege'; +export { EnumModel } from './enum'; +export { ApiSchemaModel } from './apiSchema'; +export { ApiModuleModel } from './apiModule'; +export { DomainModel } from './domain'; +export { SiteMetadatumModel } from './siteMetadatum'; +export { SiteModuleModel } from './siteModule'; +export { SiteThemeModel } from './siteTheme'; +export { CorsSettingModel } from './corsSetting'; +export { TriggerFunctionModel } from './triggerFunction'; +export { PartitionModel } from './partition'; +export { DatabaseTransferModel } from './databaseTransfer'; +export { ApiModel } from './api'; +export { SiteModel } from './site'; +export { AppModel } from './app'; +export { ApiSettingModel } from './apiSetting'; +export { MigrateFileModel } from './migrateFile'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { PubkeySettingModel } from './pubkeySetting'; +export { DatabaseModel } from './database'; +export { RlsSettingModel } from './rlsSetting'; +export { SqlActionModel } from './sqlAction'; +export { DatabaseSettingModel } from './databaseSetting'; +export { WebauthnSettingModel } from './webauthnSetting'; +export { AstMigrationModel } from './astMigration'; diff --git a/sdk/constructive-sdk/src/public/orm/models/indexModel.ts b/sdk/constructive-sdk/src/api/orm/models/indexModel.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/indexModel.ts rename to sdk/constructive-sdk/src/api/orm/models/indexModel.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/migrateFile.ts b/sdk/constructive-sdk/src/api/orm/models/migrateFile.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/migrateFile.ts rename to sdk/constructive-sdk/src/api/orm/models/migrateFile.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-sdk/src/api/orm/models/nodeTypeRegistry.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts rename to sdk/constructive-sdk/src/api/orm/models/nodeTypeRegistry.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/partition.ts b/sdk/constructive-sdk/src/api/orm/models/partition.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/partition.ts rename to sdk/constructive-sdk/src/api/orm/models/partition.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/policy.ts b/sdk/constructive-sdk/src/api/orm/models/policy.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/policy.ts rename to sdk/constructive-sdk/src/api/orm/models/policy.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/primaryKeyConstraint.ts b/sdk/constructive-sdk/src/api/orm/models/primaryKeyConstraint.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/primaryKeyConstraint.ts rename to sdk/constructive-sdk/src/api/orm/models/primaryKeyConstraint.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/pubkeySetting.ts b/sdk/constructive-sdk/src/api/orm/models/pubkeySetting.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/pubkeySetting.ts rename to sdk/constructive-sdk/src/api/orm/models/pubkeySetting.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/rlsSetting.ts b/sdk/constructive-sdk/src/api/orm/models/rlsSetting.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/rlsSetting.ts rename to sdk/constructive-sdk/src/api/orm/models/rlsSetting.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/schema.ts b/sdk/constructive-sdk/src/api/orm/models/schema.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/schema.ts rename to sdk/constructive-sdk/src/api/orm/models/schema.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/schemaGrant.ts b/sdk/constructive-sdk/src/api/orm/models/schemaGrant.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/schemaGrant.ts rename to sdk/constructive-sdk/src/api/orm/models/schemaGrant.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/site.ts b/sdk/constructive-sdk/src/api/orm/models/site.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/site.ts rename to sdk/constructive-sdk/src/api/orm/models/site.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/siteMetadatum.ts b/sdk/constructive-sdk/src/api/orm/models/siteMetadatum.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/siteMetadatum.ts rename to sdk/constructive-sdk/src/api/orm/models/siteMetadatum.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/siteModule.ts b/sdk/constructive-sdk/src/api/orm/models/siteModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/siteModule.ts rename to sdk/constructive-sdk/src/api/orm/models/siteModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/siteTheme.ts b/sdk/constructive-sdk/src/api/orm/models/siteTheme.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/siteTheme.ts rename to sdk/constructive-sdk/src/api/orm/models/siteTheme.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/spatialRelation.ts b/sdk/constructive-sdk/src/api/orm/models/spatialRelation.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/spatialRelation.ts rename to sdk/constructive-sdk/src/api/orm/models/spatialRelation.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/sqlAction.ts b/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/sqlAction.ts rename to sdk/constructive-sdk/src/api/orm/models/sqlAction.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/table.ts b/sdk/constructive-sdk/src/api/orm/models/table.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/table.ts rename to sdk/constructive-sdk/src/api/orm/models/table.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/tableGrant.ts b/sdk/constructive-sdk/src/api/orm/models/tableGrant.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/tableGrant.ts rename to sdk/constructive-sdk/src/api/orm/models/tableGrant.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/trigger.ts b/sdk/constructive-sdk/src/api/orm/models/trigger.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/trigger.ts rename to sdk/constructive-sdk/src/api/orm/models/trigger.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/triggerFunction.ts b/sdk/constructive-sdk/src/api/orm/models/triggerFunction.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/triggerFunction.ts rename to sdk/constructive-sdk/src/api/orm/models/triggerFunction.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/uniqueConstraint.ts b/sdk/constructive-sdk/src/api/orm/models/uniqueConstraint.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/uniqueConstraint.ts rename to sdk/constructive-sdk/src/api/orm/models/uniqueConstraint.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/view.ts b/sdk/constructive-sdk/src/api/orm/models/view.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/view.ts rename to sdk/constructive-sdk/src/api/orm/models/view.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/viewGrant.ts b/sdk/constructive-sdk/src/api/orm/models/viewGrant.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/viewGrant.ts rename to sdk/constructive-sdk/src/api/orm/models/viewGrant.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/viewRule.ts b/sdk/constructive-sdk/src/api/orm/models/viewRule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/viewRule.ts rename to sdk/constructive-sdk/src/api/orm/models/viewRule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/viewTable.ts b/sdk/constructive-sdk/src/api/orm/models/viewTable.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/viewTable.ts rename to sdk/constructive-sdk/src/api/orm/models/viewTable.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/webauthnSetting.ts b/sdk/constructive-sdk/src/api/orm/models/webauthnSetting.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/webauthnSetting.ts rename to sdk/constructive-sdk/src/api/orm/models/webauthnSetting.ts diff --git a/sdk/constructive-sdk/src/api/orm/mutation/index.ts b/sdk/constructive-sdk/src/api/orm/mutation/index.ts new file mode 100644 index 0000000000..ef3c67f877 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/mutation/index.ts @@ -0,0 +1,356 @@ +/** + * 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 { + AcceptDatabaseTransferInput, + CancelDatabaseTransferInput, + RejectDatabaseTransferInput, + ProvisionDatabaseWithUserInput, + BootstrapUserInput, + SetFieldOrderInput, + ApplyRlsInput, + CreateUserDatabaseInput, + ProvisionBucketInput, + AcceptDatabaseTransferPayload, + CancelDatabaseTransferPayload, + RejectDatabaseTransferPayload, + ProvisionDatabaseWithUserPayload, + BootstrapUserPayload, + SetFieldOrderPayload, + ApplyRlsPayload, + CreateUserDatabasePayload, + ProvisionBucketPayload, + AcceptDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayloadSelect, + ProvisionDatabaseWithUserPayloadSelect, + BootstrapUserPayloadSelect, + SetFieldOrderPayloadSelect, + ApplyRlsPayloadSelect, + CreateUserDatabasePayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; +} +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; +} +export interface ProvisionDatabaseWithUserVariables { + input: ProvisionDatabaseWithUserInput; +} +export interface BootstrapUserVariables { + input: BootstrapUserInput; +} +export interface SetFieldOrderVariables { + input: SetFieldOrderInput; +} +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) + +Returns the database_id UUID of the newly created database. + +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 + */ +export interface CreateUserDatabaseVariables { + input: CreateUserDatabaseInput; +} +/** + * 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 { + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + acceptDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'AcceptDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'AcceptDatabaseTransferPayload' + ), + }), + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + cancelDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'CancelDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'CancelDatabaseTransferPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' + ), + }), + 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: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setFieldOrder: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetFieldOrder', + fieldName: 'setFieldOrder', + ...buildCustomDocument( + 'mutation', + 'SetFieldOrder', + 'setFieldOrder', + options.select, + args, + [ + { + name: 'input', + type: 'SetFieldOrderInput!', + }, + ], + connectionFieldsMap, + 'SetFieldOrderPayload' + ), + }), + applyRls: ( + args: ApplyRlsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + applyRls: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApplyRls', + fieldName: 'applyRls', + ...buildCustomDocument( + 'mutation', + 'ApplyRls', + 'applyRls', + options.select, + args, + [ + { + name: 'input', + type: 'ApplyRlsInput!', + }, + ], + connectionFieldsMap, + 'ApplyRlsPayload' + ), + }), + createUserDatabase: ( + args: CreateUserDatabaseVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createUserDatabase: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateUserDatabase', + fieldName: 'createUserDatabase', + ...buildCustomDocument( + 'mutation', + 'CreateUserDatabase', + 'createUserDatabase', + options.select, + args, + [ + { + name: 'input', + type: 'CreateUserDatabaseInput!', + }, + ], + connectionFieldsMap, + 'CreateUserDatabasePayload' + ), + }), + 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/api/orm/query-builder.ts b/sdk/constructive-sdk/src/api/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/api/orm/query/index.ts b/sdk/constructive-sdk/src/api/orm/query/index.ts new file mode 100644 index 0000000000..e004891a17 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/query/index.ts @@ -0,0 +1,50 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export interface ApplyRegistryDefaultsVariables { + nodeType?: string; + data?: unknown; +} +export function createQueryOperations(client: OrmClient) { + return { + applyRegistryDefaults: ( + args: ApplyRegistryDefaultsVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + applyRegistryDefaults: unknown | null; + }>({ + client, + operation: 'query', + operationName: 'ApplyRegistryDefaults', + fieldName: 'applyRegistryDefaults', + ...buildCustomDocument( + 'query', + 'ApplyRegistryDefaults', + 'applyRegistryDefaults', + options?.select, + args, + [ + { + name: 'nodeType', + type: 'String', + }, + { + name: 'data', + type: 'JSON', + }, + ], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/api/orm/realtime.ts b/sdk/constructive-sdk/src/api/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-sdk/src/api/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/api/orm/select-types.ts b/sdk/constructive-sdk/src/api/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-sdk/src/api/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/api/orm/types.ts b/sdk/constructive-sdk/src/api/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-sdk/src/api/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/index.ts b/sdk/constructive-sdk/src/index.ts index 4f0892d9e0..dca8c56ed3 100644 --- a/sdk/constructive-sdk/src/index.ts +++ b/sdk/constructive-sdk/src/index.ts @@ -7,6 +7,9 @@ * @generated by @constructive-io/graphql-codegen */ export * as admin from './admin'; +export * as agent from './agent'; +export * as api from './api'; export * as auth from './auth'; +export * as modules from './modules'; export * as objects from './objects'; -export * as public_ from './public'; +export * as usage from './usage'; diff --git a/sdk/constructive-sdk/src/modules/README.md b/sdk/constructive-sdk/src/modules/README.md new file mode 100644 index 0000000000..c55f613d52 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 56 +- **Custom queries:** 2 +- **Custom mutations:** 10 + +**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/modules/index.ts b/sdk/constructive-sdk/src/modules/index.ts new file mode 100644 index 0000000000..654223e7a5 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/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/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md new file mode 100644 index 0000000000..ee91d16d18 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -0,0 +1,2763 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `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 | +| `identityProvidersModule` | 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 | +| `cryptoAddressesModule` | findMany, findOne, create, update, delete | +| `denormalizedTableField` | findMany, findOne, create, update, delete | +| `rlsModule` | findMany, findOne, create, update, delete | +| `blueprint` | findMany, findOne, create, update, delete | +| `blueprintTemplate` | findMany, findOne, create, update, delete | +| `blueprintConstruction` | findMany, findOne, create, update, delete | +| `cryptoAuthModule` | findMany, findOne, create, update, delete | +| `rateLimitMetersModule` | findMany, findOne, create, update, delete | +| `sessionsModule` | findMany, findOne, create, update, delete | +| `merkleStoreModule` | findMany, findOne, create, update, delete | +| `graphModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | +| `configSecretsModule` | findMany, findOne, create, update, delete | +| `invitesModule` | findMany, findOne, create, update, delete | +| `databaseProvisionModule` | findMany, findOne, create, update, delete | +| `realtimeModule` | findMany, findOne, create, update, delete | +| `webauthnAuthModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | +| `computeLogModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | +| `storageLogModule` | findMany, findOne, create, update, delete | +| `transferLogModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | +| `notificationsModule` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | +| `hierarchyModule` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | +| `billingProviderModule` | findMany, findOne, create, update, delete | +| `profilesModule` | findMany, findOne, create, update, delete | +| `permissionsModule` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | +| `functionModule` | findMany, findOne, create, update, delete | +| `userAuthModule` | findMany, findOne, create, update, delete | +| `agentModule` | findMany, findOne, create, update, delete | +| `limitsModule` | findMany, findOne, create, update, delete | +| `membershipsModule` | findMany, findOne, create, update, delete | +| `storageModule` | findMany, findOne, create, update, delete | +| `eventsModule` | findMany, findOne, create, update, delete | +| `entityTypeProvision` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.defaultIdsModule` + +CRUD operations for DefaultIdsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all defaultIdsModule records +const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); + +// Create +const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipTypesModule` + +CRUD operations for MembershipTypesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all membershipTypesModule records +const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `sessionsTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all sessionSecretsModule records +const items = await db.sessionSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); + +// Get one by id +const item = await db.sessionSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); + +// Create +const created = await db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | Yes | + +**Operations:** + +```typescript +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); + +// Get one by id +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); + +// Create +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.i18NModule` + +CRUD operations for I18NModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `settingsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all i18NModule records +const items = await db.i18NModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.i18NModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, settingsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.i18NModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.i18NModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userCredentialsModule` + +CRUD operations for UserCredentialsModule 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 userCredentialsModule records +const items = await db.userCredentialsModule.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.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.userCredentialsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userSettingsModule` + +CRUD operations for UserSettingsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | 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(); + +// 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(); + +// Create +const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.configSecretsUserModule` + +CRUD operations for ConfigSecretsUserModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | 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(); + +// 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(); + +// Create +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', 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.identityProvidersModule` + +CRUD operations for IdentityProvidersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, 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.connectedAccountsModule` + +CRUD operations for ConnectedAccountsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all connectedAccountsModule records +const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailsModule` + +CRUD operations for EmailsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all emailsModule records +const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.phoneNumbersModule` + +CRUD operations for PhoneNumbersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all phoneNumbersModule records +const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitsModule` + +CRUD operations for RateLimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `rateLimitSettingsTableId` | UUID | Yes | +| `ipRateLimitsTableId` | UUID | Yes | +| `rateLimitsTableId` | UUID | Yes | +| `rateLimitSettingsTable` | String | Yes | +| `ipRateLimitsTable` | String | Yes | +| `rateLimitsTable` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitsModule records +const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Get one by id +const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Create +const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.usersModule` + +CRUD operations for UsersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `typeTableId` | UUID | Yes | +| `typeTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all usersModule records +const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.webauthnCredentialsModule` + +CRUD operations for WebauthnCredentialsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all webauthnCredentialsModule records +const items = await db.webauthnCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.webauthnCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAddressesModule` + +CRUD operations for CryptoAddressesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `cryptoNetwork` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAddressesModule records +const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.denormalizedTableField` + +CRUD operations for DenormalizedTableField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `setIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `refIds` | UUID | Yes | +| `useUpdates` | Boolean | Yes | +| `updateDefaults` | Boolean | Yes | +| `funcName` | String | Yes | +| `funcOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all denormalizedTableField records +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Get one by id +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Create +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +``` + +### `db.rlsModule` + +CRUD operations for RlsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rlsModule records +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprint` + +CRUD operations for Blueprint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `definition` | JSON | Yes | +| `templateId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprint records +const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintTemplate` + +CRUD operations for BlueprintTemplate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `version` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `ownerId` | UUID | Yes | +| `visibility` | String | Yes | +| `categories` | String | Yes | +| `tags` | String | Yes | +| `definition` | JSON | Yes | +| `definitionSchemaVersion` | String | Yes | +| `source` | String | Yes | +| `complexity` | String | Yes | +| `copyCount` | Int | Yes | +| `forkCount` | Int | Yes | +| `forkedFromId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprintTemplate records +const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintConstruction` + +CRUD operations for BlueprintConstruction records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `blueprintId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `status` | String | Yes | +| `errorDetails` | String | Yes | +| `tableMap` | JSON | Yes | +| `constructedDefinition` | JSON | Yes | +| `constructedAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprintConstruction records +const items = await db.blueprintConstruction.findMany({ select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprintConstruction.findOne({ id: '', select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprintConstruction.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAuthModule` + +CRUD operations for CryptoAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `addressesTableId` | UUID | Yes | +| `userField` | String | Yes | +| `cryptoNetwork` | String | Yes | +| `signInRequestChallenge` | String | Yes | +| `signInRecordFailure` | String | Yes | +| `signUpWithKey` | String | Yes | +| `signInWithChallenge` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAuthModule records +const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); + +// Get one by id +const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); + +// Create +const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitMetersModule` + +CRUD operations for RateLimitMetersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `rateLimitStateTableId` | UUID | Yes | +| `rateLimitStateTableName` | String | Yes | +| `rateLimitOverridesTableId` | UUID | Yes | +| `rateLimitOverridesTableName` | String | Yes | +| `rateWindowLimitsTableId` | UUID | Yes | +| `rateWindowLimitsTableName` | String | Yes | +| `checkRateLimitFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitMetersModule records +const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.sessionsModule` + +CRUD operations for SessionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `authSettingsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `sessionsDefaultExpiration` | Interval | Yes | +| `sessionsTable` | String | Yes | +| `sessionCredentialsTable` | String | Yes | +| `authSettingsTable` | String | Yes | + +**Operations:** + +```typescript +// List all sessionsModule records +const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Get one by id +const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Create +const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.merkleStoreModule` + +CRUD operations for MerkleStoreModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `objectTableId` | UUID | Yes | +| `storeTableId` | UUID | Yes | +| `commitTableId` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `databaseOwned` | Boolean | 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, databaseOwned: 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, databaseOwned: true, createdAt: true } }).execute(); + +// Create +const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', databaseOwned: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.graphModule` + +CRUD operations for GraphModule 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 | +| `executionsTableId` | UUID | Yes | +| `outputsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `createdAt` | 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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: 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, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, databaseOwned: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); + +// Create +const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', databaseOwned: '', entityTableId: '', policies: '', provisions: '' }, 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.secureTableProvision` + +CRUD operations for SecureTableProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `nodes` | JSON | Yes | +| `useRls` | Boolean | Yes | +| `fields` | JSON | Yes | +| `grants` | JSON | Yes | +| `policies` | JSON | Yes | +| `outFields` | UUID | Yes | + +**Operations:** + +```typescript +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); + +// Get one by id +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); + +// Create +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.configSecretsModule` + +CRUD operations for ConfigSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | 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, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); + +// Get one by id +const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); + +// Create +const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.invitesModule` + +CRUD operations for InvitesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseProvisionModule` + +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 | +| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseProvisionModule records +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Get one by id +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); + +// Create +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.realtimeModule` + +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.webauthnAuthModule` + +CRUD operations for WebauthnAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `credentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionSecretsTableId` | UUID | Yes | +| `authSettingsTableId` | UUID | Yes | +| `rpId` | String | Yes | +| `rpName` | String | Yes | +| `originAllowlist` | String | Yes | +| `attestationType` | String | Yes | +| `requireUserVerification` | Boolean | Yes | +| `residentKey` | String | Yes | +| `challengeExpiry` | Interval | Yes | + +**Operations:** + +```typescript +// List all webauthnAuthModule records +const items = await db.webauthnAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); + +// Get one by id +const item = await db.webauthnAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); + +// Create +const created = await db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceModule` + +CRUD operations for NamespaceModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `namespacesTableId` | UUID | Yes | +| `namespaceEventsTableId` | UUID | Yes | +| `namespacesTableName` | String | Yes | +| `namespaceEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.computeLogModule` + +CRUD operations for ComputeLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.inferenceLogModule` + +CRUD operations for InferenceLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `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, 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.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.storageLogModule` + +CRUD operations for StorageLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, 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, 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.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', 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(); + +// Delete +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.transferLogModule` + +CRUD operations for TransferLogModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, 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, 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.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', 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(); + +// Delete +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbUsageModule` + +CRUD operations for DbUsageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `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, 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, 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', 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.notificationsModule` + +CRUD operations for NotificationsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | 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 | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.plansModule` + +CRUD operations for PlansModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 | + +**Operations:** + +```typescript +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.hierarchyModule` + +CRUD operations for HierarchyModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `chartEdgesTableId` | UUID | Yes | +| `chartEdgesTableName` | String | Yes | +| `hierarchySprtTableId` | UUID | Yes | +| `hierarchySprtTableName` | String | Yes | +| `chartEdgeGrantsTableId` | UUID | Yes | +| `chartEdgeGrantsTableName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `privateSchemaName` | String | Yes | +| `sprtTableName` | String | Yes | +| `rebuildHierarchyFunction` | String | Yes | +| `getSubordinatesFunction` | String | Yes | +| `getManagersFunction` | String | Yes | +| `isManagerOfFunction` | String | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```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, 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, 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: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.billingModule` + +CRUD operations for BillingModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `meterDefaultsTableId` | UUID | Yes | +| `meterDefaultsTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.billingProviderModule` + +CRUD operations for BillingProviderModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `provider` | String | Yes | +| `productsTableId` | UUID | Yes | +| `pricesTableId` | UUID | Yes | +| `subscriptionsTableId` | UUID | Yes | +| `billingCustomersTableId` | UUID | Yes | +| `billingCustomersTableName` | String | Yes | +| `billingProductsTableId` | UUID | Yes | +| `billingProductsTableName` | String | Yes | +| `billingPricesTableId` | UUID | Yes | +| `billingPricesTableName` | String | Yes | +| `billingSubscriptionsTableId` | UUID | Yes | +| `billingSubscriptionsTableName` | String | Yes | +| `billingWebhookEventsTableId` | UUID | Yes | +| `billingWebhookEventsTableName` | String | Yes | +| `processBillingEventFunction` | String | Yes | +| `prefix` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all billingProviderModule records +const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.profilesModule` + +CRUD operations for ProfilesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `profilePermissionsTableId` | UUID | Yes | +| `profilePermissionsTableName` | String | Yes | +| `profileGrantsTableId` | UUID | Yes | +| `profileGrantsTableName` | String | Yes | +| `profileDefinitionGrantsTableId` | UUID | Yes | +| `profileDefinitionGrantsTableName` | String | Yes | +| `profileTemplatesTableId` | UUID | Yes | +| `profileTemplatesTableName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `membershipsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all profilesModule records +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', 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(); + +// Delete +const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.permissionsModule` + +CRUD operations for PermissionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | 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 permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.relationProvision` + +CRUD operations for RelationProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `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 | +| `policies` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | 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(); + +// 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(); + +// 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(); + +// Update +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionModule` + +CRUD operations for FunctionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `definitionsTableId` | UUID | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `secretDefinitionsTableId` | UUID | Yes | +| `requirementsTableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `configRequirementsTableId` | UUID | Yes | +| `definitionsTableName` | String | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | +| `secretDefinitionsTableName` | String | Yes | +| `requirementsTableName` | String | Yes | +| `configRequirementsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userAuthModule` + +CRUD operations for UserAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `encryptedTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `auditsTableId` | UUID | Yes | +| `auditsTableName` | String | Yes | +| `signInFunction` | String | Yes | +| `signUpFunction` | String | Yes | +| `signOutFunction` | String | Yes | +| `setPasswordFunction` | String | Yes | +| `resetPasswordFunction` | String | Yes | +| `forgotPasswordFunction` | String | Yes | +| `sendVerificationEmailFunction` | String | Yes | +| `verifyEmailFunction` | String | Yes | +| `verifyPasswordFunction` | String | Yes | +| `checkPasswordFunction` | String | Yes | +| `sendAccountDeletionEmailFunction` | String | Yes | +| `deleteAccountFunction` | String | Yes | +| `signInCrossOriginFunction` | String | Yes | +| `requestCrossOriginTokenFunction` | String | Yes | +| `extendTokenExpires` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all userAuthModule records +const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.userAuthModule.create({ data: { 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: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.agentModule` + +CRUD operations for AgentModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `threadTableId` | UUID | Yes | +| `messageTableId` | UUID | Yes | +| `taskTableId` | UUID | Yes | +| `promptsTableId` | UUID | Yes | +| `knowledgeTableId` | UUID | Yes | +| `planTableId` | UUID | Yes | +| `skillTableId` | UUID | Yes | +| `threadTableName` | String | Yes | +| `messageTableName` | String | Yes | +| `taskTableName` | String | Yes | +| `promptsTableName` | String | Yes | +| `knowledgeTableName` | String | Yes | +| `planTableName` | String | Yes | +| `skillTableName` | String | Yes | +| `hasKnowledge` | Boolean | Yes | +| `hasPlans` | Boolean | Yes | +| `hasSkills` | Boolean | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `knowledgeConfig` | JSON | Yes | +| `skillsConfig` | JSON | Yes | +| `knowledgePolicies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all agentModule records +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, planTableId: true, skillTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, planTableName: true, skillTableName: true, hasKnowledge: true, hasPlans: true, hasSkills: true, apiName: true, privateApiName: true, scope: true, databaseOwned: true, prefix: true, entityTableId: true, policies: true, knowledgeConfig: true, skillsConfig: true, knowledgePolicies: true, provisions: true } }).execute(); + +// Create +const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', planTableId: '', skillTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', planTableName: '', skillTableName: '', hasKnowledge: '', hasPlans: '', hasSkills: '', apiName: '', privateApiName: '', scope: '', databaseOwned: '', prefix: '', entityTableId: '', policies: '', knowledgeConfig: '', skillsConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.agentModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.limitsModule` + +CRUD operations for LimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `limitIncrementFunction` | String | Yes | +| `limitDecrementFunction` | String | Yes | +| `limitIncrementTrigger` | String | Yes | +| `limitDecrementTrigger` | String | Yes | +| `limitUpdateTrigger` | String | Yes | +| `limitCheckFunction` | String | Yes | +| `limitCreditsTableId` | UUID | Yes | +| `eventsTableId` | UUID | Yes | +| `creditCodesTableId` | UUID | Yes | +| `creditCodeItemsTableId` | UUID | Yes | +| `creditRedemptionsTableId` | UUID | Yes | +| `aggregateTableId` | UUID | Yes | +| `limitCapsTableId` | UUID | Yes | +| `limitCapsDefaultsTableId` | UUID | Yes | +| `capCheckTrigger` | String | Yes | +| `resolveCapFunction` | String | Yes | +| `limitWarningsTableId` | UUID | Yes | +| `limitWarningStateTableId` | UUID | Yes | +| `limitCheckSoftFunction` | String | Yes | +| `limitAggregateCheckSoftFunction` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all limitsModule records +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, 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: '', 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(); + +// Delete +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 | +| `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 | +| `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, 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, 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, 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', 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.storageModule` + +CRUD operations for StorageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `bucketsTableId` | UUID | Yes | +| `filesTableId` | UUID | Yes | +| `bucketsTableName` | String | Yes | +| `filesTableName` | String | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `entityTableId` | UUID | Yes | +| `endpoint` | String | Yes | +| `publicUrlPrefix` | String | Yes | +| `provider` | String | Yes | +| `allowedOrigins` | String | Yes | +| `restrictReads` | Boolean | Yes | +| `hasPathShares` | Boolean | Yes | +| `pathSharesTableId` | UUID | Yes | +| `uploadUrlExpirySeconds` | Int | Yes | +| `downloadUrlExpirySeconds` | Int | Yes | +| `defaultMaxFileSize` | BigInt | Yes | +| `maxFilenameLength` | Int | Yes | +| `cacheTtlSeconds` | Int | Yes | +| `maxBulkFiles` | Int | Yes | +| `maxBulkTotalSize` | BigInt | Yes | +| `hasVersioning` | Boolean | Yes | +| `hasContentHash` | Boolean | Yes | +| `hasCustomKeys` | Boolean | Yes | +| `hasAuditLog` | Boolean | Yes | +| `hasConfirmUpload` | Boolean | Yes | +| `confirmUploadDelay` | Interval | Yes | +| `fileEventsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all storageModule records +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, 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, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, databaseOwned: 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, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', databaseOwned: '', 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: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.eventsModule` + +CRUD operations for EventsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `eventsTableId` | UUID | Yes | +| `eventsTableName` | String | Yes | +| `eventAggregatesTableId` | UUID | Yes | +| `eventAggregatesTableName` | String | Yes | +| `eventTypesTableId` | UUID | Yes | +| `eventTypesTableName` | String | Yes | +| `levelsTableId` | UUID | Yes | +| `levelsTableName` | String | Yes | +| `levelRequirementsTableId` | UUID | Yes | +| `levelRequirementsTableName` | String | Yes | +| `levelGrantsTableId` | UUID | Yes | +| `levelGrantsTableName` | String | Yes | +| `achievementRewardsTableId` | UUID | Yes | +| `achievementRewardsTableName` | String | Yes | +| `recordEvent` | String | Yes | +| `removeEvent` | String | Yes | +| `tgEvent` | String | Yes | +| `tgEventToggle` | String | Yes | +| `tgEventToggleBool` | String | Yes | +| `tgEventBool` | String | Yes | +| `upsertAggregate` | String | Yes | +| `tgUpdateAggregates` | String | Yes | +| `pruneEvents` | String | Yes | +| `stepsRequired` | String | Yes | +| `levelAchieved` | String | Yes | +| `tgCheckAchievements` | String | Yes | +| `grantAchievement` | String | Yes | +| `tgAchievementReward` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `databaseOwned` | Boolean | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all eventsModule records +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: 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, 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, databaseOwned: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', databaseOwned: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.entityTypeProvision` + +CRUD operations for EntityTypeProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `prefix` | String | Yes | +| `description` | String | Yes | +| `parentEntity` | String | Yes | +| `tableName` | String | Yes | +| `isVisible` | Boolean | Yes | +| `hasLimits` | Boolean | Yes | +| `hasProfiles` | Boolean | Yes | +| `hasLevels` | Boolean | Yes | +| `hasInvites` | Boolean | Yes | +| `hasInviteAchievements` | Boolean | Yes | +| `storage` | JSON | Yes | +| `namespaces` | JSON | Yes | +| `functions` | JSON | Yes | +| `graphs` | JSON | Yes | +| `agents` | JSON | Yes | +| `skipEntityPolicies` | Boolean | Yes | +| `tableProvision` | JSON | Yes | +| `outMembershipType` | Int | Yes | +| `outEntityTableId` | UUID | Yes | +| `outEntityTableName` | String | Yes | +| `outInstalledModules` | String | Yes | +| `outStorageModuleId` | UUID | Yes | +| `outBucketsTableId` | UUID | Yes | +| `outFilesTableId` | UUID | Yes | +| `outPathSharesTableId` | UUID | Yes | +| `outInvitesModuleId` | UUID | Yes | +| `outNamespaceModuleId` | UUID | Yes | +| `outNamespacesTableId` | UUID | Yes | +| `outNamespaceEventsTableId` | UUID | Yes | +| `outFunctionModuleId` | UUID | Yes | +| `outDefinitionsTableId` | UUID | Yes | +| `outInvocationsTableId` | UUID | Yes | +| `outExecutionLogsTableId` | UUID | Yes | +| `outSecretDefinitionsTableId` | UUID | Yes | +| `outRequirementsTableId` | UUID | Yes | +| `outConfigRequirementsTableId` | UUID | Yes | +| `outGraphModuleId` | UUID | Yes | +| `outGraphsTableId` | UUID | Yes | +| `outAgentModuleId` | UUID | Yes | + +**Operations:** + +```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.resolveBlueprintField` + +Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableId` | UUID | + | `fieldName` | String | + +```typescript +const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); +``` + +### `db.query.resolveBlueprintTable` + +Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `tableName` | String | + | `schemaName` | String | + | `tableMap` | JSON | + | `defaultSchemaId` | UUID | + +```typescript +const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); +``` + +### `db.mutation.constructBlueprint` + +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConstructBlueprintInput (required) | + +```typescript +const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); +``` + +### `db.mutation.provisionFullTextSearch` + +Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionFullTextSearchInput (required) | + +```typescript +const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionIndex` + +Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionIndexInput (required) | + +```typescript +const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionCheckConstraint` + +Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionCheckConstraintInput (required) | + +```typescript +const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.provisionUniqueConstraint` + +Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionUniqueConstraintInput (required) | + +```typescript +const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); +``` + +### `db.mutation.copyTemplateToBlueprint` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + +```typescript +const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); +``` + +### `db.mutation.provisionSpatialRelation` + +Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionSpatialRelationInput (required) | + +```typescript +const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); +``` + +### `db.mutation.provisionTable` + +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionTableInput (required) | + +```typescript +const result = await db.mutation.provisionTable({ input: '' }).execute(); +``` + +### `db.mutation.provisionRelation` + +Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionRelationInput (required) | + +```typescript +const result = await db.mutation.provisionRelation({ input: '' }).execute(); +``` + +### `db.mutation.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/modules/orm/client.ts b/sdk/constructive-sdk/src/modules/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/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/modules/orm/index.ts b/sdk/constructive-sdk/src/modules/orm/index.ts new file mode 100644 index 0000000000..a7029f3b07 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/index.ts @@ -0,0 +1,158 @@ +/** + * 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 { 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 { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +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 { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; +import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; +import { RlsModuleModel } from './models/rlsModule'; +import { BlueprintModel } from './models/blueprint'; +import { BlueprintTemplateModel } from './models/blueprintTemplate'; +import { BlueprintConstructionModel } from './models/blueprintConstruction'; +import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; +import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; +import { SessionsModuleModel } from './models/sessionsModule'; +import { MerkleStoreModuleModel } from './models/merkleStoreModule'; +import { GraphModuleModel } from './models/graphModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; +import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { InvitesModuleModel } from './models/invitesModule'; +import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; +import { RealtimeModuleModel } from './models/realtimeModule'; +import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; +import { ComputeLogModuleModel } from './models/computeLogModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; +import { StorageLogModuleModel } from './models/storageLogModule'; +import { TransferLogModuleModel } from './models/transferLogModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; +import { NotificationsModuleModel } from './models/notificationsModule'; +import { PlansModuleModel } from './models/plansModule'; +import { HierarchyModuleModel } from './models/hierarchyModule'; +import { BillingModuleModel } from './models/billingModule'; +import { BillingProviderModuleModel } from './models/billingProviderModule'; +import { ProfilesModuleModel } from './models/profilesModule'; +import { PermissionsModuleModel } from './models/permissionsModule'; +import { RelationProvisionModel } from './models/relationProvision'; +import { FunctionModuleModel } from './models/functionModule'; +import { UserAuthModuleModel } from './models/userAuthModule'; +import { AgentModuleModel } from './models/agentModule'; +import { LimitsModuleModel } from './models/limitsModule'; +import { MembershipsModuleModel } from './models/membershipsModule'; +import { StorageModuleModel } from './models/storageModule'; +import { EventsModuleModel } from './models/eventsModule'; +import { EntityTypeProvisionModel } from './models/entityTypeProvision'; +import { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @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 { + 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), + identityProvidersModule: new IdentityProvidersModuleModel(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), + cryptoAddressesModule: new CryptoAddressesModuleModel(client), + denormalizedTableField: new DenormalizedTableFieldModel(client), + rlsModule: new RlsModuleModel(client), + blueprint: new BlueprintModel(client), + blueprintTemplate: new BlueprintTemplateModel(client), + blueprintConstruction: new BlueprintConstructionModel(client), + cryptoAuthModule: new CryptoAuthModuleModel(client), + rateLimitMetersModule: new RateLimitMetersModuleModel(client), + sessionsModule: new SessionsModuleModel(client), + merkleStoreModule: new MerkleStoreModuleModel(client), + graphModule: new GraphModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), + configSecretsModule: new ConfigSecretsModuleModel(client), + invitesModule: new InvitesModuleModel(client), + databaseProvisionModule: new DatabaseProvisionModuleModel(client), + realtimeModule: new RealtimeModuleModel(client), + webauthnAuthModule: new WebauthnAuthModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), + computeLogModule: new ComputeLogModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), + storageLogModule: new StorageLogModuleModel(client), + transferLogModule: new TransferLogModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), + notificationsModule: new NotificationsModuleModel(client), + plansModule: new PlansModuleModel(client), + hierarchyModule: new HierarchyModuleModel(client), + billingModule: new BillingModuleModel(client), + billingProviderModule: new BillingProviderModuleModel(client), + profilesModule: new ProfilesModuleModel(client), + permissionsModule: new PermissionsModuleModel(client), + relationProvision: new RelationProvisionModel(client), + functionModule: new FunctionModuleModel(client), + userAuthModule: new UserAuthModuleModel(client), + agentModule: new AgentModuleModel(client), + limitsModule: new LimitsModuleModel(client), + membershipsModule: new MembershipsModuleModel(client), + storageModule: new StorageModuleModel(client), + eventsModule: new EventsModuleModel(client), + entityTypeProvision: new EntityTypeProvisionModel(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 new file mode 100644 index 0000000000..a2b2f9680f --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -0,0 +1,13842 @@ +/** + * 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 DefaultIdsModule { + id: string; + databaseId?: string | null; +} +export interface MembershipTypesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + 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; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + /** 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; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface I18NModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + settingsTableId?: string | null; + 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 { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UserSettingsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; +} +export interface ConfigSecretsUserModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + configDefinitionsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** Config row for the identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. */ +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; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ConnectedAccountsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EmailsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface PhoneNumbersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface RateLimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +export interface UsersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** 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. */ +export interface WebauthnCredentialsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface CryptoAddressesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DenormalizedTableField { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface RlsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ +export interface Blueprint { + /** Unique identifier for this blueprint. */ + id: string; + /** The user who owns this blueprint. */ + ownerId?: string | null; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId?: string | null; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string | null; + /** Human-readable display name for the blueprint. */ + displayName?: string | null; + /** Optional description of the blueprint. */ + description?: string | null; + /** 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?: Record | null; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string | null; + /** 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 | null; + /** 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?: Record | null; + /** Timestamp when this blueprint was created. */ + createdAt?: string | null; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string | null; +} +/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ +export interface BlueprintTemplate { + /** Unique identifier for this template. */ + id: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string | null; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string | null; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string | null; + /** Optional description of what the template provisions. */ + description?: string | null; + /** The user who created or published this template. */ + ownerId?: string | null; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string | null; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[] | null; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[] | null; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: Record | null; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string | null; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string | null; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string | null; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number | null; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number | null; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string | null; + /** 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?: string | null; + /** 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?: Record | null; + /** Timestamp when this template was created. */ + createdAt?: string | null; + /** Timestamp when this template was last modified. */ + updatedAt?: string | null; +} +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ +export interface BlueprintConstruction { + /** Unique identifier for this construction attempt. */ + id: string; + /** The blueprint that was constructed. */ + blueprintId?: string | null; + /** The database the blueprint was constructed into. */ + databaseId?: string | null; + /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ + schemaId?: string | null; + /** 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 | null; + /** Error message from a failed construction attempt. NULL unless status is failed. */ + errorDetails?: string | null; + /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + tableMap?: Record | null; + /** 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?: Record | null; + /** Timestamp when construction successfully completed. NULL until constructed. */ + constructedAt?: string | null; + /** Timestamp when this construction attempt was created. */ + createdAt?: string | null; + /** Timestamp when this construction attempt was last modified. */ + updatedAt?: string | null; +} +export interface CryptoAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface SessionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: string | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface MerkleStoreModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + createdAt?: string | null; +} +export interface GraphModule { + id: string; + databaseId?: string | null; + publicSchemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + scope?: string | null; + prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; + executionsTableId?: string | null; + outputsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + createdAt?: string | null; +} +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database this provision belongs to. Required. */ + databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string | null; + /** 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 | null; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: Record | null; + /** 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 | null; + /** 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?: Record[] | null; + /** 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?: Record | null; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: Record | null; + /** 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; +} +/** + * 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. + */ +export interface ConfigSecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface InvitesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: 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 | 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; +} +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; +} +export interface WebauthnAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + authSettingsTableId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpiry?: string | null; +} +export interface NamespaceModule { + id: string; + 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; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface ComputeLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface StorageLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface TransferLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface NotificationsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 HierarchyModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + createdAt?: string | null; +} +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface BillingProviderModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ProfilesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 PermissionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; +} +/** + * 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. */ + databaseId?: string | null; + /** + * 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 | null; + /** + * 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?: string | null; + /** + * 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?: string | null; + /** + * 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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?: string | null; + /** 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 | null; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string | null; + /** 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 | null; + /** 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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 | null; + /** + * 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?: Record | null; + /** 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?: Record | null; + /** + * 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?: Record | null; + /** 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?: string | null; + /** 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?: string | null; + /** 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?: string | null; + /** 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 FunctionModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + secretDefinitionsTableId?: string | null; + requirementsTableId?: string | null; + configDefinitionsTableId?: string | null; + configRequirementsTableId?: string | null; + definitionsTableName?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + secretDefinitionsTableName?: string | null; + requirementsTableName?: string | null; + configRequirementsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UserAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInCrossOriginFunction?: string | null; + requestCrossOriginTokenFunction?: string | null; + extendTokenExpires?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface AgentModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + threadTableId?: string | null; + messageTableId?: string | null; + taskTableId?: string | null; + promptsTableId?: string | null; + knowledgeTableId?: string | null; + planTableId?: string | null; + skillTableId?: string | null; + threadTableName?: string | null; + messageTableName?: string | null; + taskTableName?: string | null; + promptsTableName?: string | null; + knowledgeTableName?: string | null; + planTableName?: string | null; + skillTableName?: string | null; + hasKnowledge?: boolean | null; + hasPlans?: boolean | null; + hasSkills?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + knowledgeConfig?: Record | null; + skillsConfig?: Record | null; + knowledgePolicies?: Record | null; + provisions?: Record | null; +} +export interface LimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + limitCreditsTableId?: string | null; + eventsTableId?: string | null; + creditCodesTableId?: string | null; + creditCodeItemsTableId?: string | null; + creditRedemptionsTableId?: string | null; + aggregateTableId?: string | null; + limitCapsTableId?: string | null; + limitCapsDefaultsTableId?: string | null; + capCheckTrigger?: string | null; + resolveCapFunction?: string | null; + limitWarningsTableId?: string | null; + limitWarningStateTableId?: string | null; + limitCheckSoftFunction?: string | null; + limitAggregateCheckSoftFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface MembershipsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + apiName?: string | null; + privateApiName?: string | null; +} +export interface StorageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; + fileEventsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EventsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: 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). + * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + * Set table_provision to a single jsonb object (using the same shape as provision_table() / + * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + * as an escape hatch to apply zero policies. + */ +export interface EntityTypeProvision { + /** Unique identifier for this provision row. */ + id: string; + /** The database to provision this entity type in. Required. */ + databaseId?: string | null; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name?: string | null; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix?: string | null; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string | null; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string | null; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string | null; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean | null; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean | null; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean | null; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean | null; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean | null; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean | null; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: Record | null; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: Record | null; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: Record | null; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: Record | null; + agents?: Record | null; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean | null; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: Record | null; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number | null; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string | null; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string | null; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[] | null; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string | null; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string | null; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string | null; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string | null; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string | null; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outRequirementsTableId?: string | null; + outConfigRequirementsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: 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 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 IdentityProvidersModuleRelations {} +export interface ConnectedAccountsModuleRelations {} +export interface EmailsModuleRelations {} +export interface PhoneNumbersModuleRelations {} +export interface RateLimitsModuleRelations {} +export interface UsersModuleRelations {} +export interface WebauthnCredentialsModuleRelations {} +export interface CryptoAddressesModuleRelations {} +export interface DenormalizedTableFieldRelations {} +export interface RlsModuleRelations {} +export interface BlueprintRelations { + template?: BlueprintTemplate | null; + blueprintConstructions?: ConnectionResult; +} +export interface BlueprintTemplateRelations { + forkedFrom?: BlueprintTemplate | null; + blueprintTemplatesByForkedFromId?: ConnectionResult; + blueprintsByTemplateId?: ConnectionResult; +} +export interface BlueprintConstructionRelations { + blueprint?: Blueprint | null; +} +export interface CryptoAuthModuleRelations {} +export interface RateLimitMetersModuleRelations {} +export interface SessionsModuleRelations {} +export interface MerkleStoreModuleRelations { + graphModules?: ConnectionResult; +} +export interface GraphModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} +export interface SecureTableProvisionRelations {} +export interface ConfigSecretsModuleRelations {} +export interface InvitesModuleRelations {} +export interface DatabaseProvisionModuleRelations {} +export interface RealtimeModuleRelations {} +export interface WebauthnAuthModuleRelations {} +export interface NamespaceModuleRelations {} +export interface ComputeLogModuleRelations {} +export interface InferenceLogModuleRelations {} +export interface StorageLogModuleRelations {} +export interface TransferLogModuleRelations {} +export interface DbUsageModuleRelations {} +export interface NotificationsModuleRelations {} +export interface PlansModuleRelations {} +export interface HierarchyModuleRelations {} +export interface BillingModuleRelations {} +export interface BillingProviderModuleRelations {} +export interface ProfilesModuleRelations {} +export interface PermissionsModuleRelations {} +export interface RelationProvisionRelations {} +export interface FunctionModuleRelations {} +export interface UserAuthModuleRelations {} +export interface AgentModuleRelations {} +export interface LimitsModuleRelations {} +export interface MembershipsModuleRelations {} +export interface StorageModuleRelations {} +export interface EventsModuleRelations {} +export interface EntityTypeProvisionRelations {} +// ============ 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 UserCredentialsModuleWithRelations = UserCredentialsModule & + UserCredentialsModuleRelations; +export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; +export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & + ConnectedAccountsModuleRelations; +export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; +export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; +export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; +export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; +export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & + WebauthnCredentialsModuleRelations; +export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & + CryptoAddressesModuleRelations; +export type DenormalizedTableFieldWithRelations = DenormalizedTableField & + DenormalizedTableFieldRelations; +export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type BlueprintWithRelations = Blueprint & BlueprintRelations; +export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; +export type BlueprintConstructionWithRelations = BlueprintConstruction & + BlueprintConstructionRelations; +export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; +export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & + RateLimitMetersModuleRelations; +export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; +export type SecureTableProvisionWithRelations = SecureTableProvision & + SecureTableProvisionRelations; +export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & + DatabaseProvisionModuleRelations; +export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; +export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; +export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; +export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; +export type BillingProviderModuleWithRelations = BillingProviderModule & + BillingProviderModuleRelations; +export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; +export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; +export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; +export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; +export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; +export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; +export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; +// ============ Entity Select Types ============ +export type DefaultIdsModuleSelect = { + id?: boolean; + databaseId?: boolean; +}; +export type MembershipTypesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; +export type UserStateModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; +}; +export type SessionSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + 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; + schemaId?: boolean; + userDevicesTableId?: boolean; + deviceSettingsTableId?: boolean; + userDevicesTable?: boolean; + deviceSettingsTable?: boolean; +}; +export type I18NModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + settingsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type UserCredentialsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type UserSettingsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; +}; +export type ConfigSecretsUserModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + configDefinitionsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type IdentityProvidersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type ConnectedAccountsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EmailsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PhoneNumbersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type RateLimitsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + rateLimitSettingsTableId?: boolean; + ipRateLimitsTableId?: boolean; + rateLimitsTableId?: boolean; + rateLimitSettingsTable?: boolean; + ipRateLimitsTable?: boolean; + rateLimitsTable?: boolean; +}; +export type UsersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + typeTableId?: boolean; + typeTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type WebauthnCredentialsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type CryptoAddressesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + cryptoNetwork?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DenormalizedTableFieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + setIds?: boolean; + refTableId?: boolean; + refFieldId?: boolean; + refIds?: boolean; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: boolean; + funcOrder?: boolean; +}; +export type RlsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + sessionCredentialsTableId?: boolean; + sessionsTableId?: boolean; + usersTableId?: boolean; + authenticate?: boolean; + authenticateStrict?: boolean; + currentRole?: boolean; + currentRoleId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type BlueprintSelect = { + id?: boolean; + ownerId?: boolean; + databaseId?: boolean; + name?: boolean; + displayName?: boolean; + description?: boolean; + definition?: boolean; + templateId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + template?: { + select: BlueprintTemplateSelect; + }; + blueprintConstructions?: { + select: BlueprintConstructionSelect; + first?: number; + filter?: BlueprintConstructionFilter; + orderBy?: BlueprintConstructionOrderBy[]; + }; +}; +export type BlueprintTemplateSelect = { + id?: boolean; + name?: boolean; + version?: boolean; + displayName?: boolean; + description?: boolean; + ownerId?: boolean; + visibility?: boolean; + categories?: boolean; + tags?: boolean; + definition?: boolean; + definitionSchemaVersion?: boolean; + source?: boolean; + complexity?: boolean; + copyCount?: boolean; + forkCount?: boolean; + forkedFromId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + forkedFrom?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplatesByForkedFromId?: { + select: BlueprintTemplateSelect; + first?: number; + filter?: BlueprintTemplateFilter; + orderBy?: BlueprintTemplateOrderBy[]; + }; + blueprintsByTemplateId?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; + }; +}; +export type BlueprintConstructionSelect = { + id?: boolean; + blueprintId?: boolean; + databaseId?: boolean; + schemaId?: boolean; + status?: boolean; + errorDetails?: boolean; + tableMap?: boolean; + constructedDefinition?: boolean; + constructedAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + blueprint?: { + select: BlueprintSelect; + }; +}; +export type CryptoAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + addressesTableId?: boolean; + userField?: boolean; + cryptoNetwork?: boolean; + signInRequestChallenge?: boolean; + signInRecordFailure?: boolean; + signUpWithKey?: boolean; + signInWithChallenge?: boolean; +}; +export type RateLimitMetersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + rateLimitStateTableId?: boolean; + rateLimitStateTableName?: boolean; + rateLimitOverridesTableId?: boolean; + rateLimitOverridesTableName?: boolean; + rateWindowLimitsTableId?: boolean; + rateWindowLimitsTableName?: boolean; + checkRateLimitFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type SessionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + authSettingsTableId?: boolean; + usersTableId?: boolean; + sessionsDefaultExpiration?: boolean; + sessionsTable?: boolean; + sessionCredentialsTable?: boolean; + authSettingsTable?: boolean; +}; +export type MerkleStoreModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + objectTableId?: boolean; + storeTableId?: boolean; + commitTableId?: boolean; + refTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; + databaseOwned?: boolean; + createdAt?: boolean; + graphModules?: { + select: GraphModuleSelect; + first?: number; + filter?: GraphModuleFilter; + orderBy?: GraphModuleOrderBy[]; + }; +}; +export type GraphModuleSelect = { + id?: boolean; + databaseId?: boolean; + publicSchemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + scope?: boolean; + prefix?: boolean; + merkleStoreModuleId?: boolean; + graphsTableId?: boolean; + executionsTableId?: boolean; + outputsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; + databaseOwned?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + createdAt?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; +}; +export type SecureTableProvisionSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + nodes?: boolean; + useRls?: boolean; + fields?: boolean; + grants?: boolean; + policies?: boolean; + outFields?: boolean; +}; +export type ConfigSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + configDefinitionsTableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + hasConfig?: boolean; +}; +export type InvitesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DatabaseProvisionModuleSelect = { + 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; +}; +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 WebauthnAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + usersTableId?: boolean; + credentialsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + sessionSecretsTableId?: boolean; + authSettingsTableId?: boolean; + rpId?: boolean; + rpName?: boolean; + originAllowlist?: boolean; + attestationType?: boolean; + requireUserVerification?: boolean; + residentKey?: boolean; + challengeExpiry?: boolean; +}; +export type NamespaceModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + namespacesTableId?: boolean; + namespaceEventsTableId?: boolean; + namespacesTableName?: boolean; + namespaceEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type ComputeLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type StorageLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type TransferLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type NotificationsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + notificationsTableId?: boolean; + readStateTableId?: boolean; + preferencesTableId?: boolean; + channelsTableId?: boolean; + deliveryLogTableId?: boolean; + ownerTableId?: boolean; + userSettingsTableId?: boolean; + organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PlansModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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; +}; +export type HierarchyModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + chartEdgesTableId?: boolean; + chartEdgesTableName?: boolean; + hierarchySprtTableId?: boolean; + hierarchySprtTableName?: boolean; + chartEdgeGrantsTableId?: boolean; + chartEdgeGrantsTableName?: boolean; + entityTableId?: boolean; + usersTableId?: boolean; + scope?: boolean; + prefix?: boolean; + privateSchemaName?: boolean; + sprtTableName?: boolean; + rebuildHierarchyFunction?: boolean; + getSubordinatesFunction?: boolean; + getManagersFunction?: boolean; + isManagerOfFunction?: boolean; + createdAt?: boolean; +}; +export type BillingModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + meterDefaultsTableId?: boolean; + meterDefaultsTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type BillingProviderModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + provider?: boolean; + productsTableId?: boolean; + pricesTableId?: boolean; + subscriptionsTableId?: boolean; + billingCustomersTableId?: boolean; + billingCustomersTableName?: boolean; + billingProductsTableId?: boolean; + billingProductsTableName?: boolean; + billingPricesTableId?: boolean; + billingPricesTableName?: boolean; + billingSubscriptionsTableId?: boolean; + billingSubscriptionsTableName?: boolean; + billingWebhookEventsTableId?: boolean; + billingWebhookEventsTableName?: boolean; + processBillingEventFunction?: boolean; + prefix?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type ProfilesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + profilePermissionsTableId?: boolean; + profilePermissionsTableName?: boolean; + profileGrantsTableId?: boolean; + profileGrantsTableName?: boolean; + profileDefinitionGrantsTableId?: boolean; + profileDefinitionGrantsTableName?: boolean; + profileTemplatesTableId?: boolean; + profileTemplatesTableName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + permissionsTableId?: boolean; + membershipsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type PermissionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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 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 FunctionModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + definitionsTableId?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + secretDefinitionsTableId?: boolean; + requirementsTableId?: boolean; + configDefinitionsTableId?: boolean; + configRequirementsTableId?: boolean; + definitionsTableName?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; + secretDefinitionsTableName?: boolean; + requirementsTableName?: boolean; + configRequirementsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type UserAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + encryptedTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + auditsTableId?: boolean; + auditsTableName?: boolean; + signInFunction?: boolean; + signUpFunction?: boolean; + signOutFunction?: boolean; + setPasswordFunction?: boolean; + resetPasswordFunction?: boolean; + forgotPasswordFunction?: boolean; + sendVerificationEmailFunction?: boolean; + verifyEmailFunction?: boolean; + verifyPasswordFunction?: boolean; + checkPasswordFunction?: boolean; + sendAccountDeletionEmailFunction?: boolean; + deleteAccountFunction?: boolean; + signInCrossOriginFunction?: boolean; + requestCrossOriginTokenFunction?: boolean; + extendTokenExpires?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type AgentModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + threadTableId?: boolean; + messageTableId?: boolean; + taskTableId?: boolean; + promptsTableId?: boolean; + knowledgeTableId?: boolean; + planTableId?: boolean; + skillTableId?: boolean; + threadTableName?: boolean; + messageTableName?: boolean; + taskTableName?: boolean; + promptsTableName?: boolean; + knowledgeTableName?: boolean; + planTableName?: boolean; + skillTableName?: boolean; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + knowledgeConfig?: boolean; + skillsConfig?: boolean; + knowledgePolicies?: boolean; + provisions?: boolean; +}; +export type LimitsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + limitIncrementFunction?: boolean; + limitDecrementFunction?: boolean; + limitIncrementTrigger?: boolean; + limitDecrementTrigger?: boolean; + limitUpdateTrigger?: boolean; + limitCheckFunction?: boolean; + limitCreditsTableId?: boolean; + eventsTableId?: boolean; + creditCodesTableId?: boolean; + creditCodeItemsTableId?: boolean; + creditRedemptionsTableId?: boolean; + aggregateTableId?: boolean; + limitCapsTableId?: boolean; + limitCapsDefaultsTableId?: boolean; + capCheckTrigger?: boolean; + resolveCapFunction?: boolean; + limitWarningsTableId?: boolean; + limitWarningStateTableId?: boolean; + limitCheckSoftFunction?: boolean; + limitAggregateCheckSoftFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type MembershipsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: 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; + apiName?: boolean; + privateApiName?: boolean; +}; +export type StorageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + bucketsTableId?: boolean; + filesTableId?: boolean; + bucketsTableName?: boolean; + filesTableName?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + policies?: boolean; + provisions?: boolean; + entityTableId?: boolean; + endpoint?: boolean; + publicUrlPrefix?: boolean; + provider?: boolean; + allowedOrigins?: boolean; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: boolean; + uploadUrlExpirySeconds?: boolean; + downloadUrlExpirySeconds?: boolean; + defaultMaxFileSize?: boolean; + maxFilenameLength?: boolean; + cacheTtlSeconds?: boolean; + maxBulkFiles?: boolean; + maxBulkTotalSize?: boolean; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: boolean; + fileEventsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EventsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + eventsTableId?: boolean; + eventsTableName?: boolean; + eventAggregatesTableId?: boolean; + eventAggregatesTableName?: boolean; + eventTypesTableId?: boolean; + eventTypesTableName?: boolean; + levelsTableId?: boolean; + levelsTableName?: boolean; + levelRequirementsTableId?: boolean; + levelRequirementsTableName?: boolean; + levelGrantsTableId?: boolean; + levelGrantsTableName?: boolean; + achievementRewardsTableId?: boolean; + achievementRewardsTableName?: boolean; + recordEvent?: boolean; + removeEvent?: boolean; + tgEvent?: boolean; + tgEventToggle?: boolean; + tgEventToggleBool?: boolean; + tgEventBool?: boolean; + upsertAggregate?: boolean; + tgUpdateAggregates?: boolean; + pruneEvents?: boolean; + stepsRequired?: boolean; + levelAchieved?: boolean; + tgCheckAchievements?: boolean; + grantAchievement?: boolean; + tgAchievementReward?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + databaseOwned?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type EntityTypeProvisionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + prefix?: boolean; + description?: boolean; + parentEntity?: boolean; + tableName?: boolean; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: boolean; + namespaces?: boolean; + functions?: boolean; + graphs?: boolean; + agents?: boolean; + skipEntityPolicies?: boolean; + tableProvision?: boolean; + outMembershipType?: boolean; + outEntityTableId?: boolean; + outEntityTableName?: boolean; + outInstalledModules?: boolean; + outStorageModuleId?: boolean; + outBucketsTableId?: boolean; + outFilesTableId?: boolean; + outPathSharesTableId?: boolean; + outInvitesModuleId?: boolean; + outNamespaceModuleId?: boolean; + outNamespacesTableId?: boolean; + outNamespaceEventsTableId?: boolean; + outFunctionModuleId?: boolean; + outDefinitionsTableId?: boolean; + outInvocationsTableId?: boolean; + outExecutionLogsTableId?: boolean; + outSecretDefinitionsTableId?: boolean; + outRequirementsTableId?: boolean; + outConfigRequirementsTableId?: boolean; + outGraphModuleId?: boolean; + outGraphsTableId?: boolean; + outAgentModuleId?: boolean; +}; +// ============ Table Filter Types ============ +export interface DefaultIdsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DefaultIdsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultIdsModuleFilter[]; + /** Negates the expression. */ + not?: DefaultIdsModuleFilter; +} +export interface MembershipTypesModuleFilter { + /** 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?: MembershipTypesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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; + /** 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; +} +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 { + /** 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 `userDevicesTableId` field. */ + userDevicesTableId?: UUIDFilter; + /** Filter by the object’s `deviceSettingsTableId` field. */ + deviceSettingsTableId?: UUIDFilter; + /** Filter by the object’s `userDevicesTable` field. */ + userDevicesTable?: StringFilter; + /** Filter by the object’s `deviceSettingsTable` field. */ + deviceSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DevicesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DevicesModuleFilter[]; + /** Negates the expression. */ + not?: DevicesModuleFilter; +} +export interface I18NModuleFilter { + /** 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 `settingsTableId` field. */ + settingsTableId?: 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?: I18NModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: I18NModuleFilter[]; + /** Negates the expression. */ + not?: I18NModuleFilter; +} +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 `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?: UserCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserCredentialsModuleFilter[]; + /** Negates the expression. */ + not?: UserCredentialsModuleFilter; +} +export interface UserSettingsModuleFilter { + /** 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 `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[]; + /** Checks for any expressions in this list. */ + or?: UserSettingsModuleFilter[]; + /** Negates the expression. */ + not?: UserSettingsModuleFilter; +} +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 `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[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} +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 `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?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} +export interface ConnectedAccountsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConnectedAccountsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConnectedAccountsModuleFilter[]; + /** Negates the expression. */ + not?: ConnectedAccountsModuleFilter; +} +export interface EmailsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EmailsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailsModuleFilter[]; + /** Negates the expression. */ + not?: EmailsModuleFilter; +} +export interface PhoneNumbersModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PhoneNumbersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PhoneNumbersModuleFilter[]; + /** Negates the expression. */ + not?: PhoneNumbersModuleFilter; +} +export interface RateLimitsModuleFilter { + /** 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 `rateLimitSettingsTableId` field. */ + rateLimitSettingsTableId?: UUIDFilter; + /** Filter by the object’s `ipRateLimitsTableId` field. */ + ipRateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitsTableId` field. */ + rateLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitSettingsTable` field. */ + rateLimitSettingsTable?: StringFilter; + /** Filter by the object’s `ipRateLimitsTable` field. */ + ipRateLimitsTable?: StringFilter; + /** Filter by the object’s `rateLimitsTable` field. */ + rateLimitsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitsModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitsModuleFilter; +} +export interface UsersModuleFilter { + /** 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 `typeTableId` field. */ + typeTableId?: UUIDFilter; + /** Filter by the object’s `typeTableName` field. */ + typeTableName?: 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?: UsersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UsersModuleFilter[]; + /** Negates the expression. */ + not?: UsersModuleFilter; +} +export interface WebauthnCredentialsModuleFilter { + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnCredentialsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnCredentialsModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnCredentialsModuleFilter; +} +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; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAddressesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressesModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAddressesModuleFilter; +} +export interface DenormalizedTableFieldFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `setIds` field. */ + setIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `refIds` field. */ + refIds?: UUIDListFilter; + /** Filter by the object’s `useUpdates` field. */ + useUpdates?: BooleanFilter; + /** Filter by the object’s `updateDefaults` field. */ + updateDefaults?: BooleanFilter; + /** Filter by the object’s `funcName` field. */ + funcName?: StringFilter; + /** Filter by the object’s `funcOrder` field. */ + funcOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: DenormalizedTableFieldFilter[]; + /** Checks for any expressions in this list. */ + or?: DenormalizedTableFieldFilter[]; + /** Negates the expression. */ + not?: DenormalizedTableFieldFilter; +} +export interface 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[]; + /** Negates the expression. */ + not?: RlsModuleFilter; +} +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; + /** Filter by the object’s `blueprintConstructions` relation. */ + blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; + /** `blueprintConstructions` exist. */ + blueprintConstructionsExist?: boolean; +} +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +export interface CryptoAuthModuleFilter { + /** 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 `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `addressesTableId` field. */ + addressesTableId?: UUIDFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `signInRequestChallenge` field. */ + signInRequestChallenge?: StringFilter; + /** Filter by the object’s `signInRecordFailure` field. */ + signInRecordFailure?: StringFilter; + /** Filter by the object’s `signUpWithKey` field. */ + signUpWithKey?: StringFilter; + /** Filter by the object’s `signInWithChallenge` field. */ + signInWithChallenge?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAuthModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAuthModuleFilter; +} +export interface RateLimitMetersModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; +} +export interface SessionsModuleFilter { + /** 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 `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsDefaultExpiration` field. */ + sessionsDefaultExpiration?: IntervalFilter; + /** Filter by the object’s `sessionsTable` field. */ + sessionsTable?: StringFilter; + /** Filter by the object’s `sessionCredentialsTable` field. */ + sessionCredentialsTable?: StringFilter; + /** Filter by the object’s `authSettingsTable` field. */ + authSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SessionsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SessionsModuleFilter[]; + /** Negates the expression. */ + not?: SessionsModuleFilter; +} +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 `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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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; +} +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 `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 `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: GraphModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: GraphModuleFilter[]; + /** Negates the expression. */ + not?: GraphModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} +export interface SecureTableProvisionFilter { + /** 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 `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; + /** Checks for all expressions in this list. */ + and?: SecureTableProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: SecureTableProvisionFilter[]; + /** Negates the expression. */ + not?: SecureTableProvisionFilter; +} +export interface ConfigSecretsModuleFilter { + /** 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 `configDefinitionsTableId` field. */ + configDefinitionsTableId?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `hasConfig` field. */ + hasConfig?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `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?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +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 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; +} +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[]; + /** Checks for any expressions in this list. */ + or?: WebauthnAuthModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnAuthModuleFilter; +} +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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +export interface ComputeLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; +} +export interface InferenceLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; +} +export interface StorageLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; +} +export interface TransferLogModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; +} +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** 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 NotificationsModuleFilter { + /** 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 `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 `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 `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; +} +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 `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; +} +export interface HierarchyModuleFilter { + /** 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 `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 `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; +} +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: 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?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; +} +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; +} +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 `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 `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `profilePermissionsTableId` field. */ + profilePermissionsTableId?: UUIDFilter; + /** Filter by the object’s `profilePermissionsTableName` field. */ + profilePermissionsTableName?: StringFilter; + /** Filter by the object’s `profileGrantsTableId` field. */ + profileGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileGrantsTableName` field. */ + profileGrantsTableName?: StringFilter; + /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ + profileDefinitionGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ + profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: 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 `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: 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?: ProfilesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ProfilesModuleFilter[]; + /** Negates the expression. */ + not?: ProfilesModuleFilter; +} +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 `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 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 FunctionModuleFilter { + /** 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 `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `requirementsTableId` field. */ + requirementsTableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `configRequirementsTableId` field. */ + configRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `requirementsTableName` field. */ + requirementsTableName?: StringFilter; + /** Filter by the object’s `configRequirementsTableName` field. */ + configRequirementsTableName?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface UserAuthModuleFilter { + /** 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 `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `encryptedTableId` field. */ + encryptedTableId?: 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 `auditsTableName` field. */ + auditsTableName?: StringFilter; + /** Filter by the object’s `signInFunction` field. */ + signInFunction?: StringFilter; + /** Filter by the object’s `signUpFunction` field. */ + signUpFunction?: StringFilter; + /** Filter by the object’s `signOutFunction` field. */ + signOutFunction?: StringFilter; + /** Filter by the object’s `setPasswordFunction` field. */ + setPasswordFunction?: StringFilter; + /** Filter by the object’s `resetPasswordFunction` field. */ + resetPasswordFunction?: StringFilter; + /** Filter by the object’s `forgotPasswordFunction` field. */ + forgotPasswordFunction?: StringFilter; + /** Filter by the object’s `sendVerificationEmailFunction` field. */ + sendVerificationEmailFunction?: StringFilter; + /** Filter by the object’s `verifyEmailFunction` field. */ + verifyEmailFunction?: StringFilter; + /** Filter by the object’s `verifyPasswordFunction` field. */ + verifyPasswordFunction?: StringFilter; + /** Filter by the object’s `checkPasswordFunction` field. */ + checkPasswordFunction?: StringFilter; + /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ + sendAccountDeletionEmailFunction?: StringFilter; + /** Filter by the object’s `deleteAccountFunction` field. */ + deleteAccountFunction?: StringFilter; + /** Filter by the object’s `signInCrossOriginFunction` field. */ + signInCrossOriginFunction?: StringFilter; + /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ + requestCrossOriginTokenFunction?: StringFilter; + /** Filter by the object’s `extendTokenExpires` field. */ + extendTokenExpires?: 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?: UserAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserAuthModuleFilter[]; + /** Negates the expression. */ + not?: UserAuthModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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 `knowledgeTableId` field. */ + knowledgeTableId?: UUIDFilter; + /** Filter by the object’s `planTableId` field. */ + planTableId?: UUIDFilter; + /** Filter by the object’s `skillTableId` field. */ + skillTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `promptsTableName` field. */ + promptsTableName?: StringFilter; + /** Filter by the object’s `knowledgeTableName` field. */ + knowledgeTableName?: StringFilter; + /** Filter by the object’s `planTableName` field. */ + planTableName?: StringFilter; + /** Filter by the object’s `skillTableName` field. */ + skillTableName?: StringFilter; + /** Filter by the object’s `hasKnowledge` field. */ + hasKnowledge?: BooleanFilter; + /** Filter by the object’s `hasPlans` field. */ + hasPlans?: BooleanFilter; + /** Filter by the object’s `hasSkills` field. */ + hasSkills?: BooleanFilter; + /** 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `knowledgeConfig` field. */ + knowledgeConfig?: JSONFilter; + /** Filter by the object’s `skillsConfig` field. */ + skillsConfig?: JSONFilter; + /** Filter by the object’s `knowledgePolicies` field. */ + knowledgePolicies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentModuleFilter[]; + /** Negates the expression. */ + not?: AgentModuleFilter; +} +export interface LimitsModuleFilter { + /** 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 `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 `limitIncrementFunction` field. */ + limitIncrementFunction?: StringFilter; + /** Filter by the object’s `limitDecrementFunction` field. */ + limitDecrementFunction?: StringFilter; + /** Filter by the object’s `limitIncrementTrigger` field. */ + limitIncrementTrigger?: StringFilter; + /** Filter by the object’s `limitDecrementTrigger` field. */ + limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitUpdateTrigger` field. */ + limitUpdateTrigger?: StringFilter; + /** Filter by the object’s `limitCheckFunction` field. */ + limitCheckFunction?: StringFilter; + /** Filter by the object’s `limitCreditsTableId` field. */ + limitCreditsTableId?: UUIDFilter; + /** Filter by the object’s `eventsTableId` field. */ + eventsTableId?: UUIDFilter; + /** Filter by the object’s `creditCodesTableId` field. */ + creditCodesTableId?: UUIDFilter; + /** Filter by the object’s `creditCodeItemsTableId` field. */ + creditCodeItemsTableId?: UUIDFilter; + /** Filter by the object’s `creditRedemptionsTableId` field. */ + creditRedemptionsTableId?: UUIDFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsTableId` field. */ + limitCapsTableId?: UUIDFilter; + /** Filter by the object’s `limitCapsDefaultsTableId` field. */ + limitCapsDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `capCheckTrigger` field. */ + capCheckTrigger?: 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; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: LimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 `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 `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 StorageModuleFilter { + /** 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 `bucketsTableId` field. */ + bucketsTableId?: UUIDFilter; + /** Filter by the object’s `filesTableId` field. */ + filesTableId?: UUIDFilter; + /** Filter by the object’s `bucketsTableName` field. */ + bucketsTableName?: StringFilter; + /** Filter by the object’s `filesTableName` field. */ + filesTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `endpoint` field. */ + endpoint?: StringFilter; + /** Filter by the object’s `publicUrlPrefix` field. */ + publicUrlPrefix?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `allowedOrigins` field. */ + allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; + /** Filter by the object’s `hasPathShares` field. */ + hasPathShares?: BooleanFilter; + /** Filter by the object’s `pathSharesTableId` field. */ + pathSharesTableId?: UUIDFilter; + /** Filter by the object’s `uploadUrlExpirySeconds` field. */ + uploadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `downloadUrlExpirySeconds` field. */ + downloadUrlExpirySeconds?: IntFilter; + /** Filter by the object’s `defaultMaxFileSize` field. */ + defaultMaxFileSize?: BigIntFilter; + /** Filter by the object’s `maxFilenameLength` field. */ + maxFilenameLength?: IntFilter; + /** Filter by the object’s `cacheTtlSeconds` field. */ + cacheTtlSeconds?: IntFilter; + /** Filter by the object’s `maxBulkFiles` field. */ + maxBulkFiles?: IntFilter; + /** Filter by the object’s `maxBulkTotalSize` field. */ + maxBulkTotalSize?: BigIntFilter; + /** Filter by the object’s `hasVersioning` field. */ + hasVersioning?: BooleanFilter; + /** Filter by the object’s `hasContentHash` field. */ + hasContentHash?: BooleanFilter; + /** Filter by the object’s `hasCustomKeys` field. */ + hasCustomKeys?: BooleanFilter; + /** Filter by the object’s `hasAuditLog` field. */ + hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; + /** Filter by the object’s `fileEventsTableId` field. */ + fileEventsTableId?: 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?: StorageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageModuleFilter[]; + /** Negates the expression. */ + not?: StorageModuleFilter; +} +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 `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** 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; + /** Filter by the object’s `removeEvent` field. */ + removeEvent?: StringFilter; + /** Filter by the object’s `tgEvent` field. */ + tgEvent?: StringFilter; + /** Filter by the object’s `tgEventToggle` field. */ + tgEventToggle?: StringFilter; + /** Filter by the object’s `tgEventToggleBool` field. */ + tgEventToggleBool?: StringFilter; + /** Filter by the object’s `tgEventBool` field. */ + tgEventBool?: StringFilter; + /** Filter by the object’s `upsertAggregate` field. */ + 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. */ + levelAchieved?: StringFilter; + /** Filter by the object’s `tgCheckAchievements` field. */ + tgCheckAchievements?: StringFilter; + /** Filter by the object’s `grantAchievement` field. */ + grantAchievement?: StringFilter; + /** Filter by the object’s `tgAchievementReward` field. */ + tgAchievementReward?: 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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EventsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EventsModuleFilter[]; + /** Negates the expression. */ + not?: EventsModuleFilter; +} +export interface EntityTypeProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + 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 `outRequirementsTableId` field. */ + outRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outConfigRequirementsTableId` field. */ + outConfigRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} +// ============ OrderBy Types ============ +export type DefaultIdsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type MembershipTypesModuleOrderBy = + | '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 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' + | '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'; +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' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +export type I18NModuleOrderBy = + | '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' + | 'SETTINGS_TABLE_ID_ASC' + | 'SETTINGS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type UserCredentialsModuleOrderBy = + | '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 UserSettingsModuleOrderBy = + | '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' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC'; +export type ConfigSecretsUserModuleOrderBy = + | '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' + | '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 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' + | '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 ConnectedAccountsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 EmailsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 PhoneNumbersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 RateLimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' + | 'IP_RATE_LIMITS_TABLE_ID_ASC' + | 'IP_RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMITS_TABLE_ID_ASC' + | 'RATE_LIMITS_TABLE_ID_DESC' + | 'RATE_LIMIT_SETTINGS_TABLE_ASC' + | 'RATE_LIMIT_SETTINGS_TABLE_DESC' + | 'IP_RATE_LIMITS_TABLE_ASC' + | 'IP_RATE_LIMITS_TABLE_DESC' + | 'RATE_LIMITS_TABLE_ASC' + | 'RATE_LIMITS_TABLE_DESC'; +export type UsersModuleOrderBy = + | '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' + | 'TYPE_TABLE_ID_ASC' + | 'TYPE_TABLE_ID_DESC' + | 'TYPE_TABLE_NAME_ASC' + | 'TYPE_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type WebauthnCredentialsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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 CryptoAddressesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type DenormalizedTableFieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'SET_IDS_ASC' + | 'SET_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'REF_IDS_ASC' + | 'REF_IDS_DESC' + | 'USE_UPDATES_ASC' + | 'USE_UPDATES_DESC' + | 'UPDATE_DEFAULTS_ASC' + | 'UPDATE_DEFAULTS_DESC' + | 'FUNC_NAME_ASC' + | 'FUNC_NAME_DESC' + | 'FUNC_ORDER_ASC' + | 'FUNC_ORDER_DESC'; +export type RlsModuleOrderBy = + | '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' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'AUTHENTICATE_ASC' + | 'AUTHENTICATE_DESC' + | 'AUTHENTICATE_STRICT_ASC' + | 'AUTHENTICATE_STRICT_DESC' + | 'CURRENT_ROLE_ASC' + | 'CURRENT_ROLE_DESC' + | 'CURRENT_ROLE_ID_ASC' + | 'CURRENT_ROLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type BlueprintOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type BlueprintTemplateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'CATEGORIES_ASC' + | 'CATEGORIES_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'DEFINITION_SCHEMA_VERSION_ASC' + | 'DEFINITION_SCHEMA_VERSION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'COMPLEXITY_ASC' + | 'COMPLEXITY_DESC' + | 'COPY_COUNT_ASC' + | 'COPY_COUNT_DESC' + | 'FORK_COUNT_ASC' + | 'FORK_COUNT_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC' + | 'TABLE_HASHES_ASC' + | 'TABLE_HASHES_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type BlueprintConstructionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'BLUEPRINT_ID_ASC' + | 'BLUEPRINT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_DETAILS_ASC' + | 'ERROR_DETAILS_DESC' + | 'TABLE_MAP_ASC' + | 'TABLE_MAP_DESC' + | 'CONSTRUCTED_DEFINITION_ASC' + | 'CONSTRUCTED_DEFINITION_DESC' + | 'CONSTRUCTED_AT_ASC' + | 'CONSTRUCTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAuthModuleOrderBy = + | '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' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'ADDRESSES_TABLE_ID_ASC' + | 'ADDRESSES_TABLE_ID_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_DESC' + | 'SIGN_IN_RECORD_FAILURE_ASC' + | 'SIGN_IN_RECORD_FAILURE_DESC' + | 'SIGN_UP_WITH_KEY_ASC' + | 'SIGN_UP_WITH_KEY_DESC' + | 'SIGN_IN_WITH_CHALLENGE_ASC' + | 'SIGN_IN_WITH_CHALLENGE_DESC'; +export type RateLimitMetersModuleOrderBy = + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type SessionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUTH_SETTINGS_TABLE_ID_ASC' + | 'AUTH_SETTINGS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_DEFAULT_EXPIRATION_ASC' + | 'SESSIONS_DEFAULT_EXPIRATION_DESC' + | 'SESSIONS_TABLE_ASC' + | 'SESSIONS_TABLE_DESC' + | 'SESSION_CREDENTIALS_TABLE_ASC' + | 'SESSION_CREDENTIALS_TABLE_DESC' + | 'AUTH_SETTINGS_TABLE_ASC' + | 'AUTH_SETTINGS_TABLE_DESC'; +export type MerkleStoreModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +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' + | 'EXECUTIONS_TABLE_ID_ASC' + | 'EXECUTIONS_TABLE_ID_DESC' + | 'OUTPUTS_TABLE_ID_ASC' + | 'OUTPUTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type SecureTableProvisionOrderBy = + | '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' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; +export type ConfigSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | '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'; +export type InvitesModuleOrderBy = + | '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' + | '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'; +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'; +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 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'; +export type NamespaceModuleOrderBy = + | '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' + | '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' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type StorageLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | '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' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type NotificationsModuleOrderBy = + | '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' + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type PlansModuleOrderBy = + | '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' + | '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'; +export type HierarchyModuleOrderBy = + | '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' + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type BillingModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | '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' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +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'; +export type ProfilesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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'; +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' + | '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 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 FunctionModuleOrderBy = + | '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' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'REQUIREMENTS_TABLE_ID_ASC' + | 'REQUIREMENTS_TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'REQUIREMENTS_TABLE_NAME_ASC' + | 'REQUIREMENTS_TABLE_NAME_DESC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' + | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +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'; +export type AgentModuleOrderBy = + | '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' + | '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' + | 'KNOWLEDGE_TABLE_ID_ASC' + | 'KNOWLEDGE_TABLE_ID_DESC' + | 'PLAN_TABLE_ID_ASC' + | 'PLAN_TABLE_ID_DESC' + | 'SKILL_TABLE_ID_ASC' + | 'SKILL_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' + | 'KNOWLEDGE_TABLE_NAME_ASC' + | 'KNOWLEDGE_TABLE_NAME_DESC' + | 'PLAN_TABLE_NAME_ASC' + | 'PLAN_TABLE_NAME_DESC' + | 'SKILL_TABLE_NAME_ASC' + | 'SKILL_TABLE_NAME_DESC' + | 'HAS_KNOWLEDGE_ASC' + | 'HAS_KNOWLEDGE_DESC' + | 'HAS_PLANS_ASC' + | 'HAS_PLANS_DESC' + | 'HAS_SKILLS_ASC' + | 'HAS_SKILLS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'KNOWLEDGE_CONFIG_ASC' + | 'KNOWLEDGE_CONFIG_DESC' + | 'SKILLS_CONFIG_ASC' + | 'SKILLS_CONFIG_DESC' + | 'KNOWLEDGE_POLICIES_ASC' + | 'KNOWLEDGE_POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type LimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_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' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'API_NAME_ASC' + | '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' + | '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' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type StorageModuleOrderBy = + | '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' + | 'BUCKETS_TABLE_ID_ASC' + | 'BUCKETS_TABLE_ID_DESC' + | 'FILES_TABLE_ID_ASC' + | 'FILES_TABLE_ID_DESC' + | 'BUCKETS_TABLE_NAME_ASC' + | 'BUCKETS_TABLE_NAME_DESC' + | 'FILES_TABLE_NAME_ASC' + | 'FILES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENDPOINT_ASC' + | 'ENDPOINT_DESC' + | 'PUBLIC_URL_PREFIX_ASC' + | 'PUBLIC_URL_PREFIX_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' + | 'HAS_PATH_SHARES_ASC' + | 'HAS_PATH_SHARES_DESC' + | 'PATH_SHARES_TABLE_ID_ASC' + | 'PATH_SHARES_TABLE_ID_DESC' + | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' + | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DEFAULT_MAX_FILE_SIZE_ASC' + | 'DEFAULT_MAX_FILE_SIZE_DESC' + | 'MAX_FILENAME_LENGTH_ASC' + | 'MAX_FILENAME_LENGTH_DESC' + | 'CACHE_TTL_SECONDS_ASC' + | 'CACHE_TTL_SECONDS_DESC' + | 'MAX_BULK_FILES_ASC' + | 'MAX_BULK_FILES_DESC' + | 'MAX_BULK_TOTAL_SIZE_ASC' + | 'MAX_BULK_TOTAL_SIZE_DESC' + | 'HAS_VERSIONING_ASC' + | 'HAS_VERSIONING_DESC' + | 'HAS_CONTENT_HASH_ASC' + | 'HAS_CONTENT_HASH_DESC' + | 'HAS_CUSTOM_KEYS_ASC' + | 'HAS_CUSTOM_KEYS_DESC' + | 'HAS_AUDIT_LOG_ASC' + | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' + | 'FILE_EVENTS_TABLE_ID_ASC' + | 'FILE_EVENTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type EventsModuleOrderBy = + | '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' + | 'EVENTS_TABLE_ID_ASC' + | 'EVENTS_TABLE_ID_DESC' + | 'EVENTS_TABLE_NAME_ASC' + | 'EVENTS_TABLE_NAME_DESC' + | 'EVENT_AGGREGATES_TABLE_ID_ASC' + | 'EVENT_AGGREGATES_TABLE_ID_DESC' + | 'EVENT_AGGREGATES_TABLE_NAME_ASC' + | 'EVENT_AGGREGATES_TABLE_NAME_DESC' + | 'EVENT_TYPES_TABLE_ID_ASC' + | 'EVENT_TYPES_TABLE_ID_DESC' + | 'EVENT_TYPES_TABLE_NAME_ASC' + | 'EVENT_TYPES_TABLE_NAME_DESC' + | 'LEVELS_TABLE_ID_ASC' + | 'LEVELS_TABLE_ID_DESC' + | 'LEVELS_TABLE_NAME_ASC' + | 'LEVELS_TABLE_NAME_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' + | 'LEVEL_GRANTS_TABLE_ID_ASC' + | 'LEVEL_GRANTS_TABLE_ID_DESC' + | 'LEVEL_GRANTS_TABLE_NAME_ASC' + | 'LEVEL_GRANTS_TABLE_NAME_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' + | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' + | 'RECORD_EVENT_ASC' + | 'RECORD_EVENT_DESC' + | 'REMOVE_EVENT_ASC' + | 'REMOVE_EVENT_DESC' + | 'TG_EVENT_ASC' + | 'TG_EVENT_DESC' + | 'TG_EVENT_TOGGLE_ASC' + | 'TG_EVENT_TOGGLE_DESC' + | 'TG_EVENT_TOGGLE_BOOL_ASC' + | 'TG_EVENT_TOGGLE_BOOL_DESC' + | 'TG_EVENT_BOOL_ASC' + | 'TG_EVENT_BOOL_DESC' + | 'UPSERT_AGGREGATE_ASC' + | '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' + | 'LEVEL_ACHIEVED_DESC' + | 'TG_CHECK_ACHIEVEMENTS_ASC' + | 'TG_CHECK_ACHIEVEMENTS_DESC' + | 'GRANT_ACHIEVEMENT_ASC' + | 'GRANT_ACHIEVEMENT_DESC' + | 'TG_ACHIEVEMENT_REWARD_ASC' + | 'TG_ACHIEVEMENT_REWARD_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'DATABASE_OWNED_ASC' + | 'DATABASE_OWNED_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'; +export type EntityTypeProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | '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_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' + | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateDefaultIdsModuleInput { + clientMutationId?: string; + defaultIdsModule: { + databaseId: string; + }; +} +export interface DefaultIdsModulePatch { + databaseId?: string | null; +} +export interface UpdateDefaultIdsModuleInput { + clientMutationId?: string; + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; +} +export interface DeleteDefaultIdsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + membershipTypesModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface MembershipTypesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; +} +export interface DeleteMembershipTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface 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 { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + sessionsTableId?: string | null; +} +export interface UpdateSessionSecretsModuleInput { + clientMutationId?: string; + id: string; + sessionSecretsModulePatch: SessionSecretsModulePatch; +} +export interface DeleteSessionSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateI18NModuleInput { + clientMutationId?: string; + i18NModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface I18NModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + settingsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateI18NModuleInput { + clientMutationId?: string; + id: string; + i18NModulePatch: I18NModulePatch; +} +export interface DeleteI18NModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserCredentialsModuleInput { + clientMutationId?: string; + userCredentialsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface UserCredentialsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUserCredentialsModuleInput { + clientMutationId?: string; + id: string; + userCredentialsModulePatch: UserCredentialsModulePatch; +} +export interface DeleteUserCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserSettingsModuleInput { + clientMutationId?: string; + userSettingsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + }; +} +export interface UserSettingsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; +} +export interface UpdateUserSettingsModuleInput { + clientMutationId?: string; + id: string; + userSettingsModulePatch: UserSettingsModulePatch; +} +export interface DeleteUserSettingsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConfigSecretsUserModuleInput { + clientMutationId?: string; + configSecretsUserModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsUserModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + configDefinitionsTableId?: 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 CreateIdentityProvidersModuleInput { + clientMutationId?: string; + identityProvidersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountsModuleInput { + clientMutationId?: string; + connectedAccountsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConnectedAccountsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; +} +export interface DeleteConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailsModuleInput { + clientMutationId?: string; + emailsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface EmailsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateEmailsModuleInput { + clientMutationId?: string; + id: string; + emailsModulePatch: EmailsModulePatch; +} +export interface DeleteEmailsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePhoneNumbersModuleInput { + clientMutationId?: string; + phoneNumbersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface PhoneNumbersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdatePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; +} +export interface DeletePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRateLimitsModuleInput { + clientMutationId?: string; + rateLimitsModule: { + databaseId: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; + }; +} +export interface RateLimitsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +export interface UpdateRateLimitsModuleInput { + clientMutationId?: string; + id: string; + rateLimitsModulePatch: RateLimitsModulePatch; +} +export interface DeleteRateLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUsersModuleInput { + clientMutationId?: string; + usersModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface UsersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUsersModuleInput { + clientMutationId?: string; + id: string; + usersModulePatch: UsersModulePatch; +} +export interface DeleteUsersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnCredentialsModuleInput { + clientMutationId?: string; + webauthnCredentialsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface WebauthnCredentialsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; + webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; +} +export interface DeleteWebauthnCredentialsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAddressesModuleInput { + clientMutationId?: string; + cryptoAddressesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface CryptoAddressesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; +} +export interface DeleteCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDenormalizedTableFieldInput { + clientMutationId?: string; + denormalizedTableField: { + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; + }; +} +export interface DenormalizedTableFieldPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface UpdateDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; +} +export interface DeleteDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RlsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRlsModuleInput { + clientMutationId?: string; + id: string; + rlsModulePatch: RlsModulePatch; +} +export interface DeleteRlsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintInput { + clientMutationId?: string; + blueprint: { + ownerId: string; + databaseId: string; + name: string; + displayName: string; + description?: string; + definition: Record; + templateId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintPatch { + ownerId?: string | null; + databaseId?: string | null; + name?: string | null; + displayName?: string | null; + description?: string | null; + definition?: Record | null; + templateId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintInput { + clientMutationId?: string; + id: string; + blueprintPatch: BlueprintPatch; +} +export interface DeleteBlueprintInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + blueprintTemplate: { + name: string; + version?: string; + displayName: string; + description?: string; + ownerId: string; + visibility?: string; + categories?: string[]; + tags?: string[]; + definition: Record; + definitionSchemaVersion?: string; + source?: string; + complexity?: string; + copyCount?: number; + forkCount?: number; + forkedFromId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintTemplatePatch { + name?: string | null; + version?: string | null; + displayName?: string | null; + description?: string | null; + ownerId?: string | null; + visibility?: string | null; + categories?: string[] | null; + tags?: string[] | null; + definition?: Record | null; + definitionSchemaVersion?: string | null; + source?: string | null; + complexity?: string | null; + copyCount?: number | null; + forkCount?: number | null; + forkedFromId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintTemplateInput { + clientMutationId?: string; + id: string; + blueprintTemplatePatch: BlueprintTemplatePatch; +} +export interface DeleteBlueprintTemplateInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintConstructionInput { + clientMutationId?: string; + blueprintConstruction: { + blueprintId: string; + databaseId: string; + schemaId?: string; + status?: string; + errorDetails?: string; + tableMap?: Record; + constructedDefinition?: Record; + constructedAt?: string; + }; +} +export interface BlueprintConstructionPatch { + blueprintId?: string | null; + databaseId?: string | null; + schemaId?: string | null; + status?: string | null; + errorDetails?: string | null; + tableMap?: Record | null; + constructedDefinition?: Record | null; + constructedAt?: string | null; +} +export interface UpdateBlueprintConstructionInput { + clientMutationId?: string; + id: string; + blueprintConstructionPatch: BlueprintConstructionPatch; +} +export interface DeleteBlueprintConstructionInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAuthModuleInput { + clientMutationId?: string; + cryptoAuthModule: { + 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; + }; +} +export interface CryptoAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface UpdateCryptoAuthModuleInput { + clientMutationId?: string; + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; +} +export interface DeleteCryptoAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRateLimitMetersModuleInput { + clientMutationId?: string; + rateLimitMetersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RateLimitMetersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; + rateLimitMetersModulePatch: RateLimitMetersModulePatch; +} +export interface DeleteRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSessionsModuleInput { + clientMutationId?: string; + sessionsModule: { + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; + }; +} +export interface SessionsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: IntervalInput | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface UpdateSessionsModuleInput { + clientMutationId?: string; + id: string; + sessionsModulePatch: SessionsModulePatch; +} +export interface DeleteSessionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMerkleStoreModuleInput { + clientMutationId?: string; + merkleStoreModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + }; +} +export interface MerkleStoreModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; +} +export interface UpdateMerkleStoreModuleInput { + clientMutationId?: string; + id: string; + merkleStoreModulePatch: MerkleStoreModulePatch; +} +export interface DeleteMerkleStoreModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateGraphModuleInput { + clientMutationId?: string; + graphModule: { + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + databaseOwned?: boolean; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface GraphModulePatch { + databaseId?: string | null; + publicSchemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + scope?: string | null; + prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; + executionsTableId?: string | null; + outputsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; + databaseOwned?: boolean | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateGraphModuleInput { + clientMutationId?: string; + id: string; + graphModulePatch: GraphModulePatch; +} +export interface DeleteGraphModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + secureTableProvision: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + nodes?: Record; + useRls?: boolean; + fields?: Record[]; + grants?: Record; + policies?: Record; + outFields?: string[]; + }; +} +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 CreateConfigSecretsModuleInput { + clientMutationId?: string; + configSecretsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + hasConfig?: boolean; + }; +} +export interface ConfigSecretsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface UpdateConfigSecretsModuleInput { + clientMutationId?: string; + id: string; + configSecretsModulePatch: ConfigSecretsModulePatch; +} +export interface DeleteConfigSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + invitesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface InvitesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + invitesModulePatch: InvitesModulePatch; +} +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseProvisionModuleInput { + 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; + }; +} +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; + databaseId?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; +} +export interface DeleteDatabaseProvisionModuleInput { + 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; + 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 UpdateRealtimeModuleInput { + clientMutationId?: string; + id: string; + realtimeModulePatch: RealtimeModulePatch; +} +export interface DeleteRealtimeModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateWebauthnAuthModuleInput { + clientMutationId?: string; + webauthnAuthModule: { + 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; + }; +} +export interface WebauthnAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + credentialsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + sessionSecretsTableId?: string | null; + authSettingsTableId?: string | null; + rpId?: string | null; + rpName?: string | null; + originAllowlist?: string[] | null; + attestationType?: string | null; + requireUserVerification?: boolean | null; + residentKey?: string | null; + challengeExpiry?: IntervalInput | null; +} +export interface UpdateWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; + webauthnAuthModulePatch: WebauthnAuthModulePatch; +} +export interface DeleteWebauthnAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceModuleInput { + clientMutationId?: string; + namespaceModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface NamespaceModulePatch { + 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; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateNamespaceModuleInput { + clientMutationId?: string; + id: string; + namespaceModulePatch: NamespaceModulePatch; +} +export interface DeleteNamespaceModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + computeLogModulePatch: ComputeLogModulePatch; +} +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + storageLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface StorageLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + storageLogModulePatch: StorageLogModulePatch; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + dbUsageModulePatch: DbUsageModulePatch; +} +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNotificationsModuleInput { + clientMutationId?: string; + notificationsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + apiName?: string; + privateApiName?: string; + }; +} +export interface NotificationsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateNotificationsModuleInput { + clientMutationId?: string; + id: string; + notificationsModulePatch: NotificationsModulePatch; +} +export interface DeleteNotificationsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlansModuleInput { + clientMutationId?: string; + plansModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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 PlansModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 UpdatePlansModuleInput { + clientMutationId?: string; + id: string; + plansModulePatch: PlansModulePatch; +} +export interface DeletePlansModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateHierarchyModuleInput { + clientMutationId?: string; + hierarchyModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + }; +} +export interface HierarchyModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + hierarchyModulePatch: HierarchyModulePatch; +} +export interface DeleteHierarchyModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingModuleInput { + clientMutationId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + billingModulePatch: BillingModulePatch; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingProviderModuleInput { + clientMutationId?: string; + billingProviderModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingProviderModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingProviderModuleInput { + clientMutationId?: string; + id: string; + billingProviderModulePatch: BillingProviderModulePatch; +} +export interface DeleteBillingProviderModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateProfilesModuleInput { + clientMutationId?: string; + profilesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ProfilesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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 UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + profilesModulePatch: ProfilesModulePatch; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + 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 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 CreateFunctionModuleInput { + clientMutationId?: string; + functionModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + secretDefinitionsTableId?: string; + requirementsTableId?: string; + configDefinitionsTableId?: string; + configRequirementsTableId?: string; + definitionsTableName?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + secretDefinitionsTableName?: string; + requirementsTableName?: string; + configRequirementsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + }; +} +export interface FunctionModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + secretDefinitionsTableId?: string | null; + requirementsTableId?: string | null; + configDefinitionsTableId?: string | null; + configRequirementsTableId?: string | null; + definitionsTableName?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + secretDefinitionsTableName?: string | null; + requirementsTableName?: string | null; + configRequirementsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface UpdateFunctionModuleInput { + clientMutationId?: string; + id: string; + functionModulePatch: FunctionModulePatch; +} +export interface DeleteFunctionModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserAuthModuleInput { + clientMutationId?: string; + userAuthModule: { + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + 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; + }; +} +export interface UserAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInCrossOriginFunction?: string | null; + requestCrossOriginTokenFunction?: string | null; + extendTokenExpires?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + userAuthModulePatch: UserAuthModulePatch; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentModuleInput { + clientMutationId?: string; + agentModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + knowledgeTableId?: string; + planTableId?: string; + skillTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + knowledgeTableName?: string; + planTableName?: string; + skillTableName?: string; + hasKnowledge?: boolean; + hasPlans?: boolean; + hasSkills?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + policies?: Record; + knowledgeConfig?: Record; + skillsConfig?: Record; + knowledgePolicies?: Record; + provisions?: Record; + }; +} +export interface AgentModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + threadTableId?: string | null; + messageTableId?: string | null; + taskTableId?: string | null; + promptsTableId?: string | null; + knowledgeTableId?: string | null; + planTableId?: string | null; + skillTableId?: string | null; + threadTableName?: string | null; + messageTableName?: string | null; + taskTableName?: string | null; + promptsTableName?: string | null; + knowledgeTableName?: string | null; + planTableName?: string | null; + skillTableName?: string | null; + hasKnowledge?: boolean | null; + hasPlans?: boolean | null; + hasSkills?: boolean | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + knowledgeConfig?: Record | null; + skillsConfig?: Record | null; + knowledgePolicies?: Record | null; + provisions?: Record | null; +} +export interface UpdateAgentModuleInput { + clientMutationId?: string; + id: string; + agentModulePatch: AgentModulePatch; +} +export interface DeleteAgentModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateLimitsModuleInput { + clientMutationId?: string; + limitsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface LimitsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + limitCreditsTableId?: string | null; + eventsTableId?: string | null; + creditCodesTableId?: string | null; + creditCodeItemsTableId?: string | null; + creditRedemptionsTableId?: string | null; + aggregateTableId?: string | null; + limitCapsTableId?: string | null; + limitCapsDefaultsTableId?: string | null; + capCheckTrigger?: string | null; + resolveCapFunction?: string | null; + limitWarningsTableId?: string | null; + limitWarningStateTableId?: string | null; + limitCheckSoftFunction?: string | null; + limitAggregateCheckSoftFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateLimitsModuleInput { + clientMutationId?: string; + id: string; + limitsModulePatch: LimitsModulePatch; +} +export interface DeleteLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + membershipsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + apiName?: string; + privateApiName?: string; + }; +} +export interface MembershipsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: 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; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + membershipsModulePatch: MembershipsModulePatch; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageModuleInput { + clientMutationId?: string; + storageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + databaseOwned?: boolean; + prefix?: string; + policies?: Record; + provisions?: Record; + 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; + apiName?: string; + privateApiName?: string; + }; +} +export interface StorageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: IntervalInput | null; + fileEventsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateStorageModuleInput { + clientMutationId?: string; + id: string; + storageModulePatch: StorageModulePatch; +} +export interface DeleteStorageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEventsModuleInput { + clientMutationId?: string; + eventsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: 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; + databaseOwned?: boolean; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface EventsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + databaseOwned?: boolean | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateEventsModuleInput { + clientMutationId?: string; + id: string; + eventsModulePatch: EventsModulePatch; +} +export interface DeleteEventsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEntityTypeProvisionInput { + clientMutationId?: string; + entityTypeProvision: { + databaseId: string; + name: string; + prefix: string; + description?: string; + parentEntity?: string; + tableName?: string; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: Record; + namespaces?: Record; + functions?: Record; + graphs?: Record; + agents?: Record; + skipEntityPolicies?: boolean; + tableProvision?: Record; + outMembershipType?: number; + outEntityTableId?: string; + outEntityTableName?: string; + outInstalledModules?: string[]; + outStorageModuleId?: string; + outBucketsTableId?: string; + outFilesTableId?: string; + outPathSharesTableId?: string; + outInvitesModuleId?: string; + outNamespaceModuleId?: string; + outNamespacesTableId?: string; + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outRequirementsTableId?: string; + outConfigRequirementsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; + }; +} +export interface EntityTypeProvisionPatch { + databaseId?: string | null; + name?: string | null; + prefix?: string | null; + description?: string | null; + parentEntity?: string | null; + tableName?: string | null; + isVisible?: boolean | null; + hasLimits?: boolean | null; + hasProfiles?: boolean | null; + hasLevels?: boolean | null; + hasInvites?: boolean | null; + hasInviteAchievements?: boolean | null; + storage?: Record | null; + namespaces?: Record | null; + functions?: Record | null; + graphs?: Record | null; + agents?: Record | null; + skipEntityPolicies?: boolean | null; + tableProvision?: Record | null; + outMembershipType?: number | null; + outEntityTableId?: string | null; + outEntityTableName?: string | null; + outInstalledModules?: string[] | null; + outStorageModuleId?: string | null; + outBucketsTableId?: string | null; + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + outInvitesModuleId?: string | null; + outNamespaceModuleId?: string | null; + outNamespacesTableId?: string | null; + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outRequirementsTableId?: string | null; + outConfigRequirementsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: string | null; +} +export interface UpdateEntityTypeProvisionInput { + clientMutationId?: string; + id: string; + entityTypeProvisionPatch: EntityTypeProvisionPatch; +} +export interface DeleteEntityTypeProvisionInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Blueprint: { + blueprintConstructions: 'BlueprintConstruction', + }, + BlueprintTemplate: { + blueprintTemplatesByForkedFromId: 'BlueprintTemplate', + blueprintsByTemplateId: 'Blueprint', + }, + MerkleStoreModule: { + graphModules: 'GraphModule', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ConstructBlueprintInput { + clientMutationId?: string; + blueprintId?: string; + schemaId?: string; +} +export interface ProvisionFullTextSearchInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionIndexInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionCheckConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface ProvisionUniqueConstraintInput { + clientMutationId?: string; + databaseId?: string; + tableId?: string; + definition?: Record; +} +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} +export interface ProvisionSpatialRelationInput { + clientMutationId?: string; + pDatabaseId?: string; + pSourceTableId?: string; + pSourceFieldId?: string; + pTargetTableId?: string; + pTargetFieldId?: string; + pName?: string; + pOperator?: string; + pParamName?: string; +} +export interface ProvisionTableInput { + clientMutationId?: string; + databaseId?: string; + schemaId?: string; + tableName?: string; + tableId?: string; + nodes?: Record; + fields?: Record; + policies?: Record; + grants?: Record; + useRls?: boolean; + indexes?: Record; + fullTextSearches?: Record; + uniqueConstraints?: Record; + description?: string; +} +export interface ProvisionRelationInput { + clientMutationId?: string; + databaseId?: string; + relationType?: string; + sourceTableId?: string; + targetTableId?: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + createIndex?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; +} +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintToManyBlueprintConstructionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintConstructionFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintConstructionFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintConstructionFilter; +} +/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintTemplateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintTemplateFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintTemplateFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintTemplateFilter; +} +/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintFilter; +} +/** 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; +} +/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +export interface 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 filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ +export interface JSONListFilter { + /** 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[]; + /** 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 list of values. */ + contains?: Record[]; + /** Contained by the specified list of values. */ + containedBy?: Record[]; + /** Overlaps the specified list of values. */ + overlaps?: Record[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: Record; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: Record; + /** Any array item is less than the specified value. */ + anyLessThan?: Record; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: Record; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: Record; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: Record; +} +/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** 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?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; + /** Filter by the object’s `blueprintConstructions` relation. */ + blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; + /** `blueprintConstructions` exist. */ + blueprintConstructionsExist?: boolean; +} +/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `executionsTableId` field. */ + executionsTableId?: UUIDFilter; + /** Filter by the object’s `outputsTableId` field. */ + outputsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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?: GraphModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: GraphModuleFilter[]; + /** Negates the expression. */ + not?: GraphModuleFilter; + /** 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). */ + 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** 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; +} +/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ +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 `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 `databaseOwned` field. */ + databaseOwned?: BooleanFilter; + /** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface ConstructBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ConstructBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionFullTextSearchPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionIndexPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionIndexPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionCheckConstraintPayload { + clientMutationId?: string | null; +} +export type ProvisionCheckConstraintPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ProvisionUniqueConstraintPayload { + clientMutationId?: string | null; +} +export type ProvisionUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; +}; +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyTemplateToBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionSpatialRelationPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type ProvisionSpatialRelationPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionTablePayload { + clientMutationId?: string | null; + result?: ProvisionTableRecord[] | null; +} +export type ProvisionTablePayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ProvisionTableRecordSelect; + }; +}; +export interface ProvisionRelationPayload { + clientMutationId?: string | null; + result?: ProvisionRelationRecord[] | null; +} +export type ProvisionRelationPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ProvisionRelationRecordSelect; + }; +}; +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 CreateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was created by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type CreateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was updated by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type UpdateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was deleted by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type DeleteDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was created by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type CreateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was updated by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type UpdateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was deleted by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type DeleteMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was created by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type CreateUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +export interface UpdateUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was updated by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type UpdateUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +export interface DeleteUserStateModulePayload { + clientMutationId?: string | null; + /** The `UserStateModule` that was deleted by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export type DeleteUserStateModulePayloadSelect = { + clientMutationId?: boolean; + userStateModule?: { + select: UserStateModuleSelect; + }; + userStateModuleEdge?: { + select: UserStateModuleEdgeSelect; + }; +}; +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 CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface 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 CreateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was created by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type CreateUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +export interface UpdateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was updated by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type UpdateUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +export interface DeleteUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was deleted by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; +} +export type DeleteUserCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; + }; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; + }; +}; +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 CreateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type CreateConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type UpdateConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} +export type DeleteConfigSecretsUserModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; + }; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; + }; +}; +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type CreateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type UpdateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type DeleteIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type CreateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type UpdateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type DeleteConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type CreateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type UpdateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type DeleteEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type CreatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type UpdatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type DeletePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface CreateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type CreateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface 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 UpdateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type UpdateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface DeleteUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type DeleteUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface CreateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was created by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type CreateWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was updated by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type UpdateWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnCredentialsModulePayload { + clientMutationId?: string | null; + /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; +} +export type DeleteWebauthnCredentialsModulePayloadSelect = { + clientMutationId?: boolean; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; + }; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; + }; +}; +export interface CreateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type CreateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type UpdateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type DeleteCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type CreateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type UpdateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type DeleteDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type CreateRlsModulePayloadSelect = { + clientMutationId?: boolean; + 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; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type UpdateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type DeleteBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface CreateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type CreateBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface UpdateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type UpdateBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface DeleteBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} +export type DeleteBlueprintTemplatePayloadSelect = { + clientMutationId?: boolean; + blueprintTemplate?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; + }; +}; +export interface CreateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was created by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type CreateBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface UpdateBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was updated by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type UpdateBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface DeleteBlueprintConstructionPayload { + clientMutationId?: string | null; + /** The `BlueprintConstruction` that was deleted by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; +} +export type DeleteBlueprintConstructionPayloadSelect = { + clientMutationId?: boolean; + blueprintConstruction?: { + select: BlueprintConstructionSelect; + }; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; + }; +}; +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type CreateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type UpdateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type DeleteCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +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 CreateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type CreateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type UpdateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type DeleteSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface CreateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was created by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type CreateMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +export interface UpdateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was updated by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type UpdateMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +export interface DeleteMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was deleted by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export type DeleteMerkleStoreModulePayloadSelect = { + clientMutationId?: boolean; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; + }; + merkleStoreModuleEdge?: { + select: MerkleStoreModuleEdgeSelect; + }; +}; +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 DeleteGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type CreateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type UpdateSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export type DeleteSecureTableProvisionPayloadSelect = { + clientMutationId?: boolean; + secureTableProvision?: { + select: SecureTableProvisionSelect; + }; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; + }; +}; +export interface CreateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type CreateConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type UpdateConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export type DeleteConfigSecretsModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; + }; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type CreateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type UpdateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type DeleteDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +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 { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type CreateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type UpdateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type DeleteWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +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 CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type CreateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type UpdateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type DeleteComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type CreateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type UpdateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type DeleteStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type CreateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type UpdateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type DeleteTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type UpdateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type DeleteDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface CreateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type CreateNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +export interface UpdateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type UpdateNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +export interface DeleteNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export type DeleteNotificationsModulePayloadSelect = { + clientMutationId?: boolean; + notificationsModule?: { + select: NotificationsModuleSelect; + }; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; + }; +}; +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 CreateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was created by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type CreateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was updated by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type UpdateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was deleted by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type DeleteHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface CreateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type CreateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type UpdateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface DeleteBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type DeleteBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface CreateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type CreateBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface UpdateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type UpdateBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface DeleteBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export type DeleteBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type CreateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was updated by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type UpdateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was deleted by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type DeleteProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +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 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 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 CreateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was created by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type CreateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + 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 CreateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was created by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type CreateAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface UpdateAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was updated by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type UpdateAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface DeleteAgentModulePayload { + clientMutationId?: string | null; + /** The `AgentModule` that was deleted by this mutation. */ + agentModule?: AgentModule | null; + agentModuleEdge?: AgentModuleEdge | null; +} +export type DeleteAgentModulePayloadSelect = { + clientMutationId?: boolean; + agentModule?: { + select: AgentModuleSelect; + }; + agentModuleEdge?: { + select: AgentModuleEdgeSelect; + }; +}; +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type CreateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was updated by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type UpdateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was deleted by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type DeleteLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + 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 CreateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was created by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type CreateStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface UpdateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was updated by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type UpdateStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface DeleteStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was deleted by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} +export type DeleteStorageModulePayloadSelect = { + clientMutationId?: boolean; + storageModule?: { + select: StorageModuleSelect; + }; + storageModuleEdge?: { + select: StorageModuleEdgeSelect; + }; +}; +export interface CreateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was created by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type CreateEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface UpdateEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was updated by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type UpdateEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface DeleteEventsModulePayload { + clientMutationId?: string | null; + /** The `EventsModule` that was deleted by this mutation. */ + eventsModule?: EventsModule | null; + eventsModuleEdge?: EventsModuleEdge | null; +} +export type DeleteEventsModulePayloadSelect = { + clientMutationId?: boolean; + eventsModule?: { + select: EventsModuleSelect; + }; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; + }; +}; +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type CreateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type UpdateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type DeleteEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface ProvisionTableRecord { + outTableId?: string | null; + outFields?: string[] | null; +} +export type ProvisionTableRecordSelect = { + outTableId?: boolean; + outFields?: boolean; +}; +export interface ProvisionRelationRecord { + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export type ProvisionRelationRecordSelect = { + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; +/** A `DefaultIdsModule` edge in the connection. */ +export interface DefaultIdsModuleEdge { + cursor?: string | null; + /** The `DefaultIdsModule` at the end of the edge. */ + node?: DefaultIdsModule | null; +} +export type DefaultIdsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultIdsModuleSelect; + }; +}; +/** A `MembershipTypesModule` edge in the connection. */ +export interface MembershipTypesModuleEdge { + cursor?: string | null; + /** The `MembershipTypesModule` at the end of the edge. */ + node?: MembershipTypesModule | null; +} +export type MembershipTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `SessionSecretsModule` at the end of the edge. */ + node?: SessionSecretsModule | null; +} +export type SessionSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; +} +export type DevicesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DevicesModuleSelect; + }; +}; +/** A `I18NModule` edge in the connection. */ +export interface I18NModuleEdge { + cursor?: string | null; + /** The `I18NModule` at the end of the edge. */ + node?: I18NModule | null; +} +export type I18NModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `UserSettingsModule` at the end of the edge. */ + node?: UserSettingsModule | null; +} +export type UserSettingsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSettingsModuleSelect; + }; +}; +/** 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 `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 `ConnectedAccountsModule` edge in the connection. */ +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + /** The `ConnectedAccountsModule` at the end of the edge. */ + node?: ConnectedAccountsModule | null; +} +export type ConnectedAccountsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountsModuleSelect; + }; +}; +/** A `EmailsModule` edge in the connection. */ +export interface EmailsModuleEdge { + cursor?: string | null; + /** The `EmailsModule` at the end of the edge. */ + node?: EmailsModule | null; +} +export type EmailsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailsModuleSelect; + }; +}; +/** A `PhoneNumbersModule` edge in the connection. */ +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + /** The `PhoneNumbersModule` at the end of the edge. */ + node?: PhoneNumbersModule | null; +} +export type PhoneNumbersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumbersModuleSelect; + }; +}; +/** A `RateLimitsModule` edge in the connection. */ +export interface RateLimitsModuleEdge { + cursor?: string | null; + /** The `RateLimitsModule` at the end of the edge. */ + node?: RateLimitsModule | null; +} +export type RateLimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitsModuleSelect; + }; +}; +/** A `UsersModule` edge in the connection. */ +export interface UsersModuleEdge { + cursor?: string | null; + /** The `UsersModule` at the end of the edge. */ + node?: UsersModule | null; +} +export type UsersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UsersModuleSelect; + }; +}; +/** A `WebauthnCredentialsModule` edge in the connection. */ +export interface WebauthnCredentialsModuleEdge { + cursor?: string | null; + /** The `WebauthnCredentialsModule` at the end of the edge. */ + node?: WebauthnCredentialsModule | null; +} +export type WebauthnCredentialsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnCredentialsModuleSelect; + }; +}; +/** A `CryptoAddressesModule` edge in the connection. */ +export interface CryptoAddressesModuleEdge { + cursor?: string | null; + /** The `CryptoAddressesModule` at the end of the edge. */ + node?: CryptoAddressesModule | null; +} +export type CryptoAddressesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressesModuleSelect; + }; +}; +/** A `DenormalizedTableField` edge in the connection. */ +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + /** The `DenormalizedTableField` at the end of the edge. */ + node?: DenormalizedTableField | null; +} +export type DenormalizedTableFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DenormalizedTableFieldSelect; + }; +}; +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { + cursor?: string | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; +} +export type RlsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsModuleSelect; + }; +}; +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} +export type BlueprintEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintSelect; + }; +}; +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { + cursor?: string | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; +} +export type BlueprintTemplateEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintTemplateSelect; + }; +}; +/** A `BlueprintConstruction` edge in the connection. */ +export interface BlueprintConstructionEdge { + cursor?: string | null; + /** The `BlueprintConstruction` at the end of the edge. */ + node?: BlueprintConstruction | null; +} +export type BlueprintConstructionEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintConstructionSelect; + }; +}; +/** A `CryptoAuthModule` edge in the connection. */ +export interface CryptoAuthModuleEdge { + cursor?: string | null; + /** The `CryptoAuthModule` at the end of the edge. */ + node?: CryptoAuthModule | null; +} +export type CryptoAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAuthModuleSelect; + }; +}; +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; +} +export type RateLimitMetersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitMetersModuleSelect; + }; +}; +/** A `SessionsModule` edge in the connection. */ +export interface SessionsModuleEdge { + cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ + node?: SessionsModule | null; +} +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +/** 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 `GraphModule` edge in the connection. */ +export interface GraphModuleEdge { + cursor?: string | null; + /** The `GraphModule` at the end of the edge. */ + node?: GraphModule | null; +} +export type GraphModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: GraphModuleSelect; + }; +}; +/** 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 `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | null; +} +export type ConfigSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsModuleSelect; + }; +}; +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; +} +export type DatabaseProvisionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseProvisionModuleSelect; + }; +}; +/** 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: RealtimeModuleSelect; + }; +}; +/** A `WebauthnAuthModule` edge in the connection. */ +export interface WebauthnAuthModuleEdge { + cursor?: string | null; + /** The `WebauthnAuthModule` at the end of the edge. */ + node?: WebauthnAuthModule | null; +} +export type WebauthnAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: WebauthnAuthModuleSelect; + }; +}; +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { + cursor?: string | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; +} +export type NamespaceModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceModuleSelect; + }; +}; +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +export type ComputeLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ComputeLogModuleSelect; + }; +}; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +export type StorageLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageLogModuleSelect; + }; +}; +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; +} +export type TransferLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TransferLogModuleSelect; + }; +}; +/** A `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 `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { + cursor?: string | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; +} +export type NotificationsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NotificationsModuleSelect; + }; +}; +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; +} +export type PlansModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlansModuleSelect; + }; +}; +/** A `HierarchyModule` edge in the connection. */ +export interface HierarchyModuleEdge { + cursor?: string | null; + /** The `HierarchyModule` at the end of the edge. */ + node?: HierarchyModule | null; +} +export type HierarchyModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: HierarchyModuleSelect; + }; +}; +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { + cursor?: string | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; +} +export type BillingModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: BillingModuleSelect; + }; +}; +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { + cursor?: string | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; +} +export type BillingProviderModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: BillingProviderModuleSelect; + }; +}; +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { + cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; +} +export type ProfilesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ProfilesModuleSelect; + }; +}; +/** 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 `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 `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +export type FunctionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionModuleSelect; + }; +}; +/** A `UserAuthModule` edge in the connection. */ +export interface UserAuthModuleEdge { + cursor?: string | null; + /** The `UserAuthModule` at the end of the edge. */ + node?: UserAuthModule | null; +} +export type UserAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserAuthModuleSelect; + }; +}; +/** A `AgentModule` edge in the connection. */ +export interface AgentModuleEdge { + cursor?: string | null; + /** The `AgentModule` at the end of the edge. */ + node?: AgentModule | null; +} +export type AgentModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentModuleSelect; + }; +}; +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { + cursor?: string | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; +} +export type LimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + 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 `StorageModule` edge in the connection. */ +export interface StorageModuleEdge { + cursor?: string | null; + /** The `StorageModule` at the end of the edge. */ + node?: StorageModule | null; +} +export type StorageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageModuleSelect; + }; +}; +/** A `EventsModule` edge in the connection. */ +export interface EventsModuleEdge { + cursor?: string | null; + /** The `EventsModule` at the end of the edge. */ + node?: EventsModule | null; +} +export type EventsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EventsModuleSelect; + }; +}; +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | null; +} +export type EntityTypeProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: EntityTypeProvisionSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/public/orm/models/agentModule.ts b/sdk/constructive-sdk/src/modules/orm/models/agentModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/agentModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/agentModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/billingModule.ts b/sdk/constructive-sdk/src/modules/orm/models/billingModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/billingModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/billingModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/billingProviderModule.ts b/sdk/constructive-sdk/src/modules/orm/models/billingProviderModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/billingProviderModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/billingProviderModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/blueprint.ts b/sdk/constructive-sdk/src/modules/orm/models/blueprint.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/blueprint.ts rename to sdk/constructive-sdk/src/modules/orm/models/blueprint.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/blueprintConstruction.ts b/sdk/constructive-sdk/src/modules/orm/models/blueprintConstruction.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/blueprintConstruction.ts rename to sdk/constructive-sdk/src/modules/orm/models/blueprintConstruction.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/blueprintTemplate.ts b/sdk/constructive-sdk/src/modules/orm/models/blueprintTemplate.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/blueprintTemplate.ts rename to sdk/constructive-sdk/src/modules/orm/models/blueprintTemplate.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/computeLogModule.ts b/sdk/constructive-sdk/src/modules/orm/models/computeLogModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/computeLogModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/computeLogModule.ts diff --git a/sdk/constructive-sdk/src/modules/orm/models/configSecretsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/configSecretsModule.ts new file mode 100644 index 0000000000..5d482c9ccf --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/configSecretsModule.ts @@ -0,0 +1,244 @@ +/** + * ConfigSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ConfigSecretsModule, + ConfigSecretsModuleWithRelations, + ConfigSecretsModuleSelect, + ConfigSecretsModuleFilter, + ConfigSecretsModuleOrderBy, + CreateConfigSecretsModuleInput, + UpdateConfigSecretsModuleInput, + ConfigSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModule', + document, + variables, + transform: (data: { + configSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsModule', + 'configSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsModuleFilter', + 'ConfigSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsModule', + fieldName: 'configSecretsModule', + document, + variables, + transform: (data: { + configSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsModule', + 'createConfigSecretsModule', + 'configSecretsModule', + args.select, + args.data, + 'CreateConfigSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'createConfigSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsModule', + 'updateConfigSecretsModule', + 'configSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsModuleInput', + 'id', + 'configSecretsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'updateConfigSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsModule: { + configSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsModule', + 'deleteConfigSecretsModule', + 'configSecretsModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsModule', + fieldName: 'deleteConfigSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-sdk/src/modules/orm/models/configSecretsOrgModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/configSecretsOrgModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-sdk/src/modules/orm/models/configSecretsUserModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/configSecretsUserModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/connectedAccountsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/connectedAccountsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/connectedAccountsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/connectedAccountsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/cryptoAddressesModule.ts b/sdk/constructive-sdk/src/modules/orm/models/cryptoAddressesModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/cryptoAddressesModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/cryptoAddressesModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/cryptoAuthModule.ts b/sdk/constructive-sdk/src/modules/orm/models/cryptoAuthModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/cryptoAuthModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/cryptoAuthModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/databaseProvisionModule.ts b/sdk/constructive-sdk/src/modules/orm/models/databaseProvisionModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/databaseProvisionModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/databaseProvisionModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/dbUsageModule.ts b/sdk/constructive-sdk/src/modules/orm/models/dbUsageModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/dbUsageModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/dbUsageModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/defaultIdsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/defaultIdsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/defaultIdsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/defaultIdsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/denormalizedTableField.ts b/sdk/constructive-sdk/src/modules/orm/models/denormalizedTableField.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/denormalizedTableField.ts rename to sdk/constructive-sdk/src/modules/orm/models/denormalizedTableField.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/devicesModule.ts b/sdk/constructive-sdk/src/modules/orm/models/devicesModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/devicesModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/devicesModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/emailsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/emailsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/emailsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/emailsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/entityTypeProvision.ts b/sdk/constructive-sdk/src/modules/orm/models/entityTypeProvision.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/entityTypeProvision.ts rename to sdk/constructive-sdk/src/modules/orm/models/entityTypeProvision.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/eventsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/eventsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/eventsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/eventsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/functionModule.ts b/sdk/constructive-sdk/src/modules/orm/models/functionModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/functionModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/functionModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/graphModule.ts b/sdk/constructive-sdk/src/modules/orm/models/graphModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/graphModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/graphModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/hierarchyModule.ts b/sdk/constructive-sdk/src/modules/orm/models/hierarchyModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/hierarchyModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/hierarchyModule.ts diff --git a/sdk/constructive-sdk/src/modules/orm/models/i18NModule.ts b/sdk/constructive-sdk/src/modules/orm/models/i18NModule.ts new file mode 100644 index 0000000000..a1162a5f5f --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/i18NModule.ts @@ -0,0 +1,244 @@ +/** + * I18NModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + I18NModule, + I18NModuleWithRelations, + I18NModuleSelect, + I18NModuleFilter, + I18NModuleOrderBy, + CreateI18NModuleInput, + UpdateI18NModuleInput, + I18NModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class I18NModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18nModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18nModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18NModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18NModule', + document, + variables, + transform: (data: { + i18nModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + i18NModule: data.i18nModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + i18NModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'I18NModule', + 'i18nModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'I18NModuleFilter', + 'I18NModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'I18NModule', + fieldName: 'i18NModule', + document, + variables, + transform: (data: { + i18nModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + i18NModule: data.i18nModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'I18NModule', + 'createI18NModule', + 'i18NModule', + args.select, + args.data, + 'CreateI18NModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'createI18NModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + I18NModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'I18NModule', + 'updateI18NModule', + 'i18NModule', + args.select, + args.where.id, + args.data, + 'UpdateI18NModuleInput', + 'id', + 'i18NModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'updateI18NModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteI18NModule: { + i18NModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'I18NModule', + 'deleteI18NModule', + 'i18NModule', + { + id: args.where.id, + }, + 'DeleteI18NModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'I18NModule', + fieldName: 'deleteI18NModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/identityProvidersModule.ts b/sdk/constructive-sdk/src/modules/orm/models/identityProvidersModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/identityProvidersModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/identityProvidersModule.ts diff --git a/sdk/constructive-sdk/src/modules/orm/models/index.ts b/sdk/constructive-sdk/src/modules/orm/models/index.ts new file mode 100644 index 0000000000..2e379a9cce --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/index.ts @@ -0,0 +1,61 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +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 { IdentityProvidersModuleModel } from './identityProvidersModule'; +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 { CryptoAddressesModuleModel } from './cryptoAddressesModule'; +export { DenormalizedTableFieldModel } from './denormalizedTableField'; +export { RlsModuleModel } from './rlsModule'; +export { BlueprintModel } from './blueprint'; +export { BlueprintTemplateModel } from './blueprintTemplate'; +export { BlueprintConstructionModel } from './blueprintConstruction'; +export { CryptoAuthModuleModel } from './cryptoAuthModule'; +export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; +export { SessionsModuleModel } from './sessionsModule'; +export { MerkleStoreModuleModel } from './merkleStoreModule'; +export { GraphModuleModel } from './graphModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; +export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { InvitesModuleModel } from './invitesModule'; +export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; +export { RealtimeModuleModel } from './realtimeModule'; +export { WebauthnAuthModuleModel } from './webauthnAuthModule'; +export { NamespaceModuleModel } from './namespaceModule'; +export { ComputeLogModuleModel } from './computeLogModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; +export { StorageLogModuleModel } from './storageLogModule'; +export { TransferLogModuleModel } from './transferLogModule'; +export { DbUsageModuleModel } from './dbUsageModule'; +export { NotificationsModuleModel } from './notificationsModule'; +export { PlansModuleModel } from './plansModule'; +export { HierarchyModuleModel } from './hierarchyModule'; +export { BillingModuleModel } from './billingModule'; +export { BillingProviderModuleModel } from './billingProviderModule'; +export { ProfilesModuleModel } from './profilesModule'; +export { PermissionsModuleModel } from './permissionsModule'; +export { RelationProvisionModel } from './relationProvision'; +export { FunctionModuleModel } from './functionModule'; +export { UserAuthModuleModel } from './userAuthModule'; +export { AgentModuleModel } from './agentModule'; +export { LimitsModuleModel } from './limitsModule'; +export { MembershipsModuleModel } from './membershipsModule'; +export { StorageModuleModel } from './storageModule'; +export { EventsModuleModel } from './eventsModule'; +export { EntityTypeProvisionModel } from './entityTypeProvision'; diff --git a/sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-sdk/src/modules/orm/models/inferenceLogModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/inferenceLogModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/invitesModule.ts b/sdk/constructive-sdk/src/modules/orm/models/invitesModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/invitesModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/invitesModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/limitsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/limitsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/limitsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/limitsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/membershipTypesModule.ts b/sdk/constructive-sdk/src/modules/orm/models/membershipTypesModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/membershipTypesModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/membershipTypesModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/membershipsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/membershipsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/membershipsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/membershipsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/merkleStoreModule.ts b/sdk/constructive-sdk/src/modules/orm/models/merkleStoreModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/merkleStoreModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/merkleStoreModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/namespaceModule.ts b/sdk/constructive-sdk/src/modules/orm/models/namespaceModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/namespaceModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/namespaceModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/notificationsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/notificationsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/notificationsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/notificationsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/permissionsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/permissionsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/permissionsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/permissionsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/phoneNumbersModule.ts b/sdk/constructive-sdk/src/modules/orm/models/phoneNumbersModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/phoneNumbersModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/phoneNumbersModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/plansModule.ts b/sdk/constructive-sdk/src/modules/orm/models/plansModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/plansModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/plansModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/profilesModule.ts b/sdk/constructive-sdk/src/modules/orm/models/profilesModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/profilesModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/profilesModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/rateLimitMetersModule.ts b/sdk/constructive-sdk/src/modules/orm/models/rateLimitMetersModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/rateLimitMetersModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/rateLimitMetersModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/rateLimitsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/rateLimitsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/rateLimitsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/rateLimitsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/realtimeModule.ts b/sdk/constructive-sdk/src/modules/orm/models/realtimeModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/realtimeModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/realtimeModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/relationProvision.ts b/sdk/constructive-sdk/src/modules/orm/models/relationProvision.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/relationProvision.ts rename to sdk/constructive-sdk/src/modules/orm/models/relationProvision.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/rlsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/rlsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/rlsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/rlsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts b/sdk/constructive-sdk/src/modules/orm/models/secureTableProvision.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/secureTableProvision.ts rename to sdk/constructive-sdk/src/modules/orm/models/secureTableProvision.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/sessionSecretsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/sessionSecretsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/sessionSecretsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/sessionSecretsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/sessionsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/sessionsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/sessionsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/sessionsModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/storageLogModule.ts b/sdk/constructive-sdk/src/modules/orm/models/storageLogModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/storageLogModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/storageLogModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/storageModule.ts b/sdk/constructive-sdk/src/modules/orm/models/storageModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/storageModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/storageModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/transferLogModule.ts b/sdk/constructive-sdk/src/modules/orm/models/transferLogModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/transferLogModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/transferLogModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/userAuthModule.ts b/sdk/constructive-sdk/src/modules/orm/models/userAuthModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/userAuthModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/userAuthModule.ts diff --git a/sdk/constructive-sdk/src/modules/orm/models/userCredentialsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/userCredentialsModule.ts new file mode 100644 index 0000000000..90ada31d7a --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/userCredentialsModule.ts @@ -0,0 +1,246 @@ +/** + * UserCredentialsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + UserCredentialsModule, + UserCredentialsModuleWithRelations, + UserCredentialsModuleSelect, + UserCredentialsModuleFilter, + UserCredentialsModuleOrderBy, + CreateUserCredentialsModuleInput, + UpdateUserCredentialsModuleInput, + UserCredentialsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserCredentialsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModule', + document, + variables, + transform: (data: { + userCredentialsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userCredentialsModule: data.userCredentialsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userCredentialsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserCredentialsModule', + 'userCredentialsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserCredentialsModuleFilter', + 'UserCredentialsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserCredentialsModule', + fieldName: 'userCredentialsModule', + document, + variables, + transform: (data: { + userCredentialsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userCredentialsModule: data.userCredentialsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserCredentialsModule', + 'createUserCredentialsModule', + 'userCredentialsModule', + args.select, + args.data, + 'CreateUserCredentialsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'createUserCredentialsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserCredentialsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserCredentialsModule', + 'updateUserCredentialsModule', + 'userCredentialsModule', + args.select, + args.where.id, + args.data, + 'UpdateUserCredentialsModuleInput', + 'id', + 'userCredentialsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'updateUserCredentialsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserCredentialsModule: { + userCredentialsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserCredentialsModule', + 'deleteUserCredentialsModule', + 'userCredentialsModule', + { + id: args.where.id, + }, + 'DeleteUserCredentialsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserCredentialsModule', + fieldName: 'deleteUserCredentialsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/userSettingsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/userSettingsModule.ts new file mode 100644 index 0000000000..5a905d30b4 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/userSettingsModule.ts @@ -0,0 +1,244 @@ +/** + * UserSettingsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + UserSettingsModule, + UserSettingsModuleWithRelations, + UserSettingsModuleSelect, + UserSettingsModuleFilter, + UserSettingsModuleOrderBy, + CreateUserSettingsModuleInput, + UpdateUserSettingsModuleInput, + UserSettingsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserSettingsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModule', + document, + variables, + transform: (data: { + userSettingsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsModule: data.userSettingsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userSettingsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserSettingsModule', + 'userSettingsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserSettingsModuleFilter', + 'UserSettingsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserSettingsModule', + fieldName: 'userSettingsModule', + document, + variables, + transform: (data: { + userSettingsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userSettingsModule: data.userSettingsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserSettingsModule', + 'createUserSettingsModule', + 'userSettingsModule', + args.select, + args.data, + 'CreateUserSettingsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'createUserSettingsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserSettingsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserSettingsModule', + 'updateUserSettingsModule', + 'userSettingsModule', + args.select, + args.where.id, + args.data, + 'UpdateUserSettingsModuleInput', + 'id', + 'userSettingsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'updateUserSettingsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserSettingsModule: { + userSettingsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserSettingsModule', + 'deleteUserSettingsModule', + 'userSettingsModule', + { + id: args.where.id, + }, + 'DeleteUserSettingsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserSettingsModule', + fieldName: 'deleteUserSettingsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/userStateModule.ts b/sdk/constructive-sdk/src/modules/orm/models/userStateModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/userStateModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/userStateModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/usersModule.ts b/sdk/constructive-sdk/src/modules/orm/models/usersModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/usersModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/usersModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/webauthnAuthModule.ts b/sdk/constructive-sdk/src/modules/orm/models/webauthnAuthModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/webauthnAuthModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/webauthnAuthModule.ts diff --git a/sdk/constructive-sdk/src/public/orm/models/webauthnCredentialsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/webauthnCredentialsModule.ts similarity index 100% rename from sdk/constructive-sdk/src/public/orm/models/webauthnCredentialsModule.ts rename to sdk/constructive-sdk/src/modules/orm/models/webauthnCredentialsModule.ts diff --git a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts new file mode 100644 index 0000000000..0882daa1dd --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts @@ -0,0 +1,408 @@ +/** + * 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 { + ConstructBlueprintInput, + ProvisionFullTextSearchInput, + ProvisionIndexInput, + ProvisionCheckConstraintInput, + ProvisionUniqueConstraintInput, + CopyTemplateToBlueprintInput, + ProvisionSpatialRelationInput, + ProvisionTableInput, + ProvisionRelationInput, + ProvisionBucketInput, + ConstructBlueprintPayload, + ProvisionFullTextSearchPayload, + ProvisionIndexPayload, + ProvisionCheckConstraintPayload, + ProvisionUniqueConstraintPayload, + CopyTemplateToBlueprintPayload, + ProvisionSpatialRelationPayload, + ProvisionTablePayload, + ProvisionRelationPayload, + ProvisionBucketPayload, + ConstructBlueprintPayloadSelect, + ProvisionFullTextSearchPayloadSelect, + ProvisionIndexPayloadSelect, + ProvisionCheckConstraintPayloadSelect, + ProvisionUniqueConstraintPayloadSelect, + CopyTemplateToBlueprintPayloadSelect, + ProvisionSpatialRelationPayloadSelect, + ProvisionTablePayloadSelect, + ProvisionRelationPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for constructBlueprint + * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + */ +export interface ConstructBlueprintVariables { + input: ConstructBlueprintInput; +} +/** + * Variables for provisionFullTextSearch + * Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. + */ +export interface ProvisionFullTextSearchVariables { + input: ProvisionFullTextSearchInput; +} +/** + * Variables for provisionIndex + * Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. + */ +export interface ProvisionIndexVariables { + input: ProvisionIndexInput; +} +/** + * Variables for provisionCheckConstraint + * Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. + */ +export interface ProvisionCheckConstraintVariables { + input: ProvisionCheckConstraintInput; +} +/** + * Variables for provisionUniqueConstraint + * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. + */ +export interface ProvisionUniqueConstraintVariables { + input: ProvisionUniqueConstraintInput; +} +/** + * Variables for copyTemplateToBlueprint + * 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. + */ +export interface CopyTemplateToBlueprintVariables { + input: CopyTemplateToBlueprintInput; +} +/** + * Variables for provisionSpatialRelation + * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. + */ +export interface ProvisionSpatialRelationVariables { + input: ProvisionSpatialRelationInput; +} +/** + * Variables for provisionTable + * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). + */ +export interface ProvisionTableVariables { + input: ProvisionTableInput; +} +/** + * Variables for provisionRelation + * Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). + */ +export interface ProvisionRelationVariables { + input: ProvisionRelationInput; +} +/** + * Variables for 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 { + constructBlueprint: ( + args: ConstructBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + constructBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConstructBlueprint', + fieldName: 'constructBlueprint', + ...buildCustomDocument( + 'mutation', + 'ConstructBlueprint', + 'constructBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'ConstructBlueprintInput!', + }, + ], + connectionFieldsMap, + 'ConstructBlueprintPayload' + ), + }), + provisionFullTextSearch: ( + args: ProvisionFullTextSearchVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionFullTextSearch: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionFullTextSearch', + fieldName: 'provisionFullTextSearch', + ...buildCustomDocument( + 'mutation', + 'ProvisionFullTextSearch', + 'provisionFullTextSearch', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionFullTextSearchInput!', + }, + ], + connectionFieldsMap, + 'ProvisionFullTextSearchPayload' + ), + }), + provisionIndex: ( + args: ProvisionIndexVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionIndex: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionIndex', + fieldName: 'provisionIndex', + ...buildCustomDocument( + 'mutation', + 'ProvisionIndex', + 'provisionIndex', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionIndexInput!', + }, + ], + connectionFieldsMap, + 'ProvisionIndexPayload' + ), + }), + provisionCheckConstraint: ( + args: ProvisionCheckConstraintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionCheckConstraint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionCheckConstraint', + fieldName: 'provisionCheckConstraint', + ...buildCustomDocument( + 'mutation', + 'ProvisionCheckConstraint', + 'provisionCheckConstraint', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionCheckConstraintInput!', + }, + ], + connectionFieldsMap, + 'ProvisionCheckConstraintPayload' + ), + }), + provisionUniqueConstraint: ( + args: ProvisionUniqueConstraintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionUniqueConstraint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionUniqueConstraint', + fieldName: 'provisionUniqueConstraint', + ...buildCustomDocument( + 'mutation', + 'ProvisionUniqueConstraint', + 'provisionUniqueConstraint', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionUniqueConstraintInput!', + }, + ], + connectionFieldsMap, + 'ProvisionUniqueConstraintPayload' + ), + }), + copyTemplateToBlueprint: ( + args: CopyTemplateToBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + copyTemplateToBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CopyTemplateToBlueprint', + fieldName: 'copyTemplateToBlueprint', + ...buildCustomDocument( + 'mutation', + 'CopyTemplateToBlueprint', + 'copyTemplateToBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'CopyTemplateToBlueprintInput!', + }, + ], + connectionFieldsMap, + 'CopyTemplateToBlueprintPayload' + ), + }), + provisionSpatialRelation: ( + args: ProvisionSpatialRelationVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionSpatialRelation: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionSpatialRelation', + fieldName: 'provisionSpatialRelation', + ...buildCustomDocument( + 'mutation', + 'ProvisionSpatialRelation', + 'provisionSpatialRelation', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionSpatialRelationInput!', + }, + ], + connectionFieldsMap, + 'ProvisionSpatialRelationPayload' + ), + }), + provisionTable: ( + args: ProvisionTableVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionTable: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', + ...buildCustomDocument( + 'mutation', + 'ProvisionTable', + 'provisionTable', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionTableInput!', + }, + ], + connectionFieldsMap, + 'ProvisionTablePayload' + ), + }), + provisionRelation: ( + args: ProvisionRelationVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionRelation: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionRelation', + fieldName: 'provisionRelation', + ...buildCustomDocument( + 'mutation', + 'ProvisionRelation', + 'provisionRelation', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionRelationInput!', + }, + ], + connectionFieldsMap, + 'ProvisionRelationPayload' + ), + }), + 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/modules/orm/query-builder.ts b/sdk/constructive-sdk/src/modules/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/modules/orm/query/index.ts b/sdk/constructive-sdk/src/modules/orm/query/index.ts new file mode 100644 index 0000000000..391bf65929 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/query/index.ts @@ -0,0 +1,115 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +/** + * Variables for resolveBlueprintField + * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. + */ +export interface ResolveBlueprintFieldVariables { + databaseId?: string; + tableId?: string; + fieldName?: string; +} +/** + * Variables for resolveBlueprintTable + * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. + */ +export interface ResolveBlueprintTableVariables { + databaseId?: string; + tableName?: string; + schemaName?: string; + tableMap?: unknown; + defaultSchemaId?: string; +} +export function createQueryOperations(client: OrmClient) { + return { + resolveBlueprintField: ( + args: ResolveBlueprintFieldVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveBlueprintField: string | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveBlueprintField', + fieldName: 'resolveBlueprintField', + ...buildCustomDocument( + 'query', + 'ResolveBlueprintField', + 'resolveBlueprintField', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'tableId', + type: 'UUID', + }, + { + name: 'fieldName', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + resolveBlueprintTable: ( + args: ResolveBlueprintTableVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + resolveBlueprintTable: string | null; + }>({ + client, + operation: 'query', + operationName: 'ResolveBlueprintTable', + fieldName: 'resolveBlueprintTable', + ...buildCustomDocument( + 'query', + 'ResolveBlueprintTable', + 'resolveBlueprintTable', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'tableName', + type: 'String', + }, + { + name: 'schemaName', + type: 'String', + }, + { + name: 'tableMap', + type: 'JSON', + }, + { + name: 'defaultSchemaId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/modules/orm/realtime.ts b/sdk/constructive-sdk/src/modules/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/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/modules/orm/select-types.ts b/sdk/constructive-sdk/src/modules/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/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/modules/orm/types.ts b/sdk/constructive-sdk/src/modules/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-sdk/src/modules/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/objects/README.md b/sdk/constructive-sdk/src/objects/README.md index e89d046e01..8c4dfb1d48 100644 --- a/sdk/constructive-sdk/src/objects/README.md +++ b/sdk/constructive-sdk/src/objects/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 5 -- **Custom queries:** 4 -- **Custom mutations:** 9 +- **Custom queries:** 0 +- **Custom mutations:** 4 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 94b8dc0860..a2c6eee79f 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `getAllRecord` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | ## Table Operations @@ -59,45 +59,42 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.ref` -CRUD operations for Object records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | +| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.store` -CRUD operations for Ref records. +CRUD operations for Store records. **Fields:** @@ -106,59 +103,60 @@ CRUD operations for Ref records. | `id` | UUID | No | | `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.object` -CRUD operations for Store records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -200,95 +198,6 @@ const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ## Custom Operations -### `db.query.revParse` - -revParse - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `refname` | String | - -```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); -``` - -### `db.query.getAllObjectsFromRoot` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.getPathObjectsFromRoot` - -Reads and enables pagination through a set of `Object`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.getObjectAtPath` - -getObjectAtPath - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | - -```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); -``` - -### `db.mutation.freezeObjects` - -freezeObjects - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | FreezeObjectsInput (required) | - -```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); -``` - ### `db.mutation.initEmptyRepo` initEmptyRepo @@ -301,22 +210,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); -``` - -### `db.mutation.removeNodeAtPath` - -removeNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RemoveNodeAtPathInput (required) | - -```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,22 +225,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); -``` - -### `db.mutation.setPropsAndCommit` - -setPropsAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPropsAndCommitInput (required) | - -```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -364,36 +243,6 @@ insertNodeAtPath const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` -### `db.mutation.updateNodeAtPath` - -updateNodeAtPath - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | UpdateNodeAtPathInput (required) | - -```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); -``` - -### `db.mutation.setAndCommit` - -setAndCommit - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetAndCommitInput (required) | - -```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/objects/orm/index.ts b/sdk/constructive-sdk/src/objects/orm/index.ts index f06a6d3b7a..4288141eaa 100644 --- a/sdk/constructive-sdk/src/objects/orm/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/index.ts @@ -6,18 +6,16 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { GetAllRecordModel } from './models/getAllRecord'; -import { ObjectModel } from './models/object'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; +import { ObjectModel } from './models/object'; import { CommitModel } from './models/commit'; -import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; /** * Create an ORM client instance @@ -46,11 +44,10 @@ export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { getAllRecord: new GetAllRecordModel(client), - object: new ObjectModel(client), ref: new RefModel(client), store: new StoreModel(client), + object: new ObjectModel(client), commit: new CommitModel(client), - query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index 8fcc221ef8..c68287aede 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -235,55 +235,66 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} -/** A ref is a data structure for pointing to a commit. */ +/** Branch heads — mutable pointers into the commit chain */ export interface Ref { - /** The primary unique identifier for the ref. */ + /** Unique ref identifier */ id: string; - /** The name of the ref or branch */ + /** Ref name (e.g. HEAD, main) */ 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; } -/** A store represents an isolated object repository within a database. */ +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ export interface Store { - /** The primary unique identifier for the store. */ + /** Unique store identifier */ id: string; - /** The name of the store (e.g., metaschema, migrations). */ + /** Human-readable store name */ name?: string | null; - /** The database this store belongs to. */ + /** Database scope for multi-tenant isolation */ databaseId?: string | null; - /** The current head tree_id for this store. */ + /** 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 Object { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Database scope for multi-tenant isolation */ + databaseId?: 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; } -/** A commit records changes to the repository. */ +/** Commit history — each commit snapshots a tree root for a store */ export interface Commit { - /** The primary unique identifier for the commit. */ + /** Unique commit identifier */ id: string; - /** The commit message */ + /** Optional commit message */ message?: string | null; - /** The repository identifier */ + /** Database scope for multi-tenant isolation */ databaseId?: string | null; + /** Store this commit belongs to */ storeId?: string | null; - /** Parent commits */ + /** Parent commit IDs (supports merge commits) */ parentIds?: string[] | null; - /** The author of the commit */ + /** User who authored the changes */ authorId?: string | null; - /** The committer of the commit */ + /** User who committed (may differ from author) */ committerId?: string | null; - /** The root of the tree */ + /** Root object ID of the tree snapshot at this commit */ treeId?: string | null; + /** Commit timestamp */ date?: string | null; } // ============ Relation Helper Types ============ @@ -300,31 +311,21 @@ export interface PageInfo { } // ============ Entity Relation Types ============ export interface GetAllRecordRelations {} -export interface ObjectRelations {} export interface RefRelations {} export interface StoreRelations {} +export interface ObjectRelations {} export interface CommitRelations {} // ============ Entity Types With Relations ============ export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type CommitWithRelations = Commit & CommitRelations; // ============ Entity Select Types ============ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type RefSelect = { id?: boolean; name?: boolean; @@ -339,6 +340,14 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; +export type ObjectSelect = { + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -358,28 +367,6 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface RefFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -416,6 +403,26 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -451,24 +458,6 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type RefOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -497,6 +486,22 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -540,32 +545,6 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -612,6 +591,30 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface ObjectPatch { + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -647,65 +650,27 @@ export interface DeleteCommitInput { // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } -export interface RemoveNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; -} export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } -export interface SetPropsAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: Record; -} export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; kids?: string[]; ktree?: string[]; } -export interface UpdateNodeAtPathInput { - clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; -} -export interface SetAndCommitInput { - clientMutationId?: string; - dbId?: string; - storeId?: string; - refname?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -715,46 +680,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface FreezeObjectsPayload { - clientMutationId?: string | null; -} -export type FreezeObjectsPayloadSelect = { - clientMutationId?: boolean; -}; export interface InitEmptyRepoPayload { clientMutationId?: string | null; } export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; -export interface RemoveNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RemoveNodeAtPathPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -763,14 +695,6 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SetPropsAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SetPropsAndCommitPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -779,22 +703,6 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface UpdateNodeAtPathPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type UpdateNodeAtPathPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SetAndCommitPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type SetAndCommitPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -817,51 +725,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -952,6 +815,51 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -997,35 +905,6 @@ export type DeleteCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; -} -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; -}; -/** 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; -} -export type PageInfoSelect = { - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; - endCursor?: boolean; -}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -1050,6 +929,18 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; /** A `Commit` edge in the connection. */ export interface CommitEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/objects/orm/models/index.ts b/sdk/constructive-sdk/src/objects/orm/models/index.ts index c842d83414..92a768974c 100644 --- a/sdk/constructive-sdk/src/objects/orm/models/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/models/index.ts @@ -4,7 +4,7 @@ * DO NOT EDIT - changes will be overwritten */ export { GetAllRecordModel } from './getAllRecord'; -export { ObjectModel } from './object'; export { RefModel } from './ref'; export { StoreModel } from './store'; +export { ObjectModel } from './object'; export { CommitModel } from './commit'; diff --git a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts index 97d4456b48..60faf5871a 100644 --- a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts @@ -7,59 +7,29 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - FreezeObjectsInput, InitEmptyRepoInput, - RemoveNodeAtPathInput, SetDataAtPathInput, - SetPropsAndCommitInput, InsertNodeAtPathInput, - UpdateNodeAtPathInput, - SetAndCommitInput, ProvisionBucketInput, - FreezeObjectsPayload, InitEmptyRepoPayload, - RemoveNodeAtPathPayload, SetDataAtPathPayload, - SetPropsAndCommitPayload, InsertNodeAtPathPayload, - UpdateNodeAtPathPayload, - SetAndCommitPayload, ProvisionBucketPayload, - FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, - RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, - SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, - UpdateNodeAtPathPayloadSelect, - SetAndCommitPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface FreezeObjectsVariables { - input: FreezeObjectsInput; -} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } -export interface RemoveNodeAtPathVariables { - input: RemoveNodeAtPathInput; -} export interface SetDataAtPathVariables { input: SetDataAtPathInput; } -export interface SetPropsAndCommitVariables { - input: SetPropsAndCommitInput; -} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } -export interface UpdateNodeAtPathVariables { - input: UpdateNodeAtPathInput; -} -export interface SetAndCommitVariables { - input: SetAndCommitInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -72,35 +42,6 @@ export interface ProvisionBucketVariables { } export function createMutationOperations(client: OrmClient) { return { - freezeObjects: ( - args: FreezeObjectsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - freezeObjects: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'FreezeObjects', - fieldName: 'freezeObjects', - ...buildCustomDocument( - 'mutation', - 'FreezeObjects', - 'freezeObjects', - options.select, - args, - [ - { - name: 'input', - type: 'FreezeObjectsInput!', - }, - ], - connectionFieldsMap, - 'FreezeObjectsPayload' - ), - }), initEmptyRepo: ( args: InitEmptyRepoVariables, options: { @@ -130,35 +71,6 @@ export function createMutationOperations(client: OrmClient) { 'InitEmptyRepoPayload' ), }), - removeNodeAtPath: ( - args: RemoveNodeAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - removeNodeAtPath: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RemoveNodeAtPath', - fieldName: 'removeNodeAtPath', - ...buildCustomDocument( - 'mutation', - 'RemoveNodeAtPath', - 'removeNodeAtPath', - options.select, - args, - [ - { - name: 'input', - type: 'RemoveNodeAtPathInput!', - }, - ], - connectionFieldsMap, - 'RemoveNodeAtPathPayload' - ), - }), setDataAtPath: ( args: SetDataAtPathVariables, options: { @@ -188,35 +100,6 @@ export function createMutationOperations(client: OrmClient) { 'SetDataAtPathPayload' ), }), - setPropsAndCommit: ( - args: SetPropsAndCommitVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setPropsAndCommit: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetPropsAndCommit', - fieldName: 'setPropsAndCommit', - ...buildCustomDocument( - 'mutation', - 'SetPropsAndCommit', - 'setPropsAndCommit', - options.select, - args, - [ - { - name: 'input', - type: 'SetPropsAndCommitInput!', - }, - ], - connectionFieldsMap, - 'SetPropsAndCommitPayload' - ), - }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { @@ -246,64 +129,6 @@ export function createMutationOperations(client: OrmClient) { 'InsertNodeAtPathPayload' ), }), - updateNodeAtPath: ( - args: UpdateNodeAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - updateNodeAtPath: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'UpdateNodeAtPath', - fieldName: 'updateNodeAtPath', - ...buildCustomDocument( - 'mutation', - 'UpdateNodeAtPath', - 'updateNodeAtPath', - options.select, - args, - [ - { - name: 'input', - type: 'UpdateNodeAtPathInput!', - }, - ], - connectionFieldsMap, - 'UpdateNodeAtPathPayload' - ), - }), - setAndCommit: ( - args: SetAndCommitVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setAndCommit: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetAndCommit', - fieldName: 'setAndCommit', - ...buildCustomDocument( - 'mutation', - 'SetAndCommit', - 'setAndCommit', - options.select, - args, - [ - { - name: 'input', - type: 'SetAndCommitInput!', - }, - ], - connectionFieldsMap, - 'SetAndCommitPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-sdk/src/objects/orm/query/index.ts b/sdk/constructive-sdk/src/objects/orm/query/index.ts deleted file mode 100644 index ce1f8680dc..0000000000 --- a/sdk/constructive-sdk/src/objects/orm/query/index.ts +++ /dev/null @@ -1,224 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface RevParseVariables { - dbId?: string; - storeId?: string; - refname?: string; -} -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - revParse: ( - args: RevParseVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - revParse: string | null; - }>({ - client, - operation: 'query', - operationName: 'RevParse', - fieldName: 'revParse', - ...buildCustomDocument( - 'query', - 'RevParse', - 'revParse', - options?.select, - args, - [ - { - name: 'dbId', - type: 'UUID', - }, - { - name: 'storeId', - type: 'UUID', - }, - { - name: 'refname', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; - }>({ - client, - operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', - ...buildCustomDocument( - 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; - }>({ - client, - operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', - ...buildCustomDocument( - 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', - ...buildCustomDocument( - 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, - args, - [ - { - name: 'dbId', - type: 'UUID', - }, - { - name: 'storeId', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', - }, - { - name: 'refname', - type: 'String', - }, - ], - connectionFieldsMap, - 'Object' - ), - }), - }; -} diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md deleted file mode 100644 index 506978a0b1..0000000000 --- a/sdk/constructive-sdk/src/public/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# Generated GraphQL SDK - -

- -

- - - -## Overview - -- **Tables:** 150 -- **Custom queries:** 17 -- **Custom mutations:** 41 - -**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/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md deleted file mode 100644 index 172c56f870..0000000000 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ /dev/null @@ -1,6965 +0,0 @@ -# ORM Client - -

- -

- - - -## Setup - -```typescript -import { createClient } from './orm'; - -const db = createClient({ - endpoint: 'https://api.example.com/graphql', - headers: { Authorization: 'Bearer ' }, -}); -``` - -## Models - -| Model | Operations | -|-------|------------| -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | -| `appPermission` | findMany, findOne, create, update, delete | -| `orgPermission` | findMany, findOne, create, update, delete | -| `database` | findMany, findOne, create, update, delete | -| `schema` | findMany, findOne, create, update, delete | -| `table` | findMany, findOne, create, update, delete | -| `checkConstraint` | findMany, findOne, create, update, delete | -| `field` | findMany, findOne, create, update, delete | -| `spatialRelation` | findMany, findOne, create, update, delete | -| `foreignKeyConstraint` | findMany, findOne, create, update, delete | -| `fullTextSearch` | findMany, findOne, create, update, delete | -| `index` | findMany, findOne, create, update, delete | -| `policy` | findMany, findOne, create, update, delete | -| `primaryKeyConstraint` | findMany, findOne, create, update, delete | -| `tableGrant` | findMany, findOne, create, update, delete | -| `trigger` | findMany, findOne, create, update, delete | -| `uniqueConstraint` | findMany, findOne, create, update, delete | -| `view` | findMany, findOne, create, update, delete | -| `viewTable` | findMany, findOne, create, update, delete | -| `viewGrant` | findMany, findOne, create, update, delete | -| `viewRule` | findMany, findOne, create, update, delete | -| `embeddingChunk` | findMany, findOne, create, update, delete | -| `secureTableProvision` | findMany, findOne, create, update, delete | -| `relationProvision` | findMany, findOne, create, update, delete | -| `sessionSecretsModule` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | -| `realtimeModule` | findMany, findOne, create, update, delete | -| `configSecretsOrgModule` | findMany, findOne, create, update, delete | -| `schemaGrant` | findMany, findOne, create, update, delete | -| `defaultPrivilege` | findMany, findOne, create, update, delete | -| `enum` | findMany, findOne, create, update, delete | -| `function` | findMany, findOne, create, update, delete | -| `apiSchema` | findMany, findOne, create, update, delete | -| `apiModule` | findMany, findOne, create, update, delete | -| `domain` | findMany, findOne, create, update, delete | -| `siteMetadatum` | findMany, findOne, create, update, delete | -| `siteModule` | findMany, findOne, create, update, delete | -| `siteTheme` | findMany, findOne, create, update, delete | -| `corsSetting` | findMany, findOne, create, update, delete | -| `merkleStoreModule` | findMany, findOne, create, update, delete | -| `graphModule` | findMany, findOne, create, update, delete | -| `triggerFunction` | findMany, findOne, create, update, delete | -| `partition` | findMany, findOne, create, update, delete | -| `databaseTransfer` | findMany, findOne, create, update, delete | -| `api` | findMany, findOne, create, update, delete | -| `site` | findMany, findOne, create, update, delete | -| `app` | findMany, findOne, create, update, delete | -| `apiSetting` | findMany, findOne, create, update, delete | -| `connectedAccountsModule` | findMany, findOne, create, update, delete | -| `cryptoAddressesModule` | findMany, findOne, create, update, delete | -| `cryptoAuthModule` | findMany, findOne, create, update, delete | -| `defaultIdsModule` | findMany, findOne, create, update, delete | -| `denormalizedTableField` | findMany, findOne, create, update, delete | -| `emailsModule` | findMany, findOne, create, update, delete | -| `configSecretsUserModule` | findMany, findOne, create, update, delete | -| `invitesModule` | findMany, findOne, create, update, delete | -| `eventsModule` | findMany, findOne, create, update, delete | -| `limitsModule` | findMany, findOne, create, update, delete | -| `membershipTypesModule` | findMany, findOne, create, update, delete | -| `membershipsModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | -| `phoneNumbersModule` | findMany, findOne, create, update, delete | -| `profilesModule` | findMany, findOne, create, update, delete | -| `userStateModule` | findMany, findOne, create, update, delete | -| `sessionsModule` | findMany, findOne, create, update, delete | -| `userAuthModule` | findMany, findOne, create, update, delete | -| `usersModule` | findMany, findOne, create, update, delete | -| `blueprint` | findMany, findOne, create, update, delete | -| `blueprintTemplate` | findMany, findOne, create, update, delete | -| `blueprintConstruction` | findMany, findOne, create, update, delete | -| `storageModule` | findMany, findOne, create, update, delete | -| `entityTypeProvision` | findMany, findOne, create, update, delete | -| `webauthnCredentialsModule` | findMany, findOne, create, update, delete | -| `webauthnAuthModule` | findMany, findOne, create, update, delete | -| `notificationsModule` | findMany, findOne, create, update, delete | -| `inferenceLogModule` | findMany, findOne, create, update, delete | -| `computeLogModule` | findMany, findOne, create, update, delete | -| `transferLogModule` | findMany, findOne, create, update, delete | -| `storageLogModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | -| `agentModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | -| `functionModule` | findMany, findOne, create, update, delete | -| `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `appAdminGrant` | findMany, findOne, create, update, delete | -| `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appGrant` | findMany, findOne, create, update, delete | -| `orgMembership` | findMany, findOne, create, update, delete | -| `orgMember` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `orgMemberProfile` | findMany, findOne, create, update, delete | -| `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appLimitCredit` | findMany, findOne, create, update, delete | -| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | -| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | -| `orgLimitCredit` | findMany, findOne, create, update, delete | -| `orgLimitAggregate` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | -| `phoneNumber` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `webauthnCredential` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | -| `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgInvite` | findMany, findOne, create, update, delete | -| `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `auditLogAuth` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `nodeTypeRegistry` | findMany, findOne, create, update, delete | -| `appLimitCapsDefault` | findMany, findOne, create, update, delete | -| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | -| `appLimitCap` | findMany, findOne, create, update, delete | -| `orgLimitCap` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `appLimitWarning` | findMany, findOne, create, update, delete | -| `pubkeySetting` | findMany, findOne, create, update, delete | -| `rateLimitsModule` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `rlsSetting` | findMany, findOne, create, update, delete | -| `rlsModule` | findMany, findOne, create, update, delete | -| `rateLimitMetersModule` | findMany, findOne, create, update, delete | -| `plansModule` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | -| `databaseSetting` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | -| `billingProviderModule` | findMany, findOne, create, update, delete | -| `hierarchyModule` | findMany, findOne, create, update, delete | - -## Table Operations - -### `db.orgGetManagersRecord` - -CRUD operations for OrgGetManagersRecord records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | - -**Operations:** - -```typescript -// List all orgGetManagersRecord records -const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); - -// Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); - -// Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgGetSubordinatesRecord` - -CRUD operations for OrgGetSubordinatesRecord records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | - -**Operations:** - -```typescript -// List all orgGetSubordinatesRecord records -const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); - -// Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); - -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermission` - -CRUD operations for AppPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | - -**Operations:** - -```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermission` - -CRUD operations for OrgPermission records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | - -**Operations:** - -```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); - -// Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); -``` - -### `db.database` - -CRUD operations for Database records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `schemaHash` | String | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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(); - -// 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(); - -// Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.database.delete({ where: { id: '' } }).execute(); -``` - -### `db.schema` - -CRUD operations for Schema records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `schemaName` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `isPublic` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.schema.delete({ where: { id: '' } }).execute(); -``` - -### `db.table` - -CRUD operations for Table records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `useRls` | Boolean | Yes | -| `timestamps` | Boolean | Yes | -| `peoplestamps` | Boolean | Yes | -| `pluralName` | String | Yes | -| `singularName` | String | Yes | -| `tags` | String | Yes | -| `partitioned` | Boolean | Yes | -| `partitionStrategy` | String | Yes | -| `partitionKeyNames` | String | Yes | -| `partitionKeyTypes` | String | Yes | -| `inheritsId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: 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, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.table.delete({ where: { id: '' } }).execute(); -``` - -### `db.checkConstraint` - -CRUD operations for CheckConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `expr` | JSON | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.field` - -CRUD operations for Field records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `isRequired` | Boolean | Yes | -| `apiRequired` | Boolean | Yes | -| `defaultValue` | JSON | Yes | -| `type` | JSON | Yes | -| `fieldOrder` | Int | Yes | -| `regexp` | String | Yes | -| `chk` | JSON | Yes | -| `chkExpr` | JSON | Yes | -| `min` | Float | Yes | -| `max` | Float | Yes | -| `tags` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.field.delete({ where: { id: '' } }).execute(); -``` - -### `db.spatialRelation` - -CRUD operations for SpatialRelation records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `name` | String | Yes | -| `operator` | String | Yes | -| `paramName` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all spatialRelation records -const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.spatialRelation.delete({ where: { id: '' } }).execute(); -``` - -### `db.foreignKeyConstraint` - -CRUD operations for ForeignKeyConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldIds` | UUID | Yes | -| `deleteAction` | String | Yes | -| `updateAction` | String | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.fullTextSearch` - -CRUD operations for FullTextSearch records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `fieldIds` | UUID | Yes | -| `weights` | String | Yes | -| `langs` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all fullTextSearch records -const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); -``` - -### `db.index` - -CRUD operations for Index records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `fieldIds` | UUID | Yes | -| `includeFieldIds` | UUID | Yes | -| `accessMethod` | String | Yes | -| `indexParams` | JSON | Yes | -| `whereClause` | JSON | Yes | -| `isUnique` | Boolean | Yes | -| `options` | JSON | Yes | -| `opClasses` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.index.delete({ where: { id: '' } }).execute(); -``` - -### `db.policy` - -CRUD operations for Policy records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `granteeName` | String | Yes | -| `privilege` | String | Yes | -| `permissive` | Boolean | Yes | -| `disabled` | Boolean | Yes | -| `policyType` | String | Yes | -| `data` | JSON | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, module: true, scope: 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, module: true, scope: 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: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.policy.delete({ where: { id: '' } }).execute(); -``` - -### `db.primaryKeyConstraint` - -CRUD operations for PrimaryKeyConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.tableGrant` - -CRUD operations for TableGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `privilege` | String | Yes | -| `granteeName` | String | Yes | -| `fieldIds` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.trigger` - -CRUD operations for Trigger records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `event` | String | Yes | -| `functionName` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); -``` - -### `db.uniqueConstraint` - -CRUD operations for UniqueConstraint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `name` | String | Yes | -| `description` | String | Yes | -| `smartTags` | JSON | Yes | -| `type` | String | Yes | -| `fieldIds` | UUID | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); -``` - -### `db.view` - -CRUD operations for View records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `tableId` | UUID | Yes | -| `viewType` | String | Yes | -| `data` | JSON | Yes | -| `filterType` | String | Yes | -| `filterData` | JSON | Yes | -| `securityInvoker` | Boolean | Yes | -| `isReadOnly` | Boolean | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.view.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewTable` - -CRUD operations for ViewTable records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `viewId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `joinOrder` | Int | Yes | - -**Operations:** - -```typescript -// List all viewTable records -const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); - -// Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); - -// Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewGrant` - -CRUD operations for ViewGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `viewId` | UUID | Yes | -| `granteeName` | String | Yes | -| `privilege` | String | Yes | -| `withGrantOption` | Boolean | Yes | -| `isGrant` | Boolean | Yes | - -**Operations:** - -```typescript -// List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); - -// Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); - -// Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.viewRule` - -CRUD operations for ViewRule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `viewId` | UUID | Yes | -| `name` | String | Yes | -| `event` | String | Yes | -| `action` | String | Yes | - -**Operations:** - -```typescript -// List all viewRule records -const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); - -// Get one by id -const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); - -// Create -const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); -``` - -### `db.embeddingChunk` - -CRUD operations for EmbeddingChunk records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `embeddingFieldId` | UUID | Yes | -| `chunksTableId` | UUID | Yes | -| `chunksTableName` | String | Yes | -| `contentFieldName` | String | Yes | -| `dimensions` | Int | Yes | -| `metric` | String | Yes | -| `chunkSize` | Int | Yes | -| `chunkOverlap` | Int | Yes | -| `chunkStrategy` | String | Yes | -| `metadataFields` | JSON | Yes | -| `searchIndexes` | JSON | Yes | -| `enqueueChunkingJob` | Boolean | Yes | -| `chunkingTaskName` | String | Yes | -| `embeddingModel` | String | Yes | -| `embeddingProvider` | String | Yes | -| `parentFkFieldId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all embeddingChunk records -const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, searchIndexes: true, enqueueChunkingJob: true, chunkingTaskName: true, embeddingModel: true, embeddingProvider: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', searchIndexes: '', enqueueChunkingJob: '', chunkingTaskName: '', embeddingModel: '', embeddingProvider: '', parentFkFieldId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); -``` - -### `db.secureTableProvision` - -CRUD operations for SecureTableProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `nodes` | JSON | Yes | -| `useRls` | Boolean | Yes | -| `fields` | JSON | Yes | -| `grants` | JSON | Yes | -| `policies` | JSON | Yes | -| `outFields` | UUID | Yes | - -**Operations:** - -```typescript -// List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.relationProvision` - -CRUD operations for RelationProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `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 | -| `policies` | JSON | Yes | -| `outFieldId` | UUID | Yes | -| `outJunctionTableId` | UUID | Yes | -| `outSourceFieldId` | UUID | Yes | -| `outTargetFieldId` | UUID | 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(); - -// 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(); - -// 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(); - -// Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.sessionSecretsModule` - -CRUD operations for SessionSecretsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `sessionsTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all sessionSecretsModule records -const items = await db.sessionSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); - -// Get one by id -const item = await db.sessionSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, sessionsTableId: true } }).execute(); - -// Create -const created = await db.sessionSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sessionSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sessionSecretsModule.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 | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '' }, 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.realtimeModule` - -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 | - -**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 } }).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 } }).execute(); - -// Create -const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }, 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.configSecretsOrgModule` - -CRUD operations for ConfigSecretsOrgModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all configSecretsOrgModule records -const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.schemaGrant` - -CRUD operations for SchemaGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `granteeName` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all schemaGrant records -const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.defaultPrivilege` - -CRUD operations for DefaultPrivilege records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `objectType` | String | Yes | -| `privilege` | String | Yes | -| `granteeName` | String | Yes | -| `isGrant` | Boolean | Yes | - -**Operations:** - -```typescript -// List all defaultPrivilege records -const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); - -// Get one by id -const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); - -// Create -const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); -``` - -### `db.enum` - -CRUD operations for Enum records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | -| `label` | String | Yes | -| `description` | String | Yes | -| `values` | String | Yes | -| `smartTags` | JSON | Yes | -| `category` | ObjectCategory | Yes | -| `module` | String | Yes | -| `scope` | Int | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all enum records -const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Get one by id -const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); - -// Create -const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.enum.delete({ where: { id: '' } }).execute(); -``` - -### `db.function` - -CRUD operations for Function records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all function records -const items = await db.function.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); - -// Get one by id -const item = await db.function.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true } }).execute(); - -// Create -const created = await db.function.create({ data: { databaseId: '', schemaId: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.function.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.function.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiSchema` - -CRUD operations for ApiSchema records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `apiId` | UUID | Yes | - -**Operations:** - -```typescript -// List all apiSchema records -const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); - -// Get one by id -const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); - -// Create -const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiModule` - -CRUD operations for ApiModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `name` | String | Yes | -| `data` | JSON | Yes | - -**Operations:** - -```typescript -// List all apiModule records -const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); - -// Get one by id -const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); - -// Create -const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.domain` - -CRUD operations for Domain records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `subdomain` | ConstructiveInternalTypeHostname | Yes | -| `domain` | ConstructiveInternalTypeHostname | Yes | - -**Operations:** - -```typescript -// List all domain records -const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); - -// Get one by id -const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); - -// Create -const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.domain.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteMetadatum` - -CRUD operations for SiteMetadatum records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `title` | String | Yes | -| `description` | String | Yes | -| `ogImage` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); - -// Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); - -// Create -const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteModule` - -CRUD operations for SiteModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `name` | String | Yes | -| `data` | JSON | Yes | - -**Operations:** - -```typescript -// List all siteModule records -const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); - -// Get one by id -const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); - -// Create -const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.siteTheme` - -CRUD operations for SiteTheme records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `theme` | JSON | Yes | - -**Operations:** - -```typescript -// List all siteTheme records -const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); - -// Get one by id -const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); - -// Create -const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); -``` - -### `db.corsSetting` - -CRUD operations for CorsSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `allowedOrigins` | String | Yes | - -**Operations:** - -```typescript -// List all corsSetting records -const items = await db.corsSetting.findMany({ select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); - -// Get one by id -const item = await db.corsSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, allowedOrigins: true } }).execute(); - -// Create -const created = await db.corsSetting.create({ data: { databaseId: '', apiId: '', allowedOrigins: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.corsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.corsSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.merkleStoreModule` - -CRUD operations for MerkleStoreModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `objectTableId` | UUID | Yes | -| `storeTableId` | UUID | Yes | -| `commitTableId` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scopeField` | String | 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, scopeField: 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, scopeField: true, createdAt: true } }).execute(); - -// Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scopeField: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.graphModule` - -CRUD operations for GraphModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `publicSchemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `prefix` | String | Yes | -| `merkleStoreModuleId` | UUID | Yes | -| `graphsTableId` | UUID | Yes | -| `executionsTableId` | UUID | Yes | -| `outputsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scopeField` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `createdAt` | 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, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: 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, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, scopeField: true, membershipType: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); - -// Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', scopeField: '', membershipType: '', entityTableId: '', policies: '', provisions: '' }, 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.triggerFunction` - -CRUD operations for TriggerFunction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `code` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all triggerFunction records -const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); -``` - -### `db.partition` - -CRUD operations for Partition records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `strategy` | String | Yes | -| `partitionKeyId` | UUID | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `retentionKeepTable` | Boolean | Yes | -| `premake` | Int | Yes | -| `namingPattern` | String | Yes | -| `isParented` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, isParented: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '', isParented: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.partition.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseTransfer` - -CRUD operations for DatabaseTransfer records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `targetOwnerId` | UUID | Yes | -| `sourceApproved` | Boolean | Yes | -| `targetApproved` | Boolean | Yes | -| `sourceApprovedAt` | Datetime | Yes | -| `targetApprovedAt` | Datetime | Yes | -| `status` | String | Yes | -| `initiatedBy` | UUID | Yes | -| `notes` | String | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all databaseTransfer records -const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Get one by id -const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Create -const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); -``` - -### `db.api` - -CRUD operations for Api records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `dbname` | String | Yes | -| `roleName` | String | Yes | -| `anonRole` | String | Yes | -| `isPublic` | Boolean | Yes | - -**Operations:** - -```typescript -// List all api records -const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); - -// Get one by id -const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); - -// Create -const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.api.delete({ where: { id: '' } }).execute(); -``` - -### `db.site` - -CRUD operations for Site records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `title` | String | Yes | -| `description` | String | Yes | -| `ogImage` | ConstructiveInternalTypeImage | Yes | -| `favicon` | ConstructiveInternalTypeAttachment | Yes | -| `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | -| `logo` | ConstructiveInternalTypeImage | Yes | -| `dbname` | String | Yes | - -**Operations:** - -```typescript -// List all site records -const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); - -// Get one by id -const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); - -// Create -const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.site.delete({ where: { id: '' } }).execute(); -``` - -### `db.app` - -CRUD operations for App records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `siteId` | UUID | Yes | -| `name` | String | Yes | -| `appImage` | ConstructiveInternalTypeImage | Yes | -| `appStoreLink` | ConstructiveInternalTypeUrl | Yes | -| `appStoreId` | String | Yes | -| `appIdPrefix` | String | Yes | -| `playStoreLink` | ConstructiveInternalTypeUrl | Yes | - -**Operations:** - -```typescript -// List all app records -const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); - -// Get one by id -const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); - -// Create -const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); -``` - -### `db.apiSetting` - -CRUD operations for ApiSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `enableBulk` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all apiSetting records -const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Create -const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.apiSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.connectedAccountsModule` - -CRUD operations for ConnectedAccountsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all connectedAccountsModule records -const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAddressesModule` - -CRUD operations for CryptoAddressesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | -| `cryptoNetwork` | String | Yes | - -**Operations:** - -```typescript -// List all cryptoAddressesModule records -const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); - -// Create -const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAuthModule` - -CRUD operations for CryptoAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `secretsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `addressesTableId` | UUID | Yes | -| `userField` | String | Yes | -| `cryptoNetwork` | String | Yes | -| `signInRequestChallenge` | String | Yes | -| `signInRecordFailure` | String | Yes | -| `signUpWithKey` | String | Yes | -| `signInWithChallenge` | String | Yes | - -**Operations:** - -```typescript -// List all cryptoAuthModule records -const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); - -// Get one by id -const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); - -// Create -const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.defaultIdsModule` - -CRUD operations for DefaultIdsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | - -**Operations:** - -```typescript -// List all defaultIdsModule records -const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); - -// Get one by id -const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); - -// Create -const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.denormalizedTableField` - -CRUD operations for DenormalizedTableField records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `setIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `refIds` | UUID | Yes | -| `useUpdates` | Boolean | Yes | -| `updateDefaults` | Boolean | Yes | -| `funcName` | String | Yes | -| `funcOrder` | Int | Yes | - -**Operations:** - -```typescript -// List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); - -// Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); - -// Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); -``` - -### `db.emailsModule` - -CRUD operations for EmailsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all emailsModule records -const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.configSecretsUserModule` - -CRUD operations for ConfigSecretsUserModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `configDefinitionsTableId` | UUID | 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 } }).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 } }).execute(); - -// Create -const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '' }, 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.invitesModule` - -CRUD operations for InvitesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); - -// Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); - -// Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.eventsModule` - -CRUD operations for EventsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | -| `eventsTableName` | String | Yes | -| `eventAggregatesTableId` | UUID | Yes | -| `eventAggregatesTableName` | String | Yes | -| `eventTypesTableId` | UUID | Yes | -| `eventTypesTableName` | String | Yes | -| `levelsTableId` | UUID | Yes | -| `levelsTableName` | String | Yes | -| `levelRequirementsTableId` | UUID | Yes | -| `levelRequirementsTableName` | String | Yes | -| `levelGrantsTableId` | UUID | Yes | -| `levelGrantsTableName` | String | Yes | -| `achievementRewardsTableId` | UUID | Yes | -| `achievementRewardsTableName` | String | Yes | -| `recordEvent` | String | Yes | -| `removeEvent` | String | Yes | -| `tgEvent` | String | Yes | -| `tgEventToggle` | String | Yes | -| `tgEventToggleBool` | String | Yes | -| `tgEventBool` | String | Yes | -| `upsertAggregate` | String | Yes | -| `tgUpdateAggregates` | String | Yes | -| `pruneEvents` | String | Yes | -| `stepsRequired` | String | Yes | -| `levelAchieved` | String | Yes | -| `tgCheckAchievements` | String | Yes | -| `grantAchievement` | String | Yes | -| `tgAchievementReward` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', 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: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.limitsModule` - -CRUD operations for LimitsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `limitIncrementFunction` | String | Yes | -| `limitDecrementFunction` | String | Yes | -| `limitIncrementTrigger` | String | Yes | -| `limitDecrementTrigger` | String | Yes | -| `limitUpdateTrigger` | String | Yes | -| `limitCheckFunction` | String | Yes | -| `limitCreditsTableId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | -| `creditCodesTableId` | UUID | Yes | -| `creditCodeItemsTableId` | UUID | Yes | -| `creditRedemptionsTableId` | UUID | Yes | -| `aggregateTableId` | UUID | Yes | -| `limitCapsTableId` | UUID | Yes | -| `limitCapsDefaultsTableId` | UUID | Yes | -| `capCheckTrigger` | String | Yes | -| `resolveCapFunction` | String | Yes | -| `limitWarningsTableId` | UUID | Yes | -| `limitWarningStateTableId` | UUID | Yes | -| `limitCheckSoftFunction` | String | Yes | -| `limitAggregateCheckSoftFunction` | String | Yes | -| `prefix` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); - -// Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipTypesModule` - -CRUD operations for MembershipTypesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all membershipTypesModule records -const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipTypesModule.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 | -| `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 | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `entityTableOwnerId` | UUID | Yes | -| `prefix` | String | Yes | -| `getOrgFn` | String | Yes | -| `actorMaskCheck` | String | Yes | -| `actorPermCheck` | String | Yes | -| `entityIdsByMask` | String | Yes | -| `entityIdsByPerm` | String | Yes | -| `entityIdsFunction` | String | Yes | -| `memberProfilesTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }).execute(); - -// Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: 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, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true } }).execute(); - -// Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '' }, 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.permissionsModule` - -CRUD operations for PermissionsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | - -**Operations:** - -```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); - -// Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); - -// Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.phoneNumbersModule` - -CRUD operations for PhoneNumbersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all phoneNumbersModule records -const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.profilesModule` - -CRUD operations for ProfilesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `profilePermissionsTableId` | UUID | Yes | -| `profilePermissionsTableName` | String | Yes | -| `profileGrantsTableId` | UUID | Yes | -| `profileGrantsTableName` | String | Yes | -| `profileDefinitionGrantsTableId` | UUID | Yes | -| `profileDefinitionGrantsTableName` | String | Yes | -| `profileTemplatesTableId` | UUID | Yes | -| `profileTemplatesTableName` | String | Yes | -| `membershipType` | Int | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | -| `membershipsTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.profilesModule.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.sessionsModule` - -CRUD operations for SessionsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `authSettingsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `sessionsDefaultExpiration` | Interval | Yes | -| `sessionsTable` | String | Yes | -| `sessionCredentialsTable` | String | Yes | -| `authSettingsTable` | String | Yes | - -**Operations:** - -```typescript -// List all sessionsModule records -const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); - -// Get one by id -const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); - -// Create -const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.userAuthModule` - -CRUD operations for UserAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `secretsTableId` | UUID | Yes | -| `encryptedTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `auditsTableId` | UUID | Yes | -| `auditsTableName` | String | Yes | -| `signInFunction` | String | Yes | -| `signUpFunction` | String | Yes | -| `signOutFunction` | String | Yes | -| `setPasswordFunction` | String | Yes | -| `resetPasswordFunction` | String | Yes | -| `forgotPasswordFunction` | String | Yes | -| `sendVerificationEmailFunction` | String | Yes | -| `verifyEmailFunction` | String | Yes | -| `verifyPasswordFunction` | String | Yes | -| `checkPasswordFunction` | String | Yes | -| `sendAccountDeletionEmailFunction` | String | Yes | -| `deleteAccountFunction` | String | Yes | -| `signInCrossOriginFunction` | String | Yes | -| `requestCrossOriginTokenFunction` | String | Yes | -| `extendTokenExpires` | String | Yes | - -**Operations:** - -```typescript -// List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }).execute(); - -// Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInCrossOriginFunction: true, requestCrossOriginTokenFunction: true, extendTokenExpires: true } }).execute(); - -// Create -const created = await db.userAuthModule.create({ data: { 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: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.usersModule` - -CRUD operations for UsersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `typeTableId` | UUID | Yes | -| `typeTableName` | String | Yes | - -**Operations:** - -```typescript -// List all usersModule records -const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); - -// Get one by id -const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); - -// Create -const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprint` - -CRUD operations for Blueprint records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `definition` | JSON | Yes | -| `templateId` | UUID | Yes | -| `definitionHash` | UUID | Yes | -| `tableHashes` | JSON | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprint records -const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprintTemplate` - -CRUD operations for BlueprintTemplate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `version` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `ownerId` | UUID | Yes | -| `visibility` | String | Yes | -| `categories` | String | Yes | -| `tags` | String | Yes | -| `definition` | JSON | Yes | -| `definitionSchemaVersion` | String | Yes | -| `source` | String | Yes | -| `complexity` | String | Yes | -| `copyCount` | Int | Yes | -| `forkCount` | Int | Yes | -| `forkedFromId` | UUID | Yes | -| `definitionHash` | UUID | Yes | -| `tableHashes` | JSON | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprintTemplate records -const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); -``` - -### `db.blueprintConstruction` - -CRUD operations for BlueprintConstruction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `blueprintId` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `status` | String | Yes | -| `errorDetails` | String | Yes | -| `tableMap` | JSON | Yes | -| `constructedDefinition` | JSON | Yes | -| `constructedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { id: true, blueprintId: true, databaseId: true, schemaId: true, status: true, errorDetails: true, tableMap: true, constructedDefinition: true, constructedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', databaseId: '', schemaId: '', status: '', errorDetails: '', tableMap: '', constructedDefinition: '', constructedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.blueprintConstruction.delete({ where: { id: '' } }).execute(); -``` - -### `db.storageModule` - -CRUD operations for StorageModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `bucketsTableId` | UUID | Yes | -| `filesTableId` | UUID | Yes | -| `bucketsTableName` | String | Yes | -| `filesTableName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `entityTableId` | UUID | Yes | -| `endpoint` | String | Yes | -| `publicUrlPrefix` | String | Yes | -| `provider` | String | Yes | -| `allowedOrigins` | String | Yes | -| `restrictReads` | Boolean | Yes | -| `hasPathShares` | Boolean | Yes | -| `pathSharesTableId` | UUID | Yes | -| `uploadUrlExpirySeconds` | Int | Yes | -| `downloadUrlExpirySeconds` | Int | Yes | -| `defaultMaxFileSize` | BigInt | Yes | -| `maxFilenameLength` | Int | Yes | -| `cacheTtlSeconds` | Int | Yes | -| `maxBulkFiles` | Int | Yes | -| `maxBulkTotalSize` | BigInt | Yes | -| `hasVersioning` | Boolean | Yes | -| `hasContentHash` | Boolean | Yes | -| `hasCustomKeys` | Boolean | Yes | -| `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | -| `confirmUploadDelay` | Interval | Yes | -| `fileEventsTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }).execute(); - -// Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, key: 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 } }).execute(); - -// Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', key: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.entityTypeProvision` - -CRUD operations for EntityTypeProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `prefix` | String | Yes | -| `description` | String | Yes | -| `parentEntity` | String | Yes | -| `tableName` | String | Yes | -| `isVisible` | Boolean | Yes | -| `hasLimits` | Boolean | Yes | -| `hasProfiles` | Boolean | Yes | -| `hasLevels` | Boolean | Yes | -| `hasInvites` | Boolean | Yes | -| `hasInviteAchievements` | Boolean | Yes | -| `storage` | JSON | Yes | -| `namespaces` | JSON | Yes | -| `functions` | JSON | Yes | -| `graphs` | JSON | Yes | -| `agents` | JSON | Yes | -| `skipEntityPolicies` | Boolean | Yes | -| `tableProvision` | JSON | Yes | -| `outMembershipType` | Int | Yes | -| `outEntityTableId` | UUID | Yes | -| `outEntityTableName` | String | Yes | -| `outInstalledModules` | String | Yes | -| `outStorageModuleId` | UUID | Yes | -| `outBucketsTableId` | UUID | Yes | -| `outFilesTableId` | UUID | Yes | -| `outPathSharesTableId` | UUID | Yes | -| `outInvitesModuleId` | UUID | Yes | -| `outNamespaceModuleId` | UUID | Yes | -| `outNamespacesTableId` | UUID | Yes | -| `outNamespaceEventsTableId` | UUID | Yes | -| `outFunctionModuleId` | UUID | Yes | -| `outDefinitionsTableId` | UUID | Yes | -| `outInvocationsTableId` | UUID | Yes | -| `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | -| `outRequirementsTableId` | UUID | Yes | -| `outConfigRequirementsTableId` | UUID | Yes | -| `outGraphModuleId` | UUID | Yes | -| `outGraphsTableId` | UUID | Yes | -| `outAgentModuleId` | UUID | Yes | - -**Operations:** - -```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, outRequirementsTableId: true, outConfigRequirementsTableId: 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, outRequirementsTableId: true, outConfigRequirementsTableId: 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: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnCredentialsModule` - -CRUD operations for WebauthnCredentialsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all webauthnCredentialsModule records -const items = await db.webauthnCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.webauthnCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); - -// Create -const created = await db.webauthnCredentialsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnAuthModule` - -CRUD operations for WebauthnAuthModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `credentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionSecretsTableId` | UUID | Yes | -| `authSettingsTableId` | UUID | Yes | -| `rpId` | String | Yes | -| `rpName` | String | Yes | -| `originAllowlist` | String | Yes | -| `attestationType` | String | Yes | -| `requireUserVerification` | Boolean | Yes | -| `residentKey` | String | Yes | -| `challengeExpiry` | Interval | Yes | - -**Operations:** - -```typescript -// List all webauthnAuthModule records -const items = await db.webauthnAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); - -// Get one by id -const item = await db.webauthnAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, authSettingsTableId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpiry: true } }).execute(); - -// Create -const created = await db.webauthnAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.notificationsModule` - -CRUD operations for NotificationsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | 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 | - -**Operations:** - -```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); - -// Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); - -// Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.inferenceLogModule` - -CRUD operations for InferenceLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `inferenceLogTableId` | UUID | Yes | -| `inferenceLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.computeLogModule` - -CRUD operations for ComputeLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.transferLogModule` - -CRUD operations for TransferLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `transferLogTableId` | UUID | Yes | -| `transferLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.storageLogModule` - -CRUD operations for StorageLogModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `storageLogTableId` | UUID | Yes | -| `storageLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); - -// Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.dbUsageModule` - -CRUD operations for DbUsageModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); - -// Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.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. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `threadTableId` | UUID | Yes | -| `messageTableId` | UUID | Yes | -| `taskTableId` | UUID | Yes | -| `promptsTableId` | UUID | Yes | -| `knowledgeTableId` | UUID | Yes | -| `threadTableName` | String | Yes | -| `messageTableName` | String | Yes | -| `taskTableName` | String | Yes | -| `promptsTableName` | String | Yes | -| `knowledgeTableName` | String | Yes | -| `hasKnowledge` | Boolean | Yes | -| `apiName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `knowledgeConfig` | JSON | Yes | -| `knowledgePolicies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```typescript -// List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }).execute(); - -// Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, knowledgeTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, knowledgeTableName: true, hasKnowledge: true, apiName: true, membershipType: true, key: true, entityTableId: true, policies: true, knowledgeConfig: true, knowledgePolicies: true, provisions: true } }).execute(); - -// Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', knowledgeTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', knowledgeTableName: '', hasKnowledge: '', apiName: '', membershipType: '', key: '', entityTableId: '', policies: '', knowledgeConfig: '', knowledgePolicies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.agentModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.namespaceModule` - -CRUD operations for NamespaceModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `namespacesTableId` | UUID | Yes | -| `namespaceEventsTableId` | UUID | Yes | -| `namespacesTableName` | String | Yes | -| `namespaceEventsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `membershipType` | Int | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: 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, membershipType: true, key: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', membershipType: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.functionModule` - -CRUD operations for FunctionModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `definitionsTableId` | UUID | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | -| `requirementsTableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `configRequirementsTableId` | UUID | Yes | -| `definitionsTableName` | String | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | -| `requirementsTableName` | String | Yes | -| `configRequirementsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `membershipType` | Int | Yes | -| `prefix` | String | Yes | -| `key` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: 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, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, membershipType: true, prefix: true, key: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', membershipType: '', prefix: '', key: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseProvisionModule` - -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` | String | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | -| `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); - -// Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.appAdminGrant` - -CRUD operations for AppAdminGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appOwnerGrant` - -CRUD operations for AppOwnerGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.appGrant` - -CRUD operations for AppGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembership records -const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMember` - -CRUD operations for OrgMember records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMember records -const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgAdminGrant` - -CRUD operations for OrgAdminGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgOwnerGrant` - -CRUD operations for OrgOwnerGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMemberProfile` - -CRUD operations for OrgMemberProfile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | - -**Operations:** - -```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgGrant` - -CRUD operations for OrgGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgGrant records -const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdge` - -CRUD operations for OrgChartEdge records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | - -**Operations:** - -```typescript -// List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); - -// Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgChartEdgeGrant` - -CRUD operations for OrgChartEdgeGrant records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `isGrant` | Boolean | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```typescript -// List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); - -// Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgPermissionDefault` - -CRUD operations for OrgPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); - -// Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimit` - -CRUD operations for AppLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCredit` - -CRUD operations for AppLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCredit records -const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCodeItem` - -CRUD operations for AppLimitCreditCodeItem records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `defaultLimitId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCodeItem records -const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); - -// Create -const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditRedemption` - -CRUD operations for AppLimitCreditRedemption records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `creditCodeId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditRedemption records -const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true } }).execute(); - -// Create -const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimit` - -CRUD operations for OrgLimit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCredit` - -CRUD operations for OrgLimitCredit records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `defaultLimitId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `amount` | BigInt | Yes | -| `creditType` | String | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitCredit records -const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, amount: true, creditType: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitAggregate` - -CRUD operations for OrgLimitAggregate records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `num` | BigInt | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | -| `windowStart` | Datetime | Yes | -| `windowDuration` | Interval | Yes | -| `planMax` | BigInt | Yes | -| `purchasedCredits` | BigInt | Yes | -| `periodCredits` | BigInt | Yes | -| `reserved` | BigInt | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitAggregate records -const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); - -// Get one by id -const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); - -// Create -const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitWarning` - -CRUD operations for OrgLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); -``` - -### `db.phoneNumber` - -CRUD operations for PhoneNumber records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); -``` - -### `db.cryptoAddress` - -CRUD operations for CryptoAddress records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `name` | String | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, name: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); -``` - -### `db.webauthnCredential` - -CRUD operations for WebauthnCredential records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `credentialId` | String | Yes | -| `publicKey` | Base64EncodedBinary | Yes | -| `signCount` | BigInt | Yes | -| `webauthnUserId` | String | Yes | -| `transports` | String | Yes | -| `credentialDeviceType` | String | Yes | -| `backupEligible` | Boolean | Yes | -| `backupState` | Boolean | Yes | -| `name` | String | Yes | -| `lastUsedAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all webauthnCredential records -const items = await db.webauthnCredential.findMany({ select: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.webauthnCredential.findOne({ id: '', select: { id: true, ownerId: true, credentialId: true, publicKey: true, signCount: true, webauthnUserId: true, transports: true, credentialDeviceType: true, backupEligible: true, backupState: true, name: true, lastUsedAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.webauthnCredential.create({ data: { ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnCredential.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnCredential.delete({ where: { id: '' } }).execute(); -``` - -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgInvite` - -CRUD operations for OrgInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgClaimedInvite` - -CRUD operations for OrgClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); - -// Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); -``` - -### `db.auditLogAuth` - -CRUD operations for AuditLogAuth records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | - -**Operations:** - -```typescript -// List all auditLogAuth records -const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); - -// Get one by id -const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); - -// Create -const created = await db.auditLogAuth.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); -``` - -### `db.identityProvider` - -CRUD operations for IdentityProvider records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | - -**Operations:** - -```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); - -// Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); - -// Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); -``` - -### `db.appPermissionDefault` - -CRUD operations for AppPermissionDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); - -// Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.roleType` - -CRUD operations for RoleType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | - -**Operations:** - -```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); - -// Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); - -// Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); -``` - -### `db.migrateFile` - -CRUD operations for MigrateFile records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | - -**Operations:** - -```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); - -// Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); - -// Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); -``` - -### `db.devicesModule` - -CRUD operations for DevicesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | - -**Operations:** - -```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); - -// Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); - -// Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembershipDefault` - -CRUD operations for AppMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | - -**Operations:** - -```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); - -// Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); - -// Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipDefault` - -CRUD operations for OrgMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.nodeTypeRegistry` - -CRUD operations for NodeTypeRegistry records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | - -**Operations:** - -```typescript -// List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); - -// Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); - -// Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); - -// Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); - -// Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); -``` - -### `db.appLimitCapsDefault` - -CRUD operations for AppLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitCapsDefault records -const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCapsDefault` - -CRUD operations for OrgLimitCapsDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCapsDefault records -const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCap` - -CRUD operations for AppLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitCap records -const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitCap` - -CRUD operations for OrgLimitCap records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `entityId` | UUID | Yes | -| `max` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitCap records -const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Get one by id -const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); - -// Create -const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); -``` - -### `db.userConnectedAccount` - -CRUD operations for UserConnectedAccount records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.userConnectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitCreditCode` - -CRUD operations for AppLimitCreditCode records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | - -**Operations:** - -```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); - -// Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitWarning` - -CRUD operations for AppLimitWarning records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); - -// Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); -``` - -### `db.pubkeySetting` - -CRUD operations for PubkeySetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `cryptoNetwork` | String | Yes | -| `userField` | String | Yes | -| `signUpWithKeyFunctionId` | UUID | Yes | -| `signInRequestChallengeFunctionId` | UUID | Yes | -| `signInRecordFailureFunctionId` | UUID | Yes | -| `signInWithChallengeFunctionId` | UUID | Yes | - -**Operations:** - -```typescript -// List all pubkeySetting records -const items = await db.pubkeySetting.findMany({ select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); - -// Get one by id -const item = await db.pubkeySetting.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, cryptoNetwork: true, userField: true, signUpWithKeyFunctionId: true, signInRequestChallengeFunctionId: true, signInRecordFailureFunctionId: true, signInWithChallengeFunctionId: true } }).execute(); - -// Create -const created = await db.pubkeySetting.create({ data: { databaseId: '', schemaId: '', cryptoNetwork: '', userField: '', signUpWithKeyFunctionId: '', signInRequestChallengeFunctionId: '', signInRecordFailureFunctionId: '', signInWithChallengeFunctionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.pubkeySetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.pubkeySetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.rateLimitsModule` - -CRUD operations for RateLimitsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `rateLimitSettingsTableId` | UUID | Yes | -| `ipRateLimitsTableId` | UUID | Yes | -| `rateLimitsTableId` | UUID | Yes | -| `rateLimitSettingsTable` | String | Yes | -| `ipRateLimitsTable` | String | Yes | -| `rateLimitsTable` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitsModule records -const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); - -// Get one by id -const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); - -// Create -const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsSetting` - -CRUD operations for RlsSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `authenticateSchemaId` | UUID | Yes | -| `roleSchemaId` | UUID | Yes | -| `authenticateFunctionId` | UUID | Yes | -| `authenticateStrictFunctionId` | UUID | Yes | -| `currentRoleFunctionId` | UUID | Yes | -| `currentRoleIdFunctionId` | UUID | Yes | -| `currentUserAgentFunctionId` | UUID | Yes | -| `currentIpAddressFunctionId` | UUID | Yes | - -**Operations:** - -```typescript -// List all rlsSetting records -const items = await db.rlsSetting.findMany({ select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); - -// Get one by id -const item = await db.rlsSetting.findOne({ id: '', select: { id: true, databaseId: true, authenticateSchemaId: true, roleSchemaId: true, authenticateFunctionId: true, authenticateStrictFunctionId: true, currentRoleFunctionId: true, currentRoleIdFunctionId: true, currentUserAgentFunctionId: true, currentIpAddressFunctionId: true } }).execute(); - -// Create -const created = await db.rlsSetting.create({ data: { databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rlsSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.rlsModule` - -CRUD operations for RlsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | - -**Operations:** - -```typescript -// List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); - -// Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); - -// Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.rateLimitMetersModule` - -CRUD operations for RateLimitMetersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `rateLimitStateTableId` | UUID | Yes | -| `rateLimitStateTableName` | String | Yes | -| `rateLimitOverridesTableId` | UUID | Yes | -| `rateLimitOverridesTableName` | String | Yes | -| `rateWindowLimitsTableId` | UUID | Yes | -| `rateWindowLimitsTableName` | String | Yes | -| `checkRateLimitFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.plansModule` - -CRUD operations for PlansModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all plansModule records -const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.sqlAction` - -CRUD operations for SqlAction records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `deploy` | String | Yes | -| `deps` | String | Yes | -| `payload` | JSON | Yes | -| `content` | String | Yes | -| `revert` | String | Yes | -| `verify` | String | Yes | -| `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | - -**Operations:** - -```typescript -// List all sqlAction records -const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Get one by id -const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Create -const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); -``` - -### `db.databaseSetting` - -CRUD operations for DatabaseSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `enableBulk` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); - -// Create -const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipSetting` - -CRUD operations for OrgMembershipSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | - -**Operations:** - -```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); - -// Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); - -// Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` - -CRUD operations for OrgLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `organizationId` | UUID | Yes | -| `entityType` | String | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); - -// Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); -``` - -### `db.user` - -CRUD operations for User records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `username` | String | Yes | -| `displayName` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | -| `searchTsv` | FullText | Yes | -| `type` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `searchTsvRank` | Float | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all user records -const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); - -// Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); -``` - -> **Unified Search API fields:** `searchTsv` -> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. - -### `db.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. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `credentialsSchemaId` | UUID | Yes | -| `sessionsSchemaId` | UUID | Yes | -| `sessionSecretsSchemaId` | UUID | Yes | -| `credentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionSecretsTableId` | UUID | Yes | -| `userFieldId` | UUID | Yes | -| `rpId` | String | Yes | -| `rpName` | String | Yes | -| `originAllowlist` | String | Yes | -| `attestationType` | String | Yes | -| `requireUserVerification` | Boolean | Yes | -| `residentKey` | String | Yes | -| `challengeExpirySeconds` | BigInt | Yes | - -**Operations:** - -```typescript -// List all webauthnSetting records -const items = await db.webauthnSetting.findMany({ select: { 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 } }).execute(); - -// Get one by id -const item = await db.webauthnSetting.findOne({ id: '', select: { 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 } }).execute(); - -// Create -const created = await db.webauthnSetting.create({ data: { databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.webauthnSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); -``` - -### `db.billingModule` - -CRUD operations for BillingModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `metersTableId` | UUID | Yes | -| `metersTableName` | String | Yes | -| `planSubscriptionsTableId` | UUID | Yes | -| `planSubscriptionsTableName` | String | Yes | -| `ledgerTableId` | UUID | Yes | -| `ledgerTableName` | String | Yes | -| `balancesTableId` | UUID | Yes | -| `balancesTableName` | String | Yes | -| `meterCreditsTableId` | UUID | Yes | -| `meterCreditsTableName` | String | Yes | -| `meterSourcesTableId` | UUID | Yes | -| `meterSourcesTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.billingProviderModule` - -CRUD operations for BillingProviderModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `provider` | String | Yes | -| `productsTableId` | UUID | Yes | -| `pricesTableId` | UUID | Yes | -| `subscriptionsTableId` | UUID | Yes | -| `billingCustomersTableId` | UUID | Yes | -| `billingCustomersTableName` | String | Yes | -| `billingProductsTableId` | UUID | Yes | -| `billingProductsTableName` | String | Yes | -| `billingPricesTableId` | UUID | Yes | -| `billingPricesTableName` | String | Yes | -| `billingSubscriptionsTableId` | UUID | Yes | -| `billingSubscriptionsTableName` | String | Yes | -| `billingWebhookEventsTableId` | UUID | Yes | -| `billingWebhookEventsTableName` | String | Yes | -| `processBillingEventFunction` | String | Yes | -| `prefix` | String | Yes | - -**Operations:** - -```typescript -// List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }).execute(); - -// Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true } }).execute(); - -// Create -const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); -``` - -### `db.hierarchyModule` - -CRUD operations for HierarchyModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `chartEdgesTableId` | UUID | Yes | -| `chartEdgesTableName` | String | Yes | -| `hierarchySprtTableId` | UUID | Yes | -| `hierarchySprtTableName` | String | Yes | -| `chartEdgeGrantsTableId` | UUID | Yes | -| `chartEdgeGrantsTableName` | String | Yes | -| `entityTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `prefix` | String | Yes | -| `privateSchemaName` | String | Yes | -| `sprtTableName` | String | Yes | -| `rebuildHierarchyFunction` | String | Yes | -| `getSubordinatesFunction` | String | Yes | -| `getManagersFunction` | String | Yes | -| `isManagerOfFunction` | String | Yes | -| `createdAt` | Datetime | No | - -**Operations:** - -```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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: 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, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); - -// Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); -``` - -## Custom Operations - -### `db.query.currentUserId` - -currentUserId - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUserId().execute(); -``` - -### `db.query.currentUserAgent` - -currentUserAgent - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUserAgent().execute(); -``` - -### `db.query.currentIpAddress` - -currentIpAddress - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentIpAddress().execute(); -``` - -### `db.query.requireStepUp` - -requireStepUp - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `stepUpType` | String | - -```typescript -const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); -``` - -### `db.query.appPermissionsGetPaddedMask` - -appPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.orgPermissionsGetPaddedMask` - -orgPermissionsGetPaddedMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - -```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); -``` - -### `db.query.applyRegistryDefaults` - -applyRegistryDefaults - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `nodeType` | String | - | `data` | JSON | - -```typescript -const result = await db.query.applyRegistryDefaults({ nodeType: '', data: '' }).execute(); -``` - -### `db.query.resolveBlueprintField` - -Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableId` | UUID | - | `fieldName` | String | - -```typescript -const result = await db.query.resolveBlueprintField({ databaseId: '', tableId: '', fieldName: '' }).execute(); -``` - -### `db.query.resolveBlueprintTable` - -Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `databaseId` | UUID | - | `tableName` | String | - | `schemaName` | String | - | `tableMap` | JSON | - | `defaultSchemaId` | UUID | - -```typescript -const result = await db.query.resolveBlueprintTable({ databaseId: '', tableName: '', schemaName: '', tableMap: '', defaultSchemaId: '' }).execute(); -``` - -### `db.query.orgIsManagerOf` - -orgIsManagerOf - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `pEntityId` | UUID | - | `pManagerId` | UUID | - | `pUserId` | UUID | - | `pMaxDepth` | Int | - -```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); -``` - -### `db.query.appPermissionsGetMask` - -appPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMask` - -orgPermissionsGetMask - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `ids` | [UUID] | - -```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); -``` - -### `db.query.appPermissionsGetMaskByNames` - -appPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.orgPermissionsGetMaskByNames` - -orgPermissionsGetMaskByNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `names` | [String] | - -```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); -``` - -### `db.query.appPermissionsGetByMask` - -Reads and enables pagination through a set of `AppPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.orgPermissionsGetByMask` - -Reads and enables pagination through a set of `OrgPermission`. - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | - -```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); -``` - -### `db.query.currentUser` - -currentUser - -- **Type:** query -- **Arguments:** none - -```typescript -const result = await db.query.currentUser().execute(); -``` - -### `db.mutation.sendAccountDeletionEmail` - -sendAccountDeletionEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | - -```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); -``` - -### `db.mutation.signOut` - -signOut - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignOutInput (required) | - -```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); -``` - -### `db.mutation.acceptDatabaseTransfer` - -acceptDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AcceptDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.cancelDatabaseTransfer` - -cancelDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CancelDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.rejectDatabaseTransfer` - -rejectDatabaseTransfer - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RejectDatabaseTransferInput (required) | - -```typescript -const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); -``` - -### `db.mutation.disconnectAccount` - -disconnectAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | DisconnectAccountInput (required) | - -```typescript -const result = await db.mutation.disconnectAccount({ input: { accountId: '' } }).execute(); -``` - -### `db.mutation.revokeApiKey` - -revokeApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeApiKeyInput (required) | - -```typescript -const result = await db.mutation.revokeApiKey({ input: { keyId: '' } }).execute(); -``` - -### `db.mutation.revokeSession` - -revokeSession - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RevokeSessionInput (required) | - -```typescript -const result = await db.mutation.revokeSession({ input: { sessionId: '' } }).execute(); -``` - -### `db.mutation.verifyPassword` - -verifyPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyPasswordInput (required) | - -```typescript -const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); -``` - -### `db.mutation.verifyTotp` - -verifyTotp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyTotpInput (required) | - -```typescript -const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); -``` - -### `db.mutation.submitAppInviteCode` - -submitAppInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitAppInviteCodeInput (required) | - -```typescript -const result = await db.mutation.submitAppInviteCode({ input: { token: '' } }).execute(); -``` - -### `db.mutation.submitOrgInviteCode` - -submitOrgInviteCode - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | - -```typescript -const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); -``` - -### `db.mutation.checkPassword` - -checkPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CheckPasswordInput (required) | - -```typescript -const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); -``` - -### `db.mutation.confirmDeleteAccount` - -confirmDeleteAccount - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmDeleteAccountInput (required) | - -```typescript -const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); -``` - -### `db.mutation.setPassword` - -setPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetPasswordInput (required) | - -```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); -``` - -### `db.mutation.verifyEmail` - -verifyEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | VerifyEmailInput (required) | - -```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); -``` - -### `db.mutation.constructBlueprint` - -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConstructBlueprintInput (required) | - -```typescript -const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); -``` - -### `db.mutation.provisionNewUser` - -provisionNewUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionNewUserInput (required) | - -```typescript -const result = await db.mutation.provisionNewUser({ input: { email: '', password: '' } }).execute(); -``` - -### `db.mutation.resetPassword` - -resetPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ResetPasswordInput (required) | - -```typescript -const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); -``` - -### `db.mutation.provisionCheckConstraint` - -Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionCheckConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionCheckConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionUniqueConstraint` - -Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionUniqueConstraintInput (required) | - -```typescript -const result = await db.mutation.provisionUniqueConstraint({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionFullTextSearch` - -Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionFullTextSearchInput (required) | - -```typescript -const result = await db.mutation.provisionFullTextSearch({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.provisionIndex` - -Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionIndexInput (required) | - -```typescript -const result = await db.mutation.provisionIndex({ input: { databaseId: '', tableId: '', definition: '' } }).execute(); -``` - -### `db.mutation.copyTemplateToBlueprint` - -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. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CopyTemplateToBlueprintInput (required) | - -```typescript -const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); -``` - -### `db.mutation.provisionSpatialRelation` - -Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionSpatialRelationInput (required) | - -```typescript -const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); -``` - -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - -### `db.mutation.bootstrapUser` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` - -### `db.mutation.signUp` - -signUp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignUpInput (required) | - -```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); -``` - -### `db.mutation.signIn` - -signIn - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInInput (required) | - -```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); -``` - -### `db.mutation.provisionRelation` - -Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionRelationInput (required) | - -```typescript -const result = await db.mutation.provisionRelation({ input: '' }).execute(); -``` - -### `db.mutation.setFieldOrder` - -setFieldOrder - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SetFieldOrderInput (required) | - -```typescript -const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); -``` - -### `db.mutation.applyRls` - -applyRls - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ApplyRlsInput (required) | - -```typescript -const result = await db.mutation.applyRls({ input: '' }).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.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) - -Returns the database_id UUID of the newly created database. - -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 - - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateUserDatabaseInput (required) | - -```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); -``` - -### `db.mutation.extendTokenExpires` - -extendTokenExpires - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ExtendTokenExpiresInput (required) | - -```typescript -const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); -``` - -### `db.mutation.createApiKey` - -createApiKey - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateApiKeyInput (required) | - -```typescript -const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); -``` - -### `db.mutation.requestCrossOriginToken` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - -```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` - -### `db.mutation.provisionTable` - -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionTableInput (required) | - -```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); -``` - -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.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/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts deleted file mode 100644 index f490598d41..0000000000 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ /dev/null @@ -1,346 +0,0 @@ -/** - * 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 { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; -import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; -import { AppPermissionModel } from './models/appPermission'; -import { OrgPermissionModel } from './models/orgPermission'; -import { DatabaseModel } from './models/database'; -import { SchemaModel } from './models/schema'; -import { TableModel } from './models/table'; -import { CheckConstraintModel } from './models/checkConstraint'; -import { FieldModel } from './models/field'; -import { SpatialRelationModel } from './models/spatialRelation'; -import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint'; -import { FullTextSearchModel } from './models/fullTextSearch'; -import { IndexModel } from './models/index'; -import { PolicyModel } from './models/policy'; -import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint'; -import { TableGrantModel } from './models/tableGrant'; -import { TriggerModel } from './models/trigger'; -import { UniqueConstraintModel } from './models/uniqueConstraint'; -import { ViewModel } from './models/view'; -import { ViewTableModel } from './models/viewTable'; -import { ViewGrantModel } from './models/viewGrant'; -import { ViewRuleModel } from './models/viewRule'; -import { EmbeddingChunkModel } from './models/embeddingChunk'; -import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { RelationProvisionModel } from './models/relationProvision'; -import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; -import { RealtimeModuleModel } from './models/realtimeModule'; -import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; -import { SchemaGrantModel } from './models/schemaGrant'; -import { DefaultPrivilegeModel } from './models/defaultPrivilege'; -import { EnumModel } from './models/enum'; -import { FunctionModel } from './models/function'; -import { ApiSchemaModel } from './models/apiSchema'; -import { ApiModuleModel } from './models/apiModule'; -import { DomainModel } from './models/domain'; -import { SiteMetadatumModel } from './models/siteMetadatum'; -import { SiteModuleModel } from './models/siteModule'; -import { SiteThemeModel } from './models/siteTheme'; -import { CorsSettingModel } from './models/corsSetting'; -import { MerkleStoreModuleModel } from './models/merkleStoreModule'; -import { GraphModuleModel } from './models/graphModule'; -import { TriggerFunctionModel } from './models/triggerFunction'; -import { PartitionModel } from './models/partition'; -import { DatabaseTransferModel } from './models/databaseTransfer'; -import { ApiModel } from './models/api'; -import { SiteModel } from './models/site'; -import { AppModel } from './models/app'; -import { ApiSettingModel } from './models/apiSetting'; -import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; -import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; -import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; -import { DefaultIdsModuleModel } from './models/defaultIdsModule'; -import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; -import { EmailsModuleModel } from './models/emailsModule'; -import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; -import { InvitesModuleModel } from './models/invitesModule'; -import { EventsModuleModel } from './models/eventsModule'; -import { LimitsModuleModel } from './models/limitsModule'; -import { MembershipTypesModuleModel } from './models/membershipTypesModule'; -import { MembershipsModuleModel } from './models/membershipsModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; -import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; -import { ProfilesModuleModel } from './models/profilesModule'; -import { UserStateModuleModel } from './models/userStateModule'; -import { SessionsModuleModel } from './models/sessionsModule'; -import { UserAuthModuleModel } from './models/userAuthModule'; -import { UsersModuleModel } from './models/usersModule'; -import { BlueprintModel } from './models/blueprint'; -import { BlueprintTemplateModel } from './models/blueprintTemplate'; -import { BlueprintConstructionModel } from './models/blueprintConstruction'; -import { StorageModuleModel } from './models/storageModule'; -import { EntityTypeProvisionModel } from './models/entityTypeProvision'; -import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; -import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; -import { NotificationsModuleModel } from './models/notificationsModule'; -import { InferenceLogModuleModel } from './models/inferenceLogModule'; -import { ComputeLogModuleModel } from './models/computeLogModule'; -import { TransferLogModuleModel } from './models/transferLogModule'; -import { StorageLogModuleModel } from './models/storageLogModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; -import { AgentModuleModel } from './models/agentModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; -import { FunctionModuleModel } from './models/functionModule'; -import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { AppAdminGrantModel } from './models/appAdminGrant'; -import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppGrantModel } from './models/appGrant'; -import { OrgMembershipModel } from './models/orgMembership'; -import { OrgMemberModel } from './models/orgMember'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { AppLimitModel } from './models/appLimit'; -import { AppLimitCreditModel } from './models/appLimitCredit'; -import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; -import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; -import { OrgLimitModel } from './models/orgLimit'; -import { OrgLimitCreditModel } from './models/orgLimitCredit'; -import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; -import { EmailModel } from './models/email'; -import { PhoneNumberModel } from './models/phoneNumber'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { WebauthnCredentialModel } from './models/webauthnCredential'; -import { AppInviteModel } from './models/appInvite'; -import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgInviteModel } from './models/orgInvite'; -import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AuditLogAuthModel } from './models/auditLogAuth'; -import { IdentityProviderModel } from './models/identityProvider'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { RoleTypeModel } from './models/roleType'; -import { MigrateFileModel } from './models/migrateFile'; -import { DevicesModuleModel } from './models/devicesModule'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; -import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; -import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; -import { AppLimitCapModel } from './models/appLimitCap'; -import { OrgLimitCapModel } from './models/orgLimitCap'; -import { UserConnectedAccountModel } from './models/userConnectedAccount'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { AppLimitWarningModel } from './models/appLimitWarning'; -import { PubkeySettingModel } from './models/pubkeySetting'; -import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { MembershipTypeModel } from './models/membershipType'; -import { RlsSettingModel } from './models/rlsSetting'; -import { RlsModuleModel } from './models/rlsModule'; -import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; -import { PlansModuleModel } from './models/plansModule'; -import { SqlActionModel } from './models/sqlAction'; -import { DatabaseSettingModel } from './models/databaseSetting'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; -import { AppMembershipModel } from './models/appMembership'; -import { UserModel } from './models/user'; -import { AstMigrationModel } from './models/astMigration'; -import { WebauthnSettingModel } from './models/webauthnSetting'; -import { BillingModuleModel } from './models/billingModule'; -import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { HierarchyModuleModel } from './models/hierarchyModule'; -import { createQueryOperations } from './query'; -import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; -export * from './models'; -export { createQueryOperations } from './query'; -export { createMutationOperations } from './mutation'; -/** - * Create an ORM client instance - * - * @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 { - orgGetManagersRecord: new OrgGetManagersRecordModel(client), - orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), - appPermission: new AppPermissionModel(client), - orgPermission: new OrgPermissionModel(client), - database: new DatabaseModel(client), - schema: new SchemaModel(client), - table: new TableModel(client), - checkConstraint: new CheckConstraintModel(client), - field: new FieldModel(client), - spatialRelation: new SpatialRelationModel(client), - foreignKeyConstraint: new ForeignKeyConstraintModel(client), - fullTextSearch: new FullTextSearchModel(client), - index: new IndexModel(client), - policy: new PolicyModel(client), - primaryKeyConstraint: new PrimaryKeyConstraintModel(client), - tableGrant: new TableGrantModel(client), - trigger: new TriggerModel(client), - uniqueConstraint: new UniqueConstraintModel(client), - view: new ViewModel(client), - viewTable: new ViewTableModel(client), - viewGrant: new ViewGrantModel(client), - viewRule: new ViewRuleModel(client), - embeddingChunk: new EmbeddingChunkModel(client), - secureTableProvision: new SecureTableProvisionModel(client), - relationProvision: new RelationProvisionModel(client), - sessionSecretsModule: new SessionSecretsModuleModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), - realtimeModule: new RealtimeModuleModel(client), - configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), - schemaGrant: new SchemaGrantModel(client), - defaultPrivilege: new DefaultPrivilegeModel(client), - enum: new EnumModel(client), - function: new FunctionModel(client), - apiSchema: new ApiSchemaModel(client), - apiModule: new ApiModuleModel(client), - domain: new DomainModel(client), - siteMetadatum: new SiteMetadatumModel(client), - siteModule: new SiteModuleModel(client), - siteTheme: new SiteThemeModel(client), - corsSetting: new CorsSettingModel(client), - merkleStoreModule: new MerkleStoreModuleModel(client), - graphModule: new GraphModuleModel(client), - triggerFunction: new TriggerFunctionModel(client), - partition: new PartitionModel(client), - databaseTransfer: new DatabaseTransferModel(client), - api: new ApiModel(client), - site: new SiteModel(client), - app: new AppModel(client), - apiSetting: new ApiSettingModel(client), - connectedAccountsModule: new ConnectedAccountsModuleModel(client), - cryptoAddressesModule: new CryptoAddressesModuleModel(client), - cryptoAuthModule: new CryptoAuthModuleModel(client), - defaultIdsModule: new DefaultIdsModuleModel(client), - denormalizedTableField: new DenormalizedTableFieldModel(client), - emailsModule: new EmailsModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), - invitesModule: new InvitesModuleModel(client), - eventsModule: new EventsModuleModel(client), - limitsModule: new LimitsModuleModel(client), - membershipTypesModule: new MembershipTypesModuleModel(client), - membershipsModule: new MembershipsModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), - phoneNumbersModule: new PhoneNumbersModuleModel(client), - profilesModule: new ProfilesModuleModel(client), - userStateModule: new UserStateModuleModel(client), - sessionsModule: new SessionsModuleModel(client), - userAuthModule: new UserAuthModuleModel(client), - usersModule: new UsersModuleModel(client), - blueprint: new BlueprintModel(client), - blueprintTemplate: new BlueprintTemplateModel(client), - blueprintConstruction: new BlueprintConstructionModel(client), - storageModule: new StorageModuleModel(client), - entityTypeProvision: new EntityTypeProvisionModel(client), - webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), - webauthnAuthModule: new WebauthnAuthModuleModel(client), - notificationsModule: new NotificationsModuleModel(client), - inferenceLogModule: new InferenceLogModuleModel(client), - computeLogModule: new ComputeLogModuleModel(client), - transferLogModule: new TransferLogModuleModel(client), - storageLogModule: new StorageLogModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), - agentModule: new AgentModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), - functionModule: new FunctionModuleModel(client), - databaseProvisionModule: new DatabaseProvisionModuleModel(client), - appAdminGrant: new AppAdminGrantModel(client), - appOwnerGrant: new AppOwnerGrantModel(client), - appGrant: new AppGrantModel(client), - orgMembership: new OrgMembershipModel(client), - orgMember: new OrgMemberModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - orgMemberProfile: new OrgMemberProfileModel(client), - orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - appLimit: new AppLimitModel(client), - appLimitCredit: new AppLimitCreditModel(client), - appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), - appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), - orgLimit: new OrgLimitModel(client), - orgLimitCredit: new OrgLimitCreditModel(client), - orgLimitAggregate: new OrgLimitAggregateModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), - email: new EmailModel(client), - phoneNumber: new PhoneNumberModel(client), - cryptoAddress: new CryptoAddressModel(client), - webauthnCredential: new WebauthnCredentialModel(client), - appInvite: new AppInviteModel(client), - appClaimedInvite: new AppClaimedInviteModel(client), - orgInvite: new OrgInviteModel(client), - orgClaimedInvite: new OrgClaimedInviteModel(client), - auditLogAuth: new AuditLogAuthModel(client), - identityProvider: new IdentityProviderModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), - roleType: new RoleTypeModel(client), - migrateFile: new MigrateFileModel(client), - devicesModule: new DevicesModuleModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), - nodeTypeRegistry: new NodeTypeRegistryModel(client), - appLimitCapsDefault: new AppLimitCapsDefaultModel(client), - orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), - appLimitCap: new AppLimitCapModel(client), - orgLimitCap: new OrgLimitCapModel(client), - userConnectedAccount: new UserConnectedAccountModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - appLimitWarning: new AppLimitWarningModel(client), - pubkeySetting: new PubkeySettingModel(client), - rateLimitsModule: new RateLimitsModuleModel(client), - membershipType: new MembershipTypeModel(client), - rlsSetting: new RlsSettingModel(client), - rlsModule: new RlsModuleModel(client), - rateLimitMetersModule: new RateLimitMetersModuleModel(client), - plansModule: new PlansModuleModel(client), - sqlAction: new SqlActionModel(client), - databaseSetting: new DatabaseSettingModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), - appMembership: new AppMembershipModel(client), - user: new UserModel(client), - astMigration: new AstMigrationModel(client), - webauthnSetting: new WebauthnSettingModel(client), - billingModule: new BillingModuleModel(client), - billingProviderModule: new BillingProviderModuleModel(client), - hierarchyModule: new HierarchyModuleModel(client), - query: createQueryOperations(client), - mutation: createMutationOperations(client), - }; -} diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts deleted file mode 100644 index 0e9064f57b..0000000000 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ /dev/null @@ -1,42733 +0,0 @@ -/** - * GraphQL types for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -// ============ Scalar Filter Types ============ -export interface StringFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; - includes?: string; - notIncludes?: string; - includesInsensitive?: string; - notIncludesInsensitive?: string; - startsWith?: string; - notStartsWith?: string; - startsWithInsensitive?: string; - notStartsWithInsensitive?: string; - endsWith?: string; - notEndsWith?: string; - endsWithInsensitive?: string; - notEndsWithInsensitive?: string; - like?: string; - notLike?: string; - likeInsensitive?: string; - notLikeInsensitive?: string; -} -export interface IntFilter { - isNull?: boolean; - equalTo?: number; - notEqualTo?: number; - distinctFrom?: number; - notDistinctFrom?: number; - in?: number[]; - notIn?: number[]; - lessThan?: number; - lessThanOrEqualTo?: number; - greaterThan?: number; - greaterThanOrEqualTo?: number; -} -export interface FloatFilter { - isNull?: boolean; - equalTo?: number; - notEqualTo?: number; - distinctFrom?: number; - notDistinctFrom?: number; - in?: number[]; - notIn?: number[]; - lessThan?: number; - lessThanOrEqualTo?: number; - greaterThan?: number; - greaterThanOrEqualTo?: number; -} -export interface BooleanFilter { - isNull?: boolean; - equalTo?: boolean; - notEqualTo?: boolean; -} -export interface UUIDFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; -} -export interface DatetimeFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface DateFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface JSONFilter { - isNull?: boolean; - equalTo?: Record; - notEqualTo?: Record; - distinctFrom?: Record; - notDistinctFrom?: Record; - contains?: Record; - containedBy?: Record; - containsKey?: string; - containsAllKeys?: string[]; - containsAnyKeys?: string[]; -} -export interface BigIntFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface BigFloatFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; -} -export interface BitStringFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; -} -export interface InternetAddressFilter { - isNull?: boolean; - equalTo?: string; - notEqualTo?: string; - distinctFrom?: string; - notDistinctFrom?: string; - in?: string[]; - notIn?: string[]; - lessThan?: string; - lessThanOrEqualTo?: string; - greaterThan?: string; - greaterThanOrEqualTo?: string; - contains?: string; - containsOrEqualTo?: string; - containedBy?: string; - containedByOrEqualTo?: string; - containsOrContainedBy?: string; -} -export interface FullTextFilter { - matches?: string; -} -export interface VectorFilter { - isNull?: boolean; - equalTo?: number[]; - notEqualTo?: number[]; - distinctFrom?: number[]; - notDistinctFrom?: number[]; -} -export interface StringListFilter { - isNull?: boolean; - equalTo?: string[]; - notEqualTo?: string[]; - distinctFrom?: string[]; - notDistinctFrom?: string[]; - lessThan?: string[]; - lessThanOrEqualTo?: string[]; - greaterThan?: string[]; - greaterThanOrEqualTo?: string[]; - contains?: string[]; - containedBy?: string[]; - overlaps?: string[]; - anyEqualTo?: string; - anyNotEqualTo?: string; - anyLessThan?: string; - anyLessThanOrEqualTo?: string; - anyGreaterThan?: string; - anyGreaterThanOrEqualTo?: string; -} -export interface IntListFilter { - isNull?: boolean; - equalTo?: number[]; - notEqualTo?: number[]; - distinctFrom?: number[]; - notDistinctFrom?: number[]; - lessThan?: number[]; - lessThanOrEqualTo?: number[]; - greaterThan?: number[]; - greaterThanOrEqualTo?: number[]; - contains?: number[]; - containedBy?: number[]; - overlaps?: number[]; - anyEqualTo?: number; - anyNotEqualTo?: number; - anyLessThan?: number; - anyLessThanOrEqualTo?: number; - anyGreaterThan?: number; - anyGreaterThanOrEqualTo?: number; -} -export interface UUIDListFilter { - isNull?: boolean; - equalTo?: string[]; - notEqualTo?: string[]; - distinctFrom?: string[]; - notDistinctFrom?: string[]; - lessThan?: string[]; - lessThanOrEqualTo?: string[]; - greaterThan?: string[]; - greaterThanOrEqualTo?: string[]; - contains?: string[]; - containedBy?: string[]; - overlaps?: string[]; - anyEqualTo?: string; - anyNotEqualTo?: string; - anyLessThan?: string; - anyLessThanOrEqualTo?: string; - anyGreaterThan?: string; - anyGreaterThanOrEqualTo?: string; -} -// ============ Enum Types ============ -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; -// ============ Custom Scalar Types ============ -export type Base64EncodedBinary = unknown; -export type ConstructiveInternalTypeAttachment = unknown; -export type ConstructiveInternalTypeEmail = unknown; -export type ConstructiveInternalTypeHostname = unknown; -export type ConstructiveInternalTypeImage = unknown; -export type ConstructiveInternalTypeOrigin = unknown; -export type ConstructiveInternalTypeUpload = unknown; -export type ConstructiveInternalTypeUrl = unknown; -// ============ Entity Types ============ -export interface OrgGetManagersRecord { - userId?: string | null; - depth?: number | null; -} -export interface OrgGetSubordinatesRecord { - userId?: string | null; - depth?: number | null; -} -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface AppPermission { - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; -} -/** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ -export interface OrgPermission { - id: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string | null; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number | null; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string | null; - /** Human-readable description of what this permission allows */ - description?: string | null; -} -export interface Database { - id: string; - ownerId?: string | null; - schemaHash?: string | null; - name?: string | null; - label?: string | null; - hash?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Schema { - id: string; - databaseId?: string | null; - name?: string | null; - schemaName?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - isPublic?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Table { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - useRls?: boolean | null; - timestamps?: boolean | null; - peoplestamps?: boolean | null; - pluralName?: string | null; - singularName?: string | null; - tags?: string[] | null; - partitioned?: boolean | null; - partitionStrategy?: string | null; - partitionKeyNames?: string[] | null; - partitionKeyTypes?: string[] | null; - inheritsId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface CheckConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - expr?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Field { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - defaultValue?: Record | null; - type?: Record | null; - fieldOrder?: number | null; - regexp?: string | null; - chk?: Record | null; - chkExpr?: Record | null; - min?: number | null; - max?: number | null; - tags?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface SpatialRelation { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - refTableId?: string | null; - refFieldId?: string | null; - name?: string | null; - operator?: string | null; - paramName?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface ForeignKeyConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - refTableId?: string | null; - refFieldIds?: string[] | null; - deleteAction?: string | null; - updateAction?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface FullTextSearch { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - fieldIds?: string[] | null; - weights?: string[] | null; - langs?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Index { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - fieldIds?: string[] | null; - includeFieldIds?: string[] | null; - accessMethod?: string | null; - indexParams?: Record | null; - whereClause?: Record | null; - isUnique?: boolean | null; - options?: Record | null; - opClasses?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Policy { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - granteeName?: string | null; - privilege?: string | null; - permissive?: boolean | null; - disabled?: boolean | null; - policyType?: string | null; - data?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface PrimaryKeyConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface TableGrant { - id: string; - databaseId?: string | null; - tableId?: string | null; - privilege?: string | null; - granteeName?: string | null; - fieldIds?: string[] | null; - isGrant?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Trigger { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - event?: string | null; - functionName?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface UniqueConstraint { - id: string; - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface View { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - tableId?: string | null; - viewType?: string | null; - data?: Record | null; - filterType?: string | null; - filterData?: Record | null; - securityInvoker?: boolean | null; - isReadOnly?: boolean | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -/** Junction table linking views to their joined tables for referential integrity */ -export interface ViewTable { - id: string; - viewId?: string | null; - tableId?: string | null; - joinOrder?: number | null; -} -export interface ViewGrant { - id: string; - databaseId?: string | null; - viewId?: string | null; - granteeName?: string | null; - privilege?: string | null; - withGrantOption?: boolean | null; - isGrant?: boolean | null; -} -/** DO INSTEAD rules for views (e.g., read-only enforcement) */ -export interface ViewRule { - id: string; - databaseId?: string | null; - viewId?: string | null; - name?: string | null; - /** INSERT, UPDATE, or DELETE */ - event?: string | null; - /** NOTHING (for read-only) or custom action */ - action?: string | null; -} -export interface EmbeddingChunk { - id: string; - databaseId?: string | null; - tableId?: string | null; - embeddingFieldId?: string | null; - chunksTableId?: string | null; - chunksTableName?: string | null; - contentFieldName?: string | null; - dimensions?: number | null; - metric?: string | null; - chunkSize?: number | null; - chunkOverlap?: number | null; - chunkStrategy?: string | null; - metadataFields?: Record | null; - searchIndexes?: Record | null; - enqueueChunkingJob?: boolean | null; - chunkingTaskName?: string | null; - embeddingModel?: string | null; - embeddingProvider?: string | null; - parentFkFieldId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ -export interface SecureTableProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database this provision belongs to. Required. */ - databaseId?: string | null; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string | null; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string | null; - /** 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 | null; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: Record | null; - /** 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 | null; - /** 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?: Record[] | null; - /** 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?: Record | null; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: Record | null; - /** 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; -} -/** - * 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. */ - databaseId?: string | null; - /** - * 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 | null; - /** - * 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?: string | null; - /** - * 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?: string | null; - /** - * 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 | null; - /** 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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?: string | null; - /** 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 | null; - /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ - junctionSchemaId?: string | null; - /** 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 | null; - /** 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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 | null; - /** - * 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?: Record | null; - /** 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?: Record | null; - /** - * 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?: Record | null; - /** 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?: string | null; - /** 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?: string | null; - /** 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?: string | null; - /** 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; -} -/** 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; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - /** 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 identity_providers_module, which provisions a per-database identity_providers config table holding OAuth2 / OIDC (and future SAML) provider definitions: protocol kind, endpoint URLs, encrypted client secret, scopes, audience validation, PKCE, and email-handling flags. Built-in providers (google, github, apple, ...) are seeded as is_built_in=true rows; custom providers use slugs of the form custom:. */ -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; - tableId?: string | null; - tableName?: 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; -} -/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ -export interface ConfigSecretsOrgModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface SchemaGrant { - id: string; - databaseId?: string | null; - schemaId?: string | null; - granteeName?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface DefaultPrivilege { - id: string; - databaseId?: string | null; - schemaId?: string | null; - objectType?: string | null; - privilege?: string | null; - granteeName?: string | null; - isGrant?: boolean | null; -} -export interface Enum { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - values?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface Function { - id: string; - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; -} -/** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ -export interface ApiSchema { - /** Unique identifier for this API-schema mapping */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Metaschema schema being exposed through the API */ - schemaId?: string | null; - /** API that exposes this schema */ - apiId?: string | null; -} -/** Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server */ -export interface ApiModule { - /** Unique identifier for this API module record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** API this module configuration belongs to */ - apiId?: string | null; - /** Module name (e.g. auth, uploads, webhooks) */ - name?: string | null; - /** JSON configuration data for this module */ - data?: Record | null; -} -/** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ -export interface Domain { - /** Unique identifier for this domain record */ - id: string; - /** Reference to the metaschema database this domain belongs to */ - databaseId?: string | null; - /** API endpoint this domain routes to (mutually exclusive with site_id) */ - apiId?: string | null; - /** Site this domain routes to (mutually exclusive with api_id) */ - siteId?: string | null; - /** Subdomain portion of the hostname */ - subdomain?: ConstructiveInternalTypeHostname | null; - /** Root domain of the hostname */ - domain?: ConstructiveInternalTypeHostname | null; -} -/** SEO and social sharing metadata for a site: page title, description, and Open Graph image */ -export interface SiteMetadatum { - /** Unique identifier for this metadata record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this metadata belongs to */ - siteId?: string | null; - /** Page title for SEO (max 120 characters) */ - title?: string | null; - /** Meta description for SEO and social sharing (max 120 characters) */ - description?: string | null; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage | null; -} -/** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ -export interface SiteModule { - /** Unique identifier for this site module record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this module configuration belongs to */ - siteId?: string | null; - /** Module name (e.g. user_auth_module, analytics) */ - name?: string | null; - /** JSON configuration data for this module */ - data?: Record | null; -} -/** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ -export interface SiteTheme { - /** Unique identifier for this theme record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Site this theme belongs to */ - siteId?: string | null; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme?: Record | null; -} -/** Per-database and per-API CORS origin configuration; typed replacement for api_modules cors JSONB entries */ -export interface CorsSetting { - /** Unique identifier for this CORS settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Optional API for per-API override; NULL means database-wide default */ - apiId?: string | null; - /** Array of allowed CORS origins (e.g. https://example.com) */ - allowedOrigins?: string[] | null; -} -export interface MerkleStoreModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - createdAt?: string | null; -} -export interface GraphModule { - id: string; - databaseId?: string | null; - publicSchemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - prefix?: string | null; - merkleStoreModuleId?: string | null; - graphsTableId?: string | null; - executionsTableId?: string | null; - outputsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - createdAt?: string | null; -} -export interface TriggerFunction { - id: string; - databaseId?: string | null; - name?: string | null; - code?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface Partition { - id: string; - databaseId?: string | null; - tableId?: string | null; - strategy?: string | null; - partitionKeyId?: string | null; - interval?: string | null; - retention?: string | null; - retentionKeepTable?: boolean | null; - premake?: number | null; - namingPattern?: string | null; - isParented?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -export interface DatabaseTransfer { - id: string; - databaseId?: string | null; - targetOwnerId?: string | null; - sourceApproved?: boolean | null; - targetApproved?: boolean | null; - sourceApprovedAt?: string | null; - targetApprovedAt?: string | null; - status?: string | null; - initiatedBy?: string | null; - notes?: string | null; - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - completedAt?: string | null; -} -/** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ -export interface Api { - /** Unique identifier for this API */ - id: string; - /** Reference to the metaschema database this API serves */ - databaseId?: string | null; - /** Unique name for this API within its database */ - name?: string | null; - /** PostgreSQL database name to connect to */ - dbname?: string | null; - /** PostgreSQL role used for authenticated requests */ - roleName?: string | null; - /** PostgreSQL role used for anonymous/unauthenticated requests */ - anonRole?: string | null; - /** Whether this API is publicly accessible without authentication */ - isPublic?: boolean | null; -} -/** Top-level site configuration: branding assets, title, and description for a deployed application */ -export interface Site { - /** Unique identifier for this site */ - id: string; - /** Reference to the metaschema database this site belongs to */ - databaseId?: string | null; - /** Display title for the site (max 120 characters) */ - title?: string | null; - /** Short description of the site (max 120 characters) */ - description?: string | null; - /** Open Graph image used for social media link previews */ - ogImage?: ConstructiveInternalTypeImage | null; - /** Browser favicon attachment */ - favicon?: ConstructiveInternalTypeAttachment | null; - /** Apple touch icon for iOS home screen bookmarks */ - appleTouchIcon?: ConstructiveInternalTypeImage | null; - /** Primary logo image for the site */ - logo?: ConstructiveInternalTypeImage | null; - /** PostgreSQL database name this site connects to */ - dbname?: string | null; -} -/** Mobile and native app configuration linked to a site, including store links and identifiers */ -export interface App { - /** Unique identifier for this app */ - id: string; - /** Reference to the metaschema database this app belongs to */ - databaseId?: string | null; - /** Site this app is associated with (one app per site) */ - siteId?: string | null; - /** Display name of the app */ - name?: string | null; - /** App icon or promotional image */ - appImage?: ConstructiveInternalTypeImage | null; - /** URL to the Apple App Store listing */ - appStoreLink?: ConstructiveInternalTypeUrl | null; - /** Apple App Store application identifier */ - appStoreId?: string | null; - /** Apple App ID prefix (Team ID) for universal links and associated domains */ - appIdPrefix?: string | null; - /** URL to the Google Play Store listing */ - playStoreLink?: ConstructiveInternalTypeUrl | null; -} -/** Per-API feature flag overrides; NULL columns inherit from database_settings, explicit true/false overrides the database default */ -export interface ApiSetting { - /** Unique identifier for this API settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** API these settings override for */ - apiId?: string | null; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ - enableAggregates?: boolean | null; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ - enablePostgis?: boolean | null; - /** Override: enable unified search (NULL = inherit from database_settings) */ - enableSearch?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ - enablePresignedUploads?: boolean | null; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ - enableManyToMany?: boolean | null; - /** Override: enable connection filter (NULL = inherit from database_settings) */ - enableConnectionFilter?: boolean | null; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ - enableLtree?: boolean | null; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ - enableLlm?: boolean | null; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ - enableRealtime?: boolean | null; - /** Override: enable bulk mutations (NULL = inherit from database_settings) */ - enableBulk?: boolean | null; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ - options?: Record | null; -} -export interface ConnectedAccountsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface CryptoAddressesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; - cryptoNetwork?: string | null; -} -export interface CryptoAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - addressesTableId?: string | null; - userField?: string | null; - cryptoNetwork?: string | null; - signInRequestChallenge?: string | null; - signInRecordFailure?: string | null; - signUpWithKey?: string | null; - signInWithChallenge?: string | null; -} -export interface DefaultIdsModule { - id: string; - databaseId?: string | null; -} -export interface DenormalizedTableField { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} -export interface EmailsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface ConfigSecretsUserModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - configDefinitionsTableId?: string | null; -} -export interface InvitesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; -} -export interface EventsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface LimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - limitIncrementFunction?: string | null; - limitDecrementFunction?: string | null; - limitIncrementTrigger?: string | null; - limitDecrementTrigger?: string | null; - limitUpdateTrigger?: string | null; - limitCheckFunction?: string | null; - limitCreditsTableId?: string | null; - eventsTableId?: string | null; - creditCodesTableId?: string | null; - creditCodeItemsTableId?: string | null; - creditRedemptionsTableId?: string | null; - aggregateTableId?: string | null; - limitCapsTableId?: string | null; - limitCapsDefaultsTableId?: string | null; - capCheckTrigger?: string | null; - resolveCapFunction?: string | null; - limitWarningsTableId?: string | null; - limitWarningStateTableId?: string | null; - limitCheckSoftFunction?: string | null; - limitAggregateCheckSoftFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface MembershipTypesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface MembershipsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - prefix?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; -} -export interface PermissionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - prefix?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; -} -export interface PhoneNumbersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface ProfilesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - prefix?: string | null; -} -export interface UserStateModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface SessionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - authSettingsTableId?: string | null; - usersTableId?: string | null; - sessionsDefaultExpiration?: string | null; - sessionsTable?: string | null; - sessionCredentialsTable?: string | null; - authSettingsTable?: string | null; -} -export interface UserAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - encryptedTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - auditsTableName?: string | null; - signInFunction?: string | null; - signUpFunction?: string | null; - signOutFunction?: string | null; - setPasswordFunction?: string | null; - resetPasswordFunction?: string | null; - forgotPasswordFunction?: string | null; - sendVerificationEmailFunction?: string | null; - verifyEmailFunction?: string | null; - verifyPasswordFunction?: string | null; - checkPasswordFunction?: string | null; - sendAccountDeletionEmailFunction?: string | null; - deleteAccountFunction?: string | null; - signInCrossOriginFunction?: string | null; - requestCrossOriginTokenFunction?: string | null; - extendTokenExpires?: string | null; -} -export interface UsersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - typeTableId?: string | null; - typeTableName?: string | null; -} -/** An owned, editable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition at any time. Execute it with construct_blueprint() which creates a separate blueprint_construction record to track the build. */ -export interface Blueprint { - /** Unique identifier for this blueprint. */ - id: string; - /** The user who owns this blueprint. */ - ownerId?: string | null; - /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ - databaseId?: string | null; - /** Machine-readable name for the blueprint. Must be unique per database. */ - name?: string | null; - /** Human-readable display name for the blueprint. */ - displayName?: string | null; - /** Optional description of the blueprint. */ - description?: string | null; - /** 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?: Record | null; - /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ - templateId?: string | null; - /** 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 | null; - /** 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?: Record | null; - /** Timestamp when this blueprint was created. */ - createdAt?: string | null; - /** Timestamp when this blueprint was last modified. */ - updatedAt?: string | null; -} -/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ -export interface BlueprintTemplate { - /** Unique identifier for this template. */ - id: string; - /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ - name?: string | null; - /** Semantic version string. Defaults to 1.0.0. */ - version?: string | null; - /** Human-readable display name for the template (e.g. E-Commerce Basic). */ - displayName?: string | null; - /** Optional description of what the template provisions. */ - description?: string | null; - /** The user who created or published this template. */ - ownerId?: string | null; - /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ - visibility?: string | null; - /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ - categories?: string[] | null; - /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ - tags?: string[] | null; - /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ - definition?: Record | null; - /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ - definitionSchemaVersion?: string | null; - /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ - source?: string | null; - /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ - complexity?: string | null; - /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ - copyCount?: number | null; - /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ - forkCount?: number | null; - /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ - forkedFromId?: string | null; - /** 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?: string | null; - /** 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?: Record | null; - /** Timestamp when this template was created. */ - createdAt?: string | null; - /** Timestamp when this template was last modified. */ - updatedAt?: string | null; -} -/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here. This separates the editable blueprint definition from its build history, allowing blueprints to be re-executed, constructed into multiple databases, and maintain an audit trail of all construction attempts. */ -export interface BlueprintConstruction { - /** Unique identifier for this construction attempt. */ - id: string; - /** The blueprint that was constructed. */ - blueprintId?: string | null; - /** The database the blueprint was constructed into. */ - databaseId?: string | null; - /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ - schemaId?: string | null; - /** 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 | null; - /** Error message from a failed construction attempt. NULL unless status is failed. */ - errorDetails?: string | null; - /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ - tableMap?: Record | null; - /** 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?: Record | null; - /** Timestamp when construction successfully completed. NULL until constructed. */ - constructedAt?: string | null; - /** Timestamp when this construction attempt was created. */ - createdAt?: string | null; - /** Timestamp when this construction attempt was last modified. */ - updatedAt?: string | null; -} -export interface StorageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - membershipType?: number | null; - key?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: string | null; - fileEventsTableId?: 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). - * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - * Set table_provision to a single jsonb object (using the same shape as provision_table() / - * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - * as an escape hatch to apply zero policies. - */ -export interface EntityTypeProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database to provision this entity type in. Required. */ - databaseId?: string | null; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name?: string | null; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ - prefix?: string | null; - /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ - description?: string | null; - /** - * Prefix of the parent entity type. The trigger resolves this to a membership_type integer - * by looking up memberships_module WHERE prefix = parent_entity. - * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix - * (e.g. 'data_room' for a team_channel nested under data_room). - * The parent type must already be provisioned before this INSERT. - */ - parentEntity?: string | null; - /** - * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' - * (e.g. prefix 'data_room' produces table 'data_rooms'). - * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). - */ - tableName?: string | null; - /** - * Whether members of the parent entity can see child entities. Defaults to true. - * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). - * When false: only direct members of the entity itself can see it (private entity mode). - * Controls whether the parent_member SELECT policy is created on the entity table. - * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or - * skip_entity_policies=true, since no default policies are being applied in those cases. - */ - isVisible?: boolean | null; - /** - * Whether to apply limits_module security for this type. Defaults to false. - * The limits_module table structure is always created (memberships_module requires it), - * but when false, no RLS policies are applied to the limits tables. - * Set to true if this entity type needs configurable resource limits per membership. - */ - hasLimits?: boolean | null; - /** - * Whether to provision profiles_module for this type. Defaults to false. - * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. - * When true, creates profile tables and applies profiles security. - */ - hasProfiles?: boolean | null; - /** - * Whether to provision events_module for this type. Defaults to false. - * Levels provide gamification/achievement tracking for members. - * When true, creates level steps, achievements, and level tables with security. - */ - hasLevels?: boolean | null; - /** - * Whether to provision invites_module for this type. Defaults to false. - * When true, the trigger inserts a row into invites_module which in turn - * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and - * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. - * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint - * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes - * repeated INSERTs safe. - */ - hasInvites?: boolean | null; - /** - * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based - * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. - * When true, the trigger calls event_tracker() on the claimed_invites table with - * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], - * crediting the SENDER (inviter) when someone claims their invite code. - * Developers can then define achievements in the blueprint achievements[] section - * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). - */ - hasInviteAchievements?: boolean | null; - /** - * Optional JSON array of storage module definitions. Presence triggers provisioning - * (same inference model as namespaces, functions, agents). - * Each element provisions a separate storage module with its own tables - * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. - * NULL = do not provision storage. '[{}]' = provision one default storage module. - * Each array element recognizes (all optional): - * - key (text) module discriminator, max 16 chars, lowercase snake_case. - * Defaults to 'default' (omitted from table names). - * Non-default keys become infixes: {prefix}_{key}_buckets. - * (storage_key accepted for backward compat) - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this module - * - allowed_origins (text[]) default CORS origins for all buckets in this module - * - restrict_reads (boolean) require read_files permission for SELECT on files - * - has_path_shares (boolean) enable virtual filesystem + path share policies - * - has_versioning (boolean) enable file version chains - * - has_content_hash (boolean) enable content hash for dedup - * - has_custom_keys (boolean) allow client-provided S3 keys - * - has_audit_log (boolean) enable file events audit table - * - has_confirm_upload (boolean) enable HeadObject confirmation flow - * - confirm_upload_delay (interval) delay before first confirmation attempt - * - buckets (jsonb[]) array of initial bucket definitions to seed. - * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } - * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". - * Each value: { nodes, fields, grants, use_rls, policies }. - * Example (single module, backward compat): - * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb - * Example (multi-module): - * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb - */ - storage?: Record | null; - /** - * Optional JSON array of namespace module definitions. Presence triggers provisioning. - * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). - * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) - * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. - * Registers manage_namespaces permission bit on first provision. - * Example: namespaces := '[{}]'::jsonb - */ - namespaces?: Record | null; - /** - * Optional JSON array of function module definitions. Presence triggers provisioning. - * NULL = do not provision functions. '[{}]' = provision one default function module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). - * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) - * with entity-scoped RLS and a job trigger dispatching function:provision tasks. - * Registers manage_functions + invoke_functions permission bits on first provision. - * Example: functions := '[{}]'::jsonb - */ - functions?: Record | null; - /** - * Optional JSON array of graph module definitions. Presence triggers provisioning. - * NULL = do not provision graphs. '[{}]' = provision one default graph module. - * Each element recognizes (all optional): - * - key (text) module discriminator. Defaults to 'default'. - * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). - * Registers manage_graphs + execute_graphs permission bits on first provision. - * Graph module requires a merkle_store_module_id dependency, so entity_type_provision - * only registers permissions here. The graph module itself must be provisioned - * separately with the merkle store dependency resolved. - * Example: graphs := '[{}]'::jsonb - */ - graphs?: Record | null; - agents?: Record | null; - /** - * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. - * Use this only when you want the entity table provisioned with zero policies (e.g. because you - * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this - * false and either accepting the five defaults (table_provision=NULL) or overriding them via - * table_provision. - * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): - * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) - * - SELECT (self_member): direct members of the entity can see it - * - INSERT: create_entity permission on the parent entity - * - UPDATE: admin_entity permission on the entity itself - * - DELETE: owner of the entity can delete it - */ - skipEntityPolicies?: boolean | null; - /** - * Single jsonb object describing the full security setup to apply to the entity table. - * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] - * entries, so an entity table is configured the same way an ordinary blueprint table is. - * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by - * table_provision.policies[] (is_visible becomes a no-op on this path). - * Recognized keys (all optional): - * - use_rls (boolean, default true) - * - nodes (jsonb array of {"$type","data"} Data* module entries) - * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) - * - grants (jsonb array of grant objects; each with roles[] and privileges[]) - * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) - * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row - * against the newly created entity table. - * Example — override with two SELECT policies: - * table_provision := jsonb_build_object( - * 'policies', jsonb_build_array( - * jsonb_build_object( - * '$type', 'AuthzEntityMembership', - * 'privileges', jsonb_build_array('select'), - * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), - * 'name', 'self_member' - * ), - * jsonb_build_object( - * '$type', 'AuthzDirectOwner', - * 'privileges', jsonb_build_array('select', 'update'), - * 'data', jsonb_build_object('owner_field', 'owner_id') - * ) - * ) - * ) - */ - tableProvision?: Record | null; - /** - * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - * This is the ID used in entity_types, memberships_module, and all module tables. - */ - outMembershipType?: number | null; - /** - * Output: the UUID of the created entity table. Populated by the trigger. - * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - */ - outEntityTableId?: string | null; - /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ - outEntityTableName?: string | null; - /** - * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - * Populated by the trigger. Useful for verifying which modules were provisioned. - */ - outInstalledModules?: string[] | null; - /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ - outStorageModuleId?: string | null; - /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ - outBucketsTableId?: string | null; - /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - /** - * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - * (i.e. the invites_module row was created in a previous run). - */ - outInvitesModuleId?: string | null; - /** - * Output: the UUID of the namespace_module row created (or found) for this entity type. - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceModuleId?: string | null; - /** - * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - * Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespacesTableId?: string | null; - /** - * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. - */ - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -/** 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. */ -export interface WebauthnCredentialsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface WebauthnAuthModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - authSettingsTableId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpiry?: string | null; -} -export interface NotificationsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; -} -export interface InferenceLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface ComputeLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface TransferLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface StorageLogModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface DbUsageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; -} -export interface AgentModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - threadTableId?: string | null; - messageTableId?: string | null; - taskTableId?: string | null; - promptsTableId?: string | null; - knowledgeTableId?: string | null; - threadTableName?: string | null; - messageTableName?: string | null; - taskTableName?: string | null; - promptsTableName?: string | null; - knowledgeTableName?: string | null; - hasKnowledge?: boolean | null; - apiName?: string | null; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - knowledgeConfig?: Record | null; - knowledgePolicies?: Record | null; - provisions?: Record | null; -} -export interface NamespaceModule { - id: string; - 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; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface FunctionModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - membershipType?: number | null; - prefix?: string | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | 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 | 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; - /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ - modules?: string[] | null; - /** Additional configuration options for provisioning */ - options?: Record | null; - /** 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; -} -/** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { - id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of individual permission grants and revocations for members via bitmask */ -export interface AppGrant { - id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} -/** Simplified view of active members in an entity, used for listing who belongs to an org or group */ -export interface OrgMember { - id: string; - /** Whether this member has admin privileges */ - isAdmin?: boolean | null; - /** References the user who is a member */ - actorId?: string | null; - /** References the entity (org or group) this member belongs to */ - entityId?: string | null; -} -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { - id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { - id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ -export interface OrgChartEdgeGrant { - id: string; - /** Organization this grant applies to */ - entityId?: string | null; - /** User ID of the subordinate being placed in the hierarchy */ - childId?: string | null; - /** User ID of the manager being assigned; NULL for top-level positions */ - parentId?: string | null; - /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ - grantorId?: string | null; - /** TRUE to add/update the edge, FALSE to remove it */ - isGrant?: boolean | null; - /** Job title or role name being assigned in this grant */ - positionTitle?: string | null; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number | null; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface AppLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Items within a credit code — each row grants credits for a specific limit definition */ -export interface AppLimitCreditCodeItem { - id: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string | null; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string | null; - /** Number of credits this item grants per redemption */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; -} -/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ -export interface AppLimitCreditRedemption { - id: string; - /** FK to credit_codes — which code is being redeemed */ - creditCodeId?: string | null; - /** Entity receiving the credits (personal org user_id or org entity_id) */ - entityId?: string | null; -} -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { - id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: string | null; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - entityId?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Append-only ledger of credit grants that automatically update limit ceilings */ -export interface OrgLimitCredit { - id: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string | null; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string | null; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string | null; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string | null; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string | null; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string | null; -} -/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ -export interface OrgLimitAggregate { - id: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string | null; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string | null; - /** Current aggregate usage count for this entity and limit */ - num?: string | null; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string | null; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string | null; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: string | null; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string | null; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string | null; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string | null; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string | null; - /** Resolved billable organization via get_organization_id */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; -} -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** User phone numbers with country code, verification, and primary-number management */ -export interface PhoneNumber { - id: string; - ownerId?: string | null; - /** Country calling code (e.g. +1, +44) */ - cc?: string | null; - /** The phone number without country code */ - number?: string | null; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean | null; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean | null; - /** Optional user-provided label for this phone number (e.g. "Mobile", "Work"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ -export interface CryptoAddress { - id: string; - ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean | null; - /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ - name?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. */ -export interface WebauthnCredential { - id: string; - ownerId?: string | null; - /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ - credentialId?: string | null; - /** COSE-encoded public key bytes from the authenticator attestation. */ - publicKey?: Base64EncodedBinary | null; - /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ - signCount?: string | null; - /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ - webauthnUserId?: string | null; - /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ - transports?: string[] | null; - /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ - credentialDeviceType?: string | null; - /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ - backupEligible?: boolean | null; - /** Current backup state; updated on each successful sign-in assertion. */ - backupState?: boolean | null; - /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ - name?: string | null; - /** Timestamp of the most recent successful sign-in assertion using this credential. */ - lastUsedAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface AppClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface OrgInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - entityId?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface OrgClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - entityId?: string | null; -} -/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLogAuth { - createdAt?: string | null; - /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ - id: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string | null; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string | null; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin | null; - /** Browser or client user-agent string from the request */ - userAgent?: string | null; - /** IP address of the client that initiated the auth event */ - ipAddress?: string | null; - /** Whether the authentication attempt succeeded */ - success?: boolean | null; -} -export interface IdentityProvider { - slug?: string | null; - kind?: string | null; - displayName?: string | null; - enabled?: boolean | null; - isBuiltIn?: boolean | null; -} -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; -} -export interface RoleType { - id: number; - name?: string | null; -} -export interface MigrateFile { - id: string; - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface DevicesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} -export interface NodeTypeRegistry { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} -/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ -export interface PubkeySetting { - /** Unique identifier for this pubkey settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string | null; - /** Field name used to identify the user in crypto auth functions */ - userField?: string | null; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string | null; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string | null; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string | null; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string | null; -} -export interface RateLimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; -} -/** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ -export interface RlsSetting { - /** Unique identifier for this RLS settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ - authenticateSchemaId?: string | null; - /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ - roleSchemaId?: string | null; - /** Reference to the authenticate function (FK to metaschema_public.function) */ - authenticateFunctionId?: string | null; - /** Reference to the strict authenticate function (FK to metaschema_public.function) */ - authenticateStrictFunctionId?: string | null; - /** Reference to the current_role function (FK to metaschema_public.function) */ - currentRoleFunctionId?: string | null; - /** Reference to the current_role_id function (FK to metaschema_public.function) */ - currentRoleIdFunctionId?: string | null; - /** Reference to the current_user_agent function (FK to metaschema_public.function) */ - currentUserAgentFunctionId?: string | null; - /** Reference to the current_ip_address function (FK to metaschema_public.function) */ - currentIpAddressFunctionId?: string | null; -} -export interface RlsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface PlansModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface SqlAction { - id: number; - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ -export interface DatabaseSetting { - /** Unique identifier for this settings record */ - id: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string | null; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean | null; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean | null; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean | null; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean | null; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean | null; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean | null; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean | null; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean | null; - /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ - enableBulk?: boolean | null; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: Record | null; -} -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ - entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - createdAt?: string | null; - /** Unique identifier for each limit event */ - id: string; - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Resolved billable organization via get_organization_id; NULL for app-level events */ - organizationId?: string | null; - /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ - entityType?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - searchTsvRank?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -/** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ -export interface WebauthnSetting { - /** Unique identifier for this WebAuthn settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ - credentialsSchemaId?: string | null; - /** Schema of the sessions table (FK to metaschema_public.schema) */ - sessionsSchemaId?: string | null; - /** Schema of the session_secrets table (FK to metaschema_public.schema) */ - sessionSecretsSchemaId?: string | null; - /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ - credentialsTableId?: string | null; - /** Reference to the sessions table (FK to metaschema_public.table) */ - sessionsTableId?: string | null; - /** Reference to the session_credentials table (FK to metaschema_public.table) */ - sessionCredentialsTableId?: string | null; - /** Reference to the session_secrets table (FK to metaschema_public.table) */ - sessionSecretsTableId?: string | null; - /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ - userFieldId?: string | null; - /** WebAuthn Relying Party ID (typically the domain name) */ - rpId?: string | null; - /** WebAuthn Relying Party display name */ - rpName?: string | null; - /** Allowed origins for WebAuthn registration and authentication */ - originAllowlist?: string[] | null; - /** Attestation conveyance preference (none, indirect, direct, enterprise) */ - attestationType?: string | null; - /** Whether to require user verification (biometric/PIN) during auth */ - requireUserVerification?: boolean | null; - /** Resident key requirement (discouraged, preferred, required) */ - residentKey?: string | null; - /** Challenge TTL in seconds (default 300 = 5 minutes) */ - challengeExpirySeconds?: string | null; -} -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface BillingProviderModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; -} -export interface HierarchyModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; - createdAt?: 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 OrgGetManagersRecordRelations {} -export interface OrgGetSubordinatesRecordRelations {} -export interface AppPermissionRelations {} -export interface OrgPermissionRelations {} -export interface DatabaseRelations { - owner?: User | null; - databaseSetting?: DatabaseSetting | null; - rlsSetting?: RlsSetting | null; - pubkeySetting?: PubkeySetting | null; - webauthnSetting?: WebauthnSetting | null; - rlsModule?: RlsModule | null; - hierarchyModule?: HierarchyModule | null; - rateLimitsModule?: RateLimitsModule | null; - devicesModule?: DevicesModule | null; - plansModule?: PlansModule | null; - billingModule?: BillingModule | null; - billingProviderModule?: BillingProviderModule | null; - rateLimitMetersModule?: RateLimitMetersModule | null; - schemas?: ConnectionResult; - tables?: ConnectionResult
; - checkConstraints?: ConnectionResult; - fields?: ConnectionResult; - foreignKeyConstraints?: ConnectionResult; - fullTextSearches?: ConnectionResult; - indices?: ConnectionResult; - policies?: ConnectionResult; - primaryKeyConstraints?: ConnectionResult; - schemaGrants?: ConnectionResult; - tableGrants?: ConnectionResult; - triggerFunctions?: ConnectionResult; - triggers?: ConnectionResult; - uniqueConstraints?: ConnectionResult; - views?: ConnectionResult; - viewGrants?: ConnectionResult; - viewRules?: ConnectionResult; - defaultPrivileges?: ConnectionResult; - enums?: ConnectionResult; - embeddingChunks?: ConnectionResult; - spatialRelations?: ConnectionResult; - functions?: ConnectionResult; - partitions?: ConnectionResult; - databaseTransfers?: ConnectionResult; - apis?: ConnectionResult; - apiModules?: ConnectionResult; - apiSchemas?: ConnectionResult; - sites?: ConnectionResult; - apps?: ConnectionResult; - domains?: ConnectionResult; - siteMetadata?: ConnectionResult; - siteModules?: ConnectionResult; - siteThemes?: ConnectionResult; - apiSettings?: ConnectionResult; - corsSettings?: ConnectionResult; - connectedAccountsModules?: ConnectionResult; - cryptoAddressesModules?: ConnectionResult; - cryptoAuthModules?: ConnectionResult; - defaultIdsModules?: ConnectionResult; - denormalizedTableFields?: ConnectionResult; - emailsModules?: ConnectionResult; - configSecretsUserModules?: ConnectionResult; - invitesModules?: ConnectionResult; - eventsModules?: ConnectionResult; - limitsModules?: ConnectionResult; - membershipTypesModules?: ConnectionResult; - membershipsModules?: ConnectionResult; - permissionsModules?: ConnectionResult; - phoneNumbersModules?: ConnectionResult; - profilesModules?: ConnectionResult; - userStateModules?: ConnectionResult; - sessionsModules?: ConnectionResult; - userAuthModules?: ConnectionResult; - usersModules?: ConnectionResult; - secureTableProvisions?: ConnectionResult; - relationProvisions?: ConnectionResult; - blueprints?: ConnectionResult; - blueprintConstructions?: ConnectionResult; - storageModules?: ConnectionResult; - entityTypeProvisions?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - webauthnCredentialsModules?: ConnectionResult; - webauthnAuthModules?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - notificationsModules?: ConnectionResult; - realtimeModules?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; - inferenceLogModules?: ConnectionResult; - computeLogModules?: ConnectionResult; - transferLogModules?: ConnectionResult; - storageLogModules?: ConnectionResult; - dbUsageModules?: ConnectionResult; - agentModules?: ConnectionResult; - merkleStoreModules?: ConnectionResult; - graphModules?: ConnectionResult; - namespaceModules?: ConnectionResult; - functionModules?: ConnectionResult; - databaseProvisionModules?: ConnectionResult; -} -export interface SchemaRelations { - database?: Database | null; - tables?: ConnectionResult
; - schemaGrants?: ConnectionResult; - views?: ConnectionResult; - defaultPrivileges?: ConnectionResult; - enums?: ConnectionResult; - functions?: ConnectionResult; - apiSchemas?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - identityProvidersModulesByPrivateSchemaId?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - realtimeModulesByPrivateSchemaId?: ConnectionResult; - realtimeModules?: ConnectionResult; - realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; - merkleStoreModulesByPrivateSchemaId?: ConnectionResult; -} -export interface TableRelations { - database?: Database | null; - schema?: Schema | null; - inherits?: Table | null; - partition?: Partition | null; - checkConstraints?: ConnectionResult; - fields?: ConnectionResult; - foreignKeyConstraints?: ConnectionResult; - fullTextSearches?: ConnectionResult; - indices?: ConnectionResult; - policies?: ConnectionResult; - primaryKeyConstraints?: ConnectionResult; - tableGrants?: ConnectionResult; - triggers?: ConnectionResult; - uniqueConstraints?: ConnectionResult; - views?: ConnectionResult; - viewTables?: ConnectionResult; - embeddingChunksByChunksTableId?: ConnectionResult; - embeddingChunks?: ConnectionResult; - spatialRelationsByRefTableId?: ConnectionResult; - spatialRelations?: ConnectionResult; - secureTableProvisions?: ConnectionResult; - relationProvisionsBySourceTableId?: ConnectionResult; - relationProvisionsByTargetTableId?: ConnectionResult; - sessionSecretsModulesBySessionsTableId?: ConnectionResult; - sessionSecretsModules?: ConnectionResult; - identityProvidersModules?: ConnectionResult; - realtimeModulesByChangeLogTableId?: ConnectionResult; - realtimeModulesByListenerNodeTableId?: ConnectionResult; - realtimeModulesBySourceRegistryTableId?: ConnectionResult; - configSecretsOrgModules?: ConnectionResult; -} -export interface CheckConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface FieldRelations { - database?: Database | null; - table?: Table | null; - spatialRelations?: ConnectionResult; - spatialRelationsByRefFieldId?: ConnectionResult; -} -export interface SpatialRelationRelations { - database?: Database | null; - field?: Field | null; - refField?: Field | null; - refTable?: Table | null; - table?: Table | null; -} -export interface ForeignKeyConstraintRelations { - database?: Database | null; - refTable?: Table | null; - table?: Table | null; -} -export interface FullTextSearchRelations { - database?: Database | null; - table?: Table | null; -} -export interface IndexRelations { - database?: Database | null; - table?: Table | null; -} -export interface PolicyRelations { - database?: Database | null; - table?: Table | null; -} -export interface PrimaryKeyConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface TableGrantRelations { - database?: Database | null; - table?: Table | null; -} -export interface TriggerRelations { - database?: Database | null; - table?: Table | null; -} -export interface UniqueConstraintRelations { - database?: Database | null; - table?: Table | null; -} -export interface ViewRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; - viewTables?: ConnectionResult; - viewGrants?: ConnectionResult; - viewRules?: ConnectionResult; -} -export interface ViewTableRelations { - table?: Table | null; - view?: View | null; -} -export interface ViewGrantRelations { - database?: Database | null; - view?: View | null; -} -export interface ViewRuleRelations { - database?: Database | null; - view?: View | null; -} -export interface EmbeddingChunkRelations { - chunksTable?: Table | null; - database?: Database | null; - embeddingField?: Field | null; - parentFkField?: Field | null; - table?: Table | null; -} -export interface SecureTableProvisionRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface RelationProvisionRelations { - database?: Database | null; - sourceTable?: Table | null; - targetTable?: Table | null; -} -export interface SessionSecretsModuleRelations { - database?: Database | null; - schema?: Schema | null; - sessionsTable?: Table | null; - table?: Table | null; -} -export interface IdentityProvidersModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface RealtimeModuleRelations { - changeLogTable?: Table | null; - database?: Database | null; - listenerNodeTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sourceRegistryTable?: Table | null; - subscriptionsSchema?: Schema | null; -} -export interface ConfigSecretsOrgModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface SchemaGrantRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface DefaultPrivilegeRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface EnumRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface FunctionRelations { - database?: Database | null; - schema?: Schema | null; -} -export interface ApiSchemaRelations { - api?: Api | null; - database?: Database | null; - schema?: Schema | null; -} -export interface ApiModuleRelations { - api?: Api | null; - database?: Database | null; -} -export interface DomainRelations { - api?: Api | null; - database?: Database | null; - site?: Site | null; -} -export interface SiteMetadatumRelations { - database?: Database | null; - site?: Site | null; -} -export interface SiteModuleRelations { - database?: Database | null; - site?: Site | null; -} -export interface SiteThemeRelations { - database?: Database | null; - site?: Site | null; -} -export interface CorsSettingRelations { - api?: Api | null; - database?: Database | null; -} -export interface MerkleStoreModuleRelations { - commitTable?: Table | null; - database?: Database | null; - objectTable?: Table | null; - privateSchema?: Schema | null; - refTable?: Table | null; - schema?: Schema | null; - storeTable?: Table | null; - graphModules?: ConnectionResult; -} -export interface GraphModuleRelations { - database?: Database | null; - executionsTable?: Table | null; - entityTable?: Table | null; - graphsTable?: Table | null; - merkleStoreModule?: MerkleStoreModule | null; - outputsTable?: Table | null; - privateSchema?: Schema | null; - publicSchema?: Schema | null; -} -export interface TriggerFunctionRelations { - database?: Database | null; -} -export interface PartitionRelations { - database?: Database | null; - partitionKey?: Field | null; - table?: Table | null; -} -export interface DatabaseTransferRelations { - database?: Database | null; -} -export interface ApiRelations { - database?: Database | null; - apiSetting?: ApiSetting | null; - apiModules?: ConnectionResult; - apiSchemas?: ConnectionResult; - domains?: ConnectionResult; - corsSettings?: ConnectionResult; -} -export interface SiteRelations { - database?: Database | null; - app?: App | null; - domains?: ConnectionResult; - siteMetadata?: ConnectionResult; - siteModules?: ConnectionResult; - siteThemes?: ConnectionResult; -} -export interface AppRelations { - site?: Site | null; - database?: Database | null; -} -export interface ApiSettingRelations { - api?: Api | null; - database?: Database | null; -} -export interface ConnectedAccountsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface CryptoAddressesModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface CryptoAuthModuleRelations { - database?: Database | null; - schema?: Schema | null; - secretsTable?: Table | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface DefaultIdsModuleRelations { - database?: Database | null; -} -export interface DenormalizedTableFieldRelations { - database?: Database | null; - field?: Field | null; - refField?: Field | null; - refTable?: Table | null; - table?: Table | null; -} -export interface EmailsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface ConfigSecretsUserModuleRelations { - configDefinitionsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface InvitesModuleRelations { - claimedInvitesTable?: Table | null; - database?: Database | null; - emailsTable?: Table | null; - entityTable?: Table | null; - invitesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usersTable?: Table | null; -} -export interface EventsModuleRelations { - achievementRewardsTable?: Table | null; - actorTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - eventAggregatesTable?: Table | null; - eventTypesTable?: Table | null; - eventsTable?: Table | null; - levelGrantsTable?: Table | null; - levelRequirementsTable?: Table | null; - levelsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface LimitsModuleRelations { - actorTable?: Table | null; - aggregateTable?: Table | null; - creditCodeItemsTable?: Table | null; - creditCodesTable?: Table | null; - creditRedemptionsTable?: Table | null; - database?: Database | null; - defaultTable?: Table | null; - entityTable?: Table | null; - eventsTable?: Table | null; - limitCapsDefaultsTable?: Table | null; - limitCapsTable?: Table | null; - limitCreditsTable?: Table | null; - limitWarningStateTable?: Table | null; - limitWarningsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface MembershipTypesModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface MembershipsModuleRelations { - actorTable?: Table | null; - database?: Database | null; - defaultLimitsTable?: Table | null; - defaultPermissionsTable?: Table | null; - entityTable?: Table | null; - entityTableOwner?: Field | null; - grantsTable?: Table | null; - limitsTable?: Table | null; - membersTable?: Table | null; - membershipDefaultsTable?: Table | null; - membershipSettingsTable?: Table | null; - membershipsTable?: Table | null; - permissionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sprtTable?: Table | null; -} -export interface PermissionsModuleRelations { - actorTable?: Table | null; - database?: Database | null; - defaultTable?: Table | null; - entityTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface PhoneNumbersModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface ProfilesModuleRelations { - actorTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - membershipsTable?: Table | null; - permissionsTable?: Table | null; - privateSchema?: Schema | null; - profileDefinitionGrantsTable?: Table | null; - profileGrantsTable?: Table | null; - profilePermissionsTable?: Table | null; - profileTemplatesTable?: Table | null; - schema?: Schema | null; - table?: Table | null; -} -export interface UserStateModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; -} -export interface SessionsModuleRelations { - authSettingsTableByAuthSettingsTableId?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTableBySessionCredentialsTableId?: Table | null; - sessionsTableBySessionsTableId?: Table | null; - usersTable?: Table | null; -} -export interface UserAuthModuleRelations { - database?: Database | null; - emailsTable?: Table | null; - encryptedTable?: Table | null; - schema?: Schema | null; - secretsTable?: Table | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface UsersModuleRelations { - database?: Database | null; - schema?: Schema | null; - table?: Table | null; - typeTable?: Table | null; -} -export interface BlueprintRelations { - database?: Database | null; - template?: BlueprintTemplate | null; - blueprintConstructions?: ConnectionResult; -} -export interface BlueprintTemplateRelations { - forkedFrom?: BlueprintTemplate | null; - blueprintTemplatesByForkedFromId?: ConnectionResult; - blueprintsByTemplateId?: ConnectionResult; -} -export interface BlueprintConstructionRelations { - blueprint?: Blueprint | null; - database?: Database | null; -} -export interface StorageModuleRelations { - bucketsTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - fileEventsTable?: Table | null; - filesTable?: Table | null; - pathSharesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface EntityTypeProvisionRelations { - database?: Database | null; -} -export interface WebauthnCredentialsModuleRelations { - database?: Database | null; - ownerTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - table?: Table | null; -} -export interface WebauthnAuthModuleRelations { - authSettingsTable?: Table | null; - credentialsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionSecretsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface NotificationsModuleRelations { - channelsTableByChannelsTableId?: Table | null; - database?: Database | null; - deliveryLogTableByDeliveryLogTableId?: Table | null; - notificationsTableByNotificationsTableId?: Table | null; - organizationSettingsTableByOrganizationSettingsTableId?: Table | null; - ownerTable?: Table | null; - preferencesTableByPreferencesTableId?: Table | null; - privateSchema?: Schema | null; - readStateTableByReadStateTableId?: Table | null; - schema?: Schema | null; - userSettingsTableByUserSettingsTableId?: Table | null; -} -export interface InferenceLogModuleRelations { - database?: Database | null; - inferenceLogTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usageDailyTable?: Table | null; -} -export interface ComputeLogModuleRelations { - computeLogTable?: Table | null; - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usageDailyTable?: Table | null; -} -export interface TransferLogModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - transferLogTable?: Table | null; - usageDailyTable?: Table | null; -} -export interface StorageLogModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - storageLogTable?: Table | null; - usageDailyTable?: Table | null; -} -export interface DbUsageModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - queryStatsDailyTable?: Table | null; - queryStatsLogTable?: Table | null; - schema?: Schema | null; - tableStatsDailyTable?: Table | null; - tableStatsLogTable?: Table | null; -} -export interface AgentModuleRelations { - database?: Database | null; - entityTable?: Table | null; - knowledgeTable?: Table | null; - messageTable?: Table | null; - privateSchema?: Schema | null; - promptsTable?: Table | null; - schema?: Schema | null; - taskTable?: Table | null; - threadTable?: Table | null; -} -export interface NamespaceModuleRelations { - database?: Database | null; - entityTable?: Table | null; - namespaceEventsTable?: Table | null; - namespacesTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface FunctionModuleRelations { - configDefinitionsTable?: Table | null; - configRequirementsTable?: Table | null; - database?: Database | null; - definitionsTable?: Table | null; - entityTable?: Table | null; - executionLogsTable?: Table | null; - invocationsTable?: Table | null; - privateSchema?: Schema | null; - requirementsTable?: Table | null; - schema?: Schema | null; - secretDefinitionsTable?: Table | null; -} -export interface DatabaseProvisionModuleRelations { - database?: Database | null; -} -export interface AppAdminGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface AppOwnerGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface AppGrantRelations { - actor?: User | null; - grantor?: User | null; -} -export interface OrgMembershipRelations { - actor?: User | null; - entity?: User | null; - orgMemberProfileByMembershipId?: OrgMemberProfile | null; -} -export interface OrgMemberRelations { - actor?: User | null; - entity?: User | null; -} -export interface OrgAdminGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgOwnerGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgMemberProfileRelations { - actor?: User | null; - entity?: User | null; - membership?: OrgMembership | null; -} -export interface OrgGrantRelations { - actor?: User | null; - entity?: User | null; - grantor?: User | null; -} -export interface OrgChartEdgeRelations { - child?: User | null; - entity?: User | null; - parent?: User | null; -} -export interface OrgChartEdgeGrantRelations { - child?: User | null; - entity?: User | null; - grantor?: User | null; - parent?: User | null; -} -export interface OrgPermissionDefaultRelations { - entity?: User | null; -} -export interface AppLimitRelations { - actor?: User | null; -} -export interface AppLimitCreditRelations { - actor?: User | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditCodeItemRelations { - creditCode?: AppLimitCreditCode | null; - defaultLimit?: AppLimitDefault | null; -} -export interface AppLimitCreditRedemptionRelations { - creditCode?: AppLimitCreditCode | null; -} -export interface OrgLimitRelations { - actor?: User | null; - entity?: User | null; -} -export interface OrgLimitCreditRelations { - actor?: User | null; - defaultLimit?: OrgLimitDefault | null; - entity?: User | null; -} -export interface OrgLimitAggregateRelations { - entity?: User | null; -} -export interface OrgLimitWarningRelations { - entity?: User | null; -} -export interface EmailRelations { - owner?: User | null; -} -export interface PhoneNumberRelations { - owner?: User | null; -} -export interface CryptoAddressRelations { - owner?: User | null; -} -export interface WebauthnCredentialRelations { - owner?: User | null; -} -export interface AppInviteRelations { - sender?: User | null; -} -export interface AppClaimedInviteRelations { - receiver?: User | null; - sender?: User | null; -} -export interface OrgInviteRelations { - entity?: User | null; - receiver?: User | null; - sender?: User | null; -} -export interface OrgClaimedInviteRelations { - entity?: User | null; - receiver?: User | null; - sender?: User | null; -} -export interface AuditLogAuthRelations { - actor?: User | null; -} -export interface IdentityProviderRelations {} -export interface AppPermissionDefaultRelations {} -export interface RoleTypeRelations {} -export interface MigrateFileRelations {} -export interface DevicesModuleRelations { - database?: Database | null; - deviceSettingsTableByDeviceSettingsTableId?: Table | null; - schema?: Schema | null; - userDevicesTableByUserDevicesTableId?: Table | null; -} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} -export interface NodeTypeRegistryRelations {} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface UserConnectedAccountRelations {} -export interface AppLimitDefaultRelations { - appLimitCreditsByDefaultLimitId?: ConnectionResult; - appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; -} -export interface OrgLimitDefaultRelations { - orgLimitCreditsByDefaultLimitId?: ConnectionResult; -} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitWarningRelations {} -export interface PubkeySettingRelations { - database?: Database | null; - schema?: Schema | null; - signInRecordFailureFunction?: Function | null; - signInRequestChallengeFunction?: Function | null; - signInWithChallengeFunction?: Function | null; - signUpWithKeyFunction?: Function | null; -} -export interface RateLimitsModuleRelations { - database?: Database | null; - ipRateLimitsTableByIpRateLimitsTableId?: Table | null; - rateLimitSettingsTableByRateLimitSettingsTableId?: Table | null; - rateLimitsTableByRateLimitsTableId?: Table | null; - schema?: Schema | null; -} -export interface MembershipTypeRelations {} -export interface RlsSettingRelations { - authenticateFunction?: Function | null; - authenticateSchema?: Schema | null; - authenticateStrictFunction?: Function | null; - currentIpAddressFunction?: Function | null; - currentRoleFunction?: Function | null; - currentRoleIdFunction?: Function | null; - currentUserAgentFunction?: Function | null; - database?: Database | null; - roleSchema?: Schema | null; -} -export interface RlsModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionsTable?: Table | null; - usersTable?: Table | null; -} -export interface RateLimitMetersModuleRelations { - database?: Database | null; - privateSchema?: Schema | null; - rateLimitOverridesTableByRateLimitOverridesTableId?: Table | null; - rateLimitStateTableByRateLimitStateTableId?: Table | null; - rateWindowLimitsTableByRateWindowLimitsTableId?: Table | null; - schema?: Schema | null; -} -export interface PlansModuleRelations { - database?: Database | null; - planLimitsTable?: Table | null; - planOverridesTable?: Table | null; - planPricingTable?: Table | null; - plansTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface SqlActionRelations {} -export interface DatabaseSettingRelations { - database?: Database | null; -} -export interface OrgMembershipSettingRelations { - entity?: User | null; -} -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} -export interface AppMembershipRelations { - actor?: User | null; -} -export interface UserRelations { - roleType?: RoleType | null; - appMembershipByActorId?: AppMembership | null; - orgMembershipDefaultByEntityId?: OrgMembershipDefault | null; - orgMembershipSettingByEntityId?: OrgMembershipSetting | null; - ownedDatabases?: ConnectionResult; - appAdminGrantsByActorId?: ConnectionResult; - appAdminGrantsByGrantorId?: ConnectionResult; - appOwnerGrantsByActorId?: ConnectionResult; - appOwnerGrantsByGrantorId?: ConnectionResult; - appGrantsByActorId?: ConnectionResult; - appGrantsByGrantorId?: ConnectionResult; - orgMembershipsByActorId?: ConnectionResult; - orgMembershipsByEntityId?: ConnectionResult; - orgMembersByActorId?: ConnectionResult; - orgMembersByEntityId?: ConnectionResult; - orgAdminGrantsByActorId?: ConnectionResult; - orgAdminGrantsByEntityId?: ConnectionResult; - orgAdminGrantsByGrantorId?: ConnectionResult; - orgOwnerGrantsByActorId?: ConnectionResult; - orgOwnerGrantsByEntityId?: ConnectionResult; - orgOwnerGrantsByGrantorId?: ConnectionResult; - orgMemberProfilesByActorId?: ConnectionResult; - orgMemberProfilesByEntityId?: ConnectionResult; - orgGrantsByActorId?: ConnectionResult; - orgGrantsByEntityId?: ConnectionResult; - orgGrantsByGrantorId?: ConnectionResult; - parentOrgChartEdges?: ConnectionResult; - orgChartEdgesByEntityId?: ConnectionResult; - childOrgChartEdges?: ConnectionResult; - parentOrgChartEdgeGrants?: ConnectionResult; - orgChartEdgeGrantsByEntityId?: ConnectionResult; - orgChartEdgeGrantsByGrantorId?: ConnectionResult; - childOrgChartEdgeGrants?: ConnectionResult; - orgPermissionDefaultsByEntityId?: ConnectionResult; - appLimitsByActorId?: ConnectionResult; - appLimitCreditsByActorId?: ConnectionResult; - orgLimitsByActorId?: ConnectionResult; - orgLimitsByEntityId?: ConnectionResult; - orgLimitCreditsByActorId?: ConnectionResult; - orgLimitCreditsByEntityId?: ConnectionResult; - orgLimitAggregatesByEntityId?: ConnectionResult; - orgLimitWarningsByEntityId?: ConnectionResult; - ownedEmails?: ConnectionResult; - ownedPhoneNumbers?: ConnectionResult; - ownedCryptoAddresses?: ConnectionResult; - ownedWebauthnCredentials?: ConnectionResult; - appInvitesBySenderId?: ConnectionResult; - appClaimedInvitesByReceiverId?: ConnectionResult; - appClaimedInvitesBySenderId?: ConnectionResult; - orgInvitesByEntityId?: ConnectionResult; - orgInvitesByReceiverId?: ConnectionResult; - orgInvitesBySenderId?: ConnectionResult; - orgClaimedInvitesByEntityId?: ConnectionResult; - orgClaimedInvitesByReceiverId?: ConnectionResult; - orgClaimedInvitesBySenderId?: ConnectionResult; - auditLogAuthsByActorId?: ConnectionResult; -} -export interface AstMigrationRelations {} -export interface WebauthnSettingRelations { - credentialsSchema?: Schema | null; - credentialsTable?: Table | null; - database?: Database | null; - schema?: Schema | null; - sessionCredentialsTable?: Table | null; - sessionSecretsSchema?: Schema | null; - sessionSecretsTable?: Table | null; - sessionsSchema?: Schema | null; - sessionsTable?: Table | null; - userField?: Field | null; -} -export interface BillingModuleRelations { - balancesTable?: Table | null; - database?: Database | null; - ledgerTable?: Table | null; - meterCreditsTable?: Table | null; - meterSourcesTable?: Table | null; - metersTable?: Table | null; - planSubscriptionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; -} -export interface BillingProviderModuleRelations { - billingCustomersTable?: Table | null; - billingPricesTable?: Table | null; - billingProductsTable?: Table | null; - billingSubscriptionsTable?: Table | null; - billingWebhookEventsTable?: Table | null; - database?: Database | null; - pricesTable?: Table | null; - privateSchema?: Schema | null; - productsTable?: Table | null; - schema?: Schema | null; - subscriptionsTable?: Table | null; -} -export interface HierarchyModuleRelations { - chartEdgeGrantsTable?: Table | null; - chartEdgesTable?: Table | null; - database?: Database | null; - entityTable?: Table | null; - hierarchySprtTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; - usersTable?: Table | null; -} -// ============ Entity Types With Relations ============ -export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & - OrgGetManagersRecordRelations; -export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & - OrgGetSubordinatesRecordRelations; -export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; -export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; -export type DatabaseWithRelations = Database & DatabaseRelations; -export type SchemaWithRelations = Schema & SchemaRelations; -export type TableWithRelations = Table & TableRelations; -export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; -export type FieldWithRelations = Field & FieldRelations; -export type SpatialRelationWithRelations = SpatialRelation & SpatialRelationRelations; -export type ForeignKeyConstraintWithRelations = ForeignKeyConstraint & - ForeignKeyConstraintRelations; -export type FullTextSearchWithRelations = FullTextSearch & FullTextSearchRelations; -export type IndexWithRelations = Index & IndexRelations; -export type PolicyWithRelations = Policy & PolicyRelations; -export type PrimaryKeyConstraintWithRelations = PrimaryKeyConstraint & - PrimaryKeyConstraintRelations; -export type TableGrantWithRelations = TableGrant & TableGrantRelations; -export type TriggerWithRelations = Trigger & TriggerRelations; -export type UniqueConstraintWithRelations = UniqueConstraint & UniqueConstraintRelations; -export type ViewWithRelations = View & ViewRelations; -export type ViewTableWithRelations = ViewTable & ViewTableRelations; -export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; -export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; -export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; -export type SecureTableProvisionWithRelations = SecureTableProvision & - SecureTableProvisionRelations; -export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; -export type SessionSecretsModuleWithRelations = SessionSecretsModule & - SessionSecretsModuleRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; -export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; -export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & - ConfigSecretsOrgModuleRelations; -export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; -export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; -export type EnumWithRelations = Enum & EnumRelations; -export type FunctionWithRelations = Function & FunctionRelations; -export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; -export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; -export type DomainWithRelations = Domain & DomainRelations; -export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; -export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; -export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; -export type CorsSettingWithRelations = CorsSetting & CorsSettingRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; -export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; -export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; -export type PartitionWithRelations = Partition & PartitionRelations; -export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; -export type ApiWithRelations = Api & ApiRelations; -export type SiteWithRelations = Site & SiteRelations; -export type AppWithRelations = App & AppRelations; -export type ApiSettingWithRelations = ApiSetting & ApiSettingRelations; -export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & - ConnectedAccountsModuleRelations; -export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & - CryptoAddressesModuleRelations; -export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; -export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; -export type DenormalizedTableFieldWithRelations = DenormalizedTableField & - DenormalizedTableFieldRelations; -export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; -export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; -export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; -export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; -export type MembershipTypesModuleWithRelations = MembershipTypesModule & - MembershipTypesModuleRelations; -export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; -export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; -export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; -export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; -export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; -export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; -export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; -export type BlueprintWithRelations = Blueprint & BlueprintRelations; -export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; -export type BlueprintConstructionWithRelations = BlueprintConstruction & - BlueprintConstructionRelations; -export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; -export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; -export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & - WebauthnCredentialsModuleRelations; -export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; -export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; -export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; -export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; -export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; -export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; -export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & - DatabaseProvisionModuleRelations; -export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; -export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; -export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; -export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & - AppLimitCreditCodeItemRelations; -export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & - AppLimitCreditRedemptionRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; -export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; -export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; -export type EmailWithRelations = Email & EmailRelations; -export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; -export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; -export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; -export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; -export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; -export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; -export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; -export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type UserConnectedAccountWithRelations = UserConnectedAccount & - UserConnectedAccountRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; -export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; -export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & - RateLimitMetersModuleRelations; -export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; -export type SqlActionWithRelations = SqlAction & SqlActionRelations; -export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type OrgMembershipSettingWithRelations = OrgMembershipSetting & - OrgMembershipSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type UserWithRelations = User & UserRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type BillingProviderModuleWithRelations = BillingProviderModule & - BillingProviderModuleRelations; -export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -// ============ Entity Select Types ============ -export type OrgGetManagersRecordSelect = { - userId?: boolean; - depth?: boolean; -}; -export type OrgGetSubordinatesRecordSelect = { - userId?: boolean; - depth?: boolean; -}; -export type AppPermissionSelect = { - id?: boolean; - name?: boolean; - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; -}; -export type OrgPermissionSelect = { - id?: boolean; - name?: boolean; - bitnum?: boolean; - bitstr?: boolean; - description?: boolean; -}; -export type DatabaseSelect = { - id?: boolean; - ownerId?: boolean; - schemaHash?: boolean; - name?: boolean; - label?: boolean; - hash?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - rlsSetting?: { - select: RlsSettingSelect; - }; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - rlsModule?: { - select: RlsModuleSelect; - }; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - devicesModule?: { - select: DevicesModuleSelect; - }; - plansModule?: { - select: PlansModuleSelect; - }; - billingModule?: { - select: BillingModuleSelect; - }; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - schemas?: { - select: SchemaSelect; - first?: number; - filter?: SchemaFilter; - orderBy?: SchemaOrderBy[]; - }; - tables?: { - select: TableSelect; - first?: number; - filter?: TableFilter; - orderBy?: TableOrderBy[]; - }; - checkConstraints?: { - select: CheckConstraintSelect; - first?: number; - filter?: CheckConstraintFilter; - orderBy?: CheckConstraintOrderBy[]; - }; - fields?: { - select: FieldSelect; - first?: number; - filter?: FieldFilter; - orderBy?: FieldOrderBy[]; - }; - foreignKeyConstraints?: { - select: ForeignKeyConstraintSelect; - first?: number; - filter?: ForeignKeyConstraintFilter; - orderBy?: ForeignKeyConstraintOrderBy[]; - }; - fullTextSearches?: { - select: FullTextSearchSelect; - first?: number; - filter?: FullTextSearchFilter; - orderBy?: FullTextSearchOrderBy[]; - }; - indices?: { - select: IndexSelect; - first?: number; - filter?: IndexFilter; - orderBy?: IndexOrderBy[]; - }; - policies?: { - select: PolicySelect; - first?: number; - filter?: PolicyFilter; - orderBy?: PolicyOrderBy[]; - }; - primaryKeyConstraints?: { - select: PrimaryKeyConstraintSelect; - first?: number; - filter?: PrimaryKeyConstraintFilter; - orderBy?: PrimaryKeyConstraintOrderBy[]; - }; - schemaGrants?: { - select: SchemaGrantSelect; - first?: number; - filter?: SchemaGrantFilter; - orderBy?: SchemaGrantOrderBy[]; - }; - tableGrants?: { - select: TableGrantSelect; - first?: number; - filter?: TableGrantFilter; - orderBy?: TableGrantOrderBy[]; - }; - triggerFunctions?: { - select: TriggerFunctionSelect; - first?: number; - filter?: TriggerFunctionFilter; - orderBy?: TriggerFunctionOrderBy[]; - }; - triggers?: { - select: TriggerSelect; - first?: number; - filter?: TriggerFilter; - orderBy?: TriggerOrderBy[]; - }; - uniqueConstraints?: { - select: UniqueConstraintSelect; - first?: number; - filter?: UniqueConstraintFilter; - orderBy?: UniqueConstraintOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - viewGrants?: { - select: ViewGrantSelect; - first?: number; - filter?: ViewGrantFilter; - orderBy?: ViewGrantOrderBy[]; - }; - viewRules?: { - select: ViewRuleSelect; - first?: number; - filter?: ViewRuleFilter; - orderBy?: ViewRuleOrderBy[]; - }; - defaultPrivileges?: { - select: DefaultPrivilegeSelect; - first?: number; - filter?: DefaultPrivilegeFilter; - orderBy?: DefaultPrivilegeOrderBy[]; - }; - enums?: { - select: EnumSelect; - first?: number; - filter?: EnumFilter; - orderBy?: EnumOrderBy[]; - }; - embeddingChunks?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - functions?: { - select: FunctionSelect; - first?: number; - filter?: FunctionFilter; - orderBy?: FunctionOrderBy[]; - }; - partitions?: { - select: PartitionSelect; - first?: number; - filter?: PartitionFilter; - orderBy?: PartitionOrderBy[]; - }; - databaseTransfers?: { - select: DatabaseTransferSelect; - first?: number; - filter?: DatabaseTransferFilter; - orderBy?: DatabaseTransferOrderBy[]; - }; - apis?: { - select: ApiSelect; - first?: number; - filter?: ApiFilter; - orderBy?: ApiOrderBy[]; - }; - apiModules?: { - select: ApiModuleSelect; - first?: number; - filter?: ApiModuleFilter; - orderBy?: ApiModuleOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - sites?: { - select: SiteSelect; - first?: number; - filter?: SiteFilter; - orderBy?: SiteOrderBy[]; - }; - apps?: { - select: AppSelect; - first?: number; - filter?: AppFilter; - orderBy?: AppOrderBy[]; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - siteMetadata?: { - select: SiteMetadatumSelect; - first?: number; - filter?: SiteMetadatumFilter; - orderBy?: SiteMetadatumOrderBy[]; - }; - siteModules?: { - select: SiteModuleSelect; - first?: number; - filter?: SiteModuleFilter; - orderBy?: SiteModuleOrderBy[]; - }; - siteThemes?: { - select: SiteThemeSelect; - first?: number; - filter?: SiteThemeFilter; - orderBy?: SiteThemeOrderBy[]; - }; - apiSettings?: { - select: ApiSettingSelect; - first?: number; - filter?: ApiSettingFilter; - orderBy?: ApiSettingOrderBy[]; - }; - corsSettings?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; - }; - connectedAccountsModules?: { - select: ConnectedAccountsModuleSelect; - first?: number; - filter?: ConnectedAccountsModuleFilter; - orderBy?: ConnectedAccountsModuleOrderBy[]; - }; - cryptoAddressesModules?: { - select: CryptoAddressesModuleSelect; - first?: number; - filter?: CryptoAddressesModuleFilter; - orderBy?: CryptoAddressesModuleOrderBy[]; - }; - cryptoAuthModules?: { - select: CryptoAuthModuleSelect; - first?: number; - filter?: CryptoAuthModuleFilter; - orderBy?: CryptoAuthModuleOrderBy[]; - }; - defaultIdsModules?: { - select: DefaultIdsModuleSelect; - first?: number; - filter?: DefaultIdsModuleFilter; - orderBy?: DefaultIdsModuleOrderBy[]; - }; - denormalizedTableFields?: { - select: DenormalizedTableFieldSelect; - first?: number; - filter?: DenormalizedTableFieldFilter; - orderBy?: DenormalizedTableFieldOrderBy[]; - }; - emailsModules?: { - select: EmailsModuleSelect; - first?: number; - filter?: EmailsModuleFilter; - orderBy?: EmailsModuleOrderBy[]; - }; - configSecretsUserModules?: { - select: ConfigSecretsUserModuleSelect; - first?: number; - filter?: ConfigSecretsUserModuleFilter; - orderBy?: ConfigSecretsUserModuleOrderBy[]; - }; - invitesModules?: { - select: InvitesModuleSelect; - first?: number; - filter?: InvitesModuleFilter; - orderBy?: InvitesModuleOrderBy[]; - }; - eventsModules?: { - select: EventsModuleSelect; - first?: number; - filter?: EventsModuleFilter; - orderBy?: EventsModuleOrderBy[]; - }; - limitsModules?: { - select: LimitsModuleSelect; - first?: number; - filter?: LimitsModuleFilter; - orderBy?: LimitsModuleOrderBy[]; - }; - membershipTypesModules?: { - select: MembershipTypesModuleSelect; - first?: number; - filter?: MembershipTypesModuleFilter; - orderBy?: MembershipTypesModuleOrderBy[]; - }; - membershipsModules?: { - select: MembershipsModuleSelect; - first?: number; - filter?: MembershipsModuleFilter; - orderBy?: MembershipsModuleOrderBy[]; - }; - permissionsModules?: { - select: PermissionsModuleSelect; - first?: number; - filter?: PermissionsModuleFilter; - orderBy?: PermissionsModuleOrderBy[]; - }; - phoneNumbersModules?: { - select: PhoneNumbersModuleSelect; - first?: number; - filter?: PhoneNumbersModuleFilter; - orderBy?: PhoneNumbersModuleOrderBy[]; - }; - profilesModules?: { - select: ProfilesModuleSelect; - first?: number; - filter?: ProfilesModuleFilter; - orderBy?: ProfilesModuleOrderBy[]; - }; - userStateModules?: { - select: UserStateModuleSelect; - first?: number; - filter?: UserStateModuleFilter; - orderBy?: UserStateModuleOrderBy[]; - }; - sessionsModules?: { - select: SessionsModuleSelect; - first?: number; - filter?: SessionsModuleFilter; - orderBy?: SessionsModuleOrderBy[]; - }; - userAuthModules?: { - select: UserAuthModuleSelect; - first?: number; - filter?: UserAuthModuleFilter; - orderBy?: UserAuthModuleOrderBy[]; - }; - usersModules?: { - select: UsersModuleSelect; - first?: number; - filter?: UsersModuleFilter; - orderBy?: UsersModuleOrderBy[]; - }; - secureTableProvisions?: { - select: SecureTableProvisionSelect; - first?: number; - filter?: SecureTableProvisionFilter; - orderBy?: SecureTableProvisionOrderBy[]; - }; - relationProvisions?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - blueprints?: { - select: BlueprintSelect; - first?: number; - filter?: BlueprintFilter; - orderBy?: BlueprintOrderBy[]; - }; - blueprintConstructions?: { - select: BlueprintConstructionSelect; - first?: number; - filter?: BlueprintConstructionFilter; - orderBy?: BlueprintConstructionOrderBy[]; - }; - storageModules?: { - select: StorageModuleSelect; - first?: number; - filter?: StorageModuleFilter; - orderBy?: StorageModuleOrderBy[]; - }; - entityTypeProvisions?: { - select: EntityTypeProvisionSelect; - first?: number; - filter?: EntityTypeProvisionFilter; - orderBy?: EntityTypeProvisionOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - webauthnCredentialsModules?: { - select: WebauthnCredentialsModuleSelect; - first?: number; - filter?: WebauthnCredentialsModuleFilter; - orderBy?: WebauthnCredentialsModuleOrderBy[]; - }; - webauthnAuthModules?: { - select: WebauthnAuthModuleSelect; - first?: number; - filter?: WebauthnAuthModuleFilter; - orderBy?: WebauthnAuthModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - notificationsModules?: { - select: NotificationsModuleSelect; - first?: number; - filter?: NotificationsModuleFilter; - orderBy?: NotificationsModuleOrderBy[]; - }; - realtimeModules?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; - inferenceLogModules?: { - select: InferenceLogModuleSelect; - first?: number; - filter?: InferenceLogModuleFilter; - orderBy?: InferenceLogModuleOrderBy[]; - }; - computeLogModules?: { - select: ComputeLogModuleSelect; - first?: number; - filter?: ComputeLogModuleFilter; - orderBy?: ComputeLogModuleOrderBy[]; - }; - transferLogModules?: { - select: TransferLogModuleSelect; - first?: number; - filter?: TransferLogModuleFilter; - orderBy?: TransferLogModuleOrderBy[]; - }; - storageLogModules?: { - select: StorageLogModuleSelect; - first?: number; - filter?: StorageLogModuleFilter; - orderBy?: StorageLogModuleOrderBy[]; - }; - dbUsageModules?: { - select: DbUsageModuleSelect; - first?: number; - filter?: DbUsageModuleFilter; - orderBy?: DbUsageModuleOrderBy[]; - }; - agentModules?: { - select: AgentModuleSelect; - first?: number; - filter?: AgentModuleFilter; - orderBy?: AgentModuleOrderBy[]; - }; - merkleStoreModules?: { - select: MerkleStoreModuleSelect; - first?: number; - filter?: MerkleStoreModuleFilter; - orderBy?: MerkleStoreModuleOrderBy[]; - }; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; - }; - namespaceModules?: { - select: NamespaceModuleSelect; - first?: number; - filter?: NamespaceModuleFilter; - orderBy?: NamespaceModuleOrderBy[]; - }; - functionModules?: { - select: FunctionModuleSelect; - first?: number; - filter?: FunctionModuleFilter; - orderBy?: FunctionModuleOrderBy[]; - }; - databaseProvisionModules?: { - select: DatabaseProvisionModuleSelect; - first?: number; - filter?: DatabaseProvisionModuleFilter; - orderBy?: DatabaseProvisionModuleOrderBy[]; - }; -}; -export type SchemaSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - schemaName?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - isPublic?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - tables?: { - select: TableSelect; - first?: number; - filter?: TableFilter; - orderBy?: TableOrderBy[]; - }; - schemaGrants?: { - select: SchemaGrantSelect; - first?: number; - filter?: SchemaGrantFilter; - orderBy?: SchemaGrantOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - defaultPrivileges?: { - select: DefaultPrivilegeSelect; - first?: number; - filter?: DefaultPrivilegeFilter; - orderBy?: DefaultPrivilegeOrderBy[]; - }; - enums?: { - select: EnumSelect; - first?: number; - filter?: EnumFilter; - orderBy?: EnumOrderBy[]; - }; - functions?: { - select: FunctionSelect; - first?: number; - filter?: FunctionFilter; - orderBy?: FunctionOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - identityProvidersModulesByPrivateSchemaId?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - realtimeModulesByPrivateSchemaId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModules?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesBySubscriptionsSchemaId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; - merkleStoreModulesByPrivateSchemaId?: { - select: MerkleStoreModuleSelect; - first?: number; - filter?: MerkleStoreModuleFilter; - orderBy?: MerkleStoreModuleOrderBy[]; - }; -}; -export type TableSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: boolean; - singularName?: boolean; - tags?: boolean; - partitioned?: boolean; - partitionStrategy?: boolean; - partitionKeyNames?: boolean; - partitionKeyTypes?: boolean; - inheritsId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - inherits?: { - select: TableSelect; - }; - partition?: { - select: PartitionSelect; - }; - checkConstraints?: { - select: CheckConstraintSelect; - first?: number; - filter?: CheckConstraintFilter; - orderBy?: CheckConstraintOrderBy[]; - }; - fields?: { - select: FieldSelect; - first?: number; - filter?: FieldFilter; - orderBy?: FieldOrderBy[]; - }; - foreignKeyConstraints?: { - select: ForeignKeyConstraintSelect; - first?: number; - filter?: ForeignKeyConstraintFilter; - orderBy?: ForeignKeyConstraintOrderBy[]; - }; - fullTextSearches?: { - select: FullTextSearchSelect; - first?: number; - filter?: FullTextSearchFilter; - orderBy?: FullTextSearchOrderBy[]; - }; - indices?: { - select: IndexSelect; - first?: number; - filter?: IndexFilter; - orderBy?: IndexOrderBy[]; - }; - policies?: { - select: PolicySelect; - first?: number; - filter?: PolicyFilter; - orderBy?: PolicyOrderBy[]; - }; - primaryKeyConstraints?: { - select: PrimaryKeyConstraintSelect; - first?: number; - filter?: PrimaryKeyConstraintFilter; - orderBy?: PrimaryKeyConstraintOrderBy[]; - }; - tableGrants?: { - select: TableGrantSelect; - first?: number; - filter?: TableGrantFilter; - orderBy?: TableGrantOrderBy[]; - }; - triggers?: { - select: TriggerSelect; - first?: number; - filter?: TriggerFilter; - orderBy?: TriggerOrderBy[]; - }; - uniqueConstraints?: { - select: UniqueConstraintSelect; - first?: number; - filter?: UniqueConstraintFilter; - orderBy?: UniqueConstraintOrderBy[]; - }; - views?: { - select: ViewSelect; - first?: number; - filter?: ViewFilter; - orderBy?: ViewOrderBy[]; - }; - viewTables?: { - select: ViewTableSelect; - first?: number; - filter?: ViewTableFilter; - orderBy?: ViewTableOrderBy[]; - }; - embeddingChunksByChunksTableId?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - embeddingChunks?: { - select: EmbeddingChunkSelect; - first?: number; - filter?: EmbeddingChunkFilter; - orderBy?: EmbeddingChunkOrderBy[]; - }; - spatialRelationsByRefTableId?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - secureTableProvisions?: { - select: SecureTableProvisionSelect; - first?: number; - filter?: SecureTableProvisionFilter; - orderBy?: SecureTableProvisionOrderBy[]; - }; - relationProvisionsBySourceTableId?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - relationProvisionsByTargetTableId?: { - select: RelationProvisionSelect; - first?: number; - filter?: RelationProvisionFilter; - orderBy?: RelationProvisionOrderBy[]; - }; - sessionSecretsModulesBySessionsTableId?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - sessionSecretsModules?: { - select: SessionSecretsModuleSelect; - first?: number; - filter?: SessionSecretsModuleFilter; - orderBy?: SessionSecretsModuleOrderBy[]; - }; - identityProvidersModules?: { - select: IdentityProvidersModuleSelect; - first?: number; - filter?: IdentityProvidersModuleFilter; - orderBy?: IdentityProvidersModuleOrderBy[]; - }; - realtimeModulesByChangeLogTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesByListenerNodeTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - realtimeModulesBySourceRegistryTableId?: { - select: RealtimeModuleSelect; - first?: number; - filter?: RealtimeModuleFilter; - orderBy?: RealtimeModuleOrderBy[]; - }; - configSecretsOrgModules?: { - select: ConfigSecretsOrgModuleSelect; - first?: number; - filter?: ConfigSecretsOrgModuleFilter; - orderBy?: ConfigSecretsOrgModuleOrderBy[]; - }; -}; -export type CheckConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - type?: boolean; - fieldIds?: boolean; - expr?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type FieldSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - smartTags?: boolean; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: boolean; - type?: boolean; - fieldOrder?: boolean; - regexp?: boolean; - chk?: boolean; - chkExpr?: boolean; - min?: boolean; - max?: boolean; - tags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; - spatialRelations?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; - spatialRelationsByRefFieldId?: { - select: SpatialRelationSelect; - first?: number; - filter?: SpatialRelationFilter; - orderBy?: SpatialRelationOrderBy[]; - }; -}; -export type SpatialRelationSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - refTableId?: boolean; - refFieldId?: boolean; - name?: boolean; - operator?: boolean; - paramName?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - field?: { - select: FieldSelect; - }; - refField?: { - select: FieldSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ForeignKeyConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - description?: boolean; - smartTags?: boolean; - type?: boolean; - fieldIds?: boolean; - refTableId?: boolean; - refFieldIds?: boolean; - deleteAction?: boolean; - updateAction?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type FullTextSearchSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - fieldIds?: boolean; - weights?: boolean; - langs?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type IndexSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - fieldIds?: boolean; - includeFieldIds?: boolean; - accessMethod?: boolean; - indexParams?: boolean; - whereClause?: boolean; - isUnique?: boolean; - options?: boolean; - opClasses?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PolicySelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - granteeName?: boolean; - privilege?: boolean; - permissive?: boolean; - disabled?: boolean; - policyType?: boolean; - data?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PrimaryKeyConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - type?: boolean; - fieldIds?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type TableGrantSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - privilege?: boolean; - granteeName?: boolean; - fieldIds?: boolean; - isGrant?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type TriggerSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - event?: boolean; - functionName?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type UniqueConstraintSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - name?: boolean; - description?: boolean; - smartTags?: boolean; - type?: boolean; - fieldIds?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ViewSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - tableId?: boolean; - viewType?: boolean; - data?: boolean; - filterType?: boolean; - filterData?: boolean; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; - viewTables?: { - select: ViewTableSelect; - first?: number; - filter?: ViewTableFilter; - orderBy?: ViewTableOrderBy[]; - }; - viewGrants?: { - select: ViewGrantSelect; - first?: number; - filter?: ViewGrantFilter; - orderBy?: ViewGrantOrderBy[]; - }; - viewRules?: { - select: ViewRuleSelect; - first?: number; - filter?: ViewRuleFilter; - orderBy?: ViewRuleOrderBy[]; - }; -}; -export type ViewTableSelect = { - id?: boolean; - viewId?: boolean; - tableId?: boolean; - joinOrder?: boolean; - table?: { - select: TableSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type ViewGrantSelect = { - id?: boolean; - databaseId?: boolean; - viewId?: boolean; - granteeName?: boolean; - privilege?: boolean; - withGrantOption?: boolean; - isGrant?: boolean; - database?: { - select: DatabaseSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type ViewRuleSelect = { - id?: boolean; - databaseId?: boolean; - viewId?: boolean; - name?: boolean; - event?: boolean; - action?: boolean; - database?: { - select: DatabaseSelect; - }; - view?: { - select: ViewSelect; - }; -}; -export type EmbeddingChunkSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - embeddingFieldId?: boolean; - chunksTableId?: boolean; - chunksTableName?: boolean; - contentFieldName?: boolean; - dimensions?: boolean; - metric?: boolean; - chunkSize?: boolean; - chunkOverlap?: boolean; - chunkStrategy?: boolean; - metadataFields?: boolean; - searchIndexes?: boolean; - enqueueChunkingJob?: boolean; - chunkingTaskName?: boolean; - embeddingModel?: boolean; - embeddingProvider?: boolean; - parentFkFieldId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - chunksTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - embeddingField?: { - select: FieldSelect; - }; - parentFkField?: { - select: FieldSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SecureTableProvisionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - nodes?: boolean; - useRls?: boolean; - fields?: boolean; - grants?: boolean; - policies?: boolean; - outFields?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -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; - database?: { - select: DatabaseSelect; - }; - sourceTable?: { - select: TableSelect; - }; - targetTable?: { - select: TableSelect; - }; -}; -export type SessionSecretsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - sessionsTableId?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -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; - changeLogTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - listenerNodeTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sourceRegistryTable?: { - select: TableSelect; - }; - subscriptionsSchema?: { - select: SchemaSelect; - }; -}; -export type ConfigSecretsOrgModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SchemaGrantSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - granteeName?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type DefaultPrivilegeSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - objectType?: boolean; - privilege?: boolean; - granteeName?: boolean; - isGrant?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type EnumSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - label?: boolean; - description?: boolean; - values?: boolean; - smartTags?: boolean; - category?: boolean; - module?: boolean; - scope?: boolean; - tags?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type FunctionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - name?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type ApiSchemaSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - apiId?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type ApiModuleSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - name?: boolean; - data?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type DomainSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - siteId?: boolean; - subdomain?: boolean; - domain?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteMetadatumSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - title?: boolean; - description?: boolean; - ogImage?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteModuleSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - name?: boolean; - data?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type SiteThemeSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - theme?: boolean; - database?: { - select: DatabaseSelect; - }; - site?: { - select: SiteSelect; - }; -}; -export type CorsSettingSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - allowedOrigins?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type MerkleStoreModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - objectTableId?: boolean; - storeTableId?: boolean; - commitTableId?: boolean; - refTableId?: boolean; - prefix?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scopeField?: boolean; - createdAt?: boolean; - commitTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - objectTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - refTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - storeTable?: { - select: TableSelect; - }; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; - }; -}; -export type GraphModuleSelect = { - id?: boolean; - databaseId?: boolean; - publicSchemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - prefix?: boolean; - merkleStoreModuleId?: boolean; - graphsTableId?: boolean; - executionsTableId?: boolean; - outputsTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scopeField?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - createdAt?: boolean; - database?: { - select: DatabaseSelect; - }; - executionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - graphsTable?: { - select: TableSelect; - }; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - outputsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - publicSchema?: { - select: SchemaSelect; - }; -}; -export type TriggerFunctionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - code?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type PartitionSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - strategy?: boolean; - partitionKeyId?: boolean; - interval?: boolean; - retention?: boolean; - retentionKeepTable?: boolean; - premake?: boolean; - namingPattern?: boolean; - isParented?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - partitionKey?: { - select: FieldSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type DatabaseTransferSelect = { - id?: boolean; - databaseId?: boolean; - targetOwnerId?: boolean; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: boolean; - targetApprovedAt?: boolean; - status?: boolean; - initiatedBy?: boolean; - notes?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - completedAt?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type ApiSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - dbname?: boolean; - roleName?: boolean; - anonRole?: boolean; - isPublic?: boolean; - database?: { - select: DatabaseSelect; - }; - apiSetting?: { - select: ApiSettingSelect; - }; - apiModules?: { - select: ApiModuleSelect; - first?: number; - filter?: ApiModuleFilter; - orderBy?: ApiModuleOrderBy[]; - }; - apiSchemas?: { - select: ApiSchemaSelect; - first?: number; - filter?: ApiSchemaFilter; - orderBy?: ApiSchemaOrderBy[]; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - corsSettings?: { - select: CorsSettingSelect; - first?: number; - filter?: CorsSettingFilter; - orderBy?: CorsSettingOrderBy[]; - }; -}; -export type SiteSelect = { - id?: boolean; - databaseId?: boolean; - title?: boolean; - description?: boolean; - ogImage?: boolean; - favicon?: boolean; - appleTouchIcon?: boolean; - logo?: boolean; - dbname?: boolean; - database?: { - select: DatabaseSelect; - }; - app?: { - select: AppSelect; - }; - domains?: { - select: DomainSelect; - first?: number; - filter?: DomainFilter; - orderBy?: DomainOrderBy[]; - }; - siteMetadata?: { - select: SiteMetadatumSelect; - first?: number; - filter?: SiteMetadatumFilter; - orderBy?: SiteMetadatumOrderBy[]; - }; - siteModules?: { - select: SiteModuleSelect; - first?: number; - filter?: SiteModuleFilter; - orderBy?: SiteModuleOrderBy[]; - }; - siteThemes?: { - select: SiteThemeSelect; - first?: number; - filter?: SiteThemeFilter; - orderBy?: SiteThemeOrderBy[]; - }; -}; -export type AppSelect = { - id?: boolean; - databaseId?: boolean; - siteId?: boolean; - name?: boolean; - appImage?: boolean; - appStoreLink?: boolean; - appStoreId?: boolean; - appIdPrefix?: boolean; - playStoreLink?: boolean; - site?: { - select: SiteSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type ApiSettingSelect = { - id?: boolean; - databaseId?: boolean; - apiId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: boolean; - api?: { - select: ApiSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type ConnectedAccountsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type CryptoAddressesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - cryptoNetwork?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type CryptoAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - usersTableId?: boolean; - secretsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - addressesTableId?: boolean; - userField?: boolean; - cryptoNetwork?: boolean; - signInRequestChallenge?: boolean; - signInRecordFailure?: boolean; - signUpWithKey?: boolean; - signInWithChallenge?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretsTable?: { - select: TableSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type DefaultIdsModuleSelect = { - id?: boolean; - databaseId?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type DenormalizedTableFieldSelect = { - id?: boolean; - databaseId?: boolean; - tableId?: boolean; - fieldId?: boolean; - setIds?: boolean; - refTableId?: boolean; - refFieldId?: boolean; - refIds?: boolean; - useUpdates?: boolean; - updateDefaults?: boolean; - funcName?: boolean; - funcOrder?: boolean; - database?: { - select: DatabaseSelect; - }; - field?: { - select: FieldSelect; - }; - refField?: { - select: FieldSelect; - }; - refTable?: { - select: TableSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type EmailsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ConfigSecretsUserModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - configDefinitionsTableId?: boolean; - configDefinitionsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type InvitesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - claimedInvitesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - emailsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - invitesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type EventsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - eventsTableId?: boolean; - eventsTableName?: boolean; - eventAggregatesTableId?: boolean; - eventAggregatesTableName?: boolean; - eventTypesTableId?: boolean; - eventTypesTableName?: boolean; - levelsTableId?: boolean; - levelsTableName?: boolean; - levelRequirementsTableId?: boolean; - levelRequirementsTableName?: boolean; - levelGrantsTableId?: boolean; - levelGrantsTableName?: boolean; - achievementRewardsTableId?: boolean; - achievementRewardsTableName?: boolean; - recordEvent?: boolean; - removeEvent?: boolean; - tgEvent?: boolean; - tgEventToggle?: boolean; - tgEventToggleBool?: boolean; - tgEventBool?: boolean; - upsertAggregate?: boolean; - tgUpdateAggregates?: boolean; - pruneEvents?: boolean; - stepsRequired?: boolean; - levelAchieved?: boolean; - tgCheckAchievements?: boolean; - grantAchievement?: boolean; - tgAchievementReward?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - achievementRewardsTable?: { - select: TableSelect; - }; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - eventAggregatesTable?: { - select: TableSelect; - }; - eventTypesTable?: { - select: TableSelect; - }; - eventsTable?: { - select: TableSelect; - }; - levelGrantsTable?: { - select: TableSelect; - }; - levelRequirementsTable?: { - select: TableSelect; - }; - levelsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type LimitsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - limitIncrementFunction?: boolean; - limitDecrementFunction?: boolean; - limitIncrementTrigger?: boolean; - limitDecrementTrigger?: boolean; - limitUpdateTrigger?: boolean; - limitCheckFunction?: boolean; - limitCreditsTableId?: boolean; - eventsTableId?: boolean; - creditCodesTableId?: boolean; - creditCodeItemsTableId?: boolean; - creditRedemptionsTableId?: boolean; - aggregateTableId?: boolean; - limitCapsTableId?: boolean; - limitCapsDefaultsTableId?: boolean; - capCheckTrigger?: boolean; - resolveCapFunction?: boolean; - limitWarningsTableId?: boolean; - limitWarningStateTableId?: boolean; - limitCheckSoftFunction?: boolean; - limitAggregateCheckSoftFunction?: boolean; - prefix?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - actorTable?: { - select: TableSelect; - }; - aggregateTable?: { - select: TableSelect; - }; - creditCodeItemsTable?: { - select: TableSelect; - }; - creditCodesTable?: { - select: TableSelect; - }; - creditRedemptionsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - eventsTable?: { - select: TableSelect; - }; - limitCapsDefaultsTable?: { - select: TableSelect; - }; - limitCapsTable?: { - select: TableSelect; - }; - limitCreditsTable?: { - select: TableSelect; - }; - limitWarningStateTable?: { - select: TableSelect; - }; - limitWarningsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type MembershipTypesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type MembershipsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: 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; - membershipType?: boolean; - entityTableId?: boolean; - entityTableOwnerId?: boolean; - prefix?: boolean; - getOrgFn?: boolean; - actorMaskCheck?: boolean; - actorPermCheck?: boolean; - entityIdsByMask?: boolean; - entityIdsByPerm?: boolean; - entityIdsFunction?: boolean; - memberProfilesTableId?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultLimitsTable?: { - select: TableSelect; - }; - defaultPermissionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - entityTableOwner?: { - select: FieldSelect; - }; - grantsTable?: { - select: TableSelect; - }; - limitsTable?: { - select: TableSelect; - }; - membersTable?: { - select: TableSelect; - }; - membershipDefaultsTable?: { - select: TableSelect; - }; - membershipSettingsTable?: { - select: TableSelect; - }; - membershipsTable?: { - select: TableSelect; - }; - permissionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sprtTable?: { - select: TableSelect; - }; -}; -export type PermissionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - prefix?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - defaultTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type PhoneNumbersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type ProfilesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - profilePermissionsTableId?: boolean; - profilePermissionsTableName?: boolean; - profileGrantsTableId?: boolean; - profileGrantsTableName?: boolean; - profileDefinitionGrantsTableId?: boolean; - profileDefinitionGrantsTableName?: boolean; - profileTemplatesTableId?: boolean; - profileTemplatesTableName?: boolean; - membershipType?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - permissionsTableId?: boolean; - membershipsTableId?: boolean; - prefix?: boolean; - actorTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - membershipsTable?: { - select: TableSelect; - }; - permissionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - profileDefinitionGrantsTable?: { - select: TableSelect; - }; - profileGrantsTable?: { - select: TableSelect; - }; - profilePermissionsTable?: { - select: TableSelect; - }; - profileTemplatesTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type UserStateModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type SessionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - authSettingsTableId?: boolean; - usersTableId?: boolean; - sessionsDefaultExpiration?: boolean; - sessionsTable?: boolean; - sessionCredentialsTable?: boolean; - authSettingsTable?: boolean; - authSettingsTableByAuthSettingsTableId?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTableBySessionCredentialsTableId?: { - select: TableSelect; - }; - sessionsTableBySessionsTableId?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type UserAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - secretsTableId?: boolean; - encryptedTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - auditsTableId?: boolean; - auditsTableName?: boolean; - signInFunction?: boolean; - signUpFunction?: boolean; - signOutFunction?: boolean; - setPasswordFunction?: boolean; - resetPasswordFunction?: boolean; - forgotPasswordFunction?: boolean; - sendVerificationEmailFunction?: boolean; - verifyEmailFunction?: boolean; - verifyPasswordFunction?: boolean; - checkPasswordFunction?: boolean; - sendAccountDeletionEmailFunction?: boolean; - deleteAccountFunction?: boolean; - signInCrossOriginFunction?: boolean; - requestCrossOriginTokenFunction?: boolean; - extendTokenExpires?: boolean; - database?: { - select: DatabaseSelect; - }; - emailsTable?: { - select: TableSelect; - }; - encryptedTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretsTable?: { - select: TableSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type UsersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - typeTableId?: boolean; - typeTableName?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; - typeTable?: { - select: TableSelect; - }; -}; -export type BlueprintSelect = { - id?: boolean; - ownerId?: boolean; - databaseId?: boolean; - name?: boolean; - displayName?: boolean; - description?: boolean; - definition?: boolean; - templateId?: boolean; - definitionHash?: boolean; - tableHashes?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - database?: { - select: DatabaseSelect; - }; - template?: { - select: BlueprintTemplateSelect; - }; - blueprintConstructions?: { - select: BlueprintConstructionSelect; - first?: number; - filter?: BlueprintConstructionFilter; - orderBy?: BlueprintConstructionOrderBy[]; - }; -}; -export type BlueprintTemplateSelect = { - id?: boolean; - name?: boolean; - version?: boolean; - displayName?: boolean; - description?: boolean; - ownerId?: boolean; - visibility?: boolean; - categories?: boolean; - tags?: boolean; - definition?: boolean; - definitionSchemaVersion?: boolean; - source?: boolean; - complexity?: boolean; - copyCount?: boolean; - forkCount?: boolean; - forkedFromId?: boolean; - definitionHash?: boolean; - tableHashes?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - forkedFrom?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplatesByForkedFromId?: { - select: BlueprintTemplateSelect; - first?: number; - filter?: BlueprintTemplateFilter; - orderBy?: BlueprintTemplateOrderBy[]; - }; - blueprintsByTemplateId?: { - select: BlueprintSelect; - first?: number; - filter?: BlueprintFilter; - orderBy?: BlueprintOrderBy[]; - }; -}; -export type BlueprintConstructionSelect = { - id?: boolean; - blueprintId?: boolean; - databaseId?: boolean; - schemaId?: boolean; - status?: boolean; - errorDetails?: boolean; - tableMap?: boolean; - constructedDefinition?: boolean; - constructedAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - database?: { - select: DatabaseSelect; - }; -}; -export type StorageModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - bucketsTableId?: boolean; - filesTableId?: boolean; - bucketsTableName?: boolean; - filesTableName?: boolean; - membershipType?: boolean; - key?: boolean; - policies?: boolean; - provisions?: boolean; - entityTableId?: boolean; - endpoint?: boolean; - publicUrlPrefix?: boolean; - provider?: boolean; - allowedOrigins?: boolean; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: boolean; - uploadUrlExpirySeconds?: boolean; - downloadUrlExpirySeconds?: boolean; - defaultMaxFileSize?: boolean; - maxFilenameLength?: boolean; - cacheTtlSeconds?: boolean; - maxBulkFiles?: boolean; - maxBulkTotalSize?: boolean; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: boolean; - fileEventsTableId?: boolean; - bucketsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - fileEventsTable?: { - select: TableSelect; - }; - filesTable?: { - select: TableSelect; - }; - pathSharesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type EntityTypeProvisionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - prefix?: boolean; - description?: boolean; - parentEntity?: boolean; - tableName?: boolean; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: boolean; - namespaces?: boolean; - functions?: boolean; - graphs?: boolean; - agents?: boolean; - skipEntityPolicies?: boolean; - tableProvision?: boolean; - outMembershipType?: boolean; - outEntityTableId?: boolean; - outEntityTableName?: boolean; - outInstalledModules?: boolean; - outStorageModuleId?: boolean; - outBucketsTableId?: boolean; - outFilesTableId?: boolean; - outPathSharesTableId?: boolean; - outInvitesModuleId?: boolean; - outNamespaceModuleId?: boolean; - outNamespacesTableId?: boolean; - outNamespaceEventsTableId?: boolean; - outFunctionModuleId?: boolean; - outDefinitionsTableId?: boolean; - outInvocationsTableId?: boolean; - outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; - outRequirementsTableId?: boolean; - outConfigRequirementsTableId?: boolean; - outGraphModuleId?: boolean; - outGraphsTableId?: boolean; - outAgentModuleId?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type WebauthnCredentialsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - ownerTableId?: boolean; - tableName?: boolean; - database?: { - select: DatabaseSelect; - }; - ownerTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - table?: { - select: TableSelect; - }; -}; -export type WebauthnAuthModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - usersTableId?: boolean; - credentialsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - sessionSecretsTableId?: boolean; - authSettingsTableId?: boolean; - rpId?: boolean; - rpName?: boolean; - originAllowlist?: boolean; - attestationType?: boolean; - requireUserVerification?: boolean; - residentKey?: boolean; - challengeExpiry?: boolean; - authSettingsTable?: { - select: TableSelect; - }; - credentialsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionSecretsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type NotificationsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - notificationsTableId?: boolean; - readStateTableId?: boolean; - preferencesTableId?: boolean; - channelsTableId?: boolean; - deliveryLogTableId?: boolean; - ownerTableId?: boolean; - userSettingsTableId?: boolean; - organizationSettingsTableId?: boolean; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; - channelsTableByChannelsTableId?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - deliveryLogTableByDeliveryLogTableId?: { - select: TableSelect; - }; - notificationsTableByNotificationsTableId?: { - select: TableSelect; - }; - organizationSettingsTableByOrganizationSettingsTableId?: { - select: TableSelect; - }; - ownerTable?: { - select: TableSelect; - }; - preferencesTableByPreferencesTableId?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - readStateTableByReadStateTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - userSettingsTableByUserSettingsTableId?: { - select: TableSelect; - }; -}; -export type InferenceLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - inferenceLogTableId?: boolean; - inferenceLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - inferenceLogTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type ComputeLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - computeLogTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type TransferLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - transferLogTableId?: boolean; - transferLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - transferLogTable?: { - select: TableSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type StorageLogModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - storageLogTableId?: boolean; - storageLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - storageLogTable?: { - select: TableSelect; - }; - usageDailyTable?: { - select: TableSelect; - }; -}; -export type DbUsageModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - queryStatsDailyTable?: { - select: TableSelect; - }; - queryStatsLogTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - tableStatsDailyTable?: { - select: TableSelect; - }; - tableStatsLogTable?: { - select: TableSelect; - }; -}; -export type AgentModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - threadTableId?: boolean; - messageTableId?: boolean; - taskTableId?: boolean; - promptsTableId?: boolean; - knowledgeTableId?: boolean; - threadTableName?: boolean; - messageTableName?: boolean; - taskTableName?: boolean; - promptsTableName?: boolean; - knowledgeTableName?: boolean; - hasKnowledge?: boolean; - apiName?: boolean; - membershipType?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - knowledgeConfig?: boolean; - knowledgePolicies?: boolean; - provisions?: boolean; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - knowledgeTable?: { - select: TableSelect; - }; - messageTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - promptsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - taskTable?: { - select: TableSelect; - }; - threadTable?: { - select: TableSelect; - }; -}; -export type NamespaceModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - namespacesTableId?: boolean; - namespaceEventsTableId?: boolean; - namespacesTableName?: boolean; - namespaceEventsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - membershipType?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - namespaceEventsTable?: { - select: TableSelect; - }; - namespacesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type FunctionModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - definitionsTableId?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - secretDefinitionsTableId?: boolean; - requirementsTableId?: boolean; - configDefinitionsTableId?: boolean; - configRequirementsTableId?: boolean; - definitionsTableName?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - secretDefinitionsTableName?: boolean; - requirementsTableName?: boolean; - configRequirementsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - membershipType?: boolean; - prefix?: boolean; - key?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - configDefinitionsTable?: { - select: TableSelect; - }; - configRequirementsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - definitionsTable?: { - select: TableSelect; - }; - entityTable?: { - select: TableSelect; - }; - executionLogsTable?: { - select: TableSelect; - }; - invocationsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - requirementsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - secretDefinitionsTable?: { - select: TableSelect; - }; -}; -export type DatabaseProvisionModuleSelect = { - 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; - database?: { - select: DatabaseSelect; - }; -}; -export type AppAdminGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type AppOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type AppGrantSelect = { - id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; -export type OrgMemberSelect = { - id?: boolean; - isAdmin?: boolean; - actorId?: boolean; - entityId?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgAdminGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgMemberProfileSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; - email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type OrgGrantSelect = { - id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; -}; -export type OrgChartEdgeSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; - child?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - parent?: { - select: UserSelect; - }; -}; -export type OrgChartEdgeGrantSelect = { - id?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - grantorId?: boolean; - isGrant?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; - createdAt?: boolean; - child?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; - grantor?: { - select: UserSelect; - }; - parent?: { - select: UserSelect; - }; -}; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type AppLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - organizationId?: boolean; - entityType?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type AppLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - actor?: { - select: UserSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditCodeItemSelect = { - id?: boolean; - creditCodeId?: boolean; - defaultLimitId?: boolean; - amount?: boolean; - creditType?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; - defaultLimit?: { - select: AppLimitDefaultSelect; - }; -}; -export type AppLimitCreditRedemptionSelect = { - id?: boolean; - creditCodeId?: boolean; - entityId?: boolean; - creditCode?: { - select: AppLimitCreditCodeSelect; - }; -}; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - actor?: { - select: UserSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitCreditSelect = { - id?: boolean; - defaultLimitId?: boolean; - actorId?: boolean; - entityId?: boolean; - amount?: boolean; - creditType?: boolean; - reason?: boolean; - actor?: { - select: UserSelect; - }; - defaultLimit?: { - select: OrgLimitDefaultSelect; - }; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitAggregateSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - num?: boolean; - max?: boolean; - softMax?: boolean; - windowStart?: boolean; - windowDuration?: boolean; - planMax?: boolean; - purchasedCredits?: boolean; - periodCredits?: boolean; - reserved?: boolean; - organizationId?: boolean; - entityType?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type OrgLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type PhoneNumberSelect = { - id?: boolean; - ownerId?: boolean; - cc?: boolean; - number?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type CryptoAddressSelect = { - id?: boolean; - ownerId?: boolean; - address?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - name?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type WebauthnCredentialSelect = { - id?: boolean; - ownerId?: boolean; - credentialId?: boolean; - publicKey?: boolean; - signCount?: boolean; - webauthnUserId?: boolean; - transports?: boolean; - credentialDeviceType?: boolean; - backupEligible?: boolean; - backupState?: boolean; - name?: boolean; - lastUsedAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; -}; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - sender?: { - select: UserSelect; - }; -}; -export type AppClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type OrgInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - receiverId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - isReadOnly?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type OrgClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; - receiver?: { - select: UserSelect; - }; - sender?: { - select: UserSelect; - }; -}; -export type AuditLogAuthSelect = { - createdAt?: boolean; - id?: boolean; - event?: boolean; - actorId?: boolean; - origin?: boolean; - userAgent?: boolean; - ipAddress?: boolean; - success?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type IdentityProviderSelect = { - slug?: boolean; - kind?: boolean; - displayName?: boolean; - enabled?: boolean; - isBuiltIn?: boolean; -}; -export type AppPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; -}; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; -export type MigrateFileSelect = { - id?: boolean; - databaseId?: boolean; - upload?: boolean; -}; -export type DevicesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - userDevicesTableId?: boolean; - deviceSettingsTableId?: boolean; - userDevicesTable?: boolean; - deviceSettingsTable?: boolean; - database?: { - select: DatabaseSelect; - }; - deviceSettingsTableByDeviceSettingsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - userDevicesTableByUserDevicesTableId?: { - select: TableSelect; - }; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type NodeTypeRegistrySelect = { - name?: boolean; - slug?: boolean; - category?: boolean; - displayName?: boolean; - description?: boolean; - parameterSchema?: boolean; - tags?: boolean; -}; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type UserConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - appLimitCreditsByDefaultLimitId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - appLimitCreditCodeItemsByDefaultLimitId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; - softMax?: boolean; - orgLimitCreditsByDefaultLimitId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; -}; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitWarningSelect = { - id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; -}; -export type PubkeySettingSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - cryptoNetwork?: boolean; - userField?: boolean; - signUpWithKeyFunctionId?: boolean; - signInRequestChallengeFunctionId?: boolean; - signInRecordFailureFunctionId?: boolean; - signInWithChallengeFunctionId?: boolean; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - signInRecordFailureFunction?: { - select: FunctionSelect; - }; - signInRequestChallengeFunction?: { - select: FunctionSelect; - }; - signInWithChallengeFunction?: { - select: FunctionSelect; - }; - signUpWithKeyFunction?: { - select: FunctionSelect; - }; -}; -export type RateLimitsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - rateLimitSettingsTableId?: boolean; - ipRateLimitsTableId?: boolean; - rateLimitsTableId?: boolean; - rateLimitSettingsTable?: boolean; - ipRateLimitsTable?: boolean; - rateLimitsTable?: boolean; - database?: { - select: DatabaseSelect; - }; - ipRateLimitsTableByIpRateLimitsTableId?: { - select: TableSelect; - }; - rateLimitSettingsTableByRateLimitSettingsTableId?: { - select: TableSelect; - }; - rateLimitsTableByRateLimitsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; -}; -export type RlsSettingSelect = { - id?: boolean; - databaseId?: boolean; - authenticateSchemaId?: boolean; - roleSchemaId?: boolean; - authenticateFunctionId?: boolean; - authenticateStrictFunctionId?: boolean; - currentRoleFunctionId?: boolean; - currentRoleIdFunctionId?: boolean; - currentUserAgentFunctionId?: boolean; - currentIpAddressFunctionId?: boolean; - authenticateFunction?: { - select: FunctionSelect; - }; - authenticateSchema?: { - select: SchemaSelect; - }; - authenticateStrictFunction?: { - select: FunctionSelect; - }; - currentIpAddressFunction?: { - select: FunctionSelect; - }; - currentRoleFunction?: { - select: FunctionSelect; - }; - currentRoleIdFunction?: { - select: FunctionSelect; - }; - currentUserAgentFunction?: { - select: FunctionSelect; - }; - database?: { - select: DatabaseSelect; - }; - roleSchema?: { - select: SchemaSelect; - }; -}; -export type RlsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - sessionCredentialsTableId?: boolean; - sessionsTableId?: boolean; - usersTableId?: boolean; - authenticate?: boolean; - authenticateStrict?: boolean; - currentRole?: boolean; - currentRoleId?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -export type RateLimitMetersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - rateLimitStateTableId?: boolean; - rateLimitStateTableName?: boolean; - rateLimitOverridesTableId?: boolean; - rateLimitOverridesTableName?: boolean; - rateWindowLimitsTableId?: boolean; - rateWindowLimitsTableName?: boolean; - checkRateLimitFunction?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - rateLimitOverridesTableByRateLimitOverridesTableId?: { - select: TableSelect; - }; - rateLimitStateTableByRateLimitStateTableId?: { - select: TableSelect; - }; - rateWindowLimitsTableByRateWindowLimitsTableId?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type PlansModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - prefix?: boolean; - database?: { - select: DatabaseSelect; - }; - planLimitsTable?: { - select: TableSelect; - }; - planOverridesTable?: { - select: TableSelect; - }; - planPricingTable?: { - select: TableSelect; - }; - plansTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type SqlActionSelect = { - id?: boolean; - name?: boolean; - databaseId?: boolean; - deploy?: boolean; - deps?: boolean; - payload?: boolean; - content?: boolean; - revert?: boolean; - verify?: boolean; - createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; -}; -export type DatabaseSettingSelect = { - id?: boolean; - databaseId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: boolean; - database?: { - select: DatabaseSelect; - }; -}; -export type OrgMembershipSettingSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type AppLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - createdAt?: boolean; - id?: boolean; - name?: boolean; - actorId?: boolean; - entityId?: boolean; - organizationId?: boolean; - entityType?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type AppMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type UserSelect = { - id?: boolean; - username?: boolean; - displayName?: boolean; - profilePicture?: boolean; - searchTsv?: boolean; - type?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - searchTsvRank?: boolean; - displayNameTrgmSimilarity?: boolean; - searchScore?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - appMembershipByActorId?: { - select: AppMembershipSelect; - }; - orgMembershipDefaultByEntityId?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipSettingByEntityId?: { - select: OrgMembershipSettingSelect; - }; - ownedDatabases?: { - select: DatabaseSelect; - first?: number; - filter?: DatabaseFilter; - orderBy?: DatabaseOrderBy[]; - }; - appAdminGrantsByActorId?: { - select: AppAdminGrantSelect; - first?: number; - filter?: AppAdminGrantFilter; - orderBy?: AppAdminGrantOrderBy[]; - }; - appAdminGrantsByGrantorId?: { - select: AppAdminGrantSelect; - first?: number; - filter?: AppAdminGrantFilter; - orderBy?: AppAdminGrantOrderBy[]; - }; - appOwnerGrantsByActorId?: { - select: AppOwnerGrantSelect; - first?: number; - filter?: AppOwnerGrantFilter; - orderBy?: AppOwnerGrantOrderBy[]; - }; - appOwnerGrantsByGrantorId?: { - select: AppOwnerGrantSelect; - first?: number; - filter?: AppOwnerGrantFilter; - orderBy?: AppOwnerGrantOrderBy[]; - }; - appGrantsByActorId?: { - select: AppGrantSelect; - first?: number; - filter?: AppGrantFilter; - orderBy?: AppGrantOrderBy[]; - }; - appGrantsByGrantorId?: { - select: AppGrantSelect; - first?: number; - filter?: AppGrantFilter; - orderBy?: AppGrantOrderBy[]; - }; - orgMembershipsByActorId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgMembershipsByEntityId?: { - select: OrgMembershipSelect; - first?: number; - filter?: OrgMembershipFilter; - orderBy?: OrgMembershipOrderBy[]; - }; - orgMembersByActorId?: { - select: OrgMemberSelect; - first?: number; - filter?: OrgMemberFilter; - orderBy?: OrgMemberOrderBy[]; - }; - orgMembersByEntityId?: { - select: OrgMemberSelect; - first?: number; - filter?: OrgMemberFilter; - orderBy?: OrgMemberOrderBy[]; - }; - orgAdminGrantsByActorId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgAdminGrantsByEntityId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgAdminGrantsByGrantorId?: { - select: OrgAdminGrantSelect; - first?: number; - filter?: OrgAdminGrantFilter; - orderBy?: OrgAdminGrantOrderBy[]; - }; - orgOwnerGrantsByActorId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgOwnerGrantsByEntityId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgOwnerGrantsByGrantorId?: { - select: OrgOwnerGrantSelect; - first?: number; - filter?: OrgOwnerGrantFilter; - orderBy?: OrgOwnerGrantOrderBy[]; - }; - orgMemberProfilesByActorId?: { - select: OrgMemberProfileSelect; - first?: number; - filter?: OrgMemberProfileFilter; - orderBy?: OrgMemberProfileOrderBy[]; - }; - orgMemberProfilesByEntityId?: { - select: OrgMemberProfileSelect; - first?: number; - filter?: OrgMemberProfileFilter; - orderBy?: OrgMemberProfileOrderBy[]; - }; - orgGrantsByActorId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - orgGrantsByEntityId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - orgGrantsByGrantorId?: { - select: OrgGrantSelect; - first?: number; - filter?: OrgGrantFilter; - orderBy?: OrgGrantOrderBy[]; - }; - parentOrgChartEdges?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - orgChartEdgesByEntityId?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - childOrgChartEdges?: { - select: OrgChartEdgeSelect; - first?: number; - filter?: OrgChartEdgeFilter; - orderBy?: OrgChartEdgeOrderBy[]; - }; - parentOrgChartEdgeGrants?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgChartEdgeGrantsByEntityId?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgChartEdgeGrantsByGrantorId?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - childOrgChartEdgeGrants?: { - select: OrgChartEdgeGrantSelect; - first?: number; - filter?: OrgChartEdgeGrantFilter; - orderBy?: OrgChartEdgeGrantOrderBy[]; - }; - orgPermissionDefaultsByEntityId?: { - select: OrgPermissionDefaultSelect; - first?: number; - filter?: OrgPermissionDefaultFilter; - orderBy?: OrgPermissionDefaultOrderBy[]; - }; - appLimitsByActorId?: { - select: AppLimitSelect; - first?: number; - filter?: AppLimitFilter; - orderBy?: AppLimitOrderBy[]; - }; - appLimitCreditsByActorId?: { - select: AppLimitCreditSelect; - first?: number; - filter?: AppLimitCreditFilter; - orderBy?: AppLimitCreditOrderBy[]; - }; - orgLimitsByActorId?: { - select: OrgLimitSelect; - first?: number; - filter?: OrgLimitFilter; - orderBy?: OrgLimitOrderBy[]; - }; - orgLimitsByEntityId?: { - select: OrgLimitSelect; - first?: number; - filter?: OrgLimitFilter; - orderBy?: OrgLimitOrderBy[]; - }; - orgLimitCreditsByActorId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; - orgLimitCreditsByEntityId?: { - select: OrgLimitCreditSelect; - first?: number; - filter?: OrgLimitCreditFilter; - orderBy?: OrgLimitCreditOrderBy[]; - }; - orgLimitAggregatesByEntityId?: { - select: OrgLimitAggregateSelect; - first?: number; - filter?: OrgLimitAggregateFilter; - orderBy?: OrgLimitAggregateOrderBy[]; - }; - orgLimitWarningsByEntityId?: { - select: OrgLimitWarningSelect; - first?: number; - filter?: OrgLimitWarningFilter; - orderBy?: OrgLimitWarningOrderBy[]; - }; - ownedEmails?: { - select: EmailSelect; - first?: number; - filter?: EmailFilter; - orderBy?: EmailOrderBy[]; - }; - ownedPhoneNumbers?: { - select: PhoneNumberSelect; - first?: number; - filter?: PhoneNumberFilter; - orderBy?: PhoneNumberOrderBy[]; - }; - ownedCryptoAddresses?: { - select: CryptoAddressSelect; - first?: number; - filter?: CryptoAddressFilter; - orderBy?: CryptoAddressOrderBy[]; - }; - ownedWebauthnCredentials?: { - select: WebauthnCredentialSelect; - first?: number; - filter?: WebauthnCredentialFilter; - orderBy?: WebauthnCredentialOrderBy[]; - }; - appInvitesBySenderId?: { - select: AppInviteSelect; - first?: number; - filter?: AppInviteFilter; - orderBy?: AppInviteOrderBy[]; - }; - appClaimedInvitesByReceiverId?: { - select: AppClaimedInviteSelect; - first?: number; - filter?: AppClaimedInviteFilter; - orderBy?: AppClaimedInviteOrderBy[]; - }; - appClaimedInvitesBySenderId?: { - select: AppClaimedInviteSelect; - first?: number; - filter?: AppClaimedInviteFilter; - orderBy?: AppClaimedInviteOrderBy[]; - }; - orgInvitesByEntityId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgInvitesByReceiverId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgInvitesBySenderId?: { - select: OrgInviteSelect; - first?: number; - filter?: OrgInviteFilter; - orderBy?: OrgInviteOrderBy[]; - }; - orgClaimedInvitesByEntityId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - orgClaimedInvitesByReceiverId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - orgClaimedInvitesBySenderId?: { - select: OrgClaimedInviteSelect; - first?: number; - filter?: OrgClaimedInviteFilter; - orderBy?: OrgClaimedInviteOrderBy[]; - }; - auditLogAuthsByActorId?: { - select: AuditLogAuthSelect; - first?: number; - filter?: AuditLogAuthFilter; - orderBy?: AuditLogAuthOrderBy[]; - }; -}; -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; - schemaId?: boolean; - credentialsSchemaId?: boolean; - sessionsSchemaId?: boolean; - sessionSecretsSchemaId?: boolean; - credentialsTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - sessionSecretsTableId?: boolean; - userFieldId?: boolean; - rpId?: boolean; - rpName?: boolean; - originAllowlist?: boolean; - attestationType?: boolean; - requireUserVerification?: boolean; - residentKey?: boolean; - challengeExpirySeconds?: boolean; - credentialsSchema?: { - select: SchemaSelect; - }; - credentialsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - schema?: { - select: SchemaSelect; - }; - sessionCredentialsTable?: { - select: TableSelect; - }; - sessionSecretsSchema?: { - select: SchemaSelect; - }; - sessionSecretsTable?: { - select: TableSelect; - }; - sessionsSchema?: { - select: SchemaSelect; - }; - sessionsTable?: { - select: TableSelect; - }; - userField?: { - select: FieldSelect; - }; -}; -export type BillingModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - meterCreditsTableId?: boolean; - meterCreditsTableName?: boolean; - meterSourcesTableId?: boolean; - meterSourcesTableName?: boolean; - recordUsageFunction?: boolean; - prefix?: boolean; - balancesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - ledgerTable?: { - select: TableSelect; - }; - meterCreditsTable?: { - select: TableSelect; - }; - meterSourcesTable?: { - select: TableSelect; - }; - metersTable?: { - select: TableSelect; - }; - planSubscriptionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; -}; -export type BillingProviderModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - provider?: boolean; - productsTableId?: boolean; - pricesTableId?: boolean; - subscriptionsTableId?: boolean; - billingCustomersTableId?: boolean; - billingCustomersTableName?: boolean; - billingProductsTableId?: boolean; - billingProductsTableName?: boolean; - billingPricesTableId?: boolean; - billingPricesTableName?: boolean; - billingSubscriptionsTableId?: boolean; - billingSubscriptionsTableName?: boolean; - billingWebhookEventsTableId?: boolean; - billingWebhookEventsTableName?: boolean; - processBillingEventFunction?: boolean; - prefix?: boolean; - billingCustomersTable?: { - select: TableSelect; - }; - billingPricesTable?: { - select: TableSelect; - }; - billingProductsTable?: { - select: TableSelect; - }; - billingSubscriptionsTable?: { - select: TableSelect; - }; - billingWebhookEventsTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - pricesTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - productsTable?: { - select: TableSelect; - }; - schema?: { - select: SchemaSelect; - }; - subscriptionsTable?: { - select: TableSelect; - }; -}; -export type HierarchyModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - chartEdgesTableId?: boolean; - chartEdgesTableName?: boolean; - hierarchySprtTableId?: boolean; - hierarchySprtTableName?: boolean; - chartEdgeGrantsTableId?: boolean; - chartEdgeGrantsTableName?: boolean; - entityTableId?: boolean; - usersTableId?: boolean; - prefix?: boolean; - privateSchemaName?: boolean; - sprtTableName?: boolean; - rebuildHierarchyFunction?: boolean; - getSubordinatesFunction?: boolean; - getManagersFunction?: boolean; - isManagerOfFunction?: boolean; - createdAt?: boolean; - chartEdgeGrantsTable?: { - select: TableSelect; - }; - chartEdgesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - entityTable?: { - select: TableSelect; - }; - hierarchySprtTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; - }; - usersTable?: { - select: TableSelect; - }; -}; -// ============ Table Filter Types ============ -export interface OrgGetManagersRecordFilter { - userId?: UUIDFilter; - depth?: IntFilter; - and?: OrgGetManagersRecordFilter[]; - or?: OrgGetManagersRecordFilter[]; - not?: OrgGetManagersRecordFilter; -} -export interface OrgGetSubordinatesRecordFilter { - userId?: UUIDFilter; - depth?: IntFilter; - and?: OrgGetSubordinatesRecordFilter[]; - or?: OrgGetSubordinatesRecordFilter[]; - not?: OrgGetSubordinatesRecordFilter; -} -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} -export interface DatabaseFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `schemaHash` field. */ - schemaHash?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** 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?: DatabaseFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseFilter[]; - /** Negates the expression. */ - not?: DatabaseFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** Filter by the object’s `schemas` relation. */ - schemas?: DatabaseToManySchemaFilter; - /** `schemas` exist. */ - schemasExist?: boolean; - /** Filter by the object’s `tables` relation. */ - tables?: DatabaseToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: DatabaseToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: DatabaseToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: DatabaseToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggerFunctions` relation. */ - triggerFunctions?: DatabaseToManyTriggerFunctionFilter; - /** `triggerFunctions` exist. */ - triggerFunctionsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: DatabaseToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: DatabaseToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: DatabaseToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: DatabaseToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: DatabaseToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `partitions` relation. */ - partitions?: DatabaseToManyPartitionFilter; - /** `partitions` exist. */ - partitionsExist?: boolean; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `apis` relation. */ - apis?: DatabaseToManyApiFilter; - /** `apis` exist. */ - apisExist?: boolean; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: DatabaseToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: DatabaseToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sites` relation. */ - sites?: DatabaseToManySiteFilter; - /** `sites` exist. */ - sitesExist?: boolean; - /** Filter by the object’s `apps` relation. */ - apps?: DatabaseToManyAppFilter; - /** `apps` exist. */ - appsExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: DatabaseToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: DatabaseToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: DatabaseToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: DatabaseToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `databaseSetting` relation. */ - databaseSetting?: DatabaseSettingFilter; - /** A related `databaseSetting` exists. */ - databaseSettingExists?: boolean; - /** Filter by the object’s `apiSettings` relation. */ - apiSettings?: DatabaseToManyApiSettingFilter; - /** `apiSettings` exist. */ - apiSettingsExist?: boolean; - /** Filter by the object’s `rlsSetting` relation. */ - rlsSetting?: RlsSettingFilter; - /** A related `rlsSetting` exists. */ - rlsSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: DatabaseToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; - /** Filter by the object’s `pubkeySetting` relation. */ - pubkeySetting?: PubkeySettingFilter; - /** A related `pubkeySetting` exists. */ - pubkeySettingExists?: boolean; - /** Filter by the object’s `webauthnSetting` relation. */ - webauthnSetting?: WebauthnSettingFilter; - /** A related `webauthnSetting` exists. */ - webauthnSettingExists?: boolean; - /** Filter by the object’s `connectedAccountsModules` relation. */ - connectedAccountsModules?: DatabaseToManyConnectedAccountsModuleFilter; - /** `connectedAccountsModules` exist. */ - connectedAccountsModulesExist?: boolean; - /** Filter by the object’s `cryptoAddressesModules` relation. */ - cryptoAddressesModules?: DatabaseToManyCryptoAddressesModuleFilter; - /** `cryptoAddressesModules` exist. */ - cryptoAddressesModulesExist?: boolean; - /** Filter by the object’s `cryptoAuthModules` relation. */ - cryptoAuthModules?: DatabaseToManyCryptoAuthModuleFilter; - /** `cryptoAuthModules` exist. */ - cryptoAuthModulesExist?: boolean; - /** Filter by the object’s `defaultIdsModules` relation. */ - defaultIdsModules?: DatabaseToManyDefaultIdsModuleFilter; - /** `defaultIdsModules` exist. */ - defaultIdsModulesExist?: boolean; - /** Filter by the object’s `denormalizedTableFields` relation. */ - denormalizedTableFields?: DatabaseToManyDenormalizedTableFieldFilter; - /** `denormalizedTableFields` exist. */ - denormalizedTableFieldsExist?: boolean; - /** Filter by the object’s `emailsModules` relation. */ - emailsModules?: DatabaseToManyEmailsModuleFilter; - /** `emailsModules` exist. */ - emailsModulesExist?: boolean; - /** Filter by the object’s `configSecretsUserModules` relation. */ - configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; - /** `configSecretsUserModules` exist. */ - configSecretsUserModulesExist?: boolean; - /** Filter by the object’s `invitesModules` relation. */ - invitesModules?: DatabaseToManyInvitesModuleFilter; - /** `invitesModules` exist. */ - invitesModulesExist?: boolean; - /** Filter by the object’s `eventsModules` relation. */ - eventsModules?: DatabaseToManyEventsModuleFilter; - /** `eventsModules` exist. */ - eventsModulesExist?: boolean; - /** Filter by the object’s `limitsModules` relation. */ - limitsModules?: DatabaseToManyLimitsModuleFilter; - /** `limitsModules` exist. */ - limitsModulesExist?: boolean; - /** Filter by the object’s `membershipTypesModules` relation. */ - membershipTypesModules?: DatabaseToManyMembershipTypesModuleFilter; - /** `membershipTypesModules` exist. */ - membershipTypesModulesExist?: boolean; - /** Filter by the object’s `membershipsModules` relation. */ - membershipsModules?: DatabaseToManyMembershipsModuleFilter; - /** `membershipsModules` exist. */ - membershipsModulesExist?: boolean; - /** Filter by the object’s `permissionsModules` relation. */ - permissionsModules?: DatabaseToManyPermissionsModuleFilter; - /** `permissionsModules` exist. */ - permissionsModulesExist?: boolean; - /** Filter by the object’s `phoneNumbersModules` relation. */ - phoneNumbersModules?: DatabaseToManyPhoneNumbersModuleFilter; - /** `phoneNumbersModules` exist. */ - phoneNumbersModulesExist?: boolean; - /** Filter by the object’s `profilesModules` relation. */ - profilesModules?: DatabaseToManyProfilesModuleFilter; - /** `profilesModules` exist. */ - profilesModulesExist?: boolean; - /** Filter by the object’s `rlsModule` relation. */ - rlsModule?: RlsModuleFilter; - /** A related `rlsModule` exists. */ - rlsModuleExists?: boolean; - /** Filter by the object’s `userStateModules` relation. */ - userStateModules?: DatabaseToManyUserStateModuleFilter; - /** `userStateModules` exist. */ - userStateModulesExist?: boolean; - /** Filter by the object’s `sessionsModules` relation. */ - sessionsModules?: DatabaseToManySessionsModuleFilter; - /** `sessionsModules` exist. */ - sessionsModulesExist?: boolean; - /** Filter by the object’s `userAuthModules` relation. */ - userAuthModules?: DatabaseToManyUserAuthModuleFilter; - /** `userAuthModules` exist. */ - userAuthModulesExist?: boolean; - /** Filter by the object’s `usersModules` relation. */ - usersModules?: DatabaseToManyUsersModuleFilter; - /** `usersModules` exist. */ - usersModulesExist?: boolean; - /** Filter by the object’s `hierarchyModule` relation. */ - hierarchyModule?: HierarchyModuleFilter; - /** A related `hierarchyModule` exists. */ - hierarchyModuleExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: DatabaseToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisions` relation. */ - relationProvisions?: DatabaseToManyRelationProvisionFilter; - /** `relationProvisions` exist. */ - relationProvisionsExist?: boolean; - /** Filter by the object’s `blueprints` relation. */ - blueprints?: DatabaseToManyBlueprintFilter; - /** `blueprints` exist. */ - blueprintsExist?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: DatabaseToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; - /** Filter by the object’s `storageModules` relation. */ - storageModules?: DatabaseToManyStorageModuleFilter; - /** `storageModules` exist. */ - storageModulesExist?: boolean; - /** Filter by the object’s `entityTypeProvisions` relation. */ - entityTypeProvisions?: DatabaseToManyEntityTypeProvisionFilter; - /** `entityTypeProvisions` exist. */ - entityTypeProvisionsExist?: boolean; - /** Filter by the object’s `rateLimitsModule` relation. */ - rateLimitsModule?: RateLimitsModuleFilter; - /** A related `rateLimitsModule` exists. */ - rateLimitsModuleExists?: boolean; - /** Filter by the object’s `devicesModule` relation. */ - devicesModule?: DevicesModuleFilter; - /** A related `devicesModule` exists. */ - devicesModuleExists?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: DatabaseToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `webauthnCredentialsModules` relation. */ - webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter; - /** `webauthnCredentialsModules` exist. */ - webauthnCredentialsModulesExist?: boolean; - /** Filter by the object’s `webauthnAuthModules` relation. */ - webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter; - /** `webauthnAuthModules` exist. */ - webauthnAuthModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `notificationsModules` relation. */ - notificationsModules?: DatabaseToManyNotificationsModuleFilter; - /** `notificationsModules` exist. */ - notificationsModulesExist?: boolean; - /** Filter by the object’s `plansModule` relation. */ - plansModule?: PlansModuleFilter; - /** A related `plansModule` exists. */ - plansModuleExists?: boolean; - /** Filter by the object’s `billingModule` relation. */ - billingModule?: BillingModuleFilter; - /** A related `billingModule` exists. */ - billingModuleExists?: boolean; - /** Filter by the object’s `billingProviderModule` relation. */ - billingProviderModule?: BillingProviderModuleFilter; - /** A related `billingProviderModule` exists. */ - billingProviderModuleExists?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: DatabaseToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `rateLimitMetersModule` relation. */ - rateLimitMetersModule?: RateLimitMetersModuleFilter; - /** A related `rateLimitMetersModule` exists. */ - rateLimitMetersModuleExists?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `inferenceLogModules` relation. */ - inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; - /** `inferenceLogModules` exist. */ - inferenceLogModulesExist?: boolean; - /** Filter by the object’s `computeLogModules` relation. */ - computeLogModules?: DatabaseToManyComputeLogModuleFilter; - /** `computeLogModules` exist. */ - computeLogModulesExist?: boolean; - /** Filter by the object’s `transferLogModules` relation. */ - transferLogModules?: DatabaseToManyTransferLogModuleFilter; - /** `transferLogModules` exist. */ - transferLogModulesExist?: boolean; - /** Filter by the object’s `storageLogModules` relation. */ - storageLogModules?: DatabaseToManyStorageLogModuleFilter; - /** `storageLogModules` exist. */ - storageLogModulesExist?: boolean; - /** Filter by the object’s `dbUsageModules` relation. */ - dbUsageModules?: DatabaseToManyDbUsageModuleFilter; - /** `dbUsageModules` exist. */ - dbUsageModulesExist?: boolean; - /** Filter by the object’s `agentModules` relation. */ - agentModules?: DatabaseToManyAgentModuleFilter; - /** `agentModules` exist. */ - agentModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModules` relation. */ - merkleStoreModules?: DatabaseToManyMerkleStoreModuleFilter; - /** `merkleStoreModules` exist. */ - merkleStoreModulesExist?: boolean; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: DatabaseToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `namespaceModules` relation. */ - namespaceModules?: DatabaseToManyNamespaceModuleFilter; - /** `namespaceModules` exist. */ - namespaceModulesExist?: boolean; - /** Filter by the object’s `functionModules` relation. */ - functionModules?: DatabaseToManyFunctionModuleFilter; - /** `functionModules` exist. */ - functionModulesExist?: boolean; - /** Filter by the object’s `databaseProvisionModules` relation. */ - databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; - /** `databaseProvisionModules` exist. */ - databaseProvisionModulesExist?: boolean; -} -export interface SchemaFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: 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?: SchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; - /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: SchemaToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: SchemaToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */ - identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModulesByPrivateSchemaId` exist. */ - identityProvidersModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByPrivateSchemaId` relation. */ - realtimeModulesByPrivateSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesByPrivateSchemaId` exist. */ - realtimeModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. */ - realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesBySubscriptionsSchemaId` exist. */ - realtimeModulesBySubscriptionsSchemaIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation. */ - merkleStoreModulesByPrivateSchemaId?: SchemaToManyMerkleStoreModuleFilter; - /** `merkleStoreModulesByPrivateSchemaId` exist. */ - merkleStoreModulesByPrivateSchemaIdExist?: boolean; -} -export interface TableFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `timestamps` field. */ - timestamps?: BooleanFilter; - /** Filter by the object’s `peoplestamps` field. */ - peoplestamps?: BooleanFilter; - /** Filter by the object’s `pluralName` field. */ - pluralName?: StringFilter; - /** Filter by the object’s `singularName` field. */ - singularName?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `partitioned` field. */ - partitioned?: BooleanFilter; - /** Filter by the object’s `partitionStrategy` field. */ - partitionStrategy?: StringFilter; - /** Filter by the object’s `partitionKeyNames` field. */ - partitionKeyNames?: StringListFilter; - /** Filter by the object’s `partitionKeyTypes` field. */ - partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: 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?: TableFilter[]; - /** Checks for any expressions in this list. */ - or?: TableFilter[]; - /** Negates the expression. */ - not?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `inherits` relation. */ - inherits?: TableFilter; - /** A related `inherits` exists. */ - inheritsExists?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: TableToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: TableToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: TableToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: TableToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: TableToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: TableToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: TableToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: TableToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: TableToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: TableToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ - embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunksByChunksTableId` exist. */ - embeddingChunksByChunksTableIdExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ - spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; - /** `spatialRelationsByRefTableId` exist. */ - spatialRelationsByRefTableIdExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: TableToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `partition` relation. */ - partition?: PartitionFilter; - /** A related `partition` exists. */ - partitionExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: TableToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisionsBySourceTableId` relation. */ - relationProvisionsBySourceTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsBySourceTableId` exist. */ - relationProvisionsBySourceTableIdExist?: boolean; - /** Filter by the object’s `relationProvisionsByTargetTableId` relation. */ - relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsByTargetTableId` exist. */ - relationProvisionsByTargetTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. */ - sessionSecretsModulesBySessionsTableId?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModulesBySessionsTableId` exist. */ - sessionSecretsModulesBySessionsTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: TableToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByChangeLogTableId` relation. */ - realtimeModulesByChangeLogTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByChangeLogTableId` exist. */ - realtimeModulesByChangeLogTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. */ - realtimeModulesByListenerNodeTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByListenerNodeTableId` exist. */ - realtimeModulesByListenerNodeTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. */ - realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesBySourceRegistryTableId` exist. */ - realtimeModulesBySourceRegistryTableIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; -} -export interface CheckConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `expr` field. */ - expr?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: CheckConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: CheckConstraintFilter[]; - /** Negates the expression. */ - not?: CheckConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface FieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: JSONFilter; - /** Filter by the object’s `fieldOrder` field. */ - fieldOrder?: IntFilter; - /** Filter by the object’s `regexp` field. */ - regexp?: StringFilter; - /** Filter by the object’s `chk` field. */ - chk?: JSONFilter; - /** Filter by the object’s `chkExpr` field. */ - chkExpr?: JSONFilter; - /** Filter by the object’s `min` field. */ - min?: FloatFilter; - /** Filter by the object’s `max` field. */ - max?: FloatFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** 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?: FieldFilter[]; - /** Checks for any expressions in this list. */ - or?: FieldFilter[]; - /** Negates the expression. */ - not?: FieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: FieldToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ - spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; - /** `spatialRelationsByRefFieldId` exist. */ - spatialRelationsByRefFieldIdExist?: boolean; -} -export interface SpatialRelationFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `operator` field. */ - operator?: StringFilter; - /** Filter by the object’s `paramName` field. */ - paramName?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: SpatialRelationFilter[]; - /** Checks for any expressions in this list. */ - or?: SpatialRelationFilter[]; - /** Negates the expression. */ - not?: SpatialRelationFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface ForeignKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldIds` field. */ - refFieldIds?: UUIDListFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `updateAction` field. */ - updateAction?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: ForeignKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: ForeignKeyConstraintFilter[]; - /** Negates the expression. */ - not?: ForeignKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface FullTextSearchFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `weights` field. */ - weights?: StringListFilter; - /** Filter by the object’s `langs` field. */ - langs?: StringListFilter; - /** 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?: FullTextSearchFilter[]; - /** Checks for any expressions in this list. */ - or?: FullTextSearchFilter[]; - /** Negates the expression. */ - not?: FullTextSearchFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface IndexFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `includeFieldIds` field. */ - includeFieldIds?: UUIDListFilter; - /** Filter by the object’s `accessMethod` field. */ - accessMethod?: StringFilter; - /** Filter by the object’s `indexParams` field. */ - indexParams?: JSONFilter; - /** Filter by the object’s `whereClause` field. */ - whereClause?: JSONFilter; - /** Filter by the object’s `isUnique` field. */ - isUnique?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `opClasses` field. */ - opClasses?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: IndexFilter[]; - /** Checks for any expressions in this list. */ - or?: IndexFilter[]; - /** Negates the expression. */ - not?: IndexFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PolicyFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `permissive` field. */ - permissive?: BooleanFilter; - /** Filter by the object’s `disabled` field. */ - disabled?: BooleanFilter; - /** Filter by the object’s `policyType` field. */ - policyType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PolicyFilter[]; - /** Checks for any expressions in this list. */ - or?: PolicyFilter[]; - /** Negates the expression. */ - not?: PolicyFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PrimaryKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PrimaryKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: PrimaryKeyConstraintFilter[]; - /** Negates the expression. */ - not?: PrimaryKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface TableGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: 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?: TableGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: TableGrantFilter[]; - /** Negates the expression. */ - not?: TableGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface TriggerFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `functionName` field. */ - functionName?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: TriggerFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFilter[]; - /** Negates the expression. */ - not?: TriggerFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface UniqueConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: UniqueConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: UniqueConstraintFilter[]; - /** Negates the expression. */ - not?: UniqueConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface ViewFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `viewType` field. */ - viewType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `filterType` field. */ - filterType?: StringFilter; - /** Filter by the object’s `filterData` field. */ - filterData?: JSONFilter; - /** Filter by the object’s `securityInvoker` field. */ - securityInvoker?: BooleanFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ViewFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewFilter[]; - /** Negates the expression. */ - not?: ViewFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** A related `table` exists. */ - tableExists?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: ViewToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: ViewToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: ViewToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; -} -export interface ViewTableFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `joinOrder` field. */ - joinOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: ViewTableFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewTableFilter[]; - /** Negates the expression. */ - not?: ViewTableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface ViewGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `withGrantOption` field. */ - withGrantOption?: BooleanFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ViewGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewGrantFilter[]; - /** Negates the expression. */ - not?: ViewGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface ViewRuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ViewRuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewRuleFilter[]; - /** Negates the expression. */ - not?: ViewRuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -export interface EmbeddingChunkFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `embeddingFieldId` field. */ - embeddingFieldId?: UUIDFilter; - /** Filter by the object’s `chunksTableId` field. */ - chunksTableId?: UUIDFilter; - /** Filter by the object’s `chunksTableName` field. */ - chunksTableName?: StringFilter; - /** Filter by the object’s `contentFieldName` field. */ - contentFieldName?: StringFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: IntFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `chunkSize` field. */ - chunkSize?: IntFilter; - /** Filter by the object’s `chunkOverlap` field. */ - chunkOverlap?: IntFilter; - /** Filter by the object’s `chunkStrategy` field. */ - chunkStrategy?: StringFilter; - /** Filter by the object’s `metadataFields` field. */ - metadataFields?: JSONFilter; - /** Filter by the object’s `searchIndexes` field. */ - searchIndexes?: JSONFilter; - /** Filter by the object’s `enqueueChunkingJob` field. */ - enqueueChunkingJob?: BooleanFilter; - /** Filter by the object’s `chunkingTaskName` field. */ - chunkingTaskName?: StringFilter; - /** Filter by the object’s `embeddingModel` field. */ - embeddingModel?: StringFilter; - /** Filter by the object’s `embeddingProvider` field. */ - embeddingProvider?: StringFilter; - /** Filter by the object’s `parentFkFieldId` field. */ - parentFkFieldId?: 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?: EmbeddingChunkFilter[]; - /** Checks for any expressions in this list. */ - or?: EmbeddingChunkFilter[]; - /** Negates the expression. */ - not?: EmbeddingChunkFilter; - /** Filter by the object’s `chunksTable` relation. */ - chunksTable?: TableFilter; - /** A related `chunksTable` exists. */ - chunksTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `embeddingField` relation. */ - embeddingField?: FieldFilter; - /** A related `embeddingField` exists. */ - embeddingFieldExists?: boolean; - /** Filter by the object’s `parentFkField` relation. */ - parentFkField?: FieldFilter; - /** A related `parentFkField` exists. */ - parentFkFieldExists?: boolean; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SecureTableProvisionFilter { - /** 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 `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `sourceTable` relation. */ - sourceTable?: TableFilter; - /** Filter by the object’s `targetTable` relation. */ - targetTable?: TableFilter; -} -export interface 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; - /** Filter by the object’s `changeLogTable` relation. */ - changeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `listenerNodeTable` relation. */ - listenerNodeTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sourceRegistryTable` relation. */ - sourceRegistryTable?: TableFilter; - /** Filter by the object’s `subscriptionsSchema` relation. */ - subscriptionsSchema?: SchemaFilter; -} -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SchemaGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: 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?: SchemaGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaGrantFilter[]; - /** Negates the expression. */ - not?: SchemaGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface DefaultPrivilegeFilter { - /** 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 `objectType` field. */ - objectType?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: DefaultPrivilegeFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultPrivilegeFilter[]; - /** Negates the expression. */ - not?: DefaultPrivilegeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface EnumFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `values` field. */ - values?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: EnumFilter[]; - /** Checks for any expressions in this list. */ - or?: EnumFilter[]; - /** Negates the expression. */ - not?: EnumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface FunctionFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionFilter[]; - /** Negates the expression. */ - not?: FunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface ApiSchemaFilter { - /** 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 `apiId` field. */ - apiId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ApiSchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSchemaFilter[]; - /** Negates the expression. */ - not?: ApiSchemaFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface ApiModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ApiModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiModuleFilter[]; - /** Negates the expression. */ - not?: ApiModuleFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface DomainFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: ConstructiveInternalTypeHostnameFilter; - /** Filter by the object’s `domain` field. */ - domain?: ConstructiveInternalTypeHostnameFilter; - /** Checks for all expressions in this list. */ - and?: DomainFilter[]; - /** Checks for any expressions in this list. */ - or?: DomainFilter[]; - /** Negates the expression. */ - not?: DomainFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** A related `site` exists. */ - siteExists?: boolean; -} -export interface SiteMetadatumFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface SiteModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteModuleFilter[]; - /** Negates the expression. */ - not?: SiteModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface SiteThemeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `theme` field. */ - theme?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; - /** Negates the expression. */ - not?: SiteThemeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -export interface CorsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: CorsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: CorsSettingFilter[]; - /** Negates the expression. */ - not?: CorsSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -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 `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 `scopeField` field. */ - scopeField?: 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 `commitTable` relation. */ - commitTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `objectTable` relation. */ - objectTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storeTable` relation. */ - storeTable?: TableFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; -} -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 `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 `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 `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scopeField` field. */ - scopeField?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** 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?: GraphModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; - /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `executionsTable` relation. */ - executionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `graphsTable` relation. */ - graphsTable?: TableFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; - /** Filter by the object’s `outputsTable` relation. */ - outputsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `publicSchema` relation. */ - publicSchema?: SchemaFilter; -} -export interface TriggerFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `code` field. */ - code?: 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?: TriggerFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFunctionFilter[]; - /** Negates the expression. */ - not?: TriggerFunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface PartitionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `strategy` field. */ - strategy?: StringFilter; - /** Filter by the object’s `partitionKeyId` field. */ - partitionKeyId?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `retentionKeepTable` field. */ - retentionKeepTable?: BooleanFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `namingPattern` field. */ - namingPattern?: StringFilter; - /** Filter by the object’s `isParented` field. */ - isParented?: 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?: PartitionFilter[]; - /** Checks for any expressions in this list. */ - or?: PartitionFilter[]; - /** Negates the expression. */ - not?: PartitionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `partitionKey` relation. */ - partitionKey?: FieldFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface DatabaseTransferFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `targetOwnerId` field. */ - targetOwnerId?: UUIDFilter; - /** Filter by the object’s `sourceApproved` field. */ - sourceApproved?: BooleanFilter; - /** Filter by the object’s `targetApproved` field. */ - targetApproved?: BooleanFilter; - /** Filter by the object’s `sourceApprovedAt` field. */ - sourceApprovedAt?: DatetimeFilter; - /** Filter by the object’s `targetApprovedAt` field. */ - targetApprovedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `initiatedBy` field. */ - initiatedBy?: UUIDFilter; - /** Filter by the object’s `notes` field. */ - notes?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseTransferFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseTransferFilter[]; - /** Negates the expression. */ - not?: DatabaseTransferFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ApiFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ApiFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiFilter[]; - /** Negates the expression. */ - not?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: ApiToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: ApiToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: ApiToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `apiSetting` relation. */ - apiSetting?: ApiSettingFilter; - /** A related `apiSetting` exists. */ - apiSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: ApiToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; -} -export interface SiteFilter { - /** Filter by the object’s `id` field. */ - id?: 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. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeAttachmentFilter; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Negates the expression. */ - not?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** A related `app` exists. */ - appExists?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: SiteToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: SiteToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; -} -export interface AppFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `appImage` field. */ - appImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `appStoreLink` field. */ - appStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Filter by the object’s `appStoreId` field. */ - appStoreId?: StringFilter; - /** Filter by the object’s `appIdPrefix` field. */ - appIdPrefix?: StringFilter; - /** Filter by the object’s `playStoreLink` field. */ - playStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Negates the expression. */ - not?: AppFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ApiSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: ApiSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSettingFilter[]; - /** Negates the expression. */ - not?: ApiSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface ConnectedAccountsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Checks for all expressions in this list. */ - and?: CryptoAddressesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressesModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAddressesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface CryptoAuthModuleFilter { - /** 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 `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `addressesTableId` field. */ - addressesTableId?: UUIDFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `signInRequestChallenge` field. */ - signInRequestChallenge?: StringFilter; - /** Filter by the object’s `signInRecordFailure` field. */ - signInRecordFailure?: StringFilter; - /** Filter by the object’s `signUpWithKey` field. */ - signUpWithKey?: StringFilter; - /** Filter by the object’s `signInWithChallenge` field. */ - signInWithChallenge?: StringFilter; - /** Checks for all expressions in this list. */ - and?: CryptoAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAuthModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface DefaultIdsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: DefaultIdsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultIdsModuleFilter[]; - /** Negates the expression. */ - not?: DefaultIdsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface DenormalizedTableFieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `setIds` field. */ - setIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `refIds` field. */ - refIds?: UUIDListFilter; - /** Filter by the object’s `useUpdates` field. */ - useUpdates?: BooleanFilter; - /** Filter by the object’s `updateDefaults` field. */ - updateDefaults?: BooleanFilter; - /** Filter by the object’s `funcName` field. */ - funcName?: StringFilter; - /** Filter by the object’s `funcOrder` field. */ - funcOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: DenormalizedTableFieldFilter[]; - /** Checks for any expressions in this list. */ - or?: DenormalizedTableFieldFilter[]; - /** Negates the expression. */ - not?: DenormalizedTableFieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface EmailsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: EmailsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailsModuleFilter[]; - /** Negates the expression. */ - not?: EmailsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `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; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface InvitesModuleFilter { - /** 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 `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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; - /** Filter by the object’s `claimedInvitesTable` relation. */ - claimedInvitesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `invitesTable` relation. */ - invitesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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; - /** Filter by the object’s `removeEvent` field. */ - removeEvent?: StringFilter; - /** Filter by the object’s `tgEvent` field. */ - tgEvent?: StringFilter; - /** Filter by the object’s `tgEventToggle` field. */ - tgEventToggle?: StringFilter; - /** Filter by the object’s `tgEventToggleBool` field. */ - tgEventToggleBool?: StringFilter; - /** Filter by the object’s `tgEventBool` field. */ - tgEventBool?: StringFilter; - /** Filter by the object’s `upsertAggregate` field. */ - 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. */ - levelAchieved?: StringFilter; - /** Filter by the object’s `tgCheckAchievements` field. */ - tgCheckAchievements?: StringFilter; - /** Filter by the object’s `grantAchievement` field. */ - grantAchievement?: StringFilter; - /** Filter by the object’s `tgAchievementReward` field. */ - tgAchievementReward?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EventsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EventsModuleFilter[]; - /** Negates the expression. */ - not?: EventsModuleFilter; - /** Filter by the object’s `achievementRewardsTable` relation. */ - achievementRewardsTable?: TableFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventAggregatesTable` relation. */ - eventAggregatesTable?: TableFilter; - /** Filter by the object’s `eventTypesTable` relation. */ - eventTypesTable?: TableFilter; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** Filter by the object’s `levelGrantsTable` relation. */ - levelGrantsTable?: TableFilter; - /** Filter by the object’s `levelRequirementsTable` relation. */ - levelRequirementsTable?: TableFilter; - /** Filter by the object’s `levelsTable` relation. */ - levelsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface LimitsModuleFilter { - /** 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 `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 `limitIncrementFunction` field. */ - limitIncrementFunction?: StringFilter; - /** Filter by the object’s `limitDecrementFunction` field. */ - limitDecrementFunction?: StringFilter; - /** Filter by the object’s `limitIncrementTrigger` field. */ - limitIncrementTrigger?: StringFilter; - /** Filter by the object’s `limitDecrementTrigger` field. */ - limitDecrementTrigger?: StringFilter; - /** Filter by the object’s `limitUpdateTrigger` field. */ - limitUpdateTrigger?: StringFilter; - /** Filter by the object’s `limitCheckFunction` field. */ - limitCheckFunction?: StringFilter; - /** Filter by the object’s `limitCreditsTableId` field. */ - limitCreditsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `creditCodesTableId` field. */ - creditCodesTableId?: UUIDFilter; - /** Filter by the object’s `creditCodeItemsTableId` field. */ - creditCodeItemsTableId?: UUIDFilter; - /** Filter by the object’s `creditRedemptionsTableId` field. */ - creditRedemptionsTableId?: UUIDFilter; - /** Filter by the object’s `aggregateTableId` field. */ - aggregateTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsTableId` field. */ - limitCapsTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsDefaultsTableId` field. */ - limitCapsDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `capCheckTrigger` field. */ - capCheckTrigger?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: LimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitsModuleFilter[]; - /** Negates the expression. */ - not?: LimitsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `aggregateTable` relation. */ - aggregateTable?: TableFilter; - /** A related `aggregateTable` exists. */ - aggregateTableExists?: boolean; - /** Filter by the object’s `creditCodeItemsTable` relation. */ - creditCodeItemsTable?: TableFilter; - /** A related `creditCodeItemsTable` exists. */ - creditCodeItemsTableExists?: boolean; - /** Filter by the object’s `creditCodesTable` relation. */ - creditCodesTable?: TableFilter; - /** A related `creditCodesTable` exists. */ - creditCodesTableExists?: boolean; - /** Filter by the object’s `creditRedemptionsTable` relation. */ - creditRedemptionsTable?: TableFilter; - /** A related `creditRedemptionsTable` exists. */ - creditRedemptionsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** A related `eventsTable` exists. */ - eventsTableExists?: boolean; - /** Filter by the object’s `limitCapsDefaultsTable` relation. */ - limitCapsDefaultsTable?: TableFilter; - /** A related `limitCapsDefaultsTable` exists. */ - limitCapsDefaultsTableExists?: boolean; - /** Filter by the object’s `limitCapsTable` relation. */ - limitCapsTable?: TableFilter; - /** A related `limitCapsTable` exists. */ - limitCapsTableExists?: boolean; - /** Filter by the object’s `limitCreditsTable` relation. */ - limitCreditsTable?: TableFilter; - /** A related `limitCreditsTable` exists. */ - limitCreditsTableExists?: boolean; - /** Filter by the object’s `limitWarningStateTable` relation. */ - limitWarningStateTable?: TableFilter; - /** A related `limitWarningStateTable` exists. */ - limitWarningStateTableExists?: boolean; - /** Filter by the object’s `limitWarningsTable` relation. */ - limitWarningsTable?: TableFilter; - /** A related `limitWarningsTable` exists. */ - limitWarningsTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface MembershipTypesModuleFilter { - /** 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?: MembershipTypesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; - /** Negates the expression. */ - not?: MembershipTypesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultLimitsTable` relation. */ - defaultLimitsTable?: TableFilter; - /** Filter by the object’s `defaultPermissionsTable` relation. */ - defaultPermissionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `entityTableOwner` relation. */ - entityTableOwner?: FieldFilter; - /** A related `entityTableOwner` exists. */ - entityTableOwnerExists?: boolean; - /** Filter by the object’s `grantsTable` relation. */ - grantsTable?: TableFilter; - /** Filter by the object’s `limitsTable` relation. */ - limitsTable?: TableFilter; - /** Filter by the object’s `membersTable` relation. */ - membersTable?: TableFilter; - /** Filter by the object’s `membershipDefaultsTable` relation. */ - membershipDefaultsTable?: TableFilter; - /** Filter by the object’s `membershipSettingsTable` relation. */ - membershipSettingsTable?: TableFilter; - /** A related `membershipSettingsTable` exists. */ - membershipSettingsTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sprtTable` relation. */ - sprtTable?: TableFilter; -} -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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface PhoneNumbersModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: PhoneNumbersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumbersModuleFilter[]; - /** Negates the expression. */ - not?: PhoneNumbersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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 `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 `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; - /** Filter by the object’s `profileGrantsTableId` field. */ - profileGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileGrantsTableName` field. */ - profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ - profileDefinitionGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ - profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `profileTemplatesTableId` field. */ - profileTemplatesTableId?: UUIDFilter; - /** Filter by the object’s `profileTemplatesTableName` field. */ - profileTemplatesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ProfilesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ProfilesModuleFilter[]; - /** Negates the expression. */ - not?: ProfilesModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `profileDefinitionGrantsTable` relation. */ - profileDefinitionGrantsTable?: TableFilter; - /** Filter by the object’s `profileGrantsTable` relation. */ - profileGrantsTable?: TableFilter; - /** Filter by the object’s `profilePermissionsTable` relation. */ - profilePermissionsTable?: TableFilter; - /** Filter by the object’s `profileTemplatesTable` relation. */ - profileTemplatesTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -export interface SessionsModuleFilter { - /** 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 `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsDefaultExpiration` field. */ - sessionsDefaultExpiration?: IntervalFilter; - /** Filter by the object’s `sessionsTable` field. */ - sessionsTable?: StringFilter; - /** Filter by the object’s `sessionCredentialsTable` field. */ - sessionCredentialsTable?: StringFilter; - /** Filter by the object’s `authSettingsTable` field. */ - authSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SessionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SessionsModuleFilter[]; - /** Negates the expression. */ - not?: SessionsModuleFilter; - /** Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. */ - authSettingsTableByAuthSettingsTableId?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. */ - sessionCredentialsTableBySessionCredentialsTableId?: TableFilter; - /** Filter by the object’s `sessionsTableBySessionsTableId` relation. */ - sessionsTableBySessionsTableId?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface UserAuthModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `encryptedTableId` field. */ - encryptedTableId?: 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 `auditsTableName` field. */ - auditsTableName?: StringFilter; - /** Filter by the object’s `signInFunction` field. */ - signInFunction?: StringFilter; - /** Filter by the object’s `signUpFunction` field. */ - signUpFunction?: StringFilter; - /** Filter by the object’s `signOutFunction` field. */ - signOutFunction?: StringFilter; - /** Filter by the object’s `setPasswordFunction` field. */ - setPasswordFunction?: StringFilter; - /** Filter by the object’s `resetPasswordFunction` field. */ - resetPasswordFunction?: StringFilter; - /** Filter by the object’s `forgotPasswordFunction` field. */ - forgotPasswordFunction?: StringFilter; - /** Filter by the object’s `sendVerificationEmailFunction` field. */ - sendVerificationEmailFunction?: StringFilter; - /** Filter by the object’s `verifyEmailFunction` field. */ - verifyEmailFunction?: StringFilter; - /** Filter by the object’s `verifyPasswordFunction` field. */ - verifyPasswordFunction?: StringFilter; - /** Filter by the object’s `checkPasswordFunction` field. */ - checkPasswordFunction?: StringFilter; - /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ - sendAccountDeletionEmailFunction?: StringFilter; - /** Filter by the object’s `deleteAccountFunction` field. */ - deleteAccountFunction?: StringFilter; - /** Filter by the object’s `signInCrossOriginFunction` field. */ - signInCrossOriginFunction?: StringFilter; - /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ - requestCrossOriginTokenFunction?: StringFilter; - /** Filter by the object’s `extendTokenExpires` field. */ - extendTokenExpires?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserAuthModuleFilter[]; - /** Negates the expression. */ - not?: UserAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `encryptedTable` relation. */ - encryptedTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface UsersModuleFilter { - /** 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 `typeTableId` field. */ - typeTableId?: UUIDFilter; - /** Filter by the object’s `typeTableName` field. */ - typeTableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UsersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UsersModuleFilter[]; - /** Negates the expression. */ - not?: UsersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `typeTable` relation. */ - typeTable?: TableFilter; -} -export interface BlueprintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `templateId` field. */ - templateId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintFilter[]; - /** Negates the expression. */ - not?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `template` relation. */ - template?: BlueprintTemplateFilter; - /** A related `template` exists. */ - templateExists?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; -} -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `version` field. */ - version?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `visibility` field. */ - visibility?: StringFilter; - /** Filter by the object’s `categories` field. */ - categories?: StringListFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `definitionSchemaVersion` field. */ - definitionSchemaVersion?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `complexity` field. */ - complexity?: StringFilter; - /** Filter by the object’s `copyCount` field. */ - copyCount?: IntFilter; - /** Filter by the object’s `forkCount` field. */ - forkCount?: IntFilter; - /** Filter by the object’s `forkedFromId` field. */ - forkedFromId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintTemplateFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintTemplateFilter[]; - /** Negates the expression. */ - not?: BlueprintTemplateFilter; - /** Filter by the object’s `forkedFrom` relation. */ - forkedFrom?: BlueprintTemplateFilter; - /** A related `forkedFrom` exists. */ - forkedFromExists?: boolean; - /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ - blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; - /** `blueprintTemplatesByForkedFromId` exist. */ - blueprintTemplatesByForkedFromIdExist?: boolean; - /** Filter by the object’s `blueprintsByTemplateId` relation. */ - blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; - /** `blueprintsByTemplateId` exist. */ - blueprintsByTemplateIdExist?: boolean; -} -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface StorageModuleFilter { - /** 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 `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `filesTableId` field. */ - filesTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `filesTableName` field. */ - filesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - hasPathShares?: BooleanFilter; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: UUIDFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `hasVersioning` field. */ - hasVersioning?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; - /** Filter by the object’s `fileEventsTableId` field. */ - fileEventsTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Filter by the object’s `bucketsTable` relation. */ - bucketsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `fileEventsTable` relation. */ - fileEventsTable?: TableFilter; - /** A related `fileEventsTable` exists. */ - fileEventsTableExists?: boolean; - /** Filter by the object’s `filesTable` relation. */ - filesTable?: TableFilter; - /** Filter by the object’s `pathSharesTable` relation. */ - pathSharesTable?: TableFilter; - /** A related `pathSharesTable` exists. */ - pathSharesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface EntityTypeProvisionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - 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 `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface WebauthnCredentialsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialsModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -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[]; - /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; - /** Filter by the object’s `authSettingsTable` relation. */ - authSettingsTable?: TableFilter; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `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; - /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; - /** Negates the expression. */ - not?: NotificationsModuleFilter; - /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ - channelsTableByChannelsTableId?: TableFilter; - /** A related `channelsTableByChannelsTableId` exists. */ - channelsTableByChannelsTableIdExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ - deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ - deliveryLogTableByDeliveryLogTableIdExists?: boolean; - /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ - notificationsTableByNotificationsTableId?: TableFilter; - /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ - organizationSettingsTableByOrganizationSettingsTableId?: TableFilter; - /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */ - organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ - preferencesTableByPreferencesTableId?: TableFilter; - /** A related `preferencesTableByPreferencesTableId` exists. */ - preferencesTableByPreferencesTableIdExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ - readStateTableByReadStateTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ - userSettingsTableByUserSettingsTableId?: TableFilter; - /** A related `userSettingsTableByUserSettingsTableId` exists. */ - userSettingsTableByUserSettingsTableIdExists?: boolean; -} -export interface InferenceLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; - /** Negates the expression. */ - not?: InferenceLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `inferenceLogTable` relation. */ - inferenceLogTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface ComputeLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; - /** Negates the expression. */ - not?: ComputeLogModuleFilter; - /** Filter by the object’s `computeLogTable` relation. */ - computeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface TransferLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; - /** Negates the expression. */ - not?: TransferLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `transferLogTable` relation. */ - transferLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface StorageLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; - /** Negates the expression. */ - not?: StorageLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storageLogTable` relation. */ - storageLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; - /** Negates the expression. */ - not?: DbUsageModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `queryStatsDailyTable` relation. */ - queryStatsDailyTable?: TableFilter; - /** Filter by the object’s `queryStatsLogTable` relation. */ - queryStatsLogTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `tableStatsDailyTable` relation. */ - tableStatsDailyTable?: TableFilter; - /** Filter by the object’s `tableStatsLogTable` relation. */ - tableStatsLogTable?: TableFilter; -} -export interface AgentModuleFilter { - /** 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 `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 `knowledgeTableId` field. */ - knowledgeTableId?: UUIDFilter; - /** Filter by the object’s `threadTableName` field. */ - threadTableName?: StringFilter; - /** Filter by the object’s `messageTableName` field. */ - messageTableName?: StringFilter; - /** Filter by the object’s `taskTableName` field. */ - taskTableName?: StringFilter; - /** Filter by the object’s `promptsTableName` field. */ - promptsTableName?: StringFilter; - /** Filter by the object’s `knowledgeTableName` field. */ - knowledgeTableName?: StringFilter; - /** Filter by the object’s `hasKnowledge` field. */ - hasKnowledge?: BooleanFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `knowledgeConfig` field. */ - knowledgeConfig?: JSONFilter; - /** Filter by the object’s `knowledgePolicies` field. */ - knowledgePolicies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentModuleFilter[]; - /** Negates the expression. */ - not?: AgentModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `knowledgeTable` relation. */ - knowledgeTable?: TableFilter; - /** A related `knowledgeTable` exists. */ - knowledgeTableExists?: boolean; - /** Filter by the object’s `messageTable` relation. */ - messageTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `promptsTable` relation. */ - promptsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `taskTable` relation. */ - taskTable?: TableFilter; - /** Filter by the object’s `threadTable` relation. */ - threadTable?: TableFilter; -} -export interface 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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `namespaceEventsTable` relation. */ - namespaceEventsTable?: TableFilter; - /** Filter by the object’s `namespacesTable` relation. */ - namespacesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -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 `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 `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `configRequirementsTable` relation. */ - configRequirementsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `definitionsTable` relation. */ - definitionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `executionLogsTable` relation. */ - executionLogsTable?: TableFilter; - /** Filter by the object’s `invocationsTable` relation. */ - invocationsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `requirementsTable` relation. */ - requirementsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretDefinitionsTable` relation. */ - secretDefinitionsTable?: TableFilter; -} -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?: StringListFilter; - /** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** A related `database` exists. */ - databaseExists?: boolean; -} -export interface AppAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; - /** Negates the expression. */ - not?: AppAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface AppOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; - /** Negates the expression. */ - not?: AppOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -export interface OrgMemberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberFilter[]; - /** Negates the expression. */ - not?: OrgMemberFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface CryptoAddressFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: CryptoAddressFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; - /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface WebauthnCredentialFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `credentialId` field. */ - credentialId?: StringFilter; - /** Filter by the object’s `publicKey` field. */ - publicKey?: Base64EncodedBinaryFilter; - /** Filter by the object’s `signCount` field. */ - signCount?: BigIntFilter; - /** Filter by the object’s `webauthnUserId` field. */ - webauthnUserId?: StringFilter; - /** Filter by the object’s `transports` field. */ - transports?: StringListFilter; - /** Filter by the object’s `credentialDeviceType` field. */ - credentialDeviceType?: StringFilter; - /** Filter by the object’s `backupEligible` field. */ - backupEligible?: BooleanFilter; - /** Filter by the object’s `backupState` field. */ - backupState?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `lastUsedAt` field. */ - lastUsedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; - /** Negates the expression. */ - not?: AppClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -export interface OrgClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; - /** Negates the expression. */ - not?: OrgClaimedInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -export interface AuditLogAuthFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogAuthFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogAuthFilter[]; - /** Negates the expression. */ - not?: AuditLogAuthFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; -} -export interface IdentityProviderFilter { - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `enabled` field. */ - enabled?: BooleanFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProviderFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProviderFilter[]; - /** Negates the expression. */ - not?: IdentityProviderFilter; -} -export interface AppPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; -} -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} -export interface MigrateFileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `upload` field. */ - upload?: ConstructiveInternalTypeUploadFilter; - /** Checks for all expressions in this list. */ - and?: MigrateFileFilter[]; - /** Checks for any expressions in this list. */ - or?: MigrateFileFilter[]; - /** Negates the expression. */ - not?: MigrateFileFilter; -} -export interface DevicesModuleFilter { - /** 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 `userDevicesTableId` field. */ - userDevicesTableId?: UUIDFilter; - /** Filter by the object’s `deviceSettingsTableId` field. */ - deviceSettingsTableId?: UUIDFilter; - /** Filter by the object’s `userDevicesTable` field. */ - userDevicesTable?: StringFilter; - /** Filter by the object’s `deviceSettingsTable` field. */ - deviceSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DevicesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DevicesModuleFilter[]; - /** Negates the expression. */ - not?: DevicesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. */ - deviceSettingsTableByDeviceSettingsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ - userDevicesTableByUserDevicesTableId?: TableFilter; -} -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface NodeTypeRegistryFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parameterSchema` field. */ - parameterSchema?: JSONFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: NodeTypeRegistryFilter[]; - /** Checks for any expressions in this list. */ - or?: NodeTypeRegistryFilter[]; - /** Negates the expression. */ - not?: NodeTypeRegistryFilter; -} -export interface AppLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface UserConnectedAccountFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `service` field. */ - service?: StringFilter; - /** Filter by the object’s `identifier` field. */ - identifier?: StringFilter; - /** Filter by the object’s `details` field. */ - details?: JSONFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: UserConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: UserConnectedAccountFilter[]; - /** Negates the expression. */ - not?: UserConnectedAccountFilter; -} -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; - /** Negates the expression. */ - not?: AppLimitWarningFilter; -} -export interface PubkeySettingFilter { - /** 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 `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `signUpWithKeyFunctionId` field. */ - signUpWithKeyFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ - signInRequestChallengeFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRecordFailureFunctionId` field. */ - signInRecordFailureFunctionId?: UUIDFilter; - /** Filter by the object’s `signInWithChallengeFunctionId` field. */ - signInWithChallengeFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PubkeySettingFilter[]; - /** Checks for any expressions in this list. */ - or?: PubkeySettingFilter[]; - /** Negates the expression. */ - not?: PubkeySettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `signInRecordFailureFunction` relation. */ - signInRecordFailureFunction?: FunctionFilter; - /** A related `signInRecordFailureFunction` exists. */ - signInRecordFailureFunctionExists?: boolean; - /** Filter by the object’s `signInRequestChallengeFunction` relation. */ - signInRequestChallengeFunction?: FunctionFilter; - /** A related `signInRequestChallengeFunction` exists. */ - signInRequestChallengeFunctionExists?: boolean; - /** Filter by the object’s `signInWithChallengeFunction` relation. */ - signInWithChallengeFunction?: FunctionFilter; - /** A related `signInWithChallengeFunction` exists. */ - signInWithChallengeFunctionExists?: boolean; - /** Filter by the object’s `signUpWithKeyFunction` relation. */ - signUpWithKeyFunction?: FunctionFilter; - /** A related `signUpWithKeyFunction` exists. */ - signUpWithKeyFunctionExists?: boolean; -} -export interface RateLimitsModuleFilter { - /** 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 `rateLimitSettingsTableId` field. */ - rateLimitSettingsTableId?: UUIDFilter; - /** Filter by the object’s `ipRateLimitsTableId` field. */ - ipRateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitsTableId` field. */ - rateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitSettingsTable` field. */ - rateLimitSettingsTable?: StringFilter; - /** Filter by the object’s `ipRateLimitsTable` field. */ - ipRateLimitsTable?: StringFilter; - /** Filter by the object’s `rateLimitsTable` field. */ - rateLimitsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitsModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. */ - ipRateLimitsTableByIpRateLimitsTableId?: TableFilter; - /** Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. */ - rateLimitSettingsTableByRateLimitSettingsTableId?: TableFilter; - /** Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation. */ - rateLimitsTableByRateLimitsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface RlsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `authenticateSchemaId` field. */ - authenticateSchemaId?: UUIDFilter; - /** Filter by the object’s `roleSchemaId` field. */ - roleSchemaId?: UUIDFilter; - /** Filter by the object’s `authenticateFunctionId` field. */ - authenticateFunctionId?: UUIDFilter; - /** Filter by the object’s `authenticateStrictFunctionId` field. */ - authenticateStrictFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleFunctionId` field. */ - currentRoleFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleIdFunctionId` field. */ - currentRoleIdFunctionId?: UUIDFilter; - /** Filter by the object’s `currentUserAgentFunctionId` field. */ - currentUserAgentFunctionId?: UUIDFilter; - /** Filter by the object’s `currentIpAddressFunctionId` field. */ - currentIpAddressFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RlsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsSettingFilter[]; - /** Negates the expression. */ - not?: RlsSettingFilter; - /** Filter by the object’s `authenticateFunction` relation. */ - authenticateFunction?: FunctionFilter; - /** A related `authenticateFunction` exists. */ - authenticateFunctionExists?: boolean; - /** Filter by the object’s `authenticateSchema` relation. */ - authenticateSchema?: SchemaFilter; - /** A related `authenticateSchema` exists. */ - authenticateSchemaExists?: boolean; - /** Filter by the object’s `authenticateStrictFunction` relation. */ - authenticateStrictFunction?: FunctionFilter; - /** A related `authenticateStrictFunction` exists. */ - authenticateStrictFunctionExists?: boolean; - /** Filter by the object’s `currentIpAddressFunction` relation. */ - currentIpAddressFunction?: FunctionFilter; - /** A related `currentIpAddressFunction` exists. */ - currentIpAddressFunctionExists?: boolean; - /** Filter by the object’s `currentRoleFunction` relation. */ - currentRoleFunction?: FunctionFilter; - /** A related `currentRoleFunction` exists. */ - currentRoleFunctionExists?: boolean; - /** Filter by the object’s `currentRoleIdFunction` relation. */ - currentRoleIdFunction?: FunctionFilter; - /** A related `currentRoleIdFunction` exists. */ - currentRoleIdFunctionExists?: boolean; - /** Filter by the object’s `currentUserAgentFunction` relation. */ - currentUserAgentFunction?: FunctionFilter; - /** A related `currentUserAgentFunction` exists. */ - currentUserAgentFunctionExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `roleSchema` relation. */ - roleSchema?: SchemaFilter; - /** A related `roleSchema` exists. */ - roleSchemaExists?: boolean; -} -export interface 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; - /** Checks for all expressions in this list. */ - and?: RlsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsModuleFilter[]; - /** Negates the expression. */ - not?: RlsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -export interface RateLimitMetersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -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 `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 `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `planLimitsTable` relation. */ - planLimitsTable?: TableFilter; - /** Filter by the object’s `planOverridesTable` relation. */ - planOverridesTable?: TableFilter; - /** A related `planOverridesTable` exists. */ - planOverridesTableExists?: boolean; - /** Filter by the object’s `planPricingTable` relation. */ - planPricingTable?: TableFilter; - /** A related `planPricingTable` exists. */ - planPricingTableExists?: boolean; - /** Filter by the object’s `plansTable` relation. */ - plansTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface SqlActionFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: StringFilter; - /** Filter by the object’s `deps` field. */ - deps?: StringListFilter; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `revert` field. */ - revert?: StringFilter; - /** Filter by the object’s `verify` field. */ - verify?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: SqlActionFilter[]; - /** Checks for any expressions in this list. */ - or?: SqlActionFilter[]; - /** Negates the expression. */ - not?: SqlActionFilter; -} -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -export interface AppLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** 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?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `ownedDatabases` relation. */ - ownedDatabases?: UserToManyDatabaseFilter; - /** `ownedDatabases` exist. */ - ownedDatabasesExist?: boolean; - /** Filter by the object’s `appMembershipByActorId` relation. */ - appMembershipByActorId?: AppMembershipFilter; - /** A related `appMembershipByActorId` exists. */ - appMembershipByActorIdExists?: boolean; - /** Filter by the object’s `appAdminGrantsByActorId` relation. */ - appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByActorId` exist. */ - appAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ - appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByGrantorId` exist. */ - appAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ - appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByActorId` exist. */ - appOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ - appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByGrantorId` exist. */ - appOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appGrantsByActorId` relation. */ - appGrantsByActorId?: UserToManyAppGrantFilter; - /** `appGrantsByActorId` exist. */ - appGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appGrantsByGrantorId` relation. */ - appGrantsByGrantorId?: UserToManyAppGrantFilter; - /** `appGrantsByGrantorId` exist. */ - appGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByActorId` relation. */ - orgMembershipsByActorId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByActorId` exist. */ - orgMembershipsByActorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByEntityId` relation. */ - orgMembershipsByEntityId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByEntityId` exist. */ - orgMembershipsByEntityIdExist?: boolean; - /** Filter by the object’s `orgMembershipDefaultByEntityId` relation. */ - orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter; - /** A related `orgMembershipDefaultByEntityId` exists. */ - orgMembershipDefaultByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */ - orgMembershipSettingByEntityId?: OrgMembershipSettingFilter; - /** A related `orgMembershipSettingByEntityId` exists. */ - orgMembershipSettingByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembersByActorId` relation. */ - orgMembersByActorId?: UserToManyOrgMemberFilter; - /** `orgMembersByActorId` exist. */ - orgMembersByActorIdExist?: boolean; - /** Filter by the object’s `orgMembersByEntityId` relation. */ - orgMembersByEntityId?: UserToManyOrgMemberFilter; - /** `orgMembersByEntityId` exist. */ - orgMembersByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ - orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByActorId` exist. */ - orgAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ - orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByEntityId` exist. */ - orgAdminGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByGrantorId` relation. */ - orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByGrantorId` exist. */ - orgAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ - orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByActorId` exist. */ - orgOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ - orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByEntityId` exist. */ - orgOwnerGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByGrantorId` relation. */ - orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByGrantorId` exist. */ - orgOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByActorId` relation. */ - orgMemberProfilesByActorId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByActorId` exist. */ - orgMemberProfilesByActorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByEntityId` relation. */ - orgMemberProfilesByEntityId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByEntityId` exist. */ - orgMemberProfilesByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByActorId` relation. */ - orgGrantsByActorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByActorId` exist. */ - orgGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgGrantsByEntityId` relation. */ - orgGrantsByEntityId?: UserToManyOrgGrantFilter; - /** `orgGrantsByEntityId` exist. */ - orgGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByGrantorId` relation. */ - orgGrantsByGrantorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByGrantorId` exist. */ - orgGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `parentOrgChartEdges` relation. */ - parentOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `parentOrgChartEdges` exist. */ - parentOrgChartEdgesExist?: boolean; - /** Filter by the object’s `orgChartEdgesByEntityId` relation. */ - orgChartEdgesByEntityId?: UserToManyOrgChartEdgeFilter; - /** `orgChartEdgesByEntityId` exist. */ - orgChartEdgesByEntityIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdges` relation. */ - childOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `childOrgChartEdges` exist. */ - childOrgChartEdgesExist?: boolean; - /** Filter by the object’s `parentOrgChartEdgeGrants` relation. */ - parentOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `parentOrgChartEdgeGrants` exist. */ - parentOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByEntityId` relation. */ - orgChartEdgeGrantsByEntityId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByEntityId` exist. */ - orgChartEdgeGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation. */ - orgChartEdgeGrantsByGrantorId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByGrantorId` exist. */ - orgChartEdgeGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdgeGrants` relation. */ - childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `childOrgChartEdgeGrants` exist. */ - childOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ - orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; - /** `orgPermissionDefaultsByEntityId` exist. */ - orgPermissionDefaultsByEntityIdExist?: boolean; - /** Filter by the object’s `appLimitsByActorId` relation. */ - appLimitsByActorId?: UserToManyAppLimitFilter; - /** `appLimitsByActorId` exist. */ - appLimitsByActorIdExist?: boolean; - /** Filter by the object’s `appLimitCreditsByActorId` relation. */ - appLimitCreditsByActorId?: UserToManyAppLimitCreditFilter; - /** `appLimitCreditsByActorId` exist. */ - appLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByActorId` relation. */ - orgLimitsByActorId?: UserToManyOrgLimitFilter; - /** `orgLimitsByActorId` exist. */ - orgLimitsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByEntityId` relation. */ - orgLimitsByEntityId?: UserToManyOrgLimitFilter; - /** `orgLimitsByEntityId` exist. */ - orgLimitsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByActorId` relation. */ - orgLimitCreditsByActorId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByActorId` exist. */ - orgLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByEntityId` relation. */ - orgLimitCreditsByEntityId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByEntityId` exist. */ - orgLimitCreditsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ - orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; - /** `orgLimitAggregatesByEntityId` exist. */ - orgLimitAggregatesByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitWarningsByEntityId` relation. */ - orgLimitWarningsByEntityId?: UserToManyOrgLimitWarningFilter; - /** `orgLimitWarningsByEntityId` exist. */ - orgLimitWarningsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedEmails` relation. */ - ownedEmails?: UserToManyEmailFilter; - /** `ownedEmails` exist. */ - ownedEmailsExist?: boolean; - /** Filter by the object’s `ownedPhoneNumbers` relation. */ - ownedPhoneNumbers?: UserToManyPhoneNumberFilter; - /** `ownedPhoneNumbers` exist. */ - ownedPhoneNumbersExist?: boolean; - /** Filter by the object’s `ownedCryptoAddresses` relation. */ - ownedCryptoAddresses?: UserToManyCryptoAddressFilter; - /** `ownedCryptoAddresses` exist. */ - ownedCryptoAddressesExist?: boolean; - /** Filter by the object’s `ownedWebauthnCredentials` relation. */ - ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `ownedWebauthnCredentials` exist. */ - ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `appInvitesBySenderId` relation. */ - appInvitesBySenderId?: UserToManyAppInviteFilter; - /** `appInvitesBySenderId` exist. */ - appInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesByReceiverId` relation. */ - appClaimedInvitesByReceiverId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesByReceiverId` exist. */ - appClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesBySenderId` relation. */ - appClaimedInvitesBySenderId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesBySenderId` exist. */ - appClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgInvitesByEntityId` relation. */ - orgInvitesByEntityId?: UserToManyOrgInviteFilter; - /** `orgInvitesByEntityId` exist. */ - orgInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgInvitesByReceiverId` relation. */ - orgInvitesByReceiverId?: UserToManyOrgInviteFilter; - /** `orgInvitesByReceiverId` exist. */ - orgInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgInvitesBySenderId` relation. */ - orgInvitesBySenderId?: UserToManyOrgInviteFilter; - /** `orgInvitesBySenderId` exist. */ - orgInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ - orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByEntityId` exist. */ - orgClaimedInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ - orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByReceiverId` exist. */ - orgClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesBySenderId` relation. */ - orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesBySenderId` exist. */ - orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogAuthsByActorId` relation. */ - auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; - /** `auditLogAuthsByActorId` exist. */ - auditLogAuthsByActorIdExist?: boolean; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; -} -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; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `credentialsSchemaId` field. */ - credentialsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionsSchemaId` field. */ - sessionsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsSchemaId` field. */ - sessionSecretsSchemaId?: 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 `userFieldId` field. */ - userFieldId?: 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 `challengeExpirySeconds` field. */ - challengeExpirySeconds?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnSettingFilter[]; - /** Negates the expression. */ - not?: WebauthnSettingFilter; - /** Filter by the object’s `credentialsSchema` relation. */ - credentialsSchema?: SchemaFilter; - /** A related `credentialsSchema` exists. */ - credentialsSchemaExists?: boolean; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** A related `credentialsTable` exists. */ - credentialsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** A related `sessionCredentialsTable` exists. */ - sessionCredentialsTableExists?: boolean; - /** Filter by the object’s `sessionSecretsSchema` relation. */ - sessionSecretsSchema?: SchemaFilter; - /** A related `sessionSecretsSchema` exists. */ - sessionSecretsSchemaExists?: boolean; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** A related `sessionSecretsTable` exists. */ - sessionSecretsTableExists?: boolean; - /** Filter by the object’s `sessionsSchema` relation. */ - sessionsSchema?: SchemaFilter; - /** A related `sessionsSchema` exists. */ - sessionsSchemaExists?: boolean; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** A related `sessionsTable` exists. */ - sessionsTableExists?: boolean; - /** Filter by the object’s `userField` relation. */ - userField?: FieldFilter; - /** A related `userField` exists. */ - userFieldExists?: boolean; -} -export interface BillingModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; - /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `meterCreditsTable` relation. */ - meterCreditsTable?: TableFilter; - /** Filter by the object’s `meterSourcesTable` relation. */ - meterSourcesTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -export interface BillingProviderModuleFilter { - /** Filter by the object’s `id` field. */ - 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; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; - /** Filter by the object’s `billingCustomersTable` relation. */ - billingCustomersTable?: TableFilter; - /** Filter by the object’s `billingPricesTable` relation. */ - billingPricesTable?: TableFilter; - /** Filter by the object’s `billingProductsTable` relation. */ - billingProductsTable?: TableFilter; - /** Filter by the object’s `billingSubscriptionsTable` relation. */ - billingSubscriptionsTable?: TableFilter; - /** Filter by the object’s `billingWebhookEventsTable` relation. */ - billingWebhookEventsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `pricesTable` relation. */ - pricesTable?: TableFilter; - /** A related `pricesTable` exists. */ - pricesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -export interface HierarchyModuleFilter { - /** 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 `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 `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 `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; - /** Filter by the object’s `chartEdgeGrantsTable` relation. */ - chartEdgeGrantsTable?: TableFilter; - /** Filter by the object’s `chartEdgesTable` relation. */ - chartEdgesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** Filter by the object’s `hierarchySprtTable` relation. */ - hierarchySprtTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -export type OrgPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -export type DatabaseOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SCHEMA_HASH_ASC' - | 'SCHEMA_HASH_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SCHEMA_NAME_ASC' - | 'SCHEMA_NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'TIMESTAMPS_ASC' - | 'TIMESTAMPS_DESC' - | 'PEOPLESTAMPS_ASC' - | 'PEOPLESTAMPS_DESC' - | 'PLURAL_NAME_ASC' - | 'PLURAL_NAME_DESC' - | 'SINGULAR_NAME_ASC' - | 'SINGULAR_NAME_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'PARTITIONED_ASC' - | 'PARTITIONED_DESC' - | 'PARTITION_STRATEGY_ASC' - | 'PARTITION_STRATEGY_DESC' - | 'PARTITION_KEY_NAMES_ASC' - | 'PARTITION_KEY_NAMES_DESC' - | 'PARTITION_KEY_TYPES_ASC' - | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type CheckConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'EXPR_ASC' - | 'EXPR_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'API_REQUIRED_ASC' - | 'API_REQUIRED_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_ORDER_ASC' - | 'FIELD_ORDER_DESC' - | 'REGEXP_ASC' - | 'REGEXP_DESC' - | 'CHK_ASC' - | 'CHK_DESC' - | 'CHK_EXPR_ASC' - | 'CHK_EXPR_DESC' - | 'MIN_ASC' - | 'MIN_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SpatialRelationOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'OPERATOR_ASC' - | 'OPERATOR_DESC' - | 'PARAM_NAME_ASC' - | 'PARAM_NAME_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type ForeignKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_IDS_ASC' - | 'REF_FIELD_IDS_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'UPDATE_ACTION_ASC' - | 'UPDATE_ACTION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FullTextSearchOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'WEIGHTS_ASC' - | 'WEIGHTS_DESC' - | 'LANGS_ASC' - | 'LANGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type IndexOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'INCLUDE_FIELD_IDS_ASC' - | 'INCLUDE_FIELD_IDS_DESC' - | 'ACCESS_METHOD_ASC' - | 'ACCESS_METHOD_DESC' - | 'INDEX_PARAMS_ASC' - | 'INDEX_PARAMS_DESC' - | 'WHERE_CLAUSE_ASC' - | 'WHERE_CLAUSE_DESC' - | 'IS_UNIQUE_ASC' - | 'IS_UNIQUE_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'OP_CLASSES_ASC' - | 'OP_CLASSES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PolicyOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'PERMISSIVE_ASC' - | 'PERMISSIVE_DESC' - | 'DISABLED_ASC' - | 'DISABLED_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PrimaryKeyConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TableGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type TriggerOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'FUNCTION_NAME_ASC' - | 'FUNCTION_NAME_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type UniqueConstraintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type ViewOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'VIEW_TYPE_ASC' - | 'VIEW_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FILTER_TYPE_ASC' - | 'FILTER_TYPE_DESC' - | 'FILTER_DATA_ASC' - | 'FILTER_DATA_DESC' - | 'SECURITY_INVOKER_ASC' - | 'SECURITY_INVOKER_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type ViewTableOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'JOIN_ORDER_ASC' - | 'JOIN_ORDER_DESC'; -export type ViewGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -export type ViewRuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'VIEW_ID_ASC' - | 'VIEW_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC'; -export type EmbeddingChunkOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'EMBEDDING_FIELD_ID_ASC' - | 'EMBEDDING_FIELD_ID_DESC' - | 'CHUNKS_TABLE_ID_ASC' - | 'CHUNKS_TABLE_ID_DESC' - | 'CHUNKS_TABLE_NAME_ASC' - | 'CHUNKS_TABLE_NAME_DESC' - | 'CONTENT_FIELD_NAME_ASC' - | 'CONTENT_FIELD_NAME_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'METRIC_ASC' - | 'METRIC_DESC' - | 'CHUNK_SIZE_ASC' - | 'CHUNK_SIZE_DESC' - | 'CHUNK_OVERLAP_ASC' - | 'CHUNK_OVERLAP_DESC' - | 'CHUNK_STRATEGY_ASC' - | 'CHUNK_STRATEGY_DESC' - | 'METADATA_FIELDS_ASC' - | 'METADATA_FIELDS_DESC' - | 'SEARCH_INDEXES_ASC' - | 'SEARCH_INDEXES_DESC' - | 'ENQUEUE_CHUNKING_JOB_ASC' - | 'ENQUEUE_CHUNKING_JOB_DESC' - | 'CHUNKING_TASK_NAME_ASC' - | 'CHUNKING_TASK_NAME_DESC' - | 'EMBEDDING_MODEL_ASC' - | 'EMBEDDING_MODEL_DESC' - | 'EMBEDDING_PROVIDER_ASC' - | 'EMBEDDING_PROVIDER_DESC' - | 'PARENT_FK_FIELD_ID_ASC' - | 'PARENT_FK_FIELD_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type SecureTableProvisionOrderBy = - | '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' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_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 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'; -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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_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'; -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type SchemaGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DefaultPrivilegeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'OBJECT_TYPE_ASC' - | 'OBJECT_TYPE_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC'; -export type EnumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'VALUES_ASC' - | 'VALUES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type FunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type ApiSchemaOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC'; -export type ApiModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type DomainOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC'; -export type SiteMetadatumOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC'; -export type SiteModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type SiteThemeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'THEME_ASC' - | 'THEME_DESC'; -export type CorsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC'; -export type MerkleStoreModuleOrderBy = - | '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' - | '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_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MERKLE_STORE_MODULE_ID_ASC' - | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' - | 'EXECUTIONS_TABLE_ID_ASC' - | 'EXECUTIONS_TABLE_ID_DESC' - | 'OUTPUTS_TABLE_ID_ASC' - | 'OUTPUTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_FIELD_ASC' - | 'SCOPE_FIELD_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type TriggerFunctionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PartitionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'STRATEGY_ASC' - | 'STRATEGY_DESC' - | 'PARTITION_KEY_ID_ASC' - | 'PARTITION_KEY_ID_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'RETENTION_KEEP_TABLE_ASC' - | 'RETENTION_KEEP_TABLE_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'NAMING_PATTERN_ASC' - | 'NAMING_PATTERN_DESC' - | 'IS_PARENTED_ASC' - | 'IS_PARENTED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type DatabaseTransferOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TARGET_OWNER_ID_ASC' - | 'TARGET_OWNER_ID_DESC' - | 'SOURCE_APPROVED_ASC' - | 'SOURCE_APPROVED_DESC' - | 'TARGET_APPROVED_ASC' - | 'TARGET_APPROVED_DESC' - | 'SOURCE_APPROVED_AT_ASC' - | 'SOURCE_APPROVED_AT_DESC' - | 'TARGET_APPROVED_AT_ASC' - | 'TARGET_APPROVED_AT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'INITIATED_BY_ASC' - | 'INITIATED_BY_DESC' - | 'NOTES_ASC' - | 'NOTES_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -export type ApiOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC'; -export type SiteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'FAVICON_ASC' - | 'FAVICON_DESC' - | 'APPLE_TOUCH_ICON_ASC' - | 'APPLE_TOUCH_ICON_DESC' - | 'LOGO_ASC' - | 'LOGO_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC'; -export type AppOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'APP_IMAGE_ASC' - | 'APP_IMAGE_DESC' - | 'APP_STORE_LINK_ASC' - | 'APP_STORE_LINK_DESC' - | 'APP_STORE_ID_ASC' - | 'APP_STORE_ID_DESC' - | 'APP_ID_PREFIX_ASC' - | 'APP_ID_PREFIX_DESC' - | 'PLAY_STORE_LINK_ASC' - | 'PLAY_STORE_LINK_DESC'; -export type ApiSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -export type ConnectedAccountsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type CryptoAddressesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC'; -export type CryptoAuthModuleOrderBy = - | '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' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'ADDRESSES_TABLE_ID_ASC' - | 'ADDRESSES_TABLE_ID_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_DESC' - | 'SIGN_IN_RECORD_FAILURE_ASC' - | 'SIGN_IN_RECORD_FAILURE_DESC' - | 'SIGN_UP_WITH_KEY_ASC' - | 'SIGN_UP_WITH_KEY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_ASC' - | 'SIGN_IN_WITH_CHALLENGE_DESC'; -export type DefaultIdsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type DenormalizedTableFieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'SET_IDS_ASC' - | 'SET_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'REF_IDS_ASC' - | 'REF_IDS_DESC' - | 'USE_UPDATES_ASC' - | 'USE_UPDATES_DESC' - | 'UPDATE_DEFAULTS_ASC' - | 'UPDATE_DEFAULTS_DESC' - | 'FUNC_NAME_ASC' - | 'FUNC_NAME_DESC' - | 'FUNC_ORDER_ASC' - | 'FUNC_ORDER_DESC'; -export type EmailsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = - | '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' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC'; -export type InvitesModuleOrderBy = - | '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' - | '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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; -export type EventsModuleOrderBy = - | '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' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' - | 'EVENTS_TABLE_NAME_ASC' - | 'EVENTS_TABLE_NAME_DESC' - | 'EVENT_AGGREGATES_TABLE_ID_ASC' - | 'EVENT_AGGREGATES_TABLE_ID_DESC' - | 'EVENT_AGGREGATES_TABLE_NAME_ASC' - | 'EVENT_AGGREGATES_TABLE_NAME_DESC' - | 'EVENT_TYPES_TABLE_ID_ASC' - | 'EVENT_TYPES_TABLE_ID_DESC' - | 'EVENT_TYPES_TABLE_NAME_ASC' - | 'EVENT_TYPES_TABLE_NAME_DESC' - | 'LEVELS_TABLE_ID_ASC' - | 'LEVELS_TABLE_ID_DESC' - | 'LEVELS_TABLE_NAME_ASC' - | 'LEVELS_TABLE_NAME_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' - | 'LEVEL_GRANTS_TABLE_ID_ASC' - | 'LEVEL_GRANTS_TABLE_ID_DESC' - | 'LEVEL_GRANTS_TABLE_NAME_ASC' - | 'LEVEL_GRANTS_TABLE_NAME_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_ID_DESC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_ASC' - | 'ACHIEVEMENT_REWARDS_TABLE_NAME_DESC' - | 'RECORD_EVENT_ASC' - | 'RECORD_EVENT_DESC' - | 'REMOVE_EVENT_ASC' - | 'REMOVE_EVENT_DESC' - | 'TG_EVENT_ASC' - | 'TG_EVENT_DESC' - | 'TG_EVENT_TOGGLE_ASC' - | 'TG_EVENT_TOGGLE_DESC' - | 'TG_EVENT_TOGGLE_BOOL_ASC' - | 'TG_EVENT_TOGGLE_BOOL_DESC' - | 'TG_EVENT_BOOL_ASC' - | 'TG_EVENT_BOOL_DESC' - | 'UPSERT_AGGREGATE_ASC' - | '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' - | 'LEVEL_ACHIEVED_DESC' - | 'TG_CHECK_ACHIEVEMENTS_ASC' - | 'TG_CHECK_ACHIEVEMENTS_DESC' - | 'GRANT_ACHIEVEMENT_ASC' - | 'GRANT_ACHIEVEMENT_DESC' - | 'TG_ACHIEVEMENT_REWARD_ASC' - | 'TG_ACHIEVEMENT_REWARD_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -export type LimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC'; -export type MembershipTypesModuleOrderBy = - | '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 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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_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'; -export type PhoneNumbersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -export type ProfilesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_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' - | 'PREFIX_ASC' - | 'PREFIX_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 SessionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUTH_SETTINGS_TABLE_ID_ASC' - | 'AUTH_SETTINGS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_DEFAULT_EXPIRATION_ASC' - | 'SESSIONS_DEFAULT_EXPIRATION_DESC' - | 'SESSIONS_TABLE_ASC' - | 'SESSIONS_TABLE_DESC' - | 'SESSION_CREDENTIALS_TABLE_ASC' - | 'SESSION_CREDENTIALS_TABLE_DESC' - | 'AUTH_SETTINGS_TABLE_ASC' - | 'AUTH_SETTINGS_TABLE_DESC'; -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'; -export type UsersModuleOrderBy = - | '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' - | 'TYPE_TABLE_ID_ASC' - | 'TYPE_TABLE_ID_DESC' - | 'TYPE_TABLE_NAME_ASC' - | 'TYPE_TABLE_NAME_DESC'; -export type BlueprintOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'TEMPLATE_ID_ASC' - | 'TEMPLATE_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type BlueprintTemplateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'VERSION_ASC' - | 'VERSION_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'VISIBILITY_ASC' - | 'VISIBILITY_DESC' - | 'CATEGORIES_ASC' - | 'CATEGORIES_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'DEFINITION_ASC' - | 'DEFINITION_DESC' - | 'DEFINITION_SCHEMA_VERSION_ASC' - | 'DEFINITION_SCHEMA_VERSION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'COMPLEXITY_ASC' - | 'COMPLEXITY_DESC' - | 'COPY_COUNT_ASC' - | 'COPY_COUNT_DESC' - | 'FORK_COUNT_ASC' - | 'FORK_COUNT_DESC' - | 'FORKED_FROM_ID_ASC' - | 'FORKED_FROM_ID_DESC' - | 'DEFINITION_HASH_ASC' - | 'DEFINITION_HASH_DESC' - | 'TABLE_HASHES_ASC' - | 'TABLE_HASHES_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type BlueprintConstructionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'BLUEPRINT_ID_ASC' - | 'BLUEPRINT_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_DETAILS_ASC' - | 'ERROR_DETAILS_DESC' - | 'TABLE_MAP_ASC' - | 'TABLE_MAP_DESC' - | 'CONSTRUCTED_DEFINITION_ASC' - | 'CONSTRUCTED_DEFINITION_DESC' - | 'CONSTRUCTED_AT_ASC' - | 'CONSTRUCTED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type StorageModuleOrderBy = - | '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' - | 'BUCKETS_TABLE_ID_ASC' - | 'BUCKETS_TABLE_ID_DESC' - | 'FILES_TABLE_ID_ASC' - | 'FILES_TABLE_ID_DESC' - | 'BUCKETS_TABLE_NAME_ASC' - | 'BUCKETS_TABLE_NAME_DESC' - | 'FILES_TABLE_NAME_ASC' - | 'FILES_TABLE_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENDPOINT_ASC' - | 'ENDPOINT_DESC' - | 'PUBLIC_URL_PREFIX_ASC' - | 'PUBLIC_URL_PREFIX_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC' - | 'RESTRICT_READS_ASC' - | 'RESTRICT_READS_DESC' - | 'HAS_PATH_SHARES_ASC' - | 'HAS_PATH_SHARES_DESC' - | 'PATH_SHARES_TABLE_ID_ASC' - | 'PATH_SHARES_TABLE_ID_DESC' - | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' - | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DEFAULT_MAX_FILE_SIZE_ASC' - | 'DEFAULT_MAX_FILE_SIZE_DESC' - | 'MAX_FILENAME_LENGTH_ASC' - | 'MAX_FILENAME_LENGTH_DESC' - | 'CACHE_TTL_SECONDS_ASC' - | 'CACHE_TTL_SECONDS_DESC' - | 'MAX_BULK_FILES_ASC' - | 'MAX_BULK_FILES_DESC' - | 'MAX_BULK_TOTAL_SIZE_ASC' - | 'MAX_BULK_TOTAL_SIZE_DESC' - | 'HAS_VERSIONING_ASC' - | 'HAS_VERSIONING_DESC' - | 'HAS_CONTENT_HASH_ASC' - | 'HAS_CONTENT_HASH_DESC' - | 'HAS_CUSTOM_KEYS_ASC' - | 'HAS_CUSTOM_KEYS_DESC' - | 'HAS_AUDIT_LOG_ASC' - | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' - | 'CONFIRM_UPLOAD_DELAY_ASC' - | 'CONFIRM_UPLOAD_DELAY_DESC' - | 'FILE_EVENTS_TABLE_ID_ASC' - | 'FILE_EVENTS_TABLE_ID_DESC'; -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | '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_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; -export type WebauthnCredentialsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; -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'; -export type NotificationsModuleOrderBy = - | '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' - | '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' - | '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'; -export type InferenceLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type ComputeLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type TransferLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type StorageLogModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type DbUsageModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type AgentModuleOrderBy = - | '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' - | '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' - | 'KNOWLEDGE_TABLE_ID_ASC' - | 'KNOWLEDGE_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' - | 'KNOWLEDGE_TABLE_NAME_ASC' - | 'KNOWLEDGE_TABLE_NAME_DESC' - | 'HAS_KNOWLEDGE_ASC' - | 'HAS_KNOWLEDGE_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'KNOWLEDGE_CONFIG_ASC' - | 'KNOWLEDGE_CONFIG_DESC' - | 'KNOWLEDGE_POLICIES_ASC' - | 'KNOWLEDGE_POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -export type NamespaceModuleOrderBy = - | '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' - | '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' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; -export type FunctionModuleOrderBy = - | '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' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'KEY_ASC' - | 'KEY_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_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' - | '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 AppAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -export type OrgMemberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgAdminGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMemberProfileOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type OrgGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type OrgChartEdgeGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type AppLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppLimitCreditCodeItemOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC'; -export type AppLimitCreditRedemptionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREDIT_CODE_ID_ASC' - | 'CREDIT_CODE_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitCreditOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DEFAULT_LIMIT_ID_ASC' - | 'DEFAULT_LIMIT_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AMOUNT_ASC' - | 'AMOUNT_DESC' - | 'CREDIT_TYPE_ASC' - | 'CREDIT_TYPE_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitAggregateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC' - | 'WINDOW_START_ASC' - | 'WINDOW_START_DESC' - | 'WINDOW_DURATION_ASC' - | 'WINDOW_DURATION_DESC' - | 'PLAN_MAX_ASC' - | 'PLAN_MAX_DESC' - | 'PURCHASED_CREDITS_ASC' - | 'PURCHASED_CREDITS_DESC' - | 'PERIOD_CREDITS_ASC' - | 'PERIOD_CREDITS_DESC' - | 'RESERVED_ASC' - | 'RESERVED_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC'; -export type OrgLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type PhoneNumberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type CryptoAddressOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type WebauthnCredentialOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREDENTIAL_ID_ASC' - | 'CREDENTIAL_ID_DESC' - | 'PUBLIC_KEY_ASC' - | 'PUBLIC_KEY_DESC' - | 'SIGN_COUNT_ASC' - | 'SIGN_COUNT_DESC' - | 'WEBAUTHN_USER_ID_ASC' - | 'WEBAUTHN_USER_ID_DESC' - | 'TRANSPORTS_ASC' - | 'TRANSPORTS_DESC' - | 'CREDENTIAL_DEVICE_TYPE_ASC' - | 'CREDENTIAL_DEVICE_TYPE_DESC' - | 'BACKUP_ELIGIBLE_ASC' - | 'BACKUP_ELIGIBLE_DESC' - | 'BACKUP_STATE_ASC' - | 'BACKUP_STATE_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LAST_USED_AT_ASC' - | 'LAST_USED_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'INVITE_TOKEN_ASC' - | 'INVITE_TOKEN_DESC' - | 'INVITE_VALID_ASC' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type OrgClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type AuditLogAuthOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC'; -export type IdentityProviderOrderBy = - | 'NATURAL' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'KIND_ASC' - | 'KIND_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'ENABLED_ASC' - | 'ENABLED_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC'; -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; -export type DevicesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type NodeTypeRegistryOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARAMETER_SCHEMA_ASC' - | 'PARAMETER_SCHEMA_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type UserConnectedAccountOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitWarningOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type PubkeySettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' - | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' - | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' - | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC'; -export type RateLimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' - | 'IP_RATE_LIMITS_TABLE_ID_ASC' - | 'IP_RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMITS_TABLE_ID_ASC' - | 'RATE_LIMITS_TABLE_ID_DESC' - | 'RATE_LIMIT_SETTINGS_TABLE_ASC' - | 'RATE_LIMIT_SETTINGS_TABLE_DESC' - | 'IP_RATE_LIMITS_TABLE_ASC' - | 'IP_RATE_LIMITS_TABLE_DESC' - | 'RATE_LIMITS_TABLE_ASC' - | 'RATE_LIMITS_TABLE_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -export type RlsSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUTHENTICATE_SCHEMA_ID_ASC' - | 'AUTHENTICATE_SCHEMA_ID_DESC' - | 'ROLE_SCHEMA_ID_ASC' - | 'ROLE_SCHEMA_ID_DESC' - | 'AUTHENTICATE_FUNCTION_ID_ASC' - | 'AUTHENTICATE_FUNCTION_ID_DESC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_ASC' - | 'AUTHENTICATE_STRICT_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_FUNCTION_ID_DESC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_ASC' - | 'CURRENT_ROLE_ID_FUNCTION_ID_DESC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_ASC' - | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' - | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type RlsModuleOrderBy = - | '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' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'AUTHENTICATE_ASC' - | 'AUTHENTICATE_DESC' - | 'AUTHENTICATE_STRICT_ASC' - | 'AUTHENTICATE_STRICT_DESC' - | 'CURRENT_ROLE_ASC' - | 'CURRENT_ROLE_DESC' - | 'CURRENT_ROLE_ID_ASC' - | 'CURRENT_ROLE_ID_DESC'; -export type RateLimitMetersModuleOrderBy = - | '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' - | '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'; -export type PlansModuleOrderBy = - | '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' - | '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' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type SqlActionOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'DEPS_ASC' - | 'DEPS_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'CONTENT_ASC' - | 'CONTENT_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type DatabaseSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ENABLE_AGGREGATES_ASC' - | 'ENABLE_AGGREGATES_DESC' - | 'ENABLE_POSTGIS_ASC' - | 'ENABLE_POSTGIS_DESC' - | 'ENABLE_SEARCH_ASC' - | 'ENABLE_SEARCH_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' - | 'ENABLE_PRESIGNED_UPLOADS_ASC' - | 'ENABLE_PRESIGNED_UPLOADS_DESC' - | 'ENABLE_MANY_TO_MANY_ASC' - | 'ENABLE_MANY_TO_MANY_DESC' - | 'ENABLE_CONNECTION_FILTER_ASC' - | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_LTREE_ASC' - | 'ENABLE_LTREE_DESC' - | 'ENABLE_LLM_ASC' - | 'ENABLE_LLM_DESC' - | 'ENABLE_REALTIME_ASC' - | 'ENABLE_REALTIME_DESC' - | 'ENABLE_BULK_ASC' - | 'ENABLE_BULK_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC'; -export type OrgMembershipSettingOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ORGANIZATION_ID_ASC' - | 'ORGANIZATION_ID_DESC' - | 'ENTITY_TYPE_ASC' - | 'ENTITY_TYPE_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' - | 'IS_OWNER_ASC' - | 'IS_OWNER_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; -export type UserOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'USERNAME_ASC' - | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SEARCH_TSV_RANK_ASC' - | 'SEARCH_TSV_RANK_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -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' - | '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'; -export type BillingModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type BillingProviderModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | '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'; -export type HierarchyModuleOrderBy = - | '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' - | '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' - | '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' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -// ============ CRUD Input Types ============ -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - userId: string; - depth?: number; - }; -} -export interface OrgGetManagersRecordPatch { - userId?: string | null; - depth?: number | null; -} -export interface UpdateOrgGetManagersRecordInput { - clientMutationId?: string; - id: string; - orgGetManagersRecordPatch: OrgGetManagersRecordPatch; -} -export interface DeleteOrgGetManagersRecordInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - userId: string; - depth?: number; - }; -} -export interface OrgGetSubordinatesRecordPatch { - userId?: string | null; - depth?: number | null; -} -export interface UpdateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - id: string; - orgGetSubordinatesRecordPatch: OrgGetSubordinatesRecordPatch; -} -export interface DeleteOrgGetSubordinatesRecordInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; - }; -} -export interface AppPermissionPatch { - name?: string | null; - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - appPermissionPatch: AppPermissionPatch; -} -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; - }; -} -export interface OrgPermissionPatch { - name?: string | null; - bitnum?: number | null; - bitstr?: string | null; - description?: string | null; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseInput { - clientMutationId?: string; - database: { - ownerId?: string; - schemaHash?: string; - name?: string; - label?: string; - hash?: string; - }; -} -export interface DatabasePatch { - ownerId?: string | null; - schemaHash?: string | null; - name?: string | null; - label?: string | null; - hash?: string | null; -} -export interface UpdateDatabaseInput { - clientMutationId?: string; - id: string; - databasePatch: DatabasePatch; -} -export interface DeleteDatabaseInput { - clientMutationId?: string; - id: string; -} -export interface CreateSchemaInput { - clientMutationId?: string; - schema: { - databaseId: string; - name: string; - schemaName: string; - label?: string; - description?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - }; -} -export interface SchemaPatch { - databaseId?: string | null; - name?: string | null; - schemaName?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; - isPublic?: boolean | null; -} -export interface UpdateSchemaInput { - clientMutationId?: string; - id: string; - schemaPatch: SchemaPatch; -} -export interface DeleteSchemaInput { - clientMutationId?: string; - id: string; -} -export interface CreateTableInput { - clientMutationId?: string; - table: { - databaseId?: string; - schemaId: string; - name: string; - label?: string; - description?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: string; - singularName?: string; - tags?: string[]; - partitioned?: boolean; - partitionStrategy?: string; - partitionKeyNames?: string[]; - partitionKeyTypes?: string[]; - inheritsId?: string; - }; -} -export interface TablePatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - useRls?: boolean | null; - timestamps?: boolean | null; - peoplestamps?: boolean | null; - pluralName?: string | null; - singularName?: string | null; - tags?: string[] | null; - partitioned?: boolean | null; - partitionStrategy?: string | null; - partitionKeyNames?: string[] | null; - partitionKeyTypes?: string[] | null; - inheritsId?: string | null; -} -export interface UpdateTableInput { - clientMutationId?: string; - id: string; - tablePatch: TablePatch; -} -export interface DeleteTableInput { - clientMutationId?: string; - id: string; -} -export interface CreateCheckConstraintInput { - clientMutationId?: string; - checkConstraint: { - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - expr?: Record; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface CheckConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - expr?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateCheckConstraintInput { - clientMutationId?: string; - id: string; - checkConstraintPatch: CheckConstraintPatch; -} -export interface DeleteCheckConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateFieldInput { - clientMutationId?: string; - field: { - databaseId?: string; - tableId: string; - name: string; - label?: string; - description?: string; - smartTags?: Record; - isRequired?: boolean; - apiRequired?: boolean; - defaultValue?: Record; - type: Record; - fieldOrder?: number; - regexp?: string; - chk?: Record; - chkExpr?: Record; - min?: number; - max?: number; - tags?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - }; -} -export interface FieldPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - smartTags?: Record | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - defaultValue?: Record | null; - type?: Record | null; - fieldOrder?: number | null; - regexp?: string | null; - chk?: Record | null; - chkExpr?: Record | null; - min?: number | null; - max?: number | null; - tags?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; -} -export interface UpdateFieldInput { - clientMutationId?: string; - id: string; - fieldPatch: FieldPatch; -} -export interface DeleteFieldInput { - clientMutationId?: string; - id: string; -} -export interface CreateSpatialRelationInput { - clientMutationId?: string; - spatialRelation: { - databaseId?: string; - tableId: string; - fieldId: string; - refTableId: string; - refFieldId: string; - name: string; - operator: string; - paramName?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface SpatialRelationPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - refTableId?: string | null; - refFieldId?: string | null; - name?: string | null; - operator?: string | null; - paramName?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateSpatialRelationInput { - clientMutationId?: string; - id: string; - spatialRelationPatch: SpatialRelationPatch; -} -export interface DeleteSpatialRelationInput { - clientMutationId?: string; - id: string; -} -export interface CreateForeignKeyConstraintInput { - clientMutationId?: string; - foreignKeyConstraint: { - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: Record; - type?: string; - fieldIds: string[]; - refTableId: string; - refFieldIds: string[]; - deleteAction?: string; - updateAction?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ForeignKeyConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - refTableId?: string | null; - refFieldIds?: string[] | null; - deleteAction?: string | null; - updateAction?: string | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateForeignKeyConstraintInput { - clientMutationId?: string; - id: string; - foreignKeyConstraintPatch: ForeignKeyConstraintPatch; -} -export interface DeleteForeignKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateFullTextSearchInput { - clientMutationId?: string; - fullTextSearch: { - databaseId?: string; - tableId: string; - fieldId: string; - fieldIds: string[]; - weights: string[]; - langs: string[]; - }; -} -export interface FullTextSearchPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - fieldIds?: string[] | null; - weights?: string[] | null; - langs?: string[] | null; -} -export interface UpdateFullTextSearchInput { - clientMutationId?: string; - id: string; - fullTextSearchPatch: FullTextSearchPatch; -} -export interface DeleteFullTextSearchInput { - clientMutationId?: string; - id: string; -} -export interface CreateIndexInput { - clientMutationId?: string; - index: { - databaseId: string; - tableId: string; - name?: string; - fieldIds?: string[]; - includeFieldIds?: string[]; - accessMethod?: string; - indexParams?: Record; - whereClause?: Record; - isUnique?: boolean; - options?: Record; - opClasses?: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface IndexPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - fieldIds?: string[] | null; - includeFieldIds?: string[] | null; - accessMethod?: string | null; - indexParams?: Record | null; - whereClause?: Record | null; - isUnique?: boolean | null; - options?: Record | null; - opClasses?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateIndexInput { - clientMutationId?: string; - id: string; - indexPatch: IndexPatch; -} -export interface DeleteIndexInput { - clientMutationId?: string; - id: string; -} -export interface CreatePolicyInput { - clientMutationId?: string; - policy: { - databaseId?: string; - tableId: string; - name?: string; - granteeName?: string; - privilege?: string; - permissive?: boolean; - disabled?: boolean; - policyType?: string; - data?: Record; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface PolicyPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - granteeName?: string | null; - privilege?: string | null; - permissive?: boolean | null; - disabled?: boolean | null; - policyType?: string | null; - data?: Record | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdatePolicyInput { - clientMutationId?: string; - id: string; - policyPatch: PolicyPatch; -} -export interface DeletePolicyInput { - clientMutationId?: string; - id: string; -} -export interface CreatePrimaryKeyConstraintInput { - clientMutationId?: string; - primaryKeyConstraint: { - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface PrimaryKeyConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - type?: string | null; - fieldIds?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdatePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; -} -export interface DeletePrimaryKeyConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateTableGrantInput { - clientMutationId?: string; - tableGrant: { - databaseId?: string; - tableId: string; - privilege: string; - granteeName: string; - fieldIds?: string[]; - isGrant?: boolean; - }; -} -export interface TableGrantPatch { - databaseId?: string | null; - tableId?: string | null; - privilege?: string | null; - granteeName?: string | null; - fieldIds?: string[] | null; - isGrant?: boolean | null; -} -export interface UpdateTableGrantInput { - clientMutationId?: string; - id: string; - tableGrantPatch: TableGrantPatch; -} -export interface DeleteTableGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateTriggerInput { - clientMutationId?: string; - trigger: { - databaseId?: string; - tableId: string; - name: string; - event?: string; - functionName?: string; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface TriggerPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - event?: string | null; - functionName?: string | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateTriggerInput { - clientMutationId?: string; - id: string; - triggerPatch: TriggerPatch; -} -export interface DeleteTriggerInput { - clientMutationId?: string; - id: string; -} -export interface CreateUniqueConstraintInput { - clientMutationId?: string; - uniqueConstraint: { - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: Record; - type?: string; - fieldIds: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface UniqueConstraintPatch { - databaseId?: string | null; - tableId?: string | null; - name?: string | null; - description?: string | null; - smartTags?: Record | null; - type?: string | null; - fieldIds?: string[] | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateUniqueConstraintInput { - clientMutationId?: string; - id: string; - uniqueConstraintPatch: UniqueConstraintPatch; -} -export interface DeleteUniqueConstraintInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewInput { - clientMutationId?: string; - view: { - databaseId?: string; - schemaId: string; - name: string; - tableId?: string; - viewType: string; - data?: Record; - filterType?: string; - filterData?: Record; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface ViewPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - tableId?: string | null; - viewType?: string | null; - data?: Record | null; - filterType?: string | null; - filterData?: Record | null; - securityInvoker?: boolean | null; - isReadOnly?: boolean | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateViewInput { - clientMutationId?: string; - id: string; - viewPatch: ViewPatch; -} -export interface DeleteViewInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewTableInput { - clientMutationId?: string; - viewTable: { - viewId: string; - tableId: string; - joinOrder?: number; - }; -} -export interface ViewTablePatch { - viewId?: string | null; - tableId?: string | null; - joinOrder?: number | null; -} -export interface UpdateViewTableInput { - clientMutationId?: string; - id: string; - viewTablePatch: ViewTablePatch; -} -export interface DeleteViewTableInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewGrantInput { - clientMutationId?: string; - viewGrant: { - databaseId?: string; - viewId: string; - granteeName: string; - privilege: string; - withGrantOption?: boolean; - isGrant?: boolean; - }; -} -export interface ViewGrantPatch { - databaseId?: string | null; - viewId?: string | null; - granteeName?: string | null; - privilege?: string | null; - withGrantOption?: boolean | null; - isGrant?: boolean | null; -} -export interface UpdateViewGrantInput { - clientMutationId?: string; - id: string; - viewGrantPatch: ViewGrantPatch; -} -export interface DeleteViewGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateViewRuleInput { - clientMutationId?: string; - viewRule: { - databaseId?: string; - viewId: string; - name: string; - event: string; - action?: string; - }; -} -export interface ViewRulePatch { - databaseId?: string | null; - viewId?: string | null; - name?: string | null; - event?: string | null; - action?: string | null; -} -export interface UpdateViewRuleInput { - clientMutationId?: string; - id: string; - viewRulePatch: ViewRulePatch; -} -export interface DeleteViewRuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmbeddingChunkInput { - clientMutationId?: string; - embeddingChunk: { - databaseId?: string; - tableId: string; - embeddingFieldId?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; - dimensions?: number; - metric?: string; - chunkSize?: number; - chunkOverlap?: number; - chunkStrategy?: string; - metadataFields?: Record; - searchIndexes?: Record; - enqueueChunkingJob?: boolean; - chunkingTaskName?: string; - embeddingModel?: string; - embeddingProvider?: string; - parentFkFieldId?: string; - }; -} -export interface EmbeddingChunkPatch { - databaseId?: string | null; - tableId?: string | null; - embeddingFieldId?: string | null; - chunksTableId?: string | null; - chunksTableName?: string | null; - contentFieldName?: string | null; - dimensions?: number | null; - metric?: string | null; - chunkSize?: number | null; - chunkOverlap?: number | null; - chunkStrategy?: string | null; - metadataFields?: Record | null; - searchIndexes?: Record | null; - enqueueChunkingJob?: boolean | null; - chunkingTaskName?: string | null; - embeddingModel?: string | null; - embeddingProvider?: string | null; - parentFkFieldId?: string | null; -} -export interface UpdateEmbeddingChunkInput { - clientMutationId?: string; - id: string; - embeddingChunkPatch: EmbeddingChunkPatch; -} -export interface DeleteEmbeddingChunkInput { - clientMutationId?: string; - id: string; -} -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - secureTableProvision: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - nodes?: Record; - useRls?: boolean; - fields?: Record[]; - grants?: Record; - policies?: Record; - outFields?: string[]; - }; -} -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 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 CreateSessionSecretsModuleInput { - clientMutationId?: string; - sessionSecretsModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - sessionsTableId?: string; - }; -} -export interface SessionSecretsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - sessionsTableId?: string | null; -} -export interface UpdateSessionSecretsModuleInput { - clientMutationId?: string; - id: string; - sessionSecretsModulePatch: SessionSecretsModulePatch; -} -export interface DeleteSessionSecretsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - 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; - }; -} -export interface RealtimeModulePatch { - 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; -} -export interface UpdateRealtimeModuleInput { - clientMutationId?: string; - id: string; - realtimeModulePatch: RealtimeModulePatch; -} -export interface DeleteRealtimeModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateConfigSecretsOrgModuleInput { - clientMutationId?: string; - configSecretsOrgModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface ConfigSecretsOrgModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; -} -export interface DeleteConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSchemaGrantInput { - clientMutationId?: string; - schemaGrant: { - databaseId?: string; - schemaId: string; - granteeName: string; - }; -} -export interface SchemaGrantPatch { - databaseId?: string | null; - schemaId?: string | null; - granteeName?: string | null; -} -export interface UpdateSchemaGrantInput { - clientMutationId?: string; - id: string; - schemaGrantPatch: SchemaGrantPatch; -} -export interface DeleteSchemaGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateDefaultPrivilegeInput { - clientMutationId?: string; - defaultPrivilege: { - databaseId?: string; - schemaId: string; - objectType: string; - privilege: string; - granteeName: string; - isGrant?: boolean; - }; -} -export interface DefaultPrivilegePatch { - databaseId?: string | null; - schemaId?: string | null; - objectType?: string | null; - privilege?: string | null; - granteeName?: string | null; - isGrant?: boolean | null; -} -export interface UpdateDefaultPrivilegeInput { - clientMutationId?: string; - id: string; - defaultPrivilegePatch: DefaultPrivilegePatch; -} -export interface DeleteDefaultPrivilegeInput { - clientMutationId?: string; - id: string; -} -export interface CreateEnumInput { - clientMutationId?: string; - enum: { - databaseId: string; - schemaId: string; - name: string; - label?: string; - description?: string; - values?: string[]; - smartTags?: Record; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - }; -} -export interface EnumPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; - label?: string | null; - description?: string | null; - values?: string[] | null; - smartTags?: Record | null; - category?: ObjectCategory | null; - module?: string | null; - scope?: number | null; - tags?: string[] | null; -} -export interface UpdateEnumInput { - clientMutationId?: string; - id: string; - enumPatch: EnumPatch; -} -export interface DeleteEnumInput { - clientMutationId?: string; - id: string; -} -export interface CreateFunctionInput { - clientMutationId?: string; - function: { - databaseId: string; - schemaId: string; - name: string; - }; -} -export interface FunctionPatch { - databaseId?: string | null; - schemaId?: string | null; - name?: string | null; -} -export interface UpdateFunctionInput { - clientMutationId?: string; - id: string; - functionPatch: FunctionPatch; -} -export interface DeleteFunctionInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiSchemaInput { - clientMutationId?: string; - apiSchema: { - databaseId: string; - schemaId: string; - apiId: string; - }; -} -export interface ApiSchemaPatch { - databaseId?: string | null; - schemaId?: string | null; - apiId?: string | null; -} -export interface UpdateApiSchemaInput { - clientMutationId?: string; - id: string; - apiSchemaPatch: ApiSchemaPatch; -} -export interface DeleteApiSchemaInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiModuleInput { - clientMutationId?: string; - apiModule: { - databaseId: string; - apiId: string; - name: string; - data: Record; - }; -} -export interface ApiModulePatch { - databaseId?: string | null; - apiId?: string | null; - name?: string | null; - data?: Record | null; -} -export interface UpdateApiModuleInput { - clientMutationId?: string; - id: string; - apiModulePatch: ApiModulePatch; -} -export interface DeleteApiModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDomainInput { - clientMutationId?: string; - domain: { - databaseId: string; - apiId?: string; - siteId?: string; - subdomain?: ConstructiveInternalTypeHostname; - domain?: ConstructiveInternalTypeHostname; - }; -} -export interface DomainPatch { - databaseId?: string | null; - apiId?: string | null; - siteId?: string | null; - subdomain?: ConstructiveInternalTypeHostname | null; - domain?: ConstructiveInternalTypeHostname | null; -} -export interface UpdateDomainInput { - clientMutationId?: string; - id: string; - domainPatch: DomainPatch; -} -export interface DeleteDomainInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteMetadatumInput { - clientMutationId?: string; - siteMetadatum: { - databaseId: string; - siteId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - }; -} -export interface SiteMetadatumPatch { - databaseId?: string | null; - siteId?: string | null; - title?: string | null; - description?: string | null; - ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - id: string; - siteMetadatumPatch: SiteMetadatumPatch; -} -export interface DeleteSiteMetadatumInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - siteModule: { - databaseId: string; - siteId: string; - name: string; - data: Record; - }; -} -export interface SiteModulePatch { - databaseId?: string | null; - siteId?: string | null; - name?: string | null; - data?: Record | null; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - id: string; - siteModulePatch: SiteModulePatch; -} -export interface DeleteSiteModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteThemeInput { - clientMutationId?: string; - siteTheme: { - databaseId: string; - siteId: string; - theme: Record; - }; -} -export interface SiteThemePatch { - databaseId?: string | null; - siteId?: string | null; - theme?: Record | null; -} -export interface UpdateSiteThemeInput { - clientMutationId?: string; - id: string; - siteThemePatch: SiteThemePatch; -} -export interface DeleteSiteThemeInput { - clientMutationId?: string; - id: string; -} -export interface CreateCorsSettingInput { - clientMutationId?: string; - corsSetting: { - databaseId: string; - apiId?: string; - allowedOrigins?: string[]; - }; -} -export interface CorsSettingPatch { - databaseId?: string | null; - apiId?: string | null; - allowedOrigins?: string[] | null; -} -export interface UpdateCorsSettingInput { - clientMutationId?: string; - id: string; - corsSettingPatch: CorsSettingPatch; -} -export interface DeleteCorsSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateMerkleStoreModuleInput { - clientMutationId?: string; - merkleStoreModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - }; -} -export interface MerkleStoreModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; -} -export interface UpdateMerkleStoreModuleInput { - clientMutationId?: string; - id: string; - merkleStoreModulePatch: MerkleStoreModulePatch; -} -export interface DeleteMerkleStoreModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateGraphModuleInput { - clientMutationId?: string; - graphModule: { - databaseId: string; - publicSchemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - prefix?: string; - merkleStoreModuleId: string; - graphsTableId?: string; - executionsTableId?: string; - outputsTableId?: string; - apiName?: string; - privateApiName?: string; - scopeField?: string; - membershipType?: number; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface GraphModulePatch { - databaseId?: string | null; - publicSchemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - prefix?: string | null; - merkleStoreModuleId?: string | null; - graphsTableId?: string | null; - executionsTableId?: string | null; - outputsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scopeField?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateGraphModuleInput { - clientMutationId?: string; - id: string; - graphModulePatch: GraphModulePatch; -} -export interface DeleteGraphModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateTriggerFunctionInput { - clientMutationId?: string; - triggerFunction: { - databaseId: string; - name: string; - code?: string; - }; -} -export interface TriggerFunctionPatch { - databaseId?: string | null; - name?: string | null; - code?: string | null; -} -export interface UpdateTriggerFunctionInput { - clientMutationId?: string; - id: string; - triggerFunctionPatch: TriggerFunctionPatch; -} -export interface DeleteTriggerFunctionInput { - clientMutationId?: string; - id: string; -} -export interface CreatePartitionInput { - clientMutationId?: string; - partition: { - databaseId: string; - tableId: string; - strategy: string; - partitionKeyId: string; - interval?: string; - retention?: string; - retentionKeepTable?: boolean; - premake?: number; - namingPattern?: string; - isParented?: boolean; - }; -} -export interface PartitionPatch { - databaseId?: string | null; - tableId?: string | null; - strategy?: string | null; - partitionKeyId?: string | null; - interval?: string | null; - retention?: string | null; - retentionKeepTable?: boolean | null; - premake?: number | null; - namingPattern?: string | null; - isParented?: boolean | null; -} -export interface UpdatePartitionInput { - clientMutationId?: string; - id: string; - partitionPatch: PartitionPatch; -} -export interface DeletePartitionInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseTransferInput { - clientMutationId?: string; - databaseTransfer: { - databaseId: string; - targetOwnerId: string; - sourceApproved?: boolean; - targetApproved?: boolean; - sourceApprovedAt?: string; - targetApprovedAt?: string; - status?: string; - initiatedBy: string; - notes?: string; - expiresAt?: string; - completedAt?: string; - }; -} -export interface DatabaseTransferPatch { - databaseId?: string | null; - targetOwnerId?: string | null; - sourceApproved?: boolean | null; - targetApproved?: boolean | null; - sourceApprovedAt?: string | null; - targetApprovedAt?: string | null; - status?: string | null; - initiatedBy?: string | null; - notes?: string | null; - expiresAt?: string | null; - completedAt?: string | null; -} -export interface UpdateDatabaseTransferInput { - clientMutationId?: string; - id: string; - databaseTransferPatch: DatabaseTransferPatch; -} -export interface DeleteDatabaseTransferInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiInput { - clientMutationId?: string; - api: { - databaseId: string; - name: string; - dbname?: string; - roleName?: string; - anonRole?: string; - isPublic?: boolean; - }; -} -export interface ApiPatch { - databaseId?: string | null; - name?: string | null; - dbname?: string | null; - roleName?: string | null; - anonRole?: string | null; - isPublic?: boolean | null; -} -export interface UpdateApiInput { - clientMutationId?: string; - id: string; - apiPatch: ApiPatch; -} -export interface DeleteApiInput { - clientMutationId?: string; - id: string; -} -export interface CreateSiteInput { - clientMutationId?: string; - site: { - databaseId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; - }; -} -export interface SitePatch { - databaseId?: string | null; - title?: string | null; - description?: string | null; - ogImage?: ConstructiveInternalTypeImage | null; - favicon?: ConstructiveInternalTypeAttachment | null; - appleTouchIcon?: ConstructiveInternalTypeImage | null; - logo?: ConstructiveInternalTypeImage | null; - dbname?: string | null; - ogImageUpload?: File | null; - faviconUpload?: File | null; - appleTouchIconUpload?: File | null; - logoUpload?: File | null; -} -export interface UpdateSiteInput { - clientMutationId?: string; - id: string; - sitePatch: SitePatch; -} -export interface DeleteSiteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInput { - clientMutationId?: string; - app: { - databaseId: string; - siteId: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - playStoreLink?: ConstructiveInternalTypeUrl; - }; -} -export interface AppPatch { - databaseId?: string | null; - siteId?: string | null; - name?: string | null; - appImage?: ConstructiveInternalTypeImage | null; - appStoreLink?: ConstructiveInternalTypeUrl | null; - appStoreId?: string | null; - appIdPrefix?: string | null; - playStoreLink?: ConstructiveInternalTypeUrl | null; - appImageUpload?: File | null; -} -export interface UpdateAppInput { - clientMutationId?: string; - id: string; - appPatch: AppPatch; -} -export interface DeleteAppInput { - clientMutationId?: string; - id: string; -} -export interface CreateApiSettingInput { - clientMutationId?: string; - apiSetting: { - databaseId: string; - apiId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: Record; - }; -} -export interface ApiSettingPatch { - databaseId?: string | null; - apiId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - enableBulk?: boolean | null; - options?: Record | null; -} -export interface UpdateApiSettingInput { - clientMutationId?: string; - id: string; - apiSettingPatch: ApiSettingPatch; -} -export interface DeleteApiSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateConnectedAccountsModuleInput { - clientMutationId?: string; - connectedAccountsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface ConnectedAccountsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; - connectedAccountsModulePatch: ConnectedAccountsModulePatch; -} -export interface DeleteConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAddressesModuleInput { - clientMutationId?: string; - cryptoAddressesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - cryptoNetwork?: string; - }; -} -export interface CryptoAddressesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; - cryptoNetwork?: string | null; -} -export interface UpdateCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; - cryptoAddressesModulePatch: CryptoAddressesModulePatch; -} -export interface DeleteCryptoAddressesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAuthModuleInput { - clientMutationId?: string; - cryptoAuthModule: { - 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; - }; -} -export interface CryptoAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - addressesTableId?: string | null; - userField?: string | null; - cryptoNetwork?: string | null; - signInRequestChallenge?: string | null; - signInRecordFailure?: string | null; - signUpWithKey?: string | null; - signInWithChallenge?: string | null; -} -export interface UpdateCryptoAuthModuleInput { - clientMutationId?: string; - id: string; - cryptoAuthModulePatch: CryptoAuthModulePatch; -} -export interface DeleteCryptoAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDefaultIdsModuleInput { - clientMutationId?: string; - defaultIdsModule: { - databaseId: string; - }; -} -export interface DefaultIdsModulePatch { - databaseId?: string | null; -} -export interface UpdateDefaultIdsModuleInput { - clientMutationId?: string; - id: string; - defaultIdsModulePatch: DefaultIdsModulePatch; -} -export interface DeleteDefaultIdsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDenormalizedTableFieldInput { - clientMutationId?: string; - denormalizedTableField: { - databaseId: string; - tableId: string; - fieldId: string; - setIds?: string[]; - refTableId: string; - refFieldId: string; - refIds?: string[]; - useUpdates?: boolean; - updateDefaults?: boolean; - funcName?: string; - funcOrder?: number; - }; -} -export interface DenormalizedTableFieldPatch { - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} -export interface UpdateDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; - denormalizedTableFieldPatch: DenormalizedTableFieldPatch; -} -export interface DeleteDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmailsModuleInput { - clientMutationId?: string; - emailsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface EmailsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateEmailsModuleInput { - clientMutationId?: string; - id: string; - emailsModulePatch: EmailsModulePatch; -} -export interface DeleteEmailsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateConfigSecretsUserModuleInput { - clientMutationId?: string; - configSecretsUserModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - configDefinitionsTableId?: string; - }; -} -export interface ConfigSecretsUserModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - configDefinitionsTableId?: string | null; -} -export interface UpdateConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; -} -export interface DeleteConfigSecretsUserModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateInvitesModuleInput { - clientMutationId?: string; - invitesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - }; -} -export interface InvitesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; -} -export interface UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - invitesModulePatch: InvitesModulePatch; -} -export interface DeleteInvitesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEventsModuleInput { - clientMutationId?: string; - eventsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: 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; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - }; -} -export interface EventsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface UpdateEventsModuleInput { - clientMutationId?: string; - id: string; - eventsModulePatch: EventsModulePatch; -} -export interface DeleteEventsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateLimitsModuleInput { - clientMutationId?: string; - limitsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - limitIncrementFunction?: string; - limitDecrementFunction?: string; - limitIncrementTrigger?: string; - limitDecrementTrigger?: string; - limitUpdateTrigger?: string; - limitCheckFunction?: string; - limitCreditsTableId?: string; - eventsTableId?: string; - creditCodesTableId?: string; - creditCodeItemsTableId?: string; - creditRedemptionsTableId?: string; - aggregateTableId?: string; - limitCapsTableId?: string; - limitCapsDefaultsTableId?: string; - capCheckTrigger?: string; - resolveCapFunction?: string; - limitWarningsTableId?: string; - limitWarningStateTableId?: string; - limitCheckSoftFunction?: string; - limitAggregateCheckSoftFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - }; -} -export interface LimitsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - limitIncrementFunction?: string | null; - limitDecrementFunction?: string | null; - limitIncrementTrigger?: string | null; - limitDecrementTrigger?: string | null; - limitUpdateTrigger?: string | null; - limitCheckFunction?: string | null; - limitCreditsTableId?: string | null; - eventsTableId?: string | null; - creditCodesTableId?: string | null; - creditCodeItemsTableId?: string | null; - creditRedemptionsTableId?: string | null; - aggregateTableId?: string | null; - limitCapsTableId?: string | null; - limitCapsDefaultsTableId?: string | null; - capCheckTrigger?: string | null; - resolveCapFunction?: string | null; - limitWarningsTableId?: string | null; - limitWarningStateTableId?: string | null; - limitCheckSoftFunction?: string | null; - limitAggregateCheckSoftFunction?: string | null; - prefix?: string | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; -} -export interface UpdateLimitsModuleInput { - clientMutationId?: string; - id: string; - limitsModulePatch: LimitsModulePatch; -} -export interface DeleteLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypesModuleInput { - clientMutationId?: string; - membershipTypesModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface MembershipTypesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateMembershipTypesModuleInput { - clientMutationId?: string; - id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; -} -export interface DeleteMembershipTypesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - membershipsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: 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; - membershipType: number; - entityTableId?: string; - entityTableOwnerId?: string; - prefix?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - }; -} -export interface MembershipsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - prefix?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; -} -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - membershipsModulePatch: MembershipsModulePatch; -} -export interface DeleteMembershipsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - prefix?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - }; -} -export interface PermissionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - prefix?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumbersModuleInput { - clientMutationId?: string; - phoneNumbersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - }; -} -export interface PhoneNumbersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdatePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; - phoneNumbersModulePatch: PhoneNumbersModulePatch; -} -export interface DeletePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateProfilesModuleInput { - clientMutationId?: string; - profilesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; - }; -} -export interface ProfilesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: 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; - membershipType?: number | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - prefix?: string | null; -} -export interface UpdateProfilesModuleInput { - clientMutationId?: string; - id: string; - profilesModulePatch: ProfilesModulePatch; -} -export interface DeleteProfilesModuleInput { - 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 CreateSessionsModuleInput { - clientMutationId?: string; - sessionsModule: { - databaseId: string; - schemaId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - authSettingsTableId?: string; - usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; - }; -} -export interface SessionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - authSettingsTableId?: string | null; - usersTableId?: string | null; - sessionsDefaultExpiration?: IntervalInput | null; - sessionsTable?: string | null; - sessionCredentialsTable?: string | null; - authSettingsTable?: string | null; -} -export interface UpdateSessionsModuleInput { - clientMutationId?: string; - id: string; - sessionsModulePatch: SessionsModulePatch; -} -export interface DeleteSessionsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserAuthModuleInput { - clientMutationId?: string; - userAuthModule: { - databaseId: string; - schemaId?: string; - emailsTableId?: string; - usersTableId?: string; - secretsTableId?: string; - encryptedTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - 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; - }; -} -export interface UserAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - secretsTableId?: string | null; - encryptedTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - auditsTableName?: string | null; - signInFunction?: string | null; - signUpFunction?: string | null; - signOutFunction?: string | null; - setPasswordFunction?: string | null; - resetPasswordFunction?: string | null; - forgotPasswordFunction?: string | null; - sendVerificationEmailFunction?: string | null; - verifyEmailFunction?: string | null; - verifyPasswordFunction?: string | null; - checkPasswordFunction?: string | null; - sendAccountDeletionEmailFunction?: string | null; - deleteAccountFunction?: string | null; - signInCrossOriginFunction?: string | null; - requestCrossOriginTokenFunction?: string | null; - extendTokenExpires?: string | null; -} -export interface UpdateUserAuthModuleInput { - clientMutationId?: string; - id: string; - userAuthModulePatch: UserAuthModulePatch; -} -export interface DeleteUserAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUsersModuleInput { - clientMutationId?: string; - usersModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - typeTableId?: string; - typeTableName?: string; - }; -} -export interface UsersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - typeTableId?: string | null; - typeTableName?: string | null; -} -export interface UpdateUsersModuleInput { - clientMutationId?: string; - id: string; - usersModulePatch: UsersModulePatch; -} -export interface DeleteUsersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintInput { - clientMutationId?: string; - blueprint: { - ownerId: string; - databaseId: string; - name: string; - displayName: string; - description?: string; - definition: Record; - templateId?: string; - definitionHash?: string; - tableHashes?: Record; - }; -} -export interface BlueprintPatch { - ownerId?: string | null; - databaseId?: string | null; - name?: string | null; - displayName?: string | null; - description?: string | null; - definition?: Record | null; - templateId?: string | null; - definitionHash?: string | null; - tableHashes?: Record | null; -} -export interface UpdateBlueprintInput { - clientMutationId?: string; - id: string; - blueprintPatch: BlueprintPatch; -} -export interface DeleteBlueprintInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintTemplateInput { - clientMutationId?: string; - blueprintTemplate: { - name: string; - version?: string; - displayName: string; - description?: string; - ownerId: string; - visibility?: string; - categories?: string[]; - tags?: string[]; - definition: Record; - definitionSchemaVersion?: string; - source?: string; - complexity?: string; - copyCount?: number; - forkCount?: number; - forkedFromId?: string; - definitionHash?: string; - tableHashes?: Record; - }; -} -export interface BlueprintTemplatePatch { - name?: string | null; - version?: string | null; - displayName?: string | null; - description?: string | null; - ownerId?: string | null; - visibility?: string | null; - categories?: string[] | null; - tags?: string[] | null; - definition?: Record | null; - definitionSchemaVersion?: string | null; - source?: string | null; - complexity?: string | null; - copyCount?: number | null; - forkCount?: number | null; - forkedFromId?: string | null; - definitionHash?: string | null; - tableHashes?: Record | null; -} -export interface UpdateBlueprintTemplateInput { - clientMutationId?: string; - id: string; - blueprintTemplatePatch: BlueprintTemplatePatch; -} -export interface DeleteBlueprintTemplateInput { - clientMutationId?: string; - id: string; -} -export interface CreateBlueprintConstructionInput { - clientMutationId?: string; - blueprintConstruction: { - blueprintId: string; - databaseId: string; - schemaId?: string; - status?: string; - errorDetails?: string; - tableMap?: Record; - constructedDefinition?: Record; - constructedAt?: string; - }; -} -export interface BlueprintConstructionPatch { - blueprintId?: string | null; - databaseId?: string | null; - schemaId?: string | null; - status?: string | null; - errorDetails?: string | null; - tableMap?: Record | null; - constructedDefinition?: Record | null; - constructedAt?: string | null; -} -export interface UpdateBlueprintConstructionInput { - clientMutationId?: string; - id: string; - blueprintConstructionPatch: BlueprintConstructionPatch; -} -export interface DeleteBlueprintConstructionInput { - clientMutationId?: string; - id: string; -} -export interface CreateStorageModuleInput { - clientMutationId?: string; - storageModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - key?: string; - policies?: Record; - provisions?: Record; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - }; -} -export interface StorageModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - membershipType?: number | null; - key?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: IntervalInput | null; - fileEventsTableId?: string | null; -} -export interface UpdateStorageModuleInput { - clientMutationId?: string; - id: string; - storageModulePatch: StorageModulePatch; -} -export interface DeleteStorageModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateEntityTypeProvisionInput { - clientMutationId?: string; - entityTypeProvision: { - databaseId: string; - name: string; - prefix: string; - description?: string; - parentEntity?: string; - tableName?: string; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: Record; - namespaces?: Record; - functions?: Record; - graphs?: Record; - agents?: Record; - skipEntityPolicies?: boolean; - tableProvision?: Record; - outMembershipType?: number; - outEntityTableId?: string; - outEntityTableName?: string; - outInstalledModules?: string[]; - outStorageModuleId?: string; - outBucketsTableId?: string; - outFilesTableId?: string; - outPathSharesTableId?: string; - outInvitesModuleId?: string; - outNamespaceModuleId?: string; - outNamespacesTableId?: string; - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: string; - }; -} -export interface EntityTypeProvisionPatch { - databaseId?: string | null; - name?: string | null; - prefix?: string | null; - description?: string | null; - parentEntity?: string | null; - tableName?: string | null; - isVisible?: boolean | null; - hasLimits?: boolean | null; - hasProfiles?: boolean | null; - hasLevels?: boolean | null; - hasInvites?: boolean | null; - hasInviteAchievements?: boolean | null; - storage?: Record | null; - namespaces?: Record | null; - functions?: Record | null; - graphs?: Record | null; - agents?: Record | null; - skipEntityPolicies?: boolean | null; - tableProvision?: Record | null; - outMembershipType?: number | null; - outEntityTableId?: string | null; - outEntityTableName?: string | null; - outInstalledModules?: string[] | null; - outStorageModuleId?: string | null; - outBucketsTableId?: string | null; - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - outInvitesModuleId?: string | null; - outNamespaceModuleId?: string | null; - outNamespacesTableId?: string | null; - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -export interface UpdateEntityTypeProvisionInput { - clientMutationId?: string; - id: string; - entityTypeProvisionPatch: EntityTypeProvisionPatch; -} -export interface DeleteEntityTypeProvisionInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnCredentialsModuleInput { - clientMutationId?: string; - webauthnCredentialsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - }; -} -export interface WebauthnCredentialsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - ownerTableId?: string | null; - tableName?: string | null; -} -export interface UpdateWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; - webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; -} -export interface DeleteWebauthnCredentialsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnAuthModuleInput { - clientMutationId?: string; - webauthnAuthModule: { - 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; - }; -} -export interface WebauthnAuthModulePatch { - databaseId?: string | null; - schemaId?: string | null; - usersTableId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - authSettingsTableId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpiry?: IntervalInput | null; -} -export interface UpdateWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; - webauthnAuthModulePatch: WebauthnAuthModulePatch; -} -export interface DeleteWebauthnAuthModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateNotificationsModuleInput { - clientMutationId?: string; - notificationsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - readStateTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; - }; -} -export interface NotificationsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; -} -export interface UpdateNotificationsModuleInput { - clientMutationId?: string; - id: string; - notificationsModulePatch: NotificationsModulePatch; -} -export interface DeleteNotificationsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateInferenceLogModuleInput { - clientMutationId?: string; - inferenceLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface InferenceLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateInferenceLogModuleInput { - clientMutationId?: string; - id: string; - inferenceLogModulePatch: InferenceLogModulePatch; -} -export interface DeleteInferenceLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateComputeLogModuleInput { - clientMutationId?: string; - computeLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface ComputeLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateComputeLogModuleInput { - clientMutationId?: string; - id: string; - computeLogModulePatch: ComputeLogModulePatch; -} -export interface DeleteComputeLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateTransferLogModuleInput { - clientMutationId?: string; - transferLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface TransferLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateTransferLogModuleInput { - clientMutationId?: string; - id: string; - transferLogModulePatch: TransferLogModulePatch; -} -export interface DeleteTransferLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateStorageLogModuleInput { - clientMutationId?: string; - storageLogModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - }; -} -export interface StorageLogModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; -} -export interface UpdateStorageLogModuleInput { - clientMutationId?: string; - id: string; - storageLogModulePatch: StorageLogModulePatch; -} -export interface DeleteStorageLogModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDbUsageModuleInput { - clientMutationId?: string; - dbUsageModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - prefix?: string; - }; -} -export interface DbUsageModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; -} -export interface UpdateDbUsageModuleInput { - clientMutationId?: string; - id: string; - dbUsageModulePatch: DbUsageModulePatch; -} -export interface DeleteDbUsageModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentModuleInput { - clientMutationId?: string; - agentModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - threadTableId?: string; - messageTableId?: string; - taskTableId?: string; - promptsTableId?: string; - knowledgeTableId?: string; - threadTableName?: string; - messageTableName?: string; - taskTableName?: string; - promptsTableName?: string; - knowledgeTableName?: string; - hasKnowledge?: boolean; - apiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: Record; - knowledgeConfig?: Record; - knowledgePolicies?: Record; - provisions?: Record; - }; -} -export interface AgentModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - threadTableId?: string | null; - messageTableId?: string | null; - taskTableId?: string | null; - promptsTableId?: string | null; - knowledgeTableId?: string | null; - threadTableName?: string | null; - messageTableName?: string | null; - taskTableName?: string | null; - promptsTableName?: string | null; - knowledgeTableName?: string | null; - hasKnowledge?: boolean | null; - apiName?: string | null; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - knowledgeConfig?: Record | null; - knowledgePolicies?: Record | null; - provisions?: Record | null; -} -export interface UpdateAgentModuleInput { - clientMutationId?: string; - id: string; - agentModulePatch: AgentModulePatch; -} -export interface DeleteAgentModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateNamespaceModuleInput { - clientMutationId?: string; - namespaceModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - key?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface NamespaceModulePatch { - 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; - membershipType?: number | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateNamespaceModuleInput { - clientMutationId?: string; - id: string; - namespaceModulePatch: NamespaceModulePatch; -} -export interface DeleteNamespaceModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateFunctionModuleInput { - clientMutationId?: string; - functionModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; - membershipType?: number; - prefix?: string; - key?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - }; -} -export interface FunctionModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - membershipType?: number | null; - prefix?: string | null; - key?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} -export interface UpdateFunctionModuleInput { - clientMutationId?: string; - id: string; - functionModulePatch: FunctionModulePatch; -} -export interface DeleteFunctionModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateDatabaseProvisionModuleInput { - clientMutationId?: string; - databaseProvisionModule: { - databaseName: string; - ownerId: string; - subdomain?: string; - domain: string; - modules?: string[]; - options?: Record; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - completedAt?: string; - }; -} -export interface DatabaseProvisionModulePatch { - databaseName?: string | null; - ownerId?: string | null; - subdomain?: string | null; - domain?: string | null; - modules?: string[] | null; - options?: Record | null; - bootstrapUser?: boolean | null; - status?: string | null; - errorMessage?: string | null; - databaseId?: string | null; - completedAt?: string | null; -} -export interface UpdateDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; - databaseProvisionModulePatch: DatabaseProvisionModulePatch; -} -export interface DeleteDatabaseProvisionModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppAdminGrantInput { - clientMutationId?: string; - appAdminGrant: { - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppAdminGrantInput { - clientMutationId?: string; - id: string; - appAdminGrantPatch: AppAdminGrantPatch; -} -export interface DeleteAppAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppOwnerGrantInput { - clientMutationId?: string; - appOwnerGrant: { - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppOwnerGrantInput { - clientMutationId?: string; - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; -} -export interface DeleteAppOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppGrantInput { - clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - }; -} -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; -} -export interface UpdateAppGrantInput { - clientMutationId?: string; - id: string; - appGrantPatch: AppGrantPatch; -} -export interface DeleteAppGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberInput { - clientMutationId?: string; - orgMember: { - isAdmin?: boolean; - actorId: string; - entityId: string; - }; -} -export interface OrgMemberPatch { - isAdmin?: boolean | null; - actorId?: string | null; - entityId?: string | null; -} -export interface UpdateOrgMemberInput { - clientMutationId?: string; - id: string; - orgMemberPatch: OrgMemberPatch; -} -export interface DeleteOrgMemberInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface DeleteOrgAdminGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgOwnerGrantInput { - clientMutationId?: string; - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; -} -export interface DeleteOrgOwnerGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgGrantInput { - clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; -} -export interface DeleteOrgGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgChartEdgeInput { - clientMutationId?: string; - orgChartEdge: { - entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgePatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeInput { - clientMutationId?: string; - id: string; - orgChartEdgePatch: OrgChartEdgePatch; -} -export interface DeleteOrgChartEdgeInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgChartEdgeGrantInput { - clientMutationId?: string; - orgChartEdgeGrant: { - entityId: string; - childId: string; - parentId?: string; - grantorId?: string; - isGrant?: boolean; - positionTitle?: string; - positionLevel?: number; - }; -} -export interface OrgChartEdgeGrantPatch { - entityId?: string | null; - childId?: string | null; - parentId?: string | null; - grantorId?: string | null; - isGrant?: boolean | null; - positionTitle?: string | null; - positionLevel?: number | null; -} -export interface UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -export interface DeleteOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; - entityId: string; - }; -} -export interface OrgPermissionDefaultPatch { - permissions?: string | null; - entityId?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface AppLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface DeleteAppLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditInput { - clientMutationId?: string; - appLimitCredit: { - defaultLimitId: string; - actorId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface AppLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitCreditInput { - clientMutationId?: string; - id: string; - appLimitCreditPatch: AppLimitCreditPatch; -} -export interface DeleteAppLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeItemInput { - clientMutationId?: string; - appLimitCreditCodeItem: { - creditCodeId: string; - defaultLimitId: string; - amount: string; - creditType?: string; - }; -} -export interface AppLimitCreditCodeItemPatch { - creditCodeId?: string | null; - defaultLimitId?: string | null; - amount?: string | null; - creditType?: string | null; -} -export interface UpdateAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; -} -export interface DeleteAppLimitCreditCodeItemInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditRedemptionInput { - clientMutationId?: string; - appLimitCreditRedemption: { - creditCodeId: string; - entityId: string; - }; -} -export interface AppLimitCreditRedemptionPatch { - creditCodeId?: string | null; - entityId?: string | null; -} -export interface UpdateAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; - appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; -} -export interface DeleteAppLimitCreditRedemptionInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - entityId: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCreditInput { - clientMutationId?: string; - orgLimitCredit: { - defaultLimitId: string; - actorId?: string; - entityId?: string; - amount: string; - creditType?: string; - reason?: string; - }; -} -export interface OrgLimitCreditPatch { - defaultLimitId?: string | null; - actorId?: string | null; - entityId?: string | null; - amount?: string | null; - creditType?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitCreditInput { - clientMutationId?: string; - id: string; - orgLimitCreditPatch: OrgLimitCreditPatch; -} -export interface DeleteOrgLimitCreditInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - orgLimitAggregate: { - name?: string; - entityId: string; - num?: string; - max?: string; - softMax?: string; - windowStart?: string; - windowDuration?: IntervalInput; - planMax?: string; - purchasedCredits?: string; - periodCredits?: string; - reserved?: string; - organizationId?: string; - entityType?: string; - }; -} -export interface OrgLimitAggregatePatch { - name?: string | null; - entityId?: string | null; - num?: string | null; - max?: string | null; - softMax?: string | null; - windowStart?: string | null; - windowDuration?: IntervalInput | null; - planMax?: string | null; - purchasedCredits?: string | null; - periodCredits?: string | null; - reserved?: string | null; - organizationId?: string | null; - entityType?: string | null; -} -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -export interface DeleteOrgLimitAggregateInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - orgLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - entityId?: string; - }; -} -export interface OrgLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; - entityId?: string | null; -} -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; -} -export interface DeleteOrgLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: { - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface PhoneNumberPatch { - ownerId?: string | null; - cc?: string | null; - number?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -export interface DeletePhoneNumberInput { - clientMutationId?: string; - id: string; -} -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - name?: string; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - name?: string | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} -export interface CreateWebauthnCredentialInput { - clientMutationId?: string; - webauthnCredential: { - ownerId?: string; - credentialId: string; - publicKey: Base64EncodedBinary; - signCount?: string; - webauthnUserId: string; - transports?: string[]; - credentialDeviceType: string; - backupEligible?: boolean; - backupState?: boolean; - name?: string; - lastUsedAt?: string; - }; -} -export interface WebauthnCredentialPatch { - ownerId?: string | null; - credentialId?: string | null; - publicKey?: Base64EncodedBinary | null; - signCount?: string | null; - webauthnUserId?: string | null; - transports?: string[] | null; - credentialDeviceType?: string | null; - backupEligible?: boolean | null; - backupState?: boolean | null; - name?: string | null; - lastUsedAt?: string | null; -} -export interface UpdateWebauthnCredentialInput { - clientMutationId?: string; - id: string; - webauthnCredentialPatch: WebauthnCredentialPatch; -} -export interface DeleteWebauthnCredentialInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; -} -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; -} -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - orgInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - receiverId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - isReadOnly?: boolean; - expiresAt?: string; - entityId: string; - }; -} -export interface OrgInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - receiverId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - isReadOnly?: boolean | null; - expiresAt?: string | null; - entityId?: string | null; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - orgInvitePatch: OrgInvitePatch; -} -export interface DeleteOrgInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgClaimedInviteInput { - clientMutationId?: string; - orgClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - entityId: string; - }; -} -export interface OrgClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; - entityId?: string | null; -} -export interface UpdateOrgClaimedInviteInput { - clientMutationId?: string; - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; -} -export interface DeleteOrgClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface CreateAuditLogAuthInput { - clientMutationId?: string; - auditLogAuth: { - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - }; -} -export interface AuditLogAuthPatch { - event?: string | null; - actorId?: string | null; - origin?: ConstructiveInternalTypeOrigin | null; - userAgent?: string | null; - ipAddress?: string | null; - success?: boolean | null; -} -export interface UpdateAuditLogAuthInput { - clientMutationId?: string; - id: string; - auditLogAuthPatch: AuditLogAuthPatch; -} -export interface DeleteAuditLogAuthInput { - clientMutationId?: string; - id: string; -} -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - slug?: string; - kind?: string; - displayName?: string; - enabled?: boolean; - isBuiltIn?: boolean; - }; -} -export interface IdentityProviderPatch { - slug?: string | null; - kind?: string | null; - displayName?: string | null; - enabled?: boolean | null; - isBuiltIn?: boolean | null; -} -export interface UpdateIdentityProviderInput { - clientMutationId?: string; - id: string; - identityProviderPatch: IdentityProviderPatch; -} -export interface DeleteIdentityProviderInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: { - permissions?: string; - }; -} -export interface AppPermissionDefaultPatch { - permissions?: string | null; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface DeleteAppPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; - }; -} -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface UpdateMigrateFileInput { - clientMutationId?: string; - id: string; - migrateFilePatch: MigrateFilePatch; -} -export interface DeleteMigrateFileInput { - clientMutationId?: string; - id: string; -} -export interface CreateDevicesModuleInput { - clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; - }; -} -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -export interface UpdateDevicesModuleInput { - clientMutationId?: string; - id: string; - devicesModulePatch: DevicesModulePatch; -} -export interface DeleteDevicesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; - }; -} -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - nodeTypeRegistry: { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: Record; - tags?: string[]; - }; -} -export interface NodeTypeRegistryPatch { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - name: string; - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -export interface DeleteNodeTypeRegistryInput { - clientMutationId?: string; - name: string; -} -export interface CreateAppLimitCapsDefaultInput { - clientMutationId?: string; - appLimitCapsDefault: { - name: string; - max?: string; - }; -} -export interface AppLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; -} -export interface DeleteAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapsDefaultInput { - clientMutationId?: string; - orgLimitCapsDefault: { - name: string; - max?: string; - }; -} -export interface OrgLimitCapsDefaultPatch { - name?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; -} -export interface DeleteOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCapInput { - clientMutationId?: string; - appLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface AppLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - orgLimitCapPatch: OrgLimitCapPatch; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - ownerId?: string; - service?: string; - identifier?: string; - details?: Record; - isVerified?: boolean; - }; -} -export interface UserConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; -} -export interface UpdateUserConnectedAccountInput { - clientMutationId?: string; - id: string; - userConnectedAccountPatch: UserConnectedAccountPatch; -} -export interface DeleteUserConnectedAccountInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: { - name: string; - max?: string; - softMax?: string; - }; -} -export interface AppLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface DeleteAppLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: { - name: string; - max?: string; - softMax?: string; - }; -} -export interface OrgLimitDefaultPatch { - name?: string | null; - max?: string | null; - softMax?: string | null; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface DeleteOrgLimitDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitCreditCodeInput { - clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; - }; -} -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; -} -export interface UpdateAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; -} -export interface DeleteAppLimitCreditCodeInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitWarningInput { - clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; - }; -} -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; -} -export interface UpdateAppLimitWarningInput { - clientMutationId?: string; - id: string; - appLimitWarningPatch: AppLimitWarningPatch; -} -export interface DeleteAppLimitWarningInput { - clientMutationId?: string; - id: string; -} -export interface CreatePubkeySettingInput { - clientMutationId?: string; - pubkeySetting: { - databaseId: string; - schemaId?: string; - cryptoNetwork?: string; - userField?: string; - signUpWithKeyFunctionId?: string; - signInRequestChallengeFunctionId?: string; - signInRecordFailureFunctionId?: string; - signInWithChallengeFunctionId?: string; - }; -} -export interface PubkeySettingPatch { - databaseId?: string | null; - schemaId?: string | null; - cryptoNetwork?: string | null; - userField?: string | null; - signUpWithKeyFunctionId?: string | null; - signInRequestChallengeFunctionId?: string | null; - signInRecordFailureFunctionId?: string | null; - signInWithChallengeFunctionId?: string | null; -} -export interface UpdatePubkeySettingInput { - clientMutationId?: string; - id: string; - pubkeySettingPatch: PubkeySettingPatch; -} -export interface DeletePubkeySettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateRateLimitsModuleInput { - clientMutationId?: string; - rateLimitsModule: { - databaseId: string; - schemaId?: string; - rateLimitSettingsTableId?: string; - ipRateLimitsTableId?: string; - rateLimitsTableId?: string; - rateLimitSettingsTable?: string; - ipRateLimitsTable?: string; - rateLimitsTable?: string; - }; -} -export interface RateLimitsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -export interface UpdateRateLimitsModuleInput { - clientMutationId?: string; - id: string; - rateLimitsModulePatch: RateLimitsModulePatch; -} -export interface DeleteRateLimitsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateRlsSettingInput { - clientMutationId?: string; - rlsSetting: { - databaseId: string; - authenticateSchemaId?: string; - roleSchemaId?: string; - authenticateFunctionId?: string; - authenticateStrictFunctionId?: string; - currentRoleFunctionId?: string; - currentRoleIdFunctionId?: string; - currentUserAgentFunctionId?: string; - currentIpAddressFunctionId?: string; - }; -} -export interface RlsSettingPatch { - databaseId?: string | null; - authenticateSchemaId?: string | null; - roleSchemaId?: string | null; - authenticateFunctionId?: string | null; - authenticateStrictFunctionId?: string | null; - currentRoleFunctionId?: string | null; - currentRoleIdFunctionId?: string | null; - currentUserAgentFunctionId?: string | null; - currentIpAddressFunctionId?: string | null; -} -export interface UpdateRlsSettingInput { - clientMutationId?: string; - id: string; - rlsSettingPatch: RlsSettingPatch; -} -export interface DeleteRlsSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateRlsModuleInput { - clientMutationId?: string; - rlsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; - }; -} -export interface RlsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - sessionCredentialsTableId?: string | null; - sessionsTableId?: string | null; - usersTableId?: string | null; - authenticate?: string | null; - authenticateStrict?: string | null; - currentRole?: string | null; - currentRoleId?: string | null; -} -export interface UpdateRlsModuleInput { - clientMutationId?: string; - id: string; - rlsModulePatch: RlsModulePatch; -} -export interface DeleteRlsModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateRateLimitMetersModuleInput { - clientMutationId?: string; - rateLimitMetersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - }; -} -export interface RateLimitMetersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; -} -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreatePlansModuleInput { - clientMutationId?: string; - plansModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - prefix?: string; - }; -} -export interface PlansModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - prefix?: string | null; -} -export interface UpdatePlansModuleInput { - clientMutationId?: string; - id: string; - plansModulePatch: PlansModulePatch; -} -export interface DeletePlansModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - name?: string; - databaseId?: string; - deploy?: string; - deps?: string[]; - payload?: Record; - content?: string; - revert?: string; - verify?: string; - action?: string; - actionId?: string; - actorId?: string; - }; -} -export interface SqlActionPatch { - name?: string | null; - databaseId?: string | null; - deploy?: string | null; - deps?: string[] | null; - payload?: Record | null; - content?: string | null; - revert?: string | null; - verify?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface UpdateSqlActionInput { - clientMutationId?: string; - id: number; - sqlActionPatch: SqlActionPatch; -} -export interface DeleteSqlActionInput { - clientMutationId?: string; - id: number; -} -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - databaseSetting: { - databaseId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - enableBulk?: boolean; - options?: Record; - }; -} -export interface DatabaseSettingPatch { - databaseId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - enableBulk?: boolean | null; - options?: Record | null; -} -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - id: string; - databaseSettingPatch: DatabaseSettingPatch; -} -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - organizationId?: string; - entityType?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - organizationId?: string | null; - entityType?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; - }; -} -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; -} -export interface UpdateAppMembershipInput { - clientMutationId?: string; - id: string; - appMembershipPatch: AppMembershipPatch; -} -export interface DeleteAppMembershipInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} -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: { - databaseId: string; - schemaId?: string; - credentialsSchemaId?: string; - sessionsSchemaId?: string; - sessionSecretsSchemaId?: string; - credentialsTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - sessionSecretsTableId?: string; - userFieldId?: string; - rpId?: string; - rpName?: string; - originAllowlist?: string[]; - attestationType?: string; - requireUserVerification?: boolean; - residentKey?: string; - challengeExpirySeconds?: string; - }; -} -export interface WebauthnSettingPatch { - databaseId?: string | null; - schemaId?: string | null; - credentialsSchemaId?: string | null; - sessionsSchemaId?: string | null; - sessionSecretsSchemaId?: string | null; - credentialsTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - sessionSecretsTableId?: string | null; - userFieldId?: string | null; - rpId?: string | null; - rpName?: string | null; - originAllowlist?: string[] | null; - attestationType?: string | null; - requireUserVerification?: boolean | null; - residentKey?: string | null; - challengeExpirySeconds?: string | null; -} -export interface UpdateWebauthnSettingInput { - clientMutationId?: string; - id: string; - webauthnSettingPatch: WebauthnSettingPatch; -} -export interface DeleteWebauthnSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingModuleInput { - clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - recordUsageFunction?: string; - prefix?: string; - }; -} -export interface BillingModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - billingModulePatch: BillingModulePatch; -} -export interface DeleteBillingModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingProviderModuleInput { - clientMutationId?: string; - billingProviderModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - provider?: string; - productsTableId?: string; - pricesTableId?: string; - subscriptionsTableId?: string; - billingCustomersTableId?: string; - billingCustomersTableName?: string; - billingProductsTableId?: string; - billingProductsTableName?: string; - billingPricesTableId?: string; - billingPricesTableName?: string; - billingSubscriptionsTableId?: string; - billingSubscriptionsTableName?: string; - billingWebhookEventsTableId?: string; - billingWebhookEventsTableName?: string; - processBillingEventFunction?: string; - prefix?: string; - }; -} -export interface BillingProviderModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; -} -export interface UpdateBillingProviderModuleInput { - clientMutationId?: string; - id: string; - billingProviderModulePatch: BillingProviderModulePatch; -} -export interface DeleteBillingProviderModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateHierarchyModuleInput { - clientMutationId?: string; - hierarchyModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId: string; - usersTableId: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - }; -} -export interface HierarchyModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; -} -export interface UpdateHierarchyModuleInput { - clientMutationId?: string; - id: string; - hierarchyModulePatch: HierarchyModulePatch; -} -export interface DeleteHierarchyModuleInput { - clientMutationId?: string; - id: string; -} -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - Database: { - schemas: 'Schema', - tables: 'Table', - checkConstraints: 'CheckConstraint', - fields: 'Field', - foreignKeyConstraints: 'ForeignKeyConstraint', - fullTextSearches: 'FullTextSearch', - indices: 'Index', - policies: 'Policy', - primaryKeyConstraints: 'PrimaryKeyConstraint', - schemaGrants: 'SchemaGrant', - tableGrants: 'TableGrant', - triggerFunctions: 'TriggerFunction', - triggers: 'Trigger', - uniqueConstraints: 'UniqueConstraint', - views: 'View', - viewGrants: 'ViewGrant', - viewRules: 'ViewRule', - defaultPrivileges: 'DefaultPrivilege', - enums: 'Enum', - embeddingChunks: 'EmbeddingChunk', - spatialRelations: 'SpatialRelation', - functions: 'Function', - partitions: 'Partition', - databaseTransfers: 'DatabaseTransfer', - apis: 'Api', - apiModules: 'ApiModule', - apiSchemas: 'ApiSchema', - sites: 'Site', - apps: 'App', - domains: 'Domain', - siteMetadata: 'SiteMetadatum', - siteModules: 'SiteModule', - siteThemes: 'SiteTheme', - apiSettings: 'ApiSetting', - corsSettings: 'CorsSetting', - connectedAccountsModules: 'ConnectedAccountsModule', - cryptoAddressesModules: 'CryptoAddressesModule', - cryptoAuthModules: 'CryptoAuthModule', - defaultIdsModules: 'DefaultIdsModule', - denormalizedTableFields: 'DenormalizedTableField', - emailsModules: 'EmailsModule', - configSecretsUserModules: 'ConfigSecretsUserModule', - invitesModules: 'InvitesModule', - eventsModules: 'EventsModule', - limitsModules: 'LimitsModule', - membershipTypesModules: 'MembershipTypesModule', - membershipsModules: 'MembershipsModule', - permissionsModules: 'PermissionsModule', - phoneNumbersModules: 'PhoneNumbersModule', - profilesModules: 'ProfilesModule', - userStateModules: 'UserStateModule', - sessionsModules: 'SessionsModule', - userAuthModules: 'UserAuthModule', - usersModules: 'UsersModule', - secureTableProvisions: 'SecureTableProvision', - relationProvisions: 'RelationProvision', - blueprints: 'Blueprint', - blueprintConstructions: 'BlueprintConstruction', - storageModules: 'StorageModule', - entityTypeProvisions: 'EntityTypeProvision', - sessionSecretsModules: 'SessionSecretsModule', - webauthnCredentialsModules: 'WebauthnCredentialsModule', - webauthnAuthModules: 'WebauthnAuthModule', - identityProvidersModules: 'IdentityProvidersModule', - notificationsModules: 'NotificationsModule', - realtimeModules: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - inferenceLogModules: 'InferenceLogModule', - computeLogModules: 'ComputeLogModule', - transferLogModules: 'TransferLogModule', - storageLogModules: 'StorageLogModule', - dbUsageModules: 'DbUsageModule', - agentModules: 'AgentModule', - merkleStoreModules: 'MerkleStoreModule', - graphModules: 'GraphModule', - namespaceModules: 'NamespaceModule', - functionModules: 'FunctionModule', - databaseProvisionModules: 'DatabaseProvisionModule', - }, - Schema: { - tables: 'Table', - schemaGrants: 'SchemaGrant', - views: 'View', - defaultPrivileges: 'DefaultPrivilege', - enums: 'Enum', - functions: 'Function', - apiSchemas: 'ApiSchema', - sessionSecretsModules: 'SessionSecretsModule', - identityProvidersModulesByPrivateSchemaId: 'IdentityProvidersModule', - identityProvidersModules: 'IdentityProvidersModule', - realtimeModulesByPrivateSchemaId: 'RealtimeModule', - realtimeModules: 'RealtimeModule', - realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - merkleStoreModulesByPrivateSchemaId: 'MerkleStoreModule', - }, - Table: { - checkConstraints: 'CheckConstraint', - fields: 'Field', - foreignKeyConstraints: 'ForeignKeyConstraint', - fullTextSearches: 'FullTextSearch', - indices: 'Index', - policies: 'Policy', - primaryKeyConstraints: 'PrimaryKeyConstraint', - tableGrants: 'TableGrant', - triggers: 'Trigger', - uniqueConstraints: 'UniqueConstraint', - views: 'View', - viewTables: 'ViewTable', - embeddingChunksByChunksTableId: 'EmbeddingChunk', - embeddingChunks: 'EmbeddingChunk', - spatialRelationsByRefTableId: 'SpatialRelation', - spatialRelations: 'SpatialRelation', - secureTableProvisions: 'SecureTableProvision', - relationProvisionsBySourceTableId: 'RelationProvision', - relationProvisionsByTargetTableId: 'RelationProvision', - sessionSecretsModulesBySessionsTableId: 'SessionSecretsModule', - sessionSecretsModules: 'SessionSecretsModule', - identityProvidersModules: 'IdentityProvidersModule', - realtimeModulesByChangeLogTableId: 'RealtimeModule', - realtimeModulesByListenerNodeTableId: 'RealtimeModule', - realtimeModulesBySourceRegistryTableId: 'RealtimeModule', - configSecretsOrgModules: 'ConfigSecretsOrgModule', - }, - Field: { - spatialRelations: 'SpatialRelation', - spatialRelationsByRefFieldId: 'SpatialRelation', - }, - View: { - viewTables: 'ViewTable', - viewGrants: 'ViewGrant', - viewRules: 'ViewRule', - }, - MerkleStoreModule: { - graphModules: 'GraphModule', - }, - Api: { - apiModules: 'ApiModule', - apiSchemas: 'ApiSchema', - domains: 'Domain', - corsSettings: 'CorsSetting', - }, - Site: { - domains: 'Domain', - siteMetadata: 'SiteMetadatum', - siteModules: 'SiteModule', - siteThemes: 'SiteTheme', - }, - Blueprint: { - blueprintConstructions: 'BlueprintConstruction', - }, - BlueprintTemplate: { - blueprintTemplatesByForkedFromId: 'BlueprintTemplate', - blueprintsByTemplateId: 'Blueprint', - }, - AppLimitDefault: { - appLimitCreditsByDefaultLimitId: 'AppLimitCredit', - appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', - }, - OrgLimitDefault: { - orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, - User: { - ownedDatabases: 'Database', - appAdminGrantsByActorId: 'AppAdminGrant', - appAdminGrantsByGrantorId: 'AppAdminGrant', - appOwnerGrantsByActorId: 'AppOwnerGrant', - appOwnerGrantsByGrantorId: 'AppOwnerGrant', - appGrantsByActorId: 'AppGrant', - appGrantsByGrantorId: 'AppGrant', - orgMembershipsByActorId: 'OrgMembership', - orgMembershipsByEntityId: 'OrgMembership', - orgMembersByActorId: 'OrgMember', - orgMembersByEntityId: 'OrgMember', - orgAdminGrantsByActorId: 'OrgAdminGrant', - orgAdminGrantsByEntityId: 'OrgAdminGrant', - orgAdminGrantsByGrantorId: 'OrgAdminGrant', - orgOwnerGrantsByActorId: 'OrgOwnerGrant', - orgOwnerGrantsByEntityId: 'OrgOwnerGrant', - orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', - orgMemberProfilesByActorId: 'OrgMemberProfile', - orgMemberProfilesByEntityId: 'OrgMemberProfile', - orgGrantsByActorId: 'OrgGrant', - orgGrantsByEntityId: 'OrgGrant', - orgGrantsByGrantorId: 'OrgGrant', - parentOrgChartEdges: 'OrgChartEdge', - orgChartEdgesByEntityId: 'OrgChartEdge', - childOrgChartEdges: 'OrgChartEdge', - parentOrgChartEdgeGrants: 'OrgChartEdgeGrant', - orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', - orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', - childOrgChartEdgeGrants: 'OrgChartEdgeGrant', - orgPermissionDefaultsByEntityId: 'OrgPermissionDefault', - appLimitsByActorId: 'AppLimit', - appLimitCreditsByActorId: 'AppLimitCredit', - orgLimitsByActorId: 'OrgLimit', - orgLimitsByEntityId: 'OrgLimit', - orgLimitCreditsByActorId: 'OrgLimitCredit', - orgLimitCreditsByEntityId: 'OrgLimitCredit', - orgLimitAggregatesByEntityId: 'OrgLimitAggregate', - orgLimitWarningsByEntityId: 'OrgLimitWarning', - ownedEmails: 'Email', - ownedPhoneNumbers: 'PhoneNumber', - ownedCryptoAddresses: 'CryptoAddress', - ownedWebauthnCredentials: 'WebauthnCredential', - appInvitesBySenderId: 'AppInvite', - appClaimedInvitesByReceiverId: 'AppClaimedInvite', - appClaimedInvitesBySenderId: 'AppClaimedInvite', - orgInvitesByEntityId: 'OrgInvite', - orgInvitesByReceiverId: 'OrgInvite', - orgInvitesBySenderId: 'OrgInvite', - orgClaimedInvitesByEntityId: 'OrgClaimedInvite', - orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', - orgClaimedInvitesBySenderId: 'OrgClaimedInvite', - auditLogAuthsByActorId: 'AuditLogAuth', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface SendAccountDeletionEmailInput { - clientMutationId?: string; -} -export interface SignOutInput { - clientMutationId?: string; -} -export interface AcceptDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface CancelDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface RejectDatabaseTransferInput { - clientMutationId?: string; - transferId?: string; -} -export interface DisconnectAccountInput { - clientMutationId?: string; - accountId: string; -} -export interface RevokeApiKeyInput { - clientMutationId?: string; - keyId: string; -} -export interface RevokeSessionInput { - clientMutationId?: string; - sessionId: string; -} -export interface VerifyPasswordInput { - clientMutationId?: string; - password: string; -} -export interface VerifyTotpInput { - clientMutationId?: string; - totpValue: string; -} -export interface SubmitAppInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface CheckPasswordInput { - clientMutationId?: string; - password?: string; -} -export interface ConfirmDeleteAccountInput { - clientMutationId?: string; - userId?: string; - token?: string; -} -export interface SetPasswordInput { - clientMutationId?: string; - currentPassword?: string; - newPassword?: string; -} -export interface VerifyEmailInput { - clientMutationId?: string; - emailId?: string; - token?: string; -} -export interface ConstructBlueprintInput { - clientMutationId?: string; - blueprintId?: string; - schemaId?: string; -} -export interface ProvisionNewUserInput { - clientMutationId?: string; - email?: string; - password?: string; -} -export interface ResetPasswordInput { - clientMutationId?: string; - roleId?: string; - resetToken?: string; - newPassword?: string; -} -export interface ProvisionCheckConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionUniqueConstraintInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionFullTextSearchInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface ProvisionIndexInput { - clientMutationId?: string; - databaseId?: string; - tableId?: string; - definition?: Record; -} -export interface CopyTemplateToBlueprintInput { - clientMutationId?: string; - templateId?: string; - databaseId?: string; - ownerId?: string; - nameOverride?: string; - displayNameOverride?: string; -} -export interface ProvisionSpatialRelationInput { - clientMutationId?: string; - pDatabaseId?: string; - pSourceTableId?: string; - pSourceFieldId?: string; - pTargetTableId?: string; - pTargetFieldId?: string; - pName?: string; - pOperator?: string; - pParamName?: string; -} -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} -export interface ProvisionRelationInput { - clientMutationId?: string; - databaseId?: string; - relationType?: string; - sourceTableId?: string; - targetTableId?: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - createIndex?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; - policies?: Record; -} -export interface SetFieldOrderInput { - clientMutationId?: string; - fieldIds?: string[]; -} -export interface ApplyRlsInput { - clientMutationId?: string; - tableId?: string; - grants?: Record; - policyType?: string; - vars?: Record; - fieldIds?: string[]; - permissive?: boolean; - name?: string; -} -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: string[]; - pOptions?: Record; -} -export interface CreateUserDatabaseInput { - clientMutationId?: string; - databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; -} -export interface ExtendTokenExpiresInput { - clientMutationId?: string; - amount?: IntervalInput; -} -export interface CreateApiKeyInput { - clientMutationId?: string; - keyName?: string; - accessLevel?: string; - mfaLevel?: string; - expiresIn?: IntervalInput; -} -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} -export interface ProvisionTableInput { - clientMutationId?: string; - databaseId?: string; - schemaId?: string; - tableName?: string; - tableId?: string; - nodes?: Record; - fields?: Record; - policies?: Record; - grants?: Record; - useRls?: boolean; - indexes?: Record; - fullTextSearches?: Record; - uniqueConstraints?: Record; - description?: string; -} -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ProvisionBucketInput { - /** The logical bucket key (e.g., "public", "private") */ - bucketKey: string; - /** - * Owner entity ID for entity-scoped bucket provisioning. - * Omit for app-level (database-wide) storage. - */ - ownerId?: string; -} -/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaFilter; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against many `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFunctionFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against many `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPartitionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PartitionFilter; - /** Filters to entities where every related entity matches. */ - every?: PartitionFilter; - /** Filters to entities where no related entity matches. */ - none?: PartitionFilter; -} -/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseTransferFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseTransferFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseTransferFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseTransferFilter; -} -/** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiFilter; -} -/** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteFilter; -} -/** A filter to be used against many `App` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAppFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppFilter; - /** Filters to entities where every related entity matches. */ - every?: AppFilter; - /** Filters to entities where no related entity matches. */ - none?: AppFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against many `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyApiSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSettingFilter; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against many `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConnectedAccountsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConnectedAccountsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConnectedAccountsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConnectedAccountsModuleFilter; -} -/** A filter to be used against many `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAddressesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressesModuleFilter; -} -/** A filter to be used against many `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyCryptoAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAuthModuleFilter; -} -/** A filter to be used against many `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDefaultIdsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultIdsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultIdsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultIdsModuleFilter; -} -/** A filter to be used against many `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDenormalizedTableFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DenormalizedTableFieldFilter; - /** Filters to entities where every related entity matches. */ - every?: DenormalizedTableFieldFilter; - /** Filters to entities where no related entity matches. */ - none?: DenormalizedTableFieldFilter; -} -/** A filter to be used against many `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEmailsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailsModuleFilter; -} -/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsUserModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsUserModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsUserModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsUserModuleFilter; -} -/** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInvitesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InvitesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InvitesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InvitesModuleFilter; -} -/** A filter to be used against many `EventsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEventsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EventsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: EventsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: EventsModuleFilter; -} -/** A filter to be used against many `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyLimitsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: LimitsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: LimitsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: LimitsModuleFilter; -} -/** A filter to be used against many `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipTypesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipTypesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipTypesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipTypesModuleFilter; -} -/** A filter to be used against many `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMembershipsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MembershipsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MembershipsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MembershipsModuleFilter; -} -/** A filter to be used against many `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPermissionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PermissionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PermissionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PermissionsModuleFilter; -} -/** A filter to be used against many `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyPhoneNumbersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumbersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumbersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumbersModuleFilter; -} -/** A filter to be used against many `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyProfilesModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ProfilesModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ProfilesModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ProfilesModuleFilter; -} -/** A filter to be used against many `UserStateModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserStateModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserStateModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserStateModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserStateModuleFilter; -} -/** A filter to be used against many `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionsModuleFilter; -} -/** A filter to be used against many `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUserAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UserAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UserAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UserAuthModuleFilter; -} -/** A filter to be used against many `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUsersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UsersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UsersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UsersModuleFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against many `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageModuleFilter; -} -/** A filter to be used against many `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEntityTypeProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EntityTypeProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: EntityTypeProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: EntityTypeProvisionFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnCredentialsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialsModuleFilter; -} -/** A filter to be used against many `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyWebauthnAuthModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnAuthModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnAuthModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnAuthModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNotificationsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NotificationsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NotificationsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NotificationsModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyInferenceLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: InferenceLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: InferenceLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: InferenceLogModuleFilter; -} -/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyComputeLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ComputeLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ComputeLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ComputeLogModuleFilter; -} -/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyTransferLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TransferLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: TransferLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: TransferLogModuleFilter; -} -/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyStorageLogModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: StorageLogModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: StorageLogModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: StorageLogModuleFilter; -} -/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDbUsageModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DbUsageModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DbUsageModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DbUsageModuleFilter; -} -/** A filter to be used against many `AgentModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyAgentModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentModuleFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyGraphModuleFilter { - /** 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 filter to be used against many `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyNamespaceModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: NamespaceModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: NamespaceModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: NamespaceModuleFilter; -} -/** A filter to be used against many `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyFunctionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionModuleFilter; -} -/** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyDatabaseProvisionModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseProvisionModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseProvisionModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseProvisionModuleFilter; -} -/** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ -export interface ObjectCategoryFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ObjectCategory; - /** Not equal to the specified value. */ - notEqualTo?: ObjectCategory; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ObjectCategory; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ObjectCategory; - /** Included in the specified list. */ - in?: ObjectCategory[]; - /** Not included in the specified list. */ - notIn?: ObjectCategory[]; - /** Less than the specified value. */ - lessThan?: ObjectCategory; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ObjectCategory; - /** Greater than the specified value. */ - greaterThan?: ObjectCategory; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ObjectCategory; -} -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableFilter; - /** Filters to entities where every related entity matches. */ - every?: TableFilter; - /** Filters to entities where no related entity matches. */ - none?: TableFilter; -} -/** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySchemaGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SchemaGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: SchemaGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: SchemaGrantFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyDefaultPrivilegeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DefaultPrivilegeFilter; - /** Filters to entities where every related entity matches. */ - every?: DefaultPrivilegeFilter; - /** Filters to entities where no related entity matches. */ - none?: DefaultPrivilegeFilter; -} -/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyEnumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EnumFilter; - /** Filters to entities where every related entity matches. */ - every?: EnumFilter; - /** Filters to entities where no related entity matches. */ - none?: EnumFilter; -} -/** A filter to be used against many `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyFunctionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyMerkleStoreModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: MerkleStoreModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: MerkleStoreModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: MerkleStoreModuleFilter; -} -/** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyCheckConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CheckConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: CheckConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: CheckConstraintFilter; -} -/** A filter to be used against many `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFieldFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FieldFilter; - /** Filters to entities where every related entity matches. */ - every?: FieldFilter; - /** Filters to entities where no related entity matches. */ - none?: FieldFilter; -} -/** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyForeignKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ForeignKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: ForeignKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: ForeignKeyConstraintFilter; -} -/** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyFullTextSearchFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FullTextSearchFilter; - /** Filters to entities where every related entity matches. */ - every?: FullTextSearchFilter; - /** Filters to entities where no related entity matches. */ - none?: FullTextSearchFilter; -} -/** A filter to be used against many `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIndexFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IndexFilter; - /** Filters to entities where every related entity matches. */ - every?: IndexFilter; - /** Filters to entities where no related entity matches. */ - none?: IndexFilter; -} -/** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPolicyFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PolicyFilter; - /** Filters to entities where every related entity matches. */ - every?: PolicyFilter; - /** Filters to entities where no related entity matches. */ - none?: PolicyFilter; -} -/** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyPrimaryKeyConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PrimaryKeyConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: PrimaryKeyConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: PrimaryKeyConstraintFilter; -} -/** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTableGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TableGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: TableGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: TableGrantFilter; -} -/** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTriggerFilter { - /** Filters to entities where at least one related entity matches. */ - some?: TriggerFilter; - /** Filters to entities where every related entity matches. */ - every?: TriggerFilter; - /** Filters to entities where no related entity matches. */ - none?: TriggerFilter; -} -/** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyUniqueConstraintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UniqueConstraintFilter; - /** Filters to entities where every related entity matches. */ - every?: UniqueConstraintFilter; - /** Filters to entities where no related entity matches. */ - none?: UniqueConstraintFilter; -} -/** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewFilter; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyEmbeddingChunkFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmbeddingChunkFilter; - /** Filters to entities where every related entity matches. */ - every?: EmbeddingChunkFilter; - /** Filters to entities where no related entity matches. */ - none?: EmbeddingChunkFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySecureTableProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SecureTableProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: SecureTableProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: SecureTableProvisionFilter; -} -/** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRelationProvisionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RelationProvisionFilter; - /** Filters to entities where every related entity matches. */ - every?: RelationProvisionFilter; - /** Filters to entities where no related entity matches. */ - none?: RelationProvisionFilter; -} -/** A filter to be used against many `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManySessionSecretsModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SessionSecretsModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SessionSecretsModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SessionSecretsModuleFilter; -} -/** A filter to be used against many `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyIdentityProvidersModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: IdentityProvidersModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: IdentityProvidersModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: IdentityProvidersModuleFilter; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; -} -/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyConfigSecretsOrgModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ConfigSecretsOrgModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ConfigSecretsOrgModuleFilter; -} -/** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldToManySpatialRelationFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SpatialRelationFilter; - /** Filters to entities where every related entity matches. */ - every?: SpatialRelationFilter; - /** Filters to entities where no related entity matches. */ - none?: SpatialRelationFilter; -} -/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewTableFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewTableFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewTableFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewTableFilter; -} -/** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewGrantFilter; -} -/** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewToManyViewRuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ViewRuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ViewRuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ViewRuleFilter; -} -/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ -export interface JSONListFilter { - /** 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[]; - /** 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 list of values. */ - contains?: Record[]; - /** Contained by the specified list of values. */ - containedBy?: Record[]; - /** Overlaps the specified list of values. */ - overlaps?: Record[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: Record; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: Record; - /** Any array item is less than the specified value. */ - anyLessThan?: Record; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: Record; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: Record; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: Record; -} -/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeHostnameFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeHostname; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeHostname; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeHostname; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeHostname[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeHostname[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeHostname; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeHostname; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeHostname; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeHostname; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeHostname; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeHostname; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeHostname; - /** 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?: ConstructiveInternalTypeHostname; - /** 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; -} -/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface 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 filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiModuleFilter; -} -/** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyApiSchemaFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ApiSchemaFilter; - /** Filters to entities where every related entity matches. */ - every?: ApiSchemaFilter; - /** Filters to entities where no related entity matches. */ - none?: ApiSchemaFilter; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiToManyCorsSettingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CorsSettingFilter; - /** Filters to entities where every related entity matches. */ - every?: CorsSettingFilter; - /** Filters to entities where no related entity matches. */ - none?: CorsSettingFilter; -} -/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeAttachmentFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeAttachment; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeAttachment; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeAttachment; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeAttachment[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeAttachment[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeAttachment; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeAttachment; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeAttachment; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeAttachment; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeAttachment; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeAttachment; - /** 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?: ConstructiveInternalTypeAttachment; - /** 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; -} -/** A filter to be used against many `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManyDomainFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DomainFilter; - /** Filters to entities where every related entity matches. */ - every?: DomainFilter; - /** Filters to entities where no related entity matches. */ - none?: DomainFilter; -} -/** A filter to be used against many `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteMetadatumFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteMetadatumFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteMetadatumFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteMetadatumFilter; -} -/** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteModuleFilter; -} -/** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteToManySiteThemeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: SiteThemeFilter; - /** Filters to entities where every related entity matches. */ - every?: SiteThemeFilter; - /** Filters to entities where no related entity matches. */ - none?: SiteThemeFilter; -} -/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUrlFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUrl; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUrl; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUrl; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUrl[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUrl[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUrl; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUrl; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeUrl; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeUrl; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeUrl; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeUrl; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeUrl; - /** 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?: ConstructiveInternalTypeUrl; - /** 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; -} -/** 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; -} -/** A filter to be used against many `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintToManyBlueprintConstructionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintConstructionFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintConstructionFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintConstructionFilter; -} -/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintTemplateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintTemplateFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintTemplateFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintTemplateFilter; -} -/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateToManyBlueprintFilter { - /** Filters to entities where at least one related entity matches. */ - some?: BlueprintFilter; - /** Filters to entities where every related entity matches. */ - every?: BlueprintFilter; - /** Filters to entities where no related entity matches. */ - none?: BlueprintFilter; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -/** 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[]; -} -/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeOriginFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeOrigin; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeOrigin; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeOrigin[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeOrigin[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeOrigin; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeOrigin; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeOrigin; - /** 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?: ConstructiveInternalTypeOrigin; - /** 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; -} -/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeUploadFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeUpload; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeUpload; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeUpload; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeUpload[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeUpload[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeUpload; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeUpload; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeUpload; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeUpload; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeUpload; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} -/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ -export interface StringTrgmFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; - /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ - similarTo?: TrgmSearchInput; - /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ - wordSimilarTo?: TrgmSearchInput; -} -/** A filter to be used against many `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyDatabaseFilter { - /** Filters to entities where at least one related entity matches. */ - some?: DatabaseFilter; - /** Filters to entities where every related entity matches. */ - every?: DatabaseFilter; - /** Filters to entities where no related entity matches. */ - none?: DatabaseFilter; -} -/** A filter to be used against many `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppAdminGrantFilter; -} -/** A filter to be used against many `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppOwnerGrantFilter; -} -/** A filter to be used against many `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: AppGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: AppGrantFilter; -} -/** A filter to be used against many `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMembershipFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMembershipFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMembershipFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMembershipFilter; -} -/** A filter to be used against many `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberFilter; -} -/** A filter to be used against many `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgAdminGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgAdminGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgAdminGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgAdminGrantFilter; -} -/** A filter to be used against many `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgOwnerGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgOwnerGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgOwnerGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgOwnerGrantFilter; -} -/** A filter to be used against many `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgMemberProfileFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgMemberProfileFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgMemberProfileFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgMemberProfileFilter; -} -/** A filter to be used against many `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgGrantFilter; -} -/** A filter to be used against many `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeFilter; -} -/** A filter to be used against many `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgChartEdgeGrantFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgChartEdgeGrantFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgChartEdgeGrantFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgChartEdgeGrantFilter; -} -/** A filter to be used against many `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgPermissionDefaultFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgPermissionDefaultFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgPermissionDefaultFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgPermissionDefaultFilter; -} -/** A filter to be used against many `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitFilter; -} -/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditFilter; -} -/** A filter to be used against many `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitFilter; -} -/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitCreditFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitCreditFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitCreditFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitCreditFilter; -} -/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitAggregateFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitAggregateFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitAggregateFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitAggregateFilter; -} -/** A filter to be used against many `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgLimitWarningFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgLimitWarningFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgLimitWarningFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgLimitWarningFilter; -} -/** A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyEmailFilter { - /** Filters to entities where at least one related entity matches. */ - some?: EmailFilter; - /** Filters to entities where every related entity matches. */ - every?: EmailFilter; - /** Filters to entities where no related entity matches. */ - none?: EmailFilter; -} -/** A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyPhoneNumberFilter { - /** Filters to entities where at least one related entity matches. */ - some?: PhoneNumberFilter; - /** Filters to entities where every related entity matches. */ - every?: PhoneNumberFilter; - /** Filters to entities where no related entity matches. */ - none?: PhoneNumberFilter; -} -/** A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyCryptoAddressFilter { - /** Filters to entities where at least one related entity matches. */ - some?: CryptoAddressFilter; - /** Filters to entities where every related entity matches. */ - every?: CryptoAddressFilter; - /** Filters to entities where no related entity matches. */ - none?: CryptoAddressFilter; -} -/** A filter to be used against many `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyWebauthnCredentialFilter { - /** Filters to entities where at least one related entity matches. */ - some?: WebauthnCredentialFilter; - /** Filters to entities where every related entity matches. */ - every?: WebauthnCredentialFilter; - /** Filters to entities where no related entity matches. */ - none?: WebauthnCredentialFilter; -} -/** A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppInviteFilter; -} -/** A filter to be used against many `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAppClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: AppClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: AppClaimedInviteFilter; -} -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; -} -/** A filter to be used against many `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgClaimedInviteFilter { - /** Filters to entities where at least one related entity matches. */ - some?: OrgClaimedInviteFilter; - /** Filters to entities where every related entity matches. */ - every?: OrgClaimedInviteFilter; - /** Filters to entities where no related entity matches. */ - none?: OrgClaimedInviteFilter; -} -/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogAuthFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AuditLogAuthFilter; - /** Filters to entities where every related entity matches. */ - every?: AuditLogAuthFilter; - /** Filters to entities where no related entity matches. */ - none?: AuditLogAuthFilter; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; -} -/** 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 `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: 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?: SchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; - /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: SchemaToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: SchemaToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: SchemaToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModulesByPrivateSchemaId` relation. */ - identityProvidersModulesByPrivateSchemaId?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModulesByPrivateSchemaId` exist. */ - identityProvidersModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: SchemaToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByPrivateSchemaId` relation. */ - realtimeModulesByPrivateSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesByPrivateSchemaId` exist. */ - realtimeModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesBySubscriptionsSchemaId` relation. */ - realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; - /** `realtimeModulesBySubscriptionsSchemaId` exist. */ - realtimeModulesBySubscriptionsSchemaIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModulesByPrivateSchemaId` relation. */ - merkleStoreModulesByPrivateSchemaId?: SchemaToManyMerkleStoreModuleFilter; - /** `merkleStoreModulesByPrivateSchemaId` exist. */ - merkleStoreModulesByPrivateSchemaIdExist?: boolean; -} -/** 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. */ - 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `timestamps` field. */ - timestamps?: BooleanFilter; - /** Filter by the object’s `peoplestamps` field. */ - peoplestamps?: BooleanFilter; - /** Filter by the object’s `pluralName` field. */ - pluralName?: StringFilter; - /** Filter by the object’s `singularName` field. */ - singularName?: StringFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `partitioned` field. */ - partitioned?: BooleanFilter; - /** Filter by the object’s `partitionStrategy` field. */ - partitionStrategy?: StringFilter; - /** Filter by the object’s `partitionKeyNames` field. */ - partitionKeyNames?: StringListFilter; - /** Filter by the object’s `partitionKeyTypes` field. */ - partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: 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?: TableFilter[]; - /** Checks for any expressions in this list. */ - or?: TableFilter[]; - /** Negates the expression. */ - not?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `inherits` relation. */ - inherits?: TableFilter; - /** A related `inherits` exists. */ - inheritsExists?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: TableToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: TableToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: TableToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: TableToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: TableToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: TableToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: TableToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: TableToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: TableToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: TableToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: TableToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: TableToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ - embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunksByChunksTableId` exist. */ - embeddingChunksByChunksTableIdExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: TableToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefTableId` relation. */ - spatialRelationsByRefTableId?: TableToManySpatialRelationFilter; - /** `spatialRelationsByRefTableId` exist. */ - spatialRelationsByRefTableIdExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: TableToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `partition` relation. */ - partition?: PartitionFilter; - /** A related `partition` exists. */ - partitionExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: TableToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisionsBySourceTableId` relation. */ - relationProvisionsBySourceTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsBySourceTableId` exist. */ - relationProvisionsBySourceTableIdExist?: boolean; - /** Filter by the object’s `relationProvisionsByTargetTableId` relation. */ - relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; - /** `relationProvisionsByTargetTableId` exist. */ - relationProvisionsByTargetTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModulesBySessionsTableId` relation. */ - sessionSecretsModulesBySessionsTableId?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModulesBySessionsTableId` exist. */ - sessionSecretsModulesBySessionsTableIdExist?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: TableToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: TableToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `realtimeModulesByChangeLogTableId` relation. */ - realtimeModulesByChangeLogTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByChangeLogTableId` exist. */ - realtimeModulesByChangeLogTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesByListenerNodeTableId` relation. */ - realtimeModulesByListenerNodeTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesByListenerNodeTableId` exist. */ - realtimeModulesByListenerNodeTableIdExist?: boolean; - /** Filter by the object’s `realtimeModulesBySourceRegistryTableId` relation. */ - realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; - /** `realtimeModulesBySourceRegistryTableId` exist. */ - realtimeModulesBySourceRegistryTableIdExist?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; -} -/** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface CheckConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `expr` field. */ - expr?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: CheckConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: CheckConstraintFilter[]; - /** Negates the expression. */ - not?: CheckConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ -export interface FieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: JSONFilter; - /** Filter by the object’s `fieldOrder` field. */ - fieldOrder?: IntFilter; - /** Filter by the object’s `regexp` field. */ - regexp?: StringFilter; - /** Filter by the object’s `chk` field. */ - chk?: JSONFilter; - /** Filter by the object’s `chkExpr` field. */ - chkExpr?: JSONFilter; - /** Filter by the object’s `min` field. */ - min?: FloatFilter; - /** Filter by the object’s `max` field. */ - max?: FloatFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** 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?: FieldFilter[]; - /** Checks for any expressions in this list. */ - or?: FieldFilter[]; - /** Negates the expression. */ - not?: FieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: FieldToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `spatialRelationsByRefFieldId` relation. */ - spatialRelationsByRefFieldId?: FieldToManySpatialRelationFilter; - /** `spatialRelationsByRefFieldId` exist. */ - spatialRelationsByRefFieldIdExist?: boolean; -} -/** A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface ForeignKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldIds` field. */ - refFieldIds?: UUIDListFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `updateAction` field. */ - updateAction?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: ForeignKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: ForeignKeyConstraintFilter[]; - /** Negates the expression. */ - not?: ForeignKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ -export interface FullTextSearchFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `weights` field. */ - weights?: StringListFilter; - /** Filter by the object’s `langs` field. */ - langs?: StringListFilter; - /** 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?: FullTextSearchFilter[]; - /** Checks for any expressions in this list. */ - or?: FullTextSearchFilter[]; - /** Negates the expression. */ - not?: FullTextSearchFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ */ -export interface IndexFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `includeFieldIds` field. */ - includeFieldIds?: UUIDListFilter; - /** Filter by the object’s `accessMethod` field. */ - accessMethod?: StringFilter; - /** Filter by the object’s `indexParams` field. */ - indexParams?: JSONFilter; - /** Filter by the object’s `whereClause` field. */ - whereClause?: JSONFilter; - /** Filter by the object’s `isUnique` field. */ - isUnique?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `opClasses` field. */ - opClasses?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: IndexFilter[]; - /** Checks for any expressions in this list. */ - or?: IndexFilter[]; - /** Negates the expression. */ - not?: IndexFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ */ -export interface PolicyFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `permissive` field. */ - permissive?: BooleanFilter; - /** Filter by the object’s `disabled` field. */ - disabled?: BooleanFilter; - /** Filter by the object’s `policyType` field. */ - policyType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PolicyFilter[]; - /** Checks for any expressions in this list. */ - or?: PolicyFilter[]; - /** Negates the expression. */ - not?: PolicyFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface PrimaryKeyConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: PrimaryKeyConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: PrimaryKeyConstraintFilter[]; - /** Negates the expression. */ - not?: PrimaryKeyConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaGrantFilter { - /** 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 `granteeName` field. */ - granteeName?: 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?: SchemaGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: SchemaGrantFilter[]; - /** Negates the expression. */ - not?: SchemaGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface TableGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: 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?: TableGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: TableGrantFilter[]; - /** Negates the expression. */ - not?: TableGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFunctionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `code` field. */ - code?: 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?: TriggerFunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFunctionFilter[]; - /** Negates the expression. */ - not?: TriggerFunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ */ -export interface TriggerFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `functionName` field. */ - functionName?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: TriggerFilter[]; - /** Checks for any expressions in this list. */ - or?: TriggerFilter[]; - /** Negates the expression. */ - not?: TriggerFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ -export interface UniqueConstraintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `type` field. */ - type?: StringFilter; - /** Filter by the object’s `fieldIds` field. */ - fieldIds?: UUIDListFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: UniqueConstraintFilter[]; - /** Checks for any expressions in this list. */ - or?: UniqueConstraintFilter[]; - /** Negates the expression. */ - not?: UniqueConstraintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `viewType` field. */ - viewType?: StringFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `filterType` field. */ - filterType?: StringFilter; - /** Filter by the object’s `filterData` field. */ - filterData?: JSONFilter; - /** Filter by the object’s `securityInvoker` field. */ - securityInvoker?: BooleanFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ViewFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewFilter[]; - /** Negates the expression. */ - not?: ViewFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** A related `table` exists. */ - tableExists?: boolean; - /** Filter by the object’s `viewTables` relation. */ - viewTables?: ViewToManyViewTableFilter; - /** `viewTables` exist. */ - viewTablesExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: ViewToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: ViewToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; -} -/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `withGrantOption` field. */ - withGrantOption?: BooleanFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ViewGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewGrantFilter[]; - /** Negates the expression. */ - not?: ViewGrantFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewRuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ViewRuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewRuleFilter[]; - /** Negates the expression. */ - not?: ViewRuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `DefaultPrivilege` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultPrivilegeFilter { - /** 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 `objectType` field. */ - objectType?: StringFilter; - /** Filter by the object’s `privilege` field. */ - privilege?: StringFilter; - /** Filter by the object’s `granteeName` field. */ - granteeName?: StringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: DefaultPrivilegeFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultPrivilegeFilter[]; - /** Negates the expression. */ - not?: DefaultPrivilegeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ -export interface EnumFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `values` field. */ - values?: StringListFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: EnumFilter[]; - /** Checks for any expressions in this list. */ - or?: EnumFilter[]; - /** Negates the expression. */ - not?: EnumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ -export interface EmbeddingChunkFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `embeddingFieldId` field. */ - embeddingFieldId?: UUIDFilter; - /** Filter by the object’s `chunksTableId` field. */ - chunksTableId?: UUIDFilter; - /** Filter by the object’s `chunksTableName` field. */ - chunksTableName?: StringFilter; - /** Filter by the object’s `contentFieldName` field. */ - contentFieldName?: StringFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: IntFilter; - /** Filter by the object’s `metric` field. */ - metric?: StringFilter; - /** Filter by the object’s `chunkSize` field. */ - chunkSize?: IntFilter; - /** Filter by the object’s `chunkOverlap` field. */ - chunkOverlap?: IntFilter; - /** Filter by the object’s `chunkStrategy` field. */ - chunkStrategy?: StringFilter; - /** Filter by the object’s `metadataFields` field. */ - metadataFields?: JSONFilter; - /** Filter by the object’s `searchIndexes` field. */ - searchIndexes?: JSONFilter; - /** Filter by the object’s `enqueueChunkingJob` field. */ - enqueueChunkingJob?: BooleanFilter; - /** Filter by the object’s `chunkingTaskName` field. */ - chunkingTaskName?: StringFilter; - /** Filter by the object’s `embeddingModel` field. */ - embeddingModel?: StringFilter; - /** Filter by the object’s `embeddingProvider` field. */ - embeddingProvider?: StringFilter; - /** Filter by the object’s `parentFkFieldId` field. */ - parentFkFieldId?: 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?: EmbeddingChunkFilter[]; - /** Checks for any expressions in this list. */ - or?: EmbeddingChunkFilter[]; - /** Negates the expression. */ - not?: EmbeddingChunkFilter; - /** Filter by the object’s `chunksTable` relation. */ - chunksTable?: TableFilter; - /** A related `chunksTable` exists. */ - chunksTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `embeddingField` relation. */ - embeddingField?: FieldFilter; - /** A related `embeddingField` exists. */ - embeddingFieldExists?: boolean; - /** Filter by the object’s `parentFkField` relation. */ - parentFkField?: FieldFilter; - /** A related `parentFkField` exists. */ - parentFkFieldExists?: boolean; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ -export interface SpatialRelationFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `operator` field. */ - operator?: StringFilter; - /** Filter by the object’s `paramName` field. */ - paramName?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** 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?: SpatialRelationFilter[]; - /** Checks for any expressions in this list. */ - or?: SpatialRelationFilter[]; - /** Negates the expression. */ - not?: SpatialRelationFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `Function` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionFilter { - /** 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 `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionFilter[]; - /** Negates the expression. */ - not?: FunctionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Partition` object types. All fields are combined with a logical ‘and.’ */ -export interface PartitionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `strategy` field. */ - strategy?: StringFilter; - /** Filter by the object’s `partitionKeyId` field. */ - partitionKeyId?: UUIDFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `retentionKeepTable` field. */ - retentionKeepTable?: BooleanFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `namingPattern` field. */ - namingPattern?: StringFilter; - /** Filter by the object’s `isParented` field. */ - isParented?: 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?: PartitionFilter[]; - /** Checks for any expressions in this list. */ - or?: PartitionFilter[]; - /** Negates the expression. */ - not?: PartitionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `partitionKey` relation. */ - partitionKey?: FieldFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseTransferFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `targetOwnerId` field. */ - targetOwnerId?: UUIDFilter; - /** Filter by the object’s `sourceApproved` field. */ - sourceApproved?: BooleanFilter; - /** Filter by the object’s `targetApproved` field. */ - targetApproved?: BooleanFilter; - /** Filter by the object’s `sourceApprovedAt` field. */ - sourceApprovedAt?: DatetimeFilter; - /** Filter by the object’s `targetApprovedAt` field. */ - targetApprovedAt?: DatetimeFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `initiatedBy` field. */ - initiatedBy?: UUIDFilter; - /** Filter by the object’s `notes` field. */ - notes?: StringFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseTransferFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseTransferFilter[]; - /** Negates the expression. */ - not?: DatabaseTransferFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Filter by the object’s `roleName` field. */ - roleName?: StringFilter; - /** Filter by the object’s `anonRole` field. */ - anonRole?: StringFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: ApiFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiFilter[]; - /** Negates the expression. */ - not?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: ApiToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: ApiToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: ApiToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `apiSetting` relation. */ - apiSetting?: ApiSettingFilter; - /** A related `apiSetting` exists. */ - apiSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: ApiToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; -} -/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ApiModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiModuleFilter[]; - /** Negates the expression. */ - not?: ApiModuleFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSchemaFilter { - /** 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 `apiId` field. */ - apiId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ApiSchemaFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSchemaFilter[]; - /** Negates the expression. */ - not?: ApiSchemaFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteFilter { - /** Filter by the object’s `id` field. */ - id?: 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. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `favicon` field. */ - favicon?: ConstructiveInternalTypeAttachmentFilter; - /** Filter by the object’s `appleTouchIcon` field. */ - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `logo` field. */ - logo?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteFilter[]; - /** Negates the expression. */ - not?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `app` relation. */ - app?: AppFilter; - /** A related `app` exists. */ - appExists?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: SiteToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: SiteToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: SiteToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: SiteToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; -} -/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ -export interface AppFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `appImage` field. */ - appImage?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `appStoreLink` field. */ - appStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Filter by the object’s `appStoreId` field. */ - appStoreId?: StringFilter; - /** Filter by the object’s `appIdPrefix` field. */ - appIdPrefix?: StringFilter; - /** Filter by the object’s `playStoreLink` field. */ - playStoreLink?: ConstructiveInternalTypeUrlFilter; - /** Checks for all expressions in this list. */ - and?: AppFilter[]; - /** Checks for any expressions in this list. */ - or?: AppFilter[]; - /** Negates the expression. */ - not?: AppFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ -export interface DomainFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: ConstructiveInternalTypeHostnameFilter; - /** Filter by the object’s `domain` field. */ - domain?: ConstructiveInternalTypeHostnameFilter; - /** Checks for all expressions in this list. */ - and?: DomainFilter[]; - /** Checks for any expressions in this list. */ - or?: DomainFilter[]; - /** Negates the expression. */ - not?: DomainFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; - /** A related `site` exists. */ - siteExists?: boolean; -} -/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteMetadatumFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ogImage` field. */ - ogImage?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: SiteMetadatumFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteMetadatumFilter[]; - /** Negates the expression. */ - not?: SiteMetadatumFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SiteModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteModuleFilter[]; - /** Negates the expression. */ - not?: SiteModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ -export interface SiteThemeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `siteId` field. */ - siteId?: UUIDFilter; - /** Filter by the object’s `theme` field. */ - theme?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: SiteThemeFilter[]; - /** Checks for any expressions in this list. */ - or?: SiteThemeFilter[]; - /** Negates the expression. */ - not?: SiteThemeFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `site` relation. */ - site?: SiteFilter; -} -/** A filter to be used against `ApiSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface ApiSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: ApiSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: ApiSettingFilter[]; - /** Negates the expression. */ - not?: ApiSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `CorsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface CorsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: CorsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: CorsSettingFilter[]; - /** Negates the expression. */ - not?: CorsSettingFilter; - /** Filter by the object’s `api` relation. */ - api?: ApiFilter; - /** A related `api` exists. */ - apiExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConnectedAccountsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountsModuleFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: CryptoAddressesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressesModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAddressesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAuthModuleFilter { - /** 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 `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `addressesTableId` field. */ - addressesTableId?: UUIDFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `signInRequestChallenge` field. */ - signInRequestChallenge?: StringFilter; - /** Filter by the object’s `signInRecordFailure` field. */ - signInRecordFailure?: StringFilter; - /** Filter by the object’s `signUpWithKey` field. */ - signUpWithKey?: StringFilter; - /** Filter by the object’s `signInWithChallenge` field. */ - signInWithChallenge?: StringFilter; - /** Checks for all expressions in this list. */ - and?: CryptoAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAuthModuleFilter[]; - /** Negates the expression. */ - not?: CryptoAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DefaultIdsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: DefaultIdsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DefaultIdsModuleFilter[]; - /** Negates the expression. */ - not?: DefaultIdsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ -export interface DenormalizedTableFieldFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `fieldId` field. */ - fieldId?: UUIDFilter; - /** Filter by the object’s `setIds` field. */ - setIds?: UUIDListFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `refFieldId` field. */ - refFieldId?: UUIDFilter; - /** Filter by the object’s `refIds` field. */ - refIds?: UUIDListFilter; - /** Filter by the object’s `useUpdates` field. */ - useUpdates?: BooleanFilter; - /** Filter by the object’s `updateDefaults` field. */ - updateDefaults?: BooleanFilter; - /** Filter by the object’s `funcName` field. */ - funcName?: StringFilter; - /** Filter by the object’s `funcOrder` field. */ - funcOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: DenormalizedTableFieldFilter[]; - /** Checks for any expressions in this list. */ - or?: DenormalizedTableFieldFilter[]; - /** Negates the expression. */ - not?: DenormalizedTableFieldFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `field` relation. */ - field?: FieldFilter; - /** Filter by the object’s `refField` relation. */ - refField?: FieldFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: EmailsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailsModuleFilter[]; - /** Negates the expression. */ - not?: EmailsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `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; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; - /** Filter by the object’s `claimedInvitesTable` relation. */ - claimedInvitesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `invitesTable` relation. */ - invitesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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; - /** Filter by the object’s `removeEvent` field. */ - removeEvent?: StringFilter; - /** Filter by the object’s `tgEvent` field. */ - tgEvent?: StringFilter; - /** Filter by the object’s `tgEventToggle` field. */ - tgEventToggle?: StringFilter; - /** Filter by the object’s `tgEventToggleBool` field. */ - tgEventToggleBool?: StringFilter; - /** Filter by the object’s `tgEventBool` field. */ - tgEventBool?: StringFilter; - /** Filter by the object’s `upsertAggregate` field. */ - 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. */ - levelAchieved?: StringFilter; - /** Filter by the object’s `tgCheckAchievements` field. */ - tgCheckAchievements?: StringFilter; - /** Filter by the object’s `grantAchievement` field. */ - grantAchievement?: StringFilter; - /** Filter by the object’s `tgAchievementReward` field. */ - tgAchievementReward?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EventsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: EventsModuleFilter[]; - /** Negates the expression. */ - not?: EventsModuleFilter; - /** Filter by the object’s `achievementRewardsTable` relation. */ - achievementRewardsTable?: TableFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventAggregatesTable` relation. */ - eventAggregatesTable?: TableFilter; - /** Filter by the object’s `eventTypesTable` relation. */ - eventTypesTable?: TableFilter; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** Filter by the object’s `levelGrantsTable` relation. */ - levelGrantsTable?: TableFilter; - /** Filter by the object’s `levelRequirementsTable` relation. */ - levelRequirementsTable?: TableFilter; - /** Filter by the object’s `levelsTable` relation. */ - levelsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface LimitsModuleFilter { - /** Filter by the object’s `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 `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 `limitIncrementFunction` field. */ - limitIncrementFunction?: StringFilter; - /** Filter by the object’s `limitDecrementFunction` field. */ - limitDecrementFunction?: StringFilter; - /** Filter by the object’s `limitIncrementTrigger` field. */ - limitIncrementTrigger?: StringFilter; - /** Filter by the object’s `limitDecrementTrigger` field. */ - limitDecrementTrigger?: StringFilter; - /** Filter by the object’s `limitUpdateTrigger` field. */ - limitUpdateTrigger?: StringFilter; - /** Filter by the object’s `limitCheckFunction` field. */ - limitCheckFunction?: StringFilter; - /** Filter by the object’s `limitCreditsTableId` field. */ - limitCreditsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `creditCodesTableId` field. */ - creditCodesTableId?: UUIDFilter; - /** Filter by the object’s `creditCodeItemsTableId` field. */ - creditCodeItemsTableId?: UUIDFilter; - /** Filter by the object’s `creditRedemptionsTableId` field. */ - creditRedemptionsTableId?: UUIDFilter; - /** Filter by the object’s `aggregateTableId` field. */ - aggregateTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsTableId` field. */ - limitCapsTableId?: UUIDFilter; - /** Filter by the object’s `limitCapsDefaultsTableId` field. */ - limitCapsDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `capCheckTrigger` field. */ - capCheckTrigger?: 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 `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: LimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: LimitsModuleFilter[]; - /** Negates the expression. */ - not?: LimitsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `aggregateTable` relation. */ - aggregateTable?: TableFilter; - /** A related `aggregateTable` exists. */ - aggregateTableExists?: boolean; - /** Filter by the object’s `creditCodeItemsTable` relation. */ - creditCodeItemsTable?: TableFilter; - /** A related `creditCodeItemsTable` exists. */ - creditCodeItemsTableExists?: boolean; - /** Filter by the object’s `creditCodesTable` relation. */ - creditCodesTable?: TableFilter; - /** A related `creditCodesTable` exists. */ - creditCodesTableExists?: boolean; - /** Filter by the object’s `creditRedemptionsTable` relation. */ - creditRedemptionsTable?: TableFilter; - /** A related `creditRedemptionsTable` exists. */ - creditRedemptionsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `eventsTable` relation. */ - eventsTable?: TableFilter; - /** A related `eventsTable` exists. */ - eventsTableExists?: boolean; - /** Filter by the object’s `limitCapsDefaultsTable` relation. */ - limitCapsDefaultsTable?: TableFilter; - /** A related `limitCapsDefaultsTable` exists. */ - limitCapsDefaultsTableExists?: boolean; - /** Filter by the object’s `limitCapsTable` relation. */ - limitCapsTable?: TableFilter; - /** A related `limitCapsTable` exists. */ - limitCapsTableExists?: boolean; - /** Filter by the object’s `limitCreditsTable` relation. */ - limitCreditsTable?: TableFilter; - /** A related `limitCreditsTable` exists. */ - limitCreditsTableExists?: boolean; - /** Filter by the object’s `limitWarningStateTable` relation. */ - limitWarningStateTable?: TableFilter; - /** A related `limitWarningStateTable` exists. */ - limitWarningStateTableExists?: boolean; - /** Filter by the object’s `limitWarningsTable` relation. */ - limitWarningsTable?: TableFilter; - /** A related `limitWarningsTable` exists. */ - limitWarningsTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypesModuleFilter { - /** 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?: MembershipTypesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypesModuleFilter[]; - /** Negates the expression. */ - not?: MembershipTypesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultLimitsTable` relation. */ - defaultLimitsTable?: TableFilter; - /** Filter by the object’s `defaultPermissionsTable` relation. */ - defaultPermissionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `entityTableOwner` relation. */ - entityTableOwner?: FieldFilter; - /** A related `entityTableOwner` exists. */ - entityTableOwnerExists?: boolean; - /** Filter by the object’s `grantsTable` relation. */ - grantsTable?: TableFilter; - /** Filter by the object’s `limitsTable` relation. */ - limitsTable?: TableFilter; - /** Filter by the object’s `membersTable` relation. */ - membersTable?: TableFilter; - /** Filter by the object’s `membershipDefaultsTable` relation. */ - membershipDefaultsTable?: TableFilter; - /** Filter by the object’s `membershipSettingsTable` relation. */ - membershipSettingsTable?: TableFilter; - /** A related `membershipSettingsTable` exists. */ - membershipSettingsTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sprtTable` relation. */ - sprtTable?: TableFilter; -} -/** 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 `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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** 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; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `defaultTable` relation. */ - defaultTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumbersModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: PhoneNumbersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumbersModuleFilter[]; - /** Negates the expression. */ - not?: PhoneNumbersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `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 `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `profilePermissionsTableId` field. */ - profilePermissionsTableId?: UUIDFilter; - /** Filter by the object’s `profilePermissionsTableName` field. */ - profilePermissionsTableName?: StringFilter; - /** Filter by the object’s `profileGrantsTableId` field. */ - profileGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileGrantsTableName` field. */ - profileGrantsTableName?: StringFilter; - /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ - profileDefinitionGrantsTableId?: UUIDFilter; - /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ - profileDefinitionGrantsTableName?: StringFilter; - /** Filter by the object’s `profileTemplatesTableId` field. */ - profileTemplatesTableId?: UUIDFilter; - /** Filter by the object’s `profileTemplatesTableName` field. */ - profileTemplatesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ProfilesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ProfilesModuleFilter[]; - /** Negates the expression. */ - not?: ProfilesModuleFilter; - /** Filter by the object’s `actorTable` relation. */ - actorTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `membershipsTable` relation. */ - membershipsTable?: TableFilter; - /** Filter by the object’s `permissionsTable` relation. */ - permissionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `profileDefinitionGrantsTable` relation. */ - profileDefinitionGrantsTable?: TableFilter; - /** Filter by the object’s `profileGrantsTable` relation. */ - profileGrantsTable?: TableFilter; - /** Filter by the object’s `profilePermissionsTable` relation. */ - profilePermissionsTable?: TableFilter; - /** Filter by the object’s `profileTemplatesTable` relation. */ - profileTemplatesTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface SessionsModuleFilter { - /** 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 `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsDefaultExpiration` field. */ - sessionsDefaultExpiration?: IntervalFilter; - /** Filter by the object’s `sessionsTable` field. */ - sessionsTable?: StringFilter; - /** Filter by the object’s `sessionCredentialsTable` field. */ - sessionCredentialsTable?: StringFilter; - /** Filter by the object’s `authSettingsTable` field. */ - authSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: SessionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: SessionsModuleFilter[]; - /** Negates the expression. */ - not?: SessionsModuleFilter; - /** Filter by the object’s `authSettingsTableByAuthSettingsTableId` relation. */ - authSettingsTableByAuthSettingsTableId?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTableBySessionCredentialsTableId` relation. */ - sessionCredentialsTableBySessionCredentialsTableId?: TableFilter; - /** Filter by the object’s `sessionsTableBySessionsTableId` relation. */ - sessionsTableBySessionsTableId?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UserAuthModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `secretsTableId` field. */ - secretsTableId?: UUIDFilter; - /** Filter by the object’s `encryptedTableId` field. */ - encryptedTableId?: 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 `auditsTableName` field. */ - auditsTableName?: StringFilter; - /** Filter by the object’s `signInFunction` field. */ - signInFunction?: StringFilter; - /** Filter by the object’s `signUpFunction` field. */ - signUpFunction?: StringFilter; - /** Filter by the object’s `signOutFunction` field. */ - signOutFunction?: StringFilter; - /** Filter by the object’s `setPasswordFunction` field. */ - setPasswordFunction?: StringFilter; - /** Filter by the object’s `resetPasswordFunction` field. */ - resetPasswordFunction?: StringFilter; - /** Filter by the object’s `forgotPasswordFunction` field. */ - forgotPasswordFunction?: StringFilter; - /** Filter by the object’s `sendVerificationEmailFunction` field. */ - sendVerificationEmailFunction?: StringFilter; - /** Filter by the object’s `verifyEmailFunction` field. */ - verifyEmailFunction?: StringFilter; - /** Filter by the object’s `verifyPasswordFunction` field. */ - verifyPasswordFunction?: StringFilter; - /** Filter by the object’s `checkPasswordFunction` field. */ - checkPasswordFunction?: StringFilter; - /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ - sendAccountDeletionEmailFunction?: StringFilter; - /** Filter by the object’s `deleteAccountFunction` field. */ - deleteAccountFunction?: StringFilter; - /** Filter by the object’s `signInCrossOriginFunction` field. */ - signInCrossOriginFunction?: StringFilter; - /** Filter by the object’s `requestCrossOriginTokenFunction` field. */ - requestCrossOriginTokenFunction?: StringFilter; - /** Filter by the object’s `extendTokenExpires` field. */ - extendTokenExpires?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserAuthModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserAuthModuleFilter[]; - /** Negates the expression. */ - not?: UserAuthModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `emailsTable` relation. */ - emailsTable?: TableFilter; - /** Filter by the object’s `encryptedTable` relation. */ - encryptedTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretsTable` relation. */ - secretsTable?: TableFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UsersModuleFilter { - /** 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 `typeTableId` field. */ - typeTableId?: UUIDFilter; - /** Filter by the object’s `typeTableName` field. */ - typeTableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UsersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UsersModuleFilter[]; - /** Negates the expression. */ - not?: UsersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `typeTable` relation. */ - typeTable?: TableFilter; -} -/** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface SecureTableProvisionFilter { - /** 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 `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `sourceTable` relation. */ - sourceTable?: TableFilter; - /** Filter by the object’s `targetTable` relation. */ - targetTable?: TableFilter; -} -/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `templateId` field. */ - templateId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintFilter[]; - /** Negates the expression. */ - not?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `template` relation. */ - template?: BlueprintTemplateFilter; - /** A related `template` exists. */ - templateExists?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: BlueprintToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; -} -/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageModuleFilter { - /** Filter by the object’s `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 `bucketsTableId` field. */ - bucketsTableId?: UUIDFilter; - /** Filter by the object’s `filesTableId` field. */ - filesTableId?: UUIDFilter; - /** Filter by the object’s `bucketsTableName` field. */ - bucketsTableName?: StringFilter; - /** Filter by the object’s `filesTableName` field. */ - filesTableName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `endpoint` field. */ - endpoint?: StringFilter; - /** Filter by the object’s `publicUrlPrefix` field. */ - publicUrlPrefix?: StringFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `allowedOrigins` field. */ - allowedOrigins?: StringListFilter; - /** Filter by the object’s `restrictReads` field. */ - restrictReads?: BooleanFilter; - /** Filter by the object’s `hasPathShares` field. */ - hasPathShares?: BooleanFilter; - /** Filter by the object’s `pathSharesTableId` field. */ - pathSharesTableId?: UUIDFilter; - /** Filter by the object’s `uploadUrlExpirySeconds` field. */ - uploadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `downloadUrlExpirySeconds` field. */ - downloadUrlExpirySeconds?: IntFilter; - /** Filter by the object’s `defaultMaxFileSize` field. */ - defaultMaxFileSize?: BigIntFilter; - /** Filter by the object’s `maxFilenameLength` field. */ - maxFilenameLength?: IntFilter; - /** Filter by the object’s `cacheTtlSeconds` field. */ - cacheTtlSeconds?: IntFilter; - /** Filter by the object’s `maxBulkFiles` field. */ - maxBulkFiles?: IntFilter; - /** Filter by the object’s `maxBulkTotalSize` field. */ - maxBulkTotalSize?: BigIntFilter; - /** Filter by the object’s `hasVersioning` field. */ - hasVersioning?: BooleanFilter; - /** Filter by the object’s `hasContentHash` field. */ - hasContentHash?: BooleanFilter; - /** Filter by the object’s `hasCustomKeys` field. */ - hasCustomKeys?: BooleanFilter; - /** Filter by the object’s `hasAuditLog` field. */ - hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; - /** Filter by the object’s `confirmUploadDelay` field. */ - confirmUploadDelay?: IntervalFilter; - /** Filter by the object’s `fileEventsTableId` field. */ - fileEventsTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; - /** Negates the expression. */ - not?: StorageModuleFilter; - /** Filter by the object’s `bucketsTable` relation. */ - bucketsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `fileEventsTable` relation. */ - fileEventsTable?: TableFilter; - /** A related `fileEventsTable` exists. */ - fileEventsTableExists?: boolean; - /** Filter by the object’s `filesTable` relation. */ - filesTable?: TableFilter; - /** Filter by the object’s `pathSharesTable` relation. */ - pathSharesTable?: TableFilter; - /** A related `pathSharesTable` exists. */ - pathSharesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - 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 `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** 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. */ - 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `WebauthnCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialsModuleFilter { - /** 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; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialsModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ -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[]; - /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; - /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; - /** Filter by the object’s `authSettingsTable` relation. */ - authSettingsTable?: TableFilter; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** 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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `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; - /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; - /** Negates the expression. */ - not?: NotificationsModuleFilter; - /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ - channelsTableByChannelsTableId?: TableFilter; - /** A related `channelsTableByChannelsTableId` exists. */ - channelsTableByChannelsTableIdExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ - deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ - deliveryLogTableByDeliveryLogTableIdExists?: boolean; - /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ - notificationsTableByNotificationsTableId?: TableFilter; - /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ - organizationSettingsTableByOrganizationSettingsTableId?: TableFilter; - /** A related `organizationSettingsTableByOrganizationSettingsTableId` exists. */ - organizationSettingsTableByOrganizationSettingsTableIdExists?: boolean; - /** Filter by the object’s `ownerTable` relation. */ - ownerTable?: TableFilter; - /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ - preferencesTableByPreferencesTableId?: TableFilter; - /** A related `preferencesTableByPreferencesTableId` exists. */ - preferencesTableByPreferencesTableIdExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ - readStateTableByReadStateTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ - userSettingsTableByUserSettingsTableId?: TableFilter; - /** A related `userSettingsTableByUserSettingsTableId` exists. */ - userSettingsTableByUserSettingsTableIdExists?: boolean; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; - /** Filter by the object’s `changeLogTable` relation. */ - changeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `listenerNodeTable` relation. */ - listenerNodeTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sourceRegistryTable` relation. */ - sourceRegistryTable?: TableFilter; - /** Filter by the object’s `subscriptionsSchema` relation. */ - subscriptionsSchema?: SchemaFilter; -} -/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; -} -/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface InferenceLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; - /** Negates the expression. */ - not?: InferenceLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `inferenceLogTable` relation. */ - inferenceLogTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ComputeLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; - /** Negates the expression. */ - not?: ComputeLogModuleFilter; - /** Filter by the object’s `computeLogTable` relation. */ - computeLogTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TransferLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; - /** Negates the expression. */ - not?: TransferLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `transferLogTable` relation. */ - transferLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageLogModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; - /** Negates the expression. */ - not?: StorageLogModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storageLogTable` relation. */ - storageLogTable?: TableFilter; - /** Filter by the object’s `usageDailyTable` relation. */ - usageDailyTable?: TableFilter; -} -/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; - /** Negates the expression. */ - not?: DbUsageModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `queryStatsDailyTable` relation. */ - queryStatsDailyTable?: TableFilter; - /** Filter by the object’s `queryStatsLogTable` relation. */ - queryStatsLogTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `tableStatsDailyTable` relation. */ - tableStatsDailyTable?: TableFilter; - /** Filter by the object’s `tableStatsLogTable` relation. */ - tableStatsLogTable?: TableFilter; -} -/** A filter to be used against `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 `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** 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 `knowledgeTableId` field. */ - knowledgeTableId?: UUIDFilter; - /** Filter by the object’s `threadTableName` field. */ - threadTableName?: StringFilter; - /** Filter by the object’s `messageTableName` field. */ - messageTableName?: StringFilter; - /** Filter by the object’s `taskTableName` field. */ - taskTableName?: StringFilter; - /** Filter by the object’s `promptsTableName` field. */ - promptsTableName?: StringFilter; - /** Filter by the object’s `knowledgeTableName` field. */ - knowledgeTableName?: StringFilter; - /** Filter by the object’s `hasKnowledge` field. */ - hasKnowledge?: BooleanFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `knowledgeConfig` field. */ - knowledgeConfig?: JSONFilter; - /** Filter by the object’s `knowledgePolicies` field. */ - knowledgePolicies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentModuleFilter[]; - /** Negates the expression. */ - not?: AgentModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `knowledgeTable` relation. */ - knowledgeTable?: TableFilter; - /** A related `knowledgeTable` exists. */ - knowledgeTableExists?: boolean; - /** Filter by the object’s `messageTable` relation. */ - messageTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `promptsTable` relation. */ - promptsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `taskTable` relation. */ - taskTable?: TableFilter; - /** Filter by the object’s `threadTable` relation. */ - threadTable?: TableFilter; -} -/** A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `scopeField` field. */ - scopeField?: 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 `commitTable` relation. */ - commitTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `objectTable` relation. */ - objectTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `refTable` relation. */ - refTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `storeTable` relation. */ - storeTable?: TableFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; -} -/** A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -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 `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 `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 `executionsTableId` field. */ - executionsTableId?: UUIDFilter; - /** Filter by the object’s `outputsTableId` field. */ - outputsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scopeField` field. */ - scopeField?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** 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?: GraphModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; - /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `executionsTable` relation. */ - executionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `graphsTable` relation. */ - graphsTable?: TableFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; - /** Filter by the object’s `outputsTable` relation. */ - outputsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `publicSchema` relation. */ - publicSchema?: SchemaFilter; -} -/** 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 `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `namespaceEventsTable` relation. */ - namespaceEventsTable?: TableFilter; - /** Filter by the object’s `namespacesTable` relation. */ - namespacesTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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 `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 `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `membershipType` field. */ - membershipType?: IntFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `key` field. */ - key?: 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?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; - /** Filter by the object’s `configDefinitionsTable` relation. */ - configDefinitionsTable?: TableFilter; - /** Filter by the object’s `configRequirementsTable` relation. */ - configRequirementsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `definitionsTable` relation. */ - definitionsTable?: TableFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** A related `entityTable` exists. */ - entityTableExists?: boolean; - /** Filter by the object’s `executionLogsTable` relation. */ - executionLogsTable?: TableFilter; - /** Filter by the object’s `invocationsTable` relation. */ - invocationsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `requirementsTable` relation. */ - requirementsTable?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `secretDefinitionsTable` relation. */ - secretDefinitionsTable?: TableFilter; -} -/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseProvisionModuleFilter { - /** Filter by the object’s `id` field. */ - 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?: StringListFilter; - /** 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; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** A related `database` exists. */ - databaseExists?: boolean; -} -/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ -export interface ViewTableFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `viewId` field. */ - viewId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `joinOrder` field. */ - joinOrder?: IntFilter; - /** Checks for all expressions in this list. */ - and?: ViewTableFilter[]; - /** Checks for any expressions in this list. */ - or?: ViewTableFilter[]; - /** Negates the expression. */ - not?: ViewTableFilter; - /** Filter by the object’s `table` relation. */ - table?: TableFilter; - /** Filter by the object’s `view` relation. */ - view?: ViewFilter; -} -/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `version` field. */ - version?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `visibility` field. */ - visibility?: StringFilter; - /** Filter by the object’s `categories` field. */ - categories?: StringListFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `definition` field. */ - definition?: JSONFilter; - /** Filter by the object’s `definitionSchemaVersion` field. */ - definitionSchemaVersion?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `complexity` field. */ - complexity?: StringFilter; - /** Filter by the object’s `copyCount` field. */ - copyCount?: IntFilter; - /** Filter by the object’s `forkCount` field. */ - forkCount?: IntFilter; - /** Filter by the object’s `forkedFromId` field. */ - forkedFromId?: UUIDFilter; - /** Filter by the object’s `definitionHash` field. */ - definitionHash?: UUIDFilter; - /** Filter by the object’s `tableHashes` field. */ - tableHashes?: JSONFilter; - /** 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?: BlueprintTemplateFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintTemplateFilter[]; - /** Negates the expression. */ - not?: BlueprintTemplateFilter; - /** Filter by the object’s `forkedFrom` relation. */ - forkedFrom?: BlueprintTemplateFilter; - /** A related `forkedFrom` exists. */ - forkedFromExists?: boolean; - /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ - blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; - /** `blueprintTemplatesByForkedFromId` exist. */ - blueprintTemplatesByForkedFromIdExist?: boolean; - /** Filter by the object’s `blueprintsByTemplateId` relation. */ - blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; - /** `blueprintsByTemplateId` exist. */ - blueprintsByTemplateIdExist?: boolean; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCreditFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCreditFilter[]; - /** Negates the expression. */ - not?: OrgLimitCreditFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: OrgLimitDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `schemaHash` field. */ - schemaHash?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** 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?: DatabaseFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseFilter[]; - /** Negates the expression. */ - not?: DatabaseFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** Filter by the object’s `schemas` relation. */ - schemas?: DatabaseToManySchemaFilter; - /** `schemas` exist. */ - schemasExist?: boolean; - /** Filter by the object’s `tables` relation. */ - tables?: DatabaseToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `checkConstraints` relation. */ - checkConstraints?: DatabaseToManyCheckConstraintFilter; - /** `checkConstraints` exist. */ - checkConstraintsExist?: boolean; - /** Filter by the object’s `fields` relation. */ - fields?: DatabaseToManyFieldFilter; - /** `fields` exist. */ - fieldsExist?: boolean; - /** Filter by the object’s `foreignKeyConstraints` relation. */ - foreignKeyConstraints?: DatabaseToManyForeignKeyConstraintFilter; - /** `foreignKeyConstraints` exist. */ - foreignKeyConstraintsExist?: boolean; - /** Filter by the object’s `fullTextSearches` relation. */ - fullTextSearches?: DatabaseToManyFullTextSearchFilter; - /** `fullTextSearches` exist. */ - fullTextSearchesExist?: boolean; - /** Filter by the object’s `indices` relation. */ - indices?: DatabaseToManyIndexFilter; - /** `indices` exist. */ - indicesExist?: boolean; - /** Filter by the object’s `policies` relation. */ - policies?: DatabaseToManyPolicyFilter; - /** `policies` exist. */ - policiesExist?: boolean; - /** Filter by the object’s `primaryKeyConstraints` relation. */ - primaryKeyConstraints?: DatabaseToManyPrimaryKeyConstraintFilter; - /** `primaryKeyConstraints` exist. */ - primaryKeyConstraintsExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: DatabaseToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `tableGrants` relation. */ - tableGrants?: DatabaseToManyTableGrantFilter; - /** `tableGrants` exist. */ - tableGrantsExist?: boolean; - /** Filter by the object’s `triggerFunctions` relation. */ - triggerFunctions?: DatabaseToManyTriggerFunctionFilter; - /** `triggerFunctions` exist. */ - triggerFunctionsExist?: boolean; - /** Filter by the object’s `triggers` relation. */ - triggers?: DatabaseToManyTriggerFilter; - /** `triggers` exist. */ - triggersExist?: boolean; - /** Filter by the object’s `uniqueConstraints` relation. */ - uniqueConstraints?: DatabaseToManyUniqueConstraintFilter; - /** `uniqueConstraints` exist. */ - uniqueConstraintsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: DatabaseToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `viewGrants` relation. */ - viewGrants?: DatabaseToManyViewGrantFilter; - /** `viewGrants` exist. */ - viewGrantsExist?: boolean; - /** Filter by the object’s `viewRules` relation. */ - viewRules?: DatabaseToManyViewRuleFilter; - /** `viewRules` exist. */ - viewRulesExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `enums` relation. */ - enums?: DatabaseToManyEnumFilter; - /** `enums` exist. */ - enumsExist?: boolean; - /** Filter by the object’s `embeddingChunks` relation. */ - embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; - /** `embeddingChunks` exist. */ - embeddingChunksExist?: boolean; - /** Filter by the object’s `spatialRelations` relation. */ - spatialRelations?: DatabaseToManySpatialRelationFilter; - /** `spatialRelations` exist. */ - spatialRelationsExist?: boolean; - /** Filter by the object’s `functions` relation. */ - functions?: DatabaseToManyFunctionFilter; - /** `functions` exist. */ - functionsExist?: boolean; - /** Filter by the object’s `partitions` relation. */ - partitions?: DatabaseToManyPartitionFilter; - /** `partitions` exist. */ - partitionsExist?: boolean; - /** Filter by the object’s `databaseTransfers` relation. */ - databaseTransfers?: DatabaseToManyDatabaseTransferFilter; - /** `databaseTransfers` exist. */ - databaseTransfersExist?: boolean; - /** Filter by the object’s `apis` relation. */ - apis?: DatabaseToManyApiFilter; - /** `apis` exist. */ - apisExist?: boolean; - /** Filter by the object’s `apiModules` relation. */ - apiModules?: DatabaseToManyApiModuleFilter; - /** `apiModules` exist. */ - apiModulesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: DatabaseToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `sites` relation. */ - sites?: DatabaseToManySiteFilter; - /** `sites` exist. */ - sitesExist?: boolean; - /** Filter by the object’s `apps` relation. */ - apps?: DatabaseToManyAppFilter; - /** `apps` exist. */ - appsExist?: boolean; - /** Filter by the object’s `domains` relation. */ - domains?: DatabaseToManyDomainFilter; - /** `domains` exist. */ - domainsExist?: boolean; - /** Filter by the object’s `siteMetadata` relation. */ - siteMetadata?: DatabaseToManySiteMetadatumFilter; - /** `siteMetadata` exist. */ - siteMetadataExist?: boolean; - /** Filter by the object’s `siteModules` relation. */ - siteModules?: DatabaseToManySiteModuleFilter; - /** `siteModules` exist. */ - siteModulesExist?: boolean; - /** Filter by the object’s `siteThemes` relation. */ - siteThemes?: DatabaseToManySiteThemeFilter; - /** `siteThemes` exist. */ - siteThemesExist?: boolean; - /** Filter by the object’s `databaseSetting` relation. */ - databaseSetting?: DatabaseSettingFilter; - /** A related `databaseSetting` exists. */ - databaseSettingExists?: boolean; - /** Filter by the object’s `apiSettings` relation. */ - apiSettings?: DatabaseToManyApiSettingFilter; - /** `apiSettings` exist. */ - apiSettingsExist?: boolean; - /** Filter by the object’s `rlsSetting` relation. */ - rlsSetting?: RlsSettingFilter; - /** A related `rlsSetting` exists. */ - rlsSettingExists?: boolean; - /** Filter by the object’s `corsSettings` relation. */ - corsSettings?: DatabaseToManyCorsSettingFilter; - /** `corsSettings` exist. */ - corsSettingsExist?: boolean; - /** Filter by the object’s `pubkeySetting` relation. */ - pubkeySetting?: PubkeySettingFilter; - /** A related `pubkeySetting` exists. */ - pubkeySettingExists?: boolean; - /** Filter by the object’s `webauthnSetting` relation. */ - webauthnSetting?: WebauthnSettingFilter; - /** A related `webauthnSetting` exists. */ - webauthnSettingExists?: boolean; - /** Filter by the object’s `connectedAccountsModules` relation. */ - connectedAccountsModules?: DatabaseToManyConnectedAccountsModuleFilter; - /** `connectedAccountsModules` exist. */ - connectedAccountsModulesExist?: boolean; - /** Filter by the object’s `cryptoAddressesModules` relation. */ - cryptoAddressesModules?: DatabaseToManyCryptoAddressesModuleFilter; - /** `cryptoAddressesModules` exist. */ - cryptoAddressesModulesExist?: boolean; - /** Filter by the object’s `cryptoAuthModules` relation. */ - cryptoAuthModules?: DatabaseToManyCryptoAuthModuleFilter; - /** `cryptoAuthModules` exist. */ - cryptoAuthModulesExist?: boolean; - /** Filter by the object’s `defaultIdsModules` relation. */ - defaultIdsModules?: DatabaseToManyDefaultIdsModuleFilter; - /** `defaultIdsModules` exist. */ - defaultIdsModulesExist?: boolean; - /** Filter by the object’s `denormalizedTableFields` relation. */ - denormalizedTableFields?: DatabaseToManyDenormalizedTableFieldFilter; - /** `denormalizedTableFields` exist. */ - denormalizedTableFieldsExist?: boolean; - /** Filter by the object’s `emailsModules` relation. */ - emailsModules?: DatabaseToManyEmailsModuleFilter; - /** `emailsModules` exist. */ - emailsModulesExist?: boolean; - /** Filter by the object’s `configSecretsUserModules` relation. */ - configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; - /** `configSecretsUserModules` exist. */ - configSecretsUserModulesExist?: boolean; - /** Filter by the object’s `invitesModules` relation. */ - invitesModules?: DatabaseToManyInvitesModuleFilter; - /** `invitesModules` exist. */ - invitesModulesExist?: boolean; - /** Filter by the object’s `eventsModules` relation. */ - eventsModules?: DatabaseToManyEventsModuleFilter; - /** `eventsModules` exist. */ - eventsModulesExist?: boolean; - /** Filter by the object’s `limitsModules` relation. */ - limitsModules?: DatabaseToManyLimitsModuleFilter; - /** `limitsModules` exist. */ - limitsModulesExist?: boolean; - /** Filter by the object’s `membershipTypesModules` relation. */ - membershipTypesModules?: DatabaseToManyMembershipTypesModuleFilter; - /** `membershipTypesModules` exist. */ - membershipTypesModulesExist?: boolean; - /** Filter by the object’s `membershipsModules` relation. */ - membershipsModules?: DatabaseToManyMembershipsModuleFilter; - /** `membershipsModules` exist. */ - membershipsModulesExist?: boolean; - /** Filter by the object’s `permissionsModules` relation. */ - permissionsModules?: DatabaseToManyPermissionsModuleFilter; - /** `permissionsModules` exist. */ - permissionsModulesExist?: boolean; - /** Filter by the object’s `phoneNumbersModules` relation. */ - phoneNumbersModules?: DatabaseToManyPhoneNumbersModuleFilter; - /** `phoneNumbersModules` exist. */ - phoneNumbersModulesExist?: boolean; - /** Filter by the object’s `profilesModules` relation. */ - profilesModules?: DatabaseToManyProfilesModuleFilter; - /** `profilesModules` exist. */ - profilesModulesExist?: boolean; - /** Filter by the object’s `rlsModule` relation. */ - rlsModule?: RlsModuleFilter; - /** A related `rlsModule` exists. */ - rlsModuleExists?: boolean; - /** Filter by the object’s `userStateModules` relation. */ - userStateModules?: DatabaseToManyUserStateModuleFilter; - /** `userStateModules` exist. */ - userStateModulesExist?: boolean; - /** Filter by the object’s `sessionsModules` relation. */ - sessionsModules?: DatabaseToManySessionsModuleFilter; - /** `sessionsModules` exist. */ - sessionsModulesExist?: boolean; - /** Filter by the object’s `userAuthModules` relation. */ - userAuthModules?: DatabaseToManyUserAuthModuleFilter; - /** `userAuthModules` exist. */ - userAuthModulesExist?: boolean; - /** Filter by the object’s `usersModules` relation. */ - usersModules?: DatabaseToManyUsersModuleFilter; - /** `usersModules` exist. */ - usersModulesExist?: boolean; - /** Filter by the object’s `hierarchyModule` relation. */ - hierarchyModule?: HierarchyModuleFilter; - /** A related `hierarchyModule` exists. */ - hierarchyModuleExists?: boolean; - /** Filter by the object’s `secureTableProvisions` relation. */ - secureTableProvisions?: DatabaseToManySecureTableProvisionFilter; - /** `secureTableProvisions` exist. */ - secureTableProvisionsExist?: boolean; - /** Filter by the object’s `relationProvisions` relation. */ - relationProvisions?: DatabaseToManyRelationProvisionFilter; - /** `relationProvisions` exist. */ - relationProvisionsExist?: boolean; - /** Filter by the object’s `blueprints` relation. */ - blueprints?: DatabaseToManyBlueprintFilter; - /** `blueprints` exist. */ - blueprintsExist?: boolean; - /** Filter by the object’s `blueprintConstructions` relation. */ - blueprintConstructions?: DatabaseToManyBlueprintConstructionFilter; - /** `blueprintConstructions` exist. */ - blueprintConstructionsExist?: boolean; - /** Filter by the object’s `storageModules` relation. */ - storageModules?: DatabaseToManyStorageModuleFilter; - /** `storageModules` exist. */ - storageModulesExist?: boolean; - /** Filter by the object’s `entityTypeProvisions` relation. */ - entityTypeProvisions?: DatabaseToManyEntityTypeProvisionFilter; - /** `entityTypeProvisions` exist. */ - entityTypeProvisionsExist?: boolean; - /** Filter by the object’s `rateLimitsModule` relation. */ - rateLimitsModule?: RateLimitsModuleFilter; - /** A related `rateLimitsModule` exists. */ - rateLimitsModuleExists?: boolean; - /** Filter by the object’s `devicesModule` relation. */ - devicesModule?: DevicesModuleFilter; - /** A related `devicesModule` exists. */ - devicesModuleExists?: boolean; - /** Filter by the object’s `sessionSecretsModules` relation. */ - sessionSecretsModules?: DatabaseToManySessionSecretsModuleFilter; - /** `sessionSecretsModules` exist. */ - sessionSecretsModulesExist?: boolean; - /** Filter by the object’s `webauthnCredentialsModules` relation. */ - webauthnCredentialsModules?: DatabaseToManyWebauthnCredentialsModuleFilter; - /** `webauthnCredentialsModules` exist. */ - webauthnCredentialsModulesExist?: boolean; - /** Filter by the object’s `webauthnAuthModules` relation. */ - webauthnAuthModules?: DatabaseToManyWebauthnAuthModuleFilter; - /** `webauthnAuthModules` exist. */ - webauthnAuthModulesExist?: boolean; - /** Filter by the object’s `identityProvidersModules` relation. */ - identityProvidersModules?: DatabaseToManyIdentityProvidersModuleFilter; - /** `identityProvidersModules` exist. */ - identityProvidersModulesExist?: boolean; - /** Filter by the object’s `notificationsModules` relation. */ - notificationsModules?: DatabaseToManyNotificationsModuleFilter; - /** `notificationsModules` exist. */ - notificationsModulesExist?: boolean; - /** Filter by the object’s `plansModule` relation. */ - plansModule?: PlansModuleFilter; - /** A related `plansModule` exists. */ - plansModuleExists?: boolean; - /** Filter by the object’s `billingModule` relation. */ - billingModule?: BillingModuleFilter; - /** A related `billingModule` exists. */ - billingModuleExists?: boolean; - /** Filter by the object’s `billingProviderModule` relation. */ - billingProviderModule?: BillingProviderModuleFilter; - /** A related `billingProviderModule` exists. */ - billingProviderModuleExists?: boolean; - /** Filter by the object’s `realtimeModules` relation. */ - realtimeModules?: DatabaseToManyRealtimeModuleFilter; - /** `realtimeModules` exist. */ - realtimeModulesExist?: boolean; - /** Filter by the object’s `rateLimitMetersModule` relation. */ - rateLimitMetersModule?: RateLimitMetersModuleFilter; - /** A related `rateLimitMetersModule` exists. */ - rateLimitMetersModuleExists?: boolean; - /** Filter by the object’s `configSecretsOrgModules` relation. */ - configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; - /** `configSecretsOrgModules` exist. */ - configSecretsOrgModulesExist?: boolean; - /** Filter by the object’s `inferenceLogModules` relation. */ - inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; - /** `inferenceLogModules` exist. */ - inferenceLogModulesExist?: boolean; - /** Filter by the object’s `computeLogModules` relation. */ - computeLogModules?: DatabaseToManyComputeLogModuleFilter; - /** `computeLogModules` exist. */ - computeLogModulesExist?: boolean; - /** Filter by the object’s `transferLogModules` relation. */ - transferLogModules?: DatabaseToManyTransferLogModuleFilter; - /** `transferLogModules` exist. */ - transferLogModulesExist?: boolean; - /** Filter by the object’s `storageLogModules` relation. */ - storageLogModules?: DatabaseToManyStorageLogModuleFilter; - /** `storageLogModules` exist. */ - storageLogModulesExist?: boolean; - /** Filter by the object’s `dbUsageModules` relation. */ - dbUsageModules?: DatabaseToManyDbUsageModuleFilter; - /** `dbUsageModules` exist. */ - dbUsageModulesExist?: boolean; - /** Filter by the object’s `agentModules` relation. */ - agentModules?: DatabaseToManyAgentModuleFilter; - /** `agentModules` exist. */ - agentModulesExist?: boolean; - /** Filter by the object’s `merkleStoreModules` relation. */ - merkleStoreModules?: DatabaseToManyMerkleStoreModuleFilter; - /** `merkleStoreModules` exist. */ - merkleStoreModulesExist?: boolean; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: DatabaseToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; - /** Filter by the object’s `namespaceModules` relation. */ - namespaceModules?: DatabaseToManyNamespaceModuleFilter; - /** `namespaceModules` exist. */ - namespaceModulesExist?: boolean; - /** Filter by the object’s `functionModules` relation. */ - functionModules?: DatabaseToManyFunctionModuleFilter; - /** `functionModules` exist. */ - functionModulesExist?: boolean; - /** Filter by the object’s `databaseProvisionModules` relation. */ - databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; - /** `databaseProvisionModules` exist. */ - databaseProvisionModulesExist?: boolean; -} -/** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; - /** Negates the expression. */ - not?: AppAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; - /** Negates the expression. */ - not?: AppOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -/** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberFilter[]; - /** Negates the expression. */ - not?: OrgMemberFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgAdminGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; -} -/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; - /** Filter by the object’s `child` relation. */ - child?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `grantor` relation. */ - grantor?: UserFilter; - /** A related `grantor` exists. */ - grantorExists?: boolean; - /** Filter by the object’s `parent` relation. */ - parent?: UserFilter; - /** A related `parent` exists. */ - parentExists?: boolean; -} -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; - /** Negates the expression. */ - not?: AppLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Filter by the object’s `organizationId` field. */ - organizationId?: UUIDFilter; - /** Filter by the object’s `entityType` field. */ - entityType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitWarningFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; - /** Negates the expression. */ - not?: OrgLimitWarningFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** A related `entity` exists. */ - entityExists?: boolean; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAddressFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: 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?: CryptoAddressFilter[]; - /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; - /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `WebauthnCredential` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnCredentialFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `credentialId` field. */ - credentialId?: StringFilter; - /** Filter by the object’s `publicKey` field. */ - publicKey?: Base64EncodedBinaryFilter; - /** Filter by the object’s `signCount` field. */ - signCount?: BigIntFilter; - /** Filter by the object’s `webauthnUserId` field. */ - webauthnUserId?: StringFilter; - /** Filter by the object’s `transports` field. */ - transports?: StringListFilter; - /** Filter by the object’s `credentialDeviceType` field. */ - credentialDeviceType?: StringFilter; - /** Filter by the object’s `backupEligible` field. */ - backupEligible?: BooleanFilter; - /** Filter by the object’s `backupState` field. */ - backupState?: BooleanFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `lastUsedAt` field. */ - lastUsedAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnCredentialFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnCredentialFilter[]; - /** Negates the expression. */ - not?: WebauthnCredentialFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; - /** Negates the expression. */ - not?: AppClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; - /** Negates the expression. */ - not?: OrgInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; -} -/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; - /** Negates the expression. */ - not?: OrgClaimedInviteFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; -} -/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogAuthFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogAuthFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogAuthFilter[]; - /** Negates the expression. */ - not?: AuditLogAuthFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** A related `actor` exists. */ - actorExists?: boolean; -} -/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** 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; -} -/** A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDListFilter { - /** 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 Float fields. All fields are combined with a logical ‘and.’ */ -export interface FloatFilter { - /** 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; -} -/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ -export interface BigIntFilter { - /** 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; -} -/** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ -export interface UserFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `username` field. */ - username?: StringTrgmFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringTrgmFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `searchTsv` field. */ - searchTsv?: FullTextFilter; - /** Filter by the object’s `type` field. */ - type?: IntFilter; - /** 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?: UserFilter[]; - /** Checks for any expressions in this list. */ - or?: UserFilter[]; - /** Negates the expression. */ - not?: UserFilter; - /** Filter by the object’s `roleType` relation. */ - roleType?: RoleTypeFilter; - /** Filter by the object’s `ownedDatabases` relation. */ - ownedDatabases?: UserToManyDatabaseFilter; - /** `ownedDatabases` exist. */ - ownedDatabasesExist?: boolean; - /** Filter by the object’s `appMembershipByActorId` relation. */ - appMembershipByActorId?: AppMembershipFilter; - /** A related `appMembershipByActorId` exists. */ - appMembershipByActorIdExists?: boolean; - /** Filter by the object’s `appAdminGrantsByActorId` relation. */ - appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByActorId` exist. */ - appAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ - appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; - /** `appAdminGrantsByGrantorId` exist. */ - appAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ - appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByActorId` exist. */ - appOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ - appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; - /** `appOwnerGrantsByGrantorId` exist. */ - appOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `appGrantsByActorId` relation. */ - appGrantsByActorId?: UserToManyAppGrantFilter; - /** `appGrantsByActorId` exist. */ - appGrantsByActorIdExist?: boolean; - /** Filter by the object’s `appGrantsByGrantorId` relation. */ - appGrantsByGrantorId?: UserToManyAppGrantFilter; - /** `appGrantsByGrantorId` exist. */ - appGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByActorId` relation. */ - orgMembershipsByActorId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByActorId` exist. */ - orgMembershipsByActorIdExist?: boolean; - /** Filter by the object’s `orgMembershipsByEntityId` relation. */ - orgMembershipsByEntityId?: UserToManyOrgMembershipFilter; - /** `orgMembershipsByEntityId` exist. */ - orgMembershipsByEntityIdExist?: boolean; - /** Filter by the object’s `orgMembershipDefaultByEntityId` relation. */ - orgMembershipDefaultByEntityId?: OrgMembershipDefaultFilter; - /** A related `orgMembershipDefaultByEntityId` exists. */ - orgMembershipDefaultByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembershipSettingByEntityId` relation. */ - orgMembershipSettingByEntityId?: OrgMembershipSettingFilter; - /** A related `orgMembershipSettingByEntityId` exists. */ - orgMembershipSettingByEntityIdExists?: boolean; - /** Filter by the object’s `orgMembersByActorId` relation. */ - orgMembersByActorId?: UserToManyOrgMemberFilter; - /** `orgMembersByActorId` exist. */ - orgMembersByActorIdExist?: boolean; - /** Filter by the object’s `orgMembersByEntityId` relation. */ - orgMembersByEntityId?: UserToManyOrgMemberFilter; - /** `orgMembersByEntityId` exist. */ - orgMembersByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ - orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByActorId` exist. */ - orgAdminGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ - orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByEntityId` exist. */ - orgAdminGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgAdminGrantsByGrantorId` relation. */ - orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; - /** `orgAdminGrantsByGrantorId` exist. */ - orgAdminGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ - orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByActorId` exist. */ - orgOwnerGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ - orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByEntityId` exist. */ - orgOwnerGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgOwnerGrantsByGrantorId` relation. */ - orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; - /** `orgOwnerGrantsByGrantorId` exist. */ - orgOwnerGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByActorId` relation. */ - orgMemberProfilesByActorId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByActorId` exist. */ - orgMemberProfilesByActorIdExist?: boolean; - /** Filter by the object’s `orgMemberProfilesByEntityId` relation. */ - orgMemberProfilesByEntityId?: UserToManyOrgMemberProfileFilter; - /** `orgMemberProfilesByEntityId` exist. */ - orgMemberProfilesByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByActorId` relation. */ - orgGrantsByActorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByActorId` exist. */ - orgGrantsByActorIdExist?: boolean; - /** Filter by the object’s `orgGrantsByEntityId` relation. */ - orgGrantsByEntityId?: UserToManyOrgGrantFilter; - /** `orgGrantsByEntityId` exist. */ - orgGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgGrantsByGrantorId` relation. */ - orgGrantsByGrantorId?: UserToManyOrgGrantFilter; - /** `orgGrantsByGrantorId` exist. */ - orgGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `parentOrgChartEdges` relation. */ - parentOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `parentOrgChartEdges` exist. */ - parentOrgChartEdgesExist?: boolean; - /** Filter by the object’s `orgChartEdgesByEntityId` relation. */ - orgChartEdgesByEntityId?: UserToManyOrgChartEdgeFilter; - /** `orgChartEdgesByEntityId` exist. */ - orgChartEdgesByEntityIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdges` relation. */ - childOrgChartEdges?: UserToManyOrgChartEdgeFilter; - /** `childOrgChartEdges` exist. */ - childOrgChartEdgesExist?: boolean; - /** Filter by the object’s `parentOrgChartEdgeGrants` relation. */ - parentOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `parentOrgChartEdgeGrants` exist. */ - parentOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByEntityId` relation. */ - orgChartEdgeGrantsByEntityId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByEntityId` exist. */ - orgChartEdgeGrantsByEntityIdExist?: boolean; - /** Filter by the object’s `orgChartEdgeGrantsByGrantorId` relation. */ - orgChartEdgeGrantsByGrantorId?: UserToManyOrgChartEdgeGrantFilter; - /** `orgChartEdgeGrantsByGrantorId` exist. */ - orgChartEdgeGrantsByGrantorIdExist?: boolean; - /** Filter by the object’s `childOrgChartEdgeGrants` relation. */ - childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; - /** `childOrgChartEdgeGrants` exist. */ - childOrgChartEdgeGrantsExist?: boolean; - /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ - orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; - /** `orgPermissionDefaultsByEntityId` exist. */ - orgPermissionDefaultsByEntityIdExist?: boolean; - /** Filter by the object’s `appLimitsByActorId` relation. */ - appLimitsByActorId?: UserToManyAppLimitFilter; - /** `appLimitsByActorId` exist. */ - appLimitsByActorIdExist?: boolean; - /** Filter by the object’s `appLimitCreditsByActorId` relation. */ - appLimitCreditsByActorId?: UserToManyAppLimitCreditFilter; - /** `appLimitCreditsByActorId` exist. */ - appLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByActorId` relation. */ - orgLimitsByActorId?: UserToManyOrgLimitFilter; - /** `orgLimitsByActorId` exist. */ - orgLimitsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitsByEntityId` relation. */ - orgLimitsByEntityId?: UserToManyOrgLimitFilter; - /** `orgLimitsByEntityId` exist. */ - orgLimitsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByActorId` relation. */ - orgLimitCreditsByActorId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByActorId` exist. */ - orgLimitCreditsByActorIdExist?: boolean; - /** Filter by the object’s `orgLimitCreditsByEntityId` relation. */ - orgLimitCreditsByEntityId?: UserToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByEntityId` exist. */ - orgLimitCreditsByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ - orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; - /** `orgLimitAggregatesByEntityId` exist. */ - orgLimitAggregatesByEntityIdExist?: boolean; - /** Filter by the object’s `orgLimitWarningsByEntityId` relation. */ - orgLimitWarningsByEntityId?: UserToManyOrgLimitWarningFilter; - /** `orgLimitWarningsByEntityId` exist. */ - orgLimitWarningsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedEmails` relation. */ - ownedEmails?: UserToManyEmailFilter; - /** `ownedEmails` exist. */ - ownedEmailsExist?: boolean; - /** Filter by the object’s `ownedPhoneNumbers` relation. */ - ownedPhoneNumbers?: UserToManyPhoneNumberFilter; - /** `ownedPhoneNumbers` exist. */ - ownedPhoneNumbersExist?: boolean; - /** Filter by the object’s `ownedCryptoAddresses` relation. */ - ownedCryptoAddresses?: UserToManyCryptoAddressFilter; - /** `ownedCryptoAddresses` exist. */ - ownedCryptoAddressesExist?: boolean; - /** Filter by the object’s `ownedWebauthnCredentials` relation. */ - ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; - /** `ownedWebauthnCredentials` exist. */ - ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `appInvitesBySenderId` relation. */ - appInvitesBySenderId?: UserToManyAppInviteFilter; - /** `appInvitesBySenderId` exist. */ - appInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesByReceiverId` relation. */ - appClaimedInvitesByReceiverId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesByReceiverId` exist. */ - appClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `appClaimedInvitesBySenderId` relation. */ - appClaimedInvitesBySenderId?: UserToManyAppClaimedInviteFilter; - /** `appClaimedInvitesBySenderId` exist. */ - appClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgInvitesByEntityId` relation. */ - orgInvitesByEntityId?: UserToManyOrgInviteFilter; - /** `orgInvitesByEntityId` exist. */ - orgInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgInvitesByReceiverId` relation. */ - orgInvitesByReceiverId?: UserToManyOrgInviteFilter; - /** `orgInvitesByReceiverId` exist. */ - orgInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgInvitesBySenderId` relation. */ - orgInvitesBySenderId?: UserToManyOrgInviteFilter; - /** `orgInvitesBySenderId` exist. */ - orgInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ - orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByEntityId` exist. */ - orgClaimedInvitesByEntityIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ - orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesByReceiverId` exist. */ - orgClaimedInvitesByReceiverIdExist?: boolean; - /** Filter by the object’s `orgClaimedInvitesBySenderId` relation. */ - orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; - /** `orgClaimedInvitesBySenderId` exist. */ - orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogAuthsByActorId` relation. */ - auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; - /** `auditLogAuthsByActorId` exist. */ - auditLogAuthsByActorIdExist?: boolean; - /** TSV search on the `search_tsv` column. */ - tsvSearchTsv?: string; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** - * Composite unified search. Provide a search string and it will be dispatched to - * all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - unifiedSearch?: string; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; - /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ - orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; - /** `orgLimitCreditsByDefaultLimitId` exist. */ - orgLimitCreditsByDefaultLimitIdExist?: boolean; -} -/** A filter to be used against `DatabaseSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `enableBulk` field. */ - enableBulk?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} -/** A filter to be used against `RlsSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface RlsSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `authenticateSchemaId` field. */ - authenticateSchemaId?: UUIDFilter; - /** Filter by the object’s `roleSchemaId` field. */ - roleSchemaId?: UUIDFilter; - /** Filter by the object’s `authenticateFunctionId` field. */ - authenticateFunctionId?: UUIDFilter; - /** Filter by the object’s `authenticateStrictFunctionId` field. */ - authenticateStrictFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleFunctionId` field. */ - currentRoleFunctionId?: UUIDFilter; - /** Filter by the object’s `currentRoleIdFunctionId` field. */ - currentRoleIdFunctionId?: UUIDFilter; - /** Filter by the object’s `currentUserAgentFunctionId` field. */ - currentUserAgentFunctionId?: UUIDFilter; - /** Filter by the object’s `currentIpAddressFunctionId` field. */ - currentIpAddressFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RlsSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsSettingFilter[]; - /** Negates the expression. */ - not?: RlsSettingFilter; - /** Filter by the object’s `authenticateFunction` relation. */ - authenticateFunction?: FunctionFilter; - /** A related `authenticateFunction` exists. */ - authenticateFunctionExists?: boolean; - /** Filter by the object’s `authenticateSchema` relation. */ - authenticateSchema?: SchemaFilter; - /** A related `authenticateSchema` exists. */ - authenticateSchemaExists?: boolean; - /** Filter by the object’s `authenticateStrictFunction` relation. */ - authenticateStrictFunction?: FunctionFilter; - /** A related `authenticateStrictFunction` exists. */ - authenticateStrictFunctionExists?: boolean; - /** Filter by the object’s `currentIpAddressFunction` relation. */ - currentIpAddressFunction?: FunctionFilter; - /** A related `currentIpAddressFunction` exists. */ - currentIpAddressFunctionExists?: boolean; - /** Filter by the object’s `currentRoleFunction` relation. */ - currentRoleFunction?: FunctionFilter; - /** A related `currentRoleFunction` exists. */ - currentRoleFunctionExists?: boolean; - /** Filter by the object’s `currentRoleIdFunction` relation. */ - currentRoleIdFunction?: FunctionFilter; - /** A related `currentRoleIdFunction` exists. */ - currentRoleIdFunctionExists?: boolean; - /** Filter by the object’s `currentUserAgentFunction` relation. */ - currentUserAgentFunction?: FunctionFilter; - /** A related `currentUserAgentFunction` exists. */ - currentUserAgentFunctionExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `roleSchema` relation. */ - roleSchema?: SchemaFilter; - /** A related `roleSchema` exists. */ - roleSchemaExists?: boolean; -} -/** A filter to be used against `PubkeySetting` object types. All fields are combined with a logical ‘and.’ */ -export interface PubkeySettingFilter { - /** 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 `cryptoNetwork` field. */ - cryptoNetwork?: StringFilter; - /** Filter by the object’s `userField` field. */ - userField?: StringFilter; - /** Filter by the object’s `signUpWithKeyFunctionId` field. */ - signUpWithKeyFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRequestChallengeFunctionId` field. */ - signInRequestChallengeFunctionId?: UUIDFilter; - /** Filter by the object’s `signInRecordFailureFunctionId` field. */ - signInRecordFailureFunctionId?: UUIDFilter; - /** Filter by the object’s `signInWithChallengeFunctionId` field. */ - signInWithChallengeFunctionId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: PubkeySettingFilter[]; - /** Checks for any expressions in this list. */ - or?: PubkeySettingFilter[]; - /** Negates the expression. */ - not?: PubkeySettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `signInRecordFailureFunction` relation. */ - signInRecordFailureFunction?: FunctionFilter; - /** A related `signInRecordFailureFunction` exists. */ - signInRecordFailureFunctionExists?: boolean; - /** Filter by the object’s `signInRequestChallengeFunction` relation. */ - signInRequestChallengeFunction?: FunctionFilter; - /** A related `signInRequestChallengeFunction` exists. */ - signInRequestChallengeFunctionExists?: boolean; - /** Filter by the object’s `signInWithChallengeFunction` relation. */ - signInWithChallengeFunction?: FunctionFilter; - /** A related `signInWithChallengeFunction` exists. */ - signInWithChallengeFunctionExists?: boolean; - /** Filter by the object’s `signUpWithKeyFunction` relation. */ - signUpWithKeyFunction?: FunctionFilter; - /** A related `signUpWithKeyFunction` exists. */ - signUpWithKeyFunctionExists?: boolean; -} -/** A filter to be used against `WebauthnSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface WebauthnSettingFilter { - /** 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 `credentialsSchemaId` field. */ - credentialsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionsSchemaId` field. */ - sessionsSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsSchemaId` field. */ - sessionSecretsSchemaId?: 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 `userFieldId` field. */ - userFieldId?: 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 `challengeExpirySeconds` field. */ - challengeExpirySeconds?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: WebauthnSettingFilter[]; - /** Negates the expression. */ - not?: WebauthnSettingFilter; - /** Filter by the object’s `credentialsSchema` relation. */ - credentialsSchema?: SchemaFilter; - /** A related `credentialsSchema` exists. */ - credentialsSchemaExists?: boolean; - /** Filter by the object’s `credentialsTable` relation. */ - credentialsTable?: TableFilter; - /** A related `credentialsTable` exists. */ - credentialsTableExists?: boolean; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** A related `schema` exists. */ - schemaExists?: boolean; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** A related `sessionCredentialsTable` exists. */ - sessionCredentialsTableExists?: boolean; - /** Filter by the object’s `sessionSecretsSchema` relation. */ - sessionSecretsSchema?: SchemaFilter; - /** A related `sessionSecretsSchema` exists. */ - sessionSecretsSchemaExists?: boolean; - /** Filter by the object’s `sessionSecretsTable` relation. */ - sessionSecretsTable?: TableFilter; - /** A related `sessionSecretsTable` exists. */ - sessionSecretsTableExists?: boolean; - /** Filter by the object’s `sessionsSchema` relation. */ - sessionsSchema?: SchemaFilter; - /** A related `sessionsSchema` exists. */ - sessionsSchemaExists?: boolean; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** A related `sessionsTable` exists. */ - sessionsTableExists?: boolean; - /** Filter by the object’s `userField` relation. */ - userField?: FieldFilter; - /** A related `userField` exists. */ - userFieldExists?: boolean; -} -/** 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. */ - 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; - /** Checks for all expressions in this list. */ - and?: RlsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RlsModuleFilter[]; - /** Negates the expression. */ - not?: RlsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `sessionCredentialsTable` relation. */ - sessionCredentialsTable?: TableFilter; - /** Filter by the object’s `sessionsTable` relation. */ - sessionsTable?: TableFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ -export interface HierarchyModuleFilter { - /** 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 `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 `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 `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; - /** Filter by the object’s `chartEdgeGrantsTable` relation. */ - chartEdgeGrantsTable?: TableFilter; - /** Filter by the object’s `chartEdgesTable` relation. */ - chartEdgesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `entityTable` relation. */ - entityTable?: TableFilter; - /** Filter by the object’s `hierarchySprtTable` relation. */ - hierarchySprtTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `usersTable` relation. */ - usersTable?: TableFilter; -} -/** A filter to be used against `RateLimitsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitsModuleFilter { - /** 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 `rateLimitSettingsTableId` field. */ - rateLimitSettingsTableId?: UUIDFilter; - /** Filter by the object’s `ipRateLimitsTableId` field. */ - ipRateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitsTableId` field. */ - rateLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitSettingsTable` field. */ - rateLimitSettingsTable?: StringFilter; - /** Filter by the object’s `ipRateLimitsTable` field. */ - ipRateLimitsTable?: StringFilter; - /** Filter by the object’s `rateLimitsTable` field. */ - rateLimitsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitsModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitsModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ipRateLimitsTableByIpRateLimitsTableId` relation. */ - ipRateLimitsTableByIpRateLimitsTableId?: TableFilter; - /** Filter by the object’s `rateLimitSettingsTableByRateLimitSettingsTableId` relation. */ - rateLimitSettingsTableByRateLimitSettingsTableId?: TableFilter; - /** Filter by the object’s `rateLimitsTableByRateLimitsTableId` relation. */ - rateLimitsTableByRateLimitsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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. */ - 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 `userDevicesTableId` field. */ - userDevicesTableId?: UUIDFilter; - /** Filter by the object’s `deviceSettingsTableId` field. */ - deviceSettingsTableId?: UUIDFilter; - /** Filter by the object’s `userDevicesTable` field. */ - userDevicesTable?: StringFilter; - /** Filter by the object’s `deviceSettingsTable` field. */ - deviceSettingsTable?: StringFilter; - /** Checks for all expressions in this list. */ - and?: DevicesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DevicesModuleFilter[]; - /** Negates the expression. */ - not?: DevicesModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `deviceSettingsTableByDeviceSettingsTableId` relation. */ - deviceSettingsTableByDeviceSettingsTableId?: TableFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ - userDevicesTableByUserDevicesTableId?: TableFilter; -} -/** 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 `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 `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `planLimitsTable` relation. */ - planLimitsTable?: TableFilter; - /** Filter by the object’s `planOverridesTable` relation. */ - planOverridesTable?: TableFilter; - /** A related `planOverridesTable` exists. */ - planOverridesTableExists?: boolean; - /** Filter by the object’s `planPricingTable` relation. */ - planPricingTable?: TableFilter; - /** A related `planPricingTable` exists. */ - planPricingTableExists?: boolean; - /** Filter by the object’s `plansTable` relation. */ - plansTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; - /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `meterCreditsTable` relation. */ - meterCreditsTable?: TableFilter; - /** Filter by the object’s `meterSourcesTable` relation. */ - meterSourcesTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** 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; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; - /** Filter by the object’s `billingCustomersTable` relation. */ - billingCustomersTable?: TableFilter; - /** Filter by the object’s `billingPricesTable` relation. */ - billingPricesTable?: TableFilter; - /** Filter by the object’s `billingProductsTable` relation. */ - billingProductsTable?: TableFilter; - /** Filter by the object’s `billingSubscriptionsTable` relation. */ - billingSubscriptionsTable?: TableFilter; - /** Filter by the object’s `billingWebhookEventsTable` relation. */ - billingWebhookEventsTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `pricesTable` relation. */ - pricesTable?: TableFilter; - /** A related `pricesTable` exists. */ - pricesTableExists?: boolean; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitMetersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; -} -/** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ -export interface BitStringFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - 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; -} -/** A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ */ -export interface InternetAddressFilter { - /** 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 internet address. */ - contains?: string; - /** Contains or equal to the specified internet address. */ - containsOrEqualTo?: string; - /** Contained by the specified internet address. */ - containedBy?: string; - /** Contained by or equal to the specified internet address. */ - containedByOrEqualTo?: string; - /** Contains or contained by the specified internet address. */ - containsOrContainedBy?: string; -} -/** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */ -export interface FullTextFilter { - /** 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[]; - /** Performs a full text search on the field. */ - matches?: string; -} -/** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; -} -/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A connection to a list of `AppPermission` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type AppPermissionConnectionSelect = { - nodes?: { - select: AppPermissionSelect; - }; - edges?: { - select: AppPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -/** A connection to a list of `OrgPermission` values. */ -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type OrgPermissionConnectionSelect = { - nodes?: { - select: OrgPermissionSelect; - }; - edges?: { - select: OrgPermissionEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; -export interface SendAccountDeletionEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendAccountDeletionEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SignOutPayload { - clientMutationId?: string | null; -} -export type SignOutPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AcceptDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type AcceptDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CancelDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type CancelDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RejectDatabaseTransferPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RejectDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface DisconnectAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type DisconnectAccountPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RevokeApiKeyPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RevokeApiKeyPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface RevokeSessionPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type RevokeSessionPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyTotpPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyTotpPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitAppInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitAppInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SubmitOrgInviteCodePayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SubmitOrgInviteCodePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CheckPasswordPayload { - clientMutationId?: string | null; -} -export type CheckPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ConfirmDeleteAccountPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type ConfirmDeleteAccountPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SetPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface VerifyEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type VerifyEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ConstructBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ConstructBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionNewUserPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionNewUserPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ResetPasswordPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type ResetPasswordPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionCheckConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionCheckConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionUniqueConstraintPayload { - clientMutationId?: string | null; -} -export type ProvisionUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionFullTextSearchPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionIndexPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionIndexPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface CopyTemplateToBlueprintPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CopyTemplateToBlueprintPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionSpatialRelationPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type ProvisionSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} -export type BootstrapUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; -}; -export interface SignUpPayload { - clientMutationId?: string | null; - result?: SignUpRecord | null; -} -export type SignUpPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignUpRecordSelect; - }; -}; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionRelationPayload { - clientMutationId?: string | null; - result?: ProvisionRelationRecord[] | null; -} -export type ProvisionRelationPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionRelationRecordSelect; - }; -}; -export interface SetFieldOrderPayload { - clientMutationId?: string | null; -} -export type SetFieldOrderPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ApplyRlsPayload { - clientMutationId?: string | null; -} -export type ApplyRlsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export type ProvisionDatabaseWithUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionDatabaseWithUserRecordSelect; - }; -}; -export interface CreateUserDatabasePayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateUserDatabasePayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ExtendTokenExpiresPayload { - clientMutationId?: string | null; - result?: ExtendTokenExpiresRecord[] | null; -} -export type ExtendTokenExpiresPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ExtendTokenExpiresRecordSelect; - }; -}; -export interface CreateApiKeyPayload { - clientMutationId?: string | null; - result?: CreateApiKeyRecord | null; -} -export type CreateApiKeyPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: CreateApiKeyRecordSelect; - }; -}; -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RequestCrossOriginTokenPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ProvisionTablePayload { - clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; -} -export type ProvisionTablePayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; -}; -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendVerificationEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: 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 CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type CreateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type UpdateAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export type DeleteAppPermissionPayloadSelect = { - clientMutationId?: boolean; - appPermission?: { - select: AppPermissionSelect; - }; - appPermissionEdge?: { - select: AppPermissionEdgeSelect; - }; -}; -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type CreateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type UpdateOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export type DeleteOrgPermissionPayloadSelect = { - clientMutationId?: boolean; - orgPermission?: { - select: OrgPermissionSelect; - }; - orgPermissionEdge?: { - select: OrgPermissionEdgeSelect; - }; -}; -export interface CreateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was created by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type CreateDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface UpdateDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was updated by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type UpdateDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface DeleteDatabasePayload { - clientMutationId?: string | null; - /** The `Database` that was deleted by this mutation. */ - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export type DeleteDatabasePayloadSelect = { - clientMutationId?: boolean; - database?: { - select: DatabaseSelect; - }; - databaseEdge?: { - select: DatabaseEdgeSelect; - }; -}; -export interface CreateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was created by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type CreateSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was updated by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type UpdateSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was deleted by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export type DeleteSchemaPayloadSelect = { - clientMutationId?: boolean; - schema?: { - select: SchemaSelect; - }; - schemaEdge?: { - select: SchemaEdgeSelect; - }; -}; -export interface CreateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was created by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type CreateTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface UpdateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was updated by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type UpdateTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface DeleteTablePayload { - clientMutationId?: string | null; - /** The `Table` that was deleted by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} -export type DeleteTablePayloadSelect = { - clientMutationId?: boolean; - table?: { - select: TableSelect; - }; - tableEdge?: { - select: TableEdgeSelect; - }; -}; -export interface CreateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was created by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type CreateCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface UpdateCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was updated by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type UpdateCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface DeleteCheckConstraintPayload { - clientMutationId?: string | null; - /** The `CheckConstraint` that was deleted by this mutation. */ - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export type DeleteCheckConstraintPayloadSelect = { - clientMutationId?: boolean; - checkConstraint?: { - select: CheckConstraintSelect; - }; - checkConstraintEdge?: { - select: CheckConstraintEdgeSelect; - }; -}; -export interface CreateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was created by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type CreateFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface UpdateFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was updated by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type UpdateFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface DeleteFieldPayload { - clientMutationId?: string | null; - /** The `Field` that was deleted by this mutation. */ - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export type DeleteFieldPayloadSelect = { - clientMutationId?: boolean; - field?: { - select: FieldSelect; - }; - fieldEdge?: { - select: FieldEdgeSelect; - }; -}; -export interface CreateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was created by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type CreateSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface UpdateSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was updated by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type UpdateSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface DeleteSpatialRelationPayload { - clientMutationId?: string | null; - /** The `SpatialRelation` that was deleted by this mutation. */ - spatialRelation?: SpatialRelation | null; - spatialRelationEdge?: SpatialRelationEdge | null; -} -export type DeleteSpatialRelationPayloadSelect = { - clientMutationId?: boolean; - spatialRelation?: { - select: SpatialRelationSelect; - }; - spatialRelationEdge?: { - select: SpatialRelationEdgeSelect; - }; -}; -export interface CreateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was created by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type CreateForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface UpdateForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was updated by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type UpdateForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface DeleteForeignKeyConstraintPayload { - clientMutationId?: string | null; - /** The `ForeignKeyConstraint` that was deleted by this mutation. */ - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export type DeleteForeignKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - foreignKeyConstraint?: { - select: ForeignKeyConstraintSelect; - }; - foreignKeyConstraintEdge?: { - select: ForeignKeyConstraintEdgeSelect; - }; -}; -export interface CreateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was created by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type CreateFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface UpdateFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was updated by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type UpdateFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface DeleteFullTextSearchPayload { - clientMutationId?: string | null; - /** The `FullTextSearch` that was deleted by this mutation. */ - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export type DeleteFullTextSearchPayloadSelect = { - clientMutationId?: boolean; - fullTextSearch?: { - select: FullTextSearchSelect; - }; - fullTextSearchEdge?: { - select: FullTextSearchEdgeSelect; - }; -}; -export interface CreateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was created by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type CreateIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface UpdateIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was updated by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type UpdateIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface DeleteIndexPayload { - clientMutationId?: string | null; - /** The `Index` that was deleted by this mutation. */ - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export type DeleteIndexPayloadSelect = { - clientMutationId?: boolean; - index?: { - select: IndexSelect; - }; - indexEdge?: { - select: IndexEdgeSelect; - }; -}; -export interface CreatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was created by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type CreatePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface UpdatePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was updated by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type UpdatePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface DeletePolicyPayload { - clientMutationId?: string | null; - /** The `Policy` that was deleted by this mutation. */ - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export type DeletePolicyPayloadSelect = { - clientMutationId?: boolean; - policy?: { - select: PolicySelect; - }; - policyEdge?: { - select: PolicyEdgeSelect; - }; -}; -export interface CreatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was created by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type CreatePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface UpdatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was updated by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type UpdatePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface DeletePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export type DeletePrimaryKeyConstraintPayloadSelect = { - clientMutationId?: boolean; - primaryKeyConstraint?: { - select: PrimaryKeyConstraintSelect; - }; - primaryKeyConstraintEdge?: { - select: PrimaryKeyConstraintEdgeSelect; - }; -}; -export interface CreateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was created by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type CreateTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface UpdateTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was updated by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type UpdateTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface DeleteTableGrantPayload { - clientMutationId?: string | null; - /** The `TableGrant` that was deleted by this mutation. */ - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export type DeleteTableGrantPayloadSelect = { - clientMutationId?: boolean; - tableGrant?: { - select: TableGrantSelect; - }; - tableGrantEdge?: { - select: TableGrantEdgeSelect; - }; -}; -export interface CreateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was created by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type CreateTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface UpdateTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was updated by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type UpdateTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface DeleteTriggerPayload { - clientMutationId?: string | null; - /** The `Trigger` that was deleted by this mutation. */ - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export type DeleteTriggerPayloadSelect = { - clientMutationId?: boolean; - trigger?: { - select: TriggerSelect; - }; - triggerEdge?: { - select: TriggerEdgeSelect; - }; -}; -export interface CreateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was created by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type CreateUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface UpdateUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was updated by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type UpdateUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface DeleteUniqueConstraintPayload { - clientMutationId?: string | null; - /** The `UniqueConstraint` that was deleted by this mutation. */ - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export type DeleteUniqueConstraintPayloadSelect = { - clientMutationId?: boolean; - uniqueConstraint?: { - select: UniqueConstraintSelect; - }; - uniqueConstraintEdge?: { - select: UniqueConstraintEdgeSelect; - }; -}; -export interface CreateViewPayload { - clientMutationId?: string | null; - /** The `View` that was created by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type CreateViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface UpdateViewPayload { - clientMutationId?: string | null; - /** The `View` that was updated by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type UpdateViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface DeleteViewPayload { - clientMutationId?: string | null; - /** The `View` that was deleted by this mutation. */ - view?: View | null; - viewEdge?: ViewEdge | null; -} -export type DeleteViewPayloadSelect = { - clientMutationId?: boolean; - view?: { - select: ViewSelect; - }; - viewEdge?: { - select: ViewEdgeSelect; - }; -}; -export interface CreateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was created by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type CreateViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface UpdateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was updated by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type UpdateViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface DeleteViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was deleted by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export type DeleteViewTablePayloadSelect = { - clientMutationId?: boolean; - viewTable?: { - select: ViewTableSelect; - }; - viewTableEdge?: { - select: ViewTableEdgeSelect; - }; -}; -export interface CreateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was created by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type CreateViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface UpdateViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was updated by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type UpdateViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface DeleteViewGrantPayload { - clientMutationId?: string | null; - /** The `ViewGrant` that was deleted by this mutation. */ - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export type DeleteViewGrantPayloadSelect = { - clientMutationId?: boolean; - viewGrant?: { - select: ViewGrantSelect; - }; - viewGrantEdge?: { - select: ViewGrantEdgeSelect; - }; -}; -export interface CreateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was created by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type CreateViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface UpdateViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was updated by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type UpdateViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface DeleteViewRulePayload { - clientMutationId?: string | null; - /** The `ViewRule` that was deleted by this mutation. */ - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export type DeleteViewRulePayloadSelect = { - clientMutationId?: boolean; - viewRule?: { - select: ViewRuleSelect; - }; - viewRuleEdge?: { - select: ViewRuleEdgeSelect; - }; -}; -export interface CreateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was created by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type CreateEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface UpdateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was updated by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type UpdateEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface DeleteEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was deleted by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} -export type DeleteEmbeddingChunkPayloadSelect = { - clientMutationId?: boolean; - embeddingChunk?: { - select: EmbeddingChunkSelect; - }; - embeddingChunkEdge?: { - select: EmbeddingChunkEdgeSelect; - }; -}; -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type CreateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type UpdateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type DeleteSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -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 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 CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type CreateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type UpdateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface DeleteIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type DeleteIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -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 CreateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type CreateConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type UpdateConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} -export type DeleteConfigSecretsOrgModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; - }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; - }; -}; -export interface CreateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was created by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type CreateSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface UpdateSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was updated by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type UpdateSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface DeleteSchemaGrantPayload { - clientMutationId?: string | null; - /** The `SchemaGrant` that was deleted by this mutation. */ - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export type DeleteSchemaGrantPayloadSelect = { - clientMutationId?: boolean; - schemaGrant?: { - select: SchemaGrantSelect; - }; - schemaGrantEdge?: { - select: SchemaGrantEdgeSelect; - }; -}; -export interface CreateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was created by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type CreateDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface UpdateDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was updated by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type UpdateDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface DeleteDefaultPrivilegePayload { - clientMutationId?: string | null; - /** The `DefaultPrivilege` that was deleted by this mutation. */ - defaultPrivilege?: DefaultPrivilege | null; - defaultPrivilegeEdge?: DefaultPrivilegeEdge | null; -} -export type DeleteDefaultPrivilegePayloadSelect = { - clientMutationId?: boolean; - defaultPrivilege?: { - select: DefaultPrivilegeSelect; - }; - defaultPrivilegeEdge?: { - select: DefaultPrivilegeEdgeSelect; - }; -}; -export interface CreateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was created by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type CreateEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface UpdateEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was updated by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type UpdateEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface DeleteEnumPayload { - clientMutationId?: string | null; - /** The `Enum` that was deleted by this mutation. */ - enum?: Enum | null; - enumEdge?: EnumEdge | null; -} -export type DeleteEnumPayloadSelect = { - clientMutationId?: boolean; - enum?: { - select: EnumSelect; - }; - enumEdge?: { - select: EnumEdgeSelect; - }; -}; -export interface CreateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was created by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type CreateFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface UpdateFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was updated by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type UpdateFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface DeleteFunctionPayload { - clientMutationId?: string | null; - /** The `Function` that was deleted by this mutation. */ - function?: Function | null; - functionEdge?: FunctionEdge | null; -} -export type DeleteFunctionPayloadSelect = { - clientMutationId?: boolean; - function?: { - select: FunctionSelect; - }; - functionEdge?: { - select: FunctionEdgeSelect; - }; -}; -export interface CreateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was created by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type CreateApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface UpdateApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was updated by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type UpdateApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface DeleteApiSchemaPayload { - clientMutationId?: string | null; - /** The `ApiSchema` that was deleted by this mutation. */ - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export type DeleteApiSchemaPayloadSelect = { - clientMutationId?: boolean; - apiSchema?: { - select: ApiSchemaSelect; - }; - apiSchemaEdge?: { - select: ApiSchemaEdgeSelect; - }; -}; -export interface CreateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was created by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type CreateApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was updated by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type UpdateApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was deleted by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export type DeleteApiModulePayloadSelect = { - clientMutationId?: boolean; - apiModule?: { - select: ApiModuleSelect; - }; - apiModuleEdge?: { - select: ApiModuleEdgeSelect; - }; -}; -export interface CreateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was created by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type CreateDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface UpdateDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was updated by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type UpdateDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface DeleteDomainPayload { - clientMutationId?: string | null; - /** The `Domain` that was deleted by this mutation. */ - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export type DeleteDomainPayloadSelect = { - clientMutationId?: boolean; - domain?: { - select: DomainSelect; - }; - domainEdge?: { - select: DomainEdgeSelect; - }; -}; -export interface CreateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was created by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type CreateSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface UpdateSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was updated by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type UpdateSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface DeleteSiteMetadatumPayload { - clientMutationId?: string | null; - /** The `SiteMetadatum` that was deleted by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export type DeleteSiteMetadatumPayloadSelect = { - clientMutationId?: boolean; - siteMetadatum?: { - select: SiteMetadatumSelect; - }; - siteMetadatumEdge?: { - select: SiteMetadatumEdgeSelect; - }; -}; -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was created by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type CreateSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was updated by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type UpdateSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was deleted by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export type DeleteSiteModulePayloadSelect = { - clientMutationId?: boolean; - siteModule?: { - select: SiteModuleSelect; - }; - siteModuleEdge?: { - select: SiteModuleEdgeSelect; - }; -}; -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type CreateSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type UpdateSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export type DeleteSiteThemePayloadSelect = { - clientMutationId?: boolean; - siteTheme?: { - select: SiteThemeSelect; - }; - siteThemeEdge?: { - select: SiteThemeEdgeSelect; - }; -}; -export interface CreateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was created by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type CreateCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface UpdateCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was updated by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type UpdateCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface DeleteCorsSettingPayload { - clientMutationId?: string | null; - /** The `CorsSetting` that was deleted by this mutation. */ - corsSetting?: CorsSetting | null; - corsSettingEdge?: CorsSettingEdge | null; -} -export type DeleteCorsSettingPayloadSelect = { - clientMutationId?: boolean; - corsSetting?: { - select: CorsSettingSelect; - }; - corsSettingEdge?: { - select: CorsSettingEdgeSelect; - }; -}; -export interface CreateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was created by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type CreateMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -export interface UpdateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was updated by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type UpdateMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -export interface DeleteMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was deleted by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} -export type DeleteMerkleStoreModulePayloadSelect = { - clientMutationId?: boolean; - merkleStoreModule?: { - select: MerkleStoreModuleSelect; - }; - merkleStoreModuleEdge?: { - select: MerkleStoreModuleEdgeSelect; - }; -}; -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 DeleteGraphModulePayloadSelect = { - clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; - }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; - }; -}; -export interface CreateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was created by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type CreateTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface UpdateTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was updated by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type UpdateTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface DeleteTriggerFunctionPayload { - clientMutationId?: string | null; - /** The `TriggerFunction` that was deleted by this mutation. */ - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export type DeleteTriggerFunctionPayloadSelect = { - clientMutationId?: boolean; - triggerFunction?: { - select: TriggerFunctionSelect; - }; - triggerFunctionEdge?: { - select: TriggerFunctionEdgeSelect; - }; -}; -export interface CreatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was created by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type CreatePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface UpdatePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was updated by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type UpdatePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface DeletePartitionPayload { - clientMutationId?: string | null; - /** The `Partition` that was deleted by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; -} -export type DeletePartitionPayloadSelect = { - clientMutationId?: boolean; - partition?: { - select: PartitionSelect; - }; - partitionEdge?: { - select: PartitionEdgeSelect; - }; -}; -export interface CreateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was created by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type CreateDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface UpdateDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was updated by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type UpdateDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface DeleteDatabaseTransferPayload { - clientMutationId?: string | null; - /** The `DatabaseTransfer` that was deleted by this mutation. */ - databaseTransfer?: DatabaseTransfer | null; - databaseTransferEdge?: DatabaseTransferEdge | null; -} -export type DeleteDatabaseTransferPayloadSelect = { - clientMutationId?: boolean; - databaseTransfer?: { - select: DatabaseTransferSelect; - }; - databaseTransferEdge?: { - select: DatabaseTransferEdgeSelect; - }; -}; -export interface CreateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was created by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type CreateApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface UpdateApiPayload { - clientMutationId?: string | null; - /** The `Api` that was updated by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type UpdateApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface DeleteApiPayload { - clientMutationId?: string | null; - /** The `Api` that was deleted by this mutation. */ - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export type DeleteApiPayloadSelect = { - clientMutationId?: boolean; - api?: { - select: ApiSelect; - }; - apiEdge?: { - select: ApiEdgeSelect; - }; -}; -export interface CreateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was created by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type CreateSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface UpdateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was updated by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type UpdateSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface DeleteSitePayload { - clientMutationId?: string | null; - /** The `Site` that was deleted by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export type DeleteSitePayloadSelect = { - clientMutationId?: boolean; - site?: { - select: SiteSelect; - }; - siteEdge?: { - select: SiteEdgeSelect; - }; -}; -export interface CreateAppPayload { - clientMutationId?: string | null; - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type CreateAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface UpdateAppPayload { - clientMutationId?: string | null; - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type UpdateAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface DeleteAppPayload { - clientMutationId?: string | null; - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export type DeleteAppPayloadSelect = { - clientMutationId?: boolean; - app?: { - select: AppSelect; - }; - appEdge?: { - select: AppEdgeSelect; - }; -}; -export interface CreateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was created by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type CreateApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface UpdateApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was updated by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type UpdateApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface DeleteApiSettingPayload { - clientMutationId?: string | null; - /** The `ApiSetting` that was deleted by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; -} -export type DeleteApiSettingPayloadSelect = { - clientMutationId?: boolean; - apiSetting?: { - select: ApiSettingSelect; - }; - apiSettingEdge?: { - select: ApiSettingEdgeSelect; - }; -}; -export interface CreateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was created by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type CreateConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface UpdateConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was updated by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type UpdateConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface DeleteConnectedAccountsModulePayload { - clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was deleted by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export type DeleteConnectedAccountsModulePayloadSelect = { - clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; - }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; - }; -}; -export interface CreateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was created by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type CreateCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface UpdateCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was updated by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type UpdateCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type DeleteCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface CreateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was created by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type CreateCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface UpdateCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was updated by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type UpdateCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAuthModulePayload { - clientMutationId?: string | null; - /** The `CryptoAuthModule` that was deleted by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export type DeleteCryptoAuthModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; - }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; - }; -}; -export interface CreateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was created by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type CreateDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface UpdateDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was updated by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type UpdateDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface DeleteDefaultIdsModulePayload { - clientMutationId?: string | null; - /** The `DefaultIdsModule` that was deleted by this mutation. */ - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export type DeleteDefaultIdsModulePayloadSelect = { - clientMutationId?: boolean; - defaultIdsModule?: { - select: DefaultIdsModuleSelect; - }; - defaultIdsModuleEdge?: { - select: DefaultIdsModuleEdgeSelect; - }; -}; -export interface CreateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was created by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type CreateDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface UpdateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was updated by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type UpdateDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface DeleteDenormalizedTableFieldPayload { - clientMutationId?: string | null; - /** The `DenormalizedTableField` that was deleted by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export type DeleteDenormalizedTableFieldPayloadSelect = { - clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; - }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; - }; -}; -export interface CreateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was created by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type CreateEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface UpdateEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was updated by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type UpdateEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface DeleteEmailsModulePayload { - clientMutationId?: string | null; - /** The `EmailsModule` that was deleted by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export type DeleteEmailsModulePayloadSelect = { - clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; - }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; - }; -}; -export interface CreateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type CreateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface UpdateConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type UpdateConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface DeleteConfigSecretsUserModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; -} -export type DeleteConfigSecretsUserModulePayloadSelect = { - clientMutationId?: boolean; - configSecretsUserModule?: { - select: ConfigSecretsUserModuleSelect; - }; - configSecretsUserModuleEdge?: { - select: ConfigSecretsUserModuleEdgeSelect; - }; -}; -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type CreateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type UpdateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type DeleteInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface CreateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was created by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type CreateEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface UpdateEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was updated by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type UpdateEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface DeleteEventsModulePayload { - clientMutationId?: string | null; - /** The `EventsModule` that was deleted by this mutation. */ - eventsModule?: EventsModule | null; - eventsModuleEdge?: EventsModuleEdge | null; -} -export type DeleteEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface CreateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type CreateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface UpdateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was updated by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type UpdateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface DeleteLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was deleted by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export type DeleteLimitsModulePayloadSelect = { - clientMutationId?: boolean; - limitsModule?: { - select: LimitsModuleSelect; - }; - limitsModuleEdge?: { - select: LimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was created by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type CreateMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -export interface UpdateMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was updated by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type UpdateMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -export interface DeleteMembershipTypesModulePayload { - clientMutationId?: string | null; - /** The `MembershipTypesModule` that was deleted by this mutation. */ - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export type DeleteMembershipTypesModulePayloadSelect = { - clientMutationId?: boolean; - membershipTypesModule?: { - select: MembershipTypesModuleSelect; - }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; - }; -}; -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 CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type CreatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type UpdatePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export type DeletePermissionsModulePayloadSelect = { - clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; - }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; - }; -}; -export interface CreatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was created by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type CreatePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface UpdatePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was updated by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type UpdatePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface DeletePhoneNumbersModulePayload { - clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was deleted by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export type DeletePhoneNumbersModulePayloadSelect = { - clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; - }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; - }; -}; -export interface CreateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was created by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type CreateProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface UpdateProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was updated by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type UpdateProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface DeleteProfilesModulePayload { - clientMutationId?: string | null; - /** The `ProfilesModule` that was deleted by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export type DeleteProfilesModulePayloadSelect = { - clientMutationId?: boolean; - profilesModule?: { - select: ProfilesModuleSelect; - }; - profilesModuleEdge?: { - select: ProfilesModuleEdgeSelect; - }; -}; -export interface CreateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was created by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type CreateUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface UpdateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was updated by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type UpdateUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface DeleteUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was deleted by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} -export type DeleteUserStateModulePayloadSelect = { - clientMutationId?: boolean; - userStateModule?: { - select: UserStateModuleSelect; - }; - userStateModuleEdge?: { - select: UserStateModuleEdgeSelect; - }; -}; -export interface CreateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type CreateSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface UpdateSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type UpdateSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface DeleteSessionsModulePayload { - clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export type DeleteSessionsModulePayloadSelect = { - clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; - }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; - }; -}; -export interface CreateUserAuthModulePayload { - clientMutationId?: string | null; - /** The `UserAuthModule` that was created by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export type CreateUserAuthModulePayloadSelect = { - clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; - }; - 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 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 UpdateUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was updated by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export type UpdateUsersModulePayloadSelect = { - clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; - }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; - }; -}; -export interface DeleteUsersModulePayload { - clientMutationId?: string | null; - /** The `UsersModule` that was deleted by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export type DeleteUsersModulePayloadSelect = { - clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; - }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; - }; -}; -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; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface UpdateBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was updated by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export type UpdateBlueprintPayloadSelect = { - clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface DeleteBlueprintPayload { - clientMutationId?: string | null; - /** The `Blueprint` that was deleted by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; -} -export type DeleteBlueprintPayloadSelect = { - clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; - }; - blueprintEdge?: { - select: BlueprintEdgeSelect; - }; -}; -export interface CreateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type CreateBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface UpdateBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type UpdateBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface DeleteBlueprintTemplatePayload { - clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; -} -export type DeleteBlueprintTemplatePayloadSelect = { - clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; - }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; - }; -}; -export interface CreateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was created by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type CreateBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface UpdateBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was updated by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type UpdateBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface DeleteBlueprintConstructionPayload { - clientMutationId?: string | null; - /** The `BlueprintConstruction` that was deleted by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; -} -export type DeleteBlueprintConstructionPayloadSelect = { - clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; - }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; - }; -}; -export interface CreateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was created by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type CreateStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface UpdateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was updated by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type UpdateStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface DeleteStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was deleted by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} -export type DeleteStorageModulePayloadSelect = { - clientMutationId?: boolean; - storageModule?: { - select: StorageModuleSelect; - }; - storageModuleEdge?: { - select: StorageModuleEdgeSelect; - }; -}; -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type CreateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type UpdateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type DeleteEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface CreateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was created by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type CreateWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface UpdateWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was updated by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type UpdateWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface DeleteWebauthnCredentialsModulePayload { - clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; -} -export type DeleteWebauthnCredentialsModulePayloadSelect = { - clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; - }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; - }; -}; -export interface CreateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type CreateWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface UpdateWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type UpdateWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface DeleteWebauthnAuthModulePayload { - clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; -} -export type DeleteWebauthnAuthModulePayloadSelect = { - clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; - }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; - }; -}; -export interface CreateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type CreateNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface UpdateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type UpdateNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface DeleteNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export type DeleteNotificationsModulePayloadSelect = { - clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; - }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; - }; -}; -export interface CreateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was created by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type CreateInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface UpdateInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was updated by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type UpdateInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface DeleteInferenceLogModulePayload { - clientMutationId?: string | null; - /** The `InferenceLogModule` that was deleted by this mutation. */ - inferenceLogModule?: InferenceLogModule | null; - inferenceLogModuleEdge?: InferenceLogModuleEdge | null; -} -export type DeleteInferenceLogModulePayloadSelect = { - clientMutationId?: boolean; - inferenceLogModule?: { - select: InferenceLogModuleSelect; - }; - inferenceLogModuleEdge?: { - select: InferenceLogModuleEdgeSelect; - }; -}; -export interface CreateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was created by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type CreateComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface UpdateComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was updated by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type UpdateComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface DeleteComputeLogModulePayload { - clientMutationId?: string | null; - /** The `ComputeLogModule` that was deleted by this mutation. */ - computeLogModule?: ComputeLogModule | null; - computeLogModuleEdge?: ComputeLogModuleEdge | null; -} -export type DeleteComputeLogModulePayloadSelect = { - clientMutationId?: boolean; - computeLogModule?: { - select: ComputeLogModuleSelect; - }; - computeLogModuleEdge?: { - select: ComputeLogModuleEdgeSelect; - }; -}; -export interface CreateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was created by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type CreateTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface UpdateTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was updated by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type UpdateTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface DeleteTransferLogModulePayload { - clientMutationId?: string | null; - /** The `TransferLogModule` that was deleted by this mutation. */ - transferLogModule?: TransferLogModule | null; - transferLogModuleEdge?: TransferLogModuleEdge | null; -} -export type DeleteTransferLogModulePayloadSelect = { - clientMutationId?: boolean; - transferLogModule?: { - select: TransferLogModuleSelect; - }; - transferLogModuleEdge?: { - select: TransferLogModuleEdgeSelect; - }; -}; -export interface CreateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was created by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type CreateStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface UpdateStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was updated by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type UpdateStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface DeleteStorageLogModulePayload { - clientMutationId?: string | null; - /** The `StorageLogModule` that was deleted by this mutation. */ - storageLogModule?: StorageLogModule | null; - storageLogModuleEdge?: StorageLogModuleEdge | null; -} -export type DeleteStorageLogModulePayloadSelect = { - clientMutationId?: boolean; - storageLogModule?: { - select: StorageLogModuleSelect; - }; - storageLogModuleEdge?: { - select: StorageLogModuleEdgeSelect; - }; -}; -export interface CreateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type CreateDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface UpdateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type UpdateDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface DeleteDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export type DeleteDbUsageModulePayloadSelect = { - clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; - }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; - }; -}; -export interface CreateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was created by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type CreateAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -export interface UpdateAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was updated by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type UpdateAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -export interface DeleteAgentModulePayload { - clientMutationId?: string | null; - /** The `AgentModule` that was deleted by this mutation. */ - agentModule?: AgentModule | null; - agentModuleEdge?: AgentModuleEdge | null; -} -export type DeleteAgentModulePayloadSelect = { - clientMutationId?: boolean; - agentModule?: { - select: AgentModuleSelect; - }; - agentModuleEdge?: { - select: AgentModuleEdgeSelect; - }; -}; -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 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 CreateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type CreateDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface UpdateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type UpdateDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface DeleteDatabaseProvisionModulePayload { - clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export type DeleteDatabaseProvisionModulePayloadSelect = { - clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; - }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; - }; -}; -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type CreateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type UpdateAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export type DeleteAppAdminGrantPayloadSelect = { - clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; - }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; - }; -}; -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type CreateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type UpdateAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export type DeleteAppOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; - }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; - }; -}; -export interface CreateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type CreateAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface UpdateAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type UpdateAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface DeleteAppGrantPayload { - clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export type DeleteAppGrantPayloadSelect = { - clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; - }; - appGrantEdge?: { - select: AppGrantEdgeSelect; - }; -}; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was created by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type CreateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was updated by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type UpdateOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - /** The `OrgMember` that was deleted by this mutation. */ - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export type DeleteOrgMemberPayloadSelect = { - clientMutationId?: boolean; - orgMember?: { - select: OrgMemberSelect; - }; - orgMemberEdge?: { - select: OrgMemberEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type UpdateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type DeleteOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was created by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type CreateOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface UpdateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was updated by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type UpdateOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface DeleteOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was deleted by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export type DeleteOrgGrantPayloadSelect = { - clientMutationId?: boolean; - orgGrant?: { - select: OrgGrantSelect; - }; - orgGrantEdge?: { - select: OrgGrantEdgeSelect; - }; -}; -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type CreateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type UpdateOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export type DeleteOrgChartEdgePayloadSelect = { - clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; - }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; - }; -}; -export interface CreateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was created by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type CreateOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface UpdateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was updated by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type UpdateOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface DeleteOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} -export type DeleteOrgChartEdgeGrantPayloadSelect = { - clientMutationId?: boolean; - orgChartEdgeGrant?: { - select: OrgChartEdgeGrantSelect; - }; - orgChartEdgeGrantEdge?: { - select: OrgChartEdgeGrantEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type DeleteOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type CreateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type CreateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type UpdateAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; -} -export type DeleteAppLimitCreditPayloadSelect = { - clientMutationId?: boolean; - appLimitCredit?: { - select: AppLimitCreditSelect; - }; - appLimitCreditEdge?: { - select: AppLimitCreditEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type CreateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type UpdateAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodeItemPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; -} -export type DeleteAppLimitCreditCodeItemPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCodeItem?: { - select: AppLimitCreditCodeItemSelect; - }; - appLimitCreditCodeItemEdge?: { - select: AppLimitCreditCodeItemEdgeSelect; - }; -}; -export interface CreateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was created by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type CreateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was updated by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type UpdateAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditRedemptionPayload { - clientMutationId?: string | null; - /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ - appLimitCreditRedemption?: AppLimitCreditRedemption | null; - appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; -} -export type DeleteAppLimitCreditRedemptionPayloadSelect = { - clientMutationId?: boolean; - appLimitCreditRedemption?: { - select: AppLimitCreditRedemptionSelect; - }; - appLimitCreditRedemptionEdge?: { - select: AppLimitCreditRedemptionEdgeSelect; - }; -}; -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type CreateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type UpdateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type DeleteOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface CreateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type CreateOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface UpdateOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type UpdateOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface DeleteOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export type DeleteOrgLimitCreditPayloadSelect = { - clientMutationId?: boolean; - orgLimitCredit?: { - select: OrgLimitCreditSelect; - }; - orgLimitCreditEdge?: { - select: OrgLimitCreditEdgeSelect; - }; -}; -export interface CreateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type CreateOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type UpdateOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export type DeleteOrgLimitAggregatePayloadSelect = { - clientMutationId?: boolean; - orgLimitAggregate?: { - select: OrgLimitAggregateSelect; - }; - orgLimitAggregateEdge?: { - select: OrgLimitAggregateEdgeSelect; - }; -}; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type UpdateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type DeleteEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; - }; -}; -export interface CreatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was created by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type CreatePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface UpdatePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was updated by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type UpdatePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export type DeletePhoneNumberPayloadSelect = { - clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; - }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; - }; -}; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was created by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type CreateWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface UpdateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was updated by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type UpdateWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface DeleteWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was deleted by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export type DeleteWebauthnCredentialPayloadSelect = { - clientMutationId?: boolean; - webauthnCredential?: { - select: WebauthnCredentialSelect; - }; - webauthnCredentialEdge?: { - select: WebauthnCredentialEdgeSelect; - }; -}; -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type CreateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type UpdateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type DeleteAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface CreateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type CreateAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface UpdateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type UpdateAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface DeleteAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export type DeleteAppClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; - }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; - }; -}; -export interface CreateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was created by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type CreateOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface UpdateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type UpdateOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface DeleteOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export type DeleteOrgInvitePayloadSelect = { - clientMutationId?: boolean; - orgInvite?: { - select: OrgInviteSelect; - }; - orgInviteEdge?: { - select: OrgInviteEdgeSelect; - }; -}; -export interface CreateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was created by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type CreateOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface UpdateOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was updated by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type UpdateOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface DeleteOrgClaimedInvitePayload { - clientMutationId?: string | null; - /** The `OrgClaimedInvite` that was deleted by this mutation. */ - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export type DeleteOrgClaimedInvitePayloadSelect = { - clientMutationId?: boolean; - orgClaimedInvite?: { - select: OrgClaimedInviteSelect; - }; - orgClaimedInviteEdge?: { - select: OrgClaimedInviteEdgeSelect; - }; -}; -export interface CreateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was created by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type CreateAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface UpdateAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was updated by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type UpdateAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface DeleteAuditLogAuthPayload { - clientMutationId?: string | null; - /** The `AuditLogAuth` that was deleted by this mutation. */ - auditLogAuth?: AuditLogAuth | null; - auditLogAuthEdge?: AuditLogAuthEdge | null; -} -export type DeleteAuditLogAuthPayloadSelect = { - clientMutationId?: boolean; - auditLogAuth?: { - select: AuditLogAuthSelect; - }; - auditLogAuthEdge?: { - select: AuditLogAuthEdgeSelect; - }; -}; -export interface CreateIdentityProviderPayload { - clientMutationId?: string | null; - /** The `IdentityProvider` that was created by this mutation. */ - identityProvider?: IdentityProvider | null; -} -export type CreateIdentityProviderPayloadSelect = { - clientMutationId?: boolean; - identityProvider?: { - select: IdentityProviderSelect; - }; -}; -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type CreateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type UpdateAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; - }; -}; -export interface CreateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type CreateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface UpdateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type UpdateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface DeleteDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type DeleteDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type CreateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type UpdateAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export type DeleteAppMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; - }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; - }; -}; -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type CreateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type UpdateOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type CreateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type UpdateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface DeleteNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type DeleteNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface CreateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type CreateAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface UpdateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type UpdateAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export type DeleteAppLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitCapsDefault?: { - select: AppLimitCapsDefaultSelect; - }; - appLimitCapsDefaultEdge?: { - select: AppLimitCapsDefaultEdgeSelect; - }; -}; -export interface CreateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type CreateOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface UpdateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type UpdateOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export type DeleteOrgLimitCapsDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitCapsDefault?: { - select: OrgLimitCapsDefaultSelect; - }; - orgLimitCapsDefaultEdge?: { - select: OrgLimitCapsDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type CreateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type UpdateAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export type DeleteAppLimitCapPayloadSelect = { - clientMutationId?: boolean; - appLimitCap?: { - select: AppLimitCapSelect; - }; - appLimitCapEdge?: { - select: AppLimitCapEdgeSelect; - }; -}; -export interface CreateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type CreateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type UpdateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type DeleteOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type CreateAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type UpdateAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export type DeleteAppLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; - }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; - }; -}; -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type CreateOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type UpdateOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export type DeleteOrgLimitDefaultPayloadSelect = { - clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; - }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; - }; -}; -export interface CreateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type CreateAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface UpdateAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type UpdateAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface DeleteAppLimitCreditCodePayload { - clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; -} -export type DeleteAppLimitCreditCodePayloadSelect = { - clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; - }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; - }; -}; -export interface CreateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type CreateAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface UpdateAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type UpdateAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface DeleteAppLimitWarningPayload { - clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; -} -export type DeleteAppLimitWarningPayloadSelect = { - clientMutationId?: boolean; - appLimitWarning?: { - select: AppLimitWarningSelect; - }; - appLimitWarningEdge?: { - select: AppLimitWarningEdgeSelect; - }; -}; -export interface CreatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was created by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type CreatePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface UpdatePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was updated by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type UpdatePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface DeletePubkeySettingPayload { - clientMutationId?: string | null; - /** The `PubkeySetting` that was deleted by this mutation. */ - pubkeySetting?: PubkeySetting | null; - pubkeySettingEdge?: PubkeySettingEdge | null; -} -export type DeletePubkeySettingPayloadSelect = { - clientMutationId?: boolean; - pubkeySetting?: { - select: PubkeySettingSelect; - }; - pubkeySettingEdge?: { - select: PubkeySettingEdgeSelect; - }; -}; -export interface CreateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type CreateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface CreateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was created by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type CreateRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface UpdateRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was updated by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type UpdateRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface DeleteRlsSettingPayload { - clientMutationId?: string | null; - /** The `RlsSetting` that was deleted by this mutation. */ - rlsSetting?: RlsSetting | null; - rlsSettingEdge?: RlsSettingEdge | null; -} -export type DeleteRlsSettingPayloadSelect = { - clientMutationId?: boolean; - rlsSetting?: { - select: RlsSettingSelect; - }; - rlsSettingEdge?: { - select: RlsSettingEdgeSelect; - }; -}; -export interface CreateRlsModulePayload { - clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export type CreateRlsModulePayloadSelect = { - clientMutationId?: boolean; - 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 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 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 CreateSqlActionPayload { - clientMutationId?: string | null; - /** The `SqlAction` that was created by this mutation. */ - sqlAction?: SqlAction | null; -} -export type CreateSqlActionPayloadSelect = { - clientMutationId?: boolean; - sqlAction?: { - select: SqlActionSelect; - }; -}; -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type CreateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type UpdateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type DeleteDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type DeleteOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface UpdateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was updated by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type UpdateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface DeleteAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was deleted by this mutation. */ - appLimitEvent?: AppLimitEvent | null; - appLimitEventEdge?: AppLimitEventEdge | null; -} -export type DeleteAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; - appLimitEventEdge?: { - select: AppLimitEventEdgeSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface UpdateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was updated by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type UpdateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface DeleteOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was deleted by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; - orgLimitEventEdge?: OrgLimitEventEdge | null; -} -export type DeleteOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; - orgLimitEventEdge?: { - select: OrgLimitEventEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type CreateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type UpdateAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export type DeleteAppMembershipPayloadSelect = { - clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; - }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; - }; -}; -export interface CreateUserPayload { - clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type CreateUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -export interface UpdateUserPayload { - clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type UpdateUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -export interface DeleteUserPayload { - clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; -} -export type DeleteUserPayloadSelect = { - clientMutationId?: boolean; - user?: { - select: UserSelect; - }; - userEdge?: { - select: UserEdgeSelect; - }; -}; -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. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type CreateWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface UpdateWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was updated by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type UpdateWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface DeleteWebauthnSettingPayload { - clientMutationId?: string | null; - /** The `WebauthnSetting` that was deleted by this mutation. */ - webauthnSetting?: WebauthnSetting | null; - webauthnSettingEdge?: WebauthnSettingEdge | null; -} -export type DeleteWebauthnSettingPayloadSelect = { - clientMutationId?: boolean; - webauthnSetting?: { - select: WebauthnSettingSelect; - }; - webauthnSettingEdge?: { - select: WebauthnSettingEdgeSelect; - }; -}; -export interface CreateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type CreateBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface UpdateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type UpdateBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface DeleteBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} -export type DeleteBillingModulePayloadSelect = { - clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; - }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; - }; -}; -export interface CreateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type CreateBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface UpdateBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type UpdateBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface DeleteBillingProviderModulePayload { - clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; -} -export type DeleteBillingProviderModulePayloadSelect = { - clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; - }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; - }; -}; -export interface CreateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was created by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type CreateHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -export interface UpdateHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was updated by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type UpdateHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -export interface DeleteHierarchyModulePayload { - clientMutationId?: string | null; - /** The `HierarchyModule` that was deleted by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export type DeleteHierarchyModulePayloadSelect = { - clientMutationId?: boolean; - hierarchyModule?: { - select: HierarchyModuleSelect; - }; - hierarchyModuleEdge?: { - select: HierarchyModuleEdgeSelect; - }; -}; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} -export type AppPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionSelect; - }; -}; -/** 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; -} -export type PageInfoSelect = { - hasNextPage?: boolean; - hasPreviousPage?: boolean; - startCursor?: boolean; - endCursor?: boolean; -}; -/** A `OrgPermission` edge in the connection. */ -export interface OrgPermissionEdge { - cursor?: string | null; - /** The `OrgPermission` at the end of the edge. */ - node?: OrgPermission | null; -} -export type OrgPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionSelect; - }; -}; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface 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 interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignUpRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} -export type SignInRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; - mfaRequired?: boolean; - mfaChallengeToken?: boolean; -}; -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export type ProvisionRelationRecordSelect = { - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface ExtendTokenExpiresRecord { - id?: string | null; - sessionId?: string | null; - expiresAt?: string | null; -} -export type ExtendTokenExpiresRecordSelect = { - id?: boolean; - sessionId?: boolean; - expiresAt?: boolean; -}; -export interface CreateApiKeyRecord { - apiKey?: string | null; - keyId?: string | null; - expiresAt?: string | null; -} -export type CreateApiKeyRecordSelect = { - apiKey?: boolean; - keyId?: boolean; - expiresAt?: boolean; -}; -export interface ProvisionTableRecord { - outTableId?: string | null; - outFields?: string[] | null; -} -export type ProvisionTableRecordSelect = { - outTableId?: boolean; - outFields?: boolean; -}; -/** A `Database` edge in the connection. */ -export interface DatabaseEdge { - cursor?: string | null; - /** The `Database` at the end of the edge. */ - node?: Database | null; -} -export type DatabaseEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSelect; - }; -}; -/** A `Schema` edge in the connection. */ -export interface SchemaEdge { - cursor?: string | null; - /** The `Schema` at the end of the edge. */ - node?: Schema | null; -} -export type SchemaEdgeSelect = { - cursor?: boolean; - node?: { - select: SchemaSelect; - }; -}; -/** A `Table` edge in the connection. */ -export interface TableEdge { - cursor?: string | null; - /** The `Table` at the end of the edge. */ - node?: Table | null; -} -export type TableEdgeSelect = { - cursor?: boolean; - node?: { - select: TableSelect; - }; -}; -/** A `CheckConstraint` edge in the connection. */ -export interface CheckConstraintEdge { - cursor?: string | null; - /** The `CheckConstraint` at the end of the edge. */ - node?: CheckConstraint | null; -} -export type CheckConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: CheckConstraintSelect; - }; -}; -/** A `Field` edge in the connection. */ -export interface FieldEdge { - cursor?: string | null; - /** The `Field` at the end of the edge. */ - node?: Field | null; -} -export type FieldEdgeSelect = { - cursor?: boolean; - node?: { - select: FieldSelect; - }; -}; -/** A `SpatialRelation` edge in the connection. */ -export interface SpatialRelationEdge { - cursor?: string | null; - /** The `SpatialRelation` at the end of the edge. */ - node?: SpatialRelation | null; -} -export type SpatialRelationEdgeSelect = { - cursor?: boolean; - node?: { - select: SpatialRelationSelect; - }; -}; -/** A `ForeignKeyConstraint` edge in the connection. */ -export interface ForeignKeyConstraintEdge { - cursor?: string | null; - /** The `ForeignKeyConstraint` at the end of the edge. */ - node?: ForeignKeyConstraint | null; -} -export type ForeignKeyConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: ForeignKeyConstraintSelect; - }; -}; -/** A `FullTextSearch` edge in the connection. */ -export interface FullTextSearchEdge { - cursor?: string | null; - /** The `FullTextSearch` at the end of the edge. */ - node?: FullTextSearch | null; -} -export type FullTextSearchEdgeSelect = { - cursor?: boolean; - node?: { - select: FullTextSearchSelect; - }; -}; -/** A `Index` edge in the connection. */ -export interface IndexEdge { - cursor?: string | null; - /** The `Index` at the end of the edge. */ - node?: Index | null; -} -export type IndexEdgeSelect = { - cursor?: boolean; - node?: { - select: IndexSelect; - }; -}; -/** A `Policy` edge in the connection. */ -export interface PolicyEdge { - cursor?: string | null; - /** The `Policy` at the end of the edge. */ - node?: Policy | null; -} -export type PolicyEdgeSelect = { - cursor?: boolean; - node?: { - select: PolicySelect; - }; -}; -/** A `PrimaryKeyConstraint` edge in the connection. */ -export interface PrimaryKeyConstraintEdge { - cursor?: string | null; - /** The `PrimaryKeyConstraint` at the end of the edge. */ - node?: PrimaryKeyConstraint | null; -} -export type PrimaryKeyConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: PrimaryKeyConstraintSelect; - }; -}; -/** A `TableGrant` edge in the connection. */ -export interface TableGrantEdge { - cursor?: string | null; - /** The `TableGrant` at the end of the edge. */ - node?: TableGrant | null; -} -export type TableGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: TableGrantSelect; - }; -}; -/** A `Trigger` edge in the connection. */ -export interface TriggerEdge { - cursor?: string | null; - /** The `Trigger` at the end of the edge. */ - node?: Trigger | null; -} -export type TriggerEdgeSelect = { - cursor?: boolean; - node?: { - select: TriggerSelect; - }; -}; -/** A `UniqueConstraint` edge in the connection. */ -export interface UniqueConstraintEdge { - cursor?: string | null; - /** The `UniqueConstraint` at the end of the edge. */ - node?: UniqueConstraint | null; -} -export type UniqueConstraintEdgeSelect = { - cursor?: boolean; - node?: { - select: UniqueConstraintSelect; - }; -}; -/** A `View` edge in the connection. */ -export interface ViewEdge { - cursor?: string | null; - /** The `View` at the end of the edge. */ - node?: View | null; -} -export type ViewEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewSelect; - }; -}; -/** A `ViewTable` edge in the connection. */ -export interface ViewTableEdge { - cursor?: string | null; - /** The `ViewTable` at the end of the edge. */ - node?: ViewTable | null; -} -export type ViewTableEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewTableSelect; - }; -}; -/** A `ViewGrant` edge in the connection. */ -export interface ViewGrantEdge { - cursor?: string | null; - /** The `ViewGrant` at the end of the edge. */ - node?: ViewGrant | null; -} -export type ViewGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewGrantSelect; - }; -}; -/** A `ViewRule` edge in the connection. */ -export interface ViewRuleEdge { - cursor?: string | null; - /** The `ViewRule` at the end of the edge. */ - node?: ViewRule | null; -} -export type ViewRuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ViewRuleSelect; - }; -}; -/** A `EmbeddingChunk` edge in the connection. */ -export interface EmbeddingChunkEdge { - cursor?: string | null; - /** The `EmbeddingChunk` at the end of the edge. */ - node?: EmbeddingChunk | null; -} -export type EmbeddingChunkEdgeSelect = { - cursor?: boolean; - node?: { - select: EmbeddingChunkSelect; - }; -}; -/** 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 `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 `SessionSecretsModule` edge in the connection. */ -export interface SessionSecretsModuleEdge { - cursor?: string | null; - /** The `SessionSecretsModule` at the end of the edge. */ - node?: SessionSecretsModule | null; -} -export type SessionSecretsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SessionSecretsModuleSelect; - }; -}; -/** 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 `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: RealtimeModuleSelect; - }; -}; -/** A `ConfigSecretsOrgModule` edge in the connection. */ -export interface ConfigSecretsOrgModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsOrgModule` at the end of the edge. */ - node?: ConfigSecretsOrgModule | null; -} -export type ConfigSecretsOrgModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConfigSecretsOrgModuleSelect; - }; -}; -/** A `SchemaGrant` edge in the connection. */ -export interface SchemaGrantEdge { - cursor?: string | null; - /** The `SchemaGrant` at the end of the edge. */ - node?: SchemaGrant | null; -} -export type SchemaGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: SchemaGrantSelect; - }; -}; -/** A `DefaultPrivilege` edge in the connection. */ -export interface DefaultPrivilegeEdge { - cursor?: string | null; - /** The `DefaultPrivilege` at the end of the edge. */ - node?: DefaultPrivilege | null; -} -export type DefaultPrivilegeEdgeSelect = { - cursor?: boolean; - node?: { - select: DefaultPrivilegeSelect; - }; -}; -/** A `Enum` edge in the connection. */ -export interface EnumEdge { - cursor?: string | null; - /** The `Enum` at the end of the edge. */ - node?: Enum | null; -} -export type EnumEdgeSelect = { - cursor?: boolean; - node?: { - select: EnumSelect; - }; -}; -/** A `Function` edge in the connection. */ -export interface FunctionEdge { - cursor?: string | null; - /** The `Function` at the end of the edge. */ - node?: Function | null; -} -export type FunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionSelect; - }; -}; -/** A `ApiSchema` edge in the connection. */ -export interface ApiSchemaEdge { - cursor?: string | null; - /** The `ApiSchema` at the end of the edge. */ - node?: ApiSchema | null; -} -export type ApiSchemaEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSchemaSelect; - }; -}; -/** A `ApiModule` edge in the connection. */ -export interface ApiModuleEdge { - cursor?: string | null; - /** The `ApiModule` at the end of the edge. */ - node?: ApiModule | null; -} -export type ApiModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiModuleSelect; - }; -}; -/** A `Domain` edge in the connection. */ -export interface DomainEdge { - cursor?: string | null; - /** The `Domain` at the end of the edge. */ - node?: Domain | null; -} -export type DomainEdgeSelect = { - cursor?: boolean; - node?: { - select: DomainSelect; - }; -}; -/** A `SiteMetadatum` edge in the connection. */ -export interface SiteMetadatumEdge { - cursor?: string | null; - /** The `SiteMetadatum` at the end of the edge. */ - node?: SiteMetadatum | null; -} -export type SiteMetadatumEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteMetadatumSelect; - }; -}; -/** A `SiteModule` edge in the connection. */ -export interface SiteModuleEdge { - cursor?: string | null; - /** The `SiteModule` at the end of the edge. */ - node?: SiteModule | null; -} -export type SiteModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteModuleSelect; - }; -}; -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} -export type SiteThemeEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteThemeSelect; - }; -}; -/** A `CorsSetting` edge in the connection. */ -export interface CorsSettingEdge { - cursor?: string | null; - /** The `CorsSetting` at the end of the edge. */ - node?: CorsSetting | null; -} -export type CorsSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: CorsSettingSelect; - }; -}; -/** 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 `GraphModule` edge in the connection. */ -export interface GraphModuleEdge { - cursor?: string | null; - /** The `GraphModule` at the end of the edge. */ - node?: GraphModule | null; -} -export type GraphModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: GraphModuleSelect; - }; -}; -/** A `TriggerFunction` edge in the connection. */ -export interface TriggerFunctionEdge { - cursor?: string | null; - /** The `TriggerFunction` at the end of the edge. */ - node?: TriggerFunction | null; -} -export type TriggerFunctionEdgeSelect = { - cursor?: boolean; - node?: { - select: TriggerFunctionSelect; - }; -}; -/** A `Partition` edge in the connection. */ -export interface PartitionEdge { - cursor?: string | null; - /** The `Partition` at the end of the edge. */ - node?: Partition | null; -} -export type PartitionEdgeSelect = { - cursor?: boolean; - node?: { - select: PartitionSelect; - }; -}; -/** A `DatabaseTransfer` edge in the connection. */ -export interface DatabaseTransferEdge { - cursor?: string | null; - /** The `DatabaseTransfer` at the end of the edge. */ - node?: DatabaseTransfer | null; -} -export type DatabaseTransferEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseTransferSelect; - }; -}; -/** A `Api` edge in the connection. */ -export interface ApiEdge { - cursor?: string | null; - /** The `Api` at the end of the edge. */ - node?: Api | null; -} -export type ApiEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSelect; - }; -}; -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} -export type SiteEdgeSelect = { - cursor?: boolean; - node?: { - select: SiteSelect; - }; -}; -/** A `App` edge in the connection. */ -export interface AppEdge { - cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; -} -export type AppEdgeSelect = { - cursor?: boolean; - node?: { - select: AppSelect; - }; -}; -/** A `ApiSetting` edge in the connection. */ -export interface ApiSettingEdge { - cursor?: string | null; - /** The `ApiSetting` at the end of the edge. */ - node?: ApiSetting | null; -} -export type ApiSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: ApiSettingSelect; - }; -}; -/** A `ConnectedAccountsModule` edge in the connection. */ -export interface ConnectedAccountsModuleEdge { - cursor?: string | null; - /** The `ConnectedAccountsModule` at the end of the edge. */ - node?: ConnectedAccountsModule | null; -} -export type ConnectedAccountsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConnectedAccountsModuleSelect; - }; -}; -/** A `CryptoAddressesModule` edge in the connection. */ -export interface CryptoAddressesModuleEdge { - cursor?: string | null; - /** The `CryptoAddressesModule` at the end of the edge. */ - node?: CryptoAddressesModule | null; -} -export type CryptoAddressesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressesModuleSelect; - }; -}; -/** A `CryptoAuthModule` edge in the connection. */ -export interface CryptoAuthModuleEdge { - cursor?: string | null; - /** The `CryptoAuthModule` at the end of the edge. */ - node?: CryptoAuthModule | null; -} -export type CryptoAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAuthModuleSelect; - }; -}; -/** A `DefaultIdsModule` edge in the connection. */ -export interface DefaultIdsModuleEdge { - cursor?: string | null; - /** The `DefaultIdsModule` at the end of the edge. */ - node?: DefaultIdsModule | null; -} -export type DefaultIdsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DefaultIdsModuleSelect; - }; -}; -/** A `DenormalizedTableField` edge in the connection. */ -export interface DenormalizedTableFieldEdge { - cursor?: string | null; - /** The `DenormalizedTableField` at the end of the edge. */ - node?: DenormalizedTableField | null; -} -export type DenormalizedTableFieldEdgeSelect = { - cursor?: boolean; - node?: { - select: DenormalizedTableFieldSelect; - }; -}; -/** A `EmailsModule` edge in the connection. */ -export interface EmailsModuleEdge { - cursor?: string | null; - /** The `EmailsModule` at the end of the edge. */ - node?: EmailsModule | null; -} -export type EmailsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailsModuleSelect; - }; -}; -/** 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 `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { - cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; -} -export type InvitesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InvitesModuleSelect; - }; -}; -/** A `EventsModule` edge in the connection. */ -export interface EventsModuleEdge { - cursor?: string | null; - /** The `EventsModule` at the end of the edge. */ - node?: EventsModule | null; -} -export type EventsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: EventsModuleSelect; - }; -}; -/** A `LimitsModule` edge in the connection. */ -export interface LimitsModuleEdge { - cursor?: string | null; - /** The `LimitsModule` at the end of the edge. */ - node?: LimitsModule | null; -} -export type LimitsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: LimitsModuleSelect; - }; -}; -/** A `MembershipTypesModule` edge in the connection. */ -export interface MembershipTypesModuleEdge { - cursor?: string | null; - /** The `MembershipTypesModule` at the end of the edge. */ - node?: MembershipTypesModule | null; -} -export type MembershipTypesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypesModuleSelect; - }; -}; -/** 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 `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 `PhoneNumbersModule` edge in the connection. */ -export interface PhoneNumbersModuleEdge { - cursor?: string | null; - /** The `PhoneNumbersModule` at the end of the edge. */ - node?: PhoneNumbersModule | null; -} -export type PhoneNumbersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumbersModuleSelect; - }; -}; -/** A `ProfilesModule` edge in the connection. */ -export interface ProfilesModuleEdge { - cursor?: string | null; - /** The `ProfilesModule` at the end of the edge. */ - node?: ProfilesModule | null; -} -export type ProfilesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ProfilesModuleSelect; - }; -}; -/** 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 `SessionsModule` edge in the connection. */ -export interface SessionsModuleEdge { - cursor?: string | null; - /** The `SessionsModule` at the end of the edge. */ - node?: SessionsModule | null; -} -export type SessionsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: SessionsModuleSelect; - }; -}; -/** A `UserAuthModule` edge in the connection. */ -export interface UserAuthModuleEdge { - cursor?: string | null; - /** The `UserAuthModule` at the end of the edge. */ - node?: UserAuthModule | null; -} -export type UserAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserAuthModuleSelect; - }; -}; -/** A `UsersModule` edge in the connection. */ -export interface UsersModuleEdge { - cursor?: string | null; - /** The `UsersModule` at the end of the edge. */ - node?: UsersModule | null; -} -export type UsersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UsersModuleSelect; - }; -}; -/** A `Blueprint` edge in the connection. */ -export interface BlueprintEdge { - cursor?: string | null; - /** The `Blueprint` at the end of the edge. */ - node?: Blueprint | null; -} -export type BlueprintEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintSelect; - }; -}; -/** A `BlueprintTemplate` edge in the connection. */ -export interface BlueprintTemplateEdge { - cursor?: string | null; - /** The `BlueprintTemplate` at the end of the edge. */ - node?: BlueprintTemplate | null; -} -export type BlueprintTemplateEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintTemplateSelect; - }; -}; -/** A `BlueprintConstruction` edge in the connection. */ -export interface BlueprintConstructionEdge { - cursor?: string | null; - /** The `BlueprintConstruction` at the end of the edge. */ - node?: BlueprintConstruction | null; -} -export type BlueprintConstructionEdgeSelect = { - cursor?: boolean; - node?: { - select: BlueprintConstructionSelect; - }; -}; -/** A `StorageModule` edge in the connection. */ -export interface StorageModuleEdge { - cursor?: string | null; - /** The `StorageModule` at the end of the edge. */ - node?: StorageModule | null; -} -export type StorageModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: StorageModuleSelect; - }; -}; -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | null; -} -export type EntityTypeProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: EntityTypeProvisionSelect; - }; -}; -/** A `WebauthnCredentialsModule` edge in the connection. */ -export interface WebauthnCredentialsModuleEdge { - cursor?: string | null; - /** The `WebauthnCredentialsModule` at the end of the edge. */ - node?: WebauthnCredentialsModule | null; -} -export type WebauthnCredentialsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnCredentialsModuleSelect; - }; -}; -/** A `WebauthnAuthModule` edge in the connection. */ -export interface WebauthnAuthModuleEdge { - cursor?: string | null; - /** The `WebauthnAuthModule` at the end of the edge. */ - node?: WebauthnAuthModule | null; -} -export type WebauthnAuthModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnAuthModuleSelect; - }; -}; -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { - cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; -} -export type NotificationsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: NotificationsModuleSelect; - }; -}; -/** A `InferenceLogModule` edge in the connection. */ -export interface InferenceLogModuleEdge { - cursor?: string | null; - /** The `InferenceLogModule` at the end of the edge. */ - node?: InferenceLogModule | null; -} -export type InferenceLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InferenceLogModuleSelect; - }; -}; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { - cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; -} -export type ComputeLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ComputeLogModuleSelect; - }; -}; -/** A `TransferLogModule` edge in the connection. */ -export interface TransferLogModuleEdge { - cursor?: string | null; - /** The `TransferLogModule` at the end of the edge. */ - node?: TransferLogModule | null; -} -export type TransferLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: TransferLogModuleSelect; - }; -}; -/** A `StorageLogModule` edge in the connection. */ -export interface StorageLogModuleEdge { - cursor?: string | null; - /** The `StorageLogModule` at the end of the edge. */ - node?: StorageLogModule | null; -} -export type StorageLogModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: StorageLogModuleSelect; - }; -}; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { - cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; -} -export type DbUsageModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DbUsageModuleSelect; - }; -}; -/** A `AgentModule` edge in the connection. */ -export interface AgentModuleEdge { - cursor?: string | null; - /** The `AgentModule` at the end of the edge. */ - node?: AgentModule | null; -} -export type AgentModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: AgentModuleSelect; - }; -}; -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { - cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; -} -export type NamespaceModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: NamespaceModuleSelect; - }; -}; -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} -export type FunctionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionModuleSelect; - }; -}; -/** A `DatabaseProvisionModule` edge in the connection. */ -export interface DatabaseProvisionModuleEdge { - cursor?: string | null; - /** The `DatabaseProvisionModule` at the end of the edge. */ - node?: DatabaseProvisionModule | null; -} -export type DatabaseProvisionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseProvisionModuleSelect; - }; -}; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { - cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; -} -export type AppAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppAdminGrantSelect; - }; -}; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { - cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; -} -export type AppOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppOwnerGrantSelect; - }; -}; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { - cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; -} -export type AppGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: AppGrantSelect; - }; -}; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; -/** A `OrgMember` edge in the connection. */ -export interface OrgMemberEdge { - cursor?: string | null; - /** The `OrgMember` at the end of the edge. */ - node?: OrgMember | null; -} -export type OrgMemberEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberSelect; - }; -}; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; -/** A `OrgGrant` edge in the connection. */ -export interface OrgGrantEdge { - cursor?: string | null; - /** The `OrgGrant` at the end of the edge. */ - node?: OrgGrant | null; -} -export type OrgGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgGrantSelect; - }; -}; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -export type OrgChartEdgeEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeSelect; - }; -}; -/** A `OrgChartEdgeGrant` edge in the connection. */ -export interface OrgChartEdgeGrantEdge { - cursor?: string | null; - /** The `OrgChartEdgeGrant` at the end of the edge. */ - node?: OrgChartEdgeGrant | null; -} -export type OrgChartEdgeGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgChartEdgeGrantSelect; - }; -}; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { - cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; -} -export type AppLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditSelect; - }; -}; -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { - cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; -} -export type AppLimitCreditCodeItemEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeItemSelect; - }; -}; -/** A `AppLimitCreditRedemption` edge in the connection. */ -export interface AppLimitCreditRedemptionEdge { - cursor?: string | null; - /** The `AppLimitCreditRedemption` at the end of the edge. */ - node?: AppLimitCreditRedemption | null; -} -export type AppLimitCreditRedemptionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditRedemptionSelect; - }; -}; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { - cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; -} -export type OrgLimitCreditEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCreditSelect; - }; -}; -/** A `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -export type OrgLimitAggregateEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitAggregateSelect; - }; -}; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} -export type OrgLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitWarningSelect; - }; -}; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; -/** A `PhoneNumber` edge in the connection. */ -export interface PhoneNumberEdge { - cursor?: string | null; - /** The `PhoneNumber` at the end of the edge. */ - node?: PhoneNumber | null; -} -export type PhoneNumberEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumberSelect; - }; -}; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `WebauthnCredential` edge in the connection. */ -export interface WebauthnCredentialEdge { - cursor?: string | null; - /** The `WebauthnCredential` at the end of the edge. */ - node?: WebauthnCredential | null; -} -export type WebauthnCredentialEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnCredentialSelect; - }; -}; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -export type AppInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppInviteSelect; - }; -}; -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { - cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; -} -export type AppClaimedInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppClaimedInviteSelect; - }; -}; -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { - cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; -} -export type OrgInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgInviteSelect; - }; -}; -/** A `OrgClaimedInvite` edge in the connection. */ -export interface OrgClaimedInviteEdge { - cursor?: string | null; - /** The `OrgClaimedInvite` at the end of the edge. */ - node?: OrgClaimedInvite | null; -} -export type OrgClaimedInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgClaimedInviteSelect; - }; -}; -/** A `AuditLogAuth` edge in the connection. */ -export interface AuditLogAuthEdge { - cursor?: string | null; - /** The `AuditLogAuth` at the end of the edge. */ - node?: AuditLogAuth | null; -} -export type AuditLogAuthEdgeSelect = { - cursor?: boolean; - node?: { - select: AuditLogAuthSelect; - }; -}; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { - cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; -} -export type AppPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionDefaultSelect; - }; -}; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} -export type RoleTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: RoleTypeSelect; - }; -}; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { - cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; -} -export type DevicesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DevicesModuleSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} -export type OrgMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipDefaultSelect; - }; -}; -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} -export type NodeTypeRegistryEdgeSelect = { - cursor?: boolean; - node?: { - select: NodeTypeRegistrySelect; - }; -}; -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -export type AppLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapsDefaultSelect; - }; -}; -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -export type OrgLimitCapsDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapsDefaultSelect; - }; -}; -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -export type AppLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCapSelect; - }; -}; -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -export type OrgLimitCapEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitCapSelect; - }; -}; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { - cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; -} -export type AppLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitDefaultSelect; - }; -}; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { - cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; -} -export type OrgLimitDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitDefaultSelect; - }; -}; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -export type AppLimitCreditCodeEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitCreditCodeSelect; - }; -}; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { - cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; -} -export type AppLimitWarningEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitWarningSelect; - }; -}; -/** A `PubkeySetting` edge in the connection. */ -export interface PubkeySettingEdge { - cursor?: string | null; - /** The `PubkeySetting` at the end of the edge. */ - node?: PubkeySetting | null; -} -export type PubkeySettingEdgeSelect = { - cursor?: boolean; - node?: { - select: PubkeySettingSelect; - }; -}; -/** A `RateLimitsModule` edge in the connection. */ -export interface RateLimitsModuleEdge { - cursor?: string | null; - /** The `RateLimitsModule` at the end of the edge. */ - node?: RateLimitsModule | null; -} -export type RateLimitsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitsModuleSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; -/** A `RlsSetting` edge in the connection. */ -export interface RlsSettingEdge { - cursor?: string | null; - /** The `RlsSetting` at the end of the edge. */ - node?: RlsSetting | null; -} -export type RlsSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: RlsSettingSelect; - }; -}; -/** A `RlsModule` edge in the connection. */ -export interface RlsModuleEdge { - cursor?: string | null; - /** The `RlsModule` at the end of the edge. */ - node?: RlsModule | null; -} -export type RlsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RlsModuleSelect; - }; -}; -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} -export type RateLimitMetersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitMetersModuleSelect; - }; -}; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { - cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; -} -export type PlansModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PlansModuleSelect; - }; -}; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} -export type DatabaseSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSettingSelect; - }; -}; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} -export type OrgMembershipSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSettingSelect; - }; -}; -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { - cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; -} -export type AppLimitEventEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitEventSelect; - }; -}; -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { - cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; -} -export type OrgLimitEventEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitEventSelect; - }; -}; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { - cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; -} -export type AppMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipSelect; - }; -}; -/** A `User` edge in the connection. */ -export interface UserEdge { - cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; -} -export type UserEdgeSelect = { - cursor?: boolean; - node?: { - select: UserSelect; - }; -}; -/** A `WebauthnSetting` edge in the connection. */ -export interface WebauthnSettingEdge { - cursor?: string | null; - /** The `WebauthnSetting` at the end of the edge. */ - node?: WebauthnSetting | null; -} -export type WebauthnSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: WebauthnSettingSelect; - }; -}; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { - cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; -} -export type BillingModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingModuleSelect; - }; -}; -/** A `BillingProviderModule` edge in the connection. */ -export interface BillingProviderModuleEdge { - cursor?: string | null; - /** The `BillingProviderModule` at the end of the edge. */ - node?: BillingProviderModule | null; -} -export type BillingProviderModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: BillingProviderModuleSelect; - }; -}; -/** A `HierarchyModule` edge in the connection. */ -export interface HierarchyModuleEdge { - cursor?: string | null; - /** The `HierarchyModule` at the end of the edge. */ - node?: HierarchyModule | null; -} -export type HierarchyModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: HierarchyModuleSelect; - }; -}; diff --git a/sdk/constructive-sdk/src/public/orm/models/appAdminGrant.ts b/sdk/constructive-sdk/src/public/orm/models/appAdminGrant.ts deleted file mode 100644 index fd80edc234..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appAdminGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppAdminGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppAdminGrant, - AppAdminGrantWithRelations, - AppAdminGrantSelect, - AppAdminGrantFilter, - AppAdminGrantOrderBy, - CreateAppAdminGrantInput, - UpdateAppAdminGrantInput, - AppAdminGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppAdminGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrant', - document, - variables, - transform: (data: { - appAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppAdminGrant', - 'appAdminGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppAdminGrantFilter', - 'AppAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppAdminGrant', - fieldName: 'appAdminGrant', - document, - variables, - transform: (data: { - appAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppAdminGrant', - 'createAppAdminGrant', - 'appAdminGrant', - args.select, - args.data, - 'CreateAppAdminGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'createAppAdminGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppAdminGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppAdminGrant', - 'updateAppAdminGrant', - 'appAdminGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppAdminGrantInput', - 'id', - 'appAdminGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'updateAppAdminGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppAdminGrant: { - appAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppAdminGrant', - 'deleteAppAdminGrant', - 'appAdminGrant', - { - id: args.where.id, - }, - 'DeleteAppAdminGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppAdminGrant', - fieldName: 'deleteAppAdminGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appClaimedInvite.ts b/sdk/constructive-sdk/src/public/orm/models/appClaimedInvite.ts deleted file mode 100644 index c9e66ec9c8..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appClaimedInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppClaimedInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppClaimedInvite, - AppClaimedInviteWithRelations, - AppClaimedInviteSelect, - AppClaimedInviteFilter, - AppClaimedInviteOrderBy, - CreateAppClaimedInviteInput, - UpdateAppClaimedInviteInput, - AppClaimedInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppClaimedInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvite', - document, - variables, - transform: (data: { - appClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appClaimedInvite: data.appClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppClaimedInvite', - 'appClaimedInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppClaimedInviteFilter', - 'AppClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppClaimedInvite', - fieldName: 'appClaimedInvite', - document, - variables, - transform: (data: { - appClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appClaimedInvite: data.appClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppClaimedInvite', - 'createAppClaimedInvite', - 'appClaimedInvite', - args.select, - args.data, - 'CreateAppClaimedInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'createAppClaimedInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppClaimedInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppClaimedInvite', - 'updateAppClaimedInvite', - 'appClaimedInvite', - args.select, - args.where.id, - args.data, - 'UpdateAppClaimedInviteInput', - 'id', - 'appClaimedInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'updateAppClaimedInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppClaimedInvite: { - appClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppClaimedInvite', - 'deleteAppClaimedInvite', - 'appClaimedInvite', - { - id: args.where.id, - }, - 'DeleteAppClaimedInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppClaimedInvite', - fieldName: 'deleteAppClaimedInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appGrant.ts b/sdk/constructive-sdk/src/public/orm/models/appGrant.ts deleted file mode 100644 index 4481fb3d83..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppGrant, - AppGrantWithRelations, - AppGrantSelect, - AppGrantFilter, - AppGrantOrderBy, - CreateAppGrantInput, - UpdateAppGrantInput, - AppGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrant', - document, - variables, - transform: (data: { - appGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appGrant: data.appGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppGrant', - 'appGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppGrantFilter', - 'AppGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppGrant', - fieldName: 'appGrant', - document, - variables, - transform: (data: { - appGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appGrant: data.appGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppGrant', - 'createAppGrant', - 'appGrant', - args.select, - args.data, - 'CreateAppGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'createAppGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppGrant', - 'updateAppGrant', - 'appGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppGrantInput', - 'id', - 'appGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'updateAppGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppGrant: { - appGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppGrant', - 'deleteAppGrant', - 'appGrant', - { - id: args.where.id, - }, - 'DeleteAppGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppGrant', - fieldName: 'deleteAppGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appInvite.ts b/sdk/constructive-sdk/src/public/orm/models/appInvite.ts deleted file mode 100644 index 5fcbff9369..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppInvite, - AppInviteWithRelations, - AppInviteSelect, - AppInviteFilter, - AppInviteOrderBy, - CreateAppInviteInput, - UpdateAppInviteInput, - AppInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvite', - document, - variables, - transform: (data: { - appInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appInvite: data.appInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppInvite', - 'appInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppInviteFilter', - 'AppInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppInvite', - fieldName: 'appInvite', - document, - variables, - transform: (data: { - appInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appInvite: data.appInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInvite', - 'createAppInvite', - 'appInvite', - args.select, - args.data, - 'CreateAppInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'createAppInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppInvite', - 'updateAppInvite', - 'appInvite', - args.select, - args.where.id, - args.data, - 'UpdateAppInviteInput', - 'id', - 'appInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'updateAppInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppInvite: { - appInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppInvite', - 'deleteAppInvite', - 'appInvite', - { - id: args.where.id, - }, - 'DeleteAppInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInvite', - fieldName: 'deleteAppInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimit.ts b/sdk/constructive-sdk/src/public/orm/models/appLimit.ts deleted file mode 100644 index 2e109cb07e..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimit, - AppLimitWithRelations, - AppLimitSelect, - AppLimitFilter, - AppLimitOrderBy, - CreateAppLimitInput, - UpdateAppLimitInput, - AppLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimit', - document, - variables, - transform: (data: { - appLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimit: data.appLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimit', - 'appLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitFilter', - 'AppLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimit', - fieldName: 'appLimit', - document, - variables, - transform: (data: { - appLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimit: data.appLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimit', - 'createAppLimit', - 'appLimit', - args.select, - args.data, - 'CreateAppLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'createAppLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimit', - 'updateAppLimit', - 'appLimit', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitInput', - 'id', - 'appLimitPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'updateAppLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimit: { - appLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimit', - 'deleteAppLimit', - 'appLimit', - { - id: args.where.id, - }, - 'DeleteAppLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimit', - fieldName: 'deleteAppLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitCap.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitCap.ts deleted file mode 100644 index 3359af7c92..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitCap.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCap model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCap, - AppLimitCapWithRelations, - AppLimitCapSelect, - AppLimitCapFilter, - AppLimitCapOrderBy, - CreateAppLimitCapInput, - UpdateAppLimitCapInput, - AppLimitCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCap', - document, - variables, - transform: (data: { - appLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCap: data.appLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCap', - 'appLimitCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCapFilter', - 'AppLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCap', - fieldName: 'appLimitCap', - document, - variables, - transform: (data: { - appLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCap: data.appLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCap', - 'createAppLimitCap', - 'appLimitCap', - args.select, - args.data, - 'CreateAppLimitCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'createAppLimitCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCap', - 'updateAppLimitCap', - 'appLimitCap', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCapInput', - 'id', - 'appLimitCapPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'updateAppLimitCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCap: { - appLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCap', - 'deleteAppLimitCap', - 'appLimitCap', - { - id: args.where.id, - }, - 'DeleteAppLimitCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCap', - fieldName: 'deleteAppLimitCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitCapsDefault.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitCapsDefault.ts deleted file mode 100644 index 0eac9c6f8b..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitCapsDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCapsDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCapsDefault, - AppLimitCapsDefaultWithRelations, - AppLimitCapsDefaultSelect, - AppLimitCapsDefaultFilter, - AppLimitCapsDefaultOrderBy, - CreateAppLimitCapsDefaultInput, - UpdateAppLimitCapsDefaultInput, - AppLimitCapsDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCapsDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefault', - document, - variables, - transform: (data: { - appLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCapsDefault: data.appLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCapsDefault', - 'appLimitCapsDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCapsDefaultFilter', - 'AppLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCapsDefault', - fieldName: 'appLimitCapsDefault', - document, - variables, - transform: (data: { - appLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCapsDefault: data.appLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCapsDefault', - 'createAppLimitCapsDefault', - 'appLimitCapsDefault', - args.select, - args.data, - 'CreateAppLimitCapsDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'createAppLimitCapsDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCapsDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCapsDefault', - 'updateAppLimitCapsDefault', - 'appLimitCapsDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCapsDefaultInput', - 'id', - 'appLimitCapsDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'updateAppLimitCapsDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCapsDefault: { - appLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCapsDefault', - 'deleteAppLimitCapsDefault', - 'appLimitCapsDefault', - { - id: args.where.id, - }, - 'DeleteAppLimitCapsDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCapsDefault', - fieldName: 'deleteAppLimitCapsDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitCredit.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitCredit.ts deleted file mode 100644 index 87ef262696..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitCredit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCredit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCredit, - AppLimitCreditWithRelations, - AppLimitCreditSelect, - AppLimitCreditFilter, - AppLimitCreditOrderBy, - CreateAppLimitCreditInput, - UpdateAppLimitCreditInput, - AppLimitCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredit', - document, - variables, - transform: (data: { - appLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCredit: data.appLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCredit', - 'appLimitCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditFilter', - 'AppLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCredit', - fieldName: 'appLimitCredit', - document, - variables, - transform: (data: { - appLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCredit: data.appLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCredit', - 'createAppLimitCredit', - 'appLimitCredit', - args.select, - args.data, - 'CreateAppLimitCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'createAppLimitCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCredit', - 'updateAppLimitCredit', - 'appLimitCredit', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditInput', - 'id', - 'appLimitCreditPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'updateAppLimitCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCredit: { - appLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCredit', - 'deleteAppLimitCredit', - 'appLimitCredit', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCredit', - fieldName: 'deleteAppLimitCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitCreditCode.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitCreditCode.ts deleted file mode 100644 index 1d21f2d211..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitCreditCode.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitCreditCode model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditCode, - AppLimitCreditCodeWithRelations, - AppLimitCreditCodeSelect, - AppLimitCreditCodeFilter, - AppLimitCreditCodeOrderBy, - CreateAppLimitCreditCodeInput, - UpdateAppLimitCreditCodeInput, - AppLimitCreditCodePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditCodeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCodes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCode: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCode', - document, - variables, - transform: (data: { - appLimitCreditCodes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCode: data.appLimitCreditCodes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCode: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCode', - 'appLimitCreditCodes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditCodeFilter', - 'AppLimitCreditCodeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCode', - fieldName: 'appLimitCreditCode', - document, - variables, - transform: (data: { - appLimitCreditCodes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCode: data.appLimitCreditCodes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditCode', - 'createAppLimitCreditCode', - 'appLimitCreditCode', - args.select, - args.data, - 'CreateAppLimitCreditCodeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'createAppLimitCreditCode', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditCodePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditCode', - 'updateAppLimitCreditCode', - 'appLimitCreditCode', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditCodeInput', - 'id', - 'appLimitCreditCodePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'updateAppLimitCreditCode', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditCode: { - appLimitCreditCode: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditCode', - 'deleteAppLimitCreditCode', - 'appLimitCreditCode', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditCodeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCode', - fieldName: 'deleteAppLimitCreditCode', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitCreditCodeItem.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitCreditCodeItem.ts deleted file mode 100644 index ade7d6cdc0..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitCreditCodeItem.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppLimitCreditCodeItem model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditCodeItem, - AppLimitCreditCodeItemWithRelations, - AppLimitCreditCodeItemSelect, - AppLimitCreditCodeItemFilter, - AppLimitCreditCodeItemOrderBy, - CreateAppLimitCreditCodeItemInput, - UpdateAppLimitCreditCodeItemInput, - AppLimitCreditCodeItemPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditCodeItemModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItems: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItems', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItem: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItem', - document, - variables, - transform: (data: { - appLimitCreditCodeItems?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCodeItem: data.appLimitCreditCodeItems?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditCodeItem: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditCodeItem', - 'appLimitCreditCodeItems', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditCodeItemFilter', - 'AppLimitCreditCodeItemOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'appLimitCreditCodeItem', - document, - variables, - transform: (data: { - appLimitCreditCodeItems?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditCodeItem: data.appLimitCreditCodeItems?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditCodeItem', - 'createAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - args.select, - args.data, - 'CreateAppLimitCreditCodeItemInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'createAppLimitCreditCodeItem', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditCodeItemPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditCodeItem', - 'updateAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditCodeItemInput', - 'id', - 'appLimitCreditCodeItemPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'updateAppLimitCreditCodeItem', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditCodeItem: { - appLimitCreditCodeItem: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditCodeItem', - 'deleteAppLimitCreditCodeItem', - 'appLimitCreditCodeItem', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditCodeItemInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditCodeItem', - fieldName: 'deleteAppLimitCreditCodeItem', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitCreditRedemption.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitCreditRedemption.ts deleted file mode 100644 index f60a8e62f9..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitCreditRedemption.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppLimitCreditRedemption model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitCreditRedemption, - AppLimitCreditRedemptionWithRelations, - AppLimitCreditRedemptionSelect, - AppLimitCreditRedemptionFilter, - AppLimitCreditRedemptionOrderBy, - CreateAppLimitCreditRedemptionInput, - UpdateAppLimitCreditRedemptionInput, - AppLimitCreditRedemptionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitCreditRedemptionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemptions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemptions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemption: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemption', - document, - variables, - transform: (data: { - appLimitCreditRedemptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditRedemption: data.appLimitCreditRedemptions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitCreditRedemption: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitCreditRedemption', - 'appLimitCreditRedemptions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitCreditRedemptionFilter', - 'AppLimitCreditRedemptionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitCreditRedemption', - fieldName: 'appLimitCreditRedemption', - document, - variables, - transform: (data: { - appLimitCreditRedemptions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitCreditRedemption: data.appLimitCreditRedemptions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitCreditRedemption', - 'createAppLimitCreditRedemption', - 'appLimitCreditRedemption', - args.select, - args.data, - 'CreateAppLimitCreditRedemptionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'createAppLimitCreditRedemption', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitCreditRedemptionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitCreditRedemption', - 'updateAppLimitCreditRedemption', - 'appLimitCreditRedemption', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitCreditRedemptionInput', - 'id', - 'appLimitCreditRedemptionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'updateAppLimitCreditRedemption', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitCreditRedemption: { - appLimitCreditRedemption: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitCreditRedemption', - 'deleteAppLimitCreditRedemption', - 'appLimitCreditRedemption', - { - id: args.where.id, - }, - 'DeleteAppLimitCreditRedemptionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitCreditRedemption', - fieldName: 'deleteAppLimitCreditRedemption', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitDefault.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitDefault.ts deleted file mode 100644 index f9df6376e5..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitDefault, - AppLimitDefaultWithRelations, - AppLimitDefaultSelect, - AppLimitDefaultFilter, - AppLimitDefaultOrderBy, - CreateAppLimitDefaultInput, - UpdateAppLimitDefaultInput, - AppLimitDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefault', - document, - variables, - transform: (data: { - appLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitDefault', - 'appLimitDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitDefaultFilter', - 'AppLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitDefault', - fieldName: 'appLimitDefault', - document, - variables, - transform: (data: { - appLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitDefault', - 'createAppLimitDefault', - 'appLimitDefault', - args.select, - args.data, - 'CreateAppLimitDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'createAppLimitDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitDefault', - 'updateAppLimitDefault', - 'appLimitDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitDefaultInput', - 'id', - 'appLimitDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'updateAppLimitDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitDefault: { - appLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitDefault', - 'deleteAppLimitDefault', - 'appLimitDefault', - { - id: args.where.id, - }, - 'DeleteAppLimitDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitDefault', - fieldName: 'deleteAppLimitDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts deleted file mode 100644 index ef7249f3e9..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitEvent model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitEvent, - AppLimitEventWithRelations, - AppLimitEventSelect, - AppLimitEventFilter, - AppLimitEventOrderBy, - CreateAppLimitEventInput, - UpdateAppLimitEventInput, - AppLimitEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvent', - document, - variables, - transform: (data: { - appLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitEvent', - 'appLimitEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitEventFilter', - 'AppLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitEvent', - fieldName: 'appLimitEvent', - document, - variables, - transform: (data: { - appLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitEvent', - 'createAppLimitEvent', - 'appLimitEvent', - args.select, - args.data, - 'CreateAppLimitEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'createAppLimitEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitEvent', - 'updateAppLimitEvent', - 'appLimitEvent', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitEventInput', - 'id', - 'appLimitEventPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'updateAppLimitEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitEvent: { - appLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitEvent', - 'deleteAppLimitEvent', - 'appLimitEvent', - { - id: args.where.id, - }, - 'DeleteAppLimitEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitEvent', - fieldName: 'deleteAppLimitEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitWarning.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitWarning.ts deleted file mode 100644 index 8366dd8336..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitWarning.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppLimitWarning model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppLimitWarning, - AppLimitWarningWithRelations, - AppLimitWarningSelect, - AppLimitWarningFilter, - AppLimitWarningOrderBy, - CreateAppLimitWarningInput, - UpdateAppLimitWarningInput, - AppLimitWarningPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppLimitWarningModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarnings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarnings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarning', - document, - variables, - transform: (data: { - appLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppLimitWarning', - 'appLimitWarnings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppLimitWarningFilter', - 'AppLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppLimitWarning', - fieldName: 'appLimitWarning', - document, - variables, - transform: (data: { - appLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppLimitWarning', - 'createAppLimitWarning', - 'appLimitWarning', - args.select, - args.data, - 'CreateAppLimitWarningInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'createAppLimitWarning', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppLimitWarningPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppLimitWarning', - 'updateAppLimitWarning', - 'appLimitWarning', - args.select, - args.where.id, - args.data, - 'UpdateAppLimitWarningInput', - 'id', - 'appLimitWarningPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'updateAppLimitWarning', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppLimitWarning: { - appLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppLimitWarning', - 'deleteAppLimitWarning', - 'appLimitWarning', - { - id: args.where.id, - }, - 'DeleteAppLimitWarningInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppLimitWarning', - fieldName: 'deleteAppLimitWarning', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appMembership.ts b/sdk/constructive-sdk/src/public/orm/models/appMembership.ts deleted file mode 100644 index a4011c41ab..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appMembership.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppMembership model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppMembership, - AppMembershipWithRelations, - AppMembershipSelect, - AppMembershipFilter, - AppMembershipOrderBy, - CreateAppMembershipInput, - UpdateAppMembershipInput, - AppMembershipPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMemberships: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMemberships', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMembership', - document, - variables, - transform: (data: { - appMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembership: data.appMemberships?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembership', - 'appMemberships', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipFilter', - 'AppMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembership', - fieldName: 'appMembership', - document, - variables, - transform: (data: { - appMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembership: data.appMemberships?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembership', - 'createAppMembership', - 'appMembership', - args.select, - args.data, - 'CreateAppMembershipInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'createAppMembership', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembership', - 'updateAppMembership', - 'appMembership', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipInput', - 'id', - 'appMembershipPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'updateAppMembership', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembership: { - appMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembership', - 'deleteAppMembership', - 'appMembership', - { - id: args.where.id, - }, - 'DeleteAppMembershipInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembership', - fieldName: 'deleteAppMembership', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appMembershipDefault.ts b/sdk/constructive-sdk/src/public/orm/models/appMembershipDefault.ts deleted file mode 100644 index f69f1aca69..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appMembershipDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppMembershipDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppMembershipDefault, - AppMembershipDefaultWithRelations, - AppMembershipDefaultSelect, - AppMembershipDefaultFilter, - AppMembershipDefaultOrderBy, - CreateAppMembershipDefaultInput, - UpdateAppMembershipDefaultInput, - AppMembershipDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppMembershipDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefault', - document, - variables, - transform: (data: { - appMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppMembershipDefault', - 'appMembershipDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppMembershipDefaultFilter', - 'AppMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppMembershipDefault', - fieldName: 'appMembershipDefault', - document, - variables, - transform: (data: { - appMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppMembershipDefault', - 'createAppMembershipDefault', - 'appMembershipDefault', - args.select, - args.data, - 'CreateAppMembershipDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'createAppMembershipDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppMembershipDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppMembershipDefault', - 'updateAppMembershipDefault', - 'appMembershipDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppMembershipDefaultInput', - 'id', - 'appMembershipDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'updateAppMembershipDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppMembershipDefault: { - appMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppMembershipDefault', - 'deleteAppMembershipDefault', - 'appMembershipDefault', - { - id: args.where.id, - }, - 'DeleteAppMembershipDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppMembershipDefault', - fieldName: 'deleteAppMembershipDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appOwnerGrant.ts b/sdk/constructive-sdk/src/public/orm/models/appOwnerGrant.ts deleted file mode 100644 index eeb815d842..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appOwnerGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppOwnerGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppOwnerGrant, - AppOwnerGrantWithRelations, - AppOwnerGrantSelect, - AppOwnerGrantFilter, - AppOwnerGrantOrderBy, - CreateAppOwnerGrantInput, - UpdateAppOwnerGrantInput, - AppOwnerGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppOwnerGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrant', - document, - variables, - transform: (data: { - appOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppOwnerGrant', - 'appOwnerGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppOwnerGrantFilter', - 'AppOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppOwnerGrant', - fieldName: 'appOwnerGrant', - document, - variables, - transform: (data: { - appOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppOwnerGrant', - 'createAppOwnerGrant', - 'appOwnerGrant', - args.select, - args.data, - 'CreateAppOwnerGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'createAppOwnerGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppOwnerGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppOwnerGrant', - 'updateAppOwnerGrant', - 'appOwnerGrant', - args.select, - args.where.id, - args.data, - 'UpdateAppOwnerGrantInput', - 'id', - 'appOwnerGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'updateAppOwnerGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppOwnerGrant: { - appOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppOwnerGrant', - 'deleteAppOwnerGrant', - 'appOwnerGrant', - { - id: args.where.id, - }, - 'DeleteAppOwnerGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppOwnerGrant', - fieldName: 'deleteAppOwnerGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appPermission.ts b/sdk/constructive-sdk/src/public/orm/models/appPermission.ts deleted file mode 100644 index e71adea658..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appPermission.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AppPermission model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppPermission, - AppPermissionWithRelations, - AppPermissionSelect, - AppPermissionFilter, - AppPermissionOrderBy, - CreateAppPermissionInput, - UpdateAppPermissionInput, - AppPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermission', - 'appPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionFilter', - 'AppPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermission', - fieldName: 'appPermission', - document, - variables, - transform: (data: { - appPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermission: data.appPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermission', - 'createAppPermission', - 'appPermission', - args.select, - args.data, - 'CreateAppPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'createAppPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermission', - 'updateAppPermission', - 'appPermission', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionInput', - 'id', - 'appPermissionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'updateAppPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermission: { - appPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermission', - 'deleteAppPermission', - 'appPermission', - { - id: args.where.id, - }, - 'DeleteAppPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermission', - fieldName: 'deleteAppPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appPermissionDefault.ts b/sdk/constructive-sdk/src/public/orm/models/appPermissionDefault.ts deleted file mode 100644 index d5511aed01..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/appPermissionDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * AppPermissionDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AppPermissionDefault, - AppPermissionDefaultWithRelations, - AppPermissionDefaultSelect, - AppPermissionDefaultFilter, - AppPermissionDefaultOrderBy, - CreateAppPermissionDefaultInput, - UpdateAppPermissionDefaultInput, - AppPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AppPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - appPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AppPermissionDefault', - 'appPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AppPermissionDefaultFilter', - 'AppPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AppPermissionDefault', - fieldName: 'appPermissionDefault', - document, - variables, - transform: (data: { - appPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppPermissionDefault', - 'createAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.data, - 'CreateAppPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'createAppPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AppPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AppPermissionDefault', - 'updateAppPermissionDefault', - 'appPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateAppPermissionDefaultInput', - 'id', - 'appPermissionDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'updateAppPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAppPermissionDefault: { - appPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AppPermissionDefault', - 'deleteAppPermissionDefault', - 'appPermissionDefault', - { - id: args.where.id, - }, - 'DeleteAppPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppPermissionDefault', - fieldName: 'deleteAppPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/auditLogAuth.ts b/sdk/constructive-sdk/src/public/orm/models/auditLogAuth.ts deleted file mode 100644 index 8a6665612c..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/auditLogAuth.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLogAuth model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - AuditLogAuth, - AuditLogAuthWithRelations, - AuditLogAuthSelect, - AuditLogAuthFilter, - AuditLogAuthOrderBy, - CreateAuditLogAuthInput, - UpdateAuditLogAuthInput, - AuditLogAuthPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogAuthModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuths: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuths', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuth: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuth', - document, - variables, - transform: (data: { - auditLogAuths?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogAuth: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLogAuth', - 'auditLogAuths', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogAuthFilter', - 'AuditLogAuthOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLogAuth', - fieldName: 'auditLogAuth', - document, - variables, - transform: (data: { - auditLogAuths?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLogAuth', - 'createAuditLogAuth', - 'auditLogAuth', - args.select, - args.data, - 'CreateAuditLogAuthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'createAuditLogAuth', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogAuthPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLogAuth', - 'updateAuditLogAuth', - 'auditLogAuth', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogAuthInput', - 'id', - 'auditLogAuthPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'updateAuditLogAuth', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLogAuth: { - auditLogAuth: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLogAuth', - 'deleteAuditLogAuth', - 'auditLogAuth', - { - id: args.where.id, - }, - 'DeleteAuditLogAuthInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLogAuth', - fieldName: 'deleteAuditLogAuth', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/cryptoAddress.ts b/sdk/constructive-sdk/src/public/orm/models/cryptoAddress.ts deleted file mode 100644 index 11914bd9d1..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/cryptoAddress.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * CryptoAddress model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - CryptoAddress, - CryptoAddressWithRelations, - CryptoAddressSelect, - CryptoAddressFilter, - CryptoAddressOrderBy, - CreateCryptoAddressInput, - UpdateCryptoAddressInput, - CryptoAddressPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class CryptoAddressModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddresses: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddresses', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddress: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddress', - document, - variables, - transform: (data: { - cryptoAddresses?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - cryptoAddress: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'CryptoAddress', - 'cryptoAddresses', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'CryptoAddressFilter', - 'CryptoAddressOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'CryptoAddress', - fieldName: 'cryptoAddress', - document, - variables, - transform: (data: { - cryptoAddresses?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'CryptoAddress', - 'createCryptoAddress', - 'cryptoAddress', - args.select, - args.data, - 'CreateCryptoAddressInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'createCryptoAddress', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - CryptoAddressPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'CryptoAddress', - 'updateCryptoAddress', - 'cryptoAddress', - args.select, - args.where.id, - args.data, - 'UpdateCryptoAddressInput', - 'id', - 'cryptoAddressPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'updateCryptoAddress', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteCryptoAddress: { - cryptoAddress: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'CryptoAddress', - 'deleteCryptoAddress', - 'cryptoAddress', - { - id: args.where.id, - }, - 'DeleteCryptoAddressInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'CryptoAddress', - fieldName: 'deleteCryptoAddress', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/email.ts b/sdk/constructive-sdk/src/public/orm/models/email.ts deleted file mode 100644 index 325475b9ce..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/email.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * Email model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - Email, - EmailWithRelations, - EmailSelect, - EmailFilter, - EmailOrderBy, - CreateEmailInput, - UpdateEmailInput, - EmailPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EmailModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - emails: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'Email', - 'emails', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'emails', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - email: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'Email', - 'emails', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'email', - document, - variables, - transform: (data: { - emails?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - email: data.emails?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - email: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'Email', - 'emails', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EmailFilter', - 'EmailOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'Email', - fieldName: 'email', - document, - variables, - transform: (data: { - emails?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - email: data.emails?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Email', - 'createEmail', - 'email', - args.select, - args.data, - 'CreateEmailInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'createEmail', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EmailPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'Email', - 'updateEmail', - 'email', - args.select, - args.where.id, - args.data, - 'UpdateEmailInput', - 'id', - 'emailPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'updateEmail', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEmail: { - email: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Email', - 'deleteEmail', - 'email', - { - id: args.where.id, - }, - 'DeleteEmailInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Email', - fieldName: 'deleteEmail', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/identityProvider.ts b/sdk/constructive-sdk/src/public/orm/models/identityProvider.ts deleted file mode 100644 index cdc672145c..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/identityProvider.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * IdentityProvider model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - IdentityProvider, - IdentityProviderWithRelations, - IdentityProviderSelect, - IdentityProviderFilter, - IdentityProviderOrderBy, - CreateIdentityProviderInput, - UpdateIdentityProviderInput, - IdentityProviderPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class IdentityProviderModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - identityProviders: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'IdentityProvider', - 'identityProviders', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'IdentityProviderFilter', - 'IdentityProviderOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'IdentityProvider', - fieldName: 'identityProviders', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - identityProvider: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'IdentityProvider', - 'identityProviders', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'IdentityProviderFilter', - 'IdentityProviderOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'IdentityProvider', - fieldName: 'identityProvider', - document, - variables, - transform: (data: { - identityProviders?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - identityProvider: data.identityProviders?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createIdentityProvider: { - identityProvider: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'IdentityProvider', - 'createIdentityProvider', - 'identityProvider', - args.select, - args.data, - 'CreateIdentityProviderInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'IdentityProvider', - fieldName: 'createIdentityProvider', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts deleted file mode 100644 index 6a43b55b56..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * Models barrel export - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; -export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; -export { AppPermissionModel } from './appPermission'; -export { OrgPermissionModel } from './orgPermission'; -export { DatabaseModel } from './database'; -export { SchemaModel } from './schema'; -export { TableModel } from './table'; -export { CheckConstraintModel } from './checkConstraint'; -export { FieldModel } from './field'; -export { SpatialRelationModel } from './spatialRelation'; -export { ForeignKeyConstraintModel } from './foreignKeyConstraint'; -export { FullTextSearchModel } from './fullTextSearch'; -export { IndexModel } from './indexModel'; -export { PolicyModel } from './policy'; -export { PrimaryKeyConstraintModel } from './primaryKeyConstraint'; -export { TableGrantModel } from './tableGrant'; -export { TriggerModel } from './trigger'; -export { UniqueConstraintModel } from './uniqueConstraint'; -export { ViewModel } from './view'; -export { ViewTableModel } from './viewTable'; -export { ViewGrantModel } from './viewGrant'; -export { ViewRuleModel } from './viewRule'; -export { EmbeddingChunkModel } from './embeddingChunk'; -export { SecureTableProvisionModel } from './secureTableProvision'; -export { RelationProvisionModel } from './relationProvision'; -export { SessionSecretsModuleModel } from './sessionSecretsModule'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; -export { RealtimeModuleModel } from './realtimeModule'; -export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; -export { SchemaGrantModel } from './schemaGrant'; -export { DefaultPrivilegeModel } from './defaultPrivilege'; -export { EnumModel } from './enum'; -export { FunctionModel } from './function'; -export { ApiSchemaModel } from './apiSchema'; -export { ApiModuleModel } from './apiModule'; -export { DomainModel } from './domain'; -export { SiteMetadatumModel } from './siteMetadatum'; -export { SiteModuleModel } from './siteModule'; -export { SiteThemeModel } from './siteTheme'; -export { CorsSettingModel } from './corsSetting'; -export { MerkleStoreModuleModel } from './merkleStoreModule'; -export { GraphModuleModel } from './graphModule'; -export { TriggerFunctionModel } from './triggerFunction'; -export { PartitionModel } from './partition'; -export { DatabaseTransferModel } from './databaseTransfer'; -export { ApiModel } from './api'; -export { SiteModel } from './site'; -export { AppModel } from './app'; -export { ApiSettingModel } from './apiSetting'; -export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; -export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; -export { CryptoAuthModuleModel } from './cryptoAuthModule'; -export { DefaultIdsModuleModel } from './defaultIdsModule'; -export { DenormalizedTableFieldModel } from './denormalizedTableField'; -export { EmailsModuleModel } from './emailsModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; -export { InvitesModuleModel } from './invitesModule'; -export { EventsModuleModel } from './eventsModule'; -export { LimitsModuleModel } from './limitsModule'; -export { MembershipTypesModuleModel } from './membershipTypesModule'; -export { MembershipsModuleModel } from './membershipsModule'; -export { PermissionsModuleModel } from './permissionsModule'; -export { PhoneNumbersModuleModel } from './phoneNumbersModule'; -export { ProfilesModuleModel } from './profilesModule'; -export { UserStateModuleModel } from './userStateModule'; -export { SessionsModuleModel } from './sessionsModule'; -export { UserAuthModuleModel } from './userAuthModule'; -export { UsersModuleModel } from './usersModule'; -export { BlueprintModel } from './blueprint'; -export { BlueprintTemplateModel } from './blueprintTemplate'; -export { BlueprintConstructionModel } from './blueprintConstruction'; -export { StorageModuleModel } from './storageModule'; -export { EntityTypeProvisionModel } from './entityTypeProvision'; -export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; -export { WebauthnAuthModuleModel } from './webauthnAuthModule'; -export { NotificationsModuleModel } from './notificationsModule'; -export { InferenceLogModuleModel } from './inferenceLogModule'; -export { ComputeLogModuleModel } from './computeLogModule'; -export { TransferLogModuleModel } from './transferLogModule'; -export { StorageLogModuleModel } from './storageLogModule'; -export { DbUsageModuleModel } from './dbUsageModule'; -export { AgentModuleModel } from './agentModule'; -export { NamespaceModuleModel } from './namespaceModule'; -export { FunctionModuleModel } from './functionModule'; -export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { AppAdminGrantModel } from './appAdminGrant'; -export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppGrantModel } from './appGrant'; -export { OrgMembershipModel } from './orgMembership'; -export { OrgMemberModel } from './orgMember'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { OrgMemberProfileModel } from './orgMemberProfile'; -export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { AppLimitModel } from './appLimit'; -export { AppLimitCreditModel } from './appLimitCredit'; -export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; -export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; -export { OrgLimitModel } from './orgLimit'; -export { OrgLimitCreditModel } from './orgLimitCredit'; -export { OrgLimitAggregateModel } from './orgLimitAggregate'; -export { OrgLimitWarningModel } from './orgLimitWarning'; -export { EmailModel } from './email'; -export { PhoneNumberModel } from './phoneNumber'; -export { CryptoAddressModel } from './cryptoAddress'; -export { WebauthnCredentialModel } from './webauthnCredential'; -export { AppInviteModel } from './appInvite'; -export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgInviteModel } from './orgInvite'; -export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AuditLogAuthModel } from './auditLogAuth'; -export { IdentityProviderModel } from './identityProvider'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { RoleTypeModel } from './roleType'; -export { MigrateFileModel } from './migrateFile'; -export { DevicesModuleModel } from './devicesModule'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { NodeTypeRegistryModel } from './nodeTypeRegistry'; -export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; -export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; -export { AppLimitCapModel } from './appLimitCap'; -export { OrgLimitCapModel } from './orgLimitCap'; -export { UserConnectedAccountModel } from './userConnectedAccount'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { AppLimitWarningModel } from './appLimitWarning'; -export { PubkeySettingModel } from './pubkeySetting'; -export { RateLimitsModuleModel } from './rateLimitsModule'; -export { MembershipTypeModel } from './membershipType'; -export { RlsSettingModel } from './rlsSetting'; -export { RlsModuleModel } from './rlsModule'; -export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; -export { PlansModuleModel } from './plansModule'; -export { SqlActionModel } from './sqlAction'; -export { DatabaseSettingModel } from './databaseSetting'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; -export { AppMembershipModel } from './appMembership'; -export { UserModel } from './user'; -export { AstMigrationModel } from './astMigration'; -export { WebauthnSettingModel } from './webauthnSetting'; -export { BillingModuleModel } from './billingModule'; -export { BillingProviderModuleModel } from './billingProviderModule'; -export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-sdk/src/public/orm/models/membershipType.ts b/sdk/constructive-sdk/src/public/orm/models/membershipType.ts deleted file mode 100644 index ee7ed596c0..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/membershipType.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * MembershipType model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - MembershipType, - MembershipTypeWithRelations, - MembershipTypeSelect, - MembershipTypeFilter, - MembershipTypeOrderBy, - CreateMembershipTypeInput, - UpdateMembershipTypeInput, - MembershipTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class MembershipTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipType', - document, - variables, - transform: (data: { - membershipTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - membershipType: data.membershipTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: number; - select: S; - } & StrictSelect - ): QueryBuilder<{ - membershipType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'MembershipType', - 'membershipTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'MembershipTypeFilter', - 'MembershipTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'MembershipType', - fieldName: 'membershipType', - document, - variables, - transform: (data: { - membershipTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - membershipType: data.membershipTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MembershipType', - 'createMembershipType', - 'membershipType', - args.select, - args.data, - 'CreateMembershipTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'createMembershipType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: number; - }, - MembershipTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'MembershipType', - 'updateMembershipType', - 'membershipType', - args.select, - args.where.id, - args.data, - 'UpdateMembershipTypeInput', - 'id', - 'membershipTypePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'updateMembershipType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: number; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteMembershipType: { - membershipType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'MembershipType', - 'deleteMembershipType', - 'membershipType', - { - id: args.where.id, - }, - 'DeleteMembershipTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MembershipType', - fieldName: 'deleteMembershipType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgAdminGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgAdminGrant.ts deleted file mode 100644 index 7b13377316..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgAdminGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgAdminGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgAdminGrant, - OrgAdminGrantWithRelations, - OrgAdminGrantSelect, - OrgAdminGrantFilter, - OrgAdminGrantOrderBy, - CreateOrgAdminGrantInput, - UpdateOrgAdminGrantInput, - OrgAdminGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgAdminGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrant', - document, - variables, - transform: (data: { - orgAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgAdminGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgAdminGrant', - 'orgAdminGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgAdminGrantFilter', - 'OrgAdminGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgAdminGrant', - fieldName: 'orgAdminGrant', - document, - variables, - transform: (data: { - orgAdminGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgAdminGrant', - 'createOrgAdminGrant', - 'orgAdminGrant', - args.select, - args.data, - 'CreateOrgAdminGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'createOrgAdminGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgAdminGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgAdminGrant', - 'updateOrgAdminGrant', - 'orgAdminGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgAdminGrantInput', - 'id', - 'orgAdminGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'updateOrgAdminGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgAdminGrant: { - orgAdminGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgAdminGrant', - 'deleteOrgAdminGrant', - 'orgAdminGrant', - { - id: args.where.id, - }, - 'DeleteOrgAdminGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgAdminGrant', - fieldName: 'deleteOrgAdminGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts b/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts deleted file mode 100644 index 8a43b83a98..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgChartEdge.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgChartEdge model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgChartEdge, - OrgChartEdgeWithRelations, - OrgChartEdgeSelect, - OrgChartEdgeFilter, - OrgChartEdgeOrderBy, - CreateOrgChartEdgeInput, - UpdateOrgChartEdgeInput, - OrgChartEdgePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgChartEdgeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdges: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdges', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdge: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdge', - document, - variables, - transform: (data: { - orgChartEdges?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdge: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdge', - 'orgChartEdges', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgChartEdgeFilter', - 'OrgChartEdgeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdge', - fieldName: 'orgChartEdge', - document, - variables, - transform: (data: { - orgChartEdges?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgChartEdge', - 'createOrgChartEdge', - 'orgChartEdge', - args.select, - args.data, - 'CreateOrgChartEdgeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'createOrgChartEdge', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgChartEdgePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgChartEdge', - 'updateOrgChartEdge', - 'orgChartEdge', - args.select, - args.where.id, - args.data, - 'UpdateOrgChartEdgeInput', - 'id', - 'orgChartEdgePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'updateOrgChartEdge', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgChartEdge: { - orgChartEdge: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgChartEdge', - 'deleteOrgChartEdge', - 'orgChartEdge', - { - id: args.where.id, - }, - 'DeleteOrgChartEdgeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdge', - fieldName: 'deleteOrgChartEdge', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts deleted file mode 100644 index 168a6fe3db..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgChartEdgeGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgChartEdgeGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgChartEdgeGrant, - OrgChartEdgeGrantWithRelations, - OrgChartEdgeGrantSelect, - OrgChartEdgeGrantFilter, - OrgChartEdgeGrantOrderBy, - CreateOrgChartEdgeGrantInput, - UpdateOrgChartEdgeGrantInput, - OrgChartEdgeGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgChartEdgeGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrant', - document, - variables, - transform: (data: { - orgChartEdgeGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgChartEdgeGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgChartEdgeGrant', - 'orgChartEdgeGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgChartEdgeGrantFilter', - 'OrgChartEdgeGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgChartEdgeGrant', - fieldName: 'orgChartEdgeGrant', - document, - variables, - transform: (data: { - orgChartEdgeGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgChartEdgeGrant', - 'createOrgChartEdgeGrant', - 'orgChartEdgeGrant', - args.select, - args.data, - 'CreateOrgChartEdgeGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'createOrgChartEdgeGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgChartEdgeGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgChartEdgeGrant', - 'updateOrgChartEdgeGrant', - 'orgChartEdgeGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgChartEdgeGrantInput', - 'id', - 'orgChartEdgeGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'updateOrgChartEdgeGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgChartEdgeGrant: { - orgChartEdgeGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgChartEdgeGrant', - 'deleteOrgChartEdgeGrant', - 'orgChartEdgeGrant', - { - id: args.where.id, - }, - 'DeleteOrgChartEdgeGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgChartEdgeGrant', - fieldName: 'deleteOrgChartEdgeGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgClaimedInvite.ts b/sdk/constructive-sdk/src/public/orm/models/orgClaimedInvite.ts deleted file mode 100644 index e1a3aecafb..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgClaimedInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgClaimedInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgClaimedInvite, - OrgClaimedInviteWithRelations, - OrgClaimedInviteSelect, - OrgClaimedInviteFilter, - OrgClaimedInviteOrderBy, - CreateOrgClaimedInviteInput, - UpdateOrgClaimedInviteInput, - OrgClaimedInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgClaimedInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvite', - document, - variables, - transform: (data: { - orgClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgClaimedInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgClaimedInvite', - 'orgClaimedInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgClaimedInviteFilter', - 'OrgClaimedInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgClaimedInvite', - fieldName: 'orgClaimedInvite', - document, - variables, - transform: (data: { - orgClaimedInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgClaimedInvite', - 'createOrgClaimedInvite', - 'orgClaimedInvite', - args.select, - args.data, - 'CreateOrgClaimedInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'createOrgClaimedInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgClaimedInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgClaimedInvite', - 'updateOrgClaimedInvite', - 'orgClaimedInvite', - args.select, - args.where.id, - args.data, - 'UpdateOrgClaimedInviteInput', - 'id', - 'orgClaimedInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'updateOrgClaimedInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgClaimedInvite: { - orgClaimedInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgClaimedInvite', - 'deleteOrgClaimedInvite', - 'orgClaimedInvite', - { - id: args.where.id, - }, - 'DeleteOrgClaimedInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgClaimedInvite', - fieldName: 'deleteOrgClaimedInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts b/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts deleted file mode 100644 index 7c333b76d3..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgGetManagersRecord.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * OrgGetManagersRecord model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGetManagersRecord, - OrgGetManagersRecordWithRelations, - OrgGetManagersRecordSelect, - OrgGetManagersRecordFilter, - OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, - UpdateOrgGetManagersRecordInput, - OrgGetManagersRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGetManagersRecordModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetManagers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGetManagersRecord', - 'orgGetManagers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGetManagersRecordFilter', - 'OrgGetManagersRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetManagersRecord', - fieldName: 'orgGetManagers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetManagersRecord: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGetManagersRecord', - 'orgGetManagers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGetManagersRecordFilter', - 'OrgGetManagersRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetManagersRecord', - fieldName: 'orgGetManagersRecord', - document, - variables, - transform: (data: { - orgGetManagers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGetManagersRecord: data.orgGetManagers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetManagersRecord: { - orgGetManagersRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetManagersRecord', - 'createOrgGetManagersRecord', - 'orgGetManagersRecord', - args.select, - args.data, - 'CreateOrgGetManagersRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetManagersRecord', - fieldName: 'createOrgGetManagersRecord', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts deleted file mode 100644 index f259e10434..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgGetSubordinatesRecord.ts +++ /dev/null @@ -1,136 +0,0 @@ -/** - * OrgGetSubordinatesRecord model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGetSubordinatesRecord, - OrgGetSubordinatesRecordWithRelations, - OrgGetSubordinatesRecordSelect, - OrgGetSubordinatesRecordFilter, - OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, - UpdateOrgGetSubordinatesRecordInput, - OrgGetSubordinatesRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGetSubordinatesRecordModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetSubordinates: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGetSubordinatesRecord', - 'orgGetSubordinates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGetSubordinatesRecordFilter', - 'OrgGetSubordinatesRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'orgGetSubordinates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGetSubordinatesRecord: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGetSubordinatesRecord', - 'orgGetSubordinates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGetSubordinatesRecordFilter', - 'OrgGetSubordinatesRecordsOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'orgGetSubordinatesRecord', - document, - variables, - transform: (data: { - orgGetSubordinates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGetSubordinatesRecord: data.orgGetSubordinates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGetSubordinatesRecord: { - orgGetSubordinatesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGetSubordinatesRecord', - 'createOrgGetSubordinatesRecord', - 'orgGetSubordinatesRecord', - args.select, - args.data, - 'CreateOrgGetSubordinatesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGetSubordinatesRecord', - fieldName: 'createOrgGetSubordinatesRecord', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgGrant.ts deleted file mode 100644 index c8e74f5cc6..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgGrant, - OrgGrantWithRelations, - OrgGrantSelect, - OrgGrantFilter, - OrgGrantOrderBy, - CreateOrgGrantInput, - UpdateOrgGrantInput, - OrgGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrant', - document, - variables, - transform: (data: { - orgGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGrant: data.orgGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgGrant', - 'orgGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgGrantFilter', - 'OrgGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgGrant', - fieldName: 'orgGrant', - document, - variables, - transform: (data: { - orgGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgGrant: data.orgGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgGrant', - 'createOrgGrant', - 'orgGrant', - args.select, - args.data, - 'CreateOrgGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'createOrgGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgGrant', - 'updateOrgGrant', - 'orgGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgGrantInput', - 'id', - 'orgGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'updateOrgGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgGrant: { - orgGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgGrant', - 'deleteOrgGrant', - 'orgGrant', - { - id: args.where.id, - }, - 'DeleteOrgGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgGrant', - fieldName: 'deleteOrgGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgInvite.ts b/sdk/constructive-sdk/src/public/orm/models/orgInvite.ts deleted file mode 100644 index 8d7931f078..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgInvite.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgInvite model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgInvite, - OrgInviteWithRelations, - OrgInviteSelect, - OrgInviteFilter, - OrgInviteOrderBy, - CreateOrgInviteInput, - UpdateOrgInviteInput, - OrgInvitePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgInviteModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvites: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvites', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvite', - document, - variables, - transform: (data: { - orgInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgInvite: data.orgInvites?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgInvite: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgInvite', - 'orgInvites', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgInviteFilter', - 'OrgInviteOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgInvite', - fieldName: 'orgInvite', - document, - variables, - transform: (data: { - orgInvites?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgInvite: data.orgInvites?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgInvite', - 'createOrgInvite', - 'orgInvite', - args.select, - args.data, - 'CreateOrgInviteInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'createOrgInvite', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgInvitePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgInvite', - 'updateOrgInvite', - 'orgInvite', - args.select, - args.where.id, - args.data, - 'UpdateOrgInviteInput', - 'id', - 'orgInvitePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'updateOrgInvite', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgInvite: { - orgInvite: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgInvite', - 'deleteOrgInvite', - 'orgInvite', - { - id: args.where.id, - }, - 'DeleteOrgInviteInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgInvite', - fieldName: 'deleteOrgInvite', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimit.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimit.ts deleted file mode 100644 index 48a3932f23..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimit, - OrgLimitWithRelations, - OrgLimitSelect, - OrgLimitFilter, - OrgLimitOrderBy, - CreateOrgLimitInput, - UpdateOrgLimitInput, - OrgLimitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimit', - document, - variables, - transform: (data: { - orgLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimit: data.orgLimits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimit', - 'orgLimits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitFilter', - 'OrgLimitOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimit', - fieldName: 'orgLimit', - document, - variables, - transform: (data: { - orgLimits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimit: data.orgLimits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimit', - 'createOrgLimit', - 'orgLimit', - args.select, - args.data, - 'CreateOrgLimitInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'createOrgLimit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimit', - 'updateOrgLimit', - 'orgLimit', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitInput', - 'id', - 'orgLimitPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'updateOrgLimit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimit: { - orgLimit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimit', - 'deleteOrgLimit', - 'orgLimit', - { - id: args.where.id, - }, - 'DeleteOrgLimitInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimit', - fieldName: 'deleteOrgLimit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitAggregate.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitAggregate.ts deleted file mode 100644 index d74b9e7d92..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitAggregate.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitAggregate model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitAggregate, - OrgLimitAggregateWithRelations, - OrgLimitAggregateSelect, - OrgLimitAggregateFilter, - OrgLimitAggregateOrderBy, - CreateOrgLimitAggregateInput, - UpdateOrgLimitAggregateInput, - OrgLimitAggregatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitAggregateModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregates: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregates', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregate', - document, - variables, - transform: (data: { - orgLimitAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitAggregate: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitAggregate', - 'orgLimitAggregates', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitAggregateFilter', - 'OrgLimitAggregateOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitAggregate', - fieldName: 'orgLimitAggregate', - document, - variables, - transform: (data: { - orgLimitAggregates?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitAggregate', - 'createOrgLimitAggregate', - 'orgLimitAggregate', - args.select, - args.data, - 'CreateOrgLimitAggregateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'createOrgLimitAggregate', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitAggregatePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitAggregate', - 'updateOrgLimitAggregate', - 'orgLimitAggregate', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitAggregateInput', - 'id', - 'orgLimitAggregatePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'updateOrgLimitAggregate', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitAggregate: { - orgLimitAggregate: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitAggregate', - 'deleteOrgLimitAggregate', - 'orgLimitAggregate', - { - id: args.where.id, - }, - 'DeleteOrgLimitAggregateInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitAggregate', - fieldName: 'deleteOrgLimitAggregate', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitCap.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitCap.ts deleted file mode 100644 index 6755eea460..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitCap.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCap model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCap, - OrgLimitCapWithRelations, - OrgLimitCapSelect, - OrgLimitCapFilter, - OrgLimitCapOrderBy, - CreateOrgLimitCapInput, - UpdateOrgLimitCapInput, - OrgLimitCapPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCapModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCaps: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCaps', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCap', - document, - variables, - transform: (data: { - orgLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCap: data.orgLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCap: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCap', - 'orgLimitCaps', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCapFilter', - 'OrgLimitCapOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCap', - fieldName: 'orgLimitCap', - document, - variables, - transform: (data: { - orgLimitCaps?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCap: data.orgLimitCaps?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCap', - 'createOrgLimitCap', - 'orgLimitCap', - args.select, - args.data, - 'CreateOrgLimitCapInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'createOrgLimitCap', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCapPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCap', - 'updateOrgLimitCap', - 'orgLimitCap', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCapInput', - 'id', - 'orgLimitCapPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'updateOrgLimitCap', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCap: { - orgLimitCap: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCap', - 'deleteOrgLimitCap', - 'orgLimitCap', - { - id: args.where.id, - }, - 'DeleteOrgLimitCapInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCap', - fieldName: 'deleteOrgLimitCap', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitCapsDefault.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitCapsDefault.ts deleted file mode 100644 index 7884189152..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitCapsDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCapsDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCapsDefault, - OrgLimitCapsDefaultWithRelations, - OrgLimitCapsDefaultSelect, - OrgLimitCapsDefaultFilter, - OrgLimitCapsDefaultOrderBy, - CreateOrgLimitCapsDefaultInput, - UpdateOrgLimitCapsDefaultInput, - OrgLimitCapsDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCapsDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefault', - document, - variables, - transform: (data: { - orgLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCapsDefault: data.orgLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCapsDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCapsDefault', - 'orgLimitCapsDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCapsDefaultFilter', - 'OrgLimitCapsDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCapsDefault', - fieldName: 'orgLimitCapsDefault', - document, - variables, - transform: (data: { - orgLimitCapsDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCapsDefault: data.orgLimitCapsDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCapsDefault', - 'createOrgLimitCapsDefault', - 'orgLimitCapsDefault', - args.select, - args.data, - 'CreateOrgLimitCapsDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'createOrgLimitCapsDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCapsDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCapsDefault', - 'updateOrgLimitCapsDefault', - 'orgLimitCapsDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCapsDefaultInput', - 'id', - 'orgLimitCapsDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'updateOrgLimitCapsDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCapsDefault: { - orgLimitCapsDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCapsDefault', - 'deleteOrgLimitCapsDefault', - 'orgLimitCapsDefault', - { - id: args.where.id, - }, - 'DeleteOrgLimitCapsDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCapsDefault', - fieldName: 'deleteOrgLimitCapsDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitCredit.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitCredit.ts deleted file mode 100644 index 560f611013..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitCredit.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitCredit model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitCredit, - OrgLimitCreditWithRelations, - OrgLimitCreditSelect, - OrgLimitCreditFilter, - OrgLimitCreditOrderBy, - CreateOrgLimitCreditInput, - UpdateOrgLimitCreditInput, - OrgLimitCreditPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitCreditModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredits: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredits', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredit', - document, - variables, - transform: (data: { - orgLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCredit: data.orgLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitCredit: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitCredit', - 'orgLimitCredits', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitCreditFilter', - 'OrgLimitCreditOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitCredit', - fieldName: 'orgLimitCredit', - document, - variables, - transform: (data: { - orgLimitCredits?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitCredit: data.orgLimitCredits?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitCredit', - 'createOrgLimitCredit', - 'orgLimitCredit', - args.select, - args.data, - 'CreateOrgLimitCreditInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'createOrgLimitCredit', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitCreditPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitCredit', - 'updateOrgLimitCredit', - 'orgLimitCredit', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitCreditInput', - 'id', - 'orgLimitCreditPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'updateOrgLimitCredit', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitCredit: { - orgLimitCredit: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitCredit', - 'deleteOrgLimitCredit', - 'orgLimitCredit', - { - id: args.where.id, - }, - 'DeleteOrgLimitCreditInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitCredit', - fieldName: 'deleteOrgLimitCredit', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitDefault.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitDefault.ts deleted file mode 100644 index 7e55bfd1f7..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitDefault.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitDefault, - OrgLimitDefaultWithRelations, - OrgLimitDefaultSelect, - OrgLimitDefaultFilter, - OrgLimitDefaultOrderBy, - CreateOrgLimitDefaultInput, - UpdateOrgLimitDefaultInput, - OrgLimitDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefaults: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefault', - document, - variables, - transform: (data: { - orgLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitDefault', - 'orgLimitDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitDefaultFilter', - 'OrgLimitDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitDefault', - fieldName: 'orgLimitDefault', - document, - variables, - transform: (data: { - orgLimitDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitDefault', - 'createOrgLimitDefault', - 'orgLimitDefault', - args.select, - args.data, - 'CreateOrgLimitDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'createOrgLimitDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitDefault', - 'updateOrgLimitDefault', - 'orgLimitDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitDefaultInput', - 'id', - 'orgLimitDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'updateOrgLimitDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitDefault: { - orgLimitDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitDefault', - 'deleteOrgLimitDefault', - 'orgLimitDefault', - { - id: args.where.id, - }, - 'DeleteOrgLimitDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitDefault', - fieldName: 'deleteOrgLimitDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts deleted file mode 100644 index 2eb9796e2a..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitEvent model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitEvent, - OrgLimitEventWithRelations, - OrgLimitEventSelect, - OrgLimitEventFilter, - OrgLimitEventOrderBy, - CreateOrgLimitEventInput, - UpdateOrgLimitEventInput, - OrgLimitEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitEventModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvents: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvents', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvent', - document, - variables, - transform: (data: { - orgLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitEvent: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitEvent', - 'orgLimitEvents', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitEventFilter', - 'OrgLimitEventOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitEvent', - fieldName: 'orgLimitEvent', - document, - variables, - transform: (data: { - orgLimitEvents?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitEvent', - 'createOrgLimitEvent', - 'orgLimitEvent', - args.select, - args.data, - 'CreateOrgLimitEventInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'createOrgLimitEvent', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitEventPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitEvent', - 'updateOrgLimitEvent', - 'orgLimitEvent', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitEventInput', - 'id', - 'orgLimitEventPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'updateOrgLimitEvent', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitEvent: { - orgLimitEvent: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitEvent', - 'deleteOrgLimitEvent', - 'orgLimitEvent', - { - id: args.where.id, - }, - 'DeleteOrgLimitEventInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitEvent', - fieldName: 'deleteOrgLimitEvent', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitWarning.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitWarning.ts deleted file mode 100644 index e496b69fef..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitWarning.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgLimitWarning model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgLimitWarning, - OrgLimitWarningWithRelations, - OrgLimitWarningSelect, - OrgLimitWarningFilter, - OrgLimitWarningOrderBy, - CreateOrgLimitWarningInput, - UpdateOrgLimitWarningInput, - OrgLimitWarningPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgLimitWarningModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarnings: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarnings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarning', - document, - variables, - transform: (data: { - orgLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgLimitWarning: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgLimitWarning', - 'orgLimitWarnings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgLimitWarningFilter', - 'OrgLimitWarningOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgLimitWarning', - fieldName: 'orgLimitWarning', - document, - variables, - transform: (data: { - orgLimitWarnings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgLimitWarning', - 'createOrgLimitWarning', - 'orgLimitWarning', - args.select, - args.data, - 'CreateOrgLimitWarningInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'createOrgLimitWarning', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgLimitWarningPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgLimitWarning', - 'updateOrgLimitWarning', - 'orgLimitWarning', - args.select, - args.where.id, - args.data, - 'UpdateOrgLimitWarningInput', - 'id', - 'orgLimitWarningPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'updateOrgLimitWarning', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgLimitWarning: { - orgLimitWarning: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgLimitWarning', - 'deleteOrgLimitWarning', - 'orgLimitWarning', - { - id: args.where.id, - }, - 'DeleteOrgLimitWarningInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgLimitWarning', - fieldName: 'deleteOrgLimitWarning', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgMember.ts b/sdk/constructive-sdk/src/public/orm/models/orgMember.ts deleted file mode 100644 index 44f5608f45..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgMember.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMember model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMember, - OrgMemberWithRelations, - OrgMemberSelect, - OrgMemberFilter, - OrgMemberOrderBy, - CreateOrgMemberInput, - UpdateOrgMemberInput, - OrgMemberPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMemberModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMembers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMember: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMember', - document, - variables, - transform: (data: { - orgMembers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMember: data.orgMembers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMember: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMember', - 'orgMembers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMemberFilter', - 'OrgMemberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMember', - fieldName: 'orgMember', - document, - variables, - transform: (data: { - orgMembers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMember: data.orgMembers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMember', - 'createOrgMember', - 'orgMember', - args.select, - args.data, - 'CreateOrgMemberInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'createOrgMember', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMemberPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMember', - 'updateOrgMember', - 'orgMember', - args.select, - args.where.id, - args.data, - 'UpdateOrgMemberInput', - 'id', - 'orgMemberPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'updateOrgMember', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMember: { - orgMember: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMember', - 'deleteOrgMember', - 'orgMember', - { - id: args.where.id, - }, - 'DeleteOrgMemberInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMember', - fieldName: 'deleteOrgMember', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgMemberProfile.ts b/sdk/constructive-sdk/src/public/orm/models/orgMemberProfile.ts deleted file mode 100644 index 77357e1745..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgMemberProfile.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMemberProfile model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMemberProfile, - OrgMemberProfileWithRelations, - OrgMemberProfileSelect, - OrgMemberProfileFilter, - OrgMemberProfileOrderBy, - CreateOrgMemberProfileInput, - UpdateOrgMemberProfileInput, - OrgMemberProfilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMemberProfileModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfiles: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfiles', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfile', - document, - variables, - transform: (data: { - orgMemberProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberProfile: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMemberProfile', - 'orgMemberProfiles', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMemberProfileFilter', - 'OrgMemberProfileOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMemberProfile', - fieldName: 'orgMemberProfile', - document, - variables, - transform: (data: { - orgMemberProfiles?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMemberProfile', - 'createOrgMemberProfile', - 'orgMemberProfile', - args.select, - args.data, - 'CreateOrgMemberProfileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'createOrgMemberProfile', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMemberProfilePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMemberProfile', - 'updateOrgMemberProfile', - 'orgMemberProfile', - args.select, - args.where.id, - args.data, - 'UpdateOrgMemberProfileInput', - 'id', - 'orgMemberProfilePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'updateOrgMemberProfile', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMemberProfile: { - orgMemberProfile: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMemberProfile', - 'deleteOrgMemberProfile', - 'orgMemberProfile', - { - id: args.where.id, - }, - 'DeleteOrgMemberProfileInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMemberProfile', - fieldName: 'deleteOrgMemberProfile', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgMembership.ts b/sdk/constructive-sdk/src/public/orm/models/orgMembership.ts deleted file mode 100644 index 623ec08fe2..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgMembership.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgMembership model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembership, - OrgMembershipWithRelations, - OrgMembershipSelect, - OrgMembershipFilter, - OrgMembershipOrderBy, - CreateOrgMembershipInput, - UpdateOrgMembershipInput, - OrgMembershipPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMemberships: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMemberships', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMembership', - document, - variables, - transform: (data: { - orgMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembership: data.orgMemberships?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembership: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembership', - 'orgMemberships', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipFilter', - 'OrgMembershipOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembership', - fieldName: 'orgMembership', - document, - variables, - transform: (data: { - orgMemberships?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembership: data.orgMemberships?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembership', - 'createOrgMembership', - 'orgMembership', - args.select, - args.data, - 'CreateOrgMembershipInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'createOrgMembership', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembership', - 'updateOrgMembership', - 'orgMembership', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipInput', - 'id', - 'orgMembershipPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'updateOrgMembership', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembership: { - orgMembership: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembership', - 'deleteOrgMembership', - 'orgMembership', - { - id: args.where.id, - }, - 'DeleteOrgMembershipInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembership', - fieldName: 'deleteOrgMembership', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgMembershipDefault.ts b/sdk/constructive-sdk/src/public/orm/models/orgMembershipDefault.ts deleted file mode 100644 index 3441315057..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgMembershipDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgMembershipDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembershipDefault, - OrgMembershipDefaultWithRelations, - OrgMembershipDefaultSelect, - OrgMembershipDefaultFilter, - OrgMembershipDefaultOrderBy, - CreateOrgMembershipDefaultInput, - UpdateOrgMembershipDefaultInput, - OrgMembershipDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefault', - document, - variables, - transform: (data: { - orgMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipDefault', - 'orgMembershipDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipDefaultFilter', - 'OrgMembershipDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipDefault', - fieldName: 'orgMembershipDefault', - document, - variables, - transform: (data: { - orgMembershipDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipDefault', - 'createOrgMembershipDefault', - 'orgMembershipDefault', - args.select, - args.data, - 'CreateOrgMembershipDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'createOrgMembershipDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipDefault', - 'updateOrgMembershipDefault', - 'orgMembershipDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipDefaultInput', - 'id', - 'orgMembershipDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'updateOrgMembershipDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipDefault: { - orgMembershipDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipDefault', - 'deleteOrgMembershipDefault', - 'orgMembershipDefault', - { - id: args.where.id, - }, - 'DeleteOrgMembershipDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipDefault', - fieldName: 'deleteOrgMembershipDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgMembershipSetting.ts b/sdk/constructive-sdk/src/public/orm/models/orgMembershipSetting.ts deleted file mode 100644 index 46801fc913..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgMembershipSetting.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgMembershipSetting model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgMembershipSetting, - OrgMembershipSettingWithRelations, - OrgMembershipSettingSelect, - OrgMembershipSettingFilter, - OrgMembershipSettingOrderBy, - CreateOrgMembershipSettingInput, - UpdateOrgMembershipSettingInput, - OrgMembershipSettingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgMembershipSettingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSettings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSettings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSetting: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSetting', - document, - variables, - transform: (data: { - orgMembershipSettings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgMembershipSetting: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgMembershipSetting', - 'orgMembershipSettings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgMembershipSettingFilter', - 'OrgMembershipSettingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgMembershipSetting', - fieldName: 'orgMembershipSetting', - document, - variables, - transform: (data: { - orgMembershipSettings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgMembershipSetting: data.orgMembershipSettings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgMembershipSetting', - 'createOrgMembershipSetting', - 'orgMembershipSetting', - args.select, - args.data, - 'CreateOrgMembershipSettingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'createOrgMembershipSetting', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgMembershipSettingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgMembershipSetting', - 'updateOrgMembershipSetting', - 'orgMembershipSetting', - args.select, - args.where.id, - args.data, - 'UpdateOrgMembershipSettingInput', - 'id', - 'orgMembershipSettingPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'updateOrgMembershipSetting', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgMembershipSetting: { - orgMembershipSetting: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgMembershipSetting', - 'deleteOrgMembershipSetting', - 'orgMembershipSetting', - { - id: args.where.id, - }, - 'DeleteOrgMembershipSettingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgMembershipSetting', - fieldName: 'deleteOrgMembershipSetting', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgOwnerGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgOwnerGrant.ts deleted file mode 100644 index 9614dce8fc..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgOwnerGrant.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgOwnerGrant model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgOwnerGrant, - OrgOwnerGrantWithRelations, - OrgOwnerGrantSelect, - OrgOwnerGrantFilter, - OrgOwnerGrantOrderBy, - CreateOrgOwnerGrantInput, - UpdateOrgOwnerGrantInput, - OrgOwnerGrantPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgOwnerGrantModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrants: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrants', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrant', - document, - variables, - transform: (data: { - orgOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgOwnerGrant: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgOwnerGrant', - 'orgOwnerGrants', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgOwnerGrantFilter', - 'OrgOwnerGrantOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgOwnerGrant', - fieldName: 'orgOwnerGrant', - document, - variables, - transform: (data: { - orgOwnerGrants?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgOwnerGrant', - 'createOrgOwnerGrant', - 'orgOwnerGrant', - args.select, - args.data, - 'CreateOrgOwnerGrantInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'createOrgOwnerGrant', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgOwnerGrantPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgOwnerGrant', - 'updateOrgOwnerGrant', - 'orgOwnerGrant', - args.select, - args.where.id, - args.data, - 'UpdateOrgOwnerGrantInput', - 'id', - 'orgOwnerGrantPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'updateOrgOwnerGrant', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgOwnerGrant: { - orgOwnerGrant: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgOwnerGrant', - 'deleteOrgOwnerGrant', - 'orgOwnerGrant', - { - id: args.where.id, - }, - 'DeleteOrgOwnerGrantInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgOwnerGrant', - fieldName: 'deleteOrgOwnerGrant', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgPermission.ts b/sdk/constructive-sdk/src/public/orm/models/orgPermission.ts deleted file mode 100644 index 7bdc906323..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgPermission.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * OrgPermission model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgPermission, - OrgPermissionWithRelations, - OrgPermissionSelect, - OrgPermissionFilter, - OrgPermissionOrderBy, - CreateOrgPermissionInput, - UpdateOrgPermissionInput, - OrgPermissionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissions: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermissions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermission: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermission', - 'orgPermissions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionFilter', - 'OrgPermissionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermission', - fieldName: 'orgPermission', - document, - variables, - transform: (data: { - orgPermissions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermission: data.orgPermissions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermission', - 'createOrgPermission', - 'orgPermission', - args.select, - args.data, - 'CreateOrgPermissionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'createOrgPermission', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermission', - 'updateOrgPermission', - 'orgPermission', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionInput', - 'id', - 'orgPermissionPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'updateOrgPermission', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermission: { - orgPermission: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermission', - 'deleteOrgPermission', - 'orgPermission', - { - id: args.where.id, - }, - 'DeleteOrgPermissionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermission', - fieldName: 'deleteOrgPermission', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgPermissionDefault.ts b/sdk/constructive-sdk/src/public/orm/models/orgPermissionDefault.ts deleted file mode 100644 index 8d00b99325..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/orgPermissionDefault.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * OrgPermissionDefault model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgPermissionDefault, - OrgPermissionDefaultWithRelations, - OrgPermissionDefaultSelect, - OrgPermissionDefaultFilter, - OrgPermissionDefaultOrderBy, - CreateOrgPermissionDefaultInput, - UpdateOrgPermissionDefaultInput, - OrgPermissionDefaultPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgPermissionDefaultModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefaults: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefaults', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgPermissionDefault: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgPermissionDefault', - 'orgPermissionDefaults', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgPermissionDefaultFilter', - 'OrgPermissionDefaultOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgPermissionDefault', - fieldName: 'orgPermissionDefault', - document, - variables, - transform: (data: { - orgPermissionDefaults?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgPermissionDefault', - 'createOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.data, - 'CreateOrgPermissionDefaultInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'createOrgPermissionDefault', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - OrgPermissionDefaultPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgPermissionDefault', - 'updateOrgPermissionDefault', - 'orgPermissionDefault', - args.select, - args.where.id, - args.data, - 'UpdateOrgPermissionDefaultInput', - 'id', - 'orgPermissionDefaultPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'updateOrgPermissionDefault', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgPermissionDefault: { - orgPermissionDefault: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgPermissionDefault', - 'deleteOrgPermissionDefault', - 'orgPermissionDefault', - { - id: args.where.id, - }, - 'DeleteOrgPermissionDefaultInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgPermissionDefault', - fieldName: 'deleteOrgPermissionDefault', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/phoneNumber.ts b/sdk/constructive-sdk/src/public/orm/models/phoneNumber.ts deleted file mode 100644 index 0803908e25..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/phoneNumber.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * PhoneNumber model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PhoneNumber, - PhoneNumberWithRelations, - PhoneNumberSelect, - PhoneNumberFilter, - PhoneNumberOrderBy, - CreatePhoneNumberInput, - UpdatePhoneNumberInput, - PhoneNumberPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PhoneNumberModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumbers: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumbers', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumber: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumber', - document, - variables, - transform: (data: { - phoneNumbers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - phoneNumber: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PhoneNumber', - 'phoneNumbers', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PhoneNumberFilter', - 'PhoneNumberOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PhoneNumber', - fieldName: 'phoneNumber', - document, - variables, - transform: (data: { - phoneNumbers?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PhoneNumber', - 'createPhoneNumber', - 'phoneNumber', - args.select, - args.data, - 'CreatePhoneNumberInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'createPhoneNumber', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PhoneNumberPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PhoneNumber', - 'updatePhoneNumber', - 'phoneNumber', - args.select, - args.where.id, - args.data, - 'UpdatePhoneNumberInput', - 'id', - 'phoneNumberPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'updatePhoneNumber', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePhoneNumber: { - phoneNumber: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PhoneNumber', - 'deletePhoneNumber', - 'phoneNumber', - { - id: args.where.id, - }, - 'DeletePhoneNumberInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PhoneNumber', - fieldName: 'deletePhoneNumber', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/roleType.ts b/sdk/constructive-sdk/src/public/orm/models/roleType.ts deleted file mode 100644 index 8b256a0dc7..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/roleType.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * RoleType model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - RoleType, - RoleTypeWithRelations, - RoleTypeSelect, - RoleTypeFilter, - RoleTypeOrderBy, - CreateRoleTypeInput, - UpdateRoleTypeInput, - RoleTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class RoleTypeModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleTypes: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleTypes', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleType: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleType', - document, - variables, - transform: (data: { - roleTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - roleType: data.roleTypes?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: number; - select: S; - } & StrictSelect - ): QueryBuilder<{ - roleType: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'RoleType', - 'roleTypes', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'RoleTypeFilter', - 'RoleTypeOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'RoleType', - fieldName: 'roleType', - document, - variables, - transform: (data: { - roleTypes?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - roleType: data.roleTypes?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'RoleType', - 'createRoleType', - 'roleType', - args.select, - args.data, - 'CreateRoleTypeInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'createRoleType', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: number; - }, - RoleTypePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'RoleType', - 'updateRoleType', - 'roleType', - args.select, - args.where.id, - args.data, - 'UpdateRoleTypeInput', - 'id', - 'roleTypePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'updateRoleType', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: number; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteRoleType: { - roleType: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'RoleType', - 'deleteRoleType', - 'roleType', - { - id: args.where.id, - }, - 'DeleteRoleTypeInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'RoleType', - fieldName: 'deleteRoleType', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/user.ts b/sdk/constructive-sdk/src/public/orm/models/user.ts deleted file mode 100644 index 8935818350..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/user.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * User model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - User, - UserWithRelations, - UserSelect, - UserFilter, - UserOrderBy, - CreateUserInput, - UpdateUserInput, - UserPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UserModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - users: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'User', - 'users', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'users', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - user: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'User', - 'users', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'user', - document, - variables, - transform: (data: { - users?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - user: data.users?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - user: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'User', - 'users', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UserFilter', - 'UserOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'User', - fieldName: 'user', - document, - variables, - transform: (data: { - users?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - user: data.users?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'User', - 'createUser', - 'user', - args.select, - args.data, - 'CreateUserInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'createUser', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - UserPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'User', - 'updateUser', - 'user', - args.select, - args.where.id, - args.data, - 'UpdateUserInput', - 'id', - 'userPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'updateUser', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteUser: { - user: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'User', - 'deleteUser', - 'user', - { - id: args.where.id, - }, - 'DeleteUserInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'User', - fieldName: 'deleteUser', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/userConnectedAccount.ts b/sdk/constructive-sdk/src/public/orm/models/userConnectedAccount.ts deleted file mode 100644 index a2344afdf4..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/userConnectedAccount.ts +++ /dev/null @@ -1,176 +0,0 @@ -/** - * UserConnectedAccount model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - UserConnectedAccount, - UserConnectedAccountWithRelations, - UserConnectedAccountSelect, - UserConnectedAccountFilter, - UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, - UpdateUserConnectedAccountInput, - UserConnectedAccountPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UserConnectedAccountModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccounts: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccounts', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccount: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccount', - document, - variables, - transform: (data: { - userConnectedAccounts?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - userConnectedAccount: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'UserConnectedAccount', - 'userConnectedAccounts', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UserConnectedAccountFilter', - 'UserConnectedAccountOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UserConnectedAccount', - fieldName: 'userConnectedAccount', - document, - variables, - transform: (data: { - userConnectedAccounts?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUserConnectedAccount: { - userConnectedAccount: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UserConnectedAccount', - 'createUserConnectedAccount', - 'userConnectedAccount', - args.select, - args.data, - 'CreateUserConnectedAccountInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UserConnectedAccount', - fieldName: 'createUserConnectedAccount', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/webauthnCredential.ts b/sdk/constructive-sdk/src/public/orm/models/webauthnCredential.ts deleted file mode 100644 index cca4c75cf4..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/webauthnCredential.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * WebauthnCredential model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - WebauthnCredential, - WebauthnCredentialWithRelations, - WebauthnCredentialSelect, - WebauthnCredentialFilter, - WebauthnCredentialOrderBy, - CreateWebauthnCredentialInput, - UpdateWebauthnCredentialInput, - WebauthnCredentialPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class WebauthnCredentialModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredentials: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredentials', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredential: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredential', - document, - variables, - transform: (data: { - webauthnCredentials?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - webauthnCredential: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'WebauthnCredential', - 'webauthnCredentials', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'WebauthnCredentialFilter', - 'WebauthnCredentialOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'WebauthnCredential', - fieldName: 'webauthnCredential', - document, - variables, - transform: (data: { - webauthnCredentials?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - webauthnCredential: data.webauthnCredentials?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'WebauthnCredential', - 'createWebauthnCredential', - 'webauthnCredential', - args.select, - args.data, - 'CreateWebauthnCredentialInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'createWebauthnCredential', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - WebauthnCredentialPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'WebauthnCredential', - 'updateWebauthnCredential', - 'webauthnCredential', - args.select, - args.where.id, - args.data, - 'UpdateWebauthnCredentialInput', - 'id', - 'webauthnCredentialPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'updateWebauthnCredential', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteWebauthnCredential: { - webauthnCredential: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'WebauthnCredential', - 'deleteWebauthnCredential', - 'webauthnCredential', - { - id: args.where.id, - }, - 'DeleteWebauthnCredentialInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'WebauthnCredential', - fieldName: 'deleteWebauthnCredential', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts deleted file mode 100644 index 4cc4f2caf8..0000000000 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ /dev/null @@ -1,1512 +0,0 @@ -/** - * 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 { - SendAccountDeletionEmailInput, - SignOutInput, - AcceptDatabaseTransferInput, - CancelDatabaseTransferInput, - RejectDatabaseTransferInput, - DisconnectAccountInput, - RevokeApiKeyInput, - RevokeSessionInput, - VerifyPasswordInput, - VerifyTotpInput, - SubmitAppInviteCodeInput, - SubmitOrgInviteCodeInput, - CheckPasswordInput, - ConfirmDeleteAccountInput, - SetPasswordInput, - VerifyEmailInput, - ConstructBlueprintInput, - ProvisionNewUserInput, - ResetPasswordInput, - ProvisionCheckConstraintInput, - ProvisionUniqueConstraintInput, - ProvisionFullTextSearchInput, - ProvisionIndexInput, - CopyTemplateToBlueprintInput, - ProvisionSpatialRelationInput, - SignInCrossOriginInput, - BootstrapUserInput, - SignUpInput, - SignInInput, - ProvisionRelationInput, - SetFieldOrderInput, - ApplyRlsInput, - ProvisionDatabaseWithUserInput, - CreateUserDatabaseInput, - ExtendTokenExpiresInput, - CreateApiKeyInput, - RequestCrossOriginTokenInput, - ProvisionTableInput, - SendVerificationEmailInput, - ForgotPasswordInput, - ProvisionBucketInput, - SendAccountDeletionEmailPayload, - SignOutPayload, - AcceptDatabaseTransferPayload, - CancelDatabaseTransferPayload, - RejectDatabaseTransferPayload, - DisconnectAccountPayload, - RevokeApiKeyPayload, - RevokeSessionPayload, - VerifyPasswordPayload, - VerifyTotpPayload, - SubmitAppInviteCodePayload, - SubmitOrgInviteCodePayload, - CheckPasswordPayload, - ConfirmDeleteAccountPayload, - SetPasswordPayload, - VerifyEmailPayload, - ConstructBlueprintPayload, - ProvisionNewUserPayload, - ResetPasswordPayload, - ProvisionCheckConstraintPayload, - ProvisionUniqueConstraintPayload, - ProvisionFullTextSearchPayload, - ProvisionIndexPayload, - CopyTemplateToBlueprintPayload, - ProvisionSpatialRelationPayload, - SignInCrossOriginPayload, - BootstrapUserPayload, - SignUpPayload, - SignInPayload, - ProvisionRelationPayload, - SetFieldOrderPayload, - ApplyRlsPayload, - ProvisionDatabaseWithUserPayload, - CreateUserDatabasePayload, - ExtendTokenExpiresPayload, - CreateApiKeyPayload, - RequestCrossOriginTokenPayload, - ProvisionTablePayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - ProvisionBucketPayload, - SendAccountDeletionEmailPayloadSelect, - SignOutPayloadSelect, - AcceptDatabaseTransferPayloadSelect, - CancelDatabaseTransferPayloadSelect, - RejectDatabaseTransferPayloadSelect, - DisconnectAccountPayloadSelect, - RevokeApiKeyPayloadSelect, - RevokeSessionPayloadSelect, - VerifyPasswordPayloadSelect, - VerifyTotpPayloadSelect, - SubmitAppInviteCodePayloadSelect, - SubmitOrgInviteCodePayloadSelect, - CheckPasswordPayloadSelect, - ConfirmDeleteAccountPayloadSelect, - SetPasswordPayloadSelect, - VerifyEmailPayloadSelect, - ConstructBlueprintPayloadSelect, - ProvisionNewUserPayloadSelect, - ResetPasswordPayloadSelect, - ProvisionCheckConstraintPayloadSelect, - ProvisionUniqueConstraintPayloadSelect, - ProvisionFullTextSearchPayloadSelect, - ProvisionIndexPayloadSelect, - CopyTemplateToBlueprintPayloadSelect, - ProvisionSpatialRelationPayloadSelect, - SignInCrossOriginPayloadSelect, - BootstrapUserPayloadSelect, - SignUpPayloadSelect, - SignInPayloadSelect, - ProvisionRelationPayloadSelect, - SetFieldOrderPayloadSelect, - ApplyRlsPayloadSelect, - ProvisionDatabaseWithUserPayloadSelect, - CreateUserDatabasePayloadSelect, - ExtendTokenExpiresPayloadSelect, - CreateApiKeyPayloadSelect, - RequestCrossOriginTokenPayloadSelect, - ProvisionTablePayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - ProvisionBucketPayloadSelect, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface SendAccountDeletionEmailVariables { - input: SendAccountDeletionEmailInput; -} -export interface SignOutVariables { - input: SignOutInput; -} -export interface AcceptDatabaseTransferVariables { - input: AcceptDatabaseTransferInput; -} -export interface CancelDatabaseTransferVariables { - input: CancelDatabaseTransferInput; -} -export interface RejectDatabaseTransferVariables { - input: RejectDatabaseTransferInput; -} -export interface DisconnectAccountVariables { - input: DisconnectAccountInput; -} -export interface RevokeApiKeyVariables { - input: RevokeApiKeyInput; -} -export interface RevokeSessionVariables { - input: RevokeSessionInput; -} -export interface VerifyPasswordVariables { - input: VerifyPasswordInput; -} -export interface VerifyTotpVariables { - input: VerifyTotpInput; -} -export interface SubmitAppInviteCodeVariables { - input: SubmitAppInviteCodeInput; -} -export interface SubmitOrgInviteCodeVariables { - input: SubmitOrgInviteCodeInput; -} -export interface CheckPasswordVariables { - input: CheckPasswordInput; -} -export interface ConfirmDeleteAccountVariables { - input: ConfirmDeleteAccountInput; -} -export interface SetPasswordVariables { - input: SetPasswordInput; -} -export interface VerifyEmailVariables { - input: VerifyEmailInput; -} -/** - * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - */ -export interface ConstructBlueprintVariables { - input: ConstructBlueprintInput; -} -export interface ProvisionNewUserVariables { - input: ProvisionNewUserInput; -} -export interface ResetPasswordVariables { - input: ResetPasswordInput; -} -/** - * Variables for provisionCheckConstraint - * Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. - */ -export interface ProvisionCheckConstraintVariables { - input: ProvisionCheckConstraintInput; -} -/** - * Variables for provisionUniqueConstraint - * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. - */ -export interface ProvisionUniqueConstraintVariables { - input: ProvisionUniqueConstraintInput; -} -/** - * Variables for provisionFullTextSearch - * Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. - */ -export interface ProvisionFullTextSearchVariables { - input: ProvisionFullTextSearchInput; -} -/** - * Variables for provisionIndex - * Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. - */ -export interface ProvisionIndexVariables { - input: ProvisionIndexInput; -} -/** - * Variables for copyTemplateToBlueprint - * 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. - */ -export interface CopyTemplateToBlueprintVariables { - input: CopyTemplateToBlueprintInput; -} -/** - * Variables for provisionSpatialRelation - * Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. - */ -export interface ProvisionSpatialRelationVariables { - input: ProvisionSpatialRelationInput; -} -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} -export interface SignUpVariables { - input: SignUpInput; -} -export interface SignInVariables { - input: SignInInput; -} -/** - * Variables for provisionRelation - * Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). - */ -export interface ProvisionRelationVariables { - input: ProvisionRelationInput; -} -export interface SetFieldOrderVariables { - input: SetFieldOrderInput; -} -export interface ApplyRlsVariables { - input: ApplyRlsInput; -} -export interface ProvisionDatabaseWithUserVariables { - input: ProvisionDatabaseWithUserInput; -} -/** - * 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) - -Returns the database_id UUID of the newly created database. - -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 - */ -export interface CreateUserDatabaseVariables { - input: CreateUserDatabaseInput; -} -export interface ExtendTokenExpiresVariables { - input: ExtendTokenExpiresInput; -} -export interface CreateApiKeyVariables { - input: CreateApiKeyInput; -} -export interface RequestCrossOriginTokenVariables { - input: RequestCrossOriginTokenInput; -} -/** - * Variables for provisionTable - * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - */ -export interface ProvisionTableVariables { - input: ProvisionTableInput; -} -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -/** - * 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 { - sendAccountDeletionEmail: ( - args: SendAccountDeletionEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendAccountDeletionEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendAccountDeletionEmail', - fieldName: 'sendAccountDeletionEmail', - ...buildCustomDocument( - 'mutation', - 'SendAccountDeletionEmail', - 'sendAccountDeletionEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendAccountDeletionEmailInput!', - }, - ], - connectionFieldsMap, - 'SendAccountDeletionEmailPayload' - ), - }), - signOut: ( - args: SignOutVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signOut: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignOut', - fieldName: 'signOut', - ...buildCustomDocument( - 'mutation', - 'SignOut', - 'signOut', - options.select, - args, - [ - { - name: 'input', - type: 'SignOutInput!', - }, - ], - connectionFieldsMap, - 'SignOutPayload' - ), - }), - acceptDatabaseTransfer: ( - args: AcceptDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - acceptDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AcceptDatabaseTransfer', - fieldName: 'acceptDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'AcceptDatabaseTransfer', - 'acceptDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'AcceptDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'AcceptDatabaseTransferPayload' - ), - }), - cancelDatabaseTransfer: ( - args: CancelDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - cancelDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CancelDatabaseTransfer', - fieldName: 'cancelDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'CancelDatabaseTransfer', - 'cancelDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'CancelDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'CancelDatabaseTransferPayload' - ), - }), - rejectDatabaseTransfer: ( - args: RejectDatabaseTransferVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - rejectDatabaseTransfer: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RejectDatabaseTransfer', - fieldName: 'rejectDatabaseTransfer', - ...buildCustomDocument( - 'mutation', - 'RejectDatabaseTransfer', - 'rejectDatabaseTransfer', - options.select, - args, - [ - { - name: 'input', - type: 'RejectDatabaseTransferInput!', - }, - ], - connectionFieldsMap, - 'RejectDatabaseTransferPayload' - ), - }), - disconnectAccount: ( - args: DisconnectAccountVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - disconnectAccount: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'DisconnectAccount', - fieldName: 'disconnectAccount', - ...buildCustomDocument( - 'mutation', - 'DisconnectAccount', - 'disconnectAccount', - options.select, - args, - [ - { - name: 'input', - type: 'DisconnectAccountInput!', - }, - ], - connectionFieldsMap, - 'DisconnectAccountPayload' - ), - }), - revokeApiKey: ( - args: RevokeApiKeyVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeApiKey: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeApiKey', - fieldName: 'revokeApiKey', - ...buildCustomDocument( - 'mutation', - 'RevokeApiKey', - 'revokeApiKey', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeApiKeyInput!', - }, - ], - connectionFieldsMap, - 'RevokeApiKeyPayload' - ), - }), - revokeSession: ( - args: RevokeSessionVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - revokeSession: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RevokeSession', - fieldName: 'revokeSession', - ...buildCustomDocument( - 'mutation', - 'RevokeSession', - 'revokeSession', - options.select, - args, - [ - { - name: 'input', - type: 'RevokeSessionInput!', - }, - ], - connectionFieldsMap, - 'RevokeSessionPayload' - ), - }), - verifyPassword: ( - args: VerifyPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyPassword', - fieldName: 'verifyPassword', - ...buildCustomDocument( - 'mutation', - 'VerifyPassword', - 'verifyPassword', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyPasswordInput!', - }, - ], - connectionFieldsMap, - 'VerifyPasswordPayload' - ), - }), - verifyTotp: ( - args: VerifyTotpVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyTotp: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyTotp', - fieldName: 'verifyTotp', - ...buildCustomDocument( - 'mutation', - 'VerifyTotp', - 'verifyTotp', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyTotpInput!', - }, - ], - connectionFieldsMap, - 'VerifyTotpPayload' - ), - }), - submitAppInviteCode: ( - args: SubmitAppInviteCodeVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - submitAppInviteCode: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SubmitAppInviteCode', - fieldName: 'submitAppInviteCode', - ...buildCustomDocument( - 'mutation', - 'SubmitAppInviteCode', - 'submitAppInviteCode', - options.select, - args, - [ - { - name: 'input', - type: 'SubmitAppInviteCodeInput!', - }, - ], - connectionFieldsMap, - 'SubmitAppInviteCodePayload' - ), - }), - submitOrgInviteCode: ( - args: SubmitOrgInviteCodeVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - submitOrgInviteCode: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SubmitOrgInviteCode', - fieldName: 'submitOrgInviteCode', - ...buildCustomDocument( - 'mutation', - 'SubmitOrgInviteCode', - 'submitOrgInviteCode', - options.select, - args, - [ - { - name: 'input', - type: 'SubmitOrgInviteCodeInput!', - }, - ], - connectionFieldsMap, - 'SubmitOrgInviteCodePayload' - ), - }), - checkPassword: ( - args: CheckPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - checkPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CheckPassword', - fieldName: 'checkPassword', - ...buildCustomDocument( - 'mutation', - 'CheckPassword', - 'checkPassword', - options.select, - args, - [ - { - name: 'input', - type: 'CheckPasswordInput!', - }, - ], - connectionFieldsMap, - 'CheckPasswordPayload' - ), - }), - confirmDeleteAccount: ( - args: ConfirmDeleteAccountVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmDeleteAccount: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmDeleteAccount', - fieldName: 'confirmDeleteAccount', - ...buildCustomDocument( - 'mutation', - 'ConfirmDeleteAccount', - 'confirmDeleteAccount', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmDeleteAccountInput!', - }, - ], - connectionFieldsMap, - 'ConfirmDeleteAccountPayload' - ), - }), - setPassword: ( - args: SetPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetPassword', - fieldName: 'setPassword', - ...buildCustomDocument( - 'mutation', - 'SetPassword', - 'setPassword', - options.select, - args, - [ - { - name: 'input', - type: 'SetPasswordInput!', - }, - ], - connectionFieldsMap, - 'SetPasswordPayload' - ), - }), - verifyEmail: ( - args: VerifyEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - verifyEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'VerifyEmail', - fieldName: 'verifyEmail', - ...buildCustomDocument( - 'mutation', - 'VerifyEmail', - 'verifyEmail', - options.select, - args, - [ - { - name: 'input', - type: 'VerifyEmailInput!', - }, - ], - connectionFieldsMap, - 'VerifyEmailPayload' - ), - }), - constructBlueprint: ( - args: ConstructBlueprintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - constructBlueprint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConstructBlueprint', - fieldName: 'constructBlueprint', - ...buildCustomDocument( - 'mutation', - 'ConstructBlueprint', - 'constructBlueprint', - options.select, - args, - [ - { - name: 'input', - type: 'ConstructBlueprintInput!', - }, - ], - connectionFieldsMap, - 'ConstructBlueprintPayload' - ), - }), - provisionNewUser: ( - args: ProvisionNewUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionNewUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionNewUser', - fieldName: 'provisionNewUser', - ...buildCustomDocument( - 'mutation', - 'ProvisionNewUser', - 'provisionNewUser', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionNewUserInput!', - }, - ], - connectionFieldsMap, - 'ProvisionNewUserPayload' - ), - }), - resetPassword: ( - args: ResetPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resetPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ResetPassword', - fieldName: 'resetPassword', - ...buildCustomDocument( - 'mutation', - 'ResetPassword', - 'resetPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ResetPasswordInput!', - }, - ], - connectionFieldsMap, - 'ResetPasswordPayload' - ), - }), - provisionCheckConstraint: ( - args: ProvisionCheckConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionCheckConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionCheckConstraint', - fieldName: 'provisionCheckConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionCheckConstraint', - 'provisionCheckConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionCheckConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionCheckConstraintPayload' - ), - }), - provisionUniqueConstraint: ( - args: ProvisionUniqueConstraintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionUniqueConstraint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionUniqueConstraint', - fieldName: 'provisionUniqueConstraint', - ...buildCustomDocument( - 'mutation', - 'ProvisionUniqueConstraint', - 'provisionUniqueConstraint', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionUniqueConstraintInput!', - }, - ], - connectionFieldsMap, - 'ProvisionUniqueConstraintPayload' - ), - }), - provisionFullTextSearch: ( - args: ProvisionFullTextSearchVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionFullTextSearch: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionFullTextSearch', - fieldName: 'provisionFullTextSearch', - ...buildCustomDocument( - 'mutation', - 'ProvisionFullTextSearch', - 'provisionFullTextSearch', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionFullTextSearchInput!', - }, - ], - connectionFieldsMap, - 'ProvisionFullTextSearchPayload' - ), - }), - provisionIndex: ( - args: ProvisionIndexVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionIndex: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionIndex', - fieldName: 'provisionIndex', - ...buildCustomDocument( - 'mutation', - 'ProvisionIndex', - 'provisionIndex', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionIndexInput!', - }, - ], - connectionFieldsMap, - 'ProvisionIndexPayload' - ), - }), - copyTemplateToBlueprint: ( - args: CopyTemplateToBlueprintVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - copyTemplateToBlueprint: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CopyTemplateToBlueprint', - fieldName: 'copyTemplateToBlueprint', - ...buildCustomDocument( - 'mutation', - 'CopyTemplateToBlueprint', - 'copyTemplateToBlueprint', - options.select, - args, - [ - { - name: 'input', - type: 'CopyTemplateToBlueprintInput!', - }, - ], - connectionFieldsMap, - 'CopyTemplateToBlueprintPayload' - ), - }), - provisionSpatialRelation: ( - args: ProvisionSpatialRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionSpatialRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionSpatialRelation', - fieldName: 'provisionSpatialRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionSpatialRelation', - 'provisionSpatialRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionSpatialRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionSpatialRelationPayload' - ), - }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), - bootstrapUser: ( - args: BootstrapUserVariables, - options: { - 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' - ), - }), - signUp: ( - args: SignUpVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signUp: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', - ...buildCustomDocument( - 'mutation', - 'SignUp', - 'signUp', - options.select, - args, - [ - { - name: 'input', - type: 'SignUpInput!', - }, - ], - connectionFieldsMap, - 'SignUpPayload' - ), - }), - signIn: ( - args: SignInVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signIn: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', - ...buildCustomDocument( - 'mutation', - 'SignIn', - 'signIn', - options.select, - args, - [ - { - name: 'input', - type: 'SignInInput!', - }, - ], - connectionFieldsMap, - 'SignInPayload' - ), - }), - provisionRelation: ( - args: ProvisionRelationVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionRelation: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionRelation', - fieldName: 'provisionRelation', - ...buildCustomDocument( - 'mutation', - 'ProvisionRelation', - 'provisionRelation', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionRelationInput!', - }, - ], - connectionFieldsMap, - 'ProvisionRelationPayload' - ), - }), - setFieldOrder: ( - args: SetFieldOrderVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - setFieldOrder: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SetFieldOrder', - fieldName: 'setFieldOrder', - ...buildCustomDocument( - 'mutation', - 'SetFieldOrder', - 'setFieldOrder', - options.select, - args, - [ - { - name: 'input', - type: 'SetFieldOrderInput!', - }, - ], - connectionFieldsMap, - 'SetFieldOrderPayload' - ), - }), - applyRls: ( - args: ApplyRlsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - applyRls: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ApplyRls', - fieldName: 'applyRls', - ...buildCustomDocument( - 'mutation', - 'ApplyRls', - 'applyRls', - options.select, - args, - [ - { - name: 'input', - type: 'ApplyRlsInput!', - }, - ], - connectionFieldsMap, - 'ApplyRlsPayload' - ), - }), - 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' - ), - }), - createUserDatabase: ( - args: CreateUserDatabaseVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createUserDatabase: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateUserDatabase', - fieldName: 'createUserDatabase', - ...buildCustomDocument( - 'mutation', - 'CreateUserDatabase', - 'createUserDatabase', - options.select, - args, - [ - { - name: 'input', - type: 'CreateUserDatabaseInput!', - }, - ], - connectionFieldsMap, - 'CreateUserDatabasePayload' - ), - }), - extendTokenExpires: ( - args: ExtendTokenExpiresVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - extendTokenExpires: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ExtendTokenExpires', - fieldName: 'extendTokenExpires', - ...buildCustomDocument( - 'mutation', - 'ExtendTokenExpires', - 'extendTokenExpires', - options.select, - args, - [ - { - name: 'input', - type: 'ExtendTokenExpiresInput!', - }, - ], - connectionFieldsMap, - 'ExtendTokenExpiresPayload' - ), - }), - createApiKey: ( - args: CreateApiKeyVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createApiKey: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateApiKey', - fieldName: 'createApiKey', - ...buildCustomDocument( - 'mutation', - 'CreateApiKey', - 'createApiKey', - options.select, - args, - [ - { - name: 'input', - type: 'CreateApiKeyInput!', - }, - ], - connectionFieldsMap, - 'CreateApiKeyPayload' - ), - }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', - ...buildCustomDocument( - 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', - options.select, - args, - [ - { - name: 'input', - type: 'RequestCrossOriginTokenInput!', - }, - ], - connectionFieldsMap, - 'RequestCrossOriginTokenPayload' - ), - }), - provisionTable: ( - args: ProvisionTableVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionTable: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', - ...buildCustomDocument( - 'mutation', - 'ProvisionTable', - 'provisionTable', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionTableInput!', - }, - ], - connectionFieldsMap, - 'ProvisionTablePayload' - ), - }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - 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/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts deleted file mode 100644 index 52b0724d6e..0000000000 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ /dev/null @@ -1,615 +0,0 @@ -/** - * Custom query operations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { - User, - UserSelect, - AppPermissionConnection, - OrgPermissionConnection, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export interface RequireStepUpVariables { - stepUpType?: string; -} -export interface AppPermissionsGetPaddedMaskVariables { - mask?: string; -} -export interface OrgPermissionsGetPaddedMaskVariables { - mask?: string; -} -export interface ApplyRegistryDefaultsVariables { - nodeType?: string; - data?: unknown; -} -/** - * Variables for resolveBlueprintField - * Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. - */ -export interface ResolveBlueprintFieldVariables { - databaseId?: string; - tableId?: string; - fieldName?: string; -} -/** - * Variables for resolveBlueprintTable - * Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. - */ -export interface ResolveBlueprintTableVariables { - databaseId?: string; - tableName?: string; - schemaName?: string; - tableMap?: unknown; - defaultSchemaId?: string; -} -export interface OrgIsManagerOfVariables { - pEntityId?: string; - pManagerId?: string; - pUserId?: string; - pMaxDepth?: number; -} -export interface AppPermissionsGetMaskVariables { - ids?: string[]; -} -export interface OrgPermissionsGetMaskVariables { - ids?: string[]; -} -export interface AppPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface OrgPermissionsGetMaskByNamesVariables { - names?: string[]; -} -export interface AppPermissionsGetByMaskVariables { - mask?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export interface OrgPermissionsGetByMaskVariables { - mask?: string; - /** Only read the first `n` values of the set. */ - first?: number; - /** - * Skip the first `n` values from our `after` cursor, an alternative to cursor - * based pagination. May not be used with `last`. - */ - offset?: number; - /** Read all values in the set after (below) this cursor. */ - after?: string; -} -export function createQueryOperations(client: OrmClient) { - return { - currentUserId: (options?: { select?: Record }) => - new QueryBuilder<{ - currentUserId: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUserId', - fieldName: 'currentUserId', - ...buildCustomDocument( - 'query', - 'CurrentUserId', - 'currentUserId', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - currentUserAgent: (options?: { select?: Record }) => - new QueryBuilder<{ - currentUserAgent: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUserAgent', - fieldName: 'currentUserAgent', - ...buildCustomDocument( - 'query', - 'CurrentUserAgent', - 'currentUserAgent', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - currentIpAddress: (options?: { select?: Record }) => - new QueryBuilder<{ - currentIpAddress: string | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentIpAddress', - fieldName: 'currentIpAddress', - ...buildCustomDocument( - 'query', - 'CurrentIpAddress', - 'currentIpAddress', - options?.select, - undefined, - [], - connectionFieldsMap, - undefined - ), - }), - requireStepUp: ( - args: RequireStepUpVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - requireStepUp: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'RequireStepUp', - fieldName: 'requireStepUp', - ...buildCustomDocument( - 'query', - 'RequireStepUp', - 'requireStepUp', - options?.select, - args, - [ - { - name: 'stepUpType', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetPaddedMask: ( - args: AppPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetPaddedMask', - fieldName: 'appPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetPaddedMask', - 'appPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetPaddedMask: ( - args: OrgPermissionsGetPaddedMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetPaddedMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetPaddedMask', - fieldName: 'orgPermissionsGetPaddedMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetPaddedMask', - 'orgPermissionsGetPaddedMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - ], - connectionFieldsMap, - undefined - ), - }), - applyRegistryDefaults: ( - args: ApplyRegistryDefaultsVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - applyRegistryDefaults: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApplyRegistryDefaults', - fieldName: 'applyRegistryDefaults', - ...buildCustomDocument( - 'query', - 'ApplyRegistryDefaults', - 'applyRegistryDefaults', - options?.select, - args, - [ - { - name: 'nodeType', - type: 'String', - }, - { - name: 'data', - type: 'JSON', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintField: ( - args: ResolveBlueprintFieldVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintField: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintField', - fieldName: 'resolveBlueprintField', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintField', - 'resolveBlueprintField', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'tableId', - type: 'UUID', - }, - { - name: 'fieldName', - type: 'String', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveBlueprintTable: ( - args: ResolveBlueprintTableVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveBlueprintTable: string | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveBlueprintTable', - fieldName: 'resolveBlueprintTable', - ...buildCustomDocument( - 'query', - 'ResolveBlueprintTable', - 'resolveBlueprintTable', - options?.select, - args, - [ - { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'tableName', - type: 'String', - }, - { - name: 'schemaName', - type: 'String', - }, - { - name: 'tableMap', - type: 'JSON', - }, - { - name: 'defaultSchemaId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgIsManagerOf: ( - args: OrgIsManagerOfVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgIsManagerOf: boolean | null; - }>({ - client, - operation: 'query', - operationName: 'OrgIsManagerOf', - fieldName: 'orgIsManagerOf', - ...buildCustomDocument( - 'query', - 'OrgIsManagerOf', - 'orgIsManagerOf', - options?.select, - args, - [ - { - name: 'pEntityId', - type: 'UUID', - }, - { - name: 'pManagerId', - type: 'UUID', - }, - { - name: 'pUserId', - type: 'UUID', - }, - { - name: 'pMaxDepth', - type: 'Int', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMask: ( - args: AppPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMask', - fieldName: 'appPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMask', - 'appPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMask: ( - args: OrgPermissionsGetMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMask: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMask', - fieldName: 'orgPermissionsGetMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMask', - 'orgPermissionsGetMask', - options?.select, - args, - [ - { - name: 'ids', - type: '[UUID]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetMaskByNames: ( - args: AppPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetMaskByNames', - fieldName: 'appPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetMaskByNames', - 'appPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetMaskByNames: ( - args: OrgPermissionsGetMaskByNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetMaskByNames: string | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetMaskByNames', - fieldName: 'orgPermissionsGetMaskByNames', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetMaskByNames', - 'orgPermissionsGetMaskByNames', - options?.select, - args, - [ - { - name: 'names', - type: '[String]', - }, - ], - connectionFieldsMap, - undefined - ), - }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; - }>({ - client, - operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', - ...buildCustomDocument( - 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, - args, - [ - { - name: 'mask', - type: 'BitString', - }, - { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', - }, - { - name: 'after', - type: 'Cursor', - }, - ], - connectionFieldsMap, - undefined - ), - }), - currentUser: ( - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - currentUser: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'CurrentUser', - fieldName: 'currentUser', - ...buildCustomDocument( - 'query', - 'CurrentUser', - 'currentUser', - options.select, - undefined, - [], - connectionFieldsMap, - 'User' - ), - }), - }; -} diff --git a/sdk/constructive-sdk/src/usage/README.md b/sdk/constructive-sdk/src/usage/README.md new file mode 100644 index 0000000000..99f27a1620 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 18 +- **Custom queries:** 0 +- **Custom mutations:** 5 + +**Generators:** ORM + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +--- + +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/usage/index.ts b/sdk/constructive-sdk/src/usage/index.ts new file mode 100644 index 0000000000..654223e7a5 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/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/usage/orm/README.md b/sdk/constructive-sdk/src/usage/orm/README.md new file mode 100644 index 0000000000..445adc76d8 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/orm/README.md @@ -0,0 +1,767 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `appLimitCapsDefault` | findMany, findOne, create, update, delete | +| `orgLimitCapsDefault` | findMany, findOne, create, update, delete | +| `appLimitCap` | findMany, findOne, create, update, delete | +| `orgLimitCap` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `appLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCodeItem` | findMany, findOne, create, update, delete | +| `appLimitCreditRedemption` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitWarning` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.appLimitCapsDefault` + +CRUD operations for AppLimitCapsDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitCapsDefault records +const items = await db.appLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.appLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCapsDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCapsDefault` + +CRUD operations for OrgLimitCapsDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitCapsDefault records +const items = await db.orgLimitCapsDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCapsDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitCapsDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCapsDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCapsDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCap` + +CRUD operations for AppLimitCap records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitCap records +const items = await db.appLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Create +const created = await db.appLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCap.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCap` + +CRUD operations for OrgLimitCap records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `max` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitCap records +const items = await db.orgLimitCap.findMany({ select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCap.findOne({ id: '', select: { id: true, name: true, entityId: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitCap.create({ data: { name: '', entityId: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCredit` + +CRUD operations for AppLimitCredit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `defaultLimitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCredit records +const items = await db.appLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, amount: true, creditType: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitCredit.create({ data: { defaultLimitId: '', actorId: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCredit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditCodeItem` + +CRUD operations for AppLimitCreditCodeItem records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `creditCodeId` | UUID | Yes | +| `defaultLimitId` | UUID | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditCodeItem records +const items = await db.appLimitCreditCodeItem.findMany({ select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditCodeItem.findOne({ id: '', select: { id: true, creditCodeId: true, defaultLimitId: true, amount: true, creditType: true } }).execute(); + +// Create +const created = await db.appLimitCreditCodeItem.create({ data: { creditCodeId: '', defaultLimitId: '', amount: '', creditType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditCodeItem.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditCodeItem.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditRedemption` + +CRUD operations for AppLimitCreditRedemption records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `creditCodeId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditRedemption records +const items = await db.appLimitCreditRedemption.findMany({ select: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditRedemption.findOne({ id: '', select: { id: true, creditCodeId: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.appLimitCreditRedemption.create({ data: { creditCodeId: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditRedemption.update({ where: { id: '' }, data: { creditCodeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditRedemption.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitCredit` + +CRUD operations for OrgLimitCredit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `defaultLimitId` | UUID | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `amount` | BigInt | Yes | +| `creditType` | String | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitCredit records +const items = await db.orgLimitCredit.findMany({ select: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitCredit.findOne({ id: '', select: { id: true, defaultLimitId: true, actorId: true, entityId: true, organizationId: true, entityType: true, amount: true, creditType: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitCredit.create({ data: { defaultLimitId: '', actorId: '', entityId: '', organizationId: '', entityType: '', amount: '', creditType: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: { defaultLimitId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitWarning` + +CRUD operations for AppLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Get one by id +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); + +// Create +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitWarning` + +CRUD operations for OrgLimitWarning records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitCreditCode` + +CRUD operations for AppLimitCreditCode records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); + +// Get one by id +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); + +// Create +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, organizationId: true, entityType: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', organizationId: '', entityType: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `reserved` | BigInt | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, reserved: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', reserved: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimit` + +CRUD operations for OrgLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | +| `planMax` | BigInt | Yes | +| `purchasedCredits` | BigInt | Yes | +| `periodCredits` | BigInt | Yes | +| `entityId` | UUID | Yes | +| `organizationId` | UUID | Yes | +| `entityType` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Get one by id +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, planMax: true, purchasedCredits: true, periodCredits: true, entityId: true, organizationId: true, entityType: true } }).execute(); + +// Create +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '', organizationId: '', entityType: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.seedAppLimitCapsDefaults` + +seedAppLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitCapsDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedAppLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedAppLimitDefaults` + +seedAppLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedAppLimitDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedAppLimitDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedOrgLimitCapsDefaults` + +seedOrgLimitCapsDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitCapsDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedOrgLimitCapsDefaults({ input: { defaults: '' } }).execute(); +``` + +### `db.mutation.seedOrgLimitDefaults` + +seedOrgLimitDefaults + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SeedOrgLimitDefaultsInput (required) | + +```typescript +const result = await db.mutation.seedOrgLimitDefaults({ input: { defaults: '' } }).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/usage/orm/client.ts b/sdk/constructive-sdk/src/usage/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/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/usage/orm/index.ts b/sdk/constructive-sdk/src/usage/orm/index.ts new file mode 100644 index 0000000000..9b85b8933c --- /dev/null +++ b/sdk/constructive-sdk/src/usage/orm/index.ts @@ -0,0 +1,79 @@ +/** + * 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 { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; +import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; +import { AppLimitCapModel } from './models/appLimitCap'; +import { OrgLimitCapModel } from './models/orgLimitCap'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { AppLimitCreditModel } from './models/appLimitCredit'; +import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; +import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitWarningModel } from './models/appLimitWarning'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; +import { AppLimitModel } from './models/appLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; +import { OrgLimitModel } from './models/orgLimit'; +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 { + appLimitCapsDefault: new AppLimitCapsDefaultModel(client), + orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), + appLimitCap: new AppLimitCapModel(client), + orgLimitCap: new OrgLimitCapModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + appLimitCredit: new AppLimitCreditModel(client), + appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client), + appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), + orgLimitCredit: new OrgLimitCreditModel(client), + appLimitWarning: new AppLimitWarningModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), + appLimit: new AppLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), + orgLimit: new OrgLimitModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-sdk/src/usage/orm/input-types.ts b/sdk/constructive-sdk/src/usage/orm/input-types.ts new file mode 100644 index 0000000000..8c8382f866 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/orm/input-types.ts @@ -0,0 +1,3642 @@ +/** + * 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; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +// ============ Entity Types ============ +export interface AppLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface OrgLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Append-only ledger of credit grants that automatically update limit ceilings */ +export interface AppLimitCredit { + id: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string | null; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string | null; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string | null; +} +/** Items within a credit code — each row grants credits for a specific limit definition */ +export interface AppLimitCreditCodeItem { + id: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string | null; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId?: string | null; + /** Number of credits this item grants per redemption */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; +} +/** Append-only ledger of code redemptions; AFTER INSERT trigger validates and cascades to limit_credits */ +export interface AppLimitCreditRedemption { + id: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId?: string | null; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Append-only ledger of credit grants that automatically update limit ceilings */ +export interface OrgLimitCredit { + id: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string | null; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string | null; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string | null; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string | null; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string | null; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface AppLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface AppLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface OrgLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string | null; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string | null; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string | null; + entityId?: string | null; + /** Resolved billable organization via get_organization_id */ + organizationId?: string | null; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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 AppLimitCapsDefaultRelations {} +export interface OrgLimitCapsDefaultRelations {} +export interface AppLimitCapRelations {} +export interface OrgLimitCapRelations {} +export interface AppLimitDefaultRelations { + appLimitCreditsByDefaultLimitId?: ConnectionResult; + appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; +} +export interface AppLimitCreditRelations { + defaultLimit?: AppLimitDefault | null; +} +export interface AppLimitCreditCodeItemRelations { + creditCode?: AppLimitCreditCode | null; + defaultLimit?: AppLimitDefault | null; +} +export interface AppLimitCreditRedemptionRelations { + creditCode?: AppLimitCreditCode | null; +} +export interface OrgLimitDefaultRelations { + orgLimitCreditsByDefaultLimitId?: ConnectionResult; +} +export interface OrgLimitCreditRelations { + defaultLimit?: OrgLimitDefault | null; +} +export interface AppLimitWarningRelations {} +export interface OrgLimitWarningRelations {} +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} +export interface AppLimitRelations {} +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +// ============ Entity Types With Relations ============ +export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; +export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; +export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; +export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelations; +export type AppLimitCreditCodeItemWithRelations = AppLimitCreditCodeItem & + AppLimitCreditCodeItemRelations; +export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & + AppLimitCreditRedemptionRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +// ============ Entity Select Types ============ +export type AppLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; + appLimitCreditsByDefaultLimitId?: { + select: AppLimitCreditSelect; + first?: number; + filter?: AppLimitCreditFilter; + orderBy?: AppLimitCreditOrderBy[]; + }; + appLimitCreditCodeItemsByDefaultLimitId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; +}; +export type AppLimitCreditSelect = { + id?: boolean; + defaultLimitId?: boolean; + actorId?: boolean; + amount?: boolean; + creditType?: boolean; + reason?: boolean; + defaultLimit?: { + select: AppLimitDefaultSelect; + }; +}; +export type AppLimitCreditCodeItemSelect = { + id?: boolean; + creditCodeId?: boolean; + defaultLimitId?: boolean; + amount?: boolean; + creditType?: boolean; + creditCode?: { + select: AppLimitCreditCodeSelect; + }; + defaultLimit?: { + select: AppLimitDefaultSelect; + }; +}; +export type AppLimitCreditRedemptionSelect = { + id?: boolean; + creditCodeId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + creditCode?: { + select: AppLimitCreditCodeSelect; + }; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; + orgLimitCreditsByDefaultLimitId?: { + select: OrgLimitCreditSelect; + first?: number; + filter?: OrgLimitCreditFilter; + orderBy?: OrgLimitCreditOrderBy[]; + }; +}; +export type OrgLimitCreditSelect = { + id?: boolean; + defaultLimitId?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + amount?: boolean; + creditType?: boolean; + reason?: boolean; + defaultLimit?: { + select: OrgLimitDefaultSelect; + }; +}; +export type AppLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; +}; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + reserved?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +export type OrgLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + planMax?: boolean; + purchasedCredits?: boolean; + periodCredits?: boolean; + entityId?: boolean; + organizationId?: boolean; + entityType?: boolean; +}; +// ============ Table Filter Types ============ +export interface AppLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +export interface OrgLimitCapsDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} +export interface AppLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; + /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ + orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; + /** `orgLimitCreditsByDefaultLimitId` exist. */ + orgLimitCreditsByDefaultLimitIdExist?: boolean; +} +export interface OrgLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCreditFilter[]; + /** Negates the expression. */ + not?: OrgLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: OrgLimitDefaultFilter; +} +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +// ============ OrderBy Types ============ +export type AppLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapsDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type AppLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type AppLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitCreditCodeItemOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC'; +export type AppLimitCreditRedemptionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREDIT_CODE_ID_ASC' + | 'CREDIT_CODE_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitCreditOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DEFAULT_LIMIT_ID_ASC' + | 'DEFAULT_LIMIT_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'AMOUNT_ASC' + | 'AMOUNT_DESC' + | 'CREDIT_TYPE_ASC' + | 'CREDIT_TYPE_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'RESERVED_ASC' + | 'RESERVED_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +export type OrgLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' + | 'PLAN_MAX_ASC' + | 'PLAN_MAX_DESC' + | 'PURCHASED_CREDITS_ASC' + | 'PURCHASED_CREDITS_DESC' + | 'PERIOD_CREDITS_ASC' + | 'PERIOD_CREDITS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'ORGANIZATION_ID_ASC' + | 'ORGANIZATION_ID_DESC' + | 'ENTITY_TYPE_ASC' + | 'ENTITY_TYPE_DESC'; +// ============ CRUD Input Types ============ +export interface CreateAppLimitCapsDefaultInput { + clientMutationId?: string; + appLimitCapsDefault: { + name: string; + max?: string; + }; +} +export interface AppLimitCapsDefaultPatch { + name?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; +} +export interface DeleteAppLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCapsDefaultInput { + clientMutationId?: string; + orgLimitCapsDefault: { + name: string; + max?: string; + }; +} +export interface OrgLimitCapsDefaultPatch { + name?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; +} +export interface DeleteOrgLimitCapsDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCapInput { + clientMutationId?: string; + appLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface AppLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateAppLimitCapInput { + clientMutationId?: string; + id: string; + appLimitCapPatch: AppLimitCapPatch; +} +export interface DeleteAppLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCapInput { + clientMutationId?: string; + orgLimitCap: { + name: string; + entityId: string; + max?: string; + }; +} +export interface OrgLimitCapPatch { + name?: string | null; + entityId?: string | null; + max?: string | null; +} +export interface UpdateOrgLimitCapInput { + clientMutationId?: string; + id: string; + orgLimitCapPatch: OrgLimitCapPatch; +} +export interface DeleteOrgLimitCapInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: { + name: string; + max?: string; + softMax?: string; + }; +} +export interface AppLimitDefaultPatch { + name?: string | null; + max?: string | null; + softMax?: string | null; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditInput { + clientMutationId?: string; + appLimitCredit: { + defaultLimitId: string; + actorId?: string; + amount: string; + creditType?: string; + reason?: string; + }; +} +export interface AppLimitCreditPatch { + defaultLimitId?: string | null; + actorId?: string | null; + amount?: string | null; + creditType?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitCreditInput { + clientMutationId?: string; + id: string; + appLimitCreditPatch: AppLimitCreditPatch; +} +export interface DeleteAppLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditCodeItemInput { + clientMutationId?: string; + appLimitCreditCodeItem: { + creditCodeId: string; + defaultLimitId: string; + amount: string; + creditType?: string; + }; +} +export interface AppLimitCreditCodeItemPatch { + creditCodeId?: string | null; + defaultLimitId?: string | null; + amount?: string | null; + creditType?: string | null; +} +export interface UpdateAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; +} +export interface DeleteAppLimitCreditCodeItemInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditRedemptionInput { + clientMutationId?: string; + appLimitCreditRedemption: { + creditCodeId: string; + entityId: string; + organizationId?: string; + entityType?: string; + }; +} +export interface AppLimitCreditRedemptionPatch { + creditCodeId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; + appLimitCreditRedemptionPatch: AppLimitCreditRedemptionPatch; +} +export interface DeleteAppLimitCreditRedemptionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: { + name: string; + max?: string; + softMax?: string; + }; +} +export interface OrgLimitDefaultPatch { + name?: string | null; + max?: string | null; + softMax?: string | null; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitCreditInput { + clientMutationId?: string; + orgLimitCredit: { + defaultLimitId: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + amount: string; + creditType?: string; + reason?: string; + }; +} +export interface OrgLimitCreditPatch { + defaultLimitId?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + amount?: string | null; + creditType?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitCreditInput { + clientMutationId?: string; + id: string; + orgLimitCreditPatch: OrgLimitCreditPatch; +} +export interface DeleteOrgLimitCreditInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + appLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + }; +} +export interface AppLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + appLimitWarningPatch: AppLimitWarningPatch; +} +export interface DeleteAppLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitWarningInput { + clientMutationId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; + }; +} +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; +} +export interface UpdateOrgLimitWarningInput { + clientMutationId?: string; + id: string; + orgLimitWarningPatch: OrgLimitWarningPatch; +} +export interface DeleteOrgLimitWarningInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + organizationId?: string; + entityType?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + organizationId?: string; + entityType?: string; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + reserved?: string; + organizationId?: string; + entityType?: string; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + reserved?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + orgLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + planMax?: string; + purchasedCredits?: string; + periodCredits?: string; + entityId: string; + organizationId?: string; + entityType?: string; + }; +} +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; + planMax?: string | null; + purchasedCredits?: string | null; + periodCredits?: string | null; + entityId?: string | null; + organizationId?: string | null; + entityType?: string | null; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + AppLimitDefault: { + appLimitCreditsByDefaultLimitId: 'AppLimitCredit', + appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', + }, + OrgLimitDefault: { + orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', + }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SeedAppLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedAppLimitDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedOrgLimitCapsDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface SeedOrgLimitDefaultsInput { + clientMutationId?: string; + defaults?: Record; +} +export interface ProvisionBucketInput { + /** The logical bucket key (e.g., "public", "private") */ + bucketKey: string; + /** + * Owner entity ID for entity-scoped bucket provisioning. + * Omit for app-level (database-wide) storage. + */ + ownerId?: string; +} +/** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditFilter; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultToManyOrgLimitCreditFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitCreditFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitCreditFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitCreditFilter; +} +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + 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; +} +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} +/** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCreditFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCreditFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCreditFilter[]; + /** Negates the expression. */ + not?: OrgLimitCreditFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: OrgLimitDefaultFilter; +} +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `organizationId` field. */ + organizationId?: UUIDFilter; + /** Filter by the object’s `entityType` field. */ + entityType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * 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 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; +} +/** A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ */ +export interface BigIntFilter { + /** 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; +} +/** 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; +} +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} +/** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; + /** Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation. */ + orgLimitCreditsByDefaultLimitId?: OrgLimitDefaultToManyOrgLimitCreditFilter; + /** `orgLimitCreditsByDefaultLimitId` exist. */ + orgLimitCreditsByDefaultLimitIdExist?: boolean; +} +/** 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; +} +/** 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; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface SeedAppLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedAppLimitCapsDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedAppLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedAppLimitDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedOrgLimitCapsDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedOrgLimitCapsDefaultsPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SeedOrgLimitDefaultsPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SeedOrgLimitDefaultsPayloadSelect = { + 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 CreateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was created by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type CreateAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was updated by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type UpdateAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitCapsDefault` that was deleted by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; +} +export type DeleteAppLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitCapsDefault?: { + select: AppLimitCapsDefaultSelect; + }; + appLimitCapsDefaultEdge?: { + select: AppLimitCapsDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was created by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type CreateOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was updated by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type UpdateOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapsDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; +} +export type DeleteOrgLimitCapsDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitCapsDefault?: { + select: OrgLimitCapsDefaultSelect; + }; + orgLimitCapsDefaultEdge?: { + select: OrgLimitCapsDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type CreateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface UpdateAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type UpdateAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface DeleteAppLimitCapPayload { + clientMutationId?: string | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; +} +export type DeleteAppLimitCapPayloadSelect = { + clientMutationId?: boolean; + appLimitCap?: { + select: AppLimitCapSelect; + }; + appLimitCapEdge?: { + select: AppLimitCapEdgeSelect; + }; +}; +export interface CreateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type CreateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface UpdateOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type UpdateOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface DeleteOrgLimitCapPayload { + clientMutationId?: string | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; +} +export type DeleteOrgLimitCapPayloadSelect = { + clientMutationId?: boolean; + orgLimitCap?: { + select: OrgLimitCapSelect; + }; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type UpdateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type DeleteAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was created by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type CreateAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was updated by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type UpdateAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was deleted by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export type DeleteAppLimitCreditPayloadSelect = { + clientMutationId?: boolean; + appLimitCredit?: { + select: AppLimitCreditSelect; + }; + appLimitCreditEdge?: { + select: AppLimitCreditEdgeSelect; + }; +}; +export interface CreateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type CreateAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type UpdateAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; +} +export type DeleteAppLimitCreditCodeItemPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCodeItem?: { + select: AppLimitCreditCodeItemSelect; + }; + appLimitCreditCodeItemEdge?: { + select: AppLimitCreditCodeItemEdgeSelect; + }; +}; +export interface CreateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was created by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type CreateAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was updated by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type UpdateAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditRedemptionPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ + appLimitCreditRedemption?: AppLimitCreditRedemption | null; + appLimitCreditRedemptionEdge?: AppLimitCreditRedemptionEdge | null; +} +export type DeleteAppLimitCreditRedemptionPayloadSelect = { + clientMutationId?: boolean; + appLimitCreditRedemption?: { + select: AppLimitCreditRedemptionSelect; + }; + appLimitCreditRedemptionEdge?: { + select: AppLimitCreditRedemptionEdgeSelect; + }; +}; +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type CreateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type UpdateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type DeleteOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was created by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type CreateOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface UpdateOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was updated by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type UpdateOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface DeleteOrgLimitCreditPayload { + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was deleted by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; +} +export type DeleteOrgLimitCreditPayloadSelect = { + clientMutationId?: boolean; + orgLimitCredit?: { + select: OrgLimitCreditSelect; + }; + orgLimitCreditEdge?: { + select: OrgLimitCreditEdgeSelect; + }; +}; +export interface CreateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was created by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type CreateAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface UpdateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was updated by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type UpdateAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface DeleteAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was deleted by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; +} +export type DeleteAppLimitWarningPayloadSelect = { + clientMutationId?: boolean; + appLimitWarning?: { + select: AppLimitWarningSelect; + }; + appLimitWarningEdge?: { + select: AppLimitWarningEdgeSelect; + }; +}; +export interface CreateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type CreateOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface UpdateOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type UpdateOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface DeleteOrgLimitWarningPayload { + clientMutationId?: string | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; +} +export type DeleteOrgLimitWarningPayloadSelect = { + clientMutationId?: boolean; + orgLimitWarning?: { + select: OrgLimitWarningSelect; + }; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; + }; +}; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type UpdateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type DeleteOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type UpdateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type DeleteOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +/** A `AppLimitCapsDefault` edge in the connection. */ +export interface AppLimitCapsDefaultEdge { + cursor?: string | null; + /** The `AppLimitCapsDefault` at the end of the edge. */ + node?: AppLimitCapsDefault | null; +} +export type AppLimitCapsDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapsDefaultSelect; + }; +}; +/** A `OrgLimitCapsDefault` edge in the connection. */ +export interface OrgLimitCapsDefaultEdge { + cursor?: string | null; + /** The `OrgLimitCapsDefault` at the end of the edge. */ + node?: OrgLimitCapsDefault | null; +} +export type OrgLimitCapsDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapsDefaultSelect; + }; +}; +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { + cursor?: string | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; +} +export type AppLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCapSelect; + }; +}; +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { + cursor?: string | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; +} +export type OrgLimitCapEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCapSelect; + }; +}; +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +/** A `AppLimitCredit` edge in the connection. */ +export interface AppLimitCreditEdge { + cursor?: string | null; + /** The `AppLimitCredit` at the end of the edge. */ + node?: AppLimitCredit | null; +} +export type AppLimitCreditEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditSelect; + }; +}; +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { + cursor?: string | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; +} +export type AppLimitCreditCodeItemEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeItemSelect; + }; +}; +/** A `AppLimitCreditRedemption` edge in the connection. */ +export interface AppLimitCreditRedemptionEdge { + cursor?: string | null; + /** The `AppLimitCreditRedemption` at the end of the edge. */ + node?: AppLimitCreditRedemption | null; +} +export type AppLimitCreditRedemptionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditRedemptionSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; +/** A `OrgLimitCredit` edge in the connection. */ +export interface OrgLimitCreditEdge { + cursor?: string | null; + /** The `OrgLimitCredit` at the end of the edge. */ + node?: OrgLimitCredit | null; +} +export type OrgLimitCreditEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitCreditSelect; + }; +}; +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { + cursor?: string | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; +} +export type AppLimitWarningEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitWarningSelect; + }; +}; +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { + cursor?: string | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; +} +export type OrgLimitWarningEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitWarningSelect; + }; +}; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +export type AppLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitEventSelect; + }; +}; +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} +export type OrgLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitEventSelect; + }; +}; +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; diff --git a/sdk/constructive-react/src/admin/orm/models/appLimit.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimit.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimit.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimit.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitCap.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitCap.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitCap.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitCap.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitCapsDefault.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitCapsDefault.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitCapsDefault.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitCapsDefault.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitCredit.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitCredit.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitCredit.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitCredit.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitCreditCode.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitCreditCode.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitCreditCode.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitCreditCode.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitCreditCodeItem.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitCreditCodeItem.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitCreditCodeItem.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitCreditCodeItem.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitCreditRedemption.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitCreditRedemption.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitCreditRedemption.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitCreditRedemption.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitDefault.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitDefault.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitDefault.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitDefault.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitEvent.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitEvent.ts diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitWarning.ts b/sdk/constructive-sdk/src/usage/orm/models/appLimitWarning.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/appLimitWarning.ts rename to sdk/constructive-sdk/src/usage/orm/models/appLimitWarning.ts diff --git a/sdk/constructive-sdk/src/usage/orm/models/index.ts b/sdk/constructive-sdk/src/usage/orm/models/index.ts new file mode 100644 index 0000000000..d3736dc9d5 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/orm/models/index.ts @@ -0,0 +1,23 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; +export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; +export { AppLimitCapModel } from './appLimitCap'; +export { OrgLimitCapModel } from './orgLimitCap'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { AppLimitCreditModel } from './appLimitCredit'; +export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; +export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitWarningModel } from './appLimitWarning'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; +export { AppLimitModel } from './appLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; +export { OrgLimitModel } from './orgLimit'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimit.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimit.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimit.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimit.ts diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitAggregate.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimitAggregate.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimitAggregate.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimitAggregate.ts diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitCap.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimitCap.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimitCap.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimitCap.ts diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitCapsDefault.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimitCapsDefault.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimitCapsDefault.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimitCapsDefault.ts diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitCredit.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimitCredit.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimitCredit.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimitCredit.ts diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitDefault.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimitDefault.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimitDefault.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimitDefault.ts diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimitEvent.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimitEvent.ts diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitWarning.ts b/sdk/constructive-sdk/src/usage/orm/models/orgLimitWarning.ts similarity index 100% rename from sdk/constructive-react/src/admin/orm/models/orgLimitWarning.ts rename to sdk/constructive-sdk/src/usage/orm/models/orgLimitWarning.ts diff --git a/sdk/constructive-sdk/src/usage/orm/mutation/index.ts b/sdk/constructive-sdk/src/usage/orm/mutation/index.ts new file mode 100644 index 0000000000..5a5a61c0df --- /dev/null +++ b/sdk/constructive-sdk/src/usage/orm/mutation/index.ts @@ -0,0 +1,197 @@ +/** + * 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 { + SeedAppLimitCapsDefaultsInput, + SeedAppLimitDefaultsInput, + SeedOrgLimitCapsDefaultsInput, + SeedOrgLimitDefaultsInput, + ProvisionBucketInput, + SeedAppLimitCapsDefaultsPayload, + SeedAppLimitDefaultsPayload, + SeedOrgLimitCapsDefaultsPayload, + SeedOrgLimitDefaultsPayload, + ProvisionBucketPayload, + SeedAppLimitCapsDefaultsPayloadSelect, + SeedAppLimitDefaultsPayloadSelect, + SeedOrgLimitCapsDefaultsPayloadSelect, + SeedOrgLimitDefaultsPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface SeedAppLimitCapsDefaultsVariables { + input: SeedAppLimitCapsDefaultsInput; +} +export interface SeedAppLimitDefaultsVariables { + input: SeedAppLimitDefaultsInput; +} +export interface SeedOrgLimitCapsDefaultsVariables { + input: SeedOrgLimitCapsDefaultsInput; +} +export interface SeedOrgLimitDefaultsVariables { + input: SeedOrgLimitDefaultsInput; +} +/** + * 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 { + seedAppLimitCapsDefaults: ( + args: SeedAppLimitCapsDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedAppLimitCapsDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedAppLimitCapsDefaults', + fieldName: 'seedAppLimitCapsDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedAppLimitCapsDefaults', + 'seedAppLimitCapsDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedAppLimitCapsDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedAppLimitCapsDefaultsPayload' + ), + }), + seedAppLimitDefaults: ( + args: SeedAppLimitDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedAppLimitDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedAppLimitDefaults', + fieldName: 'seedAppLimitDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedAppLimitDefaults', + 'seedAppLimitDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedAppLimitDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedAppLimitDefaultsPayload' + ), + }), + seedOrgLimitCapsDefaults: ( + args: SeedOrgLimitCapsDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedOrgLimitCapsDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedOrgLimitCapsDefaults', + fieldName: 'seedOrgLimitCapsDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedOrgLimitCapsDefaults', + 'seedOrgLimitCapsDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedOrgLimitCapsDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedOrgLimitCapsDefaultsPayload' + ), + }), + seedOrgLimitDefaults: ( + args: SeedOrgLimitDefaultsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + seedOrgLimitDefaults: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SeedOrgLimitDefaults', + fieldName: 'seedOrgLimitDefaults', + ...buildCustomDocument( + 'mutation', + 'SeedOrgLimitDefaults', + 'seedOrgLimitDefaults', + options.select, + args, + [ + { + name: 'input', + type: 'SeedOrgLimitDefaultsInput!', + }, + ], + connectionFieldsMap, + 'SeedOrgLimitDefaultsPayload' + ), + }), + 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/usage/orm/query-builder.ts b/sdk/constructive-sdk/src/usage/orm/query-builder.ts new file mode 100644 index 0000000000..fcf3e63f28 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/orm/query-builder.ts @@ -0,0 +1,1045 @@ +/** + * 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> +): { 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, + [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/usage/orm/realtime.ts b/sdk/constructive-sdk/src/usage/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/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/usage/orm/select-types.ts b/sdk/constructive-sdk/src/usage/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-sdk/src/usage/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/usage/orm/types.ts b/sdk/constructive-sdk/src/usage/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-sdk/src/usage/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';